From c322bf3b430f99563676042c748e651c2a5f70bb Mon Sep 17 00:00:00 2001 From: Dan Date: Mon, 4 Oct 2021 13:32:39 -0400 Subject: [PATCH] v1.17 --- backend/requirements.txt | 6 +++--- frontend/index.html | 2 +- ...15096ca03fa2f.js => main-es2015.4f9294ff07547ed1b9c2.js} | 2 +- ...0dd15096ca03fa2f.js => main-es5.4f9294ff07547ed1b9c2.js} | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) rename frontend/{main-es2015.1b2b0dd15096ca03fa2f.js => main-es2015.4f9294ff07547ed1b9c2.js} (95%) rename frontend/{main-es5.1b2b0dd15096ca03fa2f.js => main-es5.4f9294ff07547ed1b9c2.js} (90%) diff --git a/backend/requirements.txt b/backend/requirements.txt index d9bcdc7..e1b5f05 100644 --- a/backend/requirements.txt +++ b/backend/requirements.txt @@ -6,7 +6,7 @@ certifi==2020.12.5 cffi==1.14.5 chardet==3.0.4 click==8.0.0 -elasticsearch==6.8.2 +elasticsearch~=6.8.2 elasticsearch-dsl==6.4.0 et-xmlfile==1.1.0 Flask==2.0.0 @@ -38,11 +38,11 @@ PyJWT==1.7.1 python-dateutil==2.8.1 python-editor==1.0.4 pytz==2021.1 -requests==2.22.0 +requests~=2.22.0 six==1.16.0 SQLAlchemy==1.3.18 traceback-with-variables==1.1.9 tzlocal==2.1 -urllib3==1.26.5 +urllib3~=1.25.11 Werkzeug==2.0.0 XlsxWriter==1.1.5 diff --git a/frontend/index.html b/frontend/index.html index e962720..76ca3aa 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -26,6 +26,6 @@ var firstScriptTag = document.getElementsByTagName('script')[0]; firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); - + diff --git a/frontend/main-es2015.1b2b0dd15096ca03fa2f.js b/frontend/main-es2015.4f9294ff07547ed1b9c2.js similarity index 95% rename from frontend/main-es2015.1b2b0dd15096ca03fa2f.js rename to frontend/main-es2015.4f9294ff07547ed1b9c2.js index 9a2670b..e153bda 100644 --- a/frontend/main-es2015.1b2b0dd15096ca03fa2f.js +++ b/frontend/main-es2015.4f9294ff07547ed1b9c2.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"+eSx":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(i("2o5z")),s=a(i("QTq/")),r=a(i("jDUc")),o=a(i("6D9Q"));function a(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e){var i=(0,n.default)(e),a=(0,s.default)(e),l=(0,n.default)(t),c=(0,s.default)(t);return((0,o.default)(Math.atan2(Math.sin((0,r.default)(a)-(0,r.default)(c))*Math.cos((0,r.default)(i)),Math.cos((0,r.default)(l))*Math.sin((0,r.default)(i))-Math.sin((0,r.default)(l))*Math.cos((0,r.default)(i))*Math.cos((0,r.default)(a)-(0,r.default)(c))))+360)%360}},0:function(t,e,i){t.exports=i("zUnb")},"2o5z":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i("jH9d"),s=o(i("M7lk")),r=o(i("KcL1"));function o(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e){var i=(0,s.default)(t,n.latitudeKeys);if(null!=i){var o=t[i];return!0===e?o:(0,r.default)(o)}}},"3Q5m":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i("jH9d");e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"m",i=n.distanceConversion[e];if(i)return t*i;throw new Error("Invalid unit used for distance conversion.")}},"45h8":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(i("wI44")),s=r(i("me/f"));function r(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e,i){var r=(0,n.default)(e,t),o=(0,n.default)(t,i),a=(0,n.default)(e,i),l=Math.acos((0,s.default)((r*r+a*a-o*o)/(2*r*a))),c=Math.acos((0,s.default)((o*o+a*a-r*r)/(2*o*a)));return l>Math.PI/2?r:c>Math.PI/2?o:Math.sin(l)*r}},"5hfJ":function(t,e,i){"use strict";function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i1&&void 0!==arguments[1]?arguments[1]:"m",i=n.areaConversion[e];if(i)return t*i;throw new Error("Invalid unit used for area conversion.")}},"5vw/":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,s=(n=i("wI44"))&&n.__esModule?n:{default:n};e.default=function(t,e,i){return(0,s.default)(t,e)3&&void 0!==arguments[3]?arguments[3]:6371e3,c=(0,n.default)(t),u=(0,s.default)(t),d=e/l,h=(0,r.default)(i),p=(0,r.default)(c),m=(0,r.default)(u),f=Math.asin(Math.sin(p)*Math.cos(d)+Math.cos(p)*Math.sin(d)*Math.cos(h)),g=m+Math.atan2(Math.sin(h)*Math.sin(d)*Math.cos(p),Math.cos(d)-Math.sin(p)*Math.sin(f)),_=(0,o.default)(g);return(_a.MAXLON)&&(g=(g+3*Math.PI)%(2*Math.PI)-Math.PI,_=(0,o.default)(g)),{latitude:(0,o.default)(f),longitude:_}}},"9Og4":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i("jH9d");e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"kmh";switch(e){case"kmh":return t*n.timeConversion.h*n.distanceConversion.km;case"mph":return t*n.timeConversion.h*n.distanceConversion.mi;default:return t}}},AFAK:function(t,e,i){"use strict";function n(t){return t instanceof Buffer?Buffer.from(t):new t.constructor(t.buffer.slice(),t.byteOffset,t.length)}t.exports=function(t){return(t=t||{}).circles?function(t){var e=[],i=[];return t.proto?function t(r){if("object"!=typeof r||null===r)return r;if(r instanceof Date)return new Date(r);if(Array.isArray(r))return s(r,t);if(r instanceof Map)return new Map(s(Array.from(r),t));if(r instanceof Set)return new Set(s(Array.from(r),t));var o={};for(var a in e.push(r),i.push(o),r){var l=r[a];if("object"!=typeof l||null===l)o[a]=l;else if(l instanceof Date)o[a]=new Date(l);else if(l instanceof Map)o[a]=new Map(s(Array.from(l),t));else if(l instanceof Set)o[a]=new Set(s(Array.from(l),t));else if(ArrayBuffer.isView(l))o[a]=n(l);else{var c=e.indexOf(l);o[a]=-1!==c?i[c]:t(l)}}return e.pop(),i.pop(),o}:function t(r){if("object"!=typeof r||null===r)return r;if(r instanceof Date)return new Date(r);if(Array.isArray(r))return s(r,t);if(r instanceof Map)return new Map(s(Array.from(r),t));if(r instanceof Set)return new Set(s(Array.from(r),t));var o={};for(var a in e.push(r),i.push(o),r)if(!1!==Object.hasOwnProperty.call(r,a)){var l=r[a];if("object"!=typeof l||null===l)o[a]=l;else if(l instanceof Date)o[a]=new Date(l);else if(l instanceof Map)o[a]=new Map(s(Array.from(l),t));else if(l instanceof Set)o[a]=new Set(s(Array.from(l),t));else if(ArrayBuffer.isView(l))o[a]=n(l);else{var c=e.indexOf(l);o[a]=-1!==c?i[c]:t(l)}}return e.pop(),i.pop(),o};function s(t,s){for(var r=Object.keys(t),o=new Array(r.length),a=0;at.length)&&(e=t.length);for(var i=0,n=new Array(e);i=t.length?{done:!0}:{done:!1,value:t[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=t[Symbol.iterator]()).next.bind(n)}var n=function(t){var e={exports:{}};return function(t){function e(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}t.exports={defaults:{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},getDefaults:e,changeDefaults:function(e){t.exports.defaults=e}}}(e),e.exports}(),s=/[&<>"']/,r=/[&<>"']/g,o=/[<>"']|&(?!#?\w+;)/,a=/[<>"']|&(?!#?\w+;)/g,l={"&":"&","<":"<",">":">",'"':""","'":"'"},c=function(t){return l[t]},u=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function d(t){return t.replace(u,function(t,e){return"colon"===(e=e.toLowerCase())?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):""})}var h=/(^|[^\[])\^/g,p=/[^\w:]/g,m=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,f={},g=/^[^:]+:\/*[^/]*$/,_=/^([^:]+:)[\s\S]*$/,b=/^([^:]+:\/*[^/]*)[\s\S]*$/;function y(t,e,i){var n=t.length;if(0===n)return"";for(var s=0;s=0&&"\\"===i[s];)n=!n;return n?"|":" |"}).split(/ \|/),n=0;if(i.length>e)i.splice(e);else for(;i.length1?{type:"space",raw:e[0]}:{raw:"\n"}},e.code=function(t,e){var i=this.rules.block.code.exec(t);if(i){var n=e[e.length-1];if(n&&"paragraph"===n.type)return{raw:i[0],text:i[0].trimRight()};var s=i[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:i[0],codeBlockStyle:"indented",text:this.options.pedantic?s:S(s,"\n")}}},e.fences=function(t){var e=this.rules.block.fences.exec(t);if(e){var i=e[0],n=function(t,e){var i=t.match(/^(\s+)(?:```)/);if(null===i)return e;var n=i[1];return e.split("\n").map(function(t){var e=t.match(/^\s+/);return null===e?t:e[0].length>=n.length?t.slice(n.length):t}).join("\n")}(i,e[3]||"");return{type:"code",raw:i,lang:e[2]?e[2].trim():e[2],text:n}}},e.heading=function(t){var e=this.rules.block.heading.exec(t);if(e){var i=e[2].trim();if(/#$/.test(i)){var n=S(i,"#");this.options.pedantic?i=n.trim():n&&!/ $/.test(n)||(i=n.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:i}}},e.nptable=function(t){var e=this.rules.block.nptable.exec(t);if(e){var i={type:"table",header:k(e[1].replace(/^ *| *\| *$/g,"")),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:e[3]?e[3].replace(/\n$/,"").split("\n"):[],raw:e[0]};if(i.header.length===i.align.length){var n,s=i.align.length;for(n=0;n ?/gm,"");return{type:"blockquote",raw:e[0],text:i}}},e.list=function(t){var e=this.rules.block.list.exec(t);if(e){var i,n,s,r,o,a,l,c,u=e[0],d=e[2],h=d.length>1,p={type:"list",raw:u,ordered:h,start:h?+d.slice(0,-1):"",loose:!1,items:[]},m=e[0].match(this.rules.block.item),f=!1,g=m.length;s=this.rules.block.listItemStart.exec(m[0]);for(var _=0;_s[1].length:r[1].length>s[0].length||r[1].length>3){m.splice(_,2,m[_]+"\n"+m[_+1]),_--,g--;continue}(!this.options.pedantic||this.options.smartLists?r[2][r[2].length-1]!==d[d.length-1]:h===(1===r[2].length))&&(o=m.slice(_+1).join("\n"),p.raw=p.raw.substring(0,p.raw.length-o.length),_=g-1),s=r}n=i.length,~(i=i.replace(/^ *([*+-]|\d+[.)]) ?/,"")).indexOf("\n ")&&(n-=i.length,i=i.replace(this.options.pedantic?/^ {1,4}/gm:new RegExp("^ {1,"+n+"}","gm"),"")),a=f||/\n\n(?!\s*$)/.test(i),_!==g-1&&(f="\n"===i.charAt(i.length-1),a||(a=f)),a&&(p.loose=!0),this.options.gfm&&(c=void 0,(l=/^\[[ xX]\] /.test(i))&&(c=" "!==i[1],i=i.replace(/^\[[ xX]\] +/,""))),p.items.push({type:"list_item",raw:u,task:l,checked:c,loose:a,text:i})}return p}},e.html=function(t){var e=this.rules.block.html.exec(t);if(e)return{type:this.options.sanitize?"paragraph":"html",raw:e[0],pre:!this.options.sanitizer&&("pre"===e[1]||"script"===e[1]||"style"===e[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):A(e[0]):e[0]}},e.def=function(t){var e=this.rules.block.def.exec(t);if(e)return e[3]&&(e[3]=e[3].substring(1,e[3].length-1)),{tag:e[1].toLowerCase().replace(/\s+/g," "),raw:e[0],href:e[2],title:e[3]}},e.table=function(t){var e=this.rules.block.table.exec(t);if(e){var i={type:"table",header:k(e[1].replace(/^ *| *\| *$/g,"")),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:e[3]?e[3].replace(/\n$/,"").split("\n"):[]};if(i.header.length===i.align.length){i.raw=e[0];var n,s=i.align.length;for(n=0;n/i.test(n[0])&&(e=!1),!i&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?i=!0:i&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(i=!1),{type:this.options.sanitize?"text":"html",raw:n[0],inLink:e,inRawBlock:i,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):A(n[0]):n[0]}},e.link=function(t){var e=this.rules.inline.link.exec(t);if(e){var i=e[2].trim();if(!this.options.pedantic&&/^$/.test(i))return;var n=S(i.slice(0,-1),"\\");if((i.length-n.length)%2==0)return}else{var s=function(t,e){if(-1===t.indexOf(e[1]))return-1;for(var i=t.length,n=0,s=0;s-1){var r=(0===e[0].indexOf("!")?5:4)+e[1].length+s;e[2]=e[2].substring(0,s),e[0]=e[0].substring(0,r).trim(),e[3]=""}}var o=e[2],a="";if(this.options.pedantic){var l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);l&&(o=l[1],a=l[3])}else a=e[3]?e[3].slice(1,-1):"";return o=o.trim(),/^$/.test(i)?o.slice(1):o.slice(1,-1)),O(e,{href:o?o.replace(this.rules.inline._escapes,"$1"):o,title:a?a.replace(this.rules.inline._escapes,"$1"):a},e[0])}},e.reflink=function(t,e){var i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){var n=(i[2]||i[1]).replace(/\s+/g," ");if(!(n=e[n.toLowerCase()])||!n.href){var s=i[0].charAt(0);return{type:"text",raw:s,text:s}}return O(i,n,i[0])}},e.strong=function(t,e,i){void 0===i&&(i="");var n=this.rules.inline.strong.start.exec(t);if(n&&(!n[1]||n[1]&&(""===i||this.rules.inline.punctuation.exec(i)))){e=e.slice(-1*t.length);var s,r="**"===n[0]?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;for(r.lastIndex=0;null!=(n=r.exec(e));)if(s=this.rules.inline.strong.middle.exec(e.slice(0,n.index+3)))return{type:"strong",raw:t.slice(0,s[0].length),text:t.slice(2,s[0].length-2)}}},e.em=function(t,e,i){void 0===i&&(i="");var n=this.rules.inline.em.start.exec(t);if(n&&(!n[1]||n[1]&&(""===i||this.rules.inline.punctuation.exec(i)))){e=e.slice(-1*t.length);var s,r="*"===n[0]?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;for(r.lastIndex=0;null!=(n=r.exec(e));)if(s=this.rules.inline.em.middle.exec(e.slice(0,n.index+2)))return{type:"em",raw:t.slice(0,s[0].length),text:t.slice(1,s[0].length-1)}}},e.codespan=function(t){var e=this.rules.inline.code.exec(t);if(e){var i=e[2].replace(/\n/g," "),n=/[^ ]/.test(i),s=/^ /.test(i)&&/ $/.test(i);return n&&s&&(i=i.substring(1,i.length-1)),i=A(i,!0),{type:"codespan",raw:e[0],text:i}}},e.br=function(t){var e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}},e.del=function(t){var e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2]}},e.autolink=function(t,e){var i,n,s=this.rules.inline.autolink.exec(t);if(s)return n="@"===s[2]?"mailto:"+(i=A(this.options.mangle?e(s[1]):s[1])):i=A(s[1]),{type:"link",raw:s[0],text:i,href:n,tokens:[{type:"text",raw:i,text:i}]}},e.url=function(t,e){var i;if(i=this.rules.inline.url.exec(t)){var n,s;if("@"===i[2])s="mailto:"+(n=A(this.options.mangle?e(i[0]):i[0]));else{var r;do{r=i[0],i[0]=this.rules.inline._backpedal.exec(i[0])[0]}while(r!==i[0]);n=A(i[0]),s="www."===i[1]?"http://"+n:n}return{type:"link",raw:i[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}},e.inlineText=function(t,e,i){var n,s=this.rules.inline.text.exec(t);if(s)return n=e?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(s[0]):A(s[0]):s[0]:A(this.options.smartypants?i(s[0]):s[0]),{type:"text",raw:s[0],text:n}},t}(),T={exec:function(){}},P=function(t,e){t=t.source||t,e=e||"";var i={replace:function(e,n){return n=(n=n.source||n).replace(h,"$1"),t=t.replace(e,n),i},getRegex:function(){return new RegExp(t,e)}};return i},D=C,M={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?! {0,3}bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:T,table:T,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};M.def=P(M.def).replace("label",M._label).replace("title",M._title).getRegex(),M.bullet=/(?:[*+-]|\d{1,9}[.)])/,M.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,M.item=P(M.item,"gm").replace(/bull/g,M.bullet).getRegex(),M.listItemStart=P(/^( *)(bull)/).replace("bull",M.bullet).getRegex(),M.list=P(M.list).replace(/bull/g,M.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+M.def.source+")").getRegex(),M._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",M._comment=/|$)/,M.html=P(M.html,"i").replace("comment",M._comment).replace("tag",M._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),M.paragraph=P(M._paragraph).replace("hr",M.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",M._tag).getRegex(),M.blockquote=P(M.blockquote).replace("paragraph",M.paragraph).getRegex(),M.normal=D({},M),M.gfm=D({},M.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n {0,3}([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n {0,3}\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),M.gfm.nptable=P(M.gfm.nptable).replace("hr",M.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",M._tag).getRegex(),M.gfm.table=P(M.gfm.table).replace("hr",M.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",M._tag).getRegex(),M.pedantic=D({},M.normal,{html:P("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",M._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:T,paragraph:P(M.normal._paragraph).replace("hr",M.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",M.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var I={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:T,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation_\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation*\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation_\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation*\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:T,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~"};I.punctuation=P(I.punctuation).replace(/punctuation/g,I._punctuation).getRegex(),I._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",I._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",I._comment=P(M._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),I.em.start=P(I.em.start).replace(/punctuation/g,I._punctuation).getRegex(),I.em.middle=P(I.em.middle).replace(/punctuation/g,I._punctuation).replace(/overlapSkip/g,I._overlapSkip).getRegex(),I.em.endAst=P(I.em.endAst,"g").replace(/punctuation/g,I._punctuation).getRegex(),I.em.endUnd=P(I.em.endUnd,"g").replace(/punctuation/g,I._punctuation).getRegex(),I.strong.start=P(I.strong.start).replace(/punctuation/g,I._punctuation).getRegex(),I.strong.middle=P(I.strong.middle).replace(/punctuation/g,I._punctuation).replace(/overlapSkip/g,I._overlapSkip).getRegex(),I.strong.endAst=P(I.strong.endAst,"g").replace(/punctuation/g,I._punctuation).getRegex(),I.strong.endUnd=P(I.strong.endUnd,"g").replace(/punctuation/g,I._punctuation).getRegex(),I.blockSkip=P(I._blockSkip,"g").getRegex(),I.overlapSkip=P(I._overlapSkip,"g").getRegex(),I._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,I._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,I._email=/[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])?)+(?![-_])/,I.autolink=P(I.autolink).replace("scheme",I._scheme).replace("email",I._email).getRegex(),I._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,I.tag=P(I.tag).replace("comment",I._comment).replace("attribute",I._attribute).getRegex(),I._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,I._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,I._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,I.link=P(I.link).replace("label",I._label).replace("href",I._href).replace("title",I._title).getRegex(),I.reflink=P(I.reflink).replace("label",I._label).getRegex(),I.reflinkSearch=P(I.reflinkSearch,"g").replace("reflink",I.reflink).replace("nolink",I.nolink).getRegex(),I.normal=D({},I),I.pedantic=D({},I.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:P(/^!?\[(label)\]\((.*?)\)/).replace("label",I._label).getRegex(),reflink:P(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",I._label).getRegex()}),I.gfm=D({},I.normal,{escape:P(I.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\1;)1&e&&(i+=t),e>>=1,t+=t;return i+t};function B(t){return t.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026")}function H(t){var e,i,n="",s=t.length;for(e=0;e.5&&(i="x"+i.toString(16)),n+="&#"+i+";";return n}var z=function(){function e(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||L,this.options.tokenizer=this.options.tokenizer||new E,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var e={block:F.normal,inline:N.normal};this.options.pedantic?(e.block=F.pedantic,e.inline=N.pedantic):this.options.gfm&&(e.block=F.gfm,e.inline=this.options.breaks?N.breaks:N.gfm),this.tokenizer.rules=e}e.lex=function(t,i){return new e(i).lex(t)},e.lexInline=function(t,i){return new e(i).inlineTokens(t)};var i,n,s=e.prototype;return s.lex=function(t){return t=t.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(t,this.tokens,!0),this.inline(this.tokens),this.tokens},s.blockTokens=function(t,e,i){var n,s,r,o;for(void 0===e&&(e=[]),void 0===i&&(i=!0),this.options.pedantic&&(t=t.replace(/^ +$/gm,""));t;)if(n=this.tokenizer.space(t))t=t.substring(n.raw.length),n.type&&e.push(n);else if(n=this.tokenizer.code(t,e))t=t.substring(n.raw.length),n.type?e.push(n):((o=e[e.length-1]).raw+="\n"+n.raw,o.text+="\n"+n.text);else if(n=this.tokenizer.fences(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.heading(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.nptable(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.hr(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.blockquote(t))t=t.substring(n.raw.length),n.tokens=this.blockTokens(n.text,[],i),e.push(n);else if(n=this.tokenizer.list(t)){for(t=t.substring(n.raw.length),r=n.items.length,s=0;s0)for(;null!=(r=this.tokenizer.rules.inline.reflinkSearch.exec(l));)c.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,r.index)+"["+V("a",r[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(r=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,r.index)+"["+V("a",r[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;t;)if(o||(a=""),o=!1,s=this.tokenizer.escape(t))t=t.substring(s.raw.length),e.push(s);else if(s=this.tokenizer.tag(t,i,n))t=t.substring(s.raw.length),i=s.inLink,n=s.inRawBlock,e.push(s);else if(s=this.tokenizer.link(t))t=t.substring(s.raw.length),"link"===s.type&&(s.tokens=this.inlineTokens(s.text,[],!0,n)),e.push(s);else if(s=this.tokenizer.reflink(t,this.tokens.links))t=t.substring(s.raw.length),"link"===s.type&&(s.tokens=this.inlineTokens(s.text,[],!0,n)),e.push(s);else if(s=this.tokenizer.strong(t,l,a))t=t.substring(s.raw.length),s.tokens=this.inlineTokens(s.text,[],i,n),e.push(s);else if(s=this.tokenizer.em(t,l,a))t=t.substring(s.raw.length),s.tokens=this.inlineTokens(s.text,[],i,n),e.push(s);else if(s=this.tokenizer.codespan(t))t=t.substring(s.raw.length),e.push(s);else if(s=this.tokenizer.br(t))t=t.substring(s.raw.length),e.push(s);else if(s=this.tokenizer.del(t))t=t.substring(s.raw.length),s.tokens=this.inlineTokens(s.text,[],i,n),e.push(s);else if(s=this.tokenizer.autolink(t,H))t=t.substring(s.raw.length),e.push(s);else if(i||!(s=this.tokenizer.url(t,H))){if(s=this.tokenizer.inlineText(t,n,B))t=t.substring(s.raw.length),a=s.raw.slice(-1),o=!0,e.push(s);else if(t){var u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}throw new Error(u)}}else t=t.substring(s.raw.length),e.push(s);return e},i=e,n=[{key:"rules",get:function(){return{block:F,inline:N}}}],null&&t(i.prototype,null),n&&t(i,n),e}(),G=n.defaults,U=function(t,e,i){if(t){var n;try{n=decodeURIComponent(d(i)).replace(p,"").toLowerCase()}catch(s){return null}if(0===n.indexOf("javascript:")||0===n.indexOf("vbscript:")||0===n.indexOf("data:"))return null}e&&!m.test(i)&&(i=function(t,e){f[" "+t]||(f[" "+t]=g.test(t)?t+"/":y(t,"/",!0));var i=-1===(t=f[" "+t]).indexOf(":");return"//"===e.substring(0,2)?i?e:t.replace(_,"$1")+e:"/"===e.charAt(0)?i?e:t.replace(b,"$1")+e:t+e}(e,i));try{i=encodeURI(i).replace(/%25/g,"%")}catch(s){return null}return i},j=v,W=function(){function t(t){this.options=t||G}var e=t.prototype;return e.code=function(t,e,i){var n=(e||"").match(/\S*/)[0];if(this.options.highlight){var s=this.options.highlight(t,n);null!=s&&s!==t&&(i=!0,t=s)}return t=t.replace(/\n$/,"")+"\n",n?'
'+(i?t:j(t,!0))+"
\n":"
"+(i?t:j(t,!0))+"
\n"},e.blockquote=function(t){return"
\n"+t+"
\n"},e.html=function(t){return t},e.heading=function(t,e,i,n){return this.options.headerIds?"'+t+"\n":""+t+"\n"},e.hr=function(){return this.options.xhtml?"
\n":"
\n"},e.list=function(t,e,i){var n=e?"ol":"ul";return"<"+n+(e&&1!==i?' start="'+i+'"':"")+">\n"+t+"\n"},e.listitem=function(t){return"
  • "+t+"
  • \n"},e.checkbox=function(t){return" "},e.paragraph=function(t){return"

    "+t+"

    \n"},e.table=function(t,e){return e&&(e=""+e+""),"\n\n"+t+"\n"+e+"
    \n"},e.tablerow=function(t){return"\n"+t+"\n"},e.tablecell=function(t,e){var i=e.header?"th":"td";return(e.align?"<"+i+' align="'+e.align+'">':"<"+i+">")+t+"\n"},e.strong=function(t){return""+t+""},e.em=function(t){return""+t+""},e.codespan=function(t){return""+t+""},e.br=function(){return this.options.xhtml?"
    ":"
    "},e.del=function(t){return""+t+""},e.link=function(t,e,i){if(null===(t=U(this.options.sanitize,this.options.baseUrl,t)))return i;var n='"+i+""},e.image=function(t,e,i){if(null===(t=U(this.options.sanitize,this.options.baseUrl,t)))return i;var n=''+i+'":">")},e.text=function(t){return t},t}(),$=function(){function t(){}var e=t.prototype;return e.strong=function(t){return t},e.em=function(t){return t},e.codespan=function(t){return t},e.del=function(t){return t},e.html=function(t){return t},e.text=function(t){return t},e.link=function(t,e,i){return""+i},e.image=function(t,e,i){return""+i},e.br=function(){return""},t}(),q=function(){function t(){this.seen={}}var e=t.prototype;return e.serialize=function(t){return t.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},e.getNextSafeSlug=function(t,e){var i=t,n=0;if(this.seen.hasOwnProperty(i)){n=this.seen[t];do{i=t+"-"+ ++n}while(this.seen.hasOwnProperty(i))}return e||(this.seen[t]=n,this.seen[i]=0),i},e.slug=function(t,e){void 0===e&&(e={});var i=this.serialize(t);return this.getNextSafeSlug(i,e.dryrun)},t}(),Y=n.defaults,Q=w,X=function(){function t(t){this.options=t||Y,this.options.renderer=this.options.renderer||new W,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new $,this.slugger=new q}t.parse=function(e,i){return new t(i).parse(e)},t.parseInline=function(e,i){return new t(i).parseInline(e)};var e=t.prototype;return e.parse=function(t,e){void 0===e&&(e=!0);var i,n,s,r,o,a,l,c,u,d,h,p,m,f,g,_,b,y,v="",w=t.length;for(i=0;i0&&"text"===g.tokens[0].type?(g.tokens[0].text=y+" "+g.tokens[0].text,g.tokens[0].tokens&&g.tokens[0].tokens.length>0&&"text"===g.tokens[0].tokens[0].type&&(g.tokens[0].tokens[0].text=y+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:y}):f+=y),f+=this.parse(g.tokens,m),u+=this.renderer.listitem(f,b,_);v+=this.renderer.list(u,h,p);continue;case"html":v+=this.renderer.html(d.text);continue;case"paragraph":v+=this.renderer.paragraph(this.parseInline(d.tokens));continue;case"text":for(u=d.tokens?this.parseInline(d.tokens):d.text;i+1An error occurred:

    "+J(l.message+"",!0)+"
    ";throw l}}return nt.options=nt.setOptions=function(t){return K(nt.defaults,t),et(nt.defaults),nt},nt.getDefaults=tt,nt.defaults=it,nt.use=function(t){var e=K({},t);if(t.renderer&&function(){var i=nt.defaults.renderer||new W,n=function(e){var n=i[e];i[e]=function(){for(var s=arguments.length,r=new Array(s),o=0;oAn error occurred:

    "+J(n.message+"",!0)+"
    ";throw n}},nt.Parser=X,nt.parser=X.parse,nt.Renderer=W,nt.TextRenderer=$,nt.Lexer=z,nt.lexer=z.lex,nt.Tokenizer=E,nt.Slugger=q,nt.parse=nt,nt}()},Fqnj:function(t,e,i){"use strict";function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);iMath.PI&&(i=i>0?-1*(2*Math.PI-i):2*Math.PI+i),((0,o.default)(Math.atan2(i,a))+360)%360}},Nrgg:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,s=(n=i("wI44"))&&n.__esModule?n:{default:n};e.default=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default,n=i(t,e),r=Number(e.time)-Number(t.time),o=n/r*1e3;return o}},OTo6:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,s=(n=i("JKJh"))&&n.__esModule?n:{default:n};e.default=function(t){var e=(0,s.default)(t),i=e.minLng+(e.maxLng-e.minLng)/2;return{latitude:parseFloat((e.minLat+(e.maxLat-e.minLat)/2).toFixed(6)),longitude:parseFloat(i.toFixed(6))}}},"QTq/":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i("jH9d"),s=o(i("M7lk")),r=o(i("KcL1"));function o(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e){var i=(0,s.default)(t,n.longitudeKeys);if(null!=i){var o=t[i];return!0===e?o:(0,r.default)(o)}}},"SJ/V":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,s=(n=i("wI44"))&&n.__esModule?n:{default:n};e.default=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default;return i="function"==typeof i?i:s.default,e.slice().sort(function(e,n){return i(t,e)-i(t,n)})}},ZPc1:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,s=(n=i("SJ/V"))&&n.__esModule?n:{default:n};e.default=function(t,e){return(0,s.default)(t,e)[0]}},Zdlu:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(t){var e=t.toString().trim();return!isNaN(parseFloat(e))&&parseFloat(e)===Number(e)}},"c+JA":function(t,e){function i(t,e,n){this.extend(i,google.maps.OverlayView),this.map_=t,this.markers_=[],this.clusters_=[],this.sizes=[53,56,66,78,90],this.styles_=[],this.ready_=!1;var s=n||{};this.gridSize_=s.gridSize||60,this.minClusterSize_=s.minimumClusterSize||2,this.maxZoom_=s.maxZoom||null,this.styles_=s.styles||[],this.imagePath_=s.imagePath||this.MARKER_CLUSTER_IMAGE_PATH_,this.imageExtension_=s.imageExtension||this.MARKER_CLUSTER_IMAGE_EXTENSION_,this.zoomOnClick_=!0,null!=s.zoomOnClick&&(this.zoomOnClick_=s.zoomOnClick),this.averageCenter_=!1,null!=s.averageCenter&&(this.averageCenter_=s.averageCenter),this.setupStyles_(),this.setMap(t),this.prevZoom_=this.map_.getZoom();var r=this;google.maps.event.addListener(this.map_,"zoom_changed",function(){var t=r.map_.getZoom();r.prevZoom_!=t&&(r.prevZoom_=t,r.resetViewport())}),google.maps.event.addListener(this.map_,"idle",function(){r.redraw()}),e&&e.length&&this.addMarkers(e,!1)}function n(t){this.markerClusterer_=t,this.map_=t.getMap(),this.gridSize_=t.getGridSize(),this.minClusterSize_=t.getMinClusterSize(),this.averageCenter_=t.isAverageCenter(),this.center_=null,this.markers_=[],this.bounds_=null,this.clusterIcon_=new s(this,t.getStyles(),t.getGridSize())}function s(t,e,i){t.getMarkerClusterer().extend(s,google.maps.OverlayView),this.styles_=e,this.padding_=i||0,this.cluster_=t,this.center_=null,this.map_=t.getMap(),this.div_=null,this.sums_=null,this.visible_=!1,this.setMap(this.map_)}i.prototype.MARKER_CLUSTER_IMAGE_PATH_="http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/images/m",i.prototype.MARKER_CLUSTER_IMAGE_EXTENSION_="png",i.prototype.extend=function(t,e){return(function(t){for(var e in t.prototype)this.prototype[e]=t.prototype[e];return this}).apply(t,[e])},i.prototype.onAdd=function(){this.setReady_(!0)},i.prototype.draw=function(){},i.prototype.setupStyles_=function(){if(!this.styles_.length)for(var t,e=0;t=this.sizes[e];e++)this.styles_.push({url:this.imagePath_+(e+1)+"."+this.imageExtension_,height:t,width:t})},i.prototype.fitMapToMarkers=function(){for(var t,e=this.getMarkers(),i=new google.maps.LatLngBounds,n=0;t=e[n];n++)i.extend(t.getPosition());this.map_.fitBounds(i)},i.prototype.setStyles=function(t){this.styles_=t},i.prototype.getStyles=function(){return this.styles_},i.prototype.isZoomOnClick=function(){return this.zoomOnClick_},i.prototype.isAverageCenter=function(){return this.averageCenter_},i.prototype.getMarkers=function(){return this.markers_},i.prototype.getTotalMarkers=function(){return this.markers_.length},i.prototype.setMaxZoom=function(t){this.maxZoom_=t},i.prototype.getMaxZoom=function(){return this.maxZoom_},i.prototype.calculator_=function(t,e){for(var i=0,n=t.length,s=n;0!==s;)s=parseInt(s/10,10),i++;return{text:n,index:i=Math.min(i,e)}},i.prototype.setCalculator=function(t){this.calculator_=t},i.prototype.getCalculator=function(){return this.calculator_},i.prototype.addMarkers=function(t,e){for(var i,n=0;i=t[n];n++)this.pushMarkerTo_(i);e||this.redraw()},i.prototype.pushMarkerTo_=function(t){if(t.isAdded=!1,t.draggable){var e=this;google.maps.event.addListener(t,"dragend",function(){t.isAdded=!1,e.repaint()})}this.markers_.push(t)},i.prototype.addMarker=function(t,e){this.pushMarkerTo_(t),e||this.redraw()},i.prototype.removeMarker_=function(t){var e=-1;if(this.markers_.indexOf)e=this.markers_.indexOf(t);else for(var i,n=0;i=this.markers_[n];n++)if(i==t){e=n;break}return-1!=e&&(t.setMap(null),this.markers_.splice(e,1),!0)},i.prototype.removeMarker=function(t,e){var i=this.removeMarker_(t);return!(e||!i||(this.resetViewport(),this.redraw(),0))},i.prototype.removeMarkers=function(t,e){for(var i,n=!1,s=0;i=t[s];s++){var r=this.removeMarker_(i);n=n||r}if(!e&&n)return this.resetViewport(),this.redraw(),!0},i.prototype.setReady_=function(t){this.ready_||(this.ready_=t,this.createClusters_())},i.prototype.getTotalClusters=function(){return this.clusters_.length},i.prototype.getMap=function(){return this.map_},i.prototype.setMap=function(t){this.map_=t},i.prototype.getGridSize=function(){return this.gridSize_},i.prototype.setGridSize=function(t){this.gridSize_=t},i.prototype.getMinClusterSize=function(){return this.minClusterSize_},i.prototype.setMinClusterSize=function(t){this.minClusterSize_=t},i.prototype.getExtendedBounds=function(t){var e=this.getProjection(),i=new google.maps.LatLng(t.getNorthEast().lat(),t.getNorthEast().lng()),n=new google.maps.LatLng(t.getSouthWest().lat(),t.getSouthWest().lng()),s=e.fromLatLngToDivPixel(i);s.x+=this.gridSize_,s.y-=this.gridSize_;var r=e.fromLatLngToDivPixel(n);r.x-=this.gridSize_,r.y+=this.gridSize_;var o=e.fromDivPixelToLatLng(s),a=e.fromDivPixelToLatLng(r);return t.extend(o),t.extend(a),t},i.prototype.isMarkerInBounds_=function(t,e){return e.contains(t.getPosition())},i.prototype.clearMarkers=function(){this.resetViewport(!0),this.markers_=[]},i.prototype.resetViewport=function(t){for(var e,i=0;e=this.clusters_[i];i++)e.remove();var n;for(i=0;n=this.markers_[i];i++)n.isAdded=!1,t&&n.setMap(null);this.clusters_=[]},i.prototype.repaint=function(){var t=this.clusters_.slice();this.clusters_.length=0,this.resetViewport(),this.redraw(),window.setTimeout(function(){for(var e,i=0;e=t[i];i++)e.remove()},0)},i.prototype.redraw=function(){this.createClusters_()},i.prototype.distanceBetweenPoints_=function(t,e){if(!t||!e)return 0;var i=(e.lat()-t.lat())*Math.PI/180,n=(e.lng()-t.lng())*Math.PI/180,s=Math.sin(i/2)*Math.sin(i/2)+Math.cos(t.lat()*Math.PI/180)*Math.cos(e.lat()*Math.PI/180)*Math.sin(n/2)*Math.sin(n/2);return 2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s))*6371},i.prototype.addToClosestCluster_=function(t){for(var e,i=4e4,s=null,r=(t.getPosition(),0);e=this.clusters_[r];r++){var o=e.getCenter();if(o){var a=this.distanceBetweenPoints_(o,t.getPosition());a=this.minClusterSize_&&t.setMap(null),this.updateIcon(),!0},n.prototype.getMarkerClusterer=function(){return this.markerClusterer_},n.prototype.getBounds=function(){for(var t,e=new google.maps.LatLngBounds(this.center_,this.center_),i=this.getMarkers(),n=0;t=i[n];n++)e.extend(t.getPosition());return e},n.prototype.remove=function(){this.clusterIcon_.remove(),this.markers_.length=0,delete this.markers_},n.prototype.getSize=function(){return this.markers_.length},n.prototype.getMarkers=function(){return this.markers_},n.prototype.getCenter=function(){return this.center_},n.prototype.calculateBounds_=function(){var t=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(t)},n.prototype.isMarkerInClusterBounds=function(t){return this.bounds_.contains(t.getPosition())},n.prototype.getMap=function(){return this.map_},n.prototype.updateIcon=function(){var t=this.map_.getZoom(),e=this.markerClusterer_.getMaxZoom();if(e&&t>e)for(var i,n=0;i=this.markers_[n];n++)i.setMap(this.map_);else if(this.markers_.length0&&this.anchor_[0]0&&this.anchor_[1]1&&void 0!==arguments[1]?arguments[1]:{longitude:s.longitudeKeys,latitude:s.latitudeKeys,altitude:s.altitudeKeys},i=(0,r.default)(t,e.longitude),n=(0,r.default)(t,e.latitude),o=(0,r.default)(t,e.altitude);return a({latitude:n,longitude:i},o?{altitude:o}:{})}},fCuW:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,s=(n=i("wI44"))&&n.__esModule?n:{default:n};e.default=function(t,e,i){return(0,s.default)(e,t)+(0,s.default)(t,i)===(0,s.default)(e,i)}},fxgB:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=l(i("2o5z")),s=l(i("QTq/")),r=l(i("jDUc")),o=l(i("6D9Q")),a=i("jH9d");function l(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e){var i,l,c=(0,n.default)(t),u=(0,s.default)(t),d=(0,r.default)(c),h=(0,r.default)(u),p=e/a.earthRadius,m=d-p,f=d+p,g=(0,r.default)(a.MAXLAT),_=(0,r.default)(a.MINLAT),b=(0,r.default)(a.MAXLON),y=(0,r.default)(a.MINLON);if(m>_&&fb&&(l-=2*Math.PI)}else m=Math.max(m,_),f=Math.min(f,g),i=y,l=b;return[{latitude:(0,o.default)(m),longitude:(0,o.default)(i)},{latitude:(0,o.default)(f),longitude:(0,o.default)(l)}]}},i8yS:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(i("2o5z")),s=a(i("QTq/")),r=a(i("jDUc")),o=a(i("6D9Q"));function a(t){return t&&t.__esModule?t:{default:t}}e.default=function(t){if(!1===Array.isArray(t)||0===t.length)return!1;var e=t.length,i=t.reduce(function(t,e){var i=(0,r.default)((0,n.default)(e)),o=(0,r.default)((0,s.default)(e));return{X:t.X+Math.cos(i)*Math.cos(o),Y:t.Y+Math.cos(i)*Math.sin(o),Z:t.Z+Math.sin(i)}},{X:0,Y:0,Z:0}),a=i.X/e,l=i.Y/e,c=i.Z/e;return{longitude:(0,o.default)(Math.atan2(l,a)),latitude:(0,o.default)(Math.atan2(c,Math.sqrt(a*a+l*l)))}}},jDUc:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(t){return t*Math.PI/180}},jH9d:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.areaConversion=e.timeConversion=e.distanceConversion=e.altitudeKeys=e.latitudeKeys=e.longitudeKeys=e.MAXLON=e.MINLON=e.MAXLAT=e.MINLAT=e.earthRadius=e.sexagesimalPattern=void 0,e.sexagesimalPattern=/^([0-9]{1,3})\xb0\s*([0-9]{1,3}(?:\.(?:[0-9]{1,}))?)['\u2032]\s*(([0-9]{1,3}(\.([0-9]{1,}))?)["\u2033]\s*)?([NEOSW]?)$/,e.earthRadius=6378137,e.MINLAT=-90,e.MAXLAT=90,e.MINLON=-180,e.MAXLON=180,e.longitudeKeys=["lng","lon","longitude",0],e.latitudeKeys=["lat","latitude",1],e.altitudeKeys=["alt","altitude","elevation","elev",2],e.distanceConversion={m:1,km:.001,cm:100,mm:1e3,mi:1/1609.344,sm:1/1852.216,ft:100/30.48,in:100/2.54,yd:1/.9144},e.timeConversion={m:60,h:3600,d:86400};var n={m2:1,km2:1e-6,ha:1e-4,a:.01,ft2:10.763911,yd2:1.19599,in2:1550.0031};e.areaConversion=n,n.sqm=n.m2,n.sqkm=n.km2,n.sqft=n.ft2,n.sqyd=n.yd2,n.sqin=n.in2},jIQF:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={computeDestinationPoint:!0,convertArea:!0,convertDistance:!0,convertSpeed:!0,decimalToSexagesimal:!0,findNearest:!0,getAreaOfPolygon:!0,getBounds:!0,getBoundsOfDistance:!0,getCenter:!0,getCenterOfBounds:!0,getCompassDirection:!0,getCoordinateKey:!0,getCoordinateKeys:!0,getDistance:!0,getDistanceFromLine:!0,getGreatCircleBearing:!0,getLatitude:!0,getLongitude:!0,getPathLength:!0,getPreciseDistance:!0,getRhumbLineBearing:!0,getRoughCompassDirection:!0,getSpeed:!0,isDecimal:!0,isPointInLine:!0,isPointInPolygon:!0,isPointNearLine:!0,isPointWithinRadius:!0,isSexagesimal:!0,isValidCoordinate:!0,isValidLatitude:!0,isValidLongitude:!0,orderByDistance:!0,sexagesimalToDecimal:!0,toDecimal:!0,toRad:!0,toDeg:!0,wktToPolygon:!0};Object.defineProperty(e,"computeDestinationPoint",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"convertArea",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"convertDistance",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"convertSpeed",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"decimalToSexagesimal",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"findNearest",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"getAreaOfPolygon",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"getBounds",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"getBoundsOfDistance",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"getCenter",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"getCenterOfBounds",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"getCompassDirection",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"getCoordinateKey",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"getCoordinateKeys",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(e,"getDistance",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"getDistanceFromLine",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"getGreatCircleBearing",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"getLatitude",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(e,"getLongitude",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(e,"getPathLength",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"getPreciseDistance",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(e,"getRhumbLineBearing",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(e,"getRoughCompassDirection",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(e,"getSpeed",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(e,"isDecimal",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(e,"isPointInLine",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(e,"isPointInPolygon",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(e,"isPointNearLine",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(e,"isPointWithinRadius",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(e,"isSexagesimal",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(e,"isValidCoordinate",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(e,"isValidLatitude",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(e,"isValidLongitude",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(e,"orderByDistance",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(e,"sexagesimalToDecimal",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(e,"toDecimal",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(e,"toRad",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(e,"toDeg",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(e,"wktToPolygon",{enumerable:!0,get:function(){return G.default}});var s=j(i("95co")),r=j(i("5kFF")),o=j(i("3Q5m")),a=j(i("9Og4")),l=j(i("Fqnj")),c=j(i("ZPc1")),u=j(i("t3RW")),d=j(i("JKJh")),h=j(i("fxgB")),p=j(i("i8yS")),m=j(i("OTo6")),f=j(i("mpC8")),g=j(i("M7lk")),_=j(i("eRSq")),b=j(i("wI44")),y=j(i("45h8")),v=j(i("+eSx")),w=j(i("2o5z")),C=j(i("QTq/")),x=j(i("m5sM")),S=j(i("mbFH")),k=j(i("NBE3")),A=j(i("z+Es")),O=j(i("Nrgg")),E=j(i("Zdlu")),T=j(i("fCuW")),P=j(i("HkEB")),D=j(i("G31G")),M=j(i("5vw/")),I=j(i("dkTa")),R=j(i("vONA")),L=j(i("sCiF")),F=j(i("mSAH")),N=j(i("SJ/V")),V=j(i("rT3r")),B=j(i("KcL1")),H=j(i("jDUc")),z=j(i("6D9Q")),G=j(i("5hfJ")),U=i("jH9d");function j(t){return t&&t.__esModule?t:{default:t}}Object.keys(U).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(n,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return U[t]}}))})},m5sM:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,s=(n=i("wI44"))&&n.__esModule?n:{default:n};function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default;return t.reduce(function(t,i){return"object"===r(t)&&null!==t.last&&(t.distance+=e(i,t.last)),t.last=i,t},{last:null,distance:0}).distance}},mSAH:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(i("Zdlu")),s=a(i("dkTa")),r=a(i("rT3r")),o=i("jH9d");function a(t){return t&&t.__esModule?t:{default:t}}e.default=function t(e){return(0,n.default)(e)?!(parseFloat(e)>o.MAXLON||e2&&void 0!==arguments[2]?arguments[2]:1;i=void 0===i||isNaN(i)?1:i;var a,l,c,u,d,h,p,m=(0,n.default)(t),f=(0,s.default)(t),g=(0,n.default)(e),_=(0,s.default)(e),b=6356752.314245,y=1/298.257223563,v=(0,r.default)(_-f),w=Math.atan((1-y)*Math.tan((0,r.default)(parseFloat(m)))),C=Math.atan((1-y)*Math.tan((0,r.default)(parseFloat(g)))),x=Math.sin(w),S=Math.cos(w),k=Math.sin(C),A=Math.cos(C),O=v,E=100;do{var T=Math.sin(O),P=Math.cos(O);if(0===(h=Math.sqrt(A*T*(A*T)+(S*k-x*A*P)*(S*k-x*A*P))))return 0;a=x*k+S*A*P,l=Math.atan2(h,a),d=a-2*x*k/(u=1-(c=S*A*T/h)*c),isNaN(d)&&(d=0);var D=y/16*u*(4+y*(4-3*u));p=O,O=v+(1-D)*y*c*(l+D*h*(d+D*a*(2*d*d-1)))}while(Math.abs(O-p)>1e-12&&--E>0);if(0===E)return NaN;var M=u*(o.earthRadius*o.earthRadius-b*b)/(b*b),I=1+M/16384*(4096+M*(M*(320-175*M)-768)),R=M/1024*(256+M*(M*(74-47*M)-128)),L=R*h*(d+R/4*(a*(2*d*d-1)-R/6*d*(4*h*h-3)*(4*d*d-3))),F=b*I*(l-L);return Math.round(F/i)*i}},"me/f":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(t){return t>1?1:t<-1?-1:t}},mpC8:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,s=(n=i("NBE3"))&&n.__esModule?n:{default:n};e.default=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default,n="function"==typeof i?i(t,e):(0,s.default)(t,e);if(isNaN(n))throw new Error("Could not calculate bearing for given points. Check your bearing function");switch(Math.round(n/22.5)){case 1:return"NNE";case 2:return"NE";case 3:return"ENE";case 4:return"E";case 5:return"ESE";case 6:return"SE";case 7:return"SSE";case 8:return"S";case 9:return"SSW";case 10:return"SW";case 11:return"WSW";case 12:return"W";case 13:return"WNW";case 14:return"NW";case 15:return"NNW";default:return"N"}}},rT3r:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i("jH9d");e.default=function(t){var e=new RegExp(n.sexagesimalPattern).exec(t);if(null==e)throw new Error("Given value is not in sexagesimal format");var i=Number(e[2])/60||0,s=Number(e[4])/3600||0,r=parseFloat(e[1])+i+s;return["S","W"].includes(e[7])?-r:r}},sCiF:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(i("Zdlu")),s=a(i("dkTa")),r=a(i("rT3r")),o=i("jH9d");function a(t){return t&&t.__esModule?t:{default:t}}e.default=function t(e){return(0,n.default)(e)?!(parseFloat(e)>o.MAXLAT||e2){for(var i,a,l,c=0;c=2)return(0,r.default)(t[0])&&(0,s.default)(t[1]);if(void 0===i||void 0===o)return!1;var a=t[o],l=t[i];return void 0!==l&&void 0!==a&&!1!==(0,s.default)(l)&&!1!==(0,r.default)(a)}},wI44:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=l(i("2o5z")),s=l(i("QTq/")),r=l(i("jDUc")),o=l(i("me/f")),a=i("jH9d");function l(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;i=void 0===i||isNaN(i)?1:i;var l=(0,n.default)(t),c=(0,s.default)(t),u=(0,n.default)(e),d=(0,s.default)(e),h=Math.acos((0,o.default)(Math.sin((0,r.default)(u))*Math.sin((0,r.default)(l))+Math.cos((0,r.default)(u))*Math.cos((0,r.default)(l))*Math.cos((0,r.default)(c)-(0,r.default)(d))))*a.earthRadius;return Math.round(h/i)*i}},"z+Es":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(t){return/^NNE|NE|NNW|N$/.test(t)?"N":/^ENE|E|ESE|SE$/.test(t)?"E":/^SSE|S|SSW|SW$/.test(t)?"S":/^WSW|W|WNW|NW$/.test(t)?"W":void 0}},zUnb:function(t,e,i){"use strict";function n(t){return"function"==typeof t}i.r(e);let s=!1;const r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=t},get useDeprecatedSynchronousErrorHandling(){return s}};function o(t){setTimeout(()=>{throw t},0)}const a={closed:!0,next(t){},error(t){if(r.useDeprecatedSynchronousErrorHandling)throw t;o(t)},complete(){}},l=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))();function c(t){return null!==t&&"object"==typeof t}const u=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let d=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:i,_ctorUnsubscribe:s,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,i instanceof t)i.remove(this);else if(null!==i)for(let t=0;tt.concat(e instanceof u?e.errors:e),[])}const p=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class m extends d{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!t){this.destination=a;break}if("object"==typeof t){t instanceof m?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new f(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new f(this,t,e,i)}}[p](){return this}static create(t,e,i){const n=new m(t,e,i);return n.syncErrorThrowable=!1,n}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class f extends m{constructor(t,e,i,s){let r;super(),this._parentSubscriber=t;let o=this;n(e)?r=e:e&&(r=e.next,i=e.error,s=e.complete,e!==a&&(o=Object.create(e),n(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=i,this._complete=s}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;r.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=r;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):o(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;o(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);r.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(i){if(this.unsubscribe(),r.useDeprecatedSynchronousErrorHandling)throw i;o(i)}}__tryOrSetError(t,e,i){if(!r.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(n){return r.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=n,t.syncErrorThrown=!0,!0):(o(n),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const g=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function _(t){return t}function b(...t){return y(t)}function y(t){return 0===t.length?_:1===t.length?t[0]:function(e){return t.reduce((t,e)=>e(t),e)}}let v=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(t,e,i){const{operator:n}=this,s=function(t,e,i){if(t){if(t instanceof m)return t;if(t[p])return t[p]()}return t||e||i?new m(t,e,i):new m(a)}(t,e,i);if(s.add(n?n.call(s,this.source):this.source||r.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),r.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(t){try{return this._subscribe(t)}catch(e){r.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:i,isStopped:n}=t;if(e||n)return!1;t=i&&i instanceof m?i:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=w(e))((e,i)=>{let n;n=this.subscribe(e=>{try{t(e)}catch(s){i(s),n&&n.unsubscribe()}},i,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[g](){return this}pipe(...t){return 0===t.length?this:y(t)(this)}toPromise(t){return new(t=w(t))((t,e)=>{let i;this.subscribe(t=>i=t,t=>e(t),()=>t(i))})}}return t.create=e=>new t(e),t})();function w(t){if(t||(t=r.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const C=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class x extends d{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class S extends m{constructor(t){super(t),this.destination=t}}let k=(()=>{class t extends v{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new S(this)}lift(t){const e=new A(this,this);return e.operator=t,e}next(t){if(this.closed)throw new C;if(!this.isStopped){const{observers:e}=this,i=e.length,n=e.slice();for(let s=0;snew A(t,e),t})();class A extends k{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):d.EMPTY}}function O(t){return t&&"function"==typeof t.schedule}function E(t,e){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new T(t,e))}}class T{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new P(t,this.project,this.thisArg))}}class P extends m{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const D=t=>e=>{for(let i=0,n=t.length;it&&"number"==typeof t.length&&"function"!=typeof t;function L(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const F=t=>{if(t&&"function"==typeof t[g])return n=t,t=>{const e=n[g]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(R(t))return D(t);if(L(t))return i=t,t=>(i.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o),t);if(t&&"function"==typeof t[I])return e=t,t=>{const i=e[I]();for(;;){let e;try{e=i.next()}catch(n){return t.error(n),t}if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof i.return&&t.add(()=>{i.return&&i.return()}),t};{const e=c(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,i,n};function N(t,e){return new v(i=>{const n=new d;let s=0;return n.add(e.schedule(function(){s!==t.length?(i.next(t[s++]),i.closed||n.add(this.schedule())):i.complete()})),n})}function V(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[g]}(t))return function(t,e){return new v(i=>{const n=new d;return n.add(e.schedule(()=>{const s=t[g]();n.add(s.subscribe({next(t){n.add(e.schedule(()=>i.next(t)))},error(t){n.add(e.schedule(()=>i.error(t)))},complete(){n.add(e.schedule(()=>i.complete()))}}))})),n})}(t,e);if(L(t))return function(t,e){return new v(i=>{const n=new d;return n.add(e.schedule(()=>t.then(t=>{n.add(e.schedule(()=>{i.next(t),n.add(e.schedule(()=>i.complete()))}))},t=>{n.add(e.schedule(()=>i.error(t)))}))),n})}(t,e);if(R(t))return N(t,e);if(function(t){return t&&"function"==typeof t[I]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new v(i=>{const n=new d;let s;return n.add(()=>{s&&"function"==typeof s.return&&s.return()}),n.add(e.schedule(()=>{s=t[I](),n.add(e.schedule(function(){if(i.closed)return;let t,e;try{const i=s.next();t=i.value,e=i.done}catch(n){return void i.error(n)}e?i.complete():(i.next(t),this.schedule())}))})),n})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof v?t:new v(F(t))}class B extends m{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class H extends m{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function z(t,e){if(e.closed)return;if(t instanceof v)return t.subscribe(e);let i;try{i=F(t)(e)}catch(n){e.error(n)}return i}function G(t,e,i=Number.POSITIVE_INFINITY){return"function"==typeof e?n=>n.pipe(G((i,n)=>V(t(i,n)).pipe(E((t,s)=>e(i,t,n,s))),i)):("number"==typeof e&&(i=e),e=>e.lift(new U(t,i)))}class U{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new j(t,this.project,this.concurrent))}}class j extends H{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}const W=G;function $(t=Number.POSITIVE_INFINITY){return G(_,t)}function q(t,e){return e?N(t,e):new v(D(t))}function Y(...t){let e=Number.POSITIVE_INFINITY,i=null,n=t[t.length-1];return O(n)?(i=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof n&&(e=t.pop()),null===i&&1===t.length&&t[0]instanceof v?t[0]:$(e)(q(t,i))}function Q(){return function(t){return t.lift(new X(t))}}class X{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const n=new K(t,i),s=e.subscribe(n);return n.closed||(n.connection=i.connect()),s}}class K extends m{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,n=t._connection;this.connection=null,!n||i&&n!==i||n.unsubscribe()}}class Z extends v{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new d,t.add(this.source.subscribe(new tt(this.getSubject(),this))),t.closed&&(this._connection=null,t=d.EMPTY)),t}refCount(){return Q()(this)}}const J=(()=>{const t=Z.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class tt extends S{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function et(t,e){return function(i){let n;if(n="function"==typeof t?t:function(){return t},"function"==typeof e)return i.lift(new it(n,e));const s=Object.create(i,J);return s.source=i,s.subjectFactory=n,s}}class it{constructor(t,e){this.subjectFactory=t,this.selector=e}call(t,e){const{selector:i}=this,n=this.subjectFactory(),s=i(n).subscribe(t);return s.add(e.subscribe(n)),s}}function nt(){return new k}function st(){return t=>Q()(et(nt)(t))}function rt(t){for(let e in t)if(t[e]===rt)return e;throw Error("Could not find renamed property on target object.")}function ot(t,e){for(const i in e)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}function at(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(at).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const i=e.indexOf("\n");return-1===i?e:e.substring(0,i)}function lt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const ct=rt({__forward_ref__:rt});function ut(t){return t.__forward_ref__=ut,t.toString=function(){return at(this())},t}function dt(t){return ht(t)?t():t}function ht(t){return"function"==typeof t&&t.hasOwnProperty(ct)&&t.__forward_ref__===ut}class pt extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function mt(t){return"string"==typeof t?t:null==t?"":String(t)}function ft(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():mt(t)}function gt(t,e){const i=e?` in ${e}`:"";throw new pt("201",`No provider for ${ft(t)} found${i}`)}function _t(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}const bt=_t;function yt(t){return{providers:t.providers||[],imports:t.imports||[]}}function vt(t){return wt(t,xt)||wt(t,kt)}function wt(t,e){return t.hasOwnProperty(e)?t[e]:null}function Ct(t){return t&&(t.hasOwnProperty(St)||t.hasOwnProperty(At))?t[St]:null}const xt=rt({"\u0275prov":rt}),St=rt({"\u0275inj":rt}),kt=rt({ngInjectableDef:rt}),At=rt({ngInjectorDef:rt});var Ot=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});let Et;function Tt(t){const e=Et;return Et=t,e}function Pt(t,e,i){const n=vt(t);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:i&Ot.Optional?null:void 0!==e?e:void gt(at(t),"Injector")}function Dt(t){return{toString:t}.toString()}var Mt=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),It=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const Rt="undefined"!=typeof globalThis&&globalThis,Lt="undefined"!=typeof window&&window,Ft="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Nt="undefined"!=typeof global&&global,Vt=Rt||Nt||Lt||Ft,Bt={},Ht=[],zt=[],Gt=rt({"\u0275cmp":rt}),Ut=rt({"\u0275dir":rt}),jt=rt({"\u0275pipe":rt}),Wt=rt({"\u0275mod":rt}),$t=rt({"\u0275loc":rt}),qt=rt({"\u0275fac":rt}),Yt=rt({__NG_ELEMENT_ID__:rt});let Qt=0;function Xt(t){return Dt(()=>{const e={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===Mt.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||zt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||It.Emulated,id:"c",styles:t.styles||zt,_:null,setInput:null,schemas:t.schemas||null,tView:null},n=t.directives,s=t.features,r=t.pipes;return i.id+=Qt++,i.inputs=ee(t.inputs,e),i.outputs=ee(t.outputs),s&&s.forEach(t=>t(i)),i.directiveDefs=n?()=>("function"==typeof n?n():n).map(Kt):null,i.pipeDefs=r?()=>("function"==typeof r?r():r).map(Zt):null,i})}function Kt(t){return se(t)||function(t){return t[Ut]||null}(t)}function Zt(t){return function(t){return t[jt]||null}(t)}const Jt={};function te(t){const e={type:t.type,bootstrap:t.bootstrap||zt,declarations:t.declarations||zt,imports:t.imports||zt,exports:t.exports||zt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&Dt(()=>{Jt[t.id]=t.type}),e}function ee(t,e){if(null==t)return Bt;const i={};for(const n in t)if(t.hasOwnProperty(n)){let s=t[n],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),i[s]=n,e&&(e[s]=r)}return i}const ie=Xt;function ne(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function se(t){return t[Gt]||null}function re(t,e){const i=t[Wt]||null;if(!i&&!0===e)throw new Error(`Type ${at(t)} does not have '\u0275mod' property.`);return i}function oe(t){return Array.isArray(t)&&"object"==typeof t[1]}function ae(t){return Array.isArray(t)&&!0===t[1]}function le(t){return 0!=(8&t.flags)}function ce(t){return 2==(2&t.flags)}function ue(t){return 1==(1&t.flags)}function de(t){return null!==t.template}function he(t,e){return t.hasOwnProperty(qt)?t[qt]:null}class pe{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function me(){return fe}function fe(t){return t.type.prototype.ngOnChanges&&(t.setInput=_e),ge}function ge(){const t=be(this),e=null==t?void 0:t.current;if(e){const i=t.previous;if(i===Bt)t.previous=e;else for(let t in e)i[t]=e[t];t.current=null,this.ngOnChanges(e)}}function _e(t,e,i,n){const s=be(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:Bt,current:null}),r=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[i],l=o[a];r[a]=new pe(l&&l.currentValue,e,o===Bt),t[n]=e}function be(t){return t.__ngSimpleChanges__||null}let ye;function ve(){return void 0!==ye?ye:"undefined"!=typeof document?document:void 0}function we(t){return!!t.listen}me.ngInherit=!0;const Ce={createRenderer:(t,e)=>ve()};function xe(t){for(;Array.isArray(t);)t=t[0];return t}function Se(t,e){return xe(e[t])}function ke(t,e){return xe(e[t.index])}function Ae(t,e){return t.data[e]}function Oe(t,e){return t[e]}function Ee(t,e){const i=e[t];return oe(i)?i:i[0]}function Te(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Pe(t){return 4==(4&t[2])}function De(t){return 128==(128&t[2])}function Me(t,e){return null==e?null:t[e]}function Ie(t){t[18]=0}function Re(t,e){t[5]+=e;let i=t,n=t[3];for(;null!==n&&(1===e&&1===i[5]||-1===e&&0===i[5]);)n[5]+=e,i=n,n=n[3]}const Le={lFrame:oi(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Fe(){return Le.bindingsEnabled}function Ne(){return Le.lFrame.lView}function Ve(){return Le.lFrame.tView}function Be(t){Le.lFrame.contextLView=t}function He(){let t=ze();for(;null!==t&&64===t.type;)t=t.parent;return t}function ze(){return Le.lFrame.currentTNode}function Ge(t,e){const i=Le.lFrame;i.currentTNode=t,i.isParent=e}function Ue(){return Le.lFrame.isParent}function je(){Le.lFrame.isParent=!1}function We(){return Le.isInCheckNoChangesMode}function $e(t){Le.isInCheckNoChangesMode=t}function qe(){const t=Le.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Ye(){return Le.lFrame.bindingIndex}function Qe(){return Le.lFrame.bindingIndex++}function Xe(t){const e=Le.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function Ke(t,e){const i=Le.lFrame;i.bindingIndex=i.bindingRootIndex=t,Ze(e)}function Ze(t){Le.lFrame.currentDirectiveIndex=t}function Je(t){const e=Le.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function ti(){return Le.lFrame.currentQueryIndex}function ei(t){Le.lFrame.currentQueryIndex=t}function ii(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function ni(t,e,i){if(i&Ot.SkipSelf){let n=e,s=t;for(;n=n.parent,!(null!==n||i&Ot.Host||(n=ii(s),null===n)||(s=s[15],10&n.type)););if(null===n)return!1;e=n,t=s}const n=Le.lFrame=ri();return n.currentTNode=e,n.lView=t,!0}function si(t){const e=ri(),i=t[1];Le.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex,e.inI18n=!1}function ri(){const t=Le.lFrame,e=null===t?null:t.child;return null===e?oi(t):e}function oi(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function ai(){const t=Le.lFrame;return Le.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const li=ai;function ci(){const t=ai();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ui(){return Le.lFrame.selectedIndex}function di(t){Le.lFrame.selectedIndex=t}function hi(){const t=Le.lFrame;return Ae(t.tView,t.selectedIndex)}function pi(){Le.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function mi(){Le.lFrame.currentNamespace=null}function fi(t,e){for(let i=e.directiveStart,n=e.directiveEnd;i=n)break}else e[a]<0&&(t[18]+=65536),(o>11>16&&(3&t[2])===e&&(t[2]+=2048,r.call(o)):r.call(o)}class wi{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Ci(t,e,i){const n=we(t);let s=0;for(;se){o=r-1;break}}}for(;r>16,n=e;for(;i>0;)n=n[15],i--;return n}let Pi=!0;function Di(t){const e=Pi;return Pi=t,e}let Mi=0;function Ii(t,e){const i=Li(t,e);if(-1!==i)return i;const n=e[1];n.firstCreatePass&&(t.injectorIndex=e.length,Ri(n.data,t),Ri(e,null),Ri(n.blueprint,null));const s=Fi(t,e),r=t.injectorIndex;if(Oi(s)){const t=Ei(s),i=Ti(s,e),n=i[1].data;for(let s=0;s<8;s++)e[r+s]=i[t+s]|n[t+s]}return e[r+8]=s,r}function Ri(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Li(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Fi(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let i=0,n=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(n=2===e?t.declTNode:1===e?s[6]:null,null===n)return-1;if(i++,s=s[15],-1!==n.injectorIndex)return n.injectorIndex|i<<16}return-1}function Ni(t,e,i){!function(t,e,i){let n;"string"==typeof i?n=i.charCodeAt(0)||0:i.hasOwnProperty(Yt)&&(n=i[Yt]),null==n&&(n=i[Yt]=Mi++);const s=255&n;e.data[t+(s>>5)]|=1<=0?255&e:Gi:e}(i);if("function"==typeof r){if(!ni(e,t,n))return n&Ot.Host?Vi(s,i,n):Bi(e,i,n,s);try{const t=r();if(null!=t||n&Ot.Optional)return t;gt(i)}finally{li()}}else if("number"==typeof r){let s=null,o=Li(t,e),a=-1,l=n&Ot.Host?e[16][6]:null;for((-1===o||n&Ot.SkipSelf)&&(a=-1===o?Fi(t,e):e[o+8],-1!==a&&qi(n,!1)?(s=e[1],o=Ei(a),e=Ti(a,e)):o=-1);-1!==o;){const t=e[1];if($i(r,o,t.data)){const t=Ui(o,e,i,s,n,l);if(t!==zi)return t}a=e[o+8],-1!==a&&qi(n,e[1].data[o+8]===l)&&$i(r,o,e)?(s=t,o=Ei(a),e=Ti(a,e)):o=-1}}}return Bi(e,i,n,s)}const zi={};function Gi(){return new Yi(He(),Ne())}function Ui(t,e,i,n,s,r){const o=e[1],a=o.data[t+8],l=ji(a,o,i,null==n?ce(a)&&Pi:n!=o&&0!=(3&a.type),s&Ot.Host&&r===a);return null!==l?Wi(e,o,l,a):zi}function ji(t,e,i,n,s){const r=t.providerIndexes,o=e.data,a=1048575&r,l=t.directiveStart,c=r>>20,u=s?a+c:t.directiveEnd;for(let d=n?a:a+c;d=l&&t.type===i)return d}if(s){const t=o[l];if(t&&de(t)&&t.type===i)return l}return null}function Wi(t,e,i,n){let s=t[i];const r=e.data;if(s instanceof wi){const o=s;o.resolving&&function(t,e){throw new pt("200",`Circular dependency in DI detected for ${t}`)}(ft(r[i]));const a=Di(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?Tt(o.injectImpl):null;ni(t,n,Ot.Default);try{s=t[i]=o.factory(void 0,r,t,n),e.firstCreatePass&&i>=n.directiveStart&&function(t,e,i){const{ngOnChanges:n,ngOnInit:s,ngDoCheck:r}=e.type.prototype;if(n){const n=fe(e);(i.preOrderHooks||(i.preOrderHooks=[])).push(t,n),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,n)}s&&(i.preOrderHooks||(i.preOrderHooks=[])).push(0-t,s),r&&((i.preOrderHooks||(i.preOrderHooks=[])).push(t,r),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,r))}(i,r[i],e)}finally{null!==l&&Tt(l),Di(a),o.resolving=!1,li()}}return s}function $i(t,e,i){return!!(i[e+(t>>5)]&1<{const e=t.prototype.constructor,i=e[qt]||Xi(e),n=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==n;){const t=s[qt]||Xi(s);if(t&&t!==i)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function Xi(t){return ht(t)?()=>{const e=Xi(dt(t));return e&&e()}:he(t)}function Ki(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const i=t.attrs;if(i){const t=i.length;let n=0;for(;n{const n=Zi(e);function s(...t){if(this instanceof s)return n.apply(this,t),this;const e=new s(...t);return i.annotation=e,i;function i(t,i,n){const s=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;for(;s.length<=n;)s.push(null);return(s[n]=s[n]||[]).push(e),t}}return i&&(s.prototype=Object.create(i.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}function tn(t,e,i,n){return Dt(()=>{const s=Zi(e);function r(...t){if(this instanceof r)return s.apply(this,t),this;const e=new r(...t);return function(i,s){const r=i.constructor,o=r.hasOwnProperty("__prop__metadata__")?r.__prop__metadata__:Object.defineProperty(r,"__prop__metadata__",{value:{}}).__prop__metadata__;o[s]=o.hasOwnProperty(s)&&o[s]||[],o[s].unshift(e),n&&n(i,s,...t)}}return i&&(r.prototype=Object.create(i.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}class en{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=_t({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const nn=new en("AnalyzeForEntryComponents");class sn{}const rn=tn("ViewChild",(t,e)=>Object.assign({selector:t,first:!0,isViewQuery:!0,descendants:!0},e),sn),on=Function;function an(t,e){void 0===e&&(e=t);for(let i=0;iArray.isArray(t)?ln(t,e):e(t))}function cn(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function un(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function dn(t,e){const i=[];for(let n=0;n=0?t[1|n]=i:(n=~n,function(t,e,i,n){let s=t.length;if(s==e)t.push(i,n);else if(1===s)t.push(n,t[0]),t[0]=i;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=i,t[e+1]=n}}(t,n,e,i)),n}function pn(t,e){const i=mn(t,e);if(i>=0)return t[1|i]}function mn(t,e){return function(t,e,i){let n=0,s=t.length>>1;for(;s!==n;){const i=n+(s-n>>1),r=t[i<<1];if(e===r)return i<<1;r>e?s=i:n=i+1}return~(s<<1)}(t,e)}const fn={},gn=/\n/gm,_n=rt({provide:String,useValue:rt});let bn;function yn(t){const e=bn;return bn=t,e}function vn(t,e=Ot.Default){if(void 0===bn)throw new Error("inject() must be called from an injection context");return null===bn?Pt(t,void 0,e):bn.get(t,e&Ot.Optional?null:void 0,e)}function wn(t,e=Ot.Default){return(Et||vn)(dt(t),e)}const Cn=wn;function xn(t){const e=[];for(let i=0;i({token:t})),-1),An=Sn(Ji("Optional"),8),On=Sn(Ji("SkipSelf"),4);let En,Tn;function Pn(t){var e;return(null===(e=function(){if(void 0===En&&(En=null,Vt.trustedTypes))try{En=Vt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return En}())||void 0===e?void 0:e.createHTML(t))||t}function Dn(){if(void 0===Tn&&(Tn=null,Vt.trustedTypes))try{Tn=Vt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Tn}function Mn(t){var e;return(null===(e=Dn())||void 0===e?void 0:e.createHTML(t))||t}function In(t){var e;return(null===(e=Dn())||void 0===e?void 0:e.createScriptURL(t))||t}class Rn{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Ln extends Rn{getTypeName(){return"HTML"}}class Fn extends Rn{getTypeName(){return"Style"}}class Nn extends Rn{getTypeName(){return"Script"}}class Vn extends Rn{getTypeName(){return"URL"}}class Bn extends Rn{getTypeName(){return"ResourceURL"}}function Hn(t){return t instanceof Rn?t.changingThisBreaksApplicationSecurity:t}function zn(t,e){const i=Gn(t);if(null!=i&&i!==e){if("ResourceURL"===i&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${i} (see https://g.co/ng/security#xss)`)}return i===e}function Gn(t){return t instanceof Rn&&t.getTypeName()||null}class Un{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Pn(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class jn{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Pn(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Pn(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let n=e.length-1;0qn(t.trim())).join(", ")),this.buf.push(" ",e,'="',ls(o),'"')}var n;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();ts.hasOwnProperty(e)&&!Xn.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(ls(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const os=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,as=/([^\#-~ |!])/g;function ls(t){return t.replace(/&/g,"&").replace(os,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(as,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let cs;function us(t,e){let i=null;try{cs=cs||function(t){const e=new jn(t);return function(){try{return!!(new window.DOMParser).parseFromString(Pn(""),"text/html")}catch(t){return!1}}()?new Un(e):e}(t);let n=e?String(e):"";i=cs.getInertBodyElement(n);let s=5,r=n;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,n=r,r=i.innerHTML,i=cs.getInertBodyElement(n)}while(n!==r);return Pn((new rs).sanitizeChildren(ds(i)||i))}finally{if(i){const t=ds(i)||i;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function ds(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var hs=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function ps(t){const e=gs();return e?Mn(e.sanitize(hs.HTML,t)||""):zn(t,"HTML")?Mn(Hn(t)):us(ve(),mt(t))}function ms(t){const e=gs();return e?e.sanitize(hs.URL,t)||"":zn(t,"URL")?Hn(t):qn(mt(t))}function fs(t){const e=gs();if(e)return In(e.sanitize(hs.RESOURCE_URL,t)||"");if(zn(t,"ResourceURL"))return In(Hn(t));throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)")}function gs(){const t=Ne();return t&&t[12]}function _s(t){return t.ngDebugContext}function bs(t){return t.ngOriginalError}function ys(t,...e){t.error(...e)}class vs{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),i=this._findContext(t),n=function(t){return t.ngErrorLogger||ys}(t);n(this._console,"ERROR",t),e&&n(this._console,"ORIGINAL ERROR",e),i&&n(this._console,"ERROR CONTEXT",i)}_findContext(t){return t?_s(t)?_s(t):this._findContext(bs(t)):null}_findOriginalError(t){let e=bs(t);for(;e&&bs(e);)e=bs(e);return e}}function ws(t,e){t.__ngContext__=e}const Cs=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Vt))();function xs(t){return{name:"body",target:t.ownerDocument.body}}function Ss(t){return t instanceof Function?t():t}var ks=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});function As(t,e){return(void 0)(t,e)}function Os(t){const e=t[3];return ae(e)?e[3]:e}function Es(t){return Ps(t[13])}function Ts(t){return Ps(t[4])}function Ps(t){for(;null!==t&&!ae(t);)t=t[4];return t}function Ds(t,e,i,n,s){if(null!=n){let r,o=!1;ae(n)?r=n:oe(n)&&(o=!0,n=n[0]);const a=xe(n);0===t&&null!==i?null==s?Bs(e,i,a):Vs(e,i,a,s||null,!0):1===t&&null!==i?Vs(e,i,a,s||null,!0):2===t?function(t,e,i){const n=zs(t,e);n&&function(t,e,i,n){we(t)?t.removeChild(e,i,n):e.removeChild(i)}(t,n,e,i)}(e,a,o):3===t&&e.destroyNode(a),null!=r&&function(t,e,i,n,s){const r=i[7];r!==xe(i)&&Ds(e,t,n,r,s);for(let o=10;o0&&(t[i-1][4]=n[4]);const o=un(t,10+e);Qs(n[1],s=n,s[11],2,null,null),s[0]=null,s[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),n[3]=null,n[4]=null,n[2]&=-129}var s;return n}function Ls(t,e){if(!(256&e[2])){const i=e[11];we(i)&&i.destroyNode&&Qs(t,e,i,3,null,null),function(t){let e=t[13];if(!e)return Fs(t[1],t);for(;e;){let i=null;if(oe(e))i=e[13];else{const t=e[10];t&&(i=t)}if(!i){for(;e&&!e[4]&&e!==t;)oe(e)&&Fs(e[1],e),e=e[3];null===e&&(e=t),oe(e)&&Fs(e[1],e),i=e&&e[4]}e=i}}(e)}}function Fs(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let i;if(null!=t&&null!=(i=t.destroyHooks))for(let n=0;n=0?n[s=l]():n[s=-l].unsubscribe(),r+=2}else{const t=n[s=i[r+1]];i[r].call(t)}if(null!==n){for(let t=s+1;tr?"":s[u+1].toLowerCase();const e=8&n?t:null;if(e&&-1!==Js(e,c,0)||2&n&&c!==t){if(sr(n))return!1;o=!0}}}}else{if(!o&&!sr(n)&&!sr(l))return!1;if(o&&sr(l))continue;o=!1,n=l|1&n}}return sr(n)||o}function sr(t){return 0==(1&t)}function rr(t,e,i,n){if(null===e)return-1;let s=0;if(n||!i){let i=!1;for(;s-1)for(i++;i0?'="'+e+'"':"")+"]"}else 8&n?s+="."+o:4&n&&(s+=" "+o);else""===s||sr(o)||(e+=lr(r,s),s=""),n=o,r=r||!sr(n);i++}return""!==s&&(e+=lr(r,s)),e}const ur={};function dr(t){hr(Ve(),Ne(),ui()+t,We())}function hr(t,e,i,n){if(!n)if(3==(3&e[2])){const n=t.preOrderCheckHooks;null!==n&&gi(e,n,i)}else{const n=t.preOrderHooks;null!==n&&_i(e,n,0,i)}di(i)}function pr(t,e){return t<<17|e<<2}function mr(t){return t>>17&32767}function fr(t){return 2|t}function gr(t){return(131068&t)>>2}function _r(t,e){return-131069&t|e<<2}function br(t){return 1|t}function yr(t,e){const i=t.contentQueries;if(null!==i)for(let n=0;n20&&hr(t,e,20,We()),i(n,s)}finally{di(r)}}function Or(t,e,i){if(le(e)){const n=e.directiveEnd;for(let s=e.directiveStart;s0;){const i=t[--e];if("number"==typeof i&&i<0)return i}return 0})(i)!=r&&i.push(r),i.push(n,s,o)}}function Nr(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Vr(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Br(t,e,i){if(i){if(e.exportAs)for(let n=0;n0&&qr(i)}}function qr(t){for(let i=Es(t);null!==i;i=Ts(i))for(let t=10;t0&&qr(e)}const e=t[1].components;if(null!==e)for(let i=0;i0&&qr(n)}}function Yr(t,e){const i=Ee(e,t),n=i[1];!function(t,e){for(let i=e.length;iPromise.resolve(null))();function eo(t){return t[7]||(t[7]=[])}function io(t){return t.cleanup||(t.cleanup=[])}function no(t,e,i){return(null===t||de(t))&&(i=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(i[e.index])),i[11]}function so(t,e){const i=t[9],n=i?i.get(vs,null):null;n&&n.handleError(e)}function ro(t,e,i,n,s){for(let r=0;rthis.processProvider(i,t,e)),ln([t],t=>this.processInjectorType(t,[],s)),this.records.set(lo,wo(void 0,this));const r=this.records.get(uo);this.scope=null!=r?r.value:null,this.source=n||("object"==typeof t?null:at(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=fn,i=Ot.Default){this.assertNotDestroyed();const n=yn(this);try{if(!(i&Ot.SkipSelf)){let e=this.records.get(t);if(void 0===e){const i=("function"==typeof(s=t)||"object"==typeof s&&s instanceof en)&&vt(t);e=i&&this.injectableDefInScope(i)?wo(yo(t),ho):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(i&Ot.Self?go():this.parent).get(t,e=i&Ot.Optional&&e===fn?null:e)}catch(r){if("NullInjectorError"===r.name){if((r.ngTempTokenPath=r.ngTempTokenPath||[]).unshift(at(t)),n)throw r;return function(t,e,i,n){const s=t.ngTempTokenPath;throw e.__source&&s.unshift(e.__source),t.message=function(t,e,i,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=at(e);if(Array.isArray(e))s=e.map(at).join(" -> ");else if("object"==typeof e){let t=[];for(let i in e)if(e.hasOwnProperty(i)){let n=e[i];t.push(i+":"+("string"==typeof n?JSON.stringify(n):at(n)))}s=`{${t.join(", ")}}`}return`${i}${n?"("+n+")":""}[${s}]: ${t.replace(gn,"\n ")}`}("\n"+t.message,s,i,n),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(r,t,"R3InjectorError",this.source)}throw r}finally{yn(n)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,i)=>t.push(at(i))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,i){if(!(t=dt(t)))return!1;let n=Ct(t);const s=null==n&&t.ngModule||void 0,r=void 0===s?t:s,o=-1!==i.indexOf(r);if(void 0!==s&&(n=Ct(s)),null==n)return!1;if(null!=n.imports&&!o){let t;i.push(r);try{ln(n.imports,n=>{this.processInjectorType(n,e,i)&&(void 0===t&&(t=[]),t.push(n))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,i,n||mo))}}this.injectorDefTypes.add(r);const a=he(r)||(()=>new r);this.records.set(r,wo(a,ho));const l=n.providers;if(null!=l&&!o){const e=t;ln(l,t=>this.processProvider(t,e,l))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,i){let n=xo(t=dt(t))?t:dt(t&&t.provide);const s=function(t,e,i){return Co(t)?wo(void 0,t.useValue):wo(vo(t),ho)}(t);if(xo(t)||!0!==t.multi)this.records.get(n);else{let e=this.records.get(n);e||(e=wo(void 0,ho,!0),e.factory=()=>xn(e.multi),this.records.set(n,e)),n=t,e.multi.push(t)}this.records.set(n,s)}hydrate(t,e){var i;return e.value===ho&&(e.value=po,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(i=e.value)&&"object"==typeof i&&"function"==typeof i.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function yo(t){const e=vt(t),i=null!==e?e.factory:he(t);if(null!==i)return i;if(t instanceof en)throw new Error(`Token ${at(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const i=dn(e,"?");throw new Error(`Can't resolve all parameters for ${at(t)}: (${i.join(", ")}).`)}const i=function(t){const e=t&&(t[xt]||t[kt]);if(e){const i=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${i}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${i}" class.`),e}return null}(t);return null!==i?()=>i.factory(t):()=>new t}(t);throw new Error("unreachable")}function vo(t,e,i){let n;if(xo(t)){const e=dt(t);return he(e)||yo(e)}if(Co(t))n=()=>dt(t.useValue);else if((s=t)&&s.useFactory)n=()=>t.useFactory(...xn(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))n=()=>wn(dt(t.useExisting));else{const e=dt(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return he(e)||yo(e);n=()=>new e(...xn(t.deps))}var s;return n}function wo(t,e,i=!1){return{factory:t,value:e,multi:i?[]:void 0}}function Co(t){return null!==t&&"object"==typeof t&&_n in t}function xo(t){return"function"==typeof t}const So=function(t,e,i){return function(t,e=null,i=null,n){const s=_o(t,e,i,n);return s._resolveInjectorDefTypes(),s}({name:i},e,t,i)};let ko=(()=>{class t{static create(t,e){return Array.isArray(t)?So(t,e,""):So(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=fn,t.NULL=new co,t.\u0275prov=_t({token:t,providedIn:"any",factory:()=>wn(lo)}),t.__NG_ELEMENT_ID__=-1,t})();function Ao(t,e){fi(Te(t)[1],He())}function Oo(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,i=!0;const n=[t];for(;e;){let s;if(de(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(i){n.push(s);const e=t;e.inputs=Eo(t.inputs),e.declaredInputs=Eo(t.declaredInputs),e.outputs=Eo(t.outputs);const i=s.hostBindings;i&&Do(t,i);const r=s.viewQuery,o=s.contentQueries;if(r&&To(t,r),o&&Po(t,o),ot(t.inputs,s.inputs),ot(t.declaredInputs,s.declaredInputs),ot(t.outputs,s.outputs),de(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let n=0;n=0;n--){const s=t[n];s.hostVars=e+=s.hostVars,s.hostAttrs=ki(s.hostAttrs,i=ki(i,s.hostAttrs))}}(n)}function Eo(t){return t===Bt?{}:t===zt?[]:t}function To(t,e){const i=t.viewQuery;t.viewQuery=i?(t,n)=>{e(t,n),i(t,n)}:e}function Po(t,e){const i=t.contentQueries;t.contentQueries=i?(t,n,s)=>{e(t,n,s),i(t,n,s)}:e}function Do(t,e){const i=t.hostBindings;t.hostBindings=i?(t,n)=>{e(t,n),i(t,n)}:e}let Mo=null;function Io(){if(!Mo){const t=Vt.Symbol;if(t&&t.iterator)Mo=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(xe(t[n.index])).target:n.index;if(we(i)){let o=null;if(!a&&l&&(o=function(t,e,i,n){const s=t.cleanup;if(null!=s)for(let r=0;ri?t[i]:null}"string"==typeof t&&(r+=2)}return null}(t,e,s,n.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=r,o.__ngLastListenerFn__=r,d=!1;else{r=ca(n,e,r,!1);const t=i.listen(p.name||m,s,r);u.push(r,t),c&&c.push(s,g,f,f+1)}}else r=ca(n,e,r,!0),m.addEventListener(s,r,o),u.push(r),c&&c.push(s,g,f,o)}else r=ca(n,e,r,!1);const h=n.outputs;let p;if(d&&null!==h&&(p=h[s])){const t=p.length;if(t)for(let i=0;i0;)e=e[15],t--;return e}(t,Le.lFrame.contextLView))[8]}(t)}function da(t,e){let i=null;const n=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let s=0;s=0}const ya={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function va(t){return t.substring(ya.key,ya.keyEnd)}function wa(t,e){const i=ya.textEnd;return i===e?-1:(e=ya.keyEnd=function(t,e,i){for(;e32;)e++;return e}(t,ya.key=e,i),Ca(t,e,i))}function Ca(t,e,i){for(;e=0;i=wa(e,i))hn(t,va(e),!0)}function Oa(t,e,i,n){const s=Ne(),r=Ve(),o=Xe(2);r.firstUpdatePass&&Pa(r,t,o,n),e!==ur&&Vo(s,o,e)&&Ia(r,r.data[ui()],s,s[11],t,s[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=at(Hn(t)))),t}(e,i),n,o)}function Ea(t,e,i,n){const s=Ve(),r=Xe(2);s.firstUpdatePass&&Pa(s,null,r,n);const o=Ne();if(i!==ur&&Vo(o,r,i)){const a=s.data[ui()];if(Fa(a,n)&&!Ta(s,r)){let t=n?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(i=lt(t,i||"")),Yo(s,a,o,i,n)}else!function(t,e,i,n,s,r,o,a){s===ur&&(s=Ht);let l=0,c=0,u=0=t.expandoStartIndex}function Pa(t,e,i,n){const s=t.data;if(null===s[i+1]){const r=s[ui()],o=Ta(t,i);Fa(r,n)&&null===e&&!o&&(e=!1),e=function(t,e,i,n){const s=Je(t);let r=n?e.residualClasses:e.residualStyles;if(null===s)0===(n?e.classBindings:e.styleBindings)&&(i=Ma(i=Da(null,t,e,i,n),e.attrs,n),r=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==s)if(i=Da(s,t,e,i,n),null===r){let i=function(t,e,i){const n=i?e.classBindings:e.styleBindings;if(0!==gr(n))return t[mr(n)]}(t,e,n);void 0!==i&&Array.isArray(i)&&(i=Da(null,t,e,i[1],n),i=Ma(i,e.attrs,n),function(t,e,i,n){t[mr(i?e.classBindings:e.styleBindings)]=n}(t,e,n,i))}else r=function(t,e,i){let n;const s=e.directiveEnd;for(let r=1+e.directiveStylingLast;r0)&&(u=!0)}else c=i;if(s)if(0!==l){const e=mr(t[a+1]);t[n+1]=pr(e,a),0!==e&&(t[e+1]=_r(t[e+1],n)),t[a+1]=131071&t[a+1]|n<<17}else t[n+1]=pr(a,0),0!==a&&(t[a+1]=_r(t[a+1],n)),a=n;else t[n+1]=pr(l,0),0===a?a=n:t[l+1]=_r(t[l+1],n),l=n;u&&(t[n+1]=fr(t[n+1])),_a(t,c,n,!0),_a(t,c,n,!1),function(t,e,i,n,s){const r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&mn(r,e)>=0&&(i[n+1]=br(i[n+1]))}(e,c,t,n,r),o=pr(a,l),r?e.classBindings=o:e.styleBindings=o}(s,r,e,i,o,n)}}function Da(t,e,i,n,s){let r=null;const o=i.directiveEnd;let a=i.directiveStylingLast;for(-1===a?a=i.directiveStart:a++;a0;){const e=t[s],r=Array.isArray(e),l=r?e[1]:e,c=null===l;let u=i[s+1];u===ur&&(u=c?Ht:void 0);let d=c?pn(u,n):l===n?u:void 0;if(r&&!La(d)&&(d=pn(e,n)),La(d)&&(a=d,o))return a;const h=t[s+1];s=o?mr(h):gr(h)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(a=pn(t,n))}return a}function La(t){return void 0!==t}function Fa(t,e){return 0!=(t.flags&(e?16:32))}function Na(t,e=""){const i=Ne(),n=Ve(),s=t+20,r=n.firstCreatePass?wr(n,s,1,e,null):n.data[s],o=i[s]=function(t,e){return we(t)?t.createText(e):t.createTextNode(e)}(i[11],e);js(n,i,o,r),Ge(r,!1)}function Va(t){return Ba("",t,""),Va}function Ba(t,e,i){const n=Ne(),s=Go(n,t,e,i);return s!==ur&&oo(n,ui(),s),Ba}function Ha(t,e,i,n,s){const r=Ne(),o=Uo(r,t,e,i,n,s);return o!==ur&&oo(r,ui(),o),Ha}function za(t,e,i,n,s,r,o){const a=Ne(),l=function(t,e,i,n,s,r,o,a){const l=Ho(t,Ye(),i,s,o);return Xe(3),l?e+mt(i)+n+mt(s)+r+mt(o)+a:ur}(a,t,e,i,n,s,r,o);return l!==ur&&oo(a,ui(),l),za}function Ga(t,e,i){Ea(hn,Aa,Go(Ne(),t,e,i),!0)}function Ua(t,e,i){const n=Ne();return Vo(n,Qe(),e)&&Rr(Ve(),hi(),n,t,e,n[11],i,!0),Ua}function ja(t,e,i){const n=Ne();if(Vo(n,Qe(),e)){const s=Ve(),r=hi();Rr(s,r,n,t,e,no(Je(s.data),r,n),i,!0)}return ja}var Wa=["en",[["a","p"],["AM","PM"],void 0],[["AM","PM"],void 0,void 0],[["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"]],void 0,[["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"]],void 0,[["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}",void 0,"{1} 'at' {0}",void 0],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let $a={};function qa(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let i=Ya(e);if(i)return i;const n=e.split("-")[0];if(i=Ya(n),i)return i;if("en"===n)return Wa;throw new Error(`Missing locale data for the locale "${t}".`)}function Ya(t){return t in $a||($a[t]=Vt.ng&&Vt.ng.common&&Vt.ng.common.locales&&Vt.ng.common.locales[t]),$a[t]}var Qa=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});let Xa="en-US";function Ka(t){var e,i;i="Expected localeId to be defined",null==(e=t)&&function(t,e,i,n){throw new Error(`ASSERTION ERROR: ${t} [Expected=> null != ${e} <=Actual]`)}(i,e),"string"==typeof t&&(Xa=t.toLowerCase().replace(/_/g,"-"))}function Za(t,e,i,n,s){if(t=dt(t),Array.isArray(t))for(let r=0;r>20;if(xo(t)||!t.multi){const n=new wi(l,s,$o),p=el(a,e,s?u:u+h,d);-1===p?(Ni(Ii(c,o),r,a),Ja(r,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),i.push(n),o.push(n)):(i[p]=n,o[p]=n)}else{const p=el(a,e,u+h,d),m=el(a,e,u,u+h),f=p>=0&&i[p],g=m>=0&&i[m];if(s&&!g||!s&&!f){Ni(Ii(c,o),r,a);const u=function(t,e,i,n,s){const r=new wi(t,i,$o);return r.multi=[],r.index=e,r.componentProviders=0,tl(r,s,n&&!i),r}(s?nl:il,i.length,s,n,l);!s&&g&&(i[m].providerFactory=u),Ja(r,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),i.push(u),o.push(u)}else Ja(r,t,p>-1?p:m,tl(i[s?m:p],l,!s&&n));!s&&n&&g&&i[m].componentProviders++}}}function Ja(t,e,i,n){const s=xo(e);if(s||e.useClass){const r=(e.useClass||e).prototype.ngOnDestroy;if(r){const o=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=o.indexOf(i);-1===t?o.push(i,[n,r]):o[t+1].push(n,r)}else o.push(i,r)}}}function tl(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function el(t,e,i,n){for(let s=i;s{i.providersResolver=(i,n)=>function(t,e,i){const n=Ve();if(n.firstCreatePass){const s=de(t);Za(i,n.data,n.blueprint,s,!0),Za(e,n.data,n.blueprint,s,!1)}}(i,n?n(t):t,e)}}class ol{}class al{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${at(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let ll=(()=>{class t{}return t.NULL=new al,t})();function cl(...t){}function ul(t,e){return new hl(ke(t,e))}const dl=function(){return ul(He(),Ne())};let hl=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=dl,t})();function pl(t){return t instanceof hl?t.nativeElement:t}class ml{}let fl=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>gl(),t})();const gl=function(){const t=Ne(),e=Ee(He().index,t);return function(t){return t[11]}(oe(e)?e:t)};let _l=(()=>{class t{}return t.\u0275prov=_t({token:t,providedIn:"root",factory:()=>null}),t})();class bl{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const yl=new bl("11.2.8");class vl{constructor(){}supports(t){return Lo(t)}create(t){return new Cl(t)}}const wl=(t,e)=>e;class Cl{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||wl}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,n=0,s=null;for(;e||i;){const r=!i||e&&e.currentIndex{n=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,n)?(r&&(s=this._verifyReinsertion(s,t,n,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,n,e),r=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,n){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,n)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,n))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,n)):t=this._addAfter(new xl(e,i),s,n),t}_verifyReinsertion(t,e,i,n){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,n):t.currentIndex!=n&&(t.currentIndex=n,this._addToMoves(t,n)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const n=t._prevRemoved,s=t._nextRemoved;return null===n?this._removalsHead=s:n._nextRemoved=s,null===s?this._removalsTail=n:s._prevRemoved=n,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const n=null===e?this._itHead:e._next;return t._next=n,t._prev=e,null===n?this._itTail=t:n._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new kl),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new kl),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class xl{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Sl{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class kl{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new Sl,this.map.set(e,i)),i.add(t)}get(t,e){const i=this.map.get(t);return i?i.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Al(t,e,i){const n=t.previousIndex;if(null===n)return n;let s=0;return i&&n{if(e&&e.key===i)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const n=this._getOrCreateRecordForKey(i,t);e=this._insertBeforeOrAppend(e,n)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const i=this._records.get(t);this._maybeAddToChanges(i,e);const n=i._prev,s=i._next;return n&&(n._next=s),s&&(s._prev=n),i._next=null,i._prev=null,i}const i=new Tl(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class Tl{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Pl(){return new Dl([new vl])}let Dl=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(null!=i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Pl()),deps:[[t,new On,new An]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${i=t,i.name||typeof i}'`);var i}}return t.\u0275prov=_t({token:t,providedIn:"root",factory:Pl}),t})();function Ml(){return new Il([new Ol])}let Il=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Ml()),deps:[[t,new On,new An]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=_t({token:t,providedIn:"root",factory:Ml}),t})();function Rl(t,e,i,n,s=!1){for(;null!==i;){const r=e[i.index];if(null!==r&&n.push(xe(r)),ae(r))for(let t=10;t-1&&(Rs(t,i),un(e,i))}this._attachedToViewContainer=!1}Ls(this._lView[1],this._lView)}onDestroy(t){Mr(this._lView[1],this._lView,null,t)}markForCheck(){Xr(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Kr(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,i){$e(!0);try{Kr(t,e,i)}finally{$e(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,Qs(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Fl extends Ll{constructor(t){super(t),this._view=t}detectChanges(){Zr(this._view)}checkNoChanges(){!function(t){$e(!0);try{Zr(t)}finally{$e(!1)}}(this._view)}get context(){return null}}const Nl=Bl;let Vl=(()=>{class t{}return t.__NG_ELEMENT_ID__=Nl,t.__ChangeDetectorRef__=!0,t})();function Bl(t=!1){return function(t,e,i){if(!i&&ce(t)){const i=Ee(t.index,e);return new Ll(i,i)}return 47&t.type?new Ll(e[16],e):null}(He(),Ne(),t)}const Hl=[new Ol],zl=new Dl([new vl]),Gl=new Il(Hl),Ul=function(){return ql(He(),Ne())};let jl=(()=>{class t{}return t.__NG_ELEMENT_ID__=Ul,t})();const Wl=jl,$l=class extends Wl{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t){const e=this._declarationTContainer.tViews,i=vr(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const n=this._declarationLView[19];return null!==n&&(i[19]=n.createEmbeddedView(e)),xr(e,i,t),new Ll(i)}};function ql(t,e){return 4&t.type?new $l(e,t,ul(t,e)):null}class Yl{}class Ql{}const Xl=function(){return ic(He(),Ne())};let Kl=(()=>{class t{}return t.__NG_ELEMENT_ID__=Xl,t})();const Zl=Kl,Jl=class extends Zl{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return ul(this._hostTNode,this._hostLView)}get injector(){return new Yi(this._hostTNode,this._hostLView)}get parentInjector(){const t=Fi(this._hostTNode,this._hostLView);if(Oi(t)){const e=Ti(t,this._hostLView),i=Ei(t);return new Yi(e[1].data[i+8],e)}return new Yi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=tc(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){const n=t.createEmbeddedView(e||{});return this.insert(n,i),n}createComponent(t,e,i,n,s){const r=i||this.parentInjector;if(!s&&null==t.ngModule&&r){const t=r.get(Yl,null);t&&(s=t)}const o=t.create(r,n,void 0,s);return this.insert(o.hostView,e),o}insert(t,e){const i=t._lView,n=i[1];if(ae(i[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=i[3],n=new Jl(e,e[6],e[3]);n.detach(n.indexOf(t))}}const s=this._adjustIndex(e),r=this._lContainer;!function(t,e,i,n){const s=10+n,r=i.length;n>0&&(i[s-1][4]=e),nCs});class ac extends ol{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(cr).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return rc(this.componentDef.inputs)}get outputs(){return rc(this.componentDef.outputs)}create(t,e,i,n){const s=(n=n||this.ngModule)?function(t,e){return{get:(i,n,s)=>{const r=t.get(i,nc,s);return r!==nc||n===nc?r:e.get(i,n,s)}}}(t,n.injector):t,r=s.get(ml,Ce),o=s.get(_l,null),a=r.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=i?function(t,e,i){if(we(t))return t.selectRootElement(e,i===It.ShadowDom);let n="string"==typeof e?t.querySelector(e):e;return n.textContent="",n}(a,i,this.componentDef.encapsulation):Ms(r.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,d={components:[],scheduler:Cs,clean:to,playerHandler:null,flags:0},h=Dr(0,null,null,1,0,null,null,null,null,null),p=vr(null,h,d,u,null,null,r,a,o,s);let m,f;si(p);try{const t=function(t,e,i,n,s,r){const o=i[1];i[20]=t;const a=wr(o,20,2,"#host",null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(ao(a,l,!0),null!==t&&(Ci(s,t,l),null!==a.classes&&Zs(s,t,a.classes),null!==a.styles&&Ks(s,t,a.styles)));const c=n.createRenderer(t,e),u=vr(i,Pr(e),null,e.onPush?64:16,i[20],a,n,c,null,null);return o.firstCreatePass&&(Ni(Ii(a,i),o,e.type),Vr(o,a),Hr(a,i.length,1)),Qr(i,u),i[20]=u}(c,this.componentDef,p,r,a);if(c)if(i)Ci(a,c,["ng-version",yl.full]);else{const{attrs:t,classes:e}=function(t){const e=[],i=[];let n=1,s=2;for(;n0&&Zs(a,c,e.join(" "))}if(f=Ae(h,20),void 0!==e){const t=f.projection=[];for(let i=0;it(o,e)),e.contentQueries){const t=He();e.contentQueries(1,o,t.directiveStart)}const a=He();return!r.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(di(a.index),Fr(i[1],a,0,a.directiveStart,a.directiveEnd,e),Nr(e,o)),o}(t,this.componentDef,p,d,[Ao]),xr(h,p,null)}finally{ci()}return new lc(this.componentType,m,ul(f,p),p,f)}}class lc extends class{}{constructor(t,e,i,n,s){super(),this.location=i,this._rootLView=n,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new Fl(n),this.componentType=t}get injector(){return new Yi(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const cc=new Map;class uc extends Yl{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new sc(this);const i=re(t),n=t[$t]||null;n&&Ka(n),this._bootstrapComponents=Ss(i.bootstrap),this._r3Injector=_o(t,e,[{provide:Yl,useValue:this},{provide:ll,useValue:this.componentFactoryResolver}],at(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=ko.THROW_IF_NOT_FOUND,i=Ot.Default){return t===ko||t===Yl||t===lo?this:this._r3Injector.get(t,e,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class dc extends Ql{constructor(t){super(),this.moduleType=t,null!==re(t)&&function(t){const e=new Set;!function t(i){const n=re(i,!0),s=n.id;null!==s&&(function(t,e,i){if(e&&e!==i)throw new Error(`Duplicate module registered for ${t} - ${at(e)} vs ${at(e.name)}`)}(s,cc.get(s),i),cc.set(s,i));const r=Ss(n.imports);for(const o of r)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new uc(this.moduleType,t)}}function hc(t,e,i){const n=qe()+t,s=Ne();return s[n]===ur?No(s,n,i?e.call(i):e()):function(t,e){return t[e]}(s,n)}function pc(t,e,i,n){return bc(Ne(),qe(),t,e,i,n)}function mc(t,e,i,n,s){return yc(Ne(),qe(),t,e,i,n,s)}function fc(t,e,i,n,s,r){return function(t,e,i,n,s,r,o,a){const l=e+i;return Ho(t,l,s,r,o)?No(t,l+3,a?n.call(a,s,r,o):n(s,r,o)):_c(t,l+3)}(Ne(),qe(),t,e,i,n,s,r)}function gc(t,e,i,n,s,r,o){return function(t,e,i,n,s,r,o,a,l){const c=e+i;return function(t,e,i,n,s,r){const o=Bo(t,e,i,n);return Bo(t,e+2,s,r)||o}(t,c,s,r,o,a)?No(t,c+4,l?n.call(l,s,r,o,a):n(s,r,o,a)):_c(t,c+4)}(Ne(),qe(),t,e,i,n,s,r,o)}function _c(t,e){const i=t[e];return i===ur?void 0:i}function bc(t,e,i,n,s,r){const o=e+i;return Vo(t,o,s)?No(t,o+1,r?n.call(r,s):n(s)):_c(t,o+1)}function yc(t,e,i,n,s,r,o){const a=e+i;return Bo(t,a,s,r)?No(t,a+2,o?n.call(o,s,r):n(s,r)):_c(t,a+2)}function vc(t,e){const i=Ve();let n;const s=t+20;i.firstCreatePass?(n=function(t,e){if(e)for(let i=e.length-1;i>=0;i--){const n=e[i];if(t===n.name)return n}throw new pt("302",`The pipe '${t}' could not be found!`)}(e,i.pipeRegistry),i.data[s]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(s,n.onDestroy)):n=i.data[s];const r=n.factory||(n.factory=he(n.type)),o=Tt($o);try{const t=Di(!1),e=r();return Di(t),function(t,e,i,n){i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=n}(i,Ne(),s,e),e}finally{Tt(o)}}function wc(t,e,i){const n=t+20,s=Ne(),r=Oe(s,n);return Sc(s,xc(s,n)?bc(s,qe(),e,r.transform,i,r):r.transform(i))}function Cc(t,e,i,n){const s=t+20,r=Ne(),o=Oe(r,s);return Sc(r,xc(r,s)?yc(r,qe(),e,o.transform,i,n,o):o.transform(i,n))}function xc(t,e){return t[1].data[e].pure}function Sc(t,e){return Ro.isWrapped(e)&&(e=Ro.unwrap(e),t[Ye()]=ur),e}const kc=class extends k{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){let n,s=t=>null,r=()=>null;t&&"object"==typeof t?(n=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(s=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(r=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(n=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(s=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),i&&(r=this.__isAsync?()=>{setTimeout(()=>i())}:()=>{i()}));const o=super.subscribe(n,s,r);return t instanceof d&&t.add(o),o}};function Ac(){return this._results[Io()]()}class Oc{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Io(),i=Oc.prototype;i[e]||(i[e]=Ac)}get changes(){return this._changes||(this._changes=new kc)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){this.dirty=!1;const i=an(t);(this._changesDetected=!function(t,e,i){if(t.length!==e.length)return!1;for(let n=0;n0)n.push(o[t/2]);else{const s=r[t+1],o=e[-i];for(let t=10;t({bindingPropertyName:t})),$c=tn("Output",t=>({bindingPropertyName:t})),qc=new en("Application Initializer");let Yc=(()=>{class t{constructor(t){this.appInits=t,this.resolve=cl,this.reject=cl,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(wn(qc,8))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();const Qc=new en("AppId"),Xc={provide:Qc,useFactory:function(){return`${Kc()}${Kc()}${Kc()}`},deps:[]};function Kc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Zc=new en("Platform Initializer"),Jc=new en("Platform ID"),tu=new en("appBootstrapListener");let eu=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();const iu=new en("LocaleId"),nu=new en("DefaultCurrencyCode");class su{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const ru=function(t){return new dc(t)},ou=ru,au=function(t){return Promise.resolve(ru(t))},lu=function(t){const e=ru(t),i=Ss(re(t).declarations).reduce((t,e)=>{const i=se(e);return i&&t.push(new ac(i)),t},[]);return new su(e,i)},cu=lu,uu=function(t){return Promise.resolve(lu(t))};let du=(()=>{class t{constructor(){this.compileModuleSync=ou,this.compileModuleAsync=au,this.compileModuleAndAllComponentsSync=cu,this.compileModuleAndAllComponentsAsync=uu}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();const hu=(()=>Promise.resolve(0))();function pu(t){"undefined"==typeof Zone?hu.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class mu{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new kc(!1),this.onMicrotaskEmpty=new kc(!1),this.onStable=new kc(!1),this.onError=new kc(!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.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=!i&&e,this.shouldCoalesceRunChangeDetection=i,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let t=Vt.requestAnimationFrame,e=Vt.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i);const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Vt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,_u(t),gu(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),_u(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,n,s,r,o,a)=>{try{return bu(t),i.invokeTask(s,r,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&e(),yu(t)}},onInvoke:(i,n,s,r,o,a,l)=>{try{return bu(t),i.invoke(s,r,o,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),yu(t)}},onHasTask:(e,i,n,s)=>{e.hasTask(n,s),i===n&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,_u(t),gu(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,i,n,s)=>(e.handleError(n,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!mu.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(mu.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,n){const s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+n,t,fu,cl,cl);try{return s.runTask(r,e,i)}finally{s.cancelTask(r)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const fu={};function gu(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function _u(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function bu(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function yu(t){t._nesting--,gu(t)}class vu{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new kc,this.onMicrotaskEmpty=new kc,this.onStable=new kc,this.onError=new kc}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,n){return t.apply(e,i)}}let wu=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{mu.assertNotInAngularZone(),pu(()=>{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())pu(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,i){let n=-1;e&&e>0&&(n=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==n),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:n,updateCb:i})}whenStable(t,e,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,i){return[]}}return t.\u0275fac=function(e){return new(e||t)(wn(mu))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})(),Cu=(()=>{class t{constructor(){this._applications=new Map,ku.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return ku.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();class xu{addToWindow(t){}findTestabilityInTree(t,e,i){return null}}let Su,ku=new xu,Au=!0,Ou=!1;function Eu(){return Ou=!0,Au}const Tu=new en("AllowMultipleToken");class Pu{constructor(t,e){this.name=t,this.token=e}}function Du(t,e,i=[]){const n=`Platform: ${e}`,s=new en(n);return(e=[])=>{let r=Mu();if(!r||r.injector.get(Tu,!1))if(t)t(i.concat(e).concat({provide:s,useValue:!0}));else{const t=i.concat(e).concat({provide:s,useValue:!0},{provide:uo,useValue:"platform"});!function(t){if(Su&&!Su.destroyed&&!Su.injector.get(Tu,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Su=t.get(Iu);const e=t.get(Zc,null);e&&e.forEach(t=>t())}(ko.create({providers:t,name:n}))}return function(t){const e=Mu();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function Mu(){return Su&&!Su.destroyed?Su:null}let Iu=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const i=function(t,e){let i;return i="noop"===t?new vu:("zone.js"===t?void 0:t)||new mu({enableLongStackTrace:Eu(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),i}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),n=[{provide:mu,useValue:i}];return i.run(()=>{const e=ko.create({providers:n,parent:this.injector,name:t.moduleType.name}),s=t.create(e),r=s.injector.get(vs,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.runOutsideAngular(()=>{const t=i.onError.subscribe({next:t=>{r.handleError(t)}});s.onDestroy(()=>{Fu(this._modules,s),t.unsubscribe()})}),function(t,e,i){try{const n=i();return ia(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}(r,i,()=>{const t=s.injector.get(Yc);return t.runInitializers(),t.donePromise.then(()=>(Ka(s.injector.get(iu,"en-US")||"en-US"),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const i=Ru({},e);return function(t,e,i){const n=new dc(i);return Promise.resolve(n)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,i))}_moduleDoBootstrap(t){const e=t.injector.get(Lu);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${at(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(wn(ko))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();function Ru(t,e){return Array.isArray(e)?e.reduce(Ru,t):Object.assign(Object.assign({},t),e)}let Lu=(()=>{class t{constructor(t,e,i,n,s){this._zone=t,this._injector=e,this._exceptionHandler=i,this._componentFactoryResolver=n,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const r=new v(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),o=new v(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{mu.assertNotInAngularZone(),pu(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const i=this._zone.onUnstable.subscribe(()=>{mu.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),i.unsubscribe()}});this.isStable=Y(r,o.pipe(st()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let i;i=t instanceof ol?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(i.componentType);const n=i.isBoundToModule?void 0:this._injector.get(Yl),s=i.create(ko.NULL,[],e||i.selector,n),r=s.location.nativeElement,o=s.injector.get(wu,null),a=o&&s.injector.get(Cu);return o&&a&&a.registerApplication(r,o),s.onDestroy(()=>{this.detachView(s.hostView),Fu(this.components,s),a&&a.unregisterApplication(r)}),this._loadComponent(s),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Fu(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(tu,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(wn(mu),wn(ko),wn(vs),wn(ll),wn(Yc))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();function Fu(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}class Nu{}class Vu{}const Bu={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Hu=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Bu}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,n]=t.split("#");return void 0===n&&(n="default"),i("zn8P")(e).then(t=>t[n]).then(t=>zu(t,e,n)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,n]=t.split("#"),s="NgFactory";return void 0===n&&(n="default",s=""),i("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[n+s]).then(t=>zu(t,e,n))}}return t.\u0275fac=function(e){return new(e||t)(wn(du),wn(Vu,8))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();function zu(t,e,i){if(!t)throw new Error(`Cannot find '${i}' in '${e}'`);return t}const Gu=Du(null,"core",[{provide:Jc,useValue:"unknown"},{provide:Iu,deps:[ko]},{provide:Cu,deps:[]},{provide:eu,deps:[]}]),Uu=[{provide:Lu,useClass:Lu,deps:[mu,ko,vs,ll,Yc]},{provide:oc,deps:[mu],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Yc,useClass:Yc,deps:[[new An,qc]]},{provide:du,useClass:du,deps:[]},Xc,{provide:Dl,useFactory:function(){return zl},deps:[]},{provide:Il,useFactory:function(){return Gl},deps:[]},{provide:iu,useFactory:function(t){return Ka(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new kn(iu),new An,new On]]},{provide:nu,useValue:"USD"}];let ju=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(wn(Lu))},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:Uu}),t})(),Wu=null;function $u(){return Wu}const qu=new en("DocumentToken");let Yu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({factory:Qu,token:t,providedIn:"platform"}),t})();function Qu(){return wn(Ku)}const Xu=new en("Location Initialized");let Ku=(()=>{class t extends Yu{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=$u().getLocation(),this._history=$u().getHistory()}getBaseHrefFromDOM(){return $u().getBaseHref(this._doc)}onPopState(t){$u().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){$u().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,i){Zu()?this._history.pushState(t,e,i):this.location.hash=i}replaceState(t,e,i){Zu()?this._history.replaceState(t,e,i):this.location.hash=i}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(wn(qu))},t.\u0275prov=_t({factory:Ju,token:t,providedIn:"platform"}),t})();function Zu(){return!!window.history.pushState}function Ju(){return new Ku(wn(qu))}function td(t,e){if(0==t.length)return e;if(0==e.length)return t;let i=0;return t.endsWith("/")&&i++,e.startsWith("/")&&i++,2==i?t+e.substring(1):1==i?t+e:t+"/"+e}function ed(t){const e=t.match(/#|\?|$/),i=e&&e.index||t.length;return t.slice(0,i-("/"===t[i-1]?1:0))+t.slice(i)}function id(t){return t&&"?"!==t[0]?"?"+t:t}let nd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({factory:sd,token:t,providedIn:"root"}),t})();function sd(t){const e=wn(qu).location;return new od(wn(Yu),e&&e.origin||"")}const rd=new en("appBaseHref");let od=(()=>{class t extends nd{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return td(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+id(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${e}${i}`:e}pushState(t,e,i,n){const s=this.prepareExternalUrl(i+id(n));this._platformLocation.pushState(t,e,s)}replaceState(t,e,i,n){const s=this.prepareExternalUrl(i+id(n));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(wn(Yu),wn(rd,8))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})(),ad=(()=>{class t extends nd{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=td(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,i,n){let s=this.prepareExternalUrl(i+id(n));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,i,n){let s=this.prepareExternalUrl(i+id(n));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(wn(Yu),wn(rd,8))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})(),ld=(()=>{class t{constructor(t,e){this._subject=new kc,this._urlChangeListeners=[],this._platformStrategy=t;const i=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=ed(ud(i)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+id(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,ud(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",i=null){this._platformStrategy.pushState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+id(e)),i)}replaceState(t,e="",i=null){this._platformStrategy.replaceState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+id(e)),i)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(i=>i(t,e))}subscribe(t,e,i){return this._subject.subscribe({next:t,error:e,complete:i})}}return t.\u0275fac=function(e){return new(e||t)(wn(nd),wn(Yu))},t.normalizeQueryParams=id,t.joinWithSlash=td,t.stripTrailingSlash=ed,t.\u0275prov=_t({factory:cd,token:t,providedIn:"root"}),t})();function cd(){return new ld(wn(nd),wn(Yu))}function ud(t){return t.replace(/\/index.html$/,"")}var dd=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}({}),hd=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),pd=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),md=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),fd=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),gd=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function _d(t,e){return Cd(qa(t)[Qa.DateFormat],e)}function bd(t,e){return Cd(qa(t)[Qa.TimeFormat],e)}function yd(t,e){return Cd(qa(t)[Qa.DateTimeFormat],e)}function vd(t,e){const i=qa(t),n=i[Qa.NumberSymbols][e];if(void 0===n){if(e===gd.CurrencyDecimal)return i[Qa.NumberSymbols][gd.Decimal];if(e===gd.CurrencyGroup)return i[Qa.NumberSymbols][gd.Group]}return n}function wd(t){if(!t[Qa.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[Qa.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Cd(t,e){for(let i=e;i>-1;i--)if(void 0!==t[i])return t[i];throw new Error("Locale data API: locale data undefined")}function xd(t){const[e,i]=t.split(":");return{hours:+e,minutes:+i}}const Sd=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,kd={},Ad=/((?:[^GyYMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|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]*)/;var Od=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),Ed=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}({}),Td=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function Pd(t,e,i,n){let s=function(t){if(Ud(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[e,i=1,n=1]=t.split("-").map(t=>+t);return Dd(e,i-1,n)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(Sd))return function(t){const e=new Date(0);let i=0,n=0;const s=t[8]?e.setUTCFullYear:e.setFullYear,r=t[8]?e.setUTCHours:e.setHours;t[9]&&(i=Number(t[9]+t[10]),n=Number(t[9]+t[11])),s.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const o=Number(t[4]||0)-i,a=Number(t[5]||0)-n,l=Number(t[6]||0),c=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return r.call(e,o,a,l,c),e}(i)}const e=new Date(t);if(!Ud(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=Md(i,e)||e;let r,o=[];for(;e;){if(r=Ad.exec(e),!r){o.push(e);break}{o=o.concat(r.slice(1));const t=o.pop();if(!t)break;e=t}}let a=s.getTimezoneOffset();n&&(a=Gd(n,a),s=function(t,e,i){const n=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(Gd(e,n)-n))}(s,n));let l="";return o.forEach(t=>{const e=function(t){if(zd[t])return zd[t];let e;switch(t){case"G":case"GG":case"GGG":e=Fd(Td.Eras,md.Abbreviated);break;case"GGGG":e=Fd(Td.Eras,md.Wide);break;case"GGGGG":e=Fd(Td.Eras,md.Narrow);break;case"y":e=Ld(Ed.FullYear,1,0,!1,!0);break;case"yy":e=Ld(Ed.FullYear,2,0,!0,!0);break;case"yyy":e=Ld(Ed.FullYear,3,0,!1,!0);break;case"yyyy":e=Ld(Ed.FullYear,4,0,!1,!0);break;case"Y":e=Hd(1);break;case"YY":e=Hd(2,!0);break;case"YYY":e=Hd(3);break;case"YYYY":e=Hd(4);break;case"M":case"L":e=Ld(Ed.Month,1,1);break;case"MM":case"LL":e=Ld(Ed.Month,2,1);break;case"MMM":e=Fd(Td.Months,md.Abbreviated);break;case"MMMM":e=Fd(Td.Months,md.Wide);break;case"MMMMM":e=Fd(Td.Months,md.Narrow);break;case"LLL":e=Fd(Td.Months,md.Abbreviated,pd.Standalone);break;case"LLLL":e=Fd(Td.Months,md.Wide,pd.Standalone);break;case"LLLLL":e=Fd(Td.Months,md.Narrow,pd.Standalone);break;case"w":e=Bd(1);break;case"ww":e=Bd(2);break;case"W":e=Bd(1,!0);break;case"d":e=Ld(Ed.Date,1);break;case"dd":e=Ld(Ed.Date,2);break;case"E":case"EE":case"EEE":e=Fd(Td.Days,md.Abbreviated);break;case"EEEE":e=Fd(Td.Days,md.Wide);break;case"EEEEE":e=Fd(Td.Days,md.Narrow);break;case"EEEEEE":e=Fd(Td.Days,md.Short);break;case"a":case"aa":case"aaa":e=Fd(Td.DayPeriods,md.Abbreviated);break;case"aaaa":e=Fd(Td.DayPeriods,md.Wide);break;case"aaaaa":e=Fd(Td.DayPeriods,md.Narrow);break;case"b":case"bb":case"bbb":e=Fd(Td.DayPeriods,md.Abbreviated,pd.Standalone,!0);break;case"bbbb":e=Fd(Td.DayPeriods,md.Wide,pd.Standalone,!0);break;case"bbbbb":e=Fd(Td.DayPeriods,md.Narrow,pd.Standalone,!0);break;case"B":case"BB":case"BBB":e=Fd(Td.DayPeriods,md.Abbreviated,pd.Format,!0);break;case"BBBB":e=Fd(Td.DayPeriods,md.Wide,pd.Format,!0);break;case"BBBBB":e=Fd(Td.DayPeriods,md.Narrow,pd.Format,!0);break;case"h":e=Ld(Ed.Hours,1,-12);break;case"hh":e=Ld(Ed.Hours,2,-12);break;case"H":e=Ld(Ed.Hours,1);break;case"HH":e=Ld(Ed.Hours,2);break;case"m":e=Ld(Ed.Minutes,1);break;case"mm":e=Ld(Ed.Minutes,2);break;case"s":e=Ld(Ed.Seconds,1);break;case"ss":e=Ld(Ed.Seconds,2);break;case"S":e=Ld(Ed.FractionalSeconds,1);break;case"SS":e=Ld(Ed.FractionalSeconds,2);break;case"SSS":e=Ld(Ed.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Nd(Od.Short);break;case"ZZZZZ":e=Nd(Od.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Nd(Od.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Nd(Od.Long);break;default:return null}return zd[t]=e,e}(t);l+=e?e(s,i,a):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function Dd(t,e,i){const n=new Date(0);return n.setFullYear(t,e,i),n.setHours(0,0,0),n}function Md(t,e){const i=function(t){return qa(t)[Qa.LocaleId]}(t);if(kd[i]=kd[i]||{},kd[i][e])return kd[i][e];let n="";switch(e){case"shortDate":n=_d(t,fd.Short);break;case"mediumDate":n=_d(t,fd.Medium);break;case"longDate":n=_d(t,fd.Long);break;case"fullDate":n=_d(t,fd.Full);break;case"shortTime":n=bd(t,fd.Short);break;case"mediumTime":n=bd(t,fd.Medium);break;case"longTime":n=bd(t,fd.Long);break;case"fullTime":n=bd(t,fd.Full);break;case"short":const e=Md(t,"shortTime"),i=Md(t,"shortDate");n=Id(yd(t,fd.Short),[e,i]);break;case"medium":const s=Md(t,"mediumTime"),r=Md(t,"mediumDate");n=Id(yd(t,fd.Medium),[s,r]);break;case"long":const o=Md(t,"longTime"),a=Md(t,"longDate");n=Id(yd(t,fd.Long),[o,a]);break;case"full":const l=Md(t,"fullTime"),c=Md(t,"fullDate");n=Id(yd(t,fd.Full),[l,c])}return n&&(kd[i][e]=n),n}function Id(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,i){return null!=e&&i in e?e[i]:t})),t}function Rd(t,e,i="-",n,s){let r="";(t<0||s&&t<=0)&&(s?t=1-t:(t=-t,r=i));let o=String(t);for(;o.length0||a>-i)&&(a+=i),t===Ed.Hours)0===a&&-12===i&&(a=12);else if(t===Ed.FractionalSeconds)return l=e,Rd(a,3).substr(0,l);var l;const c=vd(o,gd.MinusSign);return Rd(a,e,c,n,s)}}function Fd(t,e,i=pd.Format,n=!1){return function(s,r){return function(t,e,i,n,s,r){switch(i){case Td.Months:return function(t,e,i){const n=qa(t),s=Cd([n[Qa.MonthsFormat],n[Qa.MonthsStandalone]],e);return Cd(s,i)}(e,s,n)[t.getMonth()];case Td.Days:return function(t,e,i){const n=qa(t),s=Cd([n[Qa.DaysFormat],n[Qa.DaysStandalone]],e);return Cd(s,i)}(e,s,n)[t.getDay()];case Td.DayPeriods:const o=t.getHours(),a=t.getMinutes();if(r){const t=function(t){const e=qa(t);return wd(e),(e[Qa.ExtraData][2]||[]).map(t=>"string"==typeof t?xd(t):[xd(t[0]),xd(t[1])])}(e),i=function(t,e,i){const n=qa(t);wd(n);const s=Cd([n[Qa.ExtraData][0],n[Qa.ExtraData][1]],e)||[];return Cd(s,i)||[]}(e,s,n),r=t.findIndex(t=>{if(Array.isArray(t)){const[e,i]=t,n=o>=e.hours&&a>=e.minutes,s=o0?Math.floor(s/60):Math.ceil(s/60);switch(t){case Od.Short:return(s>=0?"+":"")+Rd(o,2,r)+Rd(Math.abs(s%60),2,r);case Od.ShortGMT:return"GMT"+(s>=0?"+":"")+Rd(o,1,r);case Od.Long:return"GMT"+(s>=0?"+":"")+Rd(o,2,r)+":"+Rd(Math.abs(s%60),2,r);case Od.Extended:return 0===n?"Z":(s>=0?"+":"")+Rd(o,2,r)+":"+Rd(Math.abs(s%60),2,r);default:throw new Error(`Unknown zone width "${t}"`)}}}function Vd(t){return Dd(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function Bd(t,e=!1){return function(i,n){let s;if(e){const t=new Date(i.getFullYear(),i.getMonth(),1).getDay()-1,e=i.getDate();s=1+Math.floor((e+t)/7)}else{const t=Vd(i),e=function(t){const e=Dd(t,0,1).getDay();return Dd(t,0,1+(e<=4?4:11)-e)}(t.getFullYear()),n=t.getTime()-e.getTime();s=1+Math.round(n/6048e5)}return Rd(s,t,vd(n,gd.MinusSign))}}function Hd(t,e=!1){return function(i,n){return Rd(Vd(i).getFullYear(),t,vd(n,gd.MinusSign),e)}}const zd={};function Gd(t,e){t=t.replace(/:/g,"");const i=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(i)?e:i}function Ud(t){return t instanceof Date&&!isNaN(t.valueOf())}const jd=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Wd(t){const e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}class $d{}let qd=(()=>{class t extends $d{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return qa(t)[Qa.PluralCase]}(e||this.locale)(t)){case hd.Zero:return"zero";case hd.One:return"one";case hd.Two:return"two";case hd.Few:return"few";case hd.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(wn(iu))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();function Yd(t,e){e=encodeURIComponent(e);for(const i of t.split(";")){const t=i.indexOf("="),[n,s]=-1==t?[i,""]:[i.slice(0,t),i.slice(t+1)];if(n.trim()===e)return decodeURIComponent(s)}return null}let Qd=(()=>{class t{constructor(t,e,i,n){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=i,this._renderer=n,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Lo(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${at(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)($o(Dl),$o(Il),$o(hl),$o(fl))},t.\u0275dir=ie({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class Xd{constructor(t,e,i,n){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=n}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 Kd=(()=>{class t{constructor(t,e,i){this._viewContainer=t,this._template=e,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const i=this._ngForOf;if(!this._differ&&i)try{this._differ=this._differs.find(i).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${i}' of type '${t=i,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,i,n)=>{if(null==t.previousIndex){const i=this._viewContainer.createEmbeddedView(this._template,new Xd(null,this._ngForOf,-1,-1),null===n?void 0:n),s=new Zd(t,i);e.push(s)}else if(null==n)this._viewContainer.remove(null===i?void 0:i);else if(null!==i){const s=this._viewContainer.get(i);this._viewContainer.move(s,n);const r=new Zd(t,s);e.push(r)}});for(let i=0;i{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)($o(Kl),$o(jl),$o(Dl))},t.\u0275dir=ie({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class Zd{constructor(t,e){this.record=t,this.view=e}}let Jd=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new th,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){eh("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){eh("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)($o(Kl),$o(jl))},t.\u0275dir=ie({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class th{constructor(){this.$implicit=null,this.ngIf=null}}function eh(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${at(e)}'.`)}class ih{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let nh=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e{class t{constructor(t,e,i){this.ngSwitch=i,i._addCase(),this._view=new ih(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)($o(Kl),$o(jl),$o(nh,1))},t.\u0275dir=ie({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),rh=(()=>{class t{constructor(t,e,i){i._addDefault(new ih(t,e))}}return t.\u0275fac=function(e){return new(e||t)($o(Kl),$o(jl),$o(nh,1))},t.\u0275dir=ie({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),oh=(()=>{class t{constructor(t,e,i){this._ngEl=t,this._differs=e,this._renderer=i,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[i,n]=t.split(".");null!=(e=null!=e&&n?`${e}${n}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,i,e):this._renderer.removeStyle(this._ngEl.nativeElement,i)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(Il),$o(fl))},t.\u0275dir=ie({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),ah=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(t){const e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)}_hasContextShapeChanged(t){const e=Object.keys(t.previousValue||{}),i=Object.keys(t.currentValue||{});if(e.length===i.length){for(let t of i)if(-1===e.indexOf(t))return!0;return!1}return!0}_updateExistingContext(t){for(let e of Object.keys(t))this._viewRef.context[e]=this.ngTemplateOutletContext[e]}}return t.\u0275fac=function(e){return new(e||t)($o(Kl))},t.\u0275dir=ie({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[me]}),t})();function lh(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${at(t)}'`)}class ch{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class uh{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const dh=new uh,hh=new ch;let ph=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if(ia(e))return dh;if(na(e))return hh;throw lh(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(function(t=Ot.Default){const e=Bl(!0);if(null!=e||t&Ot.Optional)return e;gt("ChangeDetectorRef")}())},t.\u0275pipe=ne({name:"async",type:t,pure:!1}),t})();const mh=/(?:[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 fh=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw lh(t,e);return e.replace(mh,t=>t[0].toUpperCase()+t.substr(1).toLowerCase())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ne({name:"titlecase",type:t,pure:!0}),t})(),gh=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw lh(t,e);return e.toUpperCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ne({name:"uppercase",type:t,pure:!0}),t})(),_h=(()=>{class t{constructor(t){this.locale=t}transform(e,i="mediumDate",n,s){if(null==e||""===e||e!=e)return null;try{return Pd(e,i,s||this.locale,n)}catch(r){throw lh(t,r.message)}}}return t.\u0275fac=function(e){return new(e||t)($o(iu))},t.\u0275pipe=ne({name:"date",type:t,pure:!0}),t})(),bh=(()=>{class t{constructor(t){this._locale=t}transform(e,i,n){if(!function(t){return!(null==t||""===t||t!=t)}(e))return null;n=n||this._locale;try{return function(t,e,i){return function(t,e,i,n,s,r,o=!1){let a="",l=!1;if(isFinite(t)){let c=function(t){let e,i,n,s,r,o=Math.abs(t)+"",a=0;for((i=o.indexOf("."))>-1&&(o=o.replace(".","")),(n=o.search(/e/i))>0?(i<0&&(i=n),i+=+o.slice(n+1),o=o.substring(0,n)):i<0&&(i=o.length),n=0;"0"===o.charAt(n);n++);if(n===(r=o.length))e=[0],i=1;else{for(r--;"0"===o.charAt(r);)r--;for(i-=n,e=[],s=0;n<=r;n++,s++)e[s]=Number(o.charAt(n))}return i>22&&(e=e.splice(0,21),a=i-1,i=1),{digits:e,exponent:a,integerLen:i}}(t);o&&(c=function(t){if(0===t.digits[0])return t;const e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2),t}(c));let u=e.minInt,d=e.minFrac,h=e.maxFrac;if(r){const t=r.match(jd);if(null===t)throw new Error(`${r} is not a valid digit info`);const e=t[1],i=t[3],n=t[5];null!=e&&(u=Wd(e)),null!=i&&(d=Wd(i)),null!=n?h=Wd(n):null!=i&&d>h&&(h=d)}!function(t,e,i){if(e>i)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${i}).`);let n=t.digits,s=n.length-t.integerLen;const r=Math.min(Math.max(e,s),i);let o=r+t.integerLen,a=n[o];if(o>0){n.splice(Math.max(t.integerLen,o));for(let t=o;t=5)if(o-1<0){for(let e=0;e>o;e--)n.unshift(0),t.integerLen++;n.unshift(1),t.integerLen++}else n[o-1]++;for(;s=c?n.pop():l=!1),e>=10?1:0},0);u&&(n.unshift(u),t.integerLen++)}(c,d,h);let p=c.digits,m=c.integerLen;const f=c.exponent;let g=[];for(l=p.every(t=>!t);m0?g=p.splice(m,p.length):(g=p,p=[0]);const _=[];for(p.length>=e.lgSize&&_.unshift(p.splice(-e.lgSize,p.length).join(""));p.length>e.gSize;)_.unshift(p.splice(-e.gSize,p.length).join(""));p.length&&_.unshift(p.join("")),a=_.join(vd(i,n)),g.length&&(a+=vd(i,s)+g.join("")),f&&(a+=vd(i,gd.Exponential)+"+"+f)}else a=vd(i,gd.Infinity);return a=t<0&&!l?e.negPre+a+e.negSuf:e.posPre+a+e.posSuf,a}(t,function(t,e="-"){const i={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=t.split(";"),s=n[0],r=n[1],o=-1!==s.indexOf(".")?s.split("."):[s.substring(0,s.lastIndexOf("0")+1),s.substring(s.lastIndexOf("0")+1)],a=o[0],l=o[1]||"";i.posPre=a.substr(0,a.indexOf("#"));for(let u=0;u{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:[{provide:$d,useClass:qd}]}),t})();function vh(t){return"browser"===t}function wh(t){return"server"===t}let Ch=(()=>{class t{}return t.\u0275prov=_t({token:t,providedIn:"root",factory:()=>new xh(wn(qu),window)}),t})();class xh{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){var e;if(!this.supportsScrolling())return;const i=null!==(e=this.document.getElementById(t))&&void 0!==e?e:this.document.getElementsByName(t)[0];void 0!==i&&(this.scrollToElement(i),this.attemptFocus(i))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,n=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(i-s[0],n-s[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=Sh(this.window.history)||Sh(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function Sh(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class kh extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new kh,Wu||(Wu=t)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=Oh||(Oh=document.querySelector("base"),Oh)?Oh.getAttribute("href"):null;return null==e?null:(i=e,Ah||(Ah=document.createElement("a")),Ah.setAttribute("href",i),"/"===Ah.pathname.charAt(0)?Ah.pathname:"/"+Ah.pathname);var i}resetBaseElement(){Oh=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return Yd(document.cookie,t)}}let Ah,Oh=null;const Eh=new en("TRANSITION_ID"),Th=[{provide:qc,useFactory:function(t,e,i){return()=>{i.get(Yc).donePromise.then(()=>{const i=$u();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>i.remove(t))})}},deps:[Eh,qu,ko],multi:!0}];class Ph{static init(){var t;t=new Ph,ku=t}addToWindow(t){Vt.getAngularTestability=(e,i=!0)=>{const n=t.findTestabilityInTree(e,i);if(null==n)throw new Error("Could not find testability for element.");return n},Vt.getAllAngularTestabilities=()=>t.getAllTestabilities(),Vt.getAllAngularRootElements=()=>t.getAllRootElements(),Vt.frameworkStabilizers||(Vt.frameworkStabilizers=[]),Vt.frameworkStabilizers.push(t=>{const e=Vt.getAllAngularTestabilities();let i=e.length,n=!1;const s=function(e){n=n||e,i--,0==i&&t(n)};e.forEach(function(t){t.whenStable(s)})})}findTestabilityInTree(t,e,i){if(null==e)return null;const n=t.getTestability(e);return null!=n?n:i?$u().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const Dh=new en("EventManagerPlugins");let Mh=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,i){return this._findPluginFor(e).addEventListener(t,e,i)}addGlobalEventListener(t,e,i){return this._findPluginFor(e).addGlobalEventListener(t,e,i)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const i=this._plugins;for(let n=0;n{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})(),Lh=(()=>{class t extends Rh{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const i=this._doc.createElement("style");i.textContent=t,this._styleNodes.add(e.appendChild(i))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>$u().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(wn(qu))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();const Fh={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/"},Nh=/%COMP%/g;function Vh(t,e,i){for(let n=0;n{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let Hh=(()=>{class t{constructor(t,e,i){this.eventManager=t,this.sharedStylesHost=e,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new zh(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case It.Emulated:{let i=this.rendererByCompId.get(e.id);return i||(i=new Gh(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,i)),i.applyToHost(t),i}case 1:case It.ShadowDom:return new Uh(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=Vh(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(wn(Mh),wn(Lh),wn(Qc))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();class zh{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(Fh[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,i){t&&t.insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,n){if(n){e=n+":"+e;const s=Fh[n];s?t.setAttributeNS(s,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const n=Fh[i];n?t.removeAttributeNS(n,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,n){n&(ks.DashCase|ks.Important)?t.style.setProperty(e,i,n&ks.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&ks.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,Bh(i)):this.eventManager.addEventListener(t,e,Bh(i))}}class Gh extends zh{constructor(t,e,i,n){super(t),this.component=i;const s=Vh(n+"-"+i.id,i.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(Nh,n+"-"+i.id),this.hostAttr="_nghost-%COMP%".replace(Nh,n+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class Uh extends zh{constructor(t,e,i,n){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=Vh(n.id,n.styles,[]);for(let r=0;r{class t extends Ih{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,i){return t.addEventListener(e,i,!1),()=>this.removeEventListener(t,e,i)}removeEventListener(t,e,i){return t.removeEventListener(e,i)}}return t.\u0275fac=function(e){return new(e||t)(wn(qu))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();const Wh=["alt","control","meta","shift"],$h={"\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"},qh={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"},Yh={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Qh=(()=>{class t extends Ih{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,n){const s=t.parseEventName(i),r=t.eventCallback(s.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>$u().onAndCancel(e,s.domEventName,r))}static parseEventName(e){const i=e.toLowerCase().split("."),n=i.shift();if(0===i.length||"keydown"!==n&&"keyup"!==n)return null;const s=t._normalizeKey(i.pop());let r="";if(Wh.forEach(t=>{const e=i.indexOf(t);e>-1&&(i.splice(e,1),r+=t+".")}),r+=s,0!=i.length||0===s.length)return null;const o={};return o.domEventName=n,o.fullKey=r,o}static getEventFullKey(t){let e="",i=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&qh.hasOwnProperty(e)&&(e=qh[e]))}return $h[e]||e}(t);return i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),Wh.forEach(n=>{n!=i&&(0,Yh[n])(t)&&(e+=n+".")}),e+=i,e}static eventCallback(e,i,n){return s=>{t.getEventFullKey(s)===e&&n.runGuarded(()=>i(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(wn(qu))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})(),Xh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({factory:function(){return wn(Kh)},token:t,providedIn:"root"}),t})(),Kh=(()=>{class t extends Xh{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case hs.NONE:return e;case hs.HTML:return zn(e,"HTML")?Hn(e):us(this._doc,String(e)).toString();case hs.STYLE:return zn(e,"Style")?Hn(e):e;case hs.SCRIPT:if(zn(e,"Script"))return Hn(e);throw new Error("unsafe value used in a script context");case hs.URL:return Gn(e),zn(e,"URL")?Hn(e):qn(String(e));case hs.RESOURCE_URL:if(zn(e,"ResourceURL"))return Hn(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return new Ln(t)}bypassSecurityTrustStyle(t){return new Fn(t)}bypassSecurityTrustScript(t){return new Nn(t)}bypassSecurityTrustUrl(t){return new Vn(t)}bypassSecurityTrustResourceUrl(t){return new Bn(t)}}return t.\u0275fac=function(e){return new(e||t)(wn(qu))},t.\u0275prov=_t({factory:function(){return t=wn(lo),new Kh(t.get(qu));var t},token:t,providedIn:"root"}),t})();const Zh=Du(Gu,"browser",[{provide:Jc,useValue:"browser"},{provide:Zc,useValue:function(){kh.makeCurrent(),Ph.init()},multi:!0},{provide:qu,useFactory:function(){return function(t){ye=t}(document),document},deps:[]}]),Jh=[[],{provide:uo,useValue:"root"},{provide:vs,useFactory:function(){return new vs},deps:[]},{provide:Dh,useClass:jh,multi:!0,deps:[qu,mu,Jc]},{provide:Dh,useClass:Qh,multi:!0,deps:[qu]},[],{provide:Hh,useClass:Hh,deps:[Mh,Lh,Qc]},{provide:ml,useExisting:Hh},{provide:Rh,useExisting:Lh},{provide:Lh,useClass:Lh,deps:[qu]},{provide:wu,useClass:wu,deps:[mu]},{provide:Mh,useClass:Mh,deps:[Dh,mu]},[]];let tp=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:Qc,useValue:e.appId},{provide:Eh,useExisting:Qc},Th]}}}return t.\u0275fac=function(e){return new(e||t)(wn(t,12))},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:Jh,imports:[yh,ju]}),t})();function ep(){return new ip(wn(qu))}let ip=(()=>{class t{constructor(t){this._doc=t,this._dom=$u()}addTag(t,e=!1){return t?this._getOrCreateElement(t,e):null}addTags(t,e=!1){return t?t.reduce((t,i)=>(i&&t.push(this._getOrCreateElement(i,e)),t),[]):[]}getTag(t){return t&&this._doc.querySelector(`meta[${t}]`)||null}getTags(t){if(!t)return[];const e=this._doc.querySelectorAll(`meta[${t}]`);return e?[].slice.call(e):[]}updateTag(t,e){if(!t)return null;e=e||this._parseSelector(t);const i=this.getTag(e);return i?this._setMetaElementAttributes(t,i):this._getOrCreateElement(t,!0)}removeTag(t){this.removeTagElement(this.getTag(t))}removeTagElement(t){t&&this._dom.remove(t)}_getOrCreateElement(t,e=!1){if(!e){const e=this._parseSelector(t),i=this.getTag(e);if(i&&this._containsAttributes(t,i))return i}const i=this._dom.createElement("meta");return this._setMetaElementAttributes(t,i),this._doc.getElementsByTagName("head")[0].appendChild(i),i}_setMetaElementAttributes(t,e){return Object.keys(t).forEach(i=>e.setAttribute(this._getMetaKeyMap(i),t[i])),e}_parseSelector(t){const e=t.name?"name":"property";return`${e}="${t[e]}"`}_containsAttributes(t,e){return Object.keys(t).every(i=>e.getAttribute(this._getMetaKeyMap(i))===t[i])}_getMetaKeyMap(t){return np[t]||t}}return t.\u0275fac=function(e){return new(e||t)(wn(qu))},t.\u0275prov=_t({factory:ep,token:t,providedIn:"root"}),t})();const np={httpEquiv:"http-equiv"};function sp(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(t);s=0;a--)(s=t[a])&&(o=(r<3?s(o):r>3?s(e,i,o):s(e,i))||o);return r>3&&o&&Object.defineProperty(e,i,o),o}function op(t,e){return function(i,n){e(i,n,t)}}function ap(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function lp(t,e,i,n){return new(i||(i=Promise))(function(s,r){function o(t){try{l(n.next(t))}catch(e){r(e)}}function a(t){try{l(n.throw(t))}catch(e){r(e)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(o,a)}l((n=n.apply(t,e||[])).next())})}"undefined"!=typeof window&&window;class cp extends k{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new C;return this._value}next(t){super.next(this._value=t)}}class up extends d{constructor(t,e){super()}schedule(t,e=0){return this}}class dp extends up{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,n=!1;try{this.work(t)}catch(s){n=!0,i=!!s&&s||new Error(s)}if(n)return this.unsubscribe(),i}_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 hp=(()=>{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 pp extends hp{constructor(t,e=hp.now){super(t,()=>pp.delegate&&pp.delegate!==this?pp.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return pp.delegate&&pp.delegate!==this?pp.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 mp=new pp(dp);function fp(t){return!l(t)&&t-parseFloat(t)+1>=0}function gp(t=0,e,i){let n=-1;return fp(e)?n=Number(e)<1?1:Number(e):O(e)&&(i=e),O(i)||(i=mp),new v(e=>{const s=fp(t)?t:+t-i.now();return i.schedule(_p,s,{index:0,period:n,subscriber:e})})}function _p(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 bp(t,e,i){return i?bp(t,e).pipe(E(t=>l(t)?i(...t):i(t))):new v(i=>{const s=(...t)=>i.next(1===t.length?t[0]:t);let r;try{r=t(s)}catch(o){return void i.error(o)}if(n(e))return()=>e(s,r)})}class yp extends dp{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 vp extends pp{}const wp=new vp(yp),Cp=new v(t=>t.complete());function xp(t){return t?function(t){return new v(e=>t.schedule(()=>e.complete()))}(t):Cp}function Sp(...t){let e=t[t.length-1];return O(e)?(t.pop(),N(t,e)):q(t)}function kp(t,e){return new v(e?i=>e.schedule(Ap,0,{error:t,subscriber:i}):e=>e.error(t))}function Ap({error:t,subscriber:e}){e.error(t)}let Op=(()=>{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 Sp(this.value);case"E":return kp(this.error);case"C":return xp()}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 Ep extends m{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(Ep.dispatch,this.delay,new Tp(t,this.destination)))}_next(t){this.scheduleMessage(Op.createNext(t))}_error(t){this.scheduleMessage(Op.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(Op.createComplete()),this.unsubscribe()}}class Tp{constructor(t,e){this.notification=t,this.destination=e}}class Pp extends k{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){if(!this.isStopped){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift()}super.next(t)}nextTimeWindow(t){this.isStopped||(this._events.push(new Dp(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 r;if(this.closed)throw new C;if(this.isStopped||this.hasError?r=d.EMPTY:(this.observers.push(t),r=new x(this,t)),n&&t.add(t=new Ep(t,n)),e)for(let o=0;oe&&(r=Math.max(r,s-e)),r>0&&n.splice(0,r),n}}class Dp{constructor(t,e){this.time=t,this.value=e}}class Mp{constructor(t){this.notifier=t}call(t,e){const i=new Ip(t),n=e.subscribe(i);return n.add(z(this.notifier,new B(i))),n}}class Ip extends H{constructor(){super(...arguments),this.hasValue=!1}_next(t){this.value=t,this.hasValue=!0}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))}}function Rp(t,e){return"function"==typeof e?i=>i.pipe(Rp((i,n)=>V(t(i,n)).pipe(E((t,s)=>e(i,t,n,s))))):e=>e.lift(new Lp(t))}class Lp{constructor(t){this.project=t}call(t,e){return e.subscribe(new Fp(t,this.project))}}class Fp extends H{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)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const i=new B(this),n=this.destination;n.add(i),this.innerSubscription=z(t,i),this.innerSubscription!==i&&n.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}function Np(t,e){return i=>i.lift(new Vp(t,e))}class Vp{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new Bp(t,this.compare,this.keySelector))}}class Bp extends m{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))}}function Hp(t){return e=>e.lift(new zp(t))}class zp{constructor(t){this.notifier=t}call(t,e){const i=new Gp(t),n=z(this.notifier,new B(i));return n&&!i.seenValue?(i.add(n),e.subscribe(i)):i}}class Gp extends H{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function Up(...t){return $(1)(Sp(...t))}function jp(...t){const e=t[t.length-1];return O(e)?(t.pop(),i=>Up(t,i,e)):e=>Up(t,e)}function Wp(t){return e=>e.lift(new $p(t))}class $p{constructor(t){this.total=t}call(t,e){return e.subscribe(new qp(t,this.total))}}class qp extends m{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}const Yp=["*"];let Qp=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({token:t,factory:function(e){return t.\u0275fac(e)}}),t})(),Xp=(()=>{let t=class{constructor(t,e){this._loader=t,this._zone=e,this._map=new Promise(t=>{this._mapResolver=t})}createMap(t,e){return this._zone.runOutsideAngular(()=>this._loader.load().then(()=>{const i=new google.maps.Map(t,e);this._mapResolver(i)}))}setMapOptions(t){return this._zone.runOutsideAngular(()=>{this._map.then(e=>{e.setOptions(t)})})}createMarker(t={},e=!0){return this._zone.runOutsideAngular(()=>this._map.then(i=>(e&&(t.map=i),new google.maps.Marker(t))))}createInfoWindow(t){return this._zone.runOutsideAngular(()=>this._map.then(()=>new google.maps.InfoWindow(t)))}createCircle(t){return this._zone.runOutsideAngular(()=>this._map.then(e=>("string"==typeof t.strokePosition&&(t.strokePosition=google.maps.StrokePosition[t.strokePosition]),t.map=e,new google.maps.Circle(t))))}createRectangle(t){return this._zone.runOutsideAngular(()=>this._map.then(e=>(t.map=e,new google.maps.Rectangle(t))))}createPolyline(t){return this._zone.runOutsideAngular(()=>this.getNativeMap().then(e=>{let i=new google.maps.Polyline(t);return i.setMap(e),i}))}createPolygon(t){return this._zone.runOutsideAngular(()=>this.getNativeMap().then(e=>{let i=new google.maps.Polygon(t);return i.setMap(e),i}))}createDataLayer(t){return this._zone.runOutsideAngular(()=>this._map.then(e=>{let i=new google.maps.Data(t);return i.setMap(e),i}))}createTransitLayer(t){return this._zone.runOutsideAngular(()=>this._map.then(e=>{let i=new google.maps.TransitLayer;return i.setMap(t.visible?e:null),i}))}createBicyclingLayer(t){return this._zone.runOutsideAngular(()=>this._map.then(e=>{let i=new google.maps.BicyclingLayer;return i.setMap(t.visible?e:null),i}))}containsLocation(t,e){return google.maps.geometry.poly.containsLocation(t,e)}subscribeToMapEvent(t){return new v(e=>{this._map.then(i=>{i.addListener(t,t=>{this._zone.run(()=>e.next(t))})})})}clearInstanceListeners(){return this._zone.runOutsideAngular(()=>{this._map.then(t=>{google.maps.event.clearInstanceListeners(t)})})}setCenter(t){return this._zone.runOutsideAngular(()=>this._map.then(e=>e.setCenter(t)))}getZoom(){return this._zone.runOutsideAngular(()=>this._map.then(t=>t.getZoom()))}getBounds(){return this._zone.runOutsideAngular(()=>this._map.then(t=>t.getBounds()))}getMapTypeId(){return this._zone.runOutsideAngular(()=>this._map.then(t=>t.getMapTypeId()))}setZoom(t){return this._zone.runOutsideAngular(()=>this._map.then(e=>e.setZoom(t)))}getCenter(){return this._zone.runOutsideAngular(()=>this._map.then(t=>t.getCenter()))}panTo(t){return this._zone.runOutsideAngular(()=>this._map.then(e=>e.panTo(t)))}panBy(t,e){return this._zone.runOutsideAngular(()=>this._map.then(i=>i.panBy(t,e)))}fitBounds(t,e){return this._zone.runOutsideAngular(()=>this._map.then(i=>i.fitBounds(t,e)))}panToBounds(t,e){return this._zone.runOutsideAngular(()=>this._map.then(i=>i.panToBounds(t,e)))}getNativeMap(){return this._map}triggerMapEvent(t){return this._map.then(e=>google.maps.event.trigger(e,t))}};return t.\u0275fac=function(e){return new(e||t)(wn(Qp),wn(mu))},t.\u0275prov=_t({token:t,factory:function(e){return t.\u0275fac(e)}}),t=rp([ap("design:paramtypes",[Qp,mu])],t),t})(),Kp=(()=>{let t=class{constructor(t){this._wrapper=t,this._layers=new Map}addTransitLayer(t,e){const i=this._wrapper.createTransitLayer(e);this._layers.set(t,i)}addBicyclingLayer(t,e){const i=this._wrapper.createBicyclingLayer(e);this._layers.set(t,i)}deleteLayer(t){return this._layers.get(t).then(e=>{e.setMap(null),this._layers.delete(t)})}toggleLayerVisibility(t,e){return this._layers.get(t).then(t=>e.visible?this._wrapper.getNativeMap().then(e=>{t.setMap(e)}):void t.setMap(null))}};return t.\u0275fac=function(e){return new(e||t)(wn(Xp))},t.\u0275prov=_t({token:t,factory:function(e){return t.\u0275fac(e)}}),t=rp([ap("design:paramtypes",[Xp])],t),t})(),Zp=(()=>{let t=class{constructor(t,e){this._apiWrapper=t,this._zone=e,this._circles=new Map}addCircle(t){this._circles.set(t,this._apiWrapper.createCircle({center:{lat:t.latitude,lng:t.longitude},clickable:t.clickable,draggable:t.draggable,editable:t.editable,fillColor:t.fillColor,fillOpacity:t.fillOpacity,radius:t.radius,strokeColor:t.strokeColor,strokeOpacity:t.strokeOpacity,strokePosition:t.strokePosition,strokeWeight:t.strokeWeight,visible:t.visible,zIndex:t.zIndex}))}removeCircle(t){return this._circles.get(t).then(e=>{e.setMap(null),this._circles.delete(t)})}setOptions(t,e){return this._circles.get(t).then(t=>{"string"==typeof e.strokePosition&&(e.strokePosition=google.maps.StrokePosition[e.strokePosition]),t.setOptions(e)})}getBounds(t){return this._circles.get(t).then(t=>t.getBounds())}getCenter(t){return this._circles.get(t).then(t=>t.getCenter())}getRadius(t){return this._circles.get(t).then(t=>t.getRadius())}setCenter(t){return this._circles.get(t).then(e=>e.setCenter({lat:t.latitude,lng:t.longitude}))}setEditable(t){return this._circles.get(t).then(e=>e.setEditable(t.editable))}setDraggable(t){return this._circles.get(t).then(e=>e.setDraggable(t.draggable))}setVisible(t){return this._circles.get(t).then(e=>e.setVisible(t.visible))}setRadius(t){return this._circles.get(t).then(e=>e.setRadius(t.radius))}getNativeCircle(t){return this._circles.get(t)}createEventObservable(t,e){return new v(i=>{let n=null;return this._circles.get(e).then(e=>{n=e.addListener(t,t=>this._zone.run(()=>i.next(t)))}),()=>{null!==n&&n.remove()}})}};return t.\u0275fac=function(e){return new(e||t)(wn(Xp),wn(mu))},t.\u0275prov=_t({token:t,factory:function(e){return t.\u0275fac(e)}}),t=rp([ap("design:paramtypes",[Xp,mu])],t),t})();var Jp;let tm=(()=>{let t=Jp=class{constructor(t){this._manager=t,this.clickable=!0,this.draggable=!1,this.editable=!1,this.radius=0,this.strokePosition="CENTER",this.strokeWeight=0,this.visible=!0,this.centerChange=new kc,this.circleClick=new kc,this.circleDblClick=new kc,this.drag=new kc,this.dragEnd=new kc,this.dragStart=new kc,this.mouseDown=new kc,this.mouseMove=new kc,this.mouseOut=new kc,this.mouseOver=new kc,this.mouseUp=new kc,this.radiusChange=new kc,this.rightClick=new kc,this._circleAddedToManager=!1,this._eventSubscriptions=[]}ngOnInit(){this._manager.addCircle(this),this._circleAddedToManager=!0,this._registerEventListeners()}ngOnChanges(t){this._circleAddedToManager&&((t.latitude||t.longitude)&&this._manager.setCenter(this),t.editable&&this._manager.setEditable(this),t.draggable&&this._manager.setDraggable(this),t.visible&&this._manager.setVisible(this),t.radius&&this._manager.setRadius(this),this._updateCircleOptionsChanges(t))}_updateCircleOptionsChanges(t){let e={},i=Object.keys(t).filter(t=>-1!==Jp._mapOptions.indexOf(t));i.forEach(i=>{e[i]=t[i].currentValue}),i.length>0&&this._manager.setOptions(this,e)}_registerEventListeners(){let t=new Map;t.set("center_changed",this.centerChange),t.set("click",this.circleClick),t.set("dblclick",this.circleDblClick),t.set("drag",this.drag),t.set("dragend",this.dragEnd),t.set("dragstart",this.dragStart),t.set("mousedown",this.mouseDown),t.set("mousemove",this.mouseMove),t.set("mouseout",this.mouseOut),t.set("mouseover",this.mouseOver),t.set("mouseup",this.mouseUp),t.set("radius_changed",this.radiusChange),t.set("rightclick",this.rightClick),t.forEach((t,e)=>{this._eventSubscriptions.push(this._manager.createEventObservable(e,this).subscribe(i=>{switch(e){case"radius_changed":this._manager.getRadius(this).then(e=>t.emit(e));break;case"center_changed":this._manager.getCenter(this).then(e=>t.emit({lat:e.lat(),lng:e.lng()}));break;default:t.emit({coords:{lat:i.latLng.lat(),lng:i.latLng.lng()}})}}))})}ngOnDestroy(){this._eventSubscriptions.forEach(function(t){t.unsubscribe()}),this._eventSubscriptions=null,this._manager.removeCircle(this)}getBounds(){return this._manager.getBounds(this)}getCenter(){return this._manager.getCenter(this)}};return t.\u0275fac=function(e){return new(e||t)($o(Zp))},t.\u0275dir=ie({type:t,selectors:[["agm-circle"]],inputs:{clickable:"clickable",draggable:["circleDraggable","draggable"],editable:"editable",radius:"radius",strokePosition:"strokePosition",strokeWeight:"strokeWeight",visible:"visible",latitude:"latitude",longitude:"longitude",fillColor:"fillColor",fillOpacity:"fillOpacity",strokeColor:"strokeColor",strokeOpacity:"strokeOpacity",zIndex:"zIndex"},outputs:{centerChange:"centerChange",circleClick:"circleClick",circleDblClick:"circleDblClick",drag:"drag",dragEnd:"dragEnd",dragStart:"dragStart",mouseDown:"mouseDown",mouseMove:"mouseMove",mouseOut:"mouseOut",mouseOver:"mouseOver",mouseUp:"mouseUp",radiusChange:"radiusChange",rightClick:"rightClick"},features:[me]}),t._mapOptions=["fillColor","fillOpacity","strokeColor","strokeOpacity","strokePosition","strokeWeight","visible","zIndex","clickable"],t=Jp=rp([ap("design:paramtypes",[Zp])],t),t})(),em=(()=>{let t=class{constructor(t,e){this._wrapper=t,this._zone=e,this._layers=new Map}addDataLayer(t){const e=this._wrapper.createDataLayer({style:t.style}).then(e=>(t.geoJson&&this.getDataFeatures(e,t.geoJson).then(t=>e.features=t),e));this._layers.set(t,e)}deleteDataLayer(t){this._layers.get(t).then(e=>{e.setMap(null),this._layers.delete(t)})}updateGeoJson(t,e){this._layers.get(t).then(t=>{t.forEach(function(e){t.remove(e);var i=t.features.indexOf(e,0);i>-1&&t.features.splice(i,1)}),this.getDataFeatures(t,e).then(e=>t.features=e)})}setDataOptions(t,e){this._layers.get(t).then(t=>{t.setControlPosition(e.controlPosition),t.setControls(e.controls),t.setDrawingMode(e.drawingMode),t.setStyle(e.style)})}createEventObservable(t,e){return new v(i=>{this._layers.get(e).then(e=>{e.addListener(t,t=>this._zone.run(()=>i.next(t)))})})}getDataFeatures(t,e){return new Promise((i,n)=>{if("object"==typeof e)try{i(t.addGeoJson(e))}catch(s){n(s)}else"string"==typeof e?t.loadGeoJson(e,null,i):n("Impossible to extract features from geoJson: wrong argument type")})}};return t.\u0275fac=function(e){return new(e||t)(wn(Xp),wn(mu))},t.\u0275prov=_t({token:t,factory:function(e){return t.\u0275fac(e)}}),t=rp([ap("design:paramtypes",[Xp,mu])],t),t})();class im{}let nm=(()=>{let t=class{constructor(t){var e;this._boundsChangeSampleTime$=new cp(200),this._includeInBounds$=new cp(new Map),this.bounds$=V(t.load()).pipe(W(()=>this._includeInBounds$),(e=this._boundsChangeSampleTime$.pipe(Rp(t=>gp(0,t))),t=>t.lift(new Mp(e))),E(t=>this._generateBounds(t)),function(t,e,i){let n;return n={bufferSize:1,windowTime:void 0,refCount:!1,scheduler:void 0},t=>t.lift(function({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:i,scheduler:n}){let s,r,o=0,a=!1,l=!1;return function(c){let u;o++,!s||a?(a=!1,s=new Pp(t,e,n),u=s.subscribe(this),r=c.subscribe({next(t){s.next(t)},error(t){a=!0,s.error(t)},complete(){l=!0,r=void 0,s.complete()}}),l&&(r=void 0)):u=s.subscribe(this),this.add(()=>{o--,u.unsubscribe(),u=void 0,r&&!l&&i&&0===o&&(r.unsubscribe(),r=void 0,s=void 0)})}}(n))}())}_generateBounds(t){const e=new google.maps.LatLngBounds;return t.forEach(t=>e.extend(t)),e}addToBounds(t){const e=this._createIdentifier(t);if(this._includeInBounds$.value.has(e))return;const i=this._includeInBounds$.value;i.set(e,t),this._includeInBounds$.next(i)}removeFromBounds(t){const e=this._includeInBounds$.value;e.delete(this._createIdentifier(t)),this._includeInBounds$.next(e)}changeFitBoundsChangeSampleTime(t){this._boundsChangeSampleTime$.next(t)}getBounds$(){return this.bounds$}_createIdentifier(t){return`${t.lat}+${t.lng}`}};return t.\u0275fac=function(e){return new(e||t)(wn(Qp))},t.\u0275prov=_t({token:t,factory:function(e){return t.\u0275fac(e)}}),t=rp([ap("design:paramtypes",[Qp])],t),t})(),sm=(()=>{let t=class{constructor(t,e){this._mapsWrapper=t,this._zone=e,this._markers=new Map}convertAnimation(t){return lp(this,void 0,void 0,function*(){return null===t?null:this._mapsWrapper.getNativeMap().then(()=>google.maps.Animation[t])})}deleteMarker(t){const e=this._markers.get(t);return null==e?Promise.resolve():e.then(e=>this._zone.run(()=>{e.setMap(null),this._markers.delete(t)}))}updateMarkerPosition(t){return this._markers.get(t).then(e=>e.setPosition({lat:t.latitude,lng:t.longitude}))}updateTitle(t){return this._markers.get(t).then(e=>e.setTitle(t.title))}updateLabel(t){return this._markers.get(t).then(e=>{e.setLabel(t.label)})}updateDraggable(t){return this._markers.get(t).then(e=>e.setDraggable(t.draggable))}updateIcon(t){return this._markers.get(t).then(e=>e.setIcon(t.iconUrl))}updateOpacity(t){return this._markers.get(t).then(e=>e.setOpacity(t.opacity))}updateVisible(t){return this._markers.get(t).then(e=>e.setVisible(t.visible))}updateZIndex(t){return this._markers.get(t).then(e=>e.setZIndex(t.zIndex))}updateClickable(t){return this._markers.get(t).then(e=>e.setClickable(t.clickable))}updateAnimation(t){return lp(this,void 0,void 0,function*(){(yield this._markers.get(t)).setAnimation(yield this.convertAnimation(t.animation))})}addMarker(t){const e=new Promise(e=>lp(this,void 0,void 0,function*(){return this._mapsWrapper.createMarker({position:{lat:t.latitude,lng:t.longitude},label:t.label,draggable:t.draggable,icon:t.iconUrl,opacity:t.opacity,visible:t.visible,zIndex:t.zIndex,title:t.title,clickable:t.clickable,animation:yield this.convertAnimation(t.animation)}).then(e)}));this._markers.set(t,e)}getNativeMarker(t){return this._markers.get(t)}createEventObservable(t,e){return new v(i=>{this._markers.get(e).then(e=>{e.addListener(t,t=>this._zone.run(()=>i.next(t)))})})}};return t.\u0275fac=function(e){return new(e||t)(wn(Xp),wn(mu))},t.\u0275prov=_t({token:t,factory:function(e){return t.\u0275fac(e)}}),t=rp([ap("design:paramtypes",[Xp,mu])],t),t})(),rm=(()=>{let t=class{constructor(t,e,i){this._mapsWrapper=t,this._zone=e,this._markerManager=i,this._infoWindows=new Map}deleteInfoWindow(t){const e=this._infoWindows.get(t);return null==e?Promise.resolve():e.then(e=>this._zone.run(()=>{e.close(),this._infoWindows.delete(t)}))}setPosition(t){return this._infoWindows.get(t).then(e=>e.setPosition({lat:t.latitude,lng:t.longitude}))}setZIndex(t){return this._infoWindows.get(t).then(e=>e.setZIndex(t.zIndex))}open(t){return this._infoWindows.get(t).then(e=>null!=t.hostMarker?this._markerManager.getNativeMarker(t.hostMarker).then(t=>this._mapsWrapper.getNativeMap().then(i=>e.open(i,t))):this._mapsWrapper.getNativeMap().then(t=>e.open(t)))}close(t){return this._infoWindows.get(t).then(t=>t.close())}setOptions(t,e){return this._infoWindows.get(t).then(t=>t.setOptions(e))}addInfoWindow(t){const e={content:t.content,maxWidth:t.maxWidth,zIndex:t.zIndex,disableAutoPan:t.disableAutoPan};"number"==typeof t.latitude&&"number"==typeof t.longitude&&(e.position={lat:t.latitude,lng:t.longitude});const i=this._mapsWrapper.createInfoWindow(e);this._infoWindows.set(t,i)}createEventObservable(t,e){return new v(i=>{this._infoWindows.get(e).then(e=>{e.addListener(t,t=>this._zone.run(()=>i.next(t)))})})}};return t.\u0275fac=function(e){return new(e||t)(wn(Xp),wn(mu),wn(sm))},t.\u0275prov=_t({token:t,factory:function(e){return t.\u0275fac(e)}}),t=rp([ap("design:paramtypes",[Xp,mu,sm])],t),t})();var om;let am=0,lm=(()=>{let t=om=class{constructor(t,e){this._infoWindowManager=t,this._el=e,this.isOpen=!1,this.infoWindowClose=new kc,this._infoWindowAddedToManager=!1,this._id=(am++).toString()}ngOnInit(){this.content=this._el.nativeElement.querySelector(".agm-info-window-content"),this._infoWindowManager.addInfoWindow(this),this._infoWindowAddedToManager=!0,this._updateOpenState(),this._registerEventListeners()}ngOnChanges(t){this._infoWindowAddedToManager&&((t.latitude||t.longitude)&&"number"==typeof this.latitude&&"number"==typeof this.longitude&&this._infoWindowManager.setPosition(this),t.zIndex&&this._infoWindowManager.setZIndex(this),t.isOpen&&this._updateOpenState(),this._setInfoWindowOptions(t))}_registerEventListeners(){this._infoWindowManager.createEventObservable("closeclick",this).subscribe(()=>{this.isOpen=!1,this.infoWindowClose.emit()})}_updateOpenState(){this.isOpen?this.open():this.close()}_setInfoWindowOptions(t){let e={};Object.keys(t).filter(t=>-1!==om._infoWindowOptionsInputs.indexOf(t)).forEach(i=>{e[i]=t[i].currentValue}),this._infoWindowManager.setOptions(this,e)}open(){return this._infoWindowManager.open(this)}close(){return this._infoWindowManager.close(this).then(()=>{this.infoWindowClose.emit()})}id(){return this._id}toString(){return"AgmInfoWindow-"+this._id.toString()}ngOnDestroy(){this._infoWindowManager.deleteInfoWindow(this)}};return t.\u0275fac=function(e){return new(e||t)($o(rm),$o(hl))},t.\u0275cmp=Xt({type:t,selectors:[["agm-info-window"]],inputs:{isOpen:"isOpen",latitude:"latitude",longitude:"longitude",disableAutoPan:"disableAutoPan",zIndex:"zIndex",maxWidth:"maxWidth"},outputs:{infoWindowClose:"infoWindowClose"},features:[me],ngContentSelectors:Yp,decls:2,vars:0,consts:[[1,"agm-info-window-content"]],template:function(t,e){1&t&&(ha(),Qo(0,"div",0),pa(1),Xo())},encapsulation:2}),t._infoWindowOptionsInputs=["disableAutoPan","maxWidth"],t=om=rp([ap("design:paramtypes",[rm,hl])],t),t})(),cm=(()=>{let t=class{constructor(t,e){this._wrapper=t,this._zone=e,this._layers=new Map}addKmlLayer(t){const e=this._wrapper.getNativeMap().then(e=>new google.maps.KmlLayer({clickable:t.clickable,map:e,preserveViewport:t.preserveViewport,screenOverlays:t.screenOverlays,suppressInfoWindows:t.suppressInfoWindows,url:t.url,zIndex:t.zIndex}));this._layers.set(t,e)}setOptions(t,e){this._layers.get(t).then(t=>t.setOptions(e))}deleteKmlLayer(t){this._layers.get(t).then(e=>{e.setMap(null),this._layers.delete(t)})}createEventObservable(t,e){return new v(i=>{this._layers.get(e).then(e=>{e.addListener(t,t=>this._zone.run(()=>i.next(t)))})})}};return t.\u0275fac=function(e){return new(e||t)(wn(Xp),wn(mu))},t.\u0275prov=_t({token:t,factory:function(e){return t.\u0275fac(e)}}),t=rp([ap("design:paramtypes",[Xp,mu])],t),t})();function um(t){const e=["insert_at","remove_at","set_at"];return bp(i=>e.map(e=>t.addListener(e,(n,s)=>i.apply(t,[{newArr:t.getArray(),evName:e,index:n,previous:s}]))),(t,e)=>e.forEach(t=>t.remove()))}let dm=(()=>{let t=class{constructor(t,e){this._mapsWrapper=t,this._zone=e,this._polygons=new Map}addPolygon(t){const e=this._mapsWrapper.createPolygon({clickable:t.clickable,draggable:t.draggable,editable:t.editable,fillColor:t.fillColor,fillOpacity:t.fillOpacity,geodesic:t.geodesic,paths:t.paths,strokeColor:t.strokeColor,strokeOpacity:t.strokeOpacity,strokeWeight:t.strokeWeight,visible:t.visible,zIndex:t.zIndex});this._polygons.set(t,e)}updatePolygon(t){const e=this._polygons.get(t);return null==e?Promise.resolve():e.then(e=>this._zone.run(()=>{e.setPaths(t.paths)}))}setPolygonOptions(t,e){return this._polygons.get(t).then(t=>{t.setOptions(e)})}deletePolygon(t){const e=this._polygons.get(t);return null==e?Promise.resolve():e.then(e=>this._zone.run(()=>{e.setMap(null),this._polygons.delete(t)}))}getPath(t){return this._polygons.get(t).then(t=>t.getPath().getArray())}getPaths(t){return this._polygons.get(t).then(t=>t.getPaths().getArray().map(t=>t.getArray()))}createEventObservable(t,e){return new v(i=>{this._polygons.get(e).then(e=>{e.addListener(t,t=>this._zone.run(()=>i.next(t)))})})}createPathEventObservable(t){return lp(this,void 0,void 0,function*(){const e=(yield this._polygons.get(t)).getPaths();return um(e).pipe(jp({newArr:e.getArray()}),Rp(t=>Y(...t.newArr.map((e,i)=>um(e).pipe(E(e=>({parentMVEvent:t,chMVCEvent:e,pathIndex:i}))))).pipe(jp({parentMVEvent:t,chMVCEvent:null,pathIndex:null}))),Wp(1),E(({parentMVEvent:t,chMVCEvent:e,pathIndex:i})=>{let n;return e?(n={newArr:t.newArr.map(t=>t.getArray().map(t=>t.toJSON())),pathIndex:i,eventName:e.evName,index:e.index},e.previous&&(n.previous=e.previous)):(n={newArr:t.newArr.map(t=>t.getArray().map(t=>t.toJSON())),eventName:t.evName,index:t.index},t.previous&&(n.previous=t.previous.getArray())),n}))})}};return t.\u0275fac=function(e){return new(e||t)(wn(Xp),wn(mu))},t.\u0275prov=_t({token:t,factory:function(e){return t.\u0275fac(e)}}),t=rp([ap("design:paramtypes",[Xp,mu])],t),t})();var hm;let pm=(()=>{let t=hm=class{constructor(t,e){this._mapsWrapper=t,this._zone=e,this._polylines=new Map}static _convertPoints(t){return t._getPoints().map(t=>({lat:t.latitude,lng:t.longitude}))}static _convertPath(t){const e=google.maps.SymbolPath[t];return"number"==typeof e?e:t}static _convertIcons(t){const e=t._getIcons().map(t=>({fixedRotation:t.fixedRotation,offset:t.offset,repeat:t.repeat,icon:{anchor:new google.maps.Point(t.anchorX,t.anchorY),fillColor:t.fillColor,fillOpacity:t.fillOpacity,path:hm._convertPath(t.path),rotation:t.rotation,scale:t.scale,strokeColor:t.strokeColor,strokeOpacity:t.strokeOpacity,strokeWeight:t.strokeWeight}}));return e.forEach(t=>{Object.entries(t).forEach(([e,i])=>{void 0===i&&delete t[e]}),void 0!==t.icon.anchor.x&&void 0!==t.icon.anchor.y||delete t.icon.anchor}),e}addPolyline(t){const e=this._mapsWrapper.getNativeMap().then(()=>[hm._convertPoints(t),hm._convertIcons(t)]).then(([e,i])=>this._mapsWrapper.createPolyline({clickable:t.clickable,draggable:t.draggable,editable:t.editable,geodesic:t.geodesic,strokeColor:t.strokeColor,strokeOpacity:t.strokeOpacity,strokeWeight:t.strokeWeight,visible:t.visible,zIndex:t.zIndex,path:e,icons:i}));this._polylines.set(t,e)}updatePolylinePoints(t){const e=hm._convertPoints(t),i=this._polylines.get(t);return null==i?Promise.resolve():i.then(t=>this._zone.run(()=>{t.setPath(e)}))}updateIconSequences(t){return lp(this,void 0,void 0,function*(){yield this._mapsWrapper.getNativeMap();const e=hm._convertIcons(t),i=this._polylines.get(t);if(null!=i)return i.then(t=>this._zone.run(()=>t.setOptions({icons:e})))})}setPolylineOptions(t,e){return this._polylines.get(t).then(t=>{t.setOptions(e)})}deletePolyline(t){const e=this._polylines.get(t);return null==e?Promise.resolve():e.then(e=>this._zone.run(()=>{e.setMap(null),this._polylines.delete(t)}))}getMVCPath(t){return lp(this,void 0,void 0,function*(){return(yield this._polylines.get(t)).getPath()})}getPath(t){return lp(this,void 0,void 0,function*(){return(yield this.getMVCPath(t)).getArray()})}createEventObservable(t,e){return new v(i=>{this._polylines.get(e).then(e=>{e.addListener(t,t=>this._zone.run(()=>i.next(t)))})})}createPathEventObservable(t){return lp(this,void 0,void 0,function*(){return um(yield this.getMVCPath(t))})}};return t.\u0275fac=function(e){return new(e||t)(wn(Xp),wn(mu))},t.\u0275prov=_t({token:t,factory:function(e){return t.\u0275fac(e)}}),t=hm=rp([ap("design:paramtypes",[Xp,mu])],t),t})(),mm=(()=>{let t=class{constructor(t,e){this._apiWrapper=t,this._zone=e,this._rectangles=new Map}addRectangle(t){this._rectangles.set(t,this._apiWrapper.createRectangle({bounds:{north:t.north,east:t.east,south:t.south,west:t.west},clickable:t.clickable,draggable:t.draggable,editable:t.editable,fillColor:t.fillColor,fillOpacity:t.fillOpacity,strokeColor:t.strokeColor,strokeOpacity:t.strokeOpacity,strokePosition:t.strokePosition,strokeWeight:t.strokeWeight,visible:t.visible,zIndex:t.zIndex}))}removeRectangle(t){return this._rectangles.get(t).then(e=>{e.setMap(null),this._rectangles.delete(t)})}setOptions(t,e){return this._rectangles.get(t).then(t=>t.setOptions(e))}getBounds(t){return this._rectangles.get(t).then(t=>t.getBounds())}setBounds(t){return this._rectangles.get(t).then(e=>e.setBounds({north:t.north,east:t.east,south:t.south,west:t.west}))}setEditable(t){return this._rectangles.get(t).then(e=>e.setEditable(t.editable))}setDraggable(t){return this._rectangles.get(t).then(e=>e.setDraggable(t.draggable))}setVisible(t){return this._rectangles.get(t).then(e=>e.setVisible(t.visible))}createEventObservable(t,e){return v.create(i=>{let n=null;return this._rectangles.get(e).then(e=>{n=e.addListener(t,t=>this._zone.run(()=>i.next(t)))}),()=>{null!==n&&n.remove()}})}};return t.\u0275fac=function(e){return new(e||t)(wn(Xp),wn(mu))},t.\u0275prov=_t({token:t,factory:function(e){return t.\u0275fac(e)}}),t=rp([ap("design:paramtypes",[Xp,mu])],t),t})();var fm;let gm=(()=>{let t=fm=class{constructor(t,e,i,n,s){this._elem=t,this._mapsWrapper=e,this._platformId=i,this._fitBoundsService=n,this._zone=s,this.longitude=0,this.latitude=0,this.zoom=8,this.draggable=!0,this.disableDoubleClickZoom=!1,this.disableDefaultUI=!1,this.scrollwheel=!0,this.keyboardShortcuts=!0,this.styles=[],this.usePanning=!1,this.fitBounds=!1,this.scaleControl=!1,this.mapTypeControl=!1,this.panControl=!1,this.rotateControl=!1,this.fullscreenControl=!1,this.mapTypeId="roadmap",this.clickableIcons=!0,this.showDefaultInfoWindow=!0,this.gestureHandling="auto",this.tilt=0,this._observableSubscriptions=[],this.mapClick=new kc,this.mapRightClick=new kc,this.mapDblClick=new kc,this.centerChange=new kc,this.boundsChange=new kc,this.mapTypeIdChange=new kc,this.idle=new kc,this.zoomChange=new kc,this.mapReady=new kc,this.tilesLoaded=new kc}ngOnInit(){if(wh(this._platformId))return;const t=this._elem.nativeElement.querySelector(".agm-map-container-inner");this._initMapInstance(t)}_initMapInstance(t){this._mapsWrapper.createMap(t,{center:{lat:this.latitude||0,lng:this.longitude||0},zoom:this.zoom,minZoom:this.minZoom,maxZoom:this.maxZoom,controlSize:this.controlSize,disableDefaultUI:this.disableDefaultUI,disableDoubleClickZoom:this.disableDoubleClickZoom,scrollwheel:this.scrollwheel,backgroundColor:this.backgroundColor,draggable:this.draggable,draggableCursor:this.draggableCursor,draggingCursor:this.draggingCursor,keyboardShortcuts:this.keyboardShortcuts,styles:this.styles,zoomControl:this.zoomControl,zoomControlOptions:this.zoomControlOptions,streetViewControl:this.streetViewControl,streetViewControlOptions:this.streetViewControlOptions,scaleControl:this.scaleControl,scaleControlOptions:this.scaleControlOptions,mapTypeControl:this.mapTypeControl,mapTypeControlOptions:this.mapTypeControlOptions,panControl:this.panControl,panControlOptions:this.panControlOptions,rotateControl:this.rotateControl,rotateControlOptions:this.rotateControlOptions,fullscreenControl:this.fullscreenControl,fullscreenControlOptions:this.fullscreenControlOptions,mapTypeId:this.mapTypeId,clickableIcons:this.clickableIcons,gestureHandling:this.gestureHandling,tilt:this.tilt,restriction:this.restriction}).then(()=>this._mapsWrapper.getNativeMap()).then(t=>this.mapReady.emit(t)),this._handleMapCenterChange(),this._handleMapZoomChange(),this._handleMapMouseEvents(),this._handleBoundsChange(),this._handleMapTypeIdChange(),this._handleTilesLoadedEvent(),this._handleIdleEvent()}ngOnDestroy(){this._observableSubscriptions.forEach(t=>t.unsubscribe()),this._mapsWrapper.clearInstanceListeners(),this._fitBoundsSubscription&&this._fitBoundsSubscription.unsubscribe()}ngOnChanges(t){this._updateMapOptionsChanges(t),this._updatePosition(t)}_updateMapOptionsChanges(t){let e={};Object.keys(t).filter(t=>-1!==fm._mapOptionsAttributes.indexOf(t)).forEach(i=>{e[i]=t[i].currentValue}),this._mapsWrapper.setMapOptions(e)}triggerResize(t=!0){return new Promise(e=>{setTimeout(()=>this._mapsWrapper.triggerMapEvent("resize").then(()=>{t&&(null!=this.fitBounds?this._fitBounds():this._setCenter()),e()}))})}_updatePosition(t){(null!=t.latitude||null!=t.longitude||t.fitBounds)&&("fitBounds"in t?this._fitBounds():"number"==typeof this.latitude&&"number"==typeof this.longitude&&this._setCenter())}_setCenter(){let t={lat:this.latitude,lng:this.longitude};this.usePanning?this._mapsWrapper.panTo(t):this._mapsWrapper.setCenter(t)}_fitBounds(){switch(this.fitBounds){case!0:this._subscribeToFitBoundsUpdates();break;case!1:this._fitBoundsSubscription&&this._fitBoundsSubscription.unsubscribe();break;default:this._updateBounds(this.fitBounds,this.fitBoundsPadding)}}_subscribeToFitBoundsUpdates(){this._zone.runOutsideAngular(()=>{this._fitBoundsSubscription=this._fitBoundsService.getBounds$().subscribe(t=>{this._zone.run(()=>this._updateBounds(t,this.fitBoundsPadding))})})}_updateBounds(t,e){if(t){if(this._isLatLngBoundsLiteral(t)&&"undefined"!=typeof google&&google&&google.maps&&google.maps.LatLngBounds){const e=new google.maps.LatLngBounds;e.union(t),t=e}this.usePanning?this._mapsWrapper.panToBounds(t,e):this._mapsWrapper.fitBounds(t,e)}}_isLatLngBoundsLiteral(t){return null!=t&&void 0===t.extend}_handleMapCenterChange(){const t=this._mapsWrapper.subscribeToMapEvent("center_changed").subscribe(()=>{this._mapsWrapper.getCenter().then(t=>{this.latitude=t.lat(),this.longitude=t.lng(),this.centerChange.emit({lat:this.latitude,lng:this.longitude})})});this._observableSubscriptions.push(t)}_handleBoundsChange(){const t=this._mapsWrapper.subscribeToMapEvent("bounds_changed").subscribe(()=>{this._mapsWrapper.getBounds().then(t=>{this.boundsChange.emit(t)})});this._observableSubscriptions.push(t)}_handleMapTypeIdChange(){const t=this._mapsWrapper.subscribeToMapEvent("maptypeid_changed").subscribe(()=>{this._mapsWrapper.getMapTypeId().then(t=>{this.mapTypeIdChange.emit(t)})});this._observableSubscriptions.push(t)}_handleMapZoomChange(){const t=this._mapsWrapper.subscribeToMapEvent("zoom_changed").subscribe(()=>{this._mapsWrapper.getZoom().then(t=>{this.zoom=t,this.zoomChange.emit(t)})});this._observableSubscriptions.push(t)}_handleIdleEvent(){const t=this._mapsWrapper.subscribeToMapEvent("idle").subscribe(()=>{this.idle.emit(void 0)});this._observableSubscriptions.push(t)}_handleTilesLoadedEvent(){const t=this._mapsWrapper.subscribeToMapEvent("tilesloaded").subscribe(()=>this.tilesLoaded.emit(void 0));this._observableSubscriptions.push(t)}_handleMapMouseEvents(){[{name:"click",emitter:this.mapClick},{name:"rightclick",emitter:this.mapRightClick},{name:"dblclick",emitter:this.mapDblClick}].forEach(t=>{const e=this._mapsWrapper.subscribeToMapEvent(t.name).subscribe(e=>{let i={coords:{lat:e.latLng.lat(),lng:e.latLng.lng()},placeId:e.placeId};i.placeId&&!this.showDefaultInfoWindow&&e.stop(),t.emitter.emit(i)});this._observableSubscriptions.push(e)})}};return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(Xp),$o(Jc),$o(nm),$o(mu))},t.\u0275cmp=Xt({type:t,selectors:[["agm-map"]],hostVars:2,hostBindings:function(t,e){2&t&&Sa("sebm-google-map-container",!0)},inputs:{longitude:"longitude",latitude:"latitude",zoom:"zoom",draggable:["mapDraggable","draggable"],disableDoubleClickZoom:"disableDoubleClickZoom",disableDefaultUI:"disableDefaultUI",scrollwheel:"scrollwheel",keyboardShortcuts:"keyboardShortcuts",styles:"styles",usePanning:"usePanning",fitBounds:"fitBounds",scaleControl:"scaleControl",mapTypeControl:"mapTypeControl",panControl:"panControl",rotateControl:"rotateControl",fullscreenControl:"fullscreenControl",mapTypeId:"mapTypeId",clickableIcons:"clickableIcons",showDefaultInfoWindow:"showDefaultInfoWindow",gestureHandling:"gestureHandling",tilt:"tilt",minZoom:"minZoom",maxZoom:"maxZoom",controlSize:"controlSize",backgroundColor:"backgroundColor",draggableCursor:"draggableCursor",draggingCursor:"draggingCursor",zoomControl:"zoomControl",zoomControlOptions:"zoomControlOptions",streetViewControl:"streetViewControl",streetViewControlOptions:"streetViewControlOptions",fitBoundsPadding:"fitBoundsPadding",scaleControlOptions:"scaleControlOptions",mapTypeControlOptions:"mapTypeControlOptions",panControlOptions:"panControlOptions",rotateControlOptions:"rotateControlOptions",fullscreenControlOptions:"fullscreenControlOptions",restriction:"restriction"},outputs:{mapClick:"mapClick",mapRightClick:"mapRightClick",mapDblClick:"mapDblClick",centerChange:"centerChange",boundsChange:"boundsChange",mapTypeIdChange:"mapTypeIdChange",idle:"idle",zoomChange:"zoomChange",mapReady:"mapReady",tilesLoaded:"tilesLoaded"},features:[rl([Zp,em,em,nm,Xp,rm,cm,Kp,sm,dm,pm,mm]),me],ngContentSelectors:Yp,decls:3,vars:0,consts:[[1,"agm-map-container-inner","sebm-google-map-container-inner"],[1,"agm-map-content"]],template:function(t,e){1&t&&(ha(),Ko(0,"div",0),Qo(1,"div",1),pa(2),Xo())},styles:[".agm-map-container-inner[_ngcontent-%COMP%] {\n width: inherit;\n height: inherit;\n }\n .agm-map-content[_ngcontent-%COMP%] {\n display:none;\n }"]}),t._mapOptionsAttributes=["disableDoubleClickZoom","scrollwheel","draggable","draggableCursor","draggingCursor","keyboardShortcuts","zoomControl","zoomControlOptions","styles","streetViewControl","streetViewControlOptions","zoom","mapTypeControl","mapTypeControlOptions","minZoom","maxZoom","panControl","panControlOptions","rotateControl","rotateControlOptions","fullscreenControl","fullscreenControlOptions","scaleControl","scaleControlOptions","mapTypeId","clickableIcons","gestureHandling","tilt","restriction"],t=fm=rp([op(2,kn(Jc)),ap("design:paramtypes",[hl,Xp,Object,nm,mu])],t),t})();var _m;let bm=0,ym=(()=>{let t=_m=class{constructor(t){this._markerManager=t,this.draggable=!1,this.visible=!0,this.openInfoWindow=!0,this.opacity=1,this.zIndex=1,this.clickable=!0,this.animationChange=new kc,this.markerClick=new kc,this.markerDblClick=new kc,this.markerRightClick=new kc,this.dragStart=new kc,this.drag=new kc,this.dragEnd=new kc,this.mouseOver=new kc,this.mouseOut=new kc,this.infoWindow=new Oc,this._markerAddedToManger=!1,this._observableSubscriptions=[],this._fitBoundsDetails$=new Pp(1),this._id=(bm++).toString()}ngAfterContentInit(){this.handleInfoWindowUpdate(),this.infoWindow.changes.subscribe(()=>this.handleInfoWindowUpdate())}handleInfoWindowUpdate(){if(this.infoWindow.length>1)throw new Error("Expected no more than one info window.");this.infoWindow.forEach(t=>{t.hostMarker=this})}ngOnChanges(t){if("string"==typeof this.latitude&&(this.latitude=Number(this.latitude)),"string"==typeof this.longitude&&(this.longitude=Number(this.longitude)),"number"==typeof this.latitude&&"number"==typeof this.longitude){if(!this._markerAddedToManger)return this._markerManager.addMarker(this),this._updateFitBoundsDetails(),this._markerAddedToManger=!0,void this._addEventListeners();(t.latitude||t.longitude)&&(this._markerManager.updateMarkerPosition(this),this._updateFitBoundsDetails()),t.title&&this._markerManager.updateTitle(this),t.label&&this._markerManager.updateLabel(this),t.draggable&&this._markerManager.updateDraggable(this),t.iconUrl&&this._markerManager.updateIcon(this),t.opacity&&this._markerManager.updateOpacity(this),t.visible&&this._markerManager.updateVisible(this),t.zIndex&&this._markerManager.updateZIndex(this),t.clickable&&this._markerManager.updateClickable(this),t.animation&&this._markerManager.updateAnimation(this)}}getFitBoundsDetails$(){return this._fitBoundsDetails$.asObservable()}_updateFitBoundsDetails(){this._fitBoundsDetails$.next({latLng:{lat:this.latitude,lng:this.longitude}})}_addEventListeners(){const t=this._markerManager.createEventObservable("click",this).subscribe(()=>{this.openInfoWindow&&this.infoWindow.forEach(t=>t.open()),this.markerClick.emit(this)});this._observableSubscriptions.push(t);const e=this._markerManager.createEventObservable("dblclick",this).subscribe(()=>{this.markerDblClick.emit(null)});this._observableSubscriptions.push(e);const i=this._markerManager.createEventObservable("rightclick",this).subscribe(()=>{this.markerRightClick.emit(null)});this._observableSubscriptions.push(i);const n=this._markerManager.createEventObservable("dragstart",this).subscribe(t=>{this.dragStart.emit({coords:{lat:t.latLng.lat(),lng:t.latLng.lng()}})});this._observableSubscriptions.push(n);const s=this._markerManager.createEventObservable("drag",this).subscribe(t=>{this.drag.emit({coords:{lat:t.latLng.lat(),lng:t.latLng.lng()}})});this._observableSubscriptions.push(s);const r=this._markerManager.createEventObservable("dragend",this).subscribe(t=>{this.dragEnd.emit({coords:{lat:t.latLng.lat(),lng:t.latLng.lng()}})});this._observableSubscriptions.push(r);const o=this._markerManager.createEventObservable("mouseover",this).subscribe(t=>{this.mouseOver.emit({coords:{lat:t.latLng.lat(),lng:t.latLng.lng()}})});this._observableSubscriptions.push(o);const a=this._markerManager.createEventObservable("mouseout",this).subscribe(t=>{this.mouseOut.emit({coords:{lat:t.latLng.lat(),lng:t.latLng.lng()}})});this._observableSubscriptions.push(a);const l=this._markerManager.createEventObservable("animation_changed",this).subscribe(()=>{this.animationChange.emit(this.animation)});this._observableSubscriptions.push(l)}id(){return this._id}toString(){return"AgmMarker-"+this._id.toString()}ngOnDestroy(){this._markerManager.deleteMarker(this),this._observableSubscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)($o(sm))},t.\u0275dir=ie({type:t,selectors:[["agm-marker"]],contentQueries:function(t,e,i){if(1&t&&Bc(i,lm,0),2&t){let t;Nc(t=Hc())&&(e.infoWindow=t)}},inputs:{latitude:"latitude",longitude:"longitude",title:"title",label:"label",draggable:["markerDraggable","draggable"],iconUrl:"iconUrl",openInfoWindow:"openInfoWindow",opacity:"opacity",visible:"visible",zIndex:"zIndex",animation:"animation",clickable:["markerClickable","clickable"]},outputs:{markerClick:"markerClick",dragStart:"dragStart",drag:"drag",dragEnd:"dragEnd",mouseOver:"mouseOver",mouseOut:"mouseOut",animationChange:"animationChange",markerDblClick:"markerDblClick",markerRightClick:"markerRightClick"},features:[rl([{provide:im,useExisting:ut(()=>_m)}]),me]}),t=_m=rp([ap("design:paramtypes",[sm])],t),t})();class vm{getNativeWindow(){return window}}class wm{getNativeDocument(){return document}}const Cm=[vm,wm];var xm=function(t){return t[t.HTTP=1]="HTTP",t[t.HTTPS=2]="HTTPS",t[t.AUTO=3]="AUTO",t}({});const Sm=new en("angular-google-maps LAZY_MAPS_API_CONFIG");let km=(()=>{let t=class extends Qp{constructor(t=null,e,i,n){super(),this.localeId=n,this._SCRIPT_ID="agmGoogleMapsApiScript",this.callbackName="agmLazyMapsAPILoader",this._config=t||{},this._windowRef=e,this._documentRef=i}load(){const t=this._windowRef.getNativeWindow();if(t.google&&t.google.maps)return Promise.resolve();if(this._scriptLoadingPromise)return this._scriptLoadingPromise;const e=this._documentRef.getNativeDocument().getElementById(this._SCRIPT_ID);if(e)return this._assignScriptLoadingPromise(e),this._scriptLoadingPromise;const i=this._documentRef.getNativeDocument().createElement("script");return i.type="text/javascript",i.async=!0,i.defer=!0,i.id=this._SCRIPT_ID,i.src=this._getScriptSrc(this.callbackName),this._assignScriptLoadingPromise(i),this._documentRef.getNativeDocument().body.appendChild(i),this._scriptLoadingPromise}_assignScriptLoadingPromise(t){this._scriptLoadingPromise=new Promise((e,i)=>{this._windowRef.getNativeWindow()[this.callbackName]=()=>{e()},t.onerror=t=>{i(t)}})}_getScriptSrc(t){let e;switch(this._config&&this._config.protocol||xm.HTTPS){case xm.AUTO:e="";break;case xm.HTTP:e="http:";break;case xm.HTTPS:e="https:"}const i={v:this._config.apiVersion||"quarterly",callback:t,key:this._config.apiKey,client:this._config.clientId,channel:this._config.channel,libraries:this._config.libraries,region:this._config.region,language:this._config.language||"en-US"!==this.localeId?this.localeId:null};return`${e}//${this._config.hostAndPath||"maps.googleapis.com/maps/api/js"}?${Object.keys(i).filter(t=>null!=i[t]).filter(t=>!Array.isArray(i[t])||Array.isArray(i[t])&&i[t].length>0).map(t=>{let e=i[t];return Array.isArray(e)?{key:t,value:e.join(",")}:{key:t,value:i[t]}}).map(t=>`${t.key}=${t.value}`).join("&")}`}};return t.\u0275fac=function(e){return new(e||t)(wn(Sm,8),wn(vm),wn(wm),wn(iu))},t.\u0275prov=_t({token:t,factory:function(e){return t.\u0275fac(e)}}),t=rp([op(0,An()),op(0,kn(Sm)),op(3,kn(iu)),ap("design:paramtypes",[Object,vm,wm,String])],t),t})();var Am;let Om=(()=>{let t=Am=class{static forRoot(t){return{ngModule:Am,providers:[...Cm,{provide:Qp,useClass:km},{provide:Sm,useValue:t}]}}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({}),t})();i("c+JA");let Em=(()=>{let t=class extends sm{constructor(t,e){super(t,e),this._mapsWrapper=t,this._zone=e,this._clustererInstance=new Promise(t=>{this._resolver=t})}init(t){this._mapsWrapper.getNativeMap().then(e=>{const i=new MarkerClusterer(e,[],t);this._resolver(i)})}getClustererInstance(){return this._clustererInstance}addMarker(t){const e=this.getClustererInstance(),i=this._mapsWrapper.createMarker({position:{lat:t.latitude,lng:t.longitude},label:t.label,draggable:t.draggable,icon:t.iconUrl,opacity:t.opacity,visible:t.visible,zIndex:t.zIndex,title:t.title,clickable:t.clickable},!1);Promise.all([e,i]).then(([t,e])=>t.addMarker(e)),this._markers.set(t,i)}deleteMarker(t){const e=this._markers.get(t);return null==e?Promise.resolve():e.then(e=>{this._zone.run(()=>{e.setMap(null),this.getClustererInstance().then(i=>{i.removeMarker(e),this._markers.delete(t)})})})}clearMarkers(){return this.getClustererInstance().then(t=>{t.clearMarkers()})}setGridSize(t){this.getClustererInstance().then(e=>{e.setGridSize(t.gridSize)})}setMaxZoom(t){this.getClustererInstance().then(e=>{e.setMaxZoom(t.maxZoom)})}setStyles(t){this.getClustererInstance().then(e=>{e.setStyles(t.styles)})}setZoomOnClick(t){this.getClustererInstance().then(e=>{void 0!==t.zoomOnClick&&(e.zoomOnClick_=t.zoomOnClick)})}setAverageCenter(t){this.getClustererInstance().then(e=>{void 0!==t.averageCenter&&(e.averageCenter_=t.averageCenter)})}setImagePath(t){this.getClustererInstance().then(e=>{void 0!==t.imagePath&&(e.imagePath_=t.imagePath)})}setMinimumClusterSize(t){this.getClustererInstance().then(e=>{void 0!==t.minimumClusterSize&&(e.minimumClusterSize_=t.minimumClusterSize)})}setImageExtension(t){this.getClustererInstance().then(e=>{void 0!==t.imageExtension&&(e.imageExtension_=t.imageExtension)})}createClusterEventObservable(t){return v.create(e=>{this._zone.runOutsideAngular(()=>{this._clustererInstance.then(i=>{i.addListener(t,t=>this._zone.run(()=>e.next(t)))})})})}setCalculator(t){this.getClustererInstance().then(e=>{"function"==typeof t.calculator&&e.setCalculator(t.calculator)})}};return t.\u0275fac=function(e){return new(e||t)(wn(Xp),wn(mu))},t.\u0275prov=_t({token:t,factory:function(e){return t.\u0275fac(e)}}),t=rp([ap("design:paramtypes",[Xp,mu])],t),t})(),Tm=(()=>{let t=class{constructor(t){this._clusterManager=t,this.clusterClick=new kc,this._observableSubscriptions=[]}ngOnDestroy(){this._clusterManager.clearMarkers(),this._observableSubscriptions.forEach(t=>t.unsubscribe())}ngOnChanges(t){t.gridSize&&this._clusterManager.setGridSize(this),t.maxZoom&&this._clusterManager.setMaxZoom(this),t.zoomOnClick&&this._clusterManager.setZoomOnClick(this),t.averageCenter&&this._clusterManager.setAverageCenter(this),t.minimumClusterSize&&this._clusterManager.setMinimumClusterSize(this),t.imagePath&&this._clusterManager.setImagePath(this),t.imageExtension&&this._clusterManager.setImageExtension(this),t.calculator&&this._clusterManager.setCalculator(this),t.styles&&this._clusterManager.setStyles(this)}_addEventListeners(){[{name:"clusterclick",handler:()=>this.clusterClick.emit()}].forEach(t=>{const e=this._clusterManager.createClusterEventObservable(t.name).subscribe(t.handler);this._observableSubscriptions.push(e)})}ngOnInit(){this._addEventListeners(),this._clusterManager.init({gridSize:this.gridSize,maxZoom:this.maxZoom,zoomOnClick:this.zoomOnClick,averageCenter:this.averageCenter,minimumClusterSize:this.minimumClusterSize,styles:this.styles,imagePath:this.imagePath,imageExtension:this.imageExtension,calculator:this.calculator})}};return t.\u0275fac=function(e){return new(e||t)($o(Em))},t.\u0275dir=ie({type:t,selectors:[["agm-marker-cluster"]],inputs:{gridSize:"gridSize",maxZoom:"maxZoom",zoomOnClick:"zoomOnClick",averageCenter:"averageCenter",minimumClusterSize:"minimumClusterSize",styles:"styles",calculator:"calculator",imagePath:"imagePath",imageExtension:"imageExtension"},outputs:{clusterClick:"clusterClick"},features:[rl([Em,{provide:sm,useExisting:Em},rm]),me]}),t=rp([ap("design:paramtypes",[Em])],t),t})(),Pm=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[Om]]}),t})();function Dm(t,e){return G(t,e,1)}function Mm(t,e){return function(i){return i.lift(new Im(t,e))}}class Im{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Rm(t,this.predicate,this.thisArg))}}class Rm extends m{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)}}class Lm{}class Fm{}class Nm{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 Nm?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 Nm;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Nm?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 Vm{encodeKey(t){return Bm(t)}encodeValue(t){return Bm(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function Bm(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 Hm{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Vm,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.replace(/^\?/,"").split("&").forEach(t=>{const n=t.indexOf("="),[s,r]=-1==n?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,n)),e.decodeValue(t.slice(n+1))],o=i.get(s)||[];o.push(r),i.set(s,o)}),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"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const n=t[i];Array.isArray(n)?n.forEach(t=>{e.push({param:i,value:t,op:"a"})}):e.push({param:i,value:n,op:"a"})}),this.clone(e)}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 Hm({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 zm(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Gm(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Um(t){return"undefined"!=typeof FormData&&t instanceof FormData}class jm{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 Nm),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]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,i)=>e.set(i,t.setParams[i]),l)),new jm(e,i,s,{params:l,headers:a,reportProgress:o,responseType:n,withCredentials:r})}}var Wm=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class $m{constructor(t,e=200,i="OK"){this.headers=t.headers||new Nm,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 qm extends $m{constructor(t={}){super(t),this.type=Wm.ResponseHeader}clone(t={}){return new qm({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 Ym extends $m{constructor(t={}){super(t),this.type=Wm.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Ym({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 Qm extends $m{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 Xm(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Km=(()=>{class t{constructor(t){this.handler=t}request(t,e,i={}){let n;if(t instanceof jm)n=t;else{let s,r;s=i.headers instanceof Nm?i.headers:new Nm(i.headers),i.params&&(r=i.params instanceof Hm?i.params:new Hm({fromObject:i.params})),n=new jm(t,e,void 0!==i.body?i.body:null,{headers:s,params:r,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const s=Sp(n).pipe(Dm(t=>this.handler.handle(t)));if(t instanceof jm||"events"===i.observe)return s;const r=s.pipe(Mm(t=>t instanceof Ym));switch(i.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return r.pipe(E(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return r.pipe(E(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return r.pipe(E(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return r.pipe(E(t=>t.body))}case"response":return r;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 Hm).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,Xm(i,e))}post(t,e,i={}){return this.request("POST",t,Xm(i,e))}put(t,e,i={}){return this.request("PUT",t,Xm(i,e))}}return t.\u0275fac=function(e){return new(e||t)(wn(Lm))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();class Zm{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const Jm=new en("HTTP_INTERCEPTORS");let tf=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();const ef=/^\)\]\}',?\n/;class nf{}let sf=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})(),rf=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new v(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 r=()=>{if(null!==s)return s;const e=1223===i.status?204:i.status,n=i.statusText||"OK",r=new Nm(i.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(i)||t.url;return s=new qm({headers:r,status:e,statusText:n,url:o}),s},o=()=>{let{headers:n,status:s,statusText:o,url:a}=r(),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(ef,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=t,c&&(c=!1,l={error:u,text:l})}}c?(e.next(new Ym({body:l,headers:n,status:s,statusText:o,url:a||void 0})),e.complete()):e.error(new Qm({error:l,headers:n,status:s,statusText:o,url:a||void 0}))},a=t=>{const{url:n}=r(),s=new Qm({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(r()),l=!0);let s={type:Wm.DownloadProgress,loaded:n.loaded};n.lengthComputable&&(s.total=n.total),"text"===t.responseType&&i.responseText&&(s.partialText=i.responseText),e.next(s)},u=t=>{let i={type:Wm.UploadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),e.next(i)};return i.addEventListener("load",o),i.addEventListener("error",a),i.addEventListener("timeout",a),i.addEventListener("abort",a),t.reportProgress&&(i.addEventListener("progress",c),null!==n&&i.upload&&i.upload.addEventListener("progress",u)),i.send(n),e.next({type:Wm.Sent}),()=>{i.removeEventListener("error",a),i.removeEventListener("abort",a),i.removeEventListener("load",o),i.removeEventListener("timeout",a),t.reportProgress&&(i.removeEventListener("progress",c),null!==n&&i.upload&&i.upload.removeEventListener("progress",u)),i.readyState!==i.DONE&&i.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(wn(nf))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();const of=new en("XSRF_COOKIE_NAME"),af=new en("XSRF_HEADER_NAME");class lf{}let cf=(()=>{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=Yd(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(wn(qu),wn(Jc),wn(of))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})(),uf=(()=>{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)(wn(lf),wn(af))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})(),df=(()=>{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(Jm,[]);this.chain=t.reduceRight((t,e)=>new Zm(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(wn(Fm),wn(ko))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})(),hf=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:uf,useClass:tf}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:of,useValue:e.cookieName}:[],e.headerName?{provide:af,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:[uf,{provide:Jm,useExisting:uf,multi:!0},{provide:lf,useClass:cf},{provide:of,useValue:"XSRF-TOKEN"},{provide:af,useValue:"X-XSRF-TOKEN"}]}),t})(),pf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:[Km,{provide:Lm,useClass:df},rf,{provide:Fm,useExisting:rf},sf,{provide:nf,useExisting:sf}],imports:[[hf.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})(),mf=1;const ff=(()=>Promise.resolve())(),gf={};function _f(t){return t in gf&&(delete gf[t],!0)}const bf={setImmediate(t){const e=mf++;return gf[e]=!0,ff.then(()=>_f(e)&&t()),e},clearImmediate(t){_f(t)}};class yf extends dp{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=bf.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&&(bf.clearImmediate(e),t.scheduled=void 0)}}class vf extends pp{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(++nl(t)?s(...t):s(t))):new v(n=>{xf(t,e,function(t){n.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},n,i)})}function xf(t,e,i,n,s){let r;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const n=t;t.addEventListener(e,i,s),r=()=>n.removeEventListener(e,i,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const n=t;t.on(e,i),r=()=>n.off(e,i)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const n=t;t.addListener(e,i),r=()=>n.removeListener(e,i)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let r=0,o=t.length;ri.lift(new kf(t,e))}class kf{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new Af(t,this.dueTime,this.scheduler))}}class Af extends m{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(Of,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 Of(t){t.debouncedNext()}const Ef=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function Tf(t){return e=>0===t?xp():e.lift(new Pf(t))}class Pf{constructor(t){if(this.total=t,this.total<0)throw new Ef}call(t,e){return e.subscribe(new Df(t,this.total))}}class Df extends m{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 Mf(){}function If(t,e,i){return function(n){return n.lift(new Rf(t,e,i))}}class Rf{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new Lf(t,this.nextOrObserver,this.error,this.complete))}}class Lf extends m{constructor(t,e,i,s){super(t),this._tapNext=Mf,this._tapError=Mf,this._tapComplete=Mf,this._tapError=i||Mf,this._tapComplete=s||Mf,n(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Mf,this._tapError=e.error||Mf,this._tapComplete=e.complete||Mf)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}const Ff={provide:tu,useFactory:function(t,e){return()=>{if(vh(e)){const e=Array.from(t.querySelectorAll(`[class*=${Nf}]`)),i=/\bflex-layout-.+?\b/g;e.forEach(t=>{t.classList.contains(`${Nf}ssr`)&&t.parentNode?t.parentNode.removeChild(t):t.className.replace(i,"")})}}},deps:[qu,Jc],multi:!0},Nf="flex-layout-";let Vf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:[Ff]}),t})();class Bf{constructor(t=!1,e="all",i="",n="",s=0){this.matches=t,this.mediaQuery=e,this.mqAlias=i,this.suffix=n,this.priority=s,this.property=""}clone(){return new Bf(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let Hf=(()=>{class t{constructor(){this.stylesheet=new Map}addStyleToElement(t,e,i){const n=this.stylesheet.get(t);n?n.set(e,i):this.stylesheet.set(t,new Map([[e,i]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(t,e){const i=this.stylesheet.get(t);let n="";if(i){const t=i.get(e);"number"!=typeof t&&"string"!=typeof t||(n=t+"")}return n}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({factory:function(){return new t},token:t,providedIn:"root"}),t})();const zf={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},Gf=new en("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>zf}),Uf=new en("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),jf=new en("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function Wf(t,e){return t=t?t.clone():new Bf,e&&(t.mqAlias=e.alias,t.mediaQuery=e.mediaQuery,t.suffix=e.suffix,t.priority=e.priority),t}const $f=["row","column","row-reverse","column-reverse"];function qf(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}let Yf=(()=>{class t{constructor(t,e,i,n){this.elementRef=t,this.styleBuilder=e,this.styler=i,this.marshal=n,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new k,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,this.marshal.activatedAlias)}ngOnChanges(t){Object.keys(t).forEach(e=>{if(-1!==this.inputs.indexOf(e)){const i=e.split(".").slice(1).join(".");this.setValue(t[e].currentValue,i)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(t=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),t)}addStyles(t,e){const i=this.styleBuilder,n=i.shouldCache;let s=this.styleCache.get(t);s&&n||(s=i.buildStyles(t,e),n&&this.styleCache.set(t,s)),this.mru=Object.assign({},s),this.applyStyleToElement(s),i.sideEffect(t,s,e)}clearStyles(){Object.keys(this.mru).forEach(t=>{this.mru[t]=""}),this.applyStyleToElement(this.mru),this.mru={}}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(t,e=!1){if(t){const[i,n]=this.styler.getFlowDirection(t);if(!n&&e){const e=function(t){let[e,i,n]=function(t){t=t?t.toLowerCase():"";let[e,i,n]=t.split(" ");return $f.find(t=>t===e)||(e=$f[0]),"inline"===i&&(i="inline"!==n?n:"",n="inline"),[e,qf(i),!!n]}(t);return function(t,e=null,i=!1){return{display:i?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}(e,i,n)}(i);this.styler.applyStyleToElements(e,[t])}return i.trim()}return"row"}hasWrap(t){return this.styler.hasWrap(t)}applyStyleToElement(t,e,i=this.nativeElement){this.styler.applyStyleToElement(i,t,e)}setValue(t,e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,e)}updateWithValue(t){this.currentValue!==t&&(this.addStyles(t),this.currentValue=t)}}return t.\u0275fac=function(t){!function(){throw new Error("invalid")}()},t.\u0275dir=ie({type:t,features:[me]}),t})();const Qf=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],Xf="(orientation: portrait) and (max-width: 599.98px)",Kf="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",Zf="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",Jf="(orientation: portrait) and (min-width: 840px)",tg="(orientation: landscape) and (min-width: 1280px)",eg={HANDSET:`${Xf}, (orientation: landscape) and (max-width: 959.98px)`,TABLET:`${Kf} , ${Zf}`,WEB:`${Jf}, ${tg} `,HANDSET_PORTRAIT:`${Xf}`,TABLET_PORTRAIT:`${Kf} `,WEB_PORTRAIT:`${Jf}`,HANDSET_LANDSCAPE:"(orientation: landscape) and (max-width: 959.98px)",TABLET_LANDSCAPE:`${Zf}`,WEB_LANDSCAPE:`${tg}`},ig=[{alias:"handset",priority:2e3,mediaQuery:eg.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:eg.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:eg.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:eg.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:eg.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:eg.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:eg.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:eg.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:eg.WEB_PORTRAIT,overlapping:!0}],ng=/(\.|-|_)/g;function sg(t){let e=t.length>0?t.charAt(0):"",i=t.length>1?t.slice(1):"";return e.toUpperCase()+i}const rg=new en("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const t=Cn(jf),e=Cn(Gf),i=[].concat.apply([],(t||[]).map(t=>Array.isArray(t)?t:[t]));return function(t,e=[]){const i={};return t.forEach(t=>{i[t.alias]=t}),e.forEach(t=>{i[t.alias]?function(t,...e){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let i of e)if(null!=i)for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e])}(i[t.alias],t):i[t.alias]=t}),(n=Object.keys(i).map(t=>i[t])).forEach(t=>{t.suffix||(t.suffix=function(t){return t.replace(ng,"|").split("|").map(sg).join("")}(t.alias),t.overlapping=!!t.overlapping)}),n;var n}((e.disableDefaultBps?[]:Qf).concat(e.addOrientationBps?ig:[]),i)}});function og(t,e){return(e&&e.priority||0)-(t&&t.priority||0)}function ag(t,e){return(t.priority||0)-(e.priority||0)}let lg=(()=>{class t{constructor(t){this.findByMap=new Map,this.items=[...t].sort(ag)}findByAlias(t){return t?this.findWithPredicate(t,e=>e.alias==t):null}findByQuery(t){return this.findWithPredicate(t,e=>e.mediaQuery==t)}get overlappings(){return this.items.filter(t=>1==t.overlapping)}get aliases(){return this.items.map(t=>t.alias)}get suffixes(){return this.items.map(t=>t.suffix?t.suffix:"")}findWithPredicate(t,e){let i=this.findByMap.get(t);return i||(i=this.items.find(e)||null,this.findByMap.set(t,i)),i||null}}return t.\u0275fac=function(e){return new(e||t)(wn(rg))},t.\u0275prov=_t({factory:function(){return new t(wn(rg))},token:t,providedIn:"root"}),t})(),cg=(()=>{class t{constructor(t,e,i){this._zone=t,this._platformId=e,this._document=i,this.source=new cp(new Bf(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const t=[];return this.registry.forEach((e,i)=>{e.matches&&t.push(i)}),t}isActive(t){const e=this.registry.get(t);return e?e.matches:this.registerQuery(t).some(t=>t.matches)}observe(t,e=!1){if(t&&t.length){const i=this._observable$.pipe(Mm(i=>!e||t.indexOf(i.mediaQuery)>-1));return Y(new v(e=>{const i=this.registerQuery(t);if(i.length){const t=i.pop();i.forEach(t=>{e.next(t)}),this.source.next(t)}e.complete()}),i)}return this._observable$}registerQuery(t){const e=Array.isArray(t)?t:[t],i=[];return function(t,e){const i=t.filter(t=>!ug[t]);if(i.length>0){const t=i.join(", ");try{const n=e.createElement("style");n.setAttribute("type","text/css"),n.styleSheet||n.appendChild(e.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${t} {.fx-query-test{ }}\n`)),e.head.appendChild(n),i.forEach(t=>ug[t]=n)}catch(n){console.error(n)}}}(e,this._document),e.forEach(t=>{const e=e=>{this._zone.run(()=>this.source.next(new Bf(e.matches,t)))};let n=this.registry.get(t);n||(n=this.buildMQL(t),n.addListener(e),this.pendingRemoveListenerFns.push(()=>n.removeListener(e)),this.registry.set(t,n)),n.matches&&i.push(new Bf(!0,t))}),i}ngOnDestroy(){let t;for(;t=this.pendingRemoveListenerFns.pop();)t()}buildMQL(t){return function(t,e){return e&&window.matchMedia("all").addListener?window.matchMedia(t):{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(t,vh(this._platformId))}}return t.\u0275fac=function(e){return new(e||t)(wn(mu),wn(Jc),wn(qu))},t.\u0275prov=_t({factory:function(){return new t(wn(mu),wn(Jc),wn(qu))},token:t,providedIn:"root"}),t})();const ug={},dg={alias:"print",mediaQuery:"print",priority:1e3};let hg=(()=>{class t{constructor(t,e,i){this.breakpoints=t,this.layoutConfig=e,this._document=i,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new pg,this.deactivations=[]}withPrintQuery(t){return[...t,"print"]}isPrintEvent(t){return t.mediaQuery.startsWith("print")}get printAlias(){return this.layoutConfig.printWithBreakpoints||[]}get printBreakPoints(){return this.printAlias.map(t=>this.breakpoints.findByAlias(t)).filter(t=>null!==t)}getEventBreakpoints({mediaQuery:t}){const e=this.breakpoints.findByQuery(t);return(e?[...this.printBreakPoints,e]:this.printBreakPoints).sort(og)}updateEvent(t){let e=this.breakpoints.findByQuery(t.mediaQuery);return this.isPrintEvent(t)&&(e=this.getEventBreakpoints(t)[0],t.mediaQuery=e?e.mediaQuery:""),Wf(t,e)}registerBeforeAfterPrintHooks(t){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const e=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(t,this.getEventBreakpoints(new Bf(!0,"print"))),t.updateStyles())},i=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(t),t.updateStyles())};this._document.defaultView.addEventListener("beforeprint",e),this._document.defaultView.addEventListener("afterprint",i),this.beforePrintEventListeners.push(e),this.afterPrintEventListeners.push(i)}interceptEvents(t){return this.registerBeforeAfterPrintHooks(t),e=>{this.isPrintEvent(e)?e.matches&&!this.isPrinting?(this.startPrinting(t,this.getEventBreakpoints(e)),t.updateStyles()):e.matches||!this.isPrinting||this.isPrintingBeforeAfterEvent||(this.stopPrinting(t),t.updateStyles()):this.collectActivations(e)}}blockPropagation(){return t=>!(this.isPrinting||this.isPrintEvent(t))}startPrinting(t,e){this.isPrinting=!0,t.activatedBreakpoints=this.queue.addPrintBreakpoints(e)}stopPrinting(t){t.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}collectActivations(t){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(t.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{const e=this.breakpoints.findByQuery(t.mediaQuery);e&&(this.deactivations.push(e),this.deactivations.sort(og))}}ngOnDestroy(){this.beforePrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("beforeprint",t)),this.afterPrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("afterprint",t))}}return t.\u0275fac=function(e){return new(e||t)(wn(lg),wn(Gf),wn(qu))},t.\u0275prov=_t({factory:function(){return new t(wn(lg),wn(Gf),wn(qu))},token:t,providedIn:"root"}),t})();class pg{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(t){return t.push(dg),t.sort(og),t.forEach(t=>this.addBreakpoint(t)),this.printBreakpoints}addBreakpoint(t){t&&void 0===this.printBreakpoints.find(e=>e.mediaQuery===t.mediaQuery)&&(this.printBreakpoints=function(t){return!!t&&t.mediaQuery.startsWith("print")}(t)?[t,...this.printBreakpoints]:[...this.printBreakpoints,t])}clear(){this.printBreakpoints=[]}}function mg(t){for(let e in t){let i=t[e]||"";switch(e){case"display":t.display="flex"===i?["-webkit-flex","flex"]:"inline-flex"===i?["-webkit-inline-flex","inline-flex"]:i;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":t["-webkit-"+e]=i;break;case"flex-direction":i=i||"row",t["-webkit-flex-direction"]=i,t["flex-direction"]=i;break;case"order":t.order=t["-webkit-"+e]=isNaN(+i)?"0":i}}return t}let fg=(()=>{class t{constructor(t,e,i,n){this._serverStylesheet=t,this._serverModuleLoaded=e,this._platformId=i,this.layoutConfig=n}applyStyleToElement(t,e,i=null){let n={};"string"==typeof e&&(n[e]=i,e=n),n=this.layoutConfig.disableVendorPrefixes?e:mg(e),this._applyMultiValueStyleToElement(n,t)}applyStyleToElements(t,e=[]){const i=this.layoutConfig.disableVendorPrefixes?t:mg(t);e.forEach(t=>{this._applyMultiValueStyleToElement(i,t)})}getFlowDirection(t){let e=this.lookupStyle(t,"flex-direction");return[e||"row",this.lookupInlineStyle(t,"flex-direction")||wh(this._platformId)&&this._serverModuleLoaded?e:""]}hasWrap(t){return"wrap"===this.lookupStyle(t,"flex-wrap")}lookupAttributeValue(t,e){return t.getAttribute(e)||""}lookupInlineStyle(t,e){return vh(this._platformId)?t.style.getPropertyValue(e):this._getServerStyle(t,e)}lookupStyle(t,e,i=!1){let n="";return t&&((n=this.lookupInlineStyle(t,e))||(vh(this._platformId)?i||(n=getComputedStyle(t).getPropertyValue(e)):this._serverModuleLoaded&&(n=this._serverStylesheet.getStyleForElement(t,e)))),n?n.trim():""}_applyMultiValueStyleToElement(t,e){Object.keys(t).sort().forEach(i=>{const n=t[i],s=Array.isArray(n)?n:[n];s.sort();for(let t of s)t=t?t+"":"",vh(this._platformId)||!this._serverModuleLoaded?vh(this._platformId)?e.style.setProperty(i,t):this._setServerStyle(e,i,t):this._serverStylesheet.addStyleToElement(e,i,t)})}_setServerStyle(t,e,i){e=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const n=this._readStyleAttribute(t);n[e]=i||"",this._writeStyleAttribute(t,n)}_getServerStyle(t,e){return this._readStyleAttribute(t)[e]||""}_readStyleAttribute(t){const e={},i=t.getAttribute("style");if(i){const t=i.split(/;+/g);for(let i=0;i0){const t=n.indexOf(":");if(-1===t)throw new Error(`Invalid CSS style: ${n}`);e[n.substr(0,t).trim()]=n.substr(t+1).trim()}}}return e}_writeStyleAttribute(t,e){let i="";for(const n in e)e[n]&&(i+=n+":"+e[n]+";");t.setAttribute("style",i)}}return t.\u0275fac=function(e){return new(e||t)(wn(Hf),wn(Uf),wn(Jc),wn(Gf))},t.\u0275prov=_t({factory:function(){return new t(wn(Hf),wn(Uf),wn(Jc),wn(Gf))},token:t,providedIn:"root"}),t})();class gg{constructor(){this.shouldCache=!0}sideEffect(t,e,i){}}function _g(t,e="1",i="1"){let n=[e,i,t],s=t.indexOf("calc");if(s>0){n[2]=bg(t.substring(s).trim());let e=t.substr(0,s).trim().split(" ");2==e.length&&(n[0]=e[0],n[1]=e[1])}else if(0==s)n[2]=bg(t.trim());else{let s=t.split(" ");n=3===s.length?s:[e,i,t]}return n}function bg(t){return t.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}let yg=(()=>{class t{constructor(t,e,i){this.matchMedia=t,this.breakpoints=e,this.hook=i,this.activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new k,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}onMediaChange(t){const e=this.findByQuery(t.mediaQuery);e&&((t=Wf(t,e)).matches&&-1===this.activatedBreakpoints.indexOf(e)?(this.activatedBreakpoints.push(e),this.activatedBreakpoints.sort(og),this.updateStyles()):t.matches||-1===this.activatedBreakpoints.indexOf(e)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(e),1),this.activatedBreakpoints.sort(og),this.updateStyles()))}init(t,e,i,n,s=[]){vg(this.updateMap,t,e,i),vg(this.clearMap,t,e,n),this.buildElementKeyMap(t,e),this.watchExtraTriggers(t,e,s)}getValue(t,e,i){const n=this.elementMap.get(t);if(n){const t=void 0!==i?n.get(i):this.getActivatedValues(n,e);if(t)return t.get(e)}}hasValue(t,e){const i=this.elementMap.get(t);if(i){const t=this.getActivatedValues(i,e);if(t)return void 0!==t.get(e)||!1}return!1}setValue(t,e,i,n){let s=this.elementMap.get(t);if(s){const r=(s.get(n)||new Map).set(e,i);s.set(n,r),this.elementMap.set(t,s)}else s=(new Map).set(n,(new Map).set(e,i)),this.elementMap.set(t,s);const r=this.getValue(t,e);void 0!==r&&this.updateElement(t,e,r)}trackValue(t,e){return this.subject.asObservable().pipe(Mm(i=>i.element===t&&i.key===e))}updateStyles(){this.elementMap.forEach((t,e)=>{const i=new Set(this.elementKeyMap.get(e));let n=this.getActivatedValues(t);n&&n.forEach((t,n)=>{this.updateElement(e,n,t),i.delete(n)}),i.forEach(i=>{if(n=this.getActivatedValues(t,i),n){const t=n.get(i);this.updateElement(e,i,t)}else this.clearElement(e,i)})})}clearElement(t,e){const i=this.clearMap.get(t);if(i){const n=i.get(e);n&&(n(),this.subject.next({element:t,key:e,value:""}))}}updateElement(t,e,i){const n=this.updateMap.get(t);if(n){const s=n.get(e);s&&(s(i),this.subject.next({element:t,key:e,value:i}))}}releaseElement(t){const e=this.watcherMap.get(t);e&&(e.forEach(t=>t.unsubscribe()),this.watcherMap.delete(t));const i=this.elementMap.get(t);i&&(i.forEach((t,e)=>i.delete(e)),this.elementMap.delete(t))}triggerUpdate(t,e){const i=this.elementMap.get(t);if(i){const n=this.getActivatedValues(i,e);n&&(e?this.updateElement(t,e,n.get(e)):n.forEach((e,i)=>this.updateElement(t,i,e)))}}buildElementKeyMap(t,e){let i=this.elementKeyMap.get(t);i||(i=new Set,this.elementKeyMap.set(t,i)),i.add(e)}watchExtraTriggers(t,e,i){if(i&&i.length){let n=this.watcherMap.get(t);if(n||(n=new Map,this.watcherMap.set(t,n)),!n.get(e)){const s=Y(...i).subscribe(()=>{const i=this.getValue(t,e);this.updateElement(t,e,i)});n.set(e,s)}}}findByQuery(t){return this.breakpoints.findByQuery(t)}getActivatedValues(t,e){for(let n=0;nt.mediaQuery);this.matchMedia.observe(this.hook.withPrintQuery(t)).pipe(If(this.hook.interceptEvents(this)),Mm(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return t.\u0275fac=function(e){return new(e||t)(wn(cg),wn(lg),wn(hg))},t.\u0275prov=_t({factory:function(){return new t(wn(cg),wn(lg),wn(hg))},token:t,providedIn:"root"}),t})();function vg(t,e,i,n){if(void 0!==n){let s=t.get(e);s||(s=new Map,t.set(e,s)),s.set(i,n)}}function wg(t){return null!=t&&"false"!=`${t}`}function Cg(t,e=0){return xg(t)?Number(t):e}function xg(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Sg(t){return Array.isArray(t)?t:[t]}function kg(t){return null==t?"":"string"==typeof t?t:`${t}px`}function Ag(t){return t instanceof hl?t.nativeElement:t}function Og(t,e=/\s+/){const i=[];if(null!=t){const n=Array.isArray(t)?t:`${t}`.split(e);for(const t of n){const e=`${t}`.trim();e&&i.push(e)}}return i}new Map;let Eg=(()=>{class t extends Yf{constructor(t,e,i,n,s,r,o){super(t,null,e,i),this.ngClassInstance=o,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new Qd(n,s,t,r)),this.init(),this.setValue("","")}set klass(t){this.ngClassInstance.klass=t,this.setValue(t,"")}updateWithValue(t){this.ngClassInstance.ngClass=t,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(fg),$o(yg),$o(Dl),$o(Il),$o(fl),$o(Qd,10))},t.\u0275dir=ie({type:t,inputs:{klass:["class","klass"]},features:[Oo]}),t})();const Tg=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"];let Pg=(()=>{class t extends Eg{constructor(){super(...arguments),this.inputs=Tg}}return t.\u0275fac=function(e){return Dg(e||t)},t.\u0275dir=ie({type:t,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[Oo]}),t})();const Dg=Qi(Pg);let Mg=(()=>{class t extends gg{buildStyles(t,e){return{display:"true"===t?e.display||(e.isServer?"initial":""):"none"}}}return t.\u0275fac=function(e){return Ig(e||t)},t.\u0275prov=_t({factory:function(){return new t},token:t,providedIn:"root"}),t})();const Ig=Qi(Mg);let Rg=(()=>{class t extends Yf{constructor(t,e,i,n,s,r,o){super(t,e,i,n),this.layoutConfig=s,this.platformId=r,this.serverModuleLoaded=o,this.DIRECTIVE_KEY="show-hide",this.display="",this.hasLayout=!1,this.hasFlexChild=!1}ngAfterViewInit(){this.trackExtraTriggers();const t=Array.from(this.nativeElement.children);for(let i=0;i{if(-1!==this.inputs.indexOf(e)){const i=e.split("."),n=i.slice(1).join("."),s=t[e].currentValue;let r=""===s||0!==s&&wg(s);"fxHide"===i[0]&&(r=!r),this.setValue(r,n)}})}trackExtraTriggers(){this.hasLayout=this.marshal.hasValue(this.nativeElement,"layout"),["layout","layout-align"].forEach(t=>{this.marshal.trackValue(this.nativeElement,t).pipe(Hp(this.destroySubject)).subscribe(this.triggerUpdate.bind(this))})}getDisplayStyle(){return this.hasLayout||this.hasFlexChild&&this.layoutConfig.addFlexToParent?"flex":this.styler.lookupStyle(this.nativeElement,"display",!0)}updateWithValue(t=!0){if(""===t)return;const e=wh(this.platformId);this.addStyles(t?"true":"false",{display:this.display,isServer:e}),e&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display",""),this.marshal.triggerUpdate(this.parentElement,"layout-gap")}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(Mg),$o(fg),$o(yg),$o(Gf),$o(Jc),$o(Uf))},t.\u0275dir=ie({type:t,features:[Oo,me]}),t})();const Lg=new WeakMap,Fg=["fxShow","fxShow.print","fxShow.xs","fxShow.sm","fxShow.md","fxShow.lg","fxShow.xl","fxShow.lt-sm","fxShow.lt-md","fxShow.lt-lg","fxShow.lt-xl","fxShow.gt-xs","fxShow.gt-sm","fxShow.gt-md","fxShow.gt-lg","fxHide","fxHide.print","fxHide.xs","fxHide.sm","fxHide.md","fxHide.lg","fxHide.xl","fxHide.lt-sm","fxHide.lt-md","fxHide.lt-lg","fxHide.lt-xl","fxHide.gt-xs","fxHide.gt-sm","fxHide.gt-md","fxHide.gt-lg"];let Ng=(()=>{class t extends Rg{constructor(){super(...arguments),this.inputs=Fg}}return t.\u0275fac=function(e){return Vg(e||t)},t.\u0275dir=ie({type:t,selectors:[["","fxShow",""],["","fxShow.print",""],["","fxShow.xs",""],["","fxShow.sm",""],["","fxShow.md",""],["","fxShow.lg",""],["","fxShow.xl",""],["","fxShow.lt-sm",""],["","fxShow.lt-md",""],["","fxShow.lt-lg",""],["","fxShow.lt-xl",""],["","fxShow.gt-xs",""],["","fxShow.gt-sm",""],["","fxShow.gt-md",""],["","fxShow.gt-lg",""],["","fxHide",""],["","fxHide.print",""],["","fxHide.xs",""],["","fxHide.sm",""],["","fxHide.md",""],["","fxHide.lg",""],["","fxHide.xl",""],["","fxHide.lt-sm",""],["","fxHide.lt-md",""],["","fxHide.lt-lg",""],["","fxHide.lt-xl",""],["","fxHide.gt-xs",""],["","fxHide.gt-sm",""],["","fxHide.gt-md",""],["","fxHide.gt-lg",""]],inputs:{fxShow:"fxShow","fxShow.print":"fxShow.print","fxShow.xs":"fxShow.xs","fxShow.sm":"fxShow.sm","fxShow.md":"fxShow.md","fxShow.lg":"fxShow.lg","fxShow.xl":"fxShow.xl","fxShow.lt-sm":"fxShow.lt-sm","fxShow.lt-md":"fxShow.lt-md","fxShow.lt-lg":"fxShow.lt-lg","fxShow.lt-xl":"fxShow.lt-xl","fxShow.gt-xs":"fxShow.gt-xs","fxShow.gt-sm":"fxShow.gt-sm","fxShow.gt-md":"fxShow.gt-md","fxShow.gt-lg":"fxShow.gt-lg",fxHide:"fxHide","fxHide.print":"fxHide.print","fxHide.xs":"fxHide.xs","fxHide.sm":"fxHide.sm","fxHide.md":"fxHide.md","fxHide.lg":"fxHide.lg","fxHide.xl":"fxHide.xl","fxHide.lt-sm":"fxHide.lt-sm","fxHide.lt-md":"fxHide.lt-md","fxHide.lt-lg":"fxHide.lt-lg","fxHide.lt-xl":"fxHide.lt-xl","fxHide.gt-xs":"fxHide.gt-xs","fxHide.gt-sm":"fxHide.gt-sm","fxHide.gt-md":"fxHide.gt-md","fxHide.gt-lg":"fxHide.gt-lg"},features:[Oo]}),t})();const Vg=Qi(Ng);class Bg{constructor(t,e,i=!0){this.key=t,this.value=e,this.key=i?t.replace(/['"]/g,"").trim():t.trim(),this.value=i?e.replace(/['"]/g,"").trim():e.trim(),this.value=this.value.replace(/;/,"")}}function Hg(t){let e=typeof t;return"object"===e?t.constructor===Array?"array":t.constructor===Set?"set":"object":e}function zg(t){const[e,...i]=t.split(":");return new Bg(e,i.join(":"))}function Gg(t,e){return e.key&&(t[e.key]=e.value),t}let Ug=(()=>{class t extends Yf{constructor(t,e,i,n,s,r,o,a,l){super(t,null,e,i),this.sanitizer=n,this.ngStyleInstance=o,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new oh(t,s,r)),this.init();const c=this.nativeElement.getAttribute("style")||"";this.fallbackStyles=this.buildStyleMap(c),this.isServer=a&&wh(l)}updateWithValue(t){const e=this.buildStyleMap(t);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),e),this.isServer&&this.applyStyleToElement(e),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(t){const e=t=>this.sanitizer.sanitize(hs.STYLE,t)||"";if(t)switch(Hg(t)){case"string":return qg(function(t,e=";"){return String(t).trim().split(e).map(t=>t.trim()).filter(t=>""!==t)}(t),e);case"array":return qg(t,e);case"set":default:return function(t,e){let i=[];return"set"===Hg(t)?t.forEach(t=>i.push(t)):Object.keys(t).forEach(e=>{i.push(`${e}:${t[e]}`)}),function(t,e){return t.map(zg).filter(t=>!!t).map(t=>(e&&(t.value=e(t.value)),t)).reduce(Gg,{})}(i,e)}(t,e)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(fg),$o(yg),$o(Xh),$o(Il),$o(fl),$o(oh,10),$o(Uf),$o(Jc))},t.\u0275dir=ie({type:t,features:[Oo]}),t})();const jg=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let Wg=(()=>{class t extends Ug{constructor(){super(...arguments),this.inputs=jg}}return t.\u0275fac=function(e){return $g(e||t)},t.\u0275dir=ie({type:t,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[Oo]}),t})();const $g=Qi(Wg);function qg(t,e){return t.map(zg).filter(t=>!!t).map(t=>(e&&(t.value=e(t.value)),t)).reduce(Gg,{})}let Yg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[Vf]]}),t})();const Qg=new en("cdk-dir-doc",{providedIn:"root",factory:function(){return Cn(qu)}});let Xg=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new kc,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)(wn(Qg,8))},t.\u0275prov=_t({factory:function(){return new t(wn(Qg,8))},token:t,providedIn:"root"}),t})(),Kg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({}),t})();const Zg=["row","column","row-reverse","column-reverse"];function Jg(t){t=t?t.toLowerCase():"";let[e,i,n]=t.split(" ");return Zg.find(t=>t===e)||(e=Zg[0]),"inline"===i&&(i="inline"!==n?n:"",n="inline"),[e,e_(i),!!n]}function t_(t){let[e]=Jg(t);return e.indexOf("row")>-1}function e_(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}let i_=(()=>{class t extends gg{buildStyles(t){return function(t){let[e,i,n]=Jg(t);return function(t,e=null,i=!1){return{display:i?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}(e,i,n)}(t)}}return t.\u0275fac=function(e){return n_(e||t)},t.\u0275prov=_t({factory:function(){return new t},token:t,providedIn:"root"}),t})();const n_=Qi(i_),s_=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let r_=(()=>{class t extends Yf{constructor(t,e,i,n){super(t,i,e,n),this.DIRECTIVE_KEY="layout",this.styleCache=l_,this.init()}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(fg),$o(i_),$o(yg))},t.\u0275dir=ie({type:t,features:[Oo]}),t})(),o_=(()=>{class t extends r_{constructor(){super(...arguments),this.inputs=s_}}return t.\u0275fac=function(e){return a_(e||t)},t.\u0275dir=ie({type:t,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[Oo]}),t})();const a_=Qi(o_),l_=new Map,c_={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null};let u_=(()=>{class t extends gg{constructor(t){super(),this._styler=t}buildStyles(t,e){return t.endsWith(y_)?function(t,e){const[i,n]=t.split(" "),s=t=>`-${t}`;let r="0px",o=s(n||i),a="0px";return"rtl"===e?a=s(i):r=s(i),{margin:`0px ${r} ${o} ${a}`}}(t=t.slice(0,t.indexOf(y_)),e.directionality):{}}sideEffect(t,e,i){const n=i.items;if(t.endsWith(y_)){const e=function(t,e){const[i,n]=t.split(" ");let s="0px",r="0px";return"rtl"===e?r=i:s=i,{padding:`0px ${s} ${n||i} ${r}`}}(t=t.slice(0,t.indexOf(y_)),i.directionality);this._styler.applyStyleToElements(e,i.items)}else{const e=n.pop(),s=function(t,e){const i=v_(e.directionality,e.layout),n=Object.assign({},c_);return n[i]=t,n}(t,i);this._styler.applyStyleToElements(s,n),this._styler.applyStyleToElements(c_,[e])}}}return t.\u0275fac=function(e){return new(e||t)(wn(fg))},t.\u0275prov=_t({factory:function(){return new t(wn(fg))},token:t,providedIn:"root"}),t})();const d_=["fxLayoutGap","fxLayoutGap.xs","fxLayoutGap.sm","fxLayoutGap.md","fxLayoutGap.lg","fxLayoutGap.xl","fxLayoutGap.lt-sm","fxLayoutGap.lt-md","fxLayoutGap.lt-lg","fxLayoutGap.lt-xl","fxLayoutGap.gt-xs","fxLayoutGap.gt-sm","fxLayoutGap.gt-md","fxLayoutGap.gt-lg"];let h_=(()=>{class t extends Yf{constructor(t,e,i,n,s,r){super(t,s,n,r),this.zone=e,this.directionality=i,this.styleUtils=n,this.layout="row",this.DIRECTIVE_KEY="layout-gap",this.observerSubject=new k;const o=[this.directionality.change,this.observerSubject.asObservable()];this.init(o),this.marshal.trackValue(this.nativeElement,"layout").pipe(Hp(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}get childrenNodes(){const t=this.nativeElement.children,e=[];for(let i=t.length;i--;)e[i]=t[i];return e}ngAfterContentInit(){this.buildChildObservable(),this.triggerUpdate()}ngOnDestroy(){super.ngOnDestroy(),this.observer&&this.observer.disconnect()}onLayoutChange(t){const e=t.value.split(" ");this.layout=e[0],Zg.find(t=>t===this.layout)||(this.layout="row"),this.triggerUpdate()}updateWithValue(t){const e=this.childrenNodes.filter(t=>1===t.nodeType&&this.willDisplay(t)).sort((t,e)=>{const i=+this.styler.lookupStyle(t,"order"),n=+this.styler.lookupStyle(e,"order");return isNaN(i)||isNaN(n)||i===n?0:i>n?1:-1});if(e.length>0){const i=this.directionality.value,n=this.layout;"row"===n&&"rtl"===i?this.styleCache=f_:"row"===n&&"rtl"!==i?this.styleCache=__:"column"===n&&"rtl"===i?this.styleCache=g_:"column"===n&&"rtl"!==i&&(this.styleCache=b_),this.addStyles(t,{directionality:i,items:e,layout:n})}}clearStyles(){const t=Object.keys(this.mru).length>0,e=t?"padding":v_(this.directionality.value,this.layout);t&&super.clearStyles(),this.styleUtils.applyStyleToElements({[e]:""},this.childrenNodes)}willDisplay(t){const e=this.marshal.getValue(t,"show-hide");return!0===e||void 0===e&&"none"!==this.styleUtils.lookupStyle(t,"display")}buildChildObservable(){this.zone.runOutsideAngular(()=>{"undefined"!=typeof MutationObserver&&(this.observer=new MutationObserver(t=>{t.some(t=>t.addedNodes&&t.addedNodes.length>0||t.removedNodes&&t.removedNodes.length>0)&&this.observerSubject.next()}),this.observer.observe(this.nativeElement,{childList:!0}))})}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(mu),$o(Xg),$o(fg),$o(u_),$o(yg))},t.\u0275dir=ie({type:t,features:[Oo]}),t})(),p_=(()=>{class t extends h_{constructor(){super(...arguments),this.inputs=d_}}return t.\u0275fac=function(e){return m_(e||t)},t.\u0275dir=ie({type:t,selectors:[["","fxLayoutGap",""],["","fxLayoutGap.xs",""],["","fxLayoutGap.sm",""],["","fxLayoutGap.md",""],["","fxLayoutGap.lg",""],["","fxLayoutGap.xl",""],["","fxLayoutGap.lt-sm",""],["","fxLayoutGap.lt-md",""],["","fxLayoutGap.lt-lg",""],["","fxLayoutGap.lt-xl",""],["","fxLayoutGap.gt-xs",""],["","fxLayoutGap.gt-sm",""],["","fxLayoutGap.gt-md",""],["","fxLayoutGap.gt-lg",""]],inputs:{fxLayoutGap:"fxLayoutGap","fxLayoutGap.xs":"fxLayoutGap.xs","fxLayoutGap.sm":"fxLayoutGap.sm","fxLayoutGap.md":"fxLayoutGap.md","fxLayoutGap.lg":"fxLayoutGap.lg","fxLayoutGap.xl":"fxLayoutGap.xl","fxLayoutGap.lt-sm":"fxLayoutGap.lt-sm","fxLayoutGap.lt-md":"fxLayoutGap.lt-md","fxLayoutGap.lt-lg":"fxLayoutGap.lt-lg","fxLayoutGap.lt-xl":"fxLayoutGap.lt-xl","fxLayoutGap.gt-xs":"fxLayoutGap.gt-xs","fxLayoutGap.gt-sm":"fxLayoutGap.gt-sm","fxLayoutGap.gt-md":"fxLayoutGap.gt-md","fxLayoutGap.gt-lg":"fxLayoutGap.gt-lg"},features:[Oo]}),t})();const m_=Qi(p_),f_=new Map,g_=new Map,__=new Map,b_=new Map,y_=" grid";function v_(t,e){switch(e){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":return"rtl"===t?"margin-left":"margin-right";case"row-reverse":return"rtl"===t?"margin-right":"margin-left";default:return"rtl"===t?"margin-left":"margin-right"}}function w_(t,...e){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let i of e)if(null!=i)for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e]);return t}let C_=(()=>{class t extends gg{constructor(t){super(),this.layoutConfig=t}buildStyles(t,e){let[i,n,...s]=t.split(" "),r=s.join(" ");const o=e.direction.indexOf("column")>-1?"column":"row",a=t_(o)?"max-width":"max-height",l=t_(o)?"min-width":"min-height",c=String(r).indexOf("calc")>-1,u=c||"auto"===r,d=String(r).indexOf("%")>-1&&!c,h=String(r).indexOf("px")>-1||String(r).indexOf("rem")>-1||String(r).indexOf("em")>-1||String(r).indexOf("vw")>-1||String(r).indexOf("vh")>-1;let p=c||h;i="0"==i?0:i,n="0"==n?0:n;const m=!i&&!n;let f={};const g={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(r||""){case"":const t=!1!==this.layoutConfig.useColumnBasisZero;r="row"===o?"0%":t?"0.000000001px":"auto";break;case"initial":case"nogrow":i=0,r="auto";break;case"grow":r="100%";break;case"noshrink":n=0,r="auto";break;case"auto":break;case"none":i=0,n=0,r="auto";break;default:p||d||isNaN(r)||(r+="%"),"0%"===r&&(p=!0),"0px"===r&&(r="0%"),f=w_(g,c?{"flex-grow":i,"flex-shrink":n,"flex-basis":p?r:"100%"}:{flex:`${i} ${n} ${p?r:"100%"}`})}return f.flex||f["flex-grow"]||(f=w_(g,c?{"flex-grow":i,"flex-shrink":n,"flex-basis":r}:{flex:`${i} ${n} ${r}`})),"0%"!==r&&"0px"!==r&&"0.000000001px"!==r&&"auto"!==r&&(f[l]=m||p&&i?r:null,f[a]=m||!u&&n?r:null),f[l]||f[a]?e.hasWrap&&(f[c?"flex-basis":"flex"]=f[a]?c?f[a]:`${i} ${n} ${f[a]}`:c?f[l]:`${i} ${n} ${f[l]}`):f=w_(g,c?{"flex-grow":i,"flex-shrink":n,"flex-basis":r}:{flex:`${i} ${n} ${r}`}),w_(f,{"box-sizing":"border-box"})}}return t.\u0275fac=function(e){return new(e||t)(wn(Gf))},t.\u0275prov=_t({factory:function(){return new t(wn(Gf))},token:t,providedIn:"root"}),t})();const x_=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let S_=(()=>{class t extends Yf{constructor(t,e,i,n,s){super(t,n,e,s),this.layoutConfig=i,this.marshal=s,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(t){this.flexShrink=t||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(t){this.flexGrow=t||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(Hp(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(Hp(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(t){const e=t.value.split(" ");this.direction=e[0],this.wrap=void 0!==e[1]&&"wrap"===e[1],this.triggerUpdate()}updateWithValue(t){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const e=this.direction,i=e.startsWith("row"),n=this.wrap;i&&n?this.styleCache=T_:i&&!n?this.styleCache=O_:!i&&n?this.styleCache=P_:i||n||(this.styleCache=E_);const s=_g(String(t).replace(";",""),this.flexGrow,this.flexShrink);this.addStyles(s.join(" "),{direction:e,hasWrap:n})}triggerReflow(){const t=this.activatedValue;if(void 0!==t){const e=_g(t+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,e.join(" "))}}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(fg),$o(Gf),$o(C_),$o(yg))},t.\u0275dir=ie({type:t,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[Oo]}),t})(),k_=(()=>{class t extends S_{constructor(){super(...arguments),this.inputs=x_}}return t.\u0275fac=function(e){return A_(e||t)},t.\u0275dir=ie({type:t,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[Oo]}),t})();const A_=Qi(k_),O_=new Map,E_=new Map,T_=new Map,P_=new Map;new Map;let D_=(()=>{class t extends gg{buildStyles(t,e){""===t&&(t="0");const i=String(t).indexOf("%")>-1;String(t).indexOf("px")>-1||i||isNaN(+t)||(t+="%");const n=e.isRtl?"margin-right":"margin-left";return t_(e.layout)?{[n]:`${t}`}:{"margin-top":`${t}`}}}return t.\u0275fac=function(e){return M_(e||t)},t.\u0275prov=_t({factory:function(){return new t},token:t,providedIn:"root"}),t})();const M_=Qi(D_),I_=["fxFlexOffset","fxFlexOffset.xs","fxFlexOffset.sm","fxFlexOffset.md","fxFlexOffset.lg","fxFlexOffset.xl","fxFlexOffset.lt-sm","fxFlexOffset.lt-md","fxFlexOffset.lt-lg","fxFlexOffset.lt-xl","fxFlexOffset.gt-xs","fxFlexOffset.gt-sm","fxFlexOffset.gt-md","fxFlexOffset.gt-lg"];let R_=(()=>{class t extends Yf{constructor(t,e,i,n,s){super(t,i,s,n),this.directionality=e,this.DIRECTIVE_KEY="flex-offset",this.init([this.directionality.change]),this.parentElement&&this.marshal.trackValue(this.parentElement,"layout-gap").pipe(Hp(this.destroySubject)).subscribe(this.triggerUpdate.bind(this))}updateWithValue(t=""){const e=this.getFlexFlowDirection(this.parentElement,!0),i="rtl"===this.directionality.value;"row"===e&&i?this.styleCache=N_:"row"!==e||i?"column"===e&&i?this.styleCache=V_:"column"!==e||i||(this.styleCache=H_):this.styleCache=B_,this.addStyles(t+"",{layout:e,isRtl:i})}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(Xg),$o(D_),$o(yg),$o(fg))},t.\u0275dir=ie({type:t,features:[Oo]}),t})(),L_=(()=>{class t extends R_{constructor(){super(...arguments),this.inputs=I_}}return t.\u0275fac=function(e){return F_(e||t)},t.\u0275dir=ie({type:t,selectors:[["","fxFlexOffset",""],["","fxFlexOffset.xs",""],["","fxFlexOffset.sm",""],["","fxFlexOffset.md",""],["","fxFlexOffset.lg",""],["","fxFlexOffset.xl",""],["","fxFlexOffset.lt-sm",""],["","fxFlexOffset.lt-md",""],["","fxFlexOffset.lt-lg",""],["","fxFlexOffset.lt-xl",""],["","fxFlexOffset.gt-xs",""],["","fxFlexOffset.gt-sm",""],["","fxFlexOffset.gt-md",""],["","fxFlexOffset.gt-lg",""]],inputs:{fxFlexOffset:"fxFlexOffset","fxFlexOffset.xs":"fxFlexOffset.xs","fxFlexOffset.sm":"fxFlexOffset.sm","fxFlexOffset.md":"fxFlexOffset.md","fxFlexOffset.lg":"fxFlexOffset.lg","fxFlexOffset.xl":"fxFlexOffset.xl","fxFlexOffset.lt-sm":"fxFlexOffset.lt-sm","fxFlexOffset.lt-md":"fxFlexOffset.lt-md","fxFlexOffset.lt-lg":"fxFlexOffset.lt-lg","fxFlexOffset.lt-xl":"fxFlexOffset.lt-xl","fxFlexOffset.gt-xs":"fxFlexOffset.gt-xs","fxFlexOffset.gt-sm":"fxFlexOffset.gt-sm","fxFlexOffset.gt-md":"fxFlexOffset.gt-md","fxFlexOffset.gt-lg":"fxFlexOffset.gt-lg"},features:[Oo]}),t})();const F_=Qi(L_),N_=new Map,V_=new Map,B_=new Map,H_=new Map;let z_=(()=>{class t extends gg{buildStyles(t){const e={};switch(t=t||"stretch"){case"start":e["align-self"]="flex-start";break;case"end":e["align-self"]="flex-end";break;default:e["align-self"]=t}return e}}return t.\u0275fac=function(e){return G_(e||t)},t.\u0275prov=_t({factory:function(){return new t},token:t,providedIn:"root"}),t})();const G_=Qi(z_),U_=["fxFlexAlign","fxFlexAlign.xs","fxFlexAlign.sm","fxFlexAlign.md","fxFlexAlign.lg","fxFlexAlign.xl","fxFlexAlign.lt-sm","fxFlexAlign.lt-md","fxFlexAlign.lt-lg","fxFlexAlign.lt-xl","fxFlexAlign.gt-xs","fxFlexAlign.gt-sm","fxFlexAlign.gt-md","fxFlexAlign.gt-lg"];let j_=(()=>{class t extends Yf{constructor(t,e,i,n){super(t,i,e,n),this.DIRECTIVE_KEY="flex-align",this.styleCache=W_,this.init()}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(fg),$o(z_),$o(yg))},t.\u0275dir=ie({type:t,features:[Oo]}),t})();const W_=new Map;let $_=(()=>{class t extends j_{constructor(){super(...arguments),this.inputs=U_}}return t.\u0275fac=function(e){return q_(e||t)},t.\u0275dir=ie({type:t,selectors:[["","fxFlexAlign",""],["","fxFlexAlign.xs",""],["","fxFlexAlign.sm",""],["","fxFlexAlign.md",""],["","fxFlexAlign.lg",""],["","fxFlexAlign.xl",""],["","fxFlexAlign.lt-sm",""],["","fxFlexAlign.lt-md",""],["","fxFlexAlign.lt-lg",""],["","fxFlexAlign.lt-xl",""],["","fxFlexAlign.gt-xs",""],["","fxFlexAlign.gt-sm",""],["","fxFlexAlign.gt-md",""],["","fxFlexAlign.gt-lg",""]],inputs:{fxFlexAlign:"fxFlexAlign","fxFlexAlign.xs":"fxFlexAlign.xs","fxFlexAlign.sm":"fxFlexAlign.sm","fxFlexAlign.md":"fxFlexAlign.md","fxFlexAlign.lg":"fxFlexAlign.lg","fxFlexAlign.xl":"fxFlexAlign.xl","fxFlexAlign.lt-sm":"fxFlexAlign.lt-sm","fxFlexAlign.lt-md":"fxFlexAlign.lt-md","fxFlexAlign.lt-lg":"fxFlexAlign.lt-lg","fxFlexAlign.lt-xl":"fxFlexAlign.lt-xl","fxFlexAlign.gt-xs":"fxFlexAlign.gt-xs","fxFlexAlign.gt-sm":"fxFlexAlign.gt-sm","fxFlexAlign.gt-md":"fxFlexAlign.gt-md","fxFlexAlign.gt-lg":"fxFlexAlign.gt-lg"},features:[Oo]}),t})();const q_=Qi($_);new Map;let Y_=(()=>{class t extends gg{buildStyles(t,e){const i={},[n,s]=t.split(" ");switch(n){case"center":i["justify-content"]="center";break;case"space-around":i["justify-content"]="space-around";break;case"space-between":i["justify-content"]="space-between";break;case"space-evenly":i["justify-content"]="space-evenly";break;case"end":case"flex-end":i["justify-content"]="flex-end";break;case"start":case"flex-start":default:i["justify-content"]="flex-start"}switch(s){case"start":case"flex-start":i["align-items"]=i["align-content"]="flex-start";break;case"center":i["align-items"]=i["align-content"]="center";break;case"end":case"flex-end":i["align-items"]=i["align-content"]="flex-end";break;case"space-between":i["align-content"]="space-between",i["align-items"]="stretch";break;case"space-around":i["align-content"]="space-around",i["align-items"]="stretch";break;case"baseline":i["align-content"]="stretch",i["align-items"]="baseline";break;case"stretch":default:i["align-items"]=i["align-content"]="stretch"}return w_(i,{display:e.inline?"inline-flex":"flex","flex-direction":e.layout,"box-sizing":"border-box","max-width":"stretch"===s?t_(e.layout)?null:"100%":null,"max-height":"stretch"===s&&t_(e.layout)?"100%":null})}}return t.\u0275fac=function(e){return Q_(e||t)},t.\u0275prov=_t({factory:function(){return new t},token:t,providedIn:"root"}),t})();const Q_=Qi(Y_),X_=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];let K_=(()=>{class t extends Yf{constructor(t,e,i,n){super(t,i,e,n),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe(Hp(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(t){const e=this.layout||"row",i=this.inline;"row"===e&&i?this.styleCache=sb:"row"!==e||i?"row-reverse"===e&&i?this.styleCache=ob:"row-reverse"!==e||i?"column"===e&&i?this.styleCache=rb:"column"!==e||i?"column-reverse"===e&&i?this.styleCache=ab:"column-reverse"!==e||i||(this.styleCache=nb):this.styleCache=eb:this.styleCache=ib:this.styleCache=tb,this.addStyles(t,{layout:e,inline:i})}onLayoutChange(t){const e=t.value.split(" ");this.layout=e[0],this.inline=t.value.includes("inline"),Zg.find(t=>t===this.layout)||(this.layout="row"),this.triggerUpdate()}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(fg),$o(Y_),$o(yg))},t.\u0275dir=ie({type:t,features:[Oo]}),t})(),Z_=(()=>{class t extends K_{constructor(){super(...arguments),this.inputs=X_}}return t.\u0275fac=function(e){return J_(e||t)},t.\u0275dir=ie({type:t,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[Oo]}),t})();const J_=Qi(Z_),tb=new Map,eb=new Map,ib=new Map,nb=new Map,sb=new Map,rb=new Map,ob=new Map,ab=new Map;let lb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[Vf,Kg]]}),t})();new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map;let cb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[Vf]]}),t})();new bl("11.0.0-beta.33");let ub=(()=>{class t{constructor(t,e){wh(e)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,i=[]){return{ngModule:t,providers:e.serverLoaded?[{provide:Gf,useValue:Object.assign(Object.assign({},zf),e)},{provide:jf,useValue:i,multi:!0},{provide:Uf,useValue:!0}]:[{provide:Gf,useValue:Object.assign(Object.assign({},zf),e)},{provide:jf,useValue:i,multi:!0}]}}}return t.\u0275fac=function(e){return new(e||t)(wn(Uf),wn(Jc))},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[lb,Yg,cb],lb,Yg,cb]}),t})();function db(...t){if(1===t.length){const e=t[0];if(l(e))return hb(e,null);if(c(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return hb(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return hb(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(E(t=>e(...t)))}return hb(t,null)}function hb(t,e){return new v(i=>{const n=t.length;if(0===n)return void i.complete();const s=new Array(n);let r=0,o=0;for(let a=0;a{c||(c=!0,o++),s[a]=t},error:t=>i.error(t),complete:()=>{r++,r!==n&&c||(o===n&&i.next(e?e.reduce((t,e,i)=>(t[e]=s[i],t),{}):s),i.complete())}}))}})}class pb{}const mb=new en("NgValueAccessor"),fb={provide:mb,useExisting:ut(()=>_b),multi:!0},gb=new en("CompositionEventMode");let _b=(()=>{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=$u()?$u().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)($o(fl),$o(hl),$o(gb,8))},t.\u0275dir=ie({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&&ra("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:[rl([fb])]}),t})();function bb(t){return null==t||0===t.length}function yb(t){return null!=t&&"number"==typeof t.length}const vb=new en("NgValidators"),wb=new en("NgAsyncValidators"),Cb=/^(?=.{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 xb{static min(t){return function(t){return e=>{if(bb(e.value)||bb(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i{if(bb(e.value)||bb(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}(t)}static required(t){return Sb(t)}static requiredTrue(t){return function(t){return!0===t.value?null:{required:!0}}(t)}static email(t){return function(t){return bb(t.value)||Cb.test(t.value)?null:{email:!0}}(t)}static minLength(t){return function(t){return e=>bb(e.value)||!yb(e.value)?null:e.value.lengthyb(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}(t)}static pattern(t){return function(t){if(!t)return kb;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(bb(t.value))return null;const n=t.value;return e.test(n)?null:{pattern:{requiredPattern:i,actualValue:n}}}}(t)}static nullValidator(t){return null}static compose(t){return Db(t)}static composeAsync(t){return Ib(t)}}function Sb(t){return bb(t.value)?{required:!0}:null}function kb(t){return null}function Ab(t){return null!=t}function Ob(t){const e=ia(t)?V(t):t;return sa(e),e}function Eb(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 Tb(t,e){return e.map(e=>e(t))}function Pb(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function Db(t){if(!t)return null;const e=t.filter(Ab);return 0==e.length?null:function(t){return Eb(Tb(t,e))}}function Mb(t){return null!=t?Db(Pb(t)):null}function Ib(t){if(!t)return null;const e=t.filter(Ab);return 0==e.length?null:function(t){return db(Tb(t,e).map(Ob)).pipe(E(Eb))}}function Rb(t){return null!=t?Ib(Pb(t)):null}function Lb(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function Fb(t){return t._rawValidators}function Nb(t){return t._rawAsyncValidators}let Vb=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}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}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Mb(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Rb(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}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=ie({type:t}),t})(),Bb=(()=>{class t extends Vb{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return Hb(e||t)},t.\u0275dir=ie({type:t,features:[Oo]}),t})();const Hb=Qi(Bb);class zb extends Vb{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Gb{constructor(t){this._cd=t}is(t){var e,i;return!!(null===(i=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===i?void 0:i[t])}}let Ub=(()=>{class t extends Gb{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)($o(zb,2))},t.\u0275dir=ie({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&Sa("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[Oo]}),t})(),jb=(()=>{class t extends Gb{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)($o(Bb,10))},t.\u0275dir=ie({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&Sa("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[Oo]}),t})();function Wb(t,e){Yb(t,e,!0),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Xb(t,e)})}(t,e),function(t,e){const i=(t,i)=>{e.valueAccessor.writeValue(t),i&&e.viewToModelUpdate(t)};t.registerOnChange(i),e._registerOnDestroy(()=>{t._unregisterOnChange(i)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Xb(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const i=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(i),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(i)})}}(t,e)}function $b(t,e,i=!0){const n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),Qb(t,e,!0),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function qb(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function Yb(t,e,i){const n=Fb(t);null!==e.validator?t.setValidators(Lb(n,e.validator)):"function"==typeof n&&t.setValidators([n]);const s=Nb(t);if(null!==e.asyncValidator?t.setAsyncValidators(Lb(s,e.asyncValidator)):"function"==typeof s&&t.setAsyncValidators([s]),i){const i=()=>t.updateValueAndValidity();qb(e._rawValidators,i),qb(e._rawAsyncValidators,i)}}function Qb(t,e,i){let n=!1;if(null!==t){if(null!==e.validator){const i=Fb(t);if(Array.isArray(i)&&i.length>0){const s=i.filter(t=>t!==e.validator);s.length!==i.length&&(n=!0,t.setValidators(s))}}if(null!==e.asyncValidator){const i=Nb(t);if(Array.isArray(i)&&i.length>0){const s=i.filter(t=>t!==e.asyncValidator);s.length!==i.length&&(n=!0,t.setAsyncValidators(s))}}}if(i){const t=()=>{};qb(e._rawValidators,t),qb(e._rawAsyncValidators,t)}return n}function Xb(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Kb(t,e){Yb(t,e,!1)}function Zb(t,e){if(!t.hasOwnProperty("model"))return!1;const i=t.model;return!!i.isFirstChange()||!Object.is(e,i.currentValue)}function Jb(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function ty(t,e){if(!e)return null;let i,n,s;return Array.isArray(e),e.forEach(t=>{t.constructor===_b?i=t:Object.getPrototypeOf(t.constructor)===pb?n=t:s=t}),s||n||i||null}function ey(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}function iy(t){return(oy(t)?t.validators:t)||null}function ny(t){return Array.isArray(t)?Mb(t):t||null}function sy(t,e){return(oy(e)?e.asyncValidators:t)||null}function ry(t){return Array.isArray(t)?Rb(t):t||null}function oy(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class ay{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=ny(this._rawValidators),this._composedAsyncValidatorFn=ry(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}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._rawValidators=t,this._composedValidatorFn=ny(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=ry(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",this._hasOwnPendingAsyncValidator=!0;const e=Ob(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}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 cy?n.controls.hasOwnProperty(t)?n.controls[t]:null:n instanceof uy&&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 kc,this.statusChanges=new kc}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||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){oy(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class ly extends ay{constructor(t=null,e,i){super(iy(e),sy(i,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!i})}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)}_unregisterOnChange(t){ey(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){ey(this._onDisabledChange,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 cy extends ay{constructor(t,e,i){super(iy(e),sy(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!i})}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={}){null!=t&&(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 ly?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=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const i=this.controls[e];if(this.contains(e)&&t(i))return!0}return!1}_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 uy extends ay{constructor(t,e,i){super(iy(e),sy(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!i})}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={}){null!=t&&(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 ly?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 dy={provide:Bb,useExisting:ut(()=>py)},hy=(()=>Promise.resolve(null))();let py=(()=>{class t extends Bb{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new kc,this.form=new cy({},Mb(t),Rb(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){hy.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),Wb(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){hy.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),ey(this._directives,t)})}addFormGroup(t){hy.then(()=>{const e=this._findContainer(t.path),i=new cy({});Kb(i,t),e.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){hy.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){hy.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,Jb(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)($o(vb,10),$o(wb,10))},t.\u0275dir=ie({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&ra("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[rl([dy]),Oo]}),t})();const my={provide:zb,useExisting:ut(()=>gy)},fy=(()=>Promise.resolve(null))();let gy=(()=>{class t extends zb{constructor(t,e,i,n){super(),this.control=new ly,this._registered=!1,this.update=new kc,this._parent=t,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=ty(0,n)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),Zb(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?function(t,e){return[...e.path,t]}(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}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(){Wb(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){fy.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,i=""===e||e&&"false"!==e;fy.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)($o(Bb,9),$o(vb,10),$o(wb,10),$o(mb,10))},t.\u0275dir=ie({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:[rl([my]),Oo,me]}),t})(),_y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ie({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const by={provide:mb,useExisting:ut(()=>yy),multi:!0};let yy=(()=>{class t extends pb{constructor(t,e){super(),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)($o(fl),$o(hl))},t.\u0275dir=ie({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&ra("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[rl([by]),Oo]}),t})(),vy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({}),t})();const wy=new en("NgModelWithFormControlWarning"),Cy={provide:zb,useExisting:ut(()=>xy)};let xy=(()=>{class t extends zb{constructor(t,e,i,n){super(),this._ngModelWarningConfig=n,this.update=new kc,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(e),this.valueAccessor=ty(0,i)}set isDisabled(t){}ngOnChanges(t){if(this._isControlChanged(t)){const e=t.form.previousValue;e&&$b(e,this,!1),Wb(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Zb(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&$b(this.form,this,!1)}get path(){return[]}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)($o(vb,10),$o(wb,10),$o(mb,10),$o(wy,8))},t.\u0275dir=ie({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[rl([Cy]),Oo,me]}),t._ngModelWarningSentOnce=!1,t})();const Sy={provide:Bb,useExisting:ut(()=>ky)};let ky=(()=>{class t extends Bb{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new kc,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Qb(this.form,this,!1),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return Wb(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){$b(t.control||null,t,!1),ey(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(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,Jb(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=t.control,i=this.form.get(t.path);e!==i&&($b(e||null,t),i instanceof ly&&(Wb(i,t),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);Kb(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);e&&function(t,e){return Qb(t,e,!1)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Yb(this.form,this,!1),this._oldForm&&Qb(this._oldForm,this,!1)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)($o(vb,10),$o(wb,10))},t.\u0275dir=ie({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&ra("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[rl([Sy]),Oo,me]}),t})();const Ay={provide:vb,useExisting:ut(()=>Ey),multi:!0};let Oy,Ey=(()=>{class t{constructor(){this._required=!1}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?Sb(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ie({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&&zo("required",e.required?"":null)},inputs:{required:"required"},features:[rl([Ay])]}),t})(),Ty=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[vy]]}),t})(),Py=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[Ty]}),t})(),Dy=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:wy,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[Ty]}),t})();function My(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}try{Oy="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(i2){Oy=!1}let Iy,Ry=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?vh(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&&!Oy)&&"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)(wn(Jc))},t.\u0275prov=_t({factory:function(){return new t(wn(Jc))},token:t,providedIn:"root"}),t})(),Ly=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({}),t})();const Fy=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Ny(){if(Iy)return Iy;if("object"!=typeof document||!document)return Iy=new Set(Fy),Iy;let t=document.createElement("input");return Iy=new Set(Fy.filter(e=>(t.setAttribute("type",e),t.type===e))),Iy}let Vy,By,Hy,zy;function Gy(t){return function(){if(null==Vy&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Vy=!0}))}finally{Vy=Vy||!1}return Vy}()?t:!!t.capture}function Uy(){if(null==Hy){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Hy=!1,Hy;if("scrollBehavior"in document.documentElement.style)Hy=!0;else{const t=Element.prototype.scrollTo;Hy=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return Hy}function jy(){if("object"!=typeof document||!document)return 0;if(null==By){const t=document.createElement("div"),e=t.style;t.dir="rtl",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),By=0,0===t.scrollLeft&&(t.scrollLeft=1,By=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return By}function Wy(t){if(function(){if(null==zy){const t="undefined"!=typeof document?document.head:null;zy=!(!t||!t.createShadowRoot&&!t.attachShadow)}return zy}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}let $y=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({factory:function(){return new t},token:t,providedIn:"root"}),t})(),qy=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=Ag(t);return new v(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 k,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)(wn($y))},t.\u0275prov=_t({factory:function(){return new t(wn($y))},token:t,providedIn:"root"}),t})(),Yy=(()=>{class t{constructor(t,e,i){this._contentObserver=t,this._elementRef=e,this._ngZone=i,this.event=new kc,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=wg(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=Cg(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(Sf(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)($o(qy),$o(hl),$o(mu))},t.\u0275dir=ie({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),Qy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:[$y]}),t})();function Xy(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}let Ky=0;const Zy=new Map;let Jy=null,tv=(()=>{class t{constructor(t){this._document=t}describe(t,e,i){if(!this._canBeDescribed(t,e))return;const n=ev(e,i);"string"!=typeof e?(iv(e),Zy.set(n,{messageElement:e,referenceCount:0})):Zy.has(n)||this._createMessageElement(e,i),this._isElementDescribedByMessage(t,n)||this._addMessageReference(t,n)}removeDescription(t,e,i){if(!e||!this._isElementNode(t))return;const n=ev(e,i);if(this._isElementDescribedByMessage(t,n)&&this._removeMessageReference(t,n),"string"==typeof e){const t=Zy.get(n);t&&0===t.referenceCount&&this._deleteMessageElement(n)}Jy&&0===Jy.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=Zy.get(e);!function(t,e,i){const n=Xy(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=Zy.get(e);i.referenceCount--,function(t,e,i){const n=Xy(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=Xy(t,"aria-describedby"),n=Zy.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)(wn(qu))},t.\u0275prov=_t({factory:function(){return new t(wn(qu))},token:t,providedIn:"root"}),t})();function ev(t,e){return"string"==typeof t?`${e||""}/${t}`:t}function iv(t){t.id||(t.id="cdk-describedby-message-"+Ky++)}class nv{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new k,this._typeaheadSubscription=d.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new k,this.change=new k,t instanceof Oc&&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){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(If(t=>this._pressedLetters.push(t)),Sf(t),Mm(()=>this._pressedLetters.length>0),E(()=>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;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||My(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 Oc?this._items.toArray():this._items}}class sv extends nv{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class rv extends nv{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 ov=(()=>{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(i2){return null}}((i=t).ownerDocument&&i.ownerDocument.defaultView||window);var i;if(e){if(-1===lv(e))return!1;if(!this.isVisible(e))return!1}let n=t.nodeName.toLowerCase(),s=lv(t);return t.hasAttribute("contenteditable")?-1!==s:"iframe"!==n&&"object"!==n&&!(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))&&("audio"===n?!!t.hasAttribute("controls")&&-1!==s:"video"===n?-1!==s&&(null!==s||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){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")||av(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(wn(Ry))},t.\u0275prov=_t({factory:function(){return new t(wn(Ry))},token:t,providedIn:"root"}),t})();function av(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 lv(t){if(!av(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class cv{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,this._hasAttached=!1}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.pipe(Tf(1)).subscribe(t)}}let uv=(()=>{class t{constructor(t,e,i){this._checker=t,this._ngZone=e,this._document=i}create(t,e=!1){return new cv(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(wn(ov),wn(mu),wn(qu))},t.\u0275prov=_t({factory:function(){return new t(wn(ov),wn(mu),wn(qu))},token:t,providedIn:"root"}),t})(),dv=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._focusTrapFactory=e,this._previouslyFocusedElement=null,this._document=i,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(t){this.focusTrap.enabled=wg(t)}get autoCapture(){return this._autoCapture}set autoCapture(t){this._autoCapture=wg(t)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(t){const e=t.autoCapture;e&&!e.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=this._document.activeElement,this.focusTrap.focusInitialElementWhenReady()}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(uv),$o(qu))},t.\u0275dir=ie({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[me]}),t})();"undefined"!=typeof Element&∈const hv=new en("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),pv=new en("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let mv=(()=>{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,i,n){this._elementRef=t,this._liveAnnouncer=e,this._contentObserver=i,this._ngZone=n,this._politeness="polite"}get politeness(){return this._politeness}set politeness(t){this._politeness="off"===t||"assertive"===t?t:"polite","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const t=this._elementRef.nativeElement.textContent;t!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(t,this._politeness),this._previousAnnouncedText=t)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(mv),$o(qy),$o(mu))},t.\u0275dir=ie({type:t,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),t})();function gv(t){return 0===t.buttons}function _v(t){const e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}const bv=new en("cdk-focus-monitor-default-options"),yv=Gy({passive:!0,capture:!0});let vv=(()=>{class t{constructor(t,e,i,n){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=gv(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{_v(t)?this._lastTouchTarget||this._setOriginForCurrentEventQueue("keyboard"):(null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=wv(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650))},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=wv(t),i="focus"===t.type?this._onFocus:this._onBlur;for(let n=e;n;n=n.parentElement)i.call(this,t,n)},this._document=i,this._detectionMode=(null==n?void 0:n.detectionMode)||0}monitor(t,e=!1){const i=Ag(t);if(!this._platform.isBrowser||1!==i.nodeType)return Sp(null);const n=Wy(i)||this._getDocument(),s=this._elementInfo.get(i);if(s)return e&&(s.checkChildren=!0),s.subject;const r={checkChildren:e,subject:new k,rootNode:n};return this._elementInfo.set(i,r),this._registerGlobalListeners(r),r.subject}stopMonitoring(t){const e=Ag(t),i=this._elementInfo.get(e);i&&(i.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(i))}focusVia(t,e,i){const n=Ag(t);n===this._getDocument().activeElement?this._getClosestElementsInfo(n).forEach(([t,i])=>this._originChanged(t,e,i)):(this._setOriginForCurrentEventQueue(e),"function"==typeof n.focus&&n.focus(i))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,i){i?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=wv(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const i=this._elementInfo.get(e);i&&(i.checkChildren||e===wv(t))&&this._originChanged(e,this._getFocusOrigin(t),i)}_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))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,i=this._rootNodeFocusListenerCount.get(e)||0;i||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,yv),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,yv)}),this._rootNodeFocusListenerCount.set(e,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,yv),t.addEventListener("mousedown",this._documentMousedownListener,yv),t.addEventListener("touchstart",this._documentTouchstartListener,yv),e.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,yv),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,yv),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,yv),t.removeEventListener("mousedown",this._documentMousedownListener,yv),t.removeEventListener("touchstart",this._documentTouchstartListener,yv),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}_originChanged(t,e,i){this._setClasses(t,e),this._emitOrigin(i.subject,e),this._lastFocusOrigin=e}_getClosestElementsInfo(t){const e=[];return this._elementInfo.forEach((i,n)=>{(n===t||i.checkChildren&&n.contains(t))&&e.push([n,i])}),e}}return t.\u0275fac=function(e){return new(e||t)(wn(mu),wn(Ry),wn(qu,8),wn(bv,8))},t.\u0275prov=_t({factory:function(){return new t(wn(mu),wn(Ry),wn(qu,8),wn(bv,8))},token:t,providedIn:"root"}),t})();function wv(t){return t.composedPath?t.composedPath()[0]:t.target}let Cv=(()=>{class t{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new kc}ngAfterViewInit(){const t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,1===t.nodeType&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(vv))},t.\u0275dir=ie({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})(),xv=(()=>{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||window,i=e&&e.getComputedStyle?e.getComputedStyle(t):null,n=(i&&i.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),n){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)(wn(Ry),wn(qu))},t.\u0275prov=_t({factory:function(){return new t(wn(Ry),wn(qu))},token:t,providedIn:"root"}),t})(),Sv=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(wn(xv))},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[Ly,Qy]]}),t})();const kv=new bl("11.2.7");class Av{}function Ov(t,e){return{type:7,name:t,definitions:e,options:{}}}function Ev(t,e=null){return{type:4,styles:e,timings:t}}function Tv(t,e=null){return{type:3,steps:t,options:e}}function Pv(t,e=null){return{type:2,steps:t,options:e}}function Dv(t){return{type:6,styles:t,offset:null}}function Mv(t,e,i){return{type:0,name:t,styles:e,options:i}}function Iv(t){return{type:5,steps:t}}function Rv(t,e,i=null){return{type:1,expr:t,animation:e,options:i}}function Lv(t=null){return{type:9,options:t}}function Fv(t,e,i=null){return{type:11,selector:t,animation:e,options:i}}function Nv(t){Promise.resolve(null).then(t)}class Vv{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,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(){Nv(()=>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){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Bv{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?Nv(()=>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(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}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 Hv(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function zv(t){switch(t.length){case 0:return new Vv;case 1:return t[0];default:return new Bv(t)}}function Gv(t,e,i,n,s={},r={}){const o=[],a=[];let l=-1,c=null;if(n.forEach(t=>{const i=t.offset,n=i==l,u=n&&c||{};Object.keys(t).forEach(i=>{let n=i,a=t[i];if("offset"!==i)switch(n=e.normalizePropertyName(n,o),a){case"!":a=s[i];break;case"*":a=r[i];break;default:a=e.normalizeStyleValue(i,n,a,o)}u[n]=a}),n||a.push(u),c=u,l=i}),o.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${o.join(t)}`)}return a}function Uv(t,e,i,n){switch(e){case"start":t.onStart(()=>n(i&&jv(i,"start",t)));break;case"done":t.onDone(()=>n(i&&jv(i,"done",t)));break;case"destroy":t.onDestroy(()=>n(i&&jv(i,"destroy",t)))}}function jv(t,e,i){const n=i.totalTime,s=Wv(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==n?t.totalTime:n,!!i.disabled),r=t._data;return null!=r&&(s._data=r),s}function Wv(t,e,i,n,s="",r=0,o){return{element:t,triggerName:e,fromState:i,toState:n,phaseName:s,totalTime:r,disabled:!!o}}function $v(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 qv(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let Yv=(t,e)=>!1,Qv=(t,e)=>!1,Xv=(t,e,i)=>[];const Kv=Hv();(Kv||"undefined"!=typeof Element)&&(Yv=(t,e)=>t.contains(e),Qv=(()=>{if(Kv||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]):Qv}})(),Xv=(t,e,i)=>{let n=[];if(i){const i=t.querySelectorAll(e);for(let t=0;t{const n=i.replace(/([a-z])([A-Z])/g,"$1-$2");e[n]=t[i]}),e}let rw=(()=>{class t{validateStyleProperty(t){return tw(t)}matchesElement(t,e){return ew(t,e)}containsElement(t,e){return iw(t,e)}query(t,e,i){return nw(t,e,i)}computeStyle(t,e,i){return i||""}animate(t,e,i,n,s,r=[],o){return new Vv(i,n)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})(),ow=(()=>{class t{}return t.NOOP=new rw,t})();function aw(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:lw(parseFloat(e[1]),e[2])}function lw(t,e){switch(e){case"s":return 1e3*t;default:return t}}function cw(t,e,i){return t.hasOwnProperty("duration")?t:function(t,e,i){let n,s=0,r="";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=lw(parseFloat(i[1]),i[2]);const o=i[3];null!=o&&(s=lw(parseFloat(o),i[4]));const a=i[5];a&&(r=a)}else n=t;if(!i){let i=!1,r=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(r,0,`The provided timing value "${t}" is invalid.`)}return{duration:n,delay:s,easing:r}}(t,e,i)}function uw(t,e={}){return Object.keys(t).forEach(i=>{e[i]=t[i]}),e}function dw(t,e,i={}){if(e)for(let n in t)i[n]=t[n];else uw(t,i);return i}function hw(t,e,i){return i?e+":"+i+";":""}function pw(t){let e="";for(let i=0;i{const s=Cw(n);i&&!i.hasOwnProperty(n)&&(i[n]=t.style[s]),t.style[s]=e[n]}),Hv()&&pw(t))}function fw(t,e){t.style&&(Object.keys(e).forEach(e=>{const i=Cw(e);t.style[i]=""}),Hv()&&pw(t))}function gw(t){return Array.isArray(t)?1==t.length?t[0]:Pv(t):t}const _w=new RegExp("{{\\s*(.+?)\\s*}}","g");function bw(t){let e=[];if("string"==typeof t){let i;for(;i=_w.exec(t);)e.push(i[1]);_w.lastIndex=0}return e}function yw(t,e,i){const n=t.toString(),s=n.replace(_w,(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 vw(t){const e=[];let i=t.next();for(;!i.done;)e.push(i.value),i=t.next();return e}const ww=/-+([a-z0-9])/g;function Cw(t){return t.replace(ww,(...t)=>t[1].toUpperCase())}function xw(t,e){return 0===t||0===e}function Sw(t,e,i){const n=Object.keys(i);if(n.length&&e.length){let r=e[0],o=[];if(n.forEach(t=>{r.hasOwnProperty(t)||o.push(t),r[t]=i[t]}),o.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],r=n[2],o=n[3];e.push(Pw(s,o)),"<"!=r[0]||"*"==s&&"*"==o||e.push(Pw(o,s))}(t,i,e)):i.push(t),i}const Ew=new Set(["true","1"]),Tw=new Set(["false","0"]);function Pw(t,e){const i=Ew.has(t)||Tw.has(t),n=Ew.has(e)||Tw.has(e);return(s,r)=>{let o="*"==t||t==s,a="*"==e||e==r;return!o&&i&&"boolean"==typeof s&&(o=s?Ew.has(t):Tw.has(t)),!a&&n&&"boolean"==typeof r&&(a=r?Ew.has(e):Tw.has(e)),o&&a}}const Dw=new RegExp("s*:selfs*,?","g");function Mw(t,e,i){return new Iw(t).build(e,i)}class Iw{constructor(t){this._driver=t}build(t,e){const i=new Rw(e);return this._resetContextStyleTimingState(i),kw(this,gw(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=[],r=[];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,r.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:r,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,r=n||{};if(i.styles.forEach(t=>{if(Lw(t)){const e=t;Object.keys(e).forEach(t=>{bw(e[t]).forEach(t=>{r.hasOwnProperty(t)||s.add(t)})})}}),s.size){const i=vw(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=kw(this,gw(t.animation),e);return{type:1,matchers:Ow(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Fw(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>kw(this,t,e)),options:Fw(t.options)}}visitGroup(t,e){const i=e.currentTime;let n=0;const s=t.steps.map(t=>{e.currentTime=i;const s=kw(this,t,e);return n=Math.max(n,e.currentTime),s});return e.currentTime=n,{type:3,steps:s,options:Fw(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 Nw(cw(t,e).duration,0,"");const n=t;if(n.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=Nw(0,0,"");return t.dynamic=!0,t.strValue=n,t}return i=i||cw(n,e),Nw(i.duration,i.delay,i.easing)}(t.timings,e.errors);let n;e.currentAnimateTimings=i;let s=t.styles?t.styles:Dv({});if(5==s.type)n=this.visitKeyframes(s,e);else{let s=t.styles,r=!1;if(!s){r=!0;const t={};i.easing&&(t.easing=i.easing),s=Dv(t)}e.currentTime+=i.duration+i.delay;const o=this.visitStyle(s,e);o.isEmptyStep=r,n=o}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(Lw(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 r=e.collectedStyles[e.currentQuerySelector],o=r[i];let a=!0;o&&(s!=n&&s>=o.startTime&&n<=o.endTime&&(e.errors.push(`The CSS property "${i}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${n}ms"`),a=!1),s=o.startTime),a&&(r[i]={startTime:s,endTime:n}),e.options&&function(t,e,i){const n=e.params||{},s=bw(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 r=!1,o=!1,a=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(Lw(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(Lw(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),o=o||c<0||c>1,r=r||c0&&n{const r=u>0?n==d?1:u*n:s[n],o=r*m;e.currentTime=h+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=r,i.styles.push(t)}),i}visitReference(t,e){return{type:8,animation:kw(this,gw(t.animation),e),options:Fw(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Fw(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Fw(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,n=t.options||{};e.queryCount++,e.currentQuery=t;const[s,r]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(Dw,"")),[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,$v(e.collectedStyles,e.currentQuerySelector,{});const o=kw(this,gw(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:n.limit||0,optional:!!n.optional,includeSelf:r,animation:o,originalSelector:t.selector,options:Fw(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"}:cw(t.timings,e.errors,!0);return{type:12,animation:kw(this,gw(t.animation),e),timings:i,options:null}}}class Rw{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 Lw(t){return!Array.isArray(t)&&"object"==typeof t}function Fw(t){var e;return t?(t=uw(t)).params&&(t.params=(e=t.params)?uw(e):null):t={},t}function Nw(t,e,i){return{duration:t,delay:e,easing:i}}function Vw(t,e,i,n,s,r,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}class Bw{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 Hw=new RegExp(":enter","g"),zw=new RegExp(":leave","g");function Gw(t,e,i,n,s,r={},o={},a,l,c=[]){return(new Uw).buildKeyframes(t,e,i,n,s,r,o,a,l,c)}class Uw{buildKeyframes(t,e,i,n,s,r,o,a,l,c=[]){l=l||new Bw;const u=new Ww(t,e,l,n,s,c,[]);u.options=a,u.currentTimeline.setStyles([r],null,u.errors,a),kw(this,i,u);const d=u.timelines.filter(t=>t.containsAnimation());if(d.length&&Object.keys(o).length){const t=d[d.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,u.errors,a)}return d.length?d.map(t=>t.buildKeyframes()):[Vw(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,r=this._visitSubInstructions(i,n,n.options);s!=r&&e.transformIntoNewTimeline(r)}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?aw(i.duration):null,r=null!=i.delay?aw(i.delay):null;return 0!==s&&t.forEach(t=>{const i=e.appendInstructionToTimeline(t,s,r);n=Math.max(n,i.duration+i.delay)}),n}visitReference(t,e){e.updateOptions(t.options,!0),kw(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=jw);const t=aw(s.delay);n.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>kw(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?aw(t.options.delay):0;t.steps.forEach(r=>{const o=e.createSubContext(t.options);s&&o.delayNextStep(s),kw(this,r,o),n=Math.max(n,o.currentTimeline.currentTime),i.push(o.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 cw(e.params?yw(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,r=e.createSubContext().currentTimeline;r.easing=i.easing,t.styles.forEach(t=>{r.forwardTime((t.offset||0)*s),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(n+s),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,n=t.options||{},s=n.delay?aw(n.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=jw);let r=i;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!n.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((i,n)=>{e.currentQueryIndex=n;const o=e.createSubContext(t.options,i);s&&o.delayNextStep(s),i===e.element&&(a=o.currentTimeline),kw(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,n=e.currentTimeline,s=t.timings,r=Math.abs(s.duration),o=r*(e.currentQueryTotal-1);let a=r*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=o-a;break;case"full":a=i.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;kw(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=n.currentTime-c+(n.startTime-i.currentTimeline.startTime)}}const jw={};class Ww{constructor(t,e,i,n,s,r,o,a){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=n,this._leaveClassName=s,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=jw,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new $w(this._driver,e,0),o.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=aw(i.duration)),null!=i.delay&&(n.delay=aw(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]=yw(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 Ww(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=jw,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 qw(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,r){let o=[];if(n&&o.push(this.element),t.length>0){t=(t=t.replace(Hw,"."+this._enterClassName)).replace(zw,"."+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)),o.push(...e)}return s||0!=o.length||r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class $w{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 $w(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||{},r=function(t,e){const i={};let n;return t.forEach(t=>{"*"===t?(n=n||Object.keys(e),n.forEach(t=>{i[t]="*"})):dw(t,!1,i)}),i}(t,this._globalTimelineStyles);Object.keys(r).forEach(t=>{const e=yw(r[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,r)=>{const o=dw(s,!0);Object.keys(o).forEach(i=>{const n=o[i];"!"==n?t.add(i):"*"==n&&e.add(i)}),i||(o.offset=r/this.duration),n.push(o)});const s=t.size?vw(t.values()):[],r=e.size?vw(e.values()):[];if(i){const t=n[0],e=uw(t);t.offset=0,e.offset=1,n=[t,e]}return Vw(this.element,n,s,r,this.duration,this.startTime,this.easing,!1)}}class qw extends $w{constructor(t,e,i,n,s,r,o=!1){super(t,e,r.delay),this.element=e,this.keyframes=i,this.preStyleProps=n,this.postStyleProps=s,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:n}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],r=i+e,o=e/r,a=dw(t[0],!1);a.offset=0,s.push(a);const l=dw(t[0],!1);l.offset=Yw(o),s.push(l);const c=t.length-1;for(let n=1;n<=c;n++){let o=dw(t[n],!1);o.offset=Yw((e+o.offset*i)/r),s.push(o)}i=r,e=0,n="",t=s}return Vw(this.element,t,this.preStyleProps,this.postStyleProps,i,e,n,!0)}}function Yw(t,e=3){const i=Math.pow(10,e-1);return Math.round(t*i)/i}class Qw{}class Xw extends Qw{normalizePropertyName(t,e){return Cw(t)}normalizeStyleValue(t,e,i,n){let s="";const r=i.toString().trim();if(Kw[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 r+s}}const Kw=(()=>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 Zw(t,e,i,n,s,r,o,a,l,c,u,d,h){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:i,fromStyles:r,toState:n,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const Jw={};class tC{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],r=n?n.buildStyles(e,i):{};return s?s.buildStyles(e,i):r}build(t,e,i,n,s,r,o,a,l,c){const u=[],d=this.ast.options&&this.ast.options.params||Jw,h=this.buildStyles(i,o&&o.params||Jw,u),p=a&&a.params||Jw,m=this.buildStyles(n,p,u),f=new Set,g=new Map,_=new Map,b="void"===n,y={params:Object.assign(Object.assign({},d),p)},v=c?[]:Gw(t,e,this.ast.animation,s,r,h,m,y,l,u);let w=0;if(v.forEach(t=>{w=Math.max(t.duration+t.delay,w)}),u.length)return Zw(e,this._triggerName,i,n,b,h,m,[],[],g,_,w,u);v.forEach(t=>{const i=t.element,n=$v(g,i,{});t.preStyleProps.forEach(t=>n[t]=!0);const s=$v(_,i,{});t.postStyleProps.forEach(t=>s[t]=!0),i!==e&&f.add(i)});const C=vw(f.values());return Zw(e,this._triggerName,i,n,b,h,m,v,C,g,_,w)}}class eC{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const i={},n=uw(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 r=s[t];r.length>1&&(r=yw(r,n,e)),i[t]=r})}}),i}}class iC{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new eC(t.style,t.options&&t.options.params||{})}),nC(this.states,"true","1"),nC(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new tC(t,e,this.states))}),this.fallbackTransition=new tC(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 nC(t,e,i){t.hasOwnProperty(e)?t.hasOwnProperty(i)||(t[i]=t[e]):t.hasOwnProperty(i)&&(t[e]=t[i])}const sC=new Bw;class rC{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=Mw(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=Gv(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 r;const o=new Map;if(s?(r=Gw(this._driver,e,s,"ng-enter","ng-leave",{},{},i,sC,n),r.forEach(t=>{const e=$v(o,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(n.push("The requested animation doesn't exist or has already been destroyed"),r=[]),n.length)throw new Error(`Unable to create the animation due to the following errors: ${n.join("\n")}`);o.forEach((t,e)=>{Object.keys(t).forEach(i=>{t[i]=this._driver.computeStyle(e,i,"*")})});const a=zv(r.map(t=>{const e=o.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=a,a.onDestroy(()=>this.destroy(t)),this.players.push(a),a}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const 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=Wv(e,"","","");return Uv(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 oC=[],aC={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},lC={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class cC{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=uw(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 uC=new cC("void");class dC{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,bC(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 r=$v(this._elementListeners,t,[]),o={name:e,phase:i,callback:n};r.push(o);const a=$v(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(bC(t,"ng-trigger"),bC(t,"ng-trigger-"+e),a[e]=uC),()=>{this._engine.afterFlush(()=>{const t=r.indexOf(o);t>=0&&r.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,i,n=!0){const s=this._getTrigger(e),r=new pC(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(bC(t,"ng-trigger"),bC(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new cC(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=uC),"void"!==l.value&&a.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{fw(t,i),mw(t,n)})}return}const c=$v(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let u=s.matchTransition(a.value,l.value,t,l.params),d=!1;if(!u){if(!n)return;u=s.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:u,fromState:a,toState:l,player:r,isFallbackTransition:d}),d||(bC(t,"ng-animate-queued"),r.onStart(()=>{yC(t,"ng-animate-queued")})),r.onDone(()=>{let e=this.players.indexOf(r);e>=0&&this.players.splice(e,1);const i=this._engine.playersByElement.get(t);if(i){let t=i.indexOf(r);t>=0&&i.splice(t,1)}}),this.players.push(r),c.push(r),r}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 r=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const i=this.trigger(t,e,"void",n);i&&r.push(i)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),i&&zv(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const n=new Set;e.forEach(e=>{const s=e.name;if(n.has(s))return;n.add(s);const r=this._triggers[s].fallbackTransition,o=i[s]||uC,a=new cC("void"),l=new pC(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:r,fromState:o,toState:a,player:l,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!==aC||(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){bC(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const n=i.player;if(n.destroyed)return;const s=i.element,r=this._elementListeners.get(s);r&&r.forEach(e=>{if(e.name==i.triggerName){const n=Wv(s,i.triggerName,i.fromState.value,i.toState.value);n._data=t,Uv(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 hC{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 dC(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),bC(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),yC(t,"ng-animate-disabled"))}removeNode(t,e,i,n){if(mC(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 mC(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 zv(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=aC,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?zv(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 Bw,n=[],s=new Map,r=[],o=new Map,a=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(t=>{c.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let i=0;i{const i="ng-enter"+m++;p.set(e,i),t.forEach(t=>bC(t,i))});const f=[],g=new Set,_=new Set;for(let P=0;Pg.add(t)):_.add(t))}const b=new Map,y=_C(d,Array.from(g));y.forEach((t,e)=>{const i="ng-leave"+m++;b.set(e,i),t.forEach(t=>bC(t,i))}),t.push(()=>{h.forEach((t,e)=>{const i=p.get(e);t.forEach(t=>yC(t,i))}),y.forEach((t,e)=>{const i=b.get(e);t.forEach(t=>yC(t,i))}),f.forEach(t=>{this.processLeaveNode(t)})});const v=[],w=[];for(let P=this._namespaceList.length-1;P>=0;P--)this._namespaceList[P].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(v.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const c=!u||!this.driver.containsElement(u,s),d=b.get(s),h=p.get(s),m=this._buildInstruction(t,i,h,d,c);if(m.errors&&m.errors.length)w.push(m);else{if(c)return e.onStart(()=>fw(s,m.fromStyles)),e.onDestroy(()=>mw(s,m.toStyles)),void n.push(e);if(t.isFallbackTransition)return e.onStart(()=>fw(s,m.fromStyles)),e.onDestroy(()=>mw(s,m.toStyles)),void n.push(e);m.timelines.forEach(t=>t.stretchStartingKeyframe=!0),i.append(s,m.timelines),r.push({instruction:m,player:e,element:s}),m.queriedElements.forEach(t=>$v(o,t,[]).push(e)),m.preStyleProps.forEach((t,e)=>{const i=Object.keys(t);if(i.length){let t=a.get(e);t||a.set(e,t=new Set),i.forEach(e=>t.add(e))}}),m.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))})}});if(w.length){const t=[];w.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),v.forEach(t=>t.destroy()),this.reportError(t)}const C=new Map,x=new Map;r.forEach(t=>{const e=t.element;i.has(e)&&(x.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,C))}),n.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{$v(C,e,[]).push(t),t.destroy()})});const S=f.filter(t=>CC(t,a,l)),k=new Map;gC(k,this.driver,_,l,"*").forEach(t=>{CC(t,a,l)&&S.push(t)});const A=new Map;h.forEach((t,e)=>{gC(A,this.driver,new Set(t),a,"!")}),S.forEach(t=>{const e=k.get(t),i=A.get(t);k.set(t,Object.assign(Object.assign({},e),i))});const O=[],E=[],T={};r.forEach(t=>{const{element:e,player:r,instruction:o}=t;if(i.has(e)){if(c.has(e))return r.onDestroy(()=>mw(e,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void n.push(r);let t=T;if(x.size>1){let i=e;const n=[];for(;i=i.parentNode;){const e=x.get(i);if(e){t=e;break}n.push(i)}n.forEach(e=>x.set(e,t))}const i=this._buildAnimation(r.namespaceId,o,C,s,A,k);if(r.setRealPlayer(i),t===T)O.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=zv(e)),n.push(r)}}else fw(e,o.fromStyles),r.onDestroy(()=>mw(e,o.toStyles)),E.push(r),c.has(e)&&n.push(r)}),E.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const i=zv(e);t.setRealPlayer(i)}}),n.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let P=0;P!t.destroyed);n.length?vC(this,t,n):this.processLeaveNode(t)}return f.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 r=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(r=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||"void"==s;e.forEach(e=>{e.queued||(t||e.triggerName==n)&&r.push(e)})}}return(i||n)&&(r=r.filter(t=>!(i&&i!=t.namespaceId||n&&n!=t.triggerName))),r}_beforeAnimationBuild(t,e,i){const n=e.element,s=e.isRemovalTransition?void 0:t,r=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==n,l=$v(i,t,[]);this._getPreviousPlayers(t,a,s,r,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}fw(n,e.fromStyles)}_buildAnimation(t,e,i,n,s,r){const o=e.triggerName,a=e.element,l=[],c=new Set,u=new Set,d=e.timelines.map(e=>{const d=e.element;c.add(d);const h=d.__ng_removed;if(h&&h.removedBeforeQueried)return new Vv(e.duration,e.delay);const p=d!==a,m=function(t){const e=[];return wC(t,e),e}((i.get(d)||oC).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===d),f=s.get(d),g=r.get(d),_=Gv(0,this._normalizer,0,e.keyframes,f,g),b=this._buildPlayer(e,_,m);if(e.subTimeline&&n&&u.add(d),p){const e=new pC(t,o,d);e.setRealPlayer(b),l.push(e)}return b});l.forEach(t=>{$v(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=>bC(t,"ng-animating"));const h=zv(d);return h.onDestroy(()=>{c.forEach(t=>yC(t,"ng-animating")),mw(a,e.toStyles)}),u.forEach(t=>{$v(n,t,[]).push(h)}),h}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new Vv(t.duration,t.delay)}}class pC{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new Vv,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=>Uv(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){$v(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 mC(t){return t&&1===t.nodeType}function fC(t,e){const i=t.style.display;return t.style.display=null!=e?e:"none",i}function gC(t,e,i,n,s){const r=[];i.forEach(t=>r.push(fC(t)));const o=[];n.forEach((i,n)=>{const r={};i.forEach(t=>{const i=r[t]=e.computeStyle(n,t,s);i&&0!=i.length||(n.__ng_removed=lC,o.push(n))}),t.set(n,r)});let a=0;return i.forEach(t=>fC(t,r[a++])),o}function _C(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;function r(t){if(!t)return 1;let e=s.get(t);if(e)return e;const o=t.parentNode;return e=i.has(o)?o:n.has(o)?1:r(o),s.set(t,e),e}return e.forEach(t=>{const e=r(t);1!==e&&i.get(e).push(t)}),i}function bC(t,e){if(t.classList)t.classList.add(e);else{let i=t.$$classes;i||(i=t.$$classes={}),i[e]=!0}}function yC(t,e){if(t.classList)t.classList.remove(e);else{let i=t.$$classes;i&&delete i[e]}}function vC(t,e,i){zv(i).onDone(()=>t.processLeaveNode(e))}function wC(t,e){for(let i=0;is.add(t)):e.set(t,n),i.delete(t),!0}class xC{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new hC(t,e,i),this._timelineEngine=new rC(t,e,i),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,i,n,s){const r=t+"-"+n;let o=this._triggerCache[r];if(!o){const t=[],e=Mw(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 - ")}`);o=function(t,e){return new iC(t,e)}(n,e),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(e,n,o)}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]=qv(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]=qv(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 SC(t,e){let i=null,n=null;return Array.isArray(e)&&e.length?(i=AC(e[0]),e.length>1&&(n=AC(e[e.length-1]))):e&&(i=AC(e)),i||n?new kC(t,i,n):null}let kC=(()=>{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&&mw(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(mw(this._element,this._initialStyles),this._endStyles&&(mw(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(fw(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(fw(this._element,this._endStyles),this._endStyles=null),mw(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function AC(t){let e=null;const i=Object.keys(t);for(let n=0;nthis._handleCallback(t)}apply(){!function(t,e){const i=RC(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(),MC(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const i=RC(t,"").split(","),n=DC(i,e);n>=0&&(i.splice(n,1),IC(t,"",i.join(",")))}(this._element,this._name))}}function TC(t,e,i){IC(t,"PlayState",i,PC(t,e))}function PC(t,e){const i=RC(t,"");return i.indexOf(",")>0?DC(i.split(","),e):DC([i],e)}function DC(t,e){for(let i=0;i=0)return i;return-1}function MC(t,e,i){i?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function IC(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 RC(t,e){return t.style["animation"+e]||""}class LC{constructor(t,e,i,n,s,r,o,a){this.element=t,this.keyframes=e,this.animationName=i,this._duration=n,this._delay=s,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=r||"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 EC(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]:Aw(this.element,i))})}this.currentSnapshot=t}}class FC extends Vv{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=sw(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 NC{constructor(){this._count=0,this._head=document.querySelector("head")}validateStyleProperty(t){return tw(t)}matchesElement(t,e){return ew(t,e)}containsElement(t,e){return iw(t,e)}query(t,e,i){return nw(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,i){i=i.map(t=>sw(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 r=document.createElement("style");return r.textContent=n,r}animate(t,e,i,n,s,r=[],o){const a=r.filter(t=>t instanceof LC),l={};xw(i,n)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(i=>{"offset"!=i&&"easing"!=i&&(e[i]=t[i])})}),e}(e=Sw(t,e,l));if(0==i)return new FC(t,c);const u="gen_css_kf_"+this._count++,d=this.buildKeyframeElement(t,u,e);document.querySelector("head").appendChild(d);const h=SC(t,e),p=new LC(t,e,u,i,n,s,c,h);return p.onDestroy(()=>{var t;(t=d).parentNode.removeChild(t)}),p}}class VC{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){void 0===this.domPlayer&&this.init(),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]:Aw(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class BC{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(HC().toString()),this._cssKeyframesDriver=new NC}validateStyleProperty(t){return tw(t)}matchesElement(t,e){return ew(t,e)}containsElement(t,e){return iw(t,e)}query(t,e,i){return nw(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,i,n,s,r=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,n,s,r);const a={duration:i,delay:n,fill:0==n?"both":"forwards"};s&&(a.easing=s);const l={},c=r.filter(t=>t instanceof VC);xw(i,n)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const u=SC(t,e=Sw(t,e=e.map(t=>dw(t,!1)),l));return new VC(t,e,a,u)}}function HC(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let zC=(()=>{class t extends Av{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:It.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(t)?Pv(t):t;return jC(this._renderer,null,e,"register",[i]),new GC(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(wn(ml),wn(qu))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();class GC extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new UC(this._id,t,e||{},this._renderer)}}class UC{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 jC(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(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function jC(t,e,i,n,s){return t.setProperty(e,`@@${i}:${n}`,s)}let WC=(()=>{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 $C("",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 r=e=>{Array.isArray(e)?e.forEach(r):this.engine.registerTrigger(n,s,t,e.name,e)};return e.data.animation.forEach(r),new qC(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)(wn(ml),wn(xC),wn(mu))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();class $C{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,n=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,n)}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 qC extends $C{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),r="";return"@"!=s.charAt(0)&&([s,r]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,n,s,r,t=>{this.factory.scheduleListenerCallback(t._data||-1,i,t)})}return this.delegate.listen(t,e,i)}}let YC=(()=>{class t extends xC{constructor(t,e,i){super(t.body,e,i)}}return t.\u0275fac=function(e){return new(e||t)(wn(qu),wn(ow),wn(Qw))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();const QC=new en("AnimationModuleType"),XC=[{provide:ow,useFactory:function(){return"function"==typeof HC()?new BC:new NC}},{provide:QC,useValue:"BrowserAnimations"},{provide:Av,useClass:zC},{provide:Qw,useFactory:function(){return new Xw}},{provide:xC,useClass:YC},{provide:ml,useFactory:function(t,e,i){return new WC(t,e,i)},deps:[Hh,xC,mu]}];let KC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:XC,imports:[tp]}),t})();const ZC=["*",[["mat-option"],["ng-container"]]],JC=["*","mat-option, ng-container"];function tx(t,e){if(1&t&&Ko(0,"mat-pseudo-checkbox",4),2&t){const t=ua();qo("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}function ex(t,e){if(1&t&&(Qo(0,"span",5),Na(1),Xo()),2&t){const t=ua();dr(1),Ba("(",t.group.label,")")}}const ix=["*"];let nx=(()=>{class t{}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t})(),sx=(()=>{class t{}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t})();const rx=new bl("11.2.7"),ox=new en("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let ax=(()=>{class t{constructor(t,e,i){this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}_checksAreEnabled(){return Eu()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!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.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)&&rx.full!==kv.full&&console.warn("The Angular Material version ("+rx.full+") does not match the Angular CDK version ("+kv.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275fac=function(e){return new(e||t)(wn(xv),wn(ox,8),wn(qu))},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[Kg],Kg]}),t})();function lx(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=wg(t)}}}function cx(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),e&&this._elementRef.nativeElement.classList.add(`mat-${e}`),this._color=e)}}}function ux(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=wg(t)}}}function dx(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e,this.defaultTabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?Cg(t):this.defaultTabIndex}}}function hx(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new k}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}function px(t){return class extends t{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new v(t=>{this._isInitialized?this._notifySubscriber(t):this._pendingSubscribers.push(t)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(t){t.next(),t.complete()}}}const mx=new en("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return Cn(iu)}});class fx{constructor(){this._localeChanges=new k,this.localeChanges=this._localeChanges}getValidDateOrNull(t){return this.isDateInstance(t)&&this.isValid(t)?t:null}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 gx=new en("mat-date-formats");let _x;try{_x="undefined"!=typeof Intl}catch(i2){_x=!1}const bx={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"]},yx=Cx(31,t=>String(t+1)),vx={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},wx=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Cx(t,e){const i=Array(t);for(let n=0;n{class t extends fx{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(_x){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return Cx(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return bx[t]}getDateNames(){if(_x){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Cx(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return yx}getDayOfWeekNames(t){if(_x){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return Cx(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return vx[t]}getYearName(t){if(_x){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){let n=this._createDateWithOverflow(t,e,i);return n.getMonth(),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(_x){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(wx.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;return n.setFullYear(t,e,i),n.setHours(0,0,0,0),n}_2digit(t){return("00"+t).slice(-2)}_stripDirectionalityCharacters(t){return t.replace(/[\u200e\u200f]/g,"")}_format(t,e){const i=new Date;return i.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),i.setUTCHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t.format(i)}}return t.\u0275fac=function(e){return new(e||t)(wn(mx,8),wn(Ry))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})(),Sx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:[{provide:fx,useClass:xx}],imports:[[Ly]]}),t})();const kx={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 Ax=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:[{provide:gx,useValue:kx}],imports:[[Sx]]}),t})(),Ox=(()=>{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=_t({factory:function(){return new t},token:t,providedIn:"root"}),t})(),Ex=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ie({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t})();function Tx(t,e,i){const n=t.nativeElement.classList;i?n.add(e):n.remove(e)}let Px=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[ax],ax]}),t})();class Dx{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Mx={enterDuration:450,exitDuration:400},Ix=Gy({passive:!0}),Rx=["mousedown","touchstart"],Lx=["mouseup","mouseleave","touchend","touchcancel"];class Fx{constructor(t,e,i,n){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,n.isBrowser&&(this._containerElement=Ag(i))}fadeInRipple(t,e,i={}){const n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},Mx),i.animation);i.centered&&(t=n.left+n.width/2,e=n.top+n.height/2);const r=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),o=t-n.left,a=e-n.top,l=s.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=o-r+"px",c.style.top=a-r+"px",c.style.height=2*r+"px",c.style.width=2*r+"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 u=new Dx(this,c,i);return u.state=0,this._activeRipples.add(u),i.persistent||(this._mostRecentTransientRipple=u),this._runTimeoutOutsideZone(()=>{const t=u===this._mostRecentTransientRipple;u.state=1,i.persistent||t&&this._isPointerDown||u.fadeOut()},l),u}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,n=Object.assign(Object.assign({},Mx),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=Ag(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(Rx))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Lx),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=gv(t),i=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,Ix)})})}_removeTriggerEvents(){this._triggerElement&&(Rx.forEach(t=>{this._triggerElement.removeEventListener(t,this,Ix)}),this._pointerUpEventsRegistered&&Lx.forEach(t=>{this._triggerElement.removeEventListener(t,this,Ix)}))}}const Nx=new en("mat-ripple-global-options");let Vx=(()=>{class t{constructor(t,e,i,n,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=n||{},this._rippleRenderer=new Fx(this,e,t,i)}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(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),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)($o(hl),$o(mu),$o(Ry),$o(Nx,8),$o(QC,8))},t.\u0275dir=ie({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&Sa("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})(),Bx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[ax,Ly],ax]}),t})(),Hx=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)($o(QC,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&Sa("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})(),zx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[ax]]}),t})();const Gx=new en("MAT_OPTION_PARENT_COMPONENT");class Ux{}const jx=lx(Ux);let Wx=0,$x=(()=>{class t extends jx{constructor(t){var e;super(),this._labelId="mat-optgroup-label-"+Wx++,this._inert=null!==(e=null==t?void 0:t.inertGroups)&&void 0!==e&&e}}return t.\u0275fac=function(e){return new(e||t)($o(Gx,8))},t.\u0275dir=ie({type:t,inputs:{label:"label"},features:[Oo]}),t})();const qx=new en("MatOptgroup");let Yx=(()=>{class t extends $x{}return t.\u0275fac=function(e){return Qx(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-optgroup"],hostVars:5,hostBindings:function(t,e){2&t&&(zo("role",e._inert?null:"group")("aria-disabled",e._inert?null:e.disabled.toString())("aria-labelledby",e._inert?null:e._labelId),Sa("mat-optgroup-disabled",e.disabled))},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[rl([{provide:qx,useExisting:t}]),Oo],ngContentSelectors:JC,decls:4,vars:2,consts:[["aria-hidden","true",1,"mat-optgroup-label",3,"id"]],template:function(t,e){1&t&&(ha(ZC),Qo(0,"span",0),Na(1),pa(2),Xo(),pa(3,1)),2&t&&(qo("id",e._labelId),dr(1),Ba("",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 Qx=Qi(Yx);let Xx=0;class Kx{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let Zx=(()=>{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-"+Xx++,this.onSelectionChange=new kc,this._stateChanges=new k}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=wg(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||My(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 Kx(this,t))}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(Vl),$o(void 0),$o($x))},t.\u0275dir=ie({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),Jx=(()=>{class t extends Zx{constructor(t,e,i,n){super(t,e,i,n)}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(Vl),$o(Gx,8),$o(qx,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&ra("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(Ua("id",e.id),zo("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),Sa("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[Oo],ngContentSelectors:ix,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(t,e){1&t&&(ha(),jo(0,tx,1,2,"mat-pseudo-checkbox",0),Qo(1,"span",1),pa(2),Xo(),jo(3,ex,2,1,"span",2),Ko(4,"div",3)),2&t&&(qo("ngIf",e.multiple),dr(3),qo("ngIf",e.group&&e.group._inert),dr(1),qo("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[Jd,Vx,Hx],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}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.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}.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 tS(t,e,i){if(i.length){let n=e.toArray(),s=i.toArray(),r=0;for(let e=0;ei+n?Math.max(0,t-n+e):i}let iS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[Bx,yh,ax,zx]]}),t})();function nS(t){return new v(e=>{let i;try{i=t()}catch(n){return void e.error(n)}return(i?V(i):xp()).subscribe(e)})}function sS(t){return!!t&&(t instanceof v||"function"==typeof t.lift&&"function"==typeof t.subscribe)}class rS{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new oS(t,this.durationSelector))}}class oS extends H{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=z(i,new B(this));!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=void 0,i.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function aS(t,e=mp){return i=()=>gp(t,e),function(t){return t.lift(new rS(i))};var i}function lS(){return t=>t.lift(new cS)}class cS{call(t,e){return e.subscribe(new uS(t))}}class uS extends m{constructor(t){super(t),this.hasPrev=!1}_next(t){let e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)}}class dS{}function hS(t){return t&&"function"==typeof t.connect}class pS{applyChanges(t,e,i,n,s){t.forEachOperation((t,n,r)=>{let o,a;if(null==t.previousIndex){const s=i(t,n,r);o=e.createEmbeddedView(s.templateRef,s.context,s.index),a=1}else null==r?(e.remove(n),a=3):(o=e.get(n),e.move(o,r),a=2);s&&s({context:null==o?void 0:o.context,operation:a,record:t})})}detach(){}}class mS{constructor(t=!1,e,i=!0){this._multiple=t,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new k,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){}}let fS=(()=>{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=_t({factory:function(){return new t},token:t,providedIn:"root"}),t})();const gS=new en("_ViewRepeater");let _S=(()=>{class t{constructor(t,e,i){this._ngZone=t,this._platform=e,this._scrolled=new k,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}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 v(e=>{this._globalSubscription||this._addGlobalListener();const i=t>0?this._scrolled.pipe(aS(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{i.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Sp()}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(Mm(t=>!t||i.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((i,n)=>{this._scrollableContainsElement(n,t)&&e.push(n)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let i=Ag(e),n=t.getElementRef().nativeElement;do{if(i==n)return!0}while(i=i.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Cf(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(wn(mu),wn(Ry),wn(qu,8))},t.\u0275prov=_t({factory:function(){return new t(wn(mu),wn(Ry),wn(qu,8))},token:t,providedIn:"root"}),t})(),bS=(()=>{class t{constructor(t,e,i,n){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=i,this.dir=n,this._destroyed=new k,this._elementScrolled=new v(t=>this.ngZone.runOutsideAngular(()=>Cf(this.elementRef.nativeElement,"scroll").pipe(Hp(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!=jy()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==jy()?t.left=t.right:1==jy()&&(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;Uy()?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==jy()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:i&&1==jy()?"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)($o(hl),$o(_S),$o(mu),$o(Xg,8))},t.\u0275dir=ie({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),yS=(()=>{class t{constructor(t,e,i){this._platform=t,this._change=new k,this._changeListener=t=>{this._change.next(t)},this._document=i,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}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=this._document,e=this._getWindow(),i=t.documentElement,n=i.getBoundingClientRect();return{top:-n.top||t.body.scrollTop||e.scrollY||i.scrollTop||0,left:-n.left||t.body.scrollLeft||e.scrollX||i.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(aS(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(wn(Ry),wn(mu),wn(qu,8))},t.\u0275prov=_t({factory:function(){return new t(wn(Ry),wn(mu),wn(qu,8))},token:t,providedIn:"root"}),t})(),vS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({}),t})(),wS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[Kg,Ly,vS],Kg,vS]}),t})();class CS{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class xS extends CS{constructor(t,e,i,n){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=n}}class SS extends CS{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 kS extends CS{constructor(t){super(),this.element=t instanceof hl?t.nativeElement:t}}class AS{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof xS?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof SS?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof kS?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}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 OS extends AS{constructor(t,e,i,n,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=n,this.attachDomPortal=t=>{const e=t.element,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.rootNodes.forEach(t=>this.outletElement.appendChild(t)),i.detectChanges(),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 ES=(()=>{class t extends SS{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)($o(jl),$o(Kl))},t.\u0275dir=ie({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[Oo]}),t})(),TS=(()=>{class t extends AS{constructor(t,e,i){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new kc,this.attachDomPortal=t=>{const e=t.element,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)($o(ll),$o(Kl),$o(qu))},t.\u0275dir=ie({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Oo]}),t})(),PS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({}),t})();class DS{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new MS(t,this.predicate,this.inclusive))}}class MS extends m{constructor(t,e,i){super(t),this.predicate=e,this.inclusive=i,this.index=0}_next(t){const e=this.destination;let i;try{i=this.predicate(t,this.index++)}catch(n){return void e.error(n)}this.nextOrComplete(t,i)}nextOrComplete(t,e){const i=this.destination;Boolean(e)?i.next(t):(this.inclusive&&i.next(t),i.complete())}}const IS=Uy();class RS{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=kg(-this._previousScrollPosition.left),t.style.top=kg(-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"),IS&&(e.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),IS&&(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}}class LS{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){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 FS{enable(){}disable(){}attach(){}}function NS(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function VS(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class BS{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=n,this._scrollSubscription=null}attach(t){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();NS(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 HS=(()=>{class t{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this.noop=()=>new FS,this.close=t=>new LS(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new RS(this._viewportRuler,this._document),this.reposition=t=>new BS(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=n}}return t.\u0275fac=function(e){return new(e||t)(wn(_S),wn(yS),wn(mu),wn(qu))},t.\u0275prov=_t({factory:function(){return new t(wn(_S),wn(yS),wn(mu),wn(qu))},token:t,providedIn:"root"}),t})();class zS{constructor(t){if(this.scrollStrategy=new FS,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 GS{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 US{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let jS=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),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()}}return t.\u0275fac=function(e){return new(e||t)(wn(qu))},t.\u0275prov=_t({factory:function(){return new t(wn(qu))},token:t,providedIn:"root"}),t})(),WS=(()=>{class t extends jS{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let i=e.length-1;i>-1;i--)if(e[i]._keydownEvents.observers.length>0){e[i]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(wn(qu))},t.\u0275prov=_t({factory:function(){return new t(wn(qu))},token:t,providedIn:"root"}),t})(),$S=(()=>{class t extends jS{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,i=this._attachedOverlays.slice();for(let n=i.length-1;n>-1;n--){const s=i[n];if(!(s._outsidePointerEvents.observers.length<1)&&s.hasAttached()){if(s.overlayElement.contains(e))break;s._outsidePointerEvents.next(t)}}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._document.body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(wn(qu),wn(Ry))},t.\u0275prov=_t({factory:function(){return new t(wn(qu),wn(Ry))},token:t,providedIn:"root"}),t})();const qS=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let YS=(()=>{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(){if(this._platform.isBrowser||qS){const t=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]');for(let e=0;ethis._backdropClick.next(t),this._keydownEvents=new k,this._outsidePointerEvents=new k,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.pipe(Tf(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._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),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(),this._outsideClickDispatcher.remove(this),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._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),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}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}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=kg(this._config.width),t.height=kg(this._config.height),t.minWidth=kg(this._config.minWidth),t.minHeight=kg(this._config.minHeight),t.maxWidth=kg(this._config.maxWidth),t.maxHeight=kg(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"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;Sg(e).forEach(t=>{t&&(i?n.add(t):n.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Hp(Y(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 XS=/([A-Za-z%]+)$/;class KS{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 k,this._resizeSubscription=d.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){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 r of this._preferredPositions){let o=this._getOriginPoint(t,r),a=this._getOverlayPoint(o,e,r),l=this._getOverlayFit(a,e,i,r);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(r,o);this._canFitWithFlexibleDimensions(l,a,i)?n.push({position:r,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,r)}):(!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&&ZS(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){const s=tk(e);let{x:r,y:o}=t,a=this._getOffset(n,"x"),l=this._getOffset(n,"y");a&&(r+=a),l&&(o+=l);let c=0-o,u=o+s.height-i.height,d=this._subtractOverflows(s.width,0-r,r+s.width-i.width),h=this._subtractOverflows(s.height,c,u),p=d*h;return{visibleArea:p,isCompletelyWithinViewport:s.width*s.height===p,fitsInViewportVertically:h===s.height,fitsInViewportHorizontally:d==s.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const n=i.bottom-e.y,s=i.right-e.x,r=JS(this._overlayRef.getConfig().minHeight),o=JS(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=s;return(t.fitsInViewportVertically||null!=r&&r<=n)&&a}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=tk(e),s=this._viewportRect,r=Math.max(t.x+n.width-s.width,0),o=Math.max(t.y+n.height-s.height,0),a=Math.max(s.top-i.top-t.y,0),l=Math.max(s.left-i.left-t.x,0);let c=0,u=0;return c=n.width<=s.width?l||-r:t.xn&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-n/2)}if("end"===e.overlayX&&!n||"start"===e.overlayX&&n)c=i.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!n||"end"===e.overlayX&&n)l=t.x,a=i.right-t.x;else{const e=Math.min(i.right-t.x+i.left,t.x),n=this._lastBoundingBoxSize.width;a=2*e,l=t.x-e,a>n&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-n/2)}return{top:r,left:l,bottom:o,right:c,width:a,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=kg(i.height),n.top=kg(i.top),n.bottom=kg(i.bottom),n.width=kg(i.width),n.left=kg(i.left),n.right=kg(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=kg(t)),s&&(n.maxWidth=kg(s))}this._lastBoundingBoxSize=i,ZS(this._boundingBox.style,n)}_resetBoundingBoxStyles(){ZS(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ZS(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},n=this._hasExactPosition(),s=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(n){const n=this._viewportRuler.getViewportScrollPosition();ZS(i,this._getExactOverlayY(e,t,n)),ZS(i,this._getExactOverlayX(e,t,n))}else i.position="static";let o="",a=this._getOffset(e,"x"),l=this._getOffset(e,"y");a&&(o+=`translateX(${a}px) `),l&&(o+=`translateY(${l}px)`),i.transform=o.trim(),r.maxHeight&&(n?i.maxHeight=kg(r.maxHeight):s&&(i.maxHeight="")),r.maxWidth&&(n?i.maxWidth=kg(r.maxWidth):s&&(i.maxWidth="")),ZS(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 r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=r,"bottom"===t.overlayY?n.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":n.top=kg(s.y),n}_getExactOverlayX(t,e,i){let n,s={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),n=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===n?s.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":s.left=kg(r.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:VS(t,i),isOriginOutsideView:NS(t,i),isOverlayClipped:VS(e,i),isOverlayOutsideView:NS(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(){}_addPanelClasses(t){this._pane&&Sg(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 hl)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)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 ZS(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function JS(t){if("number"!=typeof t&&null!=t){const[e,i]=t.split(XS);return i&&"px"!==i?null:parseFloat(e)}return t||null}function tk(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}class ek{constructor(t,e,i,n,s,r,o){this._preferredPositions=[],this._positionStrategy=new KS(i,n,s,r,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=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 GS(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 ik{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:r,maxHeight:o}=i,a=!("100%"!==n&&"100vw"!==n||r&&"100%"!==r&&"100vw"!==r),l=!("100%"!==s&&"100vh"!==s||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,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 nk=(()=>{class t{constructor(t,e,i,n){this._viewportRuler=t,this._document=e,this._platform=i,this._overlayContainer=n}global(){return new ik}connectedTo(t,e,i){return new ek(e,i,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new KS(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(wn(yS),wn(qu),wn(Ry),wn(YS))},t.\u0275prov=_t({factory:function(){return new t(wn(yS),wn(qu),wn(Ry),wn(YS))},token:t,providedIn:"root"}),t})(),sk=0,rk=(()=>{class t{constructor(t,e,i,n,s,r,o,a,l,c,u){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=i,this._positionBuilder=n,this._keyboardDispatcher=s,this._injector=r,this._ngZone=o,this._document=a,this._directionality=l,this._location=c,this._outsideClickDispatcher=u}create(t){const e=this._createHostElement(),i=this._createPaneElement(e),n=this._createPortalOutlet(i),s=new zS(t);return s.direction=s.direction||this._directionality.value,new QS(n,e,i,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+sk++,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(Lu)),new OS(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(wn(HS),wn(YS),wn(ll),wn(nk),wn(WS),wn(ko),wn(mu),wn(qu),wn(Xg),wn(ld),wn($S))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();const ok=[{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"}],ak=new en("cdk-connected-overlay-scroll-strategy");let lk=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)($o(hl))},t.\u0275dir=ie({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),ck=(()=>{class t{constructor(t,e,i,n,s){this._overlay=t,this._dir=s,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=d.EMPTY,this._attachSubscription=d.EMPTY,this._detachSubscription=d.EMPTY,this._positionSubscription=d.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new kc,this.positionChange=new kc,this.attach=new kc,this.detach=new kc,this.overlayKeydown=new kc,this.overlayOutsideClick=new kc,this._templatePortal=new SS(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=wg(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=wg(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=wg(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=wg(t)}get push(){return this._push}set push(t){this._push=wg(t)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}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=ok);const t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),27!==t.keyCode||this.disableClose||My(t)||(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new zS({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}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(t,e=!1){return i=>i.lift(new DS(t,e))}(()=>this.positionChange.observers.length>0)).subscribe(t=>{this.positionChange.emit(t),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)($o(rk),$o(jl),$o(Kl),$o(ak),$o(Xg,8))},t.\u0275dir=ie({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],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",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[me]}),t})();const uk={provide:ak,deps:[rk],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let dk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:[rk,uk],imports:[[Kg,PS,wS],wS]}),t})();const hk=["underline"],pk=["connectionContainer"],mk=["inputContainer"],fk=["label"];function gk(t,e){1&t&&(Zo(0),Qo(1,"div",14),Ko(2,"div",15),Ko(3,"div",16),Ko(4,"div",17),Xo(),Qo(5,"div",18),Ko(6,"div",15),Ko(7,"div",16),Ko(8,"div",17),Xo(),Jo())}function _k(t,e){1&t&&(Qo(0,"div",19),pa(1,1),Xo())}function bk(t,e){if(1&t&&(Zo(0),pa(1,2),Qo(2,"span"),Na(3),Xo(),Jo()),2&t){const t=ua(2);dr(3),Va(t._control.placeholder)}}function yk(t,e){1&t&&pa(0,3,["*ngSwitchCase","true"])}function vk(t,e){1&t&&(Qo(0,"span",23),Na(1," *"),Xo())}function wk(t,e){if(1&t){const t=ea();Qo(0,"label",20,21),ra("cdkObserveContent",function(){return Be(t),ua().updateOutlineGap()}),jo(2,bk,4,1,"ng-container",12),jo(3,yk,1,0,"ng-content",12),jo(4,vk,2,0,"span",22),Xo()}if(2&t){const t=ua();Sa("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),qo("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),zo("for",t._control.id)("aria-owns",t._control.id),dr(2),qo("ngSwitchCase",!1),dr(1),qo("ngSwitchCase",!0),dr(1),qo("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function Ck(t,e){1&t&&(Qo(0,"div",24),pa(1,4),Xo())}function xk(t,e){if(1&t&&(Qo(0,"div",25,26),Ko(2,"span",27),Xo()),2&t){const t=ua();dr(2),Sa("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function Sk(t,e){1&t&&(Qo(0,"div"),pa(1,5),Xo()),2&t&&qo("@transitionMessages",ua()._subscriptAnimationState)}function kk(t,e){if(1&t&&(Qo(0,"div",31),Na(1),Xo()),2&t){const t=ua(2);qo("id",t._hintLabelId),dr(1),Va(t.hintLabel)}}function Ak(t,e){if(1&t&&(Qo(0,"div",28),jo(1,kk,2,2,"div",29),pa(2,6),Ko(3,"div",30),pa(4,7),Xo()),2&t){const t=ua();qo("@transitionMessages",t._subscriptAnimationState),dr(1),qo("ngIf",t.hintLabel)}}const Ok=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Ek=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Tk=0;const Pk=new en("MatError");let Dk=(()=>{class t{constructor(){this.id="mat-error-"+Tk++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ie({type:t,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&zo("id",e.id)},inputs:{id:"id"},features:[rl([{provide:Pk,useExisting:t}])]}),t})();const Mk={transitionMessages:Ov("transitionMessages",[Mv("enter",Dv({opacity:1,transform:"translateY(0%)"})),Rv("void => enter",[Dv({opacity:0,transform:"translateY(-5px)"}),Ev("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Ik=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ie({type:t}),t})(),Rk=0;const Lk=new en("MatHint");let Fk=(()=>{class t{constructor(){this.align="start",this.id="mat-hint-"+Rk++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ie({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(zo("id",e.id)("align",null),Sa("mat-form-field-hint-end","end"===e.align))},inputs:{align:"align",id:"id"},features:[rl([{provide:Lk,useExisting:t}])]}),t})(),Nk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ie({type:t,selectors:[["mat-label"]]}),t})(),Vk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ie({type:t,selectors:[["mat-placeholder"]]}),t})();const Bk=new en("MatPrefix");let Hk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ie({type:t,selectors:[["","matPrefix",""]],features:[rl([{provide:Bk,useExisting:t}])]}),t})();const zk=new en("MatSuffix");let Gk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ie({type:t,selectors:[["","matSuffix",""]],features:[rl([{provide:zk,useExisting:t}])]}),t})(),Uk=0;class jk{constructor(t){this._elementRef=t}}const Wk=cx(jk,"primary"),$k=new en("MAT_FORM_FIELD_DEFAULT_OPTIONS"),qk=new en("MatFormField");let Yk=(()=>{class t extends Wk{constructor(t,e,i,n,s,r,o,a){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=n,this._defaults=s,this._platform=r,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new k,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Uk++,this._labelId="mat-form-field-label-"+Uk++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,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=wg(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_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}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}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(jp(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Hp(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Hp(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Y(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(jp(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(jp(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Hp(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._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Cf(this._label.nativeElement,"transitionend").pipe(Tf(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"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.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}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"),r=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 r=this._getStartEnd(s),o=t.children,a=this._getStartEnd(o[0].getBoundingClientRect());let l=0;for(let t=0;t0?.75*l+10:0}for(let o=0;o{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[yh,ax,Qy],ax]}),t})();function Xk(t,e=mp){var i;const n=(i=t)instanceof Date&&!isNaN(+i)?+t-e.now():Math.abs(t);return t=>t.lift(new Kk(n,e))}class Kk{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new Zk(t,this.delay,this.scheduler))}}class Zk extends m{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(Zk.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,i=new Jk(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(Op.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(Op.createComplete()),this.unsubscribe()}}class Jk{constructor(t,e){this.time=t,this.notification=e}}const tA=["panel"];function eA(t,e){if(1&t&&(Qo(0,"div",0,1),pa(2),Xo()),2&t){const t=e.id,i=ua();qo("id",i.id)("ngClass",i._classList),zo("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(t))}}const iA=["*"];let nA=0;class sA{constructor(t,e){this.source=t,this.option=e}}class rA{}const oA=ux(rA),aA=new en("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}});let lA=(()=>{class t extends oA{constructor(t,e,i,n){super(),this._changeDetectorRef=t,this._elementRef=e,this._activeOptionChanges=d.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new kc,this.opened=new kc,this.closed=new kc,this.optionActivated=new kc,this._classList={},this.id="mat-autocomplete-"+nA++,this.inertGroups=(null==n?void 0:n.SAFARI)||!1,this._autoActiveFirstOption=!!i.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(t){this._autoActiveFirstOption=wg(t)}set classList(t){this._classList=t&&t.length?Og(t).reduce((t,e)=>(t[e]=!0,t),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new sv(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 sA(this,t);this.optionSelected.emit(e)}_getPanelAriaLabelledby(t){return this.ariaLabel?null:this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}_setVisibilityClasses(t){t[this._visibleClass]=this.showPanel,t[this._hiddenClass]=!this.showPanel}}return t.\u0275fac=function(e){return new(e||t)($o(Vl),$o(hl),$o(aA),$o(Ry))},t.\u0275dir=ie({type:t,viewQuery:function(t,e){if(1&t&&(Vc(jl,3),Vc(tA,1)),2&t){let t;Nc(t=Hc())&&(e.template=t.first),Nc(t=Hc())&&(e.panel=t.first)}},inputs:{displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[Oo]}),t})(),cA=(()=>{class t extends lA{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return t.\u0275fac=function(e){return uA(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,i){if(1&t&&(Bc(i,qx,1),Bc(i,Jx,1)),2&t){let t;Nc(t=Hc())&&(e.optionGroups=t),Nc(t=Hc())&&(e.options=t)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[rl([{provide:Gx,useExisting:t}]),Oo],ngContentSelectors:iA,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(ha(),jo(0,eA,3,4,"ng-template"))},directives:[Qd],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}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),t})();const uA=Qi(cA),dA=new en("mat-autocomplete-scroll-strategy"),hA={provide:dA,deps:[rk],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},pA={provide:mb,useExisting:ut(()=>fA),multi:!0};let mA=(()=>{class t{constructor(t,e,i,n,s,r,o,a,l,c,u){this._element=t,this._overlay=e,this._viewContainerRef=i,this._zone=n,this._changeDetectorRef=s,this._dir=o,this._formField=a,this._document=l,this._viewportRuler=c,this._defaults=u,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=d.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new k,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=nS(()=>this.autocomplete&&this.autocomplete.options?Y(...this.autocomplete.options.map(t=>t.onSelectionChange)):this._zone.onStable.pipe(Tf(1),Rp(()=>this.optionSelections))),this._scrollStrategy=r}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(t){this._autocompleteDisabled=wg(t)}ngAfterViewInit(){const t=this._getWindow();void 0!==t&&this._zone.runOutsideAngular(()=>t.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const t=this._getWindow();void 0!==t&&t.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 Y(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Mm(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Mm(()=>this._overlayAttached)):Sp()).pipe(E(t=>t instanceof Kx?t:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return Y(Cf(this._document,"click"),Cf(this._document,"auxclick"),Cf(this._document,"touchend")).pipe(Mm(t=>{const e=this._isInsideShadowRoot&&t.composedPath?t.composedPath()[0]:t.target,i=this._formField?this._formField._elementRef.nativeElement:null,n=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&e!==this._element.nativeElement&&(!i||!i.contains(e))&&(!n||!n.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||My(t)||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(this.autocomplete._keyManager.activeItemIndex||0)}}_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)}_subscribeToClosingActions(){return Y(this._zone.onStable.pipe(Tf(1)),this.autocomplete.options.changes.pipe(If(()=>this._positionStrategy.reapplyLastPosition()),Xk(0))).pipe(Rp(()=>{const t=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),t!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),Tf(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(){var t;null==this._isInsideShadowRoot&&(this._isInsideShadowRoot=!!Wy(this._element.nativeElement));let e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new SS(this.autocomplete.template,this._viewContainerRef,{id:null===(t=this._formField)||void 0===t?void 0:t.getLabelId()}),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,e.keydownEvents().subscribe(t=>{(27===t.keyCode&&!My(t)||38===t.keyCode&&My(t,"altKey"))&&(this._resetActiveItem(),this._closeKeyEventStream.next(),t.stopPropagation(),t.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&e&&e.updateSize({width:this._getPanelWidth()})})),e&&!e.hasAttached()&&(e.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const i=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&i!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var t;return new zS({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(t=this._defaults)||void 0===t?void 0:t.overlayPanelClass})}_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"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],i=this._aboveClass,n=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:i},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:i}];let s;s="above"===this.position?n:"below"===this.position?e:[...e,...n],t.withPositions(s)}_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(){const t=this.autocomplete;t.autoActiveFirstOption?t._keyManager.setFirstItemActive():t._keyManager.setActiveItem(-1)}_canOpen(){const t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}_getWindow(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}_scrollToOption(t){const e=this.autocomplete,i=tS(t,e.options,e.optionGroups);if(0===t&&1===i)e._setScrollTop(0);else{const i=e.options.toArray()[t];if(i){const t=i._getHostElement(),n=eS(t.offsetTop,t.offsetHeight,e._getScrollTop(),e.panel.nativeElement.offsetHeight);e._setScrollTop(n)}}}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(rk),$o(Kl),$o(mu),$o(Vl),$o(dA),$o(Xg,8),$o(qk,9),$o(qu,8),$o(yS),$o(aA,8))},t.\u0275dir=ie({type:t,inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},features:[me]}),t})(),fA=(()=>{class t extends mA{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return t.\u0275fac=function(e){return gA(e||t)},t.\u0275dir=ie({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&ra("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&&zo("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==e.autocomplete?null:e.autocomplete.id)("aria-haspopup",!e.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[rl([pA]),Oo]}),t})();const gA=Qi(fA);let _A=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:[hA],imports:[[dk,iS,ax,yh],vS,iS,ax]}),t})(),bA=0;class yA{}const vA=lx(yA);let wA=(()=>{class t extends vA{constructor(t,e,i,n,s){super(),this._ngZone=t,this._elementRef=e,this._ariaDescriber=i,this._renderer=n,this._animationMode=s,this._hasContent=!1,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=bA++}get color(){return this._color}set color(t){this._setColor(t),this._color=t}get overlap(){return this._overlap}set overlap(t){this._overlap=wg(t)}get description(){return this._description}set description(t){if(t!==this._description){const e=this._badgeElement;this._updateHostAriaDescription(t,this._description),this._description=t,e&&(t?e.setAttribute("aria-label",t):e.removeAttribute("aria-label"))}}get hidden(){return this._hidden}set hidden(t){this._hidden=wg(t)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}ngOnChanges(t){const e=t.content;if(e){const t=e.currentValue;this._hasContent=null!=t&&`${t}`.trim().length>0,this._updateTextContent()}}ngOnDestroy(){const t=this._badgeElement;t&&(this.description&&this._ariaDescriber.removeDescription(t,this.description),this._renderer.destroyNode&&this._renderer.destroyNode(t))}getBadgeElement(){return this._badgeElement}_updateTextContent(){return this._badgeElement?this._badgeElement.textContent=this._stringifyContent():this._badgeElement=this._createBadgeElement(),this._badgeElement}_createBadgeElement(){const t=this._renderer.createElement("span");return this._clearExistingBadges("mat-badge-content"),t.setAttribute("id",`mat-badge-content-${this._id}`),t.classList.add("mat-badge-content"),t.textContent=this._stringifyContent(),"NoopAnimations"===this._animationMode&&t.classList.add("_mat-animation-noopable"),this.description&&t.setAttribute("aria-label",this.description),this._elementRef.nativeElement.appendChild(t),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{t.classList.add("mat-badge-active")})}):t.classList.add("mat-badge-active"),t}_updateHostAriaDescription(t,e){const i=this._updateTextContent();e&&this._ariaDescriber.removeDescription(i,e),t&&this._ariaDescriber.describe(i,t)}_setColor(t){if(t!==this._color){const e=this._elementRef.nativeElement.classList;this._color&&e.remove(`mat-badge-${this._color}`),t&&e.add(`mat-badge-${t}`)}}_clearExistingBadges(t){const e=this._elementRef.nativeElement;let i=e.children.length;for(;i--;){const n=e.children[i];n.classList.contains(t)&&e.removeChild(n)}}_stringifyContent(){const t=this.content;return null==t?"":`${t}`}}return t.\u0275fac=function(e){return new(e||t)($o(mu),$o(hl),$o(tv),$o(fl),$o(QC,8))},t.\u0275dir=ie({type:t,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(t,e){2&t&&Sa("mat-badge-overlap",e.overlap)("mat-badge-above",e.isAbove())("mat-badge-below",!e.isAbove())("mat-badge-before",!e.isAfter())("mat-badge-after",e.isAfter())("mat-badge-small","small"===e.size)("mat-badge-medium","medium"===e.size)("mat-badge-large","large"===e.size)("mat-badge-hidden",e.hidden||!e._hasContent)("mat-badge-disabled",e.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],position:["matBadgePosition","position"],size:["matBadgeSize","size"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],description:["matBadgeDescription","description"],hidden:["matBadgeHidden","hidden"],content:["matBadge","content"]},features:[Oo,me]}),t})(),CA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[Sv,ax],ax]}),t})();const xA=["mat-button",""],SA=["*"],kA=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .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.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-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.mat-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.mat-button-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.mat-button-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}.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:inline-flex;justify-content:center;align-items:center;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}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n",AA=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class OA{constructor(t){this._elementRef=t}}const EA=cx(lx(ux(OA)));let TA=(()=>{class t extends EA{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 AA)this._hasHostAttributes(n)&&this._getHostElement().classList.add(n);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(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)($o(hl),$o(vv),$o(QC,8))},t.\u0275cmp=Xt({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){if(1&t&&Vc(Vx,1),2&t){let t;Nc(t=Hc())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(zo("disabled",e.disabled||null),Sa("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[Oo],attrs:xA,ngContentSelectors:SA,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&&(ha(),Qo(0,"span",0),pa(1),Xo(),Ko(2,"span",1),Ko(3,"span",2)),2&t&&(dr(2),Sa("mat-button-ripple-round",e.isRoundButton||e.isIconButton),qo("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[Vx],styles:[kA],encapsulation:2,changeDetection:0}),t})(),PA=(()=>{class t extends TA{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)($o(vv),$o(hl),$o(QC,8))},t.\u0275cmp=Xt({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:7,hostBindings:function(t,e){1&t&&ra("click",function(t){return e._haltDisabledEvents(t)}),2&t&&(zo("tabindex",e.disabled?-1:e.tabIndex||0)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString()),Sa("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[Oo],attrs:xA,ngContentSelectors:SA,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&&(ha(),Qo(0,"span",0),pa(1),Xo(),Ko(2,"span",1),Ko(3,"span",2)),2&t&&(dr(2),Sa("mat-button-ripple-round",e.isRoundButton||e.isIconButton),qo("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[Vx],styles:[kA],encapsulation:2,changeDetection:0}),t})(),DA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[Bx,ax],ax]}),t})();const MA=["button"],IA=["*"],RA=new en("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),LA=new en("MatButtonToggleGroup"),FA={provide:mb,useExisting:ut(()=>BA),multi:!0};let NA=0;class VA{constructor(t,e){this.source=t,this.value=e}}let BA=(()=>{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-"+NA++,this.valueChange=new kc,this.change=new kc,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=wg(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=wg(t)}get disabled(){return this._disabled}set disabled(t){this._disabled=wg(t),this._buttonToggles&&this._buttonToggles.forEach(t=>t._markForCheck())}ngOnInit(){this._selectionModel=new mS(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 VA(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().then(()=>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){this._rawValue=t,this._buttonToggles&&(this.multiple&&t?(Array.isArray(t),this._clearSelection(),t.forEach(t=>this._selectValue(t))):(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)($o(Vl),$o(RA,8))},t.\u0275dir=ie({type:t,selectors:[["mat-button-toggle-group"]],contentQueries:function(t,e,i){if(1&t&&Bc(i,GA,1),2&t){let t;Nc(t=Hc())&&(e._buttonToggles=t)}},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(t,e){2&t&&(zo("aria-disabled",e.disabled),Sa("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:[rl([FA,{provide:LA,useExisting:t}])]}),t})();class HA{}const zA=ux(HA);let GA=(()=>{class t extends zA{constructor(t,e,i,n,s,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 kc;const o=Number(s);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=wg(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=wg(t)}ngOnInit(){const t=this.buttonToggleGroup;this._isSingleSelector=t&&!t.multiple,this.id=this.id||"mat-button-toggle-"+NA++,this._isSingleSelector&&(this.name=t.name),t&&(t._isPrechecked(this)?this.checked=!0:t._isSelected(this)!==this._checked&&t._syncButtonToggle(this,this._checked))}ngAfterViewInit(){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 VA(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)($o(LA,8),$o(Vl),$o(hl),$o(vv),Ki("tabindex"),$o(RA,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-button-toggle"]],viewQuery:function(t,e){if(1&t&&Vc(MA,1),2&t){let t;Nc(t=Hc())&&(e._buttonElement=t.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(t,e){1&t&&ra("focus",function(){return e.focus()}),2&t&&(zo("aria-label",null)("aria-labelledby",null)("id",e.id)("name",null),Sa("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:[Oo],ngContentSelectors:IA,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&&(ha(),Qo(0,"button",0,1),ra("click",function(){return e._onButtonClick()}),Qo(2,"span",2),pa(3),Xo(),Xo(),Ko(4,"span",3),Ko(5,"span",4)),2&t){const t=Wo(1);qo("id",e.buttonId)("disabled",e.disabled||null),zo("tabindex",e.disabled?-1:e.tabIndex)("aria-pressed",e.checked)("name",e.name||null)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),dr(5),qo("matRippleTrigger",t)("matRippleDisabled",e.disableRipple||e.disabled)}},directives:[Vx],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{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 500px}.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})(),UA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[ax,Bx],ax]}),t})();const jA=["*",[["mat-card-footer"]]],WA=["*","mat-card-footer"],$A=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],qA=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let YA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ie({type:t,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),t})(),QA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ie({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),t})(),XA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ie({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),t})(),KA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ie({type:t,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),t})(),ZA=(()=>{class t{constructor(t){this._animationMode=t}}return t.\u0275fac=function(e){return new(e||t)($o(QC,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,e){2&t&&Sa("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:WA,decls:2,vars:0,template:function(t,e){1&t&&(ha(jA),pa(0),pa(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:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-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})(),JA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:qA,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(t,e){1&t&&(ha($A),pa(0),Qo(1,"div",0),pa(2,1),Xo(),pa(3,2))},encapsulation:2,changeDetection:0}),t})(),tO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[ax],ax]}),t})();const eO=["input"],iO=function(){return{enterDuration:150}},nO=["*"],sO=new en("mat-checkbox-default-options",{providedIn:"root",factory:rO});function rO(){return{color:"accent",clickAction:"check-indeterminate"}}let oO=0;const aO=rO(),lO={provide:mb,useExisting:ut(()=>hO),multi:!0};class cO{}class uO{constructor(t){this._elementRef=t}}const dO=dx(cx(ux(lx(uO))));let hO=(()=>{class t extends dO{constructor(t,e,i,n,s,r,o){super(t),this._changeDetectorRef=e,this._focusMonitor=i,this._ngZone=n,this._animationMode=r,this._options=o,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++oO,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new kc,this.indeterminateChange=new kc,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||aO,this.color=this.defaultColor=this._options.color||aO.color,this.tabIndex=parseInt(s)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(t){this._required=wg(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{t||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),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=wg(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=wg(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 cO;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(t){var e;const i=null===(e=this._options)||void 0===e?void 0:e.clickAction;t.stopPropagation(),this.disabled||"noop"===i?this.disabled||"noop"!==i||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==i&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(t,e){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(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)($o(hl),$o(Vl),$o(vv),$o(mu),Ki("tabindex"),$o(QC,8),$o(sO,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){if(1&t&&(Vc(eO,1),Vc(Vx,1)),2&t){let t;Nc(t=Hc())&&(e._inputElement=t.first),Nc(t=Hc())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(Ua("id",e.id),zo("tabindex",null),Sa("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",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[rl([lO]),Oo],ngContentSelectors:nO,decls:17,vars:20,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&&(ha(),Qo(0,"label",0,1),Qo(2,"span",2),Qo(3,"input",3,4),ra("change",function(t){return e._onInteractionEvent(t)})("click",function(t){return e._onInputClick(t)}),Xo(),Qo(5,"span",5),Ko(6,"span",6),Xo(),Ko(7,"span",7),Qo(8,"span",8),pi(),Qo(9,"svg",9),Ko(10,"path",10),Xo(),mi(),Ko(11,"span",11),Xo(),Xo(),Qo(12,"span",12,13),ra("cdkObserveContent",function(){return e._onLabelTextChange()}),Qo(14,"span",14),Na(15,"\xa0"),Xo(),pa(16),Xo(),Xo()),2&t){const t=Wo(1),i=Wo(13);zo("for",e.inputId),dr(2),Sa("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),dr(1),qo("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),zo("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked())("aria-describedby",e.ariaDescribedby),dr(2),qo("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",hc(19,iO))}},directives:[Vx,Yy],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{display:inline-block;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}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .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);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;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})(),pO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({}),t})(),mO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[Bx,ax,Qy,pO],ax,pO]}),t})();const fO=["*"],gO=new en("MatChipRemove"),_O=new en("MatChipAvatar"),bO=new en("MatChipTrailingIcon");class yO{constructor(t){this._elementRef=t}}const vO=dx(cx(ux(yO),"primary"),-1);let wO=(()=>{class t extends vO{constructor(t,e,i,n,s,r,o,a){super(t),this._elementRef=t,this._ngZone=e,this._changeDetectorRef=s,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new k,this._onBlur=new k,this.selectionChange=new kc,this.destroyed=new kc,this.removed=new kc,this._addHostClassName(),this._chipRippleTarget=r.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new Fx(this,e,this._chipRippleTarget,i),this._chipRipple.setupTriggerEvents(t),this.rippleConfig=n||{},this._animationsDisabled="NoopAnimations"===o,this.tabIndex=null!=a&&parseInt(a)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(t){const e=wg(t);e!==this._selected&&(this._selected=e,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(t){this._value=t}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(t){this._selectable=wg(t)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(t){this._disabled=wg(t)}get removable(){return this._removable}set removable(t){this._removable=wg(t)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const t=this._elementRef.nativeElement;t.hasAttribute("mat-basic-chip")||"mat-basic-chip"===t.tagName.toLowerCase()?t.classList.add("mat-basic-chip"):t.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(t=!1){return this._selected=!this.selected,this._dispatchSelectionChange(t),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(t){this.disabled?t.preventDefault():t.stopPropagation()}_handleKeydown(t){if(!this.disabled)switch(t.keyCode){case 46:case 8:this.remove(),t.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),t.preventDefault()}}_blur(){this._ngZone.onStable.pipe(Tf(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(t=!1){this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected})}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(mu),$o(Ry),$o(Nx,8),$o(Vl),$o(qu),$o(QC,8),Ki("tabindex"))},t.\u0275dir=ie({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,e,i){if(1&t&&(Bc(i,_O,1),Bc(i,bO,1),Bc(i,gO,1)),2&t){let t;Nc(t=Hc())&&(e.avatar=t.first),Nc(t=Hc())&&(e.trailingIcon=t.first),Nc(t=Hc())&&(e.removeIcon=t.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,e){1&t&&ra("click",function(t){return e._handleClick(t)})("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e.focus()})("blur",function(){return e._blur()}),2&t&&(zo("tabindex",e.disabled?null:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),Sa("mat-chip-selected",e.selected)("mat-chip-with-avatar",e.avatar)("mat-chip-with-trailing-icon",e.trailingIcon||e.removeIcon)("mat-chip-disabled",e.disabled)("_mat-animation-noopable",e._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[Oo]}),t})();const CO=new en("mat-chips-default-options");class xO{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const SO=hx(xO);let kO=0;class AO{constructor(t,e){this.source=t,this.value=e}}let OO=(()=>{class t extends SO{constructor(t,e,i,n,s,r,o){super(r,n,s,o),this._elementRef=t,this._changeDetectorRef=e,this._dir=i,this.ngControl=o,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new k,this._uid="mat-chip-list-"+kO++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(t,e)=>t===e,this._required=!1,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new kc,this.valueChange=new kc,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(t){this._multiple=wg(t),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){this.writeValue(t),this._value=t}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required}set required(t){this._required=wg(t),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=wg(t),this._syncChipsState()}get selectable(){return this._selectable}set selectable(t){this._selectable=wg(t),this.chips&&this.chips.forEach(t=>t.chipListSelectable=this._selectable)}set tabIndex(t){this._userTabIndex=t,this._tabIndex=t}get chipSelectionChanges(){return Y(...this.chips.map(t=>t.selectionChange))}get chipFocusChanges(){return Y(...this.chips.map(t=>t._onFocus))}get chipBlurChanges(){return Y(...this.chips.map(t=>t._onBlur))}get chipRemoveChanges(){return Y(...this.chips.map(t=>t.destroyed))}ngAfterContentInit(){this._keyManager=new rv(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Hp(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),this._keyManager.tabOut.pipe(Hp(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(jp(null),Hp(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new mS(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(t){this._chipInput=t,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",t.id)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}writeValue(t){this.chips&&this._setSelectionByValue(t,!1)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this.stateChanges.next()}onContainerClick(t){this._originatesFromChip(t)||this.focus()}focus(t){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(t),this.stateChanges.next()))}_focusInput(t){this._chipInput&&this._chipInput.focus(t)}_keydown(t){const e=t.target;8===t.keyCode&&this._isInputEmpty(e)?(this._keyManager.setLastItemActive(),t.preventDefault()):e&&e.classList.contains("mat-chip")&&(this._keyManager.onKeydown(t),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const t=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(t)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(t){return t>=0&&tt.deselect()),Array.isArray(t))t.forEach(t=>this._selectValue(t,e)),this._sortValues();else{const i=this._selectValue(t,e);i&&e&&this._keyManager.setActiveItem(i)}}_selectValue(t,e=!0){const i=this.chips.find(e=>null!=e.value&&this._compareWith(e.value,t));return i&&(e?i.selectViaInteraction():i.select(),this._selectionModel.select(i)),i}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(t){this._selectionModel.clear(),this.chips.forEach(e=>{e!==t&&e.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(t=>{t.selected&&this._selectionModel.select(t)}),this.stateChanges.next())}_propagateChanges(t){let e=null;e=Array.isArray(this.selected)?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.change.emit(new AO(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(t=>{t.source.selected?this._selectionModel.select(t.source):this._selectionModel.deselect(t.source),this.multiple||this.chips.forEach(t=>{!this._selectionModel.isSelected(t)&&t.selected&&t.deselect()}),t.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(t=>{let e=this.chips.toArray().indexOf(t.chip);this._isValidIndex(e)&&this._keyManager.updateActiveItem(e),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(t=>{const e=t.chip,i=this.chips.toArray().indexOf(t.chip);this._isValidIndex(i)&&e._hasFocus&&(this._lastDestroyedChipIndex=i)})}_originatesFromChip(t){let e=t.target;for(;e&&e!==this._elementRef.nativeElement;){if(e.classList.contains("mat-chip"))return!0;e=e.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(t=>t._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(t=>{t._chipListDisabled=this._disabled,t._chipListMultiple=this.multiple})}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(Vl),$o(Xg,8),$o(py,8),$o(ky,8),$o(Ox),$o(zb,10))},t.\u0275cmp=Xt({type:t,selectors:[["mat-chip-list"]],contentQueries:function(t,e,i){if(1&t&&Bc(i,wO,1),2&t){let t;Nc(t=Hc())&&(e.chips=t)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,e){1&t&&ra("focus",function(){return e.focus()})("blur",function(){return e._blur()})("keydown",function(t){return e._keydown(t)}),2&t&&(Ua("id",e._uid),zo("tabindex",e.disabled?null:e._tabIndex)("aria-describedby",e._ariaDescribedby||null)("aria-required",e.role?e.required:null)("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-multiselectable",e.multiple)("role",e.role)("aria-orientation",e.ariaOrientation),Sa("mat-chip-list-disabled",e.disabled)("mat-chip-list-invalid",e.errorState)("mat-chip-list-required",e.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[rl([{provide:Ik,useExisting:t}]),Oo],ngContentSelectors:fO,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,e){1&t&&(ha(),Qo(0,"div",0),pa(1),Xo())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),t})();const EO={separatorKeyCodes:[13]};let TO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:[Ox,{provide:CO,useValue:EO}],imports:[[ax]]}),t})();function PO(t,e){}class DO{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 MO={dialogContainer:Ov("dialogContainer",[Mv("void, exit",Dv({opacity:0,transform:"scale(0.7)"})),Mv("enter",Dv({transform:"none"})),Rv("* => enter",Ev("150ms cubic-bezier(0, 0, 0.2, 1)",Dv({transform:"none",opacity:1}))),Rv("* => void, * => exit",Ev("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Dv({opacity:0})))])};let IO=(()=>{class t extends AS{constructor(t,e,i,n,s,r){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=i,this._config=s,this._focusMonitor=r,this._animationStateChanged=new kc,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=t=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=s.ariaLabelledBy||null,this._document=n}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=this._getActiveElement(),i=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==i&&!i.contains(e)||(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._getActiveElement())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,e=this._getActiveElement();return t===e||t.contains(e)}_getActiveElement(){var t;const e=this._document.activeElement;return(null===(t=null==e?void 0:e.shadowRoot)||void 0===t?void 0:t.activeElement)||e}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(uv),$o(Vl),$o(qu,8),$o(DO),$o(vv))},t.\u0275dir=ie({type:t,viewQuery:function(t,e){if(1&t&&Vc(TS,3),2&t){let t;Nc(t=Hc())&&(e._portalOutlet=t.first)}},features:[Oo]}),t})(),RO=(()=>{class t extends IO{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:t,totalTime:e}){"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:e}))}_onAnimationStart({toState:t,totalTime:e}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:e}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:e})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return LO(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&oa("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(Ua("id",e._id),zo("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),ja("@dialogContainer",e._state))},features:[Oo],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&jo(0,PO,0,0,"ng-template",0)},directives:[TS],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;box-sizing:content-box;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:[MO.dialogContainer]}}),t})();const LO=Qi(RO);let FO=0;class NO{constructor(t,e,i="mat-dialog-"+FO++){this._overlayRef=t,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new k,this._afterClosed=new k,this._beforeClosed=new k,this._state=0,e._id=i,e._animationStateChanged.pipe(Mm(t=>"opened"===t.state),Tf(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(Mm(t=>"closed"===t.state),Tf(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),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(Mm(t=>27===t.keyCode&&!this.disableClose&&!My(t))).subscribe(t=>{t.preventDefault(),VO(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():VO(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(Mm(t=>"closing"===t.state),Tf(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}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._overlayRef.updateSize({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}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function VO(t,e,i){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(i)}const BO=new en("MatDialogData"),HO=new en("mat-dialog-default-options"),zO=new en("mat-dialog-scroll-strategy"),GO={provide:zO,deps:[rk],useFactory:function(t){return()=>t.scrollStrategies.block()}};let UO=(()=>{class t{constructor(t,e,i,n,s,r,o,a,l){this._overlay=t,this._injector=e,this._defaultOptions=i,this._parentDialog=n,this._overlayContainer=s,this._dialogRefConstructor=o,this._dialogContainerType=a,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new k,this._afterOpenedAtThisLevel=new k,this._ariaHiddenElements=new Map,this.afterAllClosed=nS(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(jp(void 0))),this._scrollStrategy=r}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,e){(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new DO)).id&&this.getDialogById(e.id);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),n._initializeWithAttachedContent(),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 zS({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=ko.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:DO,useValue:e}]}),n=new xS(this._dialogContainerType,e.viewContainerRef,i,e.componentFactoryResolver);return t.attach(n).instance}_attachDialogContent(t,e,i,n){const s=new this._dialogRefConstructor(i,e,n.id);if(t instanceof jl)e.attachTemplatePortal(new SS(t,null,{$implicit:n.data,dialogRef:s}));else{const i=this._createInjector(n,s,e),r=e.attachComponentPortal(new xS(t,n.viewContainerRef,i));s.componentInstance=r.instance}return s.updateSize(n.width,n.height).updatePosition(n.position),s}_createInjector(t,e,i){const n=t&&t.viewContainerRef&&t.viewContainerRef.injector,s=[{provide:this._dialogContainerType,useValue:i},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return!t.direction||n&&n.get(Xg,null)||s.push({provide:Xg,useValue:{value:t.direction,change:Sp()}}),ko.create({parent:n||this._injector,providers:s})}_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._getAfterAllClosed().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)($o(rk),$o(ko),$o(void 0),$o(void 0),$o(YS),$o(void 0),$o(on),$o(on),$o(en))},t.\u0275dir=ie({type:t}),t})(),jO=(()=>{class t extends UO{constructor(t,e,i,n,s,r,o){super(t,e,n,r,o,s,NO,RO,BO)}}return t.\u0275fac=function(e){return new(e||t)(wn(rk),wn(ko),wn(ld,8),wn(HO,8),wn(zO),wn(t,12),wn(YS))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})(),WO=0,$O=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this._elementRef=e,this._dialog=i,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=XO(this._elementRef,this._dialog.openDialogs))}ngOnChanges(t){const e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)}_onButtonClick(t){VO(this.dialogRef,0===t.screenX&&0===t.screenY?"keyboard":"mouse",this.dialogResult)}}return t.\u0275fac=function(e){return new(e||t)($o(NO,8),$o(hl),$o(jO))},t.\u0275dir=ie({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,e){1&t&&ra("click",function(t){return e._onButtonClick(t)}),2&t&&zo("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:[me]}),t})(),qO=(()=>{class t{constructor(t,e,i){this._dialogRef=t,this._elementRef=e,this._dialog=i,this.id="mat-dialog-title-"+WO++}ngOnInit(){this._dialogRef||(this._dialogRef=XO(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)($o(NO,8),$o(hl),$o(jO))},t.\u0275dir=ie({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&Ua("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),YO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ie({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),QO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ie({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t})();function XO(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 KO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:[jO,GO],imports:[[dk,PS,ax],ax]}),t})();const ZO=Gy({passive:!0});let JO=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return Cp;const e=Ag(t),i=this._monitoredElements.get(e);if(i)return i.subject;const n=new k,s="cdk-text-field-autofilled",r=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",r,ZO),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:n,unlisten:()=>{e.removeEventListener("animationstart",r,ZO)}}),n}stopMonitoring(t){const e=Ag(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)(wn(Ry),wn(mu))},t.\u0275prov=_t({factory:function(){return new t(wn(Ry),wn(mu))},token:t,providedIn:"root"}),t})(),tE=(()=>{class t{constructor(t,e,i,n){this._elementRef=t,this._platform=e,this._ngZone=i,this._destroyed=new k,this._enabled=!0,this._previousMinRows=-1,this._document=n,this._textareaElement=this._elementRef.nativeElement,this._measuringClass=e.FIREFOX?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring"}get minRows(){return this._minRows}set minRows(t){this._minRows=Cg(t),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(t){this._maxRows=Cg(t),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(t){t=wg(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(()=>{Cf(this._getWindow(),"resize").pipe(aS(16),Hp(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(this._measuringClass),e.placeholder="",e.style.height=e.scrollHeight-4+"px",e.classList.remove(this._measuringClass),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(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(t){const{selectionStart:e,selectionEnd:i}=t,n=this._getDocument();this._destroyed.isStopped||n.activeElement!==t||t.setSelectionRange(e,i)}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(Ry),$o(mu),$o(qu,8))},t.\u0275dir=ie({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(t,e){1&t&&ra("input",function(){return e._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"]},exportAs:["cdkTextareaAutosize"]}),t})(),eE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[Ly]]}),t})(),iE=(()=>{class t extends tE{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 nE(e||t)},t.\u0275dir=ie({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:[Oo]}),t})();const nE=Qi(iE),sE=new en("MAT_INPUT_VALUE_ACCESSOR"),rE=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let oE=0;class aE{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const lE=hx(aE);let cE=(()=>{class t extends lE{constructor(t,e,i,n,s,r,o,a,l,c){super(r,n,s,i),this._elementRef=t,this._platform=e,this.ngControl=i,this._autofillMonitor=a,this._formField=c,this._uid="mat-input-"+oE++,this.focused=!1,this.stateChanges=new k,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=>Ny().has(t));const u=this._elementRef.nativeElement,d=u.nodeName.toLowerCase();this._inputValueAccessor=o||u,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"===d,this._isTextarea="textarea"===d,this._isNativeSelect&&(this.controlType=u.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=wg(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=wg(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&Ny().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=wg(t)}ngAfterViewInit(){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(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,e;const i=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(i!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=i,i?t.setAttribute("placeholder",i):t.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){rE.indexOf(this._type)}_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){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(Ry),$o(zb,10),$o(py,8),$o(ky,8),$o(Ox),$o(sE,10),$o(JO),$o(mu),$o(qk,8))},t.\u0275dir=ie({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&ra("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(Ua("disabled",e.disabled)("required",e.required),zo("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.errorState&&!e.empty)("aria-required",e.required),Sa("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[rl([{provide:Ik,useExisting:t}]),Oo,me]}),t})(),uE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:[Ox],imports:[[eE,Qk,ax],eE,Qk]}),t})();const dE=["mat-calendar-body",""];function hE(t,e){if(1&t&&(Qo(0,"tr",2),Qo(1,"td",3),Na(2),Xo(),Xo()),2&t){const t=ua();dr(1),xa("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),zo("colspan",t.numCols),dr(1),Ba(" ",t.label," ")}}function pE(t,e){if(1&t&&(Qo(0,"td",7),Na(1),Xo()),2&t){const t=ua(2);xa("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),zo("colspan",t._firstRowOffset),dr(1),Ba(" ",t._firstRowOffset>=t.labelMinRequiredCells?t.label:""," ")}}function mE(t,e){if(1&t){const t=ea();Qo(0,"td",8),ra("click",function(i){Be(t);const n=e.$implicit;return ua(2)._cellClicked(n,i)}),Qo(1,"div",9),Na(2),Xo(),Ko(3,"div",10),Xo()}if(2&t){const t=e.$implicit,i=e.index,n=ua().index,s=ua();xa("width",s._cellWidth)("padding-top",s._cellPadding)("padding-bottom",s._cellPadding),Sa("mat-calendar-body-disabled",!t.enabled)("mat-calendar-body-active",s._isActiveCell(n,i))("mat-calendar-body-range-start",s._isRangeStart(t.compareValue))("mat-calendar-body-range-end",s._isRangeEnd(t.compareValue))("mat-calendar-body-in-range",s._isInRange(t.compareValue))("mat-calendar-body-comparison-bridge-start",s._isComparisonBridgeStart(t.compareValue,n,i))("mat-calendar-body-comparison-bridge-end",s._isComparisonBridgeEnd(t.compareValue,n,i))("mat-calendar-body-comparison-start",s._isComparisonStart(t.compareValue))("mat-calendar-body-comparison-end",s._isComparisonEnd(t.compareValue))("mat-calendar-body-in-comparison-range",s._isInComparisonRange(t.compareValue))("mat-calendar-body-preview-start",s._isPreviewStart(t.compareValue))("mat-calendar-body-preview-end",s._isPreviewEnd(t.compareValue))("mat-calendar-body-in-preview",s._isInPreview(t.compareValue)),qo("ngClass",t.cssClasses)("tabindex",s._isActiveCell(n,i)?0:-1),zo("data-mat-row",n)("data-mat-col",i)("aria-label",t.ariaLabel)("aria-disabled",!t.enabled||null)("aria-selected",s._isSelected(t.compareValue)),dr(1),Sa("mat-calendar-body-selected",s._isSelected(t.compareValue))("mat-calendar-body-comparison-identical",s._isComparisonIdentical(t.compareValue))("mat-calendar-body-today",s.todayValue===t.compareValue),dr(1),Ba(" ",t.displayValue," ")}}function fE(t,e){if(1&t&&(Qo(0,"tr",4),jo(1,pE,2,6,"td",5),jo(2,mE,4,46,"td",6),Xo()),2&t){const t=e.$implicit,i=e.index,n=ua();dr(1),qo("ngIf",0===i&&n._firstRowOffset),dr(1),qo("ngForOf",t)}}function gE(t,e){if(1&t&&(Qo(0,"th",5),Na(1),Xo()),2&t){const t=e.$implicit;zo("aria-label",t.long),dr(1),Va(t.narrow)}}const _E=["*"];function bE(t,e){}function yE(t,e){if(1&t){const t=ea();Qo(0,"mat-month-view",5),ra("activeDateChange",function(e){return Be(t),ua().activeDate=e})("_userSelection",function(e){return Be(t),ua()._dateSelected(e)}),Xo()}if(2&t){const t=ua();qo("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)("comparisonStart",t.comparisonStart)("comparisonEnd",t.comparisonEnd)}}function vE(t,e){if(1&t){const t=ea();Qo(0,"mat-year-view",6),ra("activeDateChange",function(e){return Be(t),ua().activeDate=e})("monthSelected",function(e){return Be(t),ua()._monthSelectedInYearView(e)})("selectedChange",function(e){return Be(t),ua()._goToDateInView(e,"month")}),Xo()}if(2&t){const t=ua();qo("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}function wE(t,e){if(1&t){const t=ea();Qo(0,"mat-multi-year-view",7),ra("activeDateChange",function(e){return Be(t),ua().activeDate=e})("yearSelected",function(e){return Be(t),ua()._yearSelectedInMultiYearView(e)})("selectedChange",function(e){return Be(t),ua()._goToDateInView(e,"year")}),Xo()}if(2&t){const t=ua();qo("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}function CE(t,e){}const xE=["button"];function SE(t,e){1&t&&(pi(),Qo(0,"svg",3),Ko(1,"path",4),Xo())}const kE=[[["","matDatepickerToggleIcon",""]]],AE=["[matDatepickerToggleIcon]"];let OE=(()=>{class t{constructor(){this.changes=new k,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 20 years",this.nextMultiYearLabel="Next 20 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(t,e){return`${t} \u2013 ${e}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({factory:function(){return new t},token:t,providedIn:"root"}),t})();class EE{constructor(t,e,i,n,s={},r=t,o){this.value=t,this.displayValue=e,this.ariaLabel=i,this.enabled=n,this.cssClasses=s,this.compareValue=r,this.rawValue=o}}let TE=(()=>{class t{constructor(t,e){this._elementRef=t,this._ngZone=e,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new kc,this.previewChange=new kc,this._enterHandler=t=>{if(this._skipNextFocus&&"focus"===t.type)this._skipNextFocus=!1;else if(t.target&&this.isRange){const e=this._getCellFromElement(t.target);e&&this._ngZone.run(()=>this.previewChange.emit({value:e.enabled?e:null,event:t}))}},this._leaveHandler=t=>{null!==this.previewEnd&&this.isRange&&t.target&&PE(t.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:t}))},e.runOutsideAngular(()=>{const e=t.nativeElement;e.addEventListener("mouseenter",this._enterHandler,!0),e.addEventListener("focus",this._enterHandler,!0),e.addEventListener("mouseleave",this._leaveHandler,!0),e.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(t,e){t.enabled&&this.selectedValueChange.emit({value:t.value,event:e})}_isSelected(t){return this.startValue===t||this.endValue===t}ngOnChanges(t){const e=t.numCols,{rows:i,numCols:n}=this;(t.rows||e)&&(this._firstRowOffset=i&&i.length&&i[0].length?n-i[0].length:0),(t.cellAspectRatio||e||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/n+"%"),!e&&this._cellWidth||(this._cellWidth=100/n+"%")}ngOnDestroy(){const t=this._elementRef.nativeElement;t.removeEventListener("mouseenter",this._enterHandler,!0),t.removeEventListener("focus",this._enterHandler,!0),t.removeEventListener("mouseleave",this._leaveHandler,!0),t.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(t,e){let i=t*this.numCols+e;return t&&(i-=this._firstRowOffset),i==this.activeCell}_focusActiveCell(t=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Tf(1)).subscribe(()=>{const e=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");e&&(t||(this._skipNextFocus=!0),e.focus())})})}_isRangeStart(t){return DE(t,this.startValue,this.endValue)}_isRangeEnd(t){return ME(t,this.startValue,this.endValue)}_isInRange(t){return IE(t,this.startValue,this.endValue,this.isRange)}_isComparisonStart(t){return DE(t,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(t,e,i){if(!this._isComparisonStart(t)||this._isRangeStart(t)||!this._isInRange(t))return!1;let n=this.rows[e][i-1];if(!n){const t=this.rows[e-1];n=t&&t[t.length-1]}return n&&!this._isRangeEnd(n.compareValue)}_isComparisonBridgeEnd(t,e,i){if(!this._isComparisonEnd(t)||this._isRangeEnd(t)||!this._isInRange(t))return!1;let n=this.rows[e][i+1];if(!n){const t=this.rows[e+1];n=t&&t[0]}return n&&!this._isRangeStart(n.compareValue)}_isComparisonEnd(t){return ME(t,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(t){return IE(t,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(t){return this.comparisonStart===this.comparisonEnd&&t===this.comparisonStart}_isPreviewStart(t){return DE(t,this.previewStart,this.previewEnd)}_isPreviewEnd(t){return ME(t,this.previewStart,this.previewEnd)}_isInPreview(t){return IE(t,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(t){let e;if(PE(t)?e=t:PE(t.parentNode)&&(e=t.parentNode),e){const t=e.getAttribute("data-mat-row"),i=e.getAttribute("data-mat-col");if(t&&i)return this.rows[parseInt(t)][parseInt(i)]}return null}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(mu))},t.\u0275cmp=Xt({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:["role","grid","aria-readonly","true",1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",previewStart:"previewStart",previewEnd:"previewEnd",label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[me],attrs:dE,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(t,e){1&t&&(jo(0,hE,3,6,"tr",0),jo(1,fE,3,2,"tr",1)),2&t&&(qo("ngIf",e._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n'],encapsulation:2,changeDetection:0}),t})();function PE(t){return"TD"===t.nodeName}function DE(t,e,i){return null!==i&&e!==i&&t=e&&t===i}function IE(t,e,i,n){return n&&null!==e&&null!==i&&e!==i&&t>=e&&t<=i}class RE{constructor(t,e){this.start=t,this.end=e}}let LE=(()=>{class t{constructor(t,e){this.selection=t,this._adapter=e,this._selectionChanged=new k,this.selectionChanged=this._selectionChanged,this.selection=t}updateSelection(t,e){this.selection=t,this._selectionChanged.next({selection:t,source:e})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(t){return this._adapter.isDateInstance(t)&&this._adapter.isValid(t)}clone(){return null}}return t.\u0275fac=function(e){return new(e||t)(wn(void 0),wn(fx))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})(),FE=(()=>{class t extends LE{constructor(t){super(null,t)}add(t){super.updateSelection(t,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const e=new t(this._adapter);return e.updateSelection(this.selection,this),e}}return t.\u0275fac=function(e){return new(e||t)(wn(fx))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();const NE={provide:LE,deps:[[new An,new On,LE],fx],useFactory:function(t,e){return t||new FE(e)}},VE=new en("MAT_DATE_RANGE_SELECTION_STRATEGY");let BE=(()=>{class t{constructor(t,e,i,n,s){this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=i,this._dir=n,this._rangeStrategy=s,this._rerenderSubscription=d.EMPTY,this.selectedChange=new kc,this._userSelection=new kc,this.activeDateChange=new kc,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){const e=this._activeDate,i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._hasSameMonthAndYear(e,this._activeDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof RE?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(jp(null)).subscribe(()=>this._init())}ngOnChanges(t){const e=t.comparisonStart||t.comparisonEnd;e&&!e.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(t){const e=t.value,i=this._dateAdapter.getYear(this.activeDate),n=this._dateAdapter.getMonth(this.activeDate),s=this._dateAdapter.createDate(i,n,e);let r,o;this._selected instanceof RE?(r=this._getDateInCurrentMonth(this._selected.start),o=this._getDateInCurrentMonth(this._selected.end)):r=o=this._getDateInCurrentMonth(this._selected),r===e&&o===e||this.selectedChange.emit(s),this._userSelection.emit({value:s,event:t.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:t}),t.preventDefault()));case 27:return void(null==this._previewEnd||My(t)||(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:t}),t.preventDefault(),t.stopPropagation()));default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(t){this._matCalendarBody._focusActiveCell(t)}_previewChanged({event:t,value:e}){if(this._rangeStrategy){const i=this._rangeStrategy.createPreview(e?e.rawValue:null,this.selected,t);this._previewStart=this._getCellCompareValue(i.start),this._previewEnd=this._getCellCompareValue(i.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const t=this._dateAdapter.getFirstDayOfWeek(),e=this._dateAdapter.getDayOfWeekNames("narrow");let i=this._dateAdapter.getDayOfWeekNames("long").map((t,i)=>({long:t,narrow:e[i]}));this._weekdays=i.slice(t).concat(i.slice(0,t))}_createWeekCells(){const t=this._dateAdapter.getNumDaysInMonth(this.activeDate),e=this._dateAdapter.getDateNames();this._weeks=[[]];for(let i=0,n=this._firstWeekOffset;i=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(t))}_getDateInCurrentMonth(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}_hasSameMonthAndYear(t,e){return!(!t||!e||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(e)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(e))}_getCellCompareValue(t){if(t){const e=this._dateAdapter.getYear(t),i=this._dateAdapter.getMonth(t),n=this._dateAdapter.getDate(t);return new Date(e,i,n).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(t){t instanceof RE?(this._rangeStart=this._getCellCompareValue(t.start),this._rangeEnd=this._getCellCompareValue(t.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(t),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}}return t.\u0275fac=function(e){return new(e||t)($o(Vl),$o(gx,8),$o(fx,8),$o(Xg,8),$o(VE,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-month-view"]],viewQuery:function(t,e){if(1&t&&Vc(TE,1),2&t){let t;Nc(t=Hc())&&(e._matCalendarBody=t.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[me],decls:7,vars:13,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["colspan","7","aria-hidden","true",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keydown"],["scope","col"]],template:function(t,e){1&t&&(Qo(0,"table",0),Qo(1,"thead",1),Qo(2,"tr"),jo(3,gE,2,2,"th",2),Xo(),Qo(4,"tr"),Ko(5,"th",3),Xo(),Xo(),Qo(6,"tbody",4),ra("selectedValueChange",function(t){return e._dateSelected(t)})("previewChange",function(t){return e._previewChanged(t)})("keydown",function(t){return e._handleCalendarBodyKeydown(t)}),Xo(),Xo()),2&t&&(dr(3),qo("ngForOf",e._weekdays),dr(3),qo("label",e._monthLabel)("rows",e._weeks)("todayValue",e._todayDate)("startValue",e._rangeStart)("endValue",e._rangeEnd)("comparisonStart",e._comparisonRangeStart)("comparisonEnd",e._comparisonRangeEnd)("previewStart",e._previewStart)("previewEnd",e._previewEnd)("isRange",e._isRange)("labelMinRequiredCells",3)("activeCell",e._dateAdapter.getDate(e.activeDate)-1))},directives:[Kd,TE],encapsulation:2,changeDetection:0}),t})(),HE=(()=>{class t{constructor(t,e,i){this._changeDetectorRef=t,this._dateAdapter=e,this._dir=i,this._rerenderSubscription=d.EMPTY,this.selectedChange=new kc,this.yearSelected=new kc,this.activeDateChange=new kc,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),zE(this._dateAdapter,e,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof RE?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedYear(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(jp(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const t=this._dateAdapter.getYear(this._activeDate)-GE(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let e=0,i=[];e<24;e++)i.push(t+e),4==i.length&&(this._years.push(i.map(t=>this._createCellForYear(t))),i=[]);this._changeDetectorRef.markForCheck()}_yearSelected(t){const e=t.value;this.yearSelected.emit(this._dateAdapter.createDate(e,0,1));let i=this._dateAdapter.getMonth(this.activeDate),n=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,i,1));this.selectedChange.emit(this._dateAdapter.createDate(e,i,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-GE(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-GE(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?240:24);break;case 13:case 32:this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:t});break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_getActiveCell(){return GE(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(t){const e=this._dateAdapter.createDate(t,0,1),i=this._dateAdapter.getYearName(e),n=this.dateClass?this.dateClass(e,"multi-year"):void 0;return new EE(t,i,i,this._shouldEnableYear(t),n)}_shouldEnableYear(t){if(null==t||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&t{class t{constructor(t,e,i,n){this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=i,this._dir=n,this._rerenderSubscription=d.EMPTY,this.selectedChange=new kc,this.monthSelected=new kc,this.activeDateChange=new kc,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._dateAdapter.getYear(e)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof RE?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedMonth(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(jp(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(t){const e=t.value,i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1);this.monthSelected.emit(i);const n=this._dateAdapter.getNumDaysInMonth(i);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,i?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,i?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10:1);break;case 13:case 32:this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:t});break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let t=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(e=>e.map(e=>this._createCellForMonth(e,t[e]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(t){return t&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(t):null}_createCellForMonth(t,e){const i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),n=this._dateAdapter.format(i,this._dateFormats.display.monthYearA11yLabel),s=this.dateClass?this.dateClass(i,"year"):void 0;return new EE(t,e.toLocaleUpperCase(),n,this._shouldEnableMonth(t),s)}_shouldEnableMonth(t){const e=this._dateAdapter.getYear(this.activeDate);if(null==t||this._isYearAndMonthAfterMaxDate(e,t)||this._isYearAndMonthBeforeMinDate(e,t))return!1;if(!this.dateFilter)return!0;for(let i=this._dateAdapter.createDate(e,t,1);this._dateAdapter.getMonth(i)==t;i=this._dateAdapter.addCalendarDays(i,1))if(this.dateFilter(i))return!0;return!1}_isYearAndMonthAfterMaxDate(t,e){if(this.maxDate){const i=this._dateAdapter.getYear(this.maxDate),n=this._dateAdapter.getMonth(this.maxDate);return t>i||t===i&&e>n}return!1}_isYearAndMonthBeforeMinDate(t,e){if(this.minDate){const i=this._dateAdapter.getYear(this.minDate),n=this._dateAdapter.getMonth(this.minDate);return t{class t{constructor(t,e,i,n,s){this._intl=t,this.calendar=e,this._dateAdapter=i,this._dateFormats=n,this._buttonDescriptionId="mat-calendar-button-"+WE++,this.calendar.stateChanges.subscribe(()=>s.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const t=this._dateAdapter.getYear(this.calendar.activeDate)-GE(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),e=t+24-1,i=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1)),n=this._dateAdapter.getYearName(this._dateAdapter.createDate(e,0,1));return this._intl.formatYearRange(i,n)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(t,e){return"month"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e)&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(e):"year"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e):zE(this._dateAdapter,t,e,this.calendar.minDate,this.calendar.maxDate)}}return t.\u0275fac=function(e){return new(e||t)($o(OE),$o(ut(()=>qE)),$o(fx,8),$o(gx,8),$o(Vl))},t.\u0275cmp=Xt({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:_E,decls:10,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],[1,"mat-calendar-arrow"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(t,e){1&t&&(ha(),Qo(0,"div",0),Qo(1,"div",1),Qo(2,"button",2),ra("click",function(){return e.currentPeriodClicked()}),Qo(3,"span"),Na(4),Xo(),Ko(5,"div",3),Xo(),Ko(6,"div",4),pa(7),Qo(8,"button",5),ra("click",function(){return e.previousClicked()}),Xo(),Qo(9,"button",6),ra("click",function(){return e.nextClicked()}),Xo(),Xo(),Xo()),2&t&&(dr(2),zo("aria-label",e.periodButtonLabel)("aria-describedby",e._buttonDescriptionId),dr(1),zo("id",e._buttonDescriptionId),dr(1),Va(e.periodButtonText),dr(1),Sa("mat-calendar-invert","month"!==e.calendar.currentView),dr(3),qo("disabled",!e.previousEnabled()),zo("aria-label",e.prevButtonLabel),dr(1),qo("disabled",!e.nextEnabled()),zo("aria-label",e.nextButtonLabel))},directives:[TA,fv],encapsulation:2,changeDetection:0}),t})(),qE=(()=>{class t{constructor(t,e,i,n){this._dateAdapter=e,this._dateFormats=i,this._changeDetectorRef=n,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new kc,this.yearSelected=new kc,this.monthSelected=new kc,this.viewChanged=new kc(!0),this._userSelection=new kc,this.stateChanges=new k,this._intlChanges=t.changes.subscribe(()=>{n.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get selected(){return this._selected}set selected(t){this._selected=t instanceof RE?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get activeDate(){return this._clampedActiveDate}set activeDate(t){this._clampedActiveDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(t){const e=this._currentView!==t?t:null;this._currentView=t,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),e&&this.viewChanged.emit(e)}ngAfterContentInit(){this._calendarHeaderPortal=new xS(this.headerComponent||$E),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(t){const e=t.minDate||t.maxDate||t.dateFilter;if(e&&!e.firstChange){const t=this._getCurrentViewComponent();t&&(this._changeDetectorRef.detectChanges(),t._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){const t=this.currentView;let e;e="month"===t?this.monthView:"year"===t?this.yearView:this.multiYearView,e._init()}_dateSelected(t){const e=t.value;(this.selected instanceof RE||e&&!this._dateAdapter.sameDate(e,this.selected))&&this.selectedChange.emit(e),this._userSelection.emit(t)}_yearSelectedInMultiYearView(t){this.yearSelected.emit(t)}_monthSelectedInYearView(t){this.monthSelected.emit(t)}_goToDateInView(t,e){this.activeDate=t,this.currentView=e}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return t.\u0275fac=function(e){return new(e||t)($o(OE),$o(fx,8),$o(gx,8),$o(Vl))},t.\u0275cmp=Xt({type:t,selectors:[["mat-calendar"]],viewQuery:function(t,e){if(1&t&&(Vc(BE,1),Vc(jE,1),Vc(HE,1)),2&t){let t;Nc(t=Hc())&&(e.monthView=t.first),Nc(t=Hc())&&(e.yearView=t.first),Nc(t=Hc())&&(e.multiYearView=t.first)}},hostAttrs:[1,"mat-calendar"],inputs:{startView:"startView",startAt:"startAt",selected:"selected",minDate:"minDate",maxDate:"maxDate",headerComponent:"headerComponent",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[rl([NE]),me],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(t,e){1&t&&(jo(0,bE,0,0,"ng-template",0),Qo(1,"div",1),jo(2,yE,1,8,"mat-month-view",2),jo(3,vE,1,6,"mat-year-view",3),jo(4,wE,1,6,"mat-multi-year-view",4),Xo()),2&t&&(qo("cdkPortalOutlet",e._calendarHeaderPortal),dr(1),qo("ngSwitch",e.currentView),dr(1),qo("ngSwitchCase","month"),dr(1),qo("ngSwitchCase","year"),dr(1),qo("ngSwitchCase","multi-year"))},directives:[TS,Cv,nh,sh,BE,jE,HE],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(33% / 7 - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}\n'],encapsulation:2,changeDetection:0}),t})();const YE={transformPanel:Ov("transformPanel",[Mv("void",Dv({opacity:0,transform:"scale(1, 0.8)"})),Rv("void => enter",Ev("120ms cubic-bezier(0, 0, 0.2, 1)",Dv({opacity:1,transform:"scale(1, 1)"}))),Rv("* => void",Ev("100ms linear",Dv({opacity:0})))]),fadeInCalendar:Ov("fadeInCalendar",[Mv("void",Dv({opacity:0})),Mv("enter",Dv({opacity:1})),Rv("void => *",Ev("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let QE=0;const XE=new en("mat-datepicker-scroll-strategy"),KE={provide:XE,deps:[rk],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class ZE{constructor(t){this._elementRef=t}}const JE=cx(ZE);let tT=(()=>{class t extends JE{constructor(t,e,i,n,s,r){super(t),this._changeDetectorRef=e,this._globalModel=i,this._dateAdapter=n,this._rangeSelectionStrategy=s,this._subscriptions=new d,this._animationState="enter",this._animationDone=new k,this._actionsPortal=null,this._closeButtonText=(null==r?void 0:r.closeCalendarLabel)||"Close calendar"}ngOnInit(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(t){const e=this._model.selection,i=t.value,n=e instanceof RE;if(n&&this._rangeSelectionStrategy){const n=this._rangeSelectionStrategy.selectionFinished(i,e,t.event);this._model.updateSelection(n,this)}else!i||!n&&this._dateAdapter.sameDate(i,e)||this._model.add(i);this._model&&!this._model.isComplete()||this._actionsPortal||this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(Vl),$o(LE),$o(fx),$o(VE,8),$o(OE))},t.\u0275cmp=Xt({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(t,e){if(1&t&&Vc(qE,1),2&t){let t;Nc(t=Hc())&&(e._calendar=t.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,e){1&t&&oa("@transformPanel.done",function(){return e._animationDone.next()}),2&t&&(ja("@transformPanel",e._animationState),Sa("mat-datepicker-content-touch",e.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[Oo],decls:5,vars:20,consts:[["cdkTrapFocus","",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"mat-calendar",1),ra("yearSelected",function(t){return e.datepicker._selectYear(t)})("monthSelected",function(t){return e.datepicker._selectMonth(t)})("viewChanged",function(t){return e.datepicker._viewChanged(t)})("_userSelection",function(t){return e._handleUserSelection(t)}),Xo(),jo(2,CE,0,0,"ng-template",2),Qo(3,"button",3),ra("focus",function(){return e._closeButtonFocused=!0})("blur",function(){return e._closeButtonFocused=!1})("click",function(){return e.datepicker.close()}),Na(4),Xo(),Xo()),2&t&&(Sa("mat-datepicker-content-container-with-actions",e._actionsPortal),dr(1),qo("id",e.datepicker.id)("ngClass",e.datepicker.panelClass)("startAt",e.datepicker.startAt)("startView",e.datepicker.startView)("minDate",e.datepicker._getMinDate())("maxDate",e.datepicker._getMaxDate())("dateFilter",e.datepicker._getDateFilter())("headerComponent",e.datepicker.calendarHeaderComponent)("selected",e._getSelected())("dateClass",e.datepicker.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("@fadeInCalendar","enter"),dr(1),qo("cdkPortalOutlet",e._actionsPortal),dr(1),Sa("cdk-visually-hidden",!e._closeButtonFocused),qo("color",e.color||"primary"),dr(1),Va(e._closeButtonText))},directives:[dv,qE,Qd,TS,TA],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;overflow:auto;margin:-24px}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],encapsulation:2,data:{animation:[YE.transformPanel,YE.fadeInCalendar]},changeDetection:0}),t})(),eT=(()=>{class t{constructor(t,e,i,n,s,r,o,a,l){this._dialog=t,this._overlay=e,this._ngZone=i,this._viewContainerRef=n,this._dateAdapter=r,this._dir=o,this._document=a,this._model=l,this._inputStateChanges=d.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new kc,this.monthSelected=new kc,this.viewChanged=new kc(!0),this.openedStream=new kc,this.closedStream=new kc,this._opened=!1,this.id="mat-datepicker-"+QE++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new k,this._scrollStrategy=s}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(t){this._color=t}get touchUi(){return this._touchUi}set touchUi(t){this._touchUi=wg(t)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(t){const e=wg(t);e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(t){this._restoreFocus=wg(t)}get panelClass(){return this._panelClass}set panelClass(t){this._panelClass=Og(t)}get opened(){return this._opened}set opened(t){wg(t)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(t){const e=t.xPosition||t.yPosition;e&&!e.firstChange&&this._popupRef&&(this._setConnectedPositions(this._popupRef.getConfig().positionStrategy),this.opened&&this._popupRef.updatePosition()),this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyPopup(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(t){this._model.add(t)}_selectYear(t){this.yearSelected.emit(t)}_selectMonth(t){this.monthSelected.emit(t)}_viewChanged(t){this.viewChanged.emit(t)}registerInput(t){return this._inputStateChanges.unsubscribe(),this.datepickerInput=t,this._inputStateChanges=t.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(t){this._actionsPortal=t}removeActions(t){t===this._actionsPortal&&(this._actionsPortal=null)}open(){this._opened||this.disabled||(this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this.touchUi?this._openAsDialog():this._openAsPopup(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._popupComponentRef&&this._popupRef){const t=this._popupComponentRef.instance;t._startExitAnimation(),t._animationDone.pipe(Tf(1)).subscribe(()=>this._destroyPopup())}this._dialogRef&&(this._dialogRef.close(),this._dialogRef=null);const t=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(t)):t()}_applyPendingSelection(){var t,e;const i=(null===(t=this._popupComponentRef)||void 0===t?void 0:t.instance)||(null===(e=this._dialogRef)||void 0===e?void 0:e.componentInstance);null==i||i._applyPendingSelection()}_openAsDialog(){this._dialogRef&&this._dialogRef.close(),this._dialogRef=this._dialog.open(tT,{direction:this._dir?this._dir.value:"ltr",viewContainerRef:this._viewContainerRef,panelClass:"mat-datepicker-dialog",hasBackdrop:!0,disableClose:!1,backdropClass:["cdk-overlay-dark-backdrop",this._backdropHarnessClass],width:"",height:"",minWidth:"",minHeight:"",maxWidth:"80vw",maxHeight:"",position:{},autoFocus:!1,restoreFocus:!1}),this._dialogRef.afterClosed().subscribe(()=>this.close()),this._forwardContentValues(this._dialogRef.componentInstance)}_openAsPopup(){const t=new xS(tT,this._viewContainerRef);this._destroyPopup(),this._createPopup(),this._popupComponentRef=this._popupRef.attach(t),this._forwardContentValues(this._popupComponentRef.instance),this._ngZone.onStable.pipe(Tf(1)).subscribe(()=>{this._popupRef.updatePosition()})}_forwardContentValues(t){t.datepicker=this,t.color=this.color,t._actionsPortal=this._actionsPortal}_createPopup(){const t=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition(),e=new zS({positionStrategy:this._setConnectedPositions(t),hasBackdrop:!0,backdropClass:["mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:this._scrollStrategy(),panelClass:"mat-datepicker-popup"});this._popupRef=this._overlay.create(e),this._popupRef.overlayElement.setAttribute("role","dialog"),Y(this._popupRef.backdropClick(),this._popupRef.detachments(),this._popupRef.keydownEvents().pipe(Mm(t=>27===t.keyCode&&!My(t)||this.datepickerInput&&My(t,"altKey")&&38===t.keyCode))).subscribe(t=>{t&&t.preventDefault(),this.close()})}_destroyPopup(){this._popupRef&&(this._popupRef.dispose(),this._popupRef=this._popupComponentRef=null)}_setConnectedPositions(t){const e="end"===this.xPosition?"end":"start",i="start"===e?"end":"start",n="above"===this.yPosition?"bottom":"top",s="top"===n?"bottom":"top";return t.withPositions([{originX:e,originY:s,overlayX:e,overlayY:n},{originX:e,originY:n,overlayX:e,overlayY:s},{originX:i,originY:s,overlayX:i,overlayY:n},{originX:i,originY:n,overlayX:i,overlayY:s}])}}return t.\u0275fac=function(e){return new(e||t)($o(jO),$o(rk),$o(mu),$o(Kl),$o(XE),$o(fx,8),$o(Xg,8),$o(qu,8),$o(LE))},t.\u0275dir=ie({type:t,inputs:{startView:"startView",xPosition:"xPosition",yPosition:"yPosition",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",restoreFocus:"restoreFocus",panelClass:"panelClass",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[me]}),t})(),iT=(()=>{class t extends eT{}return t.\u0275fac=function(e){return nT(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[rl([NE,{provide:eT,useExisting:t}]),Oo],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),t})();const nT=Qi(iT);class sT{constructor(t,e){this.target=t,this.targetElement=e,this.value=this.target.value}}let rT=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._dateAdapter=e,this._dateFormats=i,this.dateChange=new kc,this.dateInput=new kc,this.stateChanges=new k,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=d.EMPTY,this._localeSubscription=d.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value));return!e||this._matchesFilter(e)?null:{matDatepickerFilter:!0}},this._minValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value)),i=this._getMinDate();return!i||!e||this._dateAdapter.compareDate(i,e)<=0?null:{matDatepickerMin:{min:i,actual:e}}},this._maxValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value)),i=this._getMaxDate();return!i||!e||this._dateAdapter.compareDate(i,e)>=0?null:{matDatepickerMax:{max:i,actual:e}}},this._lastValueValid=!1,this._localeSubscription=e.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(t){this._assignValueProgrammatically(t)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(t){const e=wg(t),i=this._elementRef.nativeElement;this._disabled!==e&&(this._disabled=e,this.stateChanges.next(void 0)),e&&this._isInitialized&&i.blur&&i.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(t){this._model=t,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(t=>{if(this._shouldHandleChangeEvent(t)){const e=this._getValueFromModel(t.selection);this._lastValueValid=this._isValidValue(e),this._cvaOnChange(e),this._onTouched(),this._formatValue(e),this.dateInput.emit(new sT(this,this._elementRef.nativeElement)),this.dateChange.emit(new sT(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(t){(function(t,e){const i=Object.keys(t);for(let n of i){const{previousValue:i,currentValue:s}=t[n];if(!e.isDateInstance(i)||!e.isDateInstance(s))return!0;if(!e.sameDate(i,s))return!0}return!1})(t,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(t){this._validatorOnChange=t}validate(t){return this._validator?this._validator(t):null}writeValue(t){this._assignValueProgrammatically(t)}registerOnChange(t){this._cvaOnChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_onKeydown(t){t.altKey&&40===t.keyCode&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),t.preventDefault())}_onInput(t){const e=this._lastValueValid;let i=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(i),i=this._dateAdapter.getValidDateOrNull(i),this._dateAdapter.sameDate(i,this.value)?(t&&!this.value&&this._cvaOnChange(i),e!==this._lastValueValid&&this._validatorOnChange()):(this._assignValue(i),this._cvaOnChange(i),this.dateInput.emit(new sT(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new sT(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(t){this._elementRef.nativeElement.value=t?this._dateAdapter.format(t,this._dateFormats.display.dateInput):""}_assignValue(t){this._model?(this._assignValueToModel(t),this._pendingValue=null):this._pendingValue=t}_isValidValue(t){return!t||this._dateAdapter.isValid(t)}_parentDisabled(){return!1}_assignValueProgrammatically(t){t=this._dateAdapter.deserialize(t),this._lastValueValid=this._isValidValue(t),t=this._dateAdapter.getValidDateOrNull(t),this._assignValue(t),this._formatValue(t)}_matchesFilter(t){const e=this._getDateFilter();return!e||e(t)}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(fx,8),$o(gx,8))},t.\u0275dir=ie({type:t,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[me]}),t})();const oT={provide:mb,useExisting:ut(()=>lT),multi:!0},aT={provide:vb,useExisting:ut(()=>lT),multi:!0};let lT=(()=>{class t extends rT{constructor(t,e,i,n){super(t,e,i),this._formField=n,this._closedSubscription=d.EMPTY,this._validator=xb.compose(super._getValidators())}set matDatepicker(t){t&&(this._datepicker=t,this._closedSubscription=t.closedStream.subscribe(()=>this._onTouched()),this._registerModel(t.registerInput(this)))}get min(){return this._min}set min(t){const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(e,this._min)||(this._min=e,this._validatorOnChange())}get max(){return this._max}set max(t){const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(e,this._max)||(this._max=e,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(t){const e=this._matchesFilter(this.value);this._dateFilter=t,this._matchesFilter(this.value)!==e&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(t){return t}_assignValueToModel(t){this._model&&this._model.updateSelection(t,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(t){return t.source!==this}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(fx,8),$o(gx,8),$o(qk,8))},t.\u0275dir=ie({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(t,e){1&t&&ra("input",function(t){return e._onInput(t.target.value)})("change",function(){return e._onChange()})("blur",function(){return e._onBlur()})("keydown",function(t){return e._onKeydown(t)}),2&t&&(Ua("disabled",e.disabled),zo("aria-haspopup",e._datepicker?"dialog":null)("aria-owns",(null==e._datepicker?null:e._datepicker.opened)&&e._datepicker.id||null)("min",e.min?e._dateAdapter.toIso8601(e.min):null)("max",e.max?e._dateAdapter.toIso8601(e.max):null)("data-mat-calendar",e._datepicker?e._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[rl([oT,aT,{provide:sE,useExisting:t}]),Oo]}),t})(),cT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ie({type:t,selectors:[["","matDatepickerToggleIcon",""]]}),t})(),uT=(()=>{class t{constructor(t,e,i){this._intl=t,this._changeDetectorRef=e,this._stateChanges=d.EMPTY;const n=Number(i);this.tabIndex=n||0===n?n:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(t){this._disabled=wg(t)}ngOnChanges(t){t.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(t){this.datepicker&&!this.disabled&&(this.datepicker.open(),t.stopPropagation())}_watchStateChanges(){const t=this.datepicker?this.datepicker.stateChanges:Sp(),e=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:Sp(),i=this.datepicker?Y(this.datepicker.openedStream,this.datepicker.closedStream):Sp();this._stateChanges.unsubscribe(),this._stateChanges=Y(this._intl.changes,t,e,i).subscribe(()=>this._changeDetectorRef.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)($o(OE),$o(Vl),Ki("tabindex"))},t.\u0275cmp=Xt({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(t,e,i){if(1&t&&Bc(i,cT,1),2&t){let t;Nc(t=Hc())&&(e._customIcon=t.first)}},viewQuery:function(t,e){if(1&t&&Vc(xE,1),2&t){let t;Nc(t=Hc())&&(e._button=t.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(t,e){1&t&&ra("click",function(t){return e._open(t)}),2&t&&(zo("tabindex",null)("data-mat-calendar",e.datepicker?e.datepicker.id:null),Sa("mat-datepicker-toggle-active",e.datepicker&&e.datepicker.opened)("mat-accent",e.datepicker&&"accent"===e.datepicker.color)("mat-warn",e.datepicker&&"warn"===e.datepicker.color))},inputs:{tabIndex:"tabIndex",disabled:"disabled",datepicker:["for","datepicker"],ariaLabel:["aria-label","ariaLabel"],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[me],ngContentSelectors:AE,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(t,e){1&t&&(ha(kE),Qo(0,"button",0,1),jo(2,SE,2,0,"svg",2),pa(3),Xo()),2&t&&(qo("disabled",e.disabled)("disableRipple",e.disableRipple),zo("aria-haspopup",e.datepicker?"dialog":null)("aria-label",e.ariaLabel||e._intl.openCalendarLabel)("tabindex",e.disabled?-1:e.tabIndex),dr(2),qo("ngIf",!e._customIcon))},directives:[TA,Jd],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),dT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:[OE,KE],imports:[[yh,DA,KO,dk,Sv,PS,ax],vS]}),t})();const hT=new en("CdkAccordion");let pT=0,mT=(()=>{class t{constructor(t,e,i){this.accordion=t,this._changeDetectorRef=e,this._expansionDispatcher=i,this._openCloseAllSubscription=d.EMPTY,this.closed=new kc,this.opened=new kc,this.destroyed=new kc,this.expandedChange=new kc,this.id="cdk-accordion-child-"+pT++,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=wg(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=wg(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)($o(hT,12),$o(Vl),$o(fS))},t.\u0275dir=ie({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[rl([{provide:hT,useValue:void 0}])]}),t})(),fT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({}),t})();const gT=["body"];function _T(t,e){}const bT=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],yT=["mat-expansion-panel-header","*","mat-action-row"];function vT(t,e){1&t&&Ko(0,"span",2),2&t&&qo("@indicatorRotate",ua()._getExpandedState())}const wT=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],CT=["mat-panel-title","mat-panel-description","*"],xT=new en("MAT_ACCORDION"),ST={indicatorRotate:Ov("indicatorRotate",[Mv("collapsed, void",Dv({transform:"rotate(0deg)"})),Mv("expanded",Dv({transform:"rotate(180deg)"})),Rv("expanded <=> collapsed, void => collapsed",Ev("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),bodyExpansion:Ov("bodyExpansion",[Mv("collapsed, void",Dv({height:"0px",visibility:"hidden"})),Mv("expanded",Dv({height:"*",visibility:"visible"})),Rv("expanded <=> collapsed, void => collapsed",Ev("225ms cubic-bezier(0.4,0.0,0.2,1)"))])};let kT=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)($o(jl))},t.\u0275dir=ie({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),AT=0;const OT=new en("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let ET=(()=>{class t extends mT{constructor(t,e,i,n,s,r,o){super(t,e,i),this._viewContainerRef=n,this._animationMode=r,this._hideToggle=!1,this.afterExpand=new kc,this.afterCollapse=new kc,this._inputChanges=new k,this._headerId="mat-expansion-panel-header-"+AT++,this._bodyAnimationDone=new k,this.accordion=t,this._document=s,this._bodyAnimationDone.pipe(Np((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=wg(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(jp(null),Mm(()=>this.expanded&&!this._portal),Tf(1)).subscribe(()=>{this._portal=new SS(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)($o(xT,12),$o(Vl),$o(fS),$o(Kl),$o(qu),$o(QC,8),$o(OT,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,i){if(1&t&&Bc(i,kT,1),2&t){let t;Nc(t=Hc())&&(e._lazyContent=t.first)}},viewQuery:function(t,e){if(1&t&&Vc(gT,1),2&t){let t;Nc(t=Hc())&&(e._body=t.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&Sa("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:[rl([{provide:xT,useValue:void 0}]),Oo,me],ngContentSelectors:yT,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&&(ha(bT),pa(0),Qo(1,"div",0,1),ra("@bodyExpansion.done",function(t){return e._bodyAnimationDone.next(t)}),Qo(3,"div",2),pa(4,1),jo(5,_T,0,0,"ng-template",3),Xo(),pa(6,2),Xo()),2&t&&(dr(1),qo("@bodyExpansion",e._getExpandedState())("id",e.id),zo("aria-labelledby",e._headerId),dr(4),qo("cdkPortalOutlet",e._portal))},directives:[TS],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);position:relative}.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:[ST.bodyExpansion]},changeDetection:0}),t})(),TT=(()=>{class t{constructor(t,e,i,n,s,r){this.panel=t,this._element=e,this._focusMonitor=i,this._changeDetectorRef=n,this._animationMode=r,this._parentChangeSubscription=d.EMPTY;const o=t.accordion?t.accordion._stateChanges.pipe(Mm(t=>!(!t.hideToggle&&!t.togglePosition))):Cp;this._parentChangeSubscription=Y(t.opened,t.closed,o,t._inputChanges.pipe(Mm(t=>!!(t.hideToggle||t.disabled||t.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),t.closed.pipe(Mm(()=>t._containsFocus())).subscribe(()=>i.focusVia(e,"program")),s&&(this.expandedHeight=s.expandedHeight,this.collapsedHeight=s.collapsedHeight)}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}_getHeaderHeight(){const t=this._isExpanded();return t&&this.expandedHeight?this.expandedHeight:!t&&this.collapsedHeight?this.collapsedHeight:null}_keydown(t){switch(t.keyCode){case 32:case 13:My(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}focus(t,e){t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(t=>{t&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return t.\u0275fac=function(e){return new(e||t)($o(ET,1),$o(hl),$o(vv),$o(Vl),$o(OT,8),$o(QC,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&ra("click",function(){return e._toggle()})("keydown",function(t){return e._keydown(t)}),2&t&&(zo("id",e.panel._headerId)("tabindex",e.disabled?-1:0)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),xa("height",e._getHeaderHeight()),Sa("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:CT,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(ha(wT),Qo(0,"span",0),pa(1),pa(2,1),pa(3,2),Xo(),jo(4,vT,1,1,"span",1)),2&t&&(dr(4),qo("ngIf",e._showToggle()))},directives:[Jd],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.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}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}\n'],encapsulation:2,data:{animation:[ST.indicatorRotate]},changeDetection:0}),t})(),PT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[yh,ax,fT,PS]]}),t})(),DT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[Px,ax],Px,ax]}),t})();function MT(t){return function(e){const i=new IT(t),n=e.lift(i);return i.caught=n}}class IT{constructor(t){this.selector=t}call(t,e){return e.subscribe(new RT(t,this.selector,this.caught))}}class RT extends H{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 B(this);this.add(n);const s=z(i,n);s!==n&&this.add(s)}}}function LT(t){return e=>e.lift(new FT(t))}class FT{constructor(t){this.callback=t}call(t,e){return e.subscribe(new NT(t,this.callback))}}class NT extends m{constructor(t,e){super(t),this.add(new d(e))}}const VT=["*"];function BT(t){return Error(`Unable to find icon with the name "${t}"`)}function HT(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function zT(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class GT{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let UT=(()=>{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._resolvers=[],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 GT(i,null,n))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,e,i,n){const s=this._sanitizer.sanitize(hs.HTML,i);if(!s)throw zT(i);return this._addSvgIconConfig(t,e,new GT("",s,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 GT(e,null,i))}addSvgIconSetLiteralInNamespace(t,e,i){const n=this._sanitizer.sanitize(hs.HTML,e);if(!n)throw zT(e);return this._addSvgIconSetConfig(t,new GT("",n,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(hs.RESOURCE_URL,t);if(!e)throw HT(t);const i=this._cachedIconsByUrl.get(e);return i?Sp(jT(i)):this._loadSvgIconFromConfig(new GT(t,null)).pipe(If(t=>this._cachedIconsByUrl.set(e,t)),E(t=>jT(t)))}getNamedSvgIcon(t,e=""){const i=WT(e,t);let n=this._svgIconConfigs.get(i);if(n)return this._getSvgFromConfig(n);if(n=this._getIconConfigFromResolvers(e,t),n)return this._svgIconConfigs.set(i,n),this._getSvgFromConfig(n);const s=this._iconSetConfigs.get(e);return s?this._getSvgFromIconSetConfigs(t,s):kp(BT(i))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?Sp(jT(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(E(t=>jT(t)))}_getSvgFromIconSetConfigs(t,e){const i=this._extractIconWithNameFromAnySet(t,e);return i?Sp(i):db(e.filter(t=>!t.svgText).map(t=>this._loadSvgIconSetFromConfig(t).pipe(MT(e=>{const i=this._sanitizer.sanitize(hs.RESOURCE_URL,t.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${i} failed: ${e.message}`)),Sp(null)})))).pipe(E(()=>{const i=this._extractIconWithNameFromAnySet(t,e);if(!i)throw BT(t);return i}))}_extractIconWithNameFromAnySet(t,e){for(let i=e.length-1;i>=0;i--){const n=e[i];if(n.svgText&&n.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(n),i=this._extractSvgIconFromSet(e,t,n.options);if(i)return i}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(If(e=>t.svgText=e),E(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?Sp(null):this._fetchIcon(t).pipe(If(e=>t.svgText=e))}_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 r=this._svgElementFromString("");return r.appendChild(s),this._setSvgAttributes(r,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(r)),st());return this._inProgressUrlFetches.set(r,a),a}_addSvgIconConfig(t,e,i){return this._svgIconConfigs.set(WT(t,e),i),this}_addSvgIconSetConfig(t,e){const i=this._iconSetConfigs.get(t);return i?i.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){const e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}_getIconConfigFromResolvers(t,e){for(let n=0;ne?e.pathname+e.search:""}}}),XT=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],KT=XT.map(t=>`[${t}]`).join(", "),ZT=/^url\(['"]?#(.*?)['"]?\)$/;let JT=(()=>{class t extends qT{constructor(t,e,i,n,s){super(t),this._iconRegistry=e,this._location=n,this._errorHandler=s,this._inline=!1,this._currentIconFetch=d.EMPTY,i||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=wg(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const e=this._cleanupFontValue(t);e!==this._fontSet&&(this._fontSet=e,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const e=this._cleanupFontValue(t);e!==this._fontIcon&&(this._fontIcon=e,this._updateFontIconClasses())}_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}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let n=0;n{e.forEach(e=>{i.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(KT),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let n=0;n{const s=e[n],r=s.getAttribute(t),o=r?r.match(ZT):null;if(o){let e=i.get(s);e||(e=[],i.set(s,e)),e.push({name:t,value:o[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[e,i]=this._splitIconName(t);e&&(this._svgNamespace=e),i&&(this._svgName=i),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(i,e).pipe(Tf(1)).subscribe(t=>this._setSvgElement(t),t=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${e}:${i}! ${t.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(UT),Ki("aria-hidden"),$o(QT),$o(vs))},t.\u0275cmp=Xt({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(zo("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),Sa("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[Oo],ngContentSelectors:VT,decls:1,vars:0,template:function(t,e){1&t&&(ha(),pa(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})(),tP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[ax],ax]}),t})(),eP=(()=>{class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(t){this._vertical=wg(t)}get inset(){return this._inset}set inset(t){this._inset=wg(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(zo("aria-orientation",e.vertical?"vertical":"horizontal"),Sa("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})(),iP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[ax],ax]}),t})();const nP=["*"],sP='.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}.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;flex:auto;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}.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;flex:auto;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-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.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}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-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',rP=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],oP=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"];class aP{}const lP=lx(ux(aP));class cP{}const uP=ux(cP),dP=new en("MatList"),hP=new en("MatNavList");let pP=(()=>{class t extends lP{constructor(){super(...arguments),this._stateChanges=new k}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return mP(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[rl([{provide:hP,useExisting:t}]),Oo,me],ngContentSelectors:nP,decls:1,vars:0,template:function(t,e){1&t&&(ha(),pa(0))},styles:[sP],encapsulation:2,changeDetection:0}),t})();const mP=Qi(pP);let fP=(()=>{class t extends lP{constructor(t){super(),this._elementRef=t,this._stateChanges=new k,"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)($o(hl))},t.\u0275cmp=Xt({type:t,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[rl([{provide:dP,useExisting:t}]),Oo,me],ngContentSelectors:nP,decls:1,vars:0,template:function(t,e){1&t&&(ha(),pa(0))},styles:[sP],encapsulation:2,changeDetection:0}),t})(),gP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ie({type:t,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),t})(),_P=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ie({type:t,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),t})(),bP=(()=>{class t extends uP{constructor(t,e,i,n){super(),this._element=t,this._isInteractiveList=!1,this._destroyed=new k,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(Hp(this._destroyed)).subscribe(()=>{e.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(t){this._disabled=wg(t)}ngAfterContentInit(){!function(t,e,i="mat"){t.changes.pipe(jp(t)).subscribe(({length:t})=>{Tx(e,`${i}-2-line`,!1),Tx(e,`${i}-3-line`,!1),Tx(e,`${i}-multi-line`,!1),2===t||3===t?Tx(e,`${i}-${t}-line`,!0):t>3&&Tx(e,`${i}-multi-line`,!0)})}(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)($o(hl),$o(Vl),$o(hP,8),$o(dP,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,i){if(1&t&&(Bc(i,gP,1),Bc(i,_P,1),Bc(i,Ex,1)),2&t){let t;Nc(t=Hc())&&(e._avatar=t.first),Nc(t=Hc())&&(e._icon=t.first),Nc(t=Hc())&&(e._lines=t)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&Sa("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:[Oo],ngContentSelectors:oP,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&&(ha(rP),Qo(0,"div",0),Ko(1,"div",1),pa(2),Qo(3,"div",2),pa(4,1),Xo(),pa(5,2),Xo()),2&t&&(dr(1),qo("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[Vx],encapsulation:2,changeDetection:0}),t})(),yP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[Px,Bx,ax,zx,yh],Px,ax,zx,iP]}),t})();const vP=["mat-menu-item",""],wP=["*"];function CP(t,e){if(1&t){const t=ea();Qo(0,"div",0),ra("keydown",function(e){return Be(t),ua()._handleKeydown(e)})("click",function(){return Be(t),ua().closed.emit("click")})("@transformMenu.start",function(e){return Be(t),ua()._onAnimationStart(e)})("@transformMenu.done",function(e){return Be(t),ua()._onAnimationDone(e)}),Qo(1,"div",1),pa(2),Xo(),Xo()}if(2&t){const t=ua();qo("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),zo("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const xP={transformMenu:Ov("transformMenu",[Mv("void",Dv({opacity:0,transform:"scale(0.8)"})),Rv("void => enter",Ev("120ms cubic-bezier(0, 0, 0.2, 1)",Dv({opacity:1,transform:"scale(1)"}))),Rv("* => void",Ev("100ms 25ms linear",Dv({opacity:0})))]),fadeInItems:Ov("fadeInItems",[Mv("showing",Dv({opacity:1})),Rv("void => *",[Dv({opacity:0}),Ev("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},SP=new en("MatMenuContent"),kP=new en("MAT_MENU_PANEL");class AP{}const OP=ux(lx(AP));let EP=(()=>{class t extends OP{constructor(t,e,i,n){super(),this._elementRef=t,this._focusMonitor=i,this._parentMenu=n,this.role="menuitem",this._hovered=new k,this._focused=new k,this._highlighted=!1,this._triggersSubmenu=!1,n&&n.addItem&&n.addItem(this)}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}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(){var t,e;const i=this._elementRef.nativeElement.cloneNode(!0),n=i.querySelectorAll("mat-icon, .material-icons");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 Oc,this._tabSubscription=d.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new k,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new kc,this.close=this.closed,this.panelId="mat-menu-panel-"+PP++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=wg(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=wg(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 rv(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(jp(this._directDescendantItems),Rp(t=>Y(...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(jp(this._directDescendantItems),Rp(t=>Y(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,i=this._keyManager;switch(e){case 27:My(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;default:38!==e&&40!==e||i.setFocusOrigin("keyboard"),i.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.pipe(Tf(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(jp(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)($o(hl),$o(mu),$o(TP))},t.\u0275dir=ie({type:t,contentQueries:function(t,e,i){if(1&t&&(Bc(i,SP,1),Bc(i,EP,1),Bc(i,EP,0)),2&t){let t;Nc(t=Hc())&&(e.lazyContent=t.first),Nc(t=Hc())&&(e._allItems=t),Nc(t=Hc())&&(e.items=t)}},viewQuery:function(t,e){if(1&t&&Vc(jl,1),2&t){let t;Nc(t=Hc())&&(e.templateRef=t.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})(),MP=(()=>{class t extends DP{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(mu),$o(TP))},t.\u0275cmp=Xt({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,e){2&t&&zo("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[rl([{provide:kP,useExisting:t}]),Oo],ngContentSelectors:wP,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&&(ha(),jo(0,CP,3,6,"ng-template"))},directives:[Qd],styles:['mat-menu{display:none}.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{margin-top:1px}.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:[xP.transformMenu,xP.fadeInItems]},changeDetection:0}),t})();const IP=new en("mat-menu-scroll-strategy"),RP={provide:IP,deps:[rk],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},LP=Gy({passive:!0});let FP=(()=>{class t{constructor(t,e,i,n,s,r,o,a){this._overlay=t,this._element=e,this._viewContainerRef=i,this._menuItemInstance=r,this._dir=o,this._focusMonitor=a,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=d.EMPTY,this._hoverSubscription=d.EMPTY,this._menuCloseSubscription=d.EMPTY,this._handleTouchStart=t=>{_v(t)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new kc,this.onMenuOpen=this.menuOpened,this.menuClosed=new kc,this.onMenuClose=this.menuClosed,this._scrollStrategy=n,this._parentMaterialMenu=s instanceof DP?s:void 0,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,LP),r&&(r._triggersSubmenu=this.triggersSubmenu())}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.subscribe(t=>{this._destroyMenu(t),"click"!==t&&"tab"!==t||!this._parentMaterialMenu||this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,LP),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._parentMaterialMenu)}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 DP&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}_destroyMenu(t){if(!this._overlayRef||!this.menuOpen)return;const e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==t&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,e instanceof DP?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe(Mm(t=>"void"===t.toState),Tf(1),Hp(e.lazyContent._attached)).subscribe({next:()=>e.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),e.lazyContent&&e.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}_checkMenu(){}_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 zS({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,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"],[r,o]=[n,s],[a,l]=[e,i],c=0;this.triggersSubmenu()?(l=e="before"===this.menu.xPosition?"start":"end",i=a="end"===e?"start":"end",c="bottom"===n?8:-8):this.menu.overlapTrigger||(r="top"===n?"bottom":"top",o="top"===s?"bottom":"top"),t.withPositions([{originX:e,originY:r,overlayX:a,overlayY:n,offsetY:c},{originX:i,originY:r,overlayX:l,overlayY:n,offsetY:c},{originX:e,originY:o,overlayX:a,overlayY:s,offsetY:-c},{originX:i,originY:o,overlayX:l,overlayY:s,offsetY:-c}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments();return Y(t,this._parentMaterialMenu?this._parentMaterialMenu.closed:Sp(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Mm(t=>t!==this._menuItemInstance),Mm(()=>this._menuOpen)):Sp(),e)}_handleMousedown(t){gv(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;13!==e&&32!==e||(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===e&&"ltr"===this.dir||37===e&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Mm(t=>t===this._menuItemInstance&&!t.disabled),Xk(0,wf)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof DP&&this.menu._isAnimating?this.menu._animationDone.pipe(Tf(1),Xk(0,wf),Hp(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new SS(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)($o(rk),$o(hl),$o(Kl),$o(IP),$o(kP,8),$o(EP,10),$o(Xg,8),$o(vv))},t.\u0275dir=ie({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&ra("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&zo("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})(),NP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:[RP],imports:[ax]}),t})(),VP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:[RP],imports:[[yh,ax,Bx,dk,NP],vS,ax,NP]}),t})();const BP=["trigger"],HP=["panel"];function zP(t,e){if(1&t&&(Qo(0,"span",8),Na(1),Xo()),2&t){const t=ua();dr(1),Va(t.placeholder)}}function GP(t,e){if(1&t&&(Qo(0,"span",12),Na(1),Xo()),2&t){const t=ua(2);dr(1),Va(t.triggerValue)}}function UP(t,e){1&t&&pa(0,0,["*ngSwitchCase","true"])}function jP(t,e){1&t&&(Qo(0,"span",9),jo(1,GP,2,1,"span",10),jo(2,UP,1,0,"ng-content",11),Xo()),2&t&&(qo("ngSwitch",!!ua().customTrigger),dr(2),qo("ngSwitchCase",!0))}function WP(t,e){if(1&t){const t=ea();Qo(0,"div",13),Qo(1,"div",14,15),ra("@transformPanel.done",function(e){return Be(t),ua()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return Be(t),ua()._handleKeydown(e)}),pa(3,1),Xo(),Xo()}if(2&t){const t=ua();qo("@transformPanelWrap",void 0),dr(1),Ga("mat-select-panel ",t._getPanelTheme(),""),xa("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),qo("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing"),zo("id",t.id+"-panel")("aria-multiselectable",t.multiple)("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby())}}const $P=[[["mat-select-trigger"]],"*"],qP=["mat-select-trigger","*"],YP={transformPanelWrap:Ov("transformPanelWrap",[Rv("* => void",Fv("@transformPanel",[Lv()],{optional:!0}))]),transformPanel:Ov("transformPanel",[Mv("void",Dv({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Mv("showing",Dv({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Mv("showing-multiple",Dv({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Rv("void => *",Ev("120ms cubic-bezier(0, 0, 0.2, 1)")),Rv("* => void",Ev("100ms 25ms linear",Dv({opacity:0})))])};let QP=0;const XP=new en("mat-select-scroll-strategy"),KP=new en("MAT_SELECT_CONFIG"),ZP={provide:XP,deps:[rk],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class JP{constructor(t,e){this.source=t,this.value=e}}class tD{constructor(t,e,i,n,s){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=i,this._parentFormGroup=n,this.ngControl=s}}const eD=ux(dx(lx(hx(tD)))),iD=new en("MatSelectTrigger");let nD=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ie({type:t,selectors:[["mat-select-trigger"]],features:[rl([{provide:iD,useExisting:t}])]}),t})(),sD=(()=>{class t extends eD{constructor(t,e,i,n,s,r,o,a,l,c,u,d,h,p){var m,f,g;super(s,n,o,a,c),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=i,this._dir=r,this._parentFormField=l,this.ngControl=c,this._liveAnnouncer=h,this._defaultOptions=p,this._panelOpen=!1,this._compareWith=(t,e)=>t===e,this._uid="mat-select-"+QP++,this._triggerAriaLabelledBy=null,this._destroy=new k,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+QP++,this._panelDoneAnimatingStream=new k,this._overlayPanelClass=(null===(m=this._defaultOptions)||void 0===m?void 0:m.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(g=null===(f=this._defaultOptions)||void 0===f?void 0:f.disableOptionCentering)&&void 0!==g&&g,this.ariaLabel="",this.optionSelectionChanges=nS(()=>{const t=this.options;return t?t.changes.pipe(jp(t),Rp(()=>Y(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.pipe(Tf(1),Rp(()=>this.optionSelectionChanges))}),this.openedChange=new kc,this._openedStream=this.openedChange.pipe(Mm(t=>t),E(()=>{})),this._closedStream=this.openedChange.pipe(Mm(t=>!t),E(()=>{})),this.selectionChange=new kc,this.valueChange=new kc,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==p?void 0:p.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=p.typeaheadDebounceInterval),this._scrollStrategyFactory=d,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(u)||0,this.id=this.id}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=wg(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._multiple=wg(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=wg(t)}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){(t!==this._value||this._multiple&&Array.isArray(t))&&(this.options&&this._setSelectionByValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=Cg(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new mS(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Np(),Hp(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Hp(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(jp(null),Hp(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const t=this._getTriggerAriaLabelledby();if(t!==this._triggerAriaLabelledBy){const e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?e.setAttribute("aria-labelledby",t):e.removeAttribute("aria-labelledby")}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._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(t){this.value=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&&!My(t)||(this.multiple||t.altKey)&&i)t.preventDefault(),this.open();else if(!this.multiple){const e=this.selected;s.onKeydown(t);const i=this.selected;i&&e!==i&&this._liveAnnouncer.announce(i.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,i=t.keyCode,n=40===i||38===i,s=e.isTyping();if(n&&t.altKey)t.preventDefault(),this.close();else if(s||13!==i&&32!==i||!e.activeItem||My(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(Tf(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_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._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(t=>this._selectValue(t)),this._sortValues();else{const e=this._selectValue(t);e?this._keyManager.updateActiveItem(e):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(t){const e=this.options.find(e=>{if(this._selectionModel.isSelected(e))return!1;try{return null!=e.value&&this._compareWith(e.value,t)}catch(i){return!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new sv(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Hp(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Hp(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):this._panelOpen||this.multiple||!this._keyManager.activeItem||this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const t=Y(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Hp(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Y(...this.options.map(t=>t._stateChanges)).pipe(Hp(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_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(),null!=this.value&&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(this._getChangeEvent(e)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var t;return!this._panelOpen&&!this.disabled&&(null===(t=this.options)||void 0===t?void 0:t.length)>0}focus(t){this._elementRef.nativeElement.focus(t)}_getPanelAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();let i=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_panelDoneAnimating(t){this.openedChange.emit(t)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return t.\u0275fac=function(e){return new(e||t)($o(yS),$o(Vl),$o(mu),$o(Ox),$o(hl),$o(Xg,8),$o(py,8),$o(ky,8),$o(qk,8),$o(zb,10),Ki("tabindex"),$o(XP),$o(mv),$o(KP,8))},t.\u0275dir=ie({type:t,viewQuery:function(t,e){if(1&t&&(Vc(BP,1),Vc(HP,1),Vc(ck,1)),2&t){let t;Nc(t=Hc())&&(e.trigger=t.first),Nc(t=Hc())&&(e.panel=t.first),Nc(t=Hc())&&(e.overlayDir=t.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[Oo,me]}),t})(),rD=(()=>{class t extends sD{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(t,e,i){const n=this._getItemHeight();return Math.min(Math.max(0,n*t-e+n/2),i)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Hp(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(Tf(1)).subscribe(()=>{this._triggerFontSize&&this.overlayDir.overlayRef&&this.overlayDir.overlayRef.overlayElement&&(this.overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(t){const e=tS(t,this.options,this.optionGroups),i=this._getItemHeight();this.panel.nativeElement.scrollTop=eS((t+e)*i,i,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(t){this.panelOpen?this._scrollTop=0:(this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(t)}_getChangeEvent(t){return new JP(this,t)}_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 if(this.disableOptionCentering)s=16;else{let t=this._selectionModel.selected[0]||this.options.first;s=t&&t.group?32:16}i||(s*=-1);const r=0-(t.left+s-(i?n:0)),o=t.right+s-e.width+(i?0:n);r>0?s+=r+8:o>0&&(s-=o+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,r=Math.floor(256/n);let o;return this.disableOptionCentering?0:(o=0===this._scrollTop?t*n:this._scrollTop===i?(t-(this._getItemCount()-r))*n+(n-(this._getItemCount()*n-256)%n):e-n/2,Math.round(-1*o-s))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),i=this._viewportRuler.getViewportSize(),n=this._triggerRect.top-8,s=i.height-this._triggerRect.bottom-8,r=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,256)-r-this._triggerRect.height;o>s?this._adjustPanelUp(o,s):r>n?this._adjustPanelDown(r,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")}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),i=Math.min(e*t,256),n=e*t-i;let s;s=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),s+=tS(s,this.options,this.optionGroups);const r=i/2;this._scrollTop=this._calculateOverlayScroll(s,r,n),this._offsetY=this._calculateOverlayOffsetY(s,r,n),this._checkOverlayWithinViewport(n)}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return t.\u0275fac=function(e){return oD(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,i){if(1&t&&(Bc(i,iD,1),Bc(i,Jx,1),Bc(i,qx,1)),2&t){let t;Nc(t=Hc())&&(e.customTrigger=t.first),Nc(t=Hc())&&(e.options=t),Nc(t=Hc())&&(e.optionGroups=t)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&ra("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(zo("id",e.id)("tabindex",e.tabIndex)("aria-controls",e.panelOpen?e.id+"-panel":null)("aria-expanded",e.panelOpen)("aria-label",e.ariaLabel||null)("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),Sa("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty)("mat-select-multiple",e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[rl([{provide:Ik,useExisting:t},{provide:Gx,useExisting:t}]),Oo],ngContentSelectors:qP,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",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,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(ha($P),Qo(0,"div",0,1),ra("click",function(){return e.toggle()}),Qo(3,"div",2),jo(4,zP,2,1,"span",3),jo(5,jP,3,2,"span",4),Xo(),Qo(6,"div",5),Ko(7,"div",6),Xo(),Xo(),jo(8,WP,4,14,"ng-template",7),ra("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){const t=Wo(1);zo("aria-owns",e.panelOpen?e.id+"-panel":null),dr(3),qo("ngSwitch",e.empty),zo("id",e._valueId),dr(1),qo("ngSwitchCase",!0),dr(1),qo("ngSwitchCase",!1),dr(3),qo("cdkConnectedOverlayPanelClass",e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[lk,nh,sh,ck,rh,Qd],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;outline:0}.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}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[YP.transformPanelWrap,YP.transformPanel]},changeDetection:0}),t})();const oD=Qi(rD);let aD=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:[ZP],imports:[[yh,dk,iS,ax],vS,Qk,iS,ax]}),t})();class lD extends m{notifyNext(t,e,i,n,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class cD extends m{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function uD(t,e,i,n,s=new cD(t,i,n)){if(!s.closed)return e instanceof v?e.subscribe(s):F(e)(s)}const dD={};function hD(...t){let e,i;return O(t[t.length-1])&&(i=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&l(t[0])&&(t=t[0]),q(t,i).lift(new pD(e))}class pD{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new mD(t,this.resultSelector))}}class mD extends lD{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(dD),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;i{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):bD}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!fD.has(t))try{gD||(gD=document.createElement("style"),gD.setAttribute("type","text/css"),document.head.appendChild(gD)),gD.sheet&&(gD.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),fD.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(wn(Ry))},t.\u0275prov=_t({factory:function(){return new t(wn(Ry))},token:t,providedIn:"root"}),t})();function bD(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let yD=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new k}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return vD(Sg(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){let e=hD(vD(Sg(t)).map(t=>this._registerQuery(t).observable));return e=Up(e.pipe(Tf(1)),e.pipe(Wp(1),Sf(0))),e.pipe(E(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:i})=>{e.matches=e.matches||t,e.breakpoints[i]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),i={observable:new v(t=>{const i=e=>this._zone.run(()=>t.next(e));return e.addListener(i),()=>{e.removeListener(i)}}).pipe(jp(e),E(({matches:e})=>({query:t,matches:e})),Hp(this._destroySubject)),mql:e};return this._queries.set(t,i),i}}return t.\u0275fac=function(e){return new(e||t)(wn(_D),wn(mu))},t.\u0275prov=_t({factory:function(){return new t(wn(_D),wn(mu))},token:t,providedIn:"root"}),t})();function vD(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const wD={tooltipState:Ov("state",[Mv("initial, void, hidden",Dv({opacity:0,transform:"scale(0)"})),Mv("visible",Dv({transform:"scale(1)"})),Rv("* => visible",Ev("200ms cubic-bezier(0, 0, 0.2, 1)",Iv([Dv({opacity:0,transform:"scale(0)",offset:0}),Dv({opacity:.5,transform:"scale(0.99)",offset:.5}),Dv({opacity:1,transform:"scale(1)",offset:1})]))),Rv("* => hidden",Ev("100ms cubic-bezier(0, 0, 0.2, 1)",Dv({opacity:0})))])},CD=Gy({passive:!0}),xD=new en("mat-tooltip-scroll-strategy"),SD={provide:xD,deps:[rk],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},kD=new en("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let AD=(()=>{class t{constructor(t,e,i,n,s,r,o,a,l,c,u,d){this._overlay=t,this._elementRef=e,this._scrollDispatcher=i,this._viewContainerRef=n,this._ngZone=s,this._platform=r,this._ariaDescriber=o,this._focusMonitor=a,this._dir=c,this._defaultOptions=u,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new k,this._handleKeydown=t=>{this._isTooltipVisible()&&27===t.keyCode&&!My(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=l,u&&(u.position&&(this.position=u.position),u.touchGestures&&(this.touchGestures=u.touchGestures)),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=wg(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Hp(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}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(e,i,CD)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),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 xS(OD,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Hp(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(Hp(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(Hp(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;"above"==e||"below"==e?i={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?i={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(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;"above"==e?i={overlayX:"center",overlayY:"bottom"}:"below"==e?i={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?i={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(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.pipe(Tf(1),Hp(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}}_setupPointerEnterEventsIfNeeded(){!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([t,e])=>{this._elementRef.nativeElement.addEventListener(t,e,CD)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const e=(this._document||document).elementFromPoint(t.clientX,t.clientY),i=this._elementRef.nativeElement;e===i||i.contains(e)||this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const e=this._elementRef.nativeElement,i=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(i.userSelect=i.msUserSelect=i.webkitUserSelect=i.MozUserSelect="none"),"on"!==t&&e.draggable||(i.webkitUserDrag="none"),i.touchAction="none",i.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)($o(rk),$o(hl),$o(_S),$o(Kl),$o(mu),$o(Ry),$o(tv),$o(vv),$o(xD),$o(Xg,8),$o(kD,8),$o(qu))},t.\u0275dir=ie({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],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})(),OD=(()=>{class t{constructor(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new k,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) 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}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)($o(Vl),$o(yD))},t.\u0275cmp=Xt({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&ra("click",function(){return e._handleBodyInteraction()},!1,xs)("auxclick",function(){return e._handleBodyInteraction()},!1,xs),2&t&&xa("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(Qo(0,"div",0),ra("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),vc(1,"async"),Na(2),Xo()),2&t){let t=null;Sa("mat-tooltip-handset",null==(t=wc(1,5,e._isHandset))?null:t.matches),qo("ngClass",e.tooltipClass)("@state",e._visibility),dr(2),Va(e.message)}},directives:[Qd],pipes:[ph],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:[wD.tooltipState]},changeDetection:0}),t})(),ED=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:[SD],imports:[[Sv,yh,dk,ax],ax,vS]}),t})();function TD(t,e){if(1&t&&(Qo(0,"mat-option",19),Na(1),Xo()),2&t){const t=e.$implicit;qo("value",t),dr(1),Ba(" ",t," ")}}function PD(t,e){if(1&t){const t=ea();Qo(0,"mat-form-field",16),Qo(1,"mat-select",17),ra("selectionChange",function(e){return Be(t),ua(2)._changePageSize(e.value)}),jo(2,TD,2,2,"mat-option",18),Xo(),Xo()}if(2&t){const t=ua(2);qo("appearance",t._formFieldAppearance)("color",t.color),dr(1),qo("value",t.pageSize)("disabled",t.disabled)("aria-label",t._intl.itemsPerPageLabel),dr(1),qo("ngForOf",t._displayedPageSizeOptions)}}function DD(t,e){if(1&t&&(Qo(0,"div",20),Na(1),Xo()),2&t){const t=ua(2);dr(1),Va(t.pageSize)}}function MD(t,e){if(1&t&&(Qo(0,"div",12),Qo(1,"div",13),Na(2),Xo(),jo(3,PD,3,6,"mat-form-field",14),jo(4,DD,2,1,"div",15),Xo()),2&t){const t=ua();dr(2),Ba(" ",t._intl.itemsPerPageLabel," "),dr(1),qo("ngIf",t._displayedPageSizeOptions.length>1),dr(1),qo("ngIf",t._displayedPageSizeOptions.length<=1)}}function ID(t,e){if(1&t){const t=ea();Qo(0,"button",21),ra("click",function(){return Be(t),ua().firstPage()}),pi(),Qo(1,"svg",7),Ko(2,"path",22),Xo(),Xo()}if(2&t){const t=ua();qo("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),zo("aria-label",t._intl.firstPageLabel)}}function RD(t,e){if(1&t){const t=ea();pi(),mi(),Qo(0,"button",23),ra("click",function(){return Be(t),ua().lastPage()}),pi(),Qo(1,"svg",7),Ko(2,"path",24),Xo(),Xo()}if(2&t){const t=ua();qo("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),zo("aria-label",t._intl.lastPageLabel)}}let LD=(()=>{class t{constructor(){this.changes=new k,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,e,i)=>{if(0==i||0==e)return`0 of ${i}`;const n=t*e;return`${n+1} \u2013 ${n<(i=Math.max(i,0))?Math.min(n+e,i):n+e} of ${i}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({factory:function(){return new t},token:t,providedIn:"root"}),t})();const FD={provide:LD,deps:[[new An,new On,LD]],useFactory:function(t){return t||new LD}},ND=new en("MAT_PAGINATOR_DEFAULT_OPTIONS");class VD{}const BD=lx(px(VD));let HD=(()=>{class t extends BD{constructor(t,e,i){if(super(),this._intl=t,this._changeDetectorRef=e,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new kc,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),i){const{pageSize:t,pageSizeOptions:e,hidePageSize:n,showFirstLastButtons:s}=i;null!=t&&(this._pageSize=t),null!=e&&(this._pageSizeOptions=e),null!=n&&(this._hidePageSize=n),null!=s&&(this._showFirstLastButtons=s)}}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max(Cg(t),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=Cg(t),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max(Cg(t),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(t=>Cg(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(t){this._hidePageSize=wg(t)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(t){this._showFirstLastButtons=wg(t)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}previousPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}firstPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}lastPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const t=this.getNumberOfPages()-1;return this.pageIndext-e),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return t.\u0275fac=function(e){return new(e||t)($o(LD),$o(Vl),$o(void 0))},t.\u0275dir=ie({type:t,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[Oo]}),t})(),zD=(()=>{class t extends HD{constructor(t,e,i){super(t,e,i),i&&null!=i.formFieldAppearance&&(this._formFieldAppearance=i.formFieldAppearance)}}return t.\u0275fac=function(e){return new(e||t)($o(LD),$o(Vl),$o(ND,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-paginator"]],hostAttrs:[1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[Oo],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"div",1),jo(2,MD,5,3,"div",2),Qo(3,"div",3),Qo(4,"div",4),Na(5),Xo(),jo(6,ID,3,5,"button",5),Qo(7,"button",6),ra("click",function(){return e.previousPage()}),pi(),Qo(8,"svg",7),Ko(9,"path",8),Xo(),Xo(),mi(),Qo(10,"button",9),ra("click",function(){return e.nextPage()}),pi(),Qo(11,"svg",7),Ko(12,"path",10),Xo(),Xo(),jo(13,RD,3,5,"button",11),Xo(),Xo(),Xo()),2&t&&(dr(2),qo("ngIf",!e.hidePageSize),dr(3),Ba(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),dr(1),qo("ngIf",e.showFirstLastButtons),dr(1),qo("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),zo("aria-label",e._intl.previousPageLabel),dr(3),qo("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),zo("aria-label",e._intl.nextPageLabel),dr(3),qo("ngIf",e.showFirstLastButtons))},directives:[Jd,TA,AD,Yk,rD,Kd,Jx],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}\n"],encapsulation:2,changeDetection:0}),t})(),GD=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:[FD],imports:[[yh,DA,aD,ED,ax]]}),t})();const UD=["primaryValueBar"];class jD{constructor(t){this._elementRef=t}}const WD=cx(jD,"primary"),$D=new en("mat-progress-bar-location",{providedIn:"root",factory:function(){const t=Cn(qu),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}});let qD=0,YD=(()=>{class t extends WD{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 kc,this._animationEndSubscription=d.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+qD++;const s=n?n.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${s}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===i}get value(){return this._value}set value(t){this._value=QD(Cg(t)||0)}get bufferValue(){return this._bufferValue}set bufferValue(t){this._bufferValue=QD(t||0)}_primaryTransform(){return{transform:`scale3d(${this.value/100}, 1, 1)`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scale3d(${this.bufferValue/100}, 1, 1)`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const t=this._primaryValueBar.nativeElement;this._animationEndSubscription=Cf(t,"transitionend").pipe(Mm(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)($o(hl),$o(mu),$o(QC,8),$o($D,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-progress-bar"]],viewQuery:function(t,e){if(1&t&&Vc(UD,1),2&t){let t;Nc(t=Hc())&&(e._primaryValueBar=t.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"mat-progress-bar"],hostVars:4,hostBindings:function(t,e){2&t&&(zo("aria-valuenow","indeterminate"===e.mode||"query"===e.mode?null:e.value)("mode",e.mode),Sa("_mat-animation-noopable",e._isNoopAnimation))},inputs:{color:"color",mode:"mode",value:"value",bufferValue:"bufferValue"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[Oo],decls:10,vars:4,consts:[["aria-hidden","true"],["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&&(Qo(0,"div",0),pi(),Qo(1,"svg",1),Qo(2,"defs"),Qo(3,"pattern",2),Ko(4,"circle",3),Xo(),Xo(),Ko(5,"rect",4),Xo(),mi(),Ko(6,"div",5),Ko(7,"div",6,7),Ko(9,"div",8),Xo()),2&t&&(dr(3),qo("id",e.progressbarId),dr(2),zo("fill",e._rectangleFillValue),dr(1),qo("ngStyle",e._bufferTransform()),dr(1),qo("ngStyle",e._primaryTransform()))},directives:[oh],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 QD(t,e=0,i=100){return Math.max(e,Math.min(i,t))}let XD=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[yh,ax],ax]}),t})();function KD(t,e){if(1&t&&(pi(),Ko(0,"circle",3)),2&t){const t=ua();xa("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),zo("r",t._getCircleRadius())}}function ZD(t,e){if(1&t&&(pi(),Ko(0,"circle",3)),2&t){const t=ua();xa("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),zo("r",t._getCircleRadius())}}function JD(t,e){if(1&t&&(pi(),Ko(0,"circle",3)),2&t){const t=ua();xa("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),zo("r",t._getCircleRadius())}}function tM(t,e){if(1&t&&(pi(),Ko(0,"circle",3)),2&t){const t=ua();xa("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),zo("r",t._getCircleRadius())}}const eM=".mat-progress-spinner{display:block;position:relative;overflow:hidden}.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}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{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] svg{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] svg{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";class iM{constructor(t){this._elementRef=t}}const nM=cx(iM,"primary"),sM=new en("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let rM=(()=>{class t extends nM{constructor(e,i,n,s,r){super(e),this._elementRef=e,this._document=n,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const o=t._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),o.has(n.head)||o.set(n.head,new Set([100])),this._fallbackAnimation=i.EDGE||i.TRIDENT,this._noopAnimations="NoopAnimations"===s&&!!r&&!r._forceAnimations,r&&(r.diameter&&(this.diameter=r.diameter),r.strokeWidth&&(this.strokeWidth=r.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=Cg(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=Cg(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,Cg(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=Wy(t)||this._document.head,this._attachStyleNode(),t.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}_getCircleStrokeWidth(){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",this._spinnerAnimationLabel),t.textContent=this._getAnimationText(),e.appendChild(t),s||(s=new Set,n.set(e,s)),s.add(i)}}_getAnimationText(){const t=this._getStrokeCircumference();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*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(Ry),$o(qu,8),$o(QC,8),$o(sM))},t.\u0275cmp=Xt({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(zo("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),xa("width",e.diameter,"px")("height",e.diameter,"px"),Sa("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[Oo],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",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&&(pi(),Qo(0,"svg",0),jo(1,KD,1,9,"circle",1),jo(2,ZD,1,7,"circle",2),Xo()),2&t&&(xa("width",e.diameter,"px")("height",e.diameter,"px"),qo("ngSwitch","indeterminate"===e.mode),zo("viewBox",e._getViewBox()),dr(1),qo("ngSwitchCase",!0),dr(1),qo("ngSwitchCase",!1))},directives:[nh,sh],styles:[eM],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t})(),oM=(()=>{class t extends rM{constructor(t,e,i,n,s){super(t,e,i,n,s),this.mode="indeterminate"}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(Ry),$o(qu,8),$o(QC,8),$o(sM))},t.\u0275cmp=Xt({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(xa("width",e.diameter,"px")("height",e.diameter,"px"),Sa("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[Oo],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",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&&(pi(),Qo(0,"svg",0),jo(1,JD,1,9,"circle",1),jo(2,tM,1,7,"circle",2),Xo()),2&t&&(xa("width",e.diameter,"px")("height",e.diameter,"px"),qo("ngSwitch","indeterminate"===e.mode),zo("viewBox",e._getViewBox()),dr(1),qo("ngSwitchCase",!0),dr(1),qo("ngSwitchCase",!1))},directives:[nh,sh],styles:[eM],encapsulation:2,changeDetection:0}),t})(),aM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[ax,yh],ax]}),t})();const lM=["input"],cM=function(){return{enterDuration:150}},uM=["*"],dM=new en("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}});let hM=0;const pM={provide:mb,useExisting:ut(()=>_M),multi:!0};class mM{constructor(t,e){this.source=t,this.value=e}}const fM=new en("MatRadioGroup");let gM=(()=>{class t{constructor(t){this._changeDetector=t,this._value=null,this._name="mat-radio-group-"+hM++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new kc}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=wg(t),this._markRadiosForCheck()}get required(){return this._required}set required(t){this._required=wg(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 mM(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)($o(Vl))},t.\u0275dir=ie({type:t,inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"}}),t})(),_M=(()=>{class t extends gM{}return t.\u0275fac=function(e){return bM(e||t)},t.\u0275dir=ie({type:t,selectors:[["mat-radio-group"]],contentQueries:function(t,e,i){if(1&t&&Bc(i,CM,1),2&t){let t;Nc(t=Hc())&&(e._radios=t)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[rl([pM,{provide:fM,useExisting:t}]),Oo]}),t})();const bM=Qi(_M);class yM{constructor(t){this._elementRef=t}}const vM=ux(dx(yM));let wM=(()=>{class t extends vM{constructor(t,e,i,n,s,r,o,a){super(e),this._changeDetector=i,this._focusMonitor=n,this._radioDispatcher=s,this._animationMode=r,this._providerOverride=o,this._uniqueId="mat-radio-"+ ++hM,this.id=this._uniqueId,this.change=new kc,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=t,a&&(this.tabIndex=Cg(a,0)),this._removeUniqueSelectionListener=s.listen((t,e)=>{t!==this.id&&e===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(t){const e=wg(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(wg(t))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(t){this._required=wg(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,e){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),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 mM(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)($o(gM),$o(hl),$o(Vl),$o(vv),$o(fS),$o(String),$o(void 0),$o(String))},t.\u0275dir=ie({type:t,viewQuery:function(t,e){if(1&t&&Vc(lM,1),2&t){let t;Nc(t=Hc())&&(e._inputElement=t.first)}},inputs:{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"},features:[Oo]}),t})(),CM=(()=>{class t extends wM{constructor(t,e,i,n,s,r,o,a){super(t,e,i,n,s,r,o,a)}}return t.\u0275fac=function(e){return new(e||t)($o(fM,8),$o(hl),$o(Vl),$o(vv),$o(fS),$o(QC,8),$o(dM,8),Ki("tabindex"))},t.\u0275cmp=Xt({type:t,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(t,e){1&t&&ra("focus",function(){return e._inputElement.nativeElement.focus()}),2&t&&(zo("tabindex",null)("id",e.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),Sa("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"},exportAs:["matRadioButton"],features:[Oo],ngContentSelectors:uM,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&&(ha(),Qo(0,"label",0,1),Qo(2,"span",2),Ko(3,"span",3),Ko(4,"span",4),Qo(5,"input",5,6),ra("change",function(t){return e._onInputChange(t)})("click",function(t){return e._onInputClick(t)}),Xo(),Qo(7,"span",7),Ko(8,"span",8),Xo(),Xo(),Qo(9,"span",9),Qo(10,"span",10),Na(11,"\xa0"),Xo(),pa(12),Xo(),Xo()),2&t){const t=Wo(1);zo("for",e.inputId),dr(5),qo("id",e.inputId)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex)("required",e.required),zo("name",e.name)("value",e.value)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby)("aria-describedby",e.ariaDescribedby),dr(2),qo("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",hc(18,cM)),dr(2),Sa("mat-radio-label-before","before"==e.labelPosition)}},directives:[Vx],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;display:block;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;display:block;height:20px;left:0;position:absolute;top:0;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}._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})(),xM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[Bx,ax],ax]}),t})();function SM(t){return e=>e.lift(new kM(t))}class kM{constructor(t){this.value=t}call(t,e){return e.subscribe(new AM(t,this.value))}}class AM extends m{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}const OM=["*"];function EM(t,e){if(1&t){const t=ea();Qo(0,"div",2),ra("click",function(){return Be(t),ua()._onBackdropClicked()}),Xo()}2&t&&Sa("mat-drawer-shown",ua()._isShowingBackdrop())}function TM(t,e){1&t&&(Qo(0,"mat-drawer-content"),pa(1,2),Xo())}const PM=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],DM=["mat-drawer","mat-drawer-content","*"],MM={transformDrawer:Ov("transform",[Mv("open, open-instant",Dv({transform:"none",visibility:"visible"})),Mv("void",Dv({"box-shadow":"none",visibility:"hidden"})),Rv("void => open-instant",Ev("0ms")),Rv("void <=> open, open-instant => void",Ev("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},IM=new en("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),RM=new en("MAT_DRAWER_CONTAINER");let LM=(()=>{class t extends bS{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)($o(Vl),$o(ut(()=>NM)),$o(hl),$o(_S),$o(mu))},t.\u0275cmp=Xt({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&xa("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[Oo],ngContentSelectors:OM,decls:1,vars:0,template:function(t,e){1&t&&(ha(),pa(0))},encapsulation:2,changeDetection:0}),t})(),FM=(()=>{class t{constructor(t,e,i,n,s,r,o){this._elementRef=t,this._focusTrapFactory=e,this._focusMonitor=i,this._platform=n,this._ngZone=s,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 k,this._animationEnd=new k,this._animationState="void",this.openedChange=new kc(!0),this._openedStream=this.openedChange.pipe(Mm(t=>t),E(()=>{})),this.openedStart=this._animationStarted.pipe(Mm(t=>t.fromState!==t.toState&&0===t.toState.indexOf("open")),SM(void 0)),this._closedStream=this.openedChange.pipe(Mm(t=>!t),E(()=>{})),this.closedStart=this._animationStarted.pipe(Mm(t=>t.fromState!==t.toState&&"void"===t.toState),SM(void 0)),this._destroyed=new k,this.onPositionChanged=new kc,this._modeChanged=new k,this.openedChange.subscribe(t=>{t?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus()}),this._ngZone.runOutsideAngular(()=>{Cf(this._elementRef.nativeElement,"keydown").pipe(Mm(t=>27===t.keyCode&&!this.disableClose&&!My(t)),Hp(this._destroyed)).subscribe(t=>this._ngZone.run(()=>{this.close(),t.stopPropagation(),t.preventDefault()}))}),this._animationEnd.pipe(Np((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=wg(t)}get autoFocus(){const t=this._autoFocus;return null==t?"side"!==this.mode:t}set autoFocus(t){this._autoFocus=wg(t)}get opened(){return this._opened}set opened(t){this.toggle(wg(t))}_takeFocus(){this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(t=>{t||"function"!=typeof this._elementRef.nativeElement.focus||this._elementRef.nativeElement.focus()})}_restoreFocus(){this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null)}_isFocusWithinDrawer(){var t;const e=null===(t=this._doc)||void 0===t?void 0:t.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}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)}_closeViaBackdropClick(){return this._setOpen(!1,!0)}toggle(t=!this.opened,e){return this._setOpen(t,!t&&this._isFocusWithinDrawer(),e)}_setOpen(t,e,i="program"){return this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=i):(this._animationState="void",e&&this._restoreFocus()),this._updateFocusTrapState(),new Promise(t=>{this.openedChange.pipe(Tf(1)).subscribe(e=>t(e?"open":"close"))})}_getWidth(){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)($o(hl),$o(uv),$o(vv),$o(Ry),$o(mu),$o(qu,8),$o(RM,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&oa("@transform.start",function(t){return e._animationStartListener(t)})("@transform.done",function(t){return e._animationDoneListener(t)}),2&t&&(zo("align",null),ja("@transform",e._animationState),Sa("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",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:OM,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(ha(),Qo(0,"div",0),pa(1),Xo())},encapsulation:2,data:{animation:[MM.transformDrawer]},changeDetection:0}),t})(),NM=(()=>{class t{constructor(t,e,i,n,s,r=!1,o){this._dir=t,this._element=e,this._ngZone=i,this._changeDetectorRef=n,this._animationMode=o,this._drawers=new Oc,this.backdropClick=new kc,this._destroyed=new k,this._doCheckSubject=new k,this._contentMargins={left:null,right:null},this._contentMarginChanges=new k,t&&t.change.pipe(Hp(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),s.change().pipe(Hp(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=wg(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:wg(t)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(jp(this._allDrawers),Hp(this._destroyed)).subscribe(t=>{this._drawers.reset(t.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(jp(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._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(Sf(10),Hp(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._getWidth();else if("push"==this._left.mode){const i=this._left._getWidth();t+=i,e-=i}if(this._right&&this._right.opened)if("side"==this._right.mode)e+=this._right._getWidth();else if("push"==this._right.mode){const i=this._right._getWidth();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(Mm(t=>t.fromState!==t.toState),Hp(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(Hp(this._drawers.changes)).subscribe(()=>this._setContainerClass(t.opened))}_watchDrawerPosition(t){t&&t.onPositionChanged.pipe(Hp(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(Tf(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(t){t&&t._modeChanged.pipe(Hp(Y(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?this._end=t: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._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(t=>t&&!t.disableClose&&this._canHaveBackdrop(t)).forEach(t=>t._closeViaBackdropClick())}_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)($o(Xg,8),$o(hl),$o(mu),$o(Vl),$o(yS),$o(IM),$o(QC,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,i){if(1&t&&(Bc(i,LM,1),Bc(i,FM,1)),2&t){let t;Nc(t=Hc())&&(e._content=t.first),Nc(t=Hc())&&(e._allDrawers=t)}},viewQuery:function(t,e){if(1&t&&Vc(LM,1),2&t){let t;Nc(t=Hc())&&(e._userContent=t.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&Sa("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[rl([{provide:RM,useExisting:t}])],ngContentSelectors:DM,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&&(ha(PM),jo(0,EM,1,2,"div",0),pa(1),pa(2,1),jo(3,TM,2,0,"mat-drawer-content",1)),2&t&&(qo("ngIf",e.hasBackdrop),dr(3),qo("ngIf",!e._content))},directives:[Jd,LM],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})(),VM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[yh,ax,Ly,vS],vS,ax]}),t})(),BM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({}),t})(),HM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[BM,Bx,ax,Qy],BM,ax]}),t})();const zM=["mat-sort-header",""];function GM(t,e){if(1&t){const t=ea();Qo(0,"div",3),ra("@arrowPosition.start",function(){return Be(t),ua()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return Be(t),ua()._disableViewStateAnimation=!1}),Ko(1,"div",4),Qo(2,"div",5),Ko(3,"div",6),Ko(4,"div",7),Ko(5,"div",8),Xo(),Xo()}if(2&t){const t=ua();qo("@arrowOpacity",t._getArrowViewState())("@arrowPosition",t._getArrowViewState())("@allowChildren",t._getArrowDirectionState()),dr(2),qo("@indicator",t._getArrowDirectionState()),dr(1),qo("@leftPointer",t._getArrowDirectionState()),dr(1),qo("@rightPointer",t._getArrowDirectionState())}}const UM=["*"],jM=new en("MAT_SORT_DEFAULT_OPTIONS");class WM{}const $M=px(lx(WM));let qM=(()=>{class t extends $M{constructor(t){super(),this._defaultOptions=t,this.sortables=new Map,this._stateChanges=new k,this.start="asc",this._direction="",this.sortChange=new kc}get direction(){return this._direction}set direction(t){this._direction=t}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=wg(t)}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){var e,i,n;if(!t)return"";const s=null!==(i=null!==(e=null==t?void 0:t.disableClear)&&void 0!==e?e:this.disableClear)&&void 0!==i?i:!!(null===(n=this._defaultOptions)||void 0===n?void 0:n.disableClear);let r=function(t,e){let i=["asc","desc"];return"desc"==t&&i.reverse(),e||i.push(""),i}(t.start||this.start,s),o=r.indexOf(this.direction)+1;return o>=r.length&&(o=0),r[o]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)($o(jM,8))},t.\u0275dir=ie({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Oo,me]}),t})();const YM=sx.ENTERING+" "+nx.STANDARD_CURVE,QM={indicator:Ov("indicator",[Mv("active-asc, asc",Dv({transform:"translateY(0px)"})),Mv("active-desc, desc",Dv({transform:"translateY(10px)"})),Rv("active-asc <=> active-desc",Ev(YM))]),leftPointer:Ov("leftPointer",[Mv("active-asc, asc",Dv({transform:"rotate(-45deg)"})),Mv("active-desc, desc",Dv({transform:"rotate(45deg)"})),Rv("active-asc <=> active-desc",Ev(YM))]),rightPointer:Ov("rightPointer",[Mv("active-asc, asc",Dv({transform:"rotate(45deg)"})),Mv("active-desc, desc",Dv({transform:"rotate(-45deg)"})),Rv("active-asc <=> active-desc",Ev(YM))]),arrowOpacity:Ov("arrowOpacity",[Mv("desc-to-active, asc-to-active, active",Dv({opacity:1})),Mv("desc-to-hint, asc-to-hint, hint",Dv({opacity:.54})),Mv("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Dv({opacity:0})),Rv("* => asc, * => desc, * => active, * => hint, * => void",Ev("0ms")),Rv("* <=> *",Ev(YM))]),arrowPosition:Ov("arrowPosition",[Rv("* => desc-to-hint, * => desc-to-active",Ev(YM,Iv([Dv({transform:"translateY(-25%)"}),Dv({transform:"translateY(0)"})]))),Rv("* => hint-to-desc, * => active-to-desc",Ev(YM,Iv([Dv({transform:"translateY(0)"}),Dv({transform:"translateY(25%)"})]))),Rv("* => asc-to-hint, * => asc-to-active",Ev(YM,Iv([Dv({transform:"translateY(25%)"}),Dv({transform:"translateY(0)"})]))),Rv("* => hint-to-asc, * => active-to-asc",Ev(YM,Iv([Dv({transform:"translateY(0)"}),Dv({transform:"translateY(-25%)"})]))),Mv("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Dv({transform:"translateY(0)"})),Mv("hint-to-desc, active-to-desc, desc",Dv({transform:"translateY(-25%)"})),Mv("hint-to-asc, active-to-asc, asc",Dv({transform:"translateY(25%)"}))]),allowChildren:Ov("allowChildren",[Rv("* <=> *",[Fv("@*",Lv(),{optional:!0})])])};let XM=(()=>{class t{constructor(){this.changes=new k,this.sortButtonLabel=t=>`Change sorting for ${t}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({factory:function(){return new t},token:t,providedIn:"root"}),t})();const KM={provide:XM,deps:[[new An,new On,XM]],useFactory:function(t){return t||new XM}};class ZM{}const JM=lx(ZM);let tI=(()=>{class t extends JM{constructor(t,e,i,n,s,r){super(),this._intl=t,this._changeDetectorRef=e,this._sort=i,this._columnDef=n,this._focusMonitor=s,this._elementRef=r,this._showIndicatorHint=!1,this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._handleStateChanges()}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=wg(t)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{const e=!!t;e!==this._showIndicatorHint&&(this._setIndicatorHintVisible(e),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(t){this._viewState=t,this._disableViewStateAnimation&&(this._viewState={toState:t.toState})}_toggleOnInteraction(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(t){this._isDisabled()||32!==t.keyCode&&13!==t.keyCode||(t.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const t=this._viewState.fromState;return(t?`${t}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_handleStateChanges(){this._rerenderSubscription=Y(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)($o(XM),$o(Vl),$o(qM,8),$o("MAT_SORT_HEADER_COLUMN_DEF",8),$o(vv),$o(hl))},t.\u0275cmp=Xt({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&ra("click",function(){return e._handleClick()})("keydown",function(t){return e._handleKeydown(t)})("mouseenter",function(){return e._setIndicatorHintVisible(!0)})("mouseleave",function(){return e._setIndicatorHintVisible(!1)}),2&t&&(zo("aria-sort",e._getAriaSortAttribute()),Sa("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[Oo],attrs:zM,ngContentSelectors:UM,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(t,e){1&t&&(ha(),Qo(0,"div",0),Qo(1,"div",1),pa(2),Xo(),jo(3,GM,6,6,"div",2),Xo()),2&t&&(Sa("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),zo("tabindex",e._isDisabled()?null:0),dr(3),qo("ngIf",e._renderArrow()))},directives:[Jd],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[QM.indicator,QM.leftPointer,QM.rightPointer,QM.arrowOpacity,QM.arrowPosition,QM.allowChildren]},changeDetection:0}),t})(),eI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:[KM],imports:[[yh,ax]]}),t})(),iI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[Kg]]}),t})(),nI=(()=>{class t{constructor(){this.changes=new k,this.optionalLabel="Optional"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({factory:function(){return new t},token:t,providedIn:"root"}),t})();const sI={provide:nI,deps:[[new An,new On,nI]],useFactory:function(t){return t||new nI}};let rI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:[sI,Ox],imports:[[ax,yh,PS,DA,iI,tP,Bx],ax]}),t})();const oI=[[["caption"]],[["colgroup"],["col"]]],aI=["caption","colgroup, col"];function lI(t){return class extends t{constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(t){const e=this._sticky;this._sticky=wg(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const cI=new en("CDK_TABLE");let uI=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)($o(jl))},t.\u0275dir=ie({type:t,selectors:[["","cdkCellDef",""]]}),t})(),dI=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)($o(jl))},t.\u0275dir=ie({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),hI=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)($o(jl))},t.\u0275dir=ie({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class pI{}const mI=lI(pI);let fI=(()=>{class t extends mI{constructor(t){super(),this._table=t,this._stickyEnd=!1}get name(){return this._name}set name(t){this._setNameInput(t)}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){const e=this._stickyEnd;this._stickyEnd=wg(t),this._hasStickyChanged=e!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return t.\u0275fac=function(e){return new(e||t)($o(cI,8))},t.\u0275dir=ie({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,e,i){if(1&t&&(Bc(i,uI,1),Bc(i,dI,1),Bc(i,hI,1)),2&t){let t;Nc(t=Hc())&&(e.cell=t.first),Nc(t=Hc())&&(e.headerCell=t.first),Nc(t=Hc())&&(e.footerCell=t.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[rl([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),Oo]}),t})();class gI{constructor(t,e){const i=e.nativeElement.classList;for(const n of t._columnCssClassName)i.add(n)}}let _I=(()=>{class t extends gI{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)($o(fI),$o(hl))},t.\u0275dir=ie({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[Oo]}),t})(),bI=(()=>{class t extends gI{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)($o(fI),$o(hl))},t.\u0275dir=ie({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[Oo]}),t})();class yI{constructor(){this.tasks=[],this.endTasks=[]}}const vI=new en("_COALESCED_STYLE_SCHEDULER");let wI=(()=>{class t{constructor(t){this._ngZone=t,this._currentSchedule=null,this._destroyed=new k}schedule(t){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(t)}scheduleEnd(t){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(t)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new yI,this._getScheduleObservable().pipe(Hp(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const t=this._currentSchedule;this._currentSchedule=new yI;for(const e of t.tasks)e();for(const e of t.endTasks)e()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?V(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Tf(1))}}return t.\u0275fac=function(e){return new(e||t)(wn(mu))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})(),CI=(()=>{class t{constructor(t,e){this.template=t,this._differs=e}ngOnChanges(t){if(!this._columnsDiffer){const e=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(e).create(),this._columnsDiffer.diff(e)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof kI?t.headerCell.template:this instanceof EI?t.footerCell.template:t.cell.template}}return t.\u0275fac=function(e){return new(e||t)($o(jl),$o(Dl))},t.\u0275dir=ie({type:t,features:[me]}),t})();class xI extends CI{}const SI=lI(xI);let kI=(()=>{class t extends SI{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)($o(jl),$o(Dl),$o(cI,8))},t.\u0275dir=ie({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[Oo,me]}),t})();class AI extends CI{}const OI=lI(AI);let EI=(()=>{class t extends OI{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)($o(jl),$o(Dl),$o(cI,8))},t.\u0275dir=ie({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[Oo,me]}),t})(),TI=(()=>{class t extends CI{constructor(t,e,i){super(t,e),this._table=i}}return t.\u0275fac=function(e){return new(e||t)($o(jl),$o(Dl),$o(cI,8))},t.\u0275dir=ie({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[Oo]}),t})(),PI=(()=>{class t{constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}return t.\u0275fac=function(e){return new(e||t)($o(Kl))},t.\u0275dir=ie({type:t,selectors:[["","cdkCellOutlet",""]]}),t.mostRecentCellOutlet=null,t})(),DI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&ta(0,0)},directives:[PI],encapsulation:2}),t})(),MI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&ta(0,0)},directives:[PI],encapsulation:2}),t})(),II=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)($o(jl))},t.\u0275dir=ie({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),t})();const RI=["top","bottom","left","right"];class LI{constructor(t,e,i,n,s=!0,r=!0,o){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=n,this._isBrowser=s,this._needsPositionStickyOnElement=r,this._positionListener=o,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(t,e){const i=[];for(const n of t)if(n.nodeType===n.ELEMENT_NODE){i.push(n);for(let t=0;t{for(const t of i)this._removeStickyStyle(t,e)})}updateStickyColumns(t,e,i,n=!0){if(!t.length||!this._isBrowser||!e.some(t=>t)&&!i.some(t=>t))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const s=t[0],r=s.children.length,o=this._getCellWidths(s,n),a=this._getStickyStartColumnPositions(o,e),l=this._getStickyEndColumnPositions(o,i),c=e.lastIndexOf(!0),u=i.indexOf(!0);this._scheduleStyleChanges(()=>{const n="rtl"===this.direction,s=n?"right":"left",d=n?"left":"right";for(const o of t)for(let t=0;te[i]?t:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===u?[]:o.slice(u).map((t,e)=>i[e+u]?t:null).reverse()}))})}stickRows(t,e,i){if(!this._isBrowser)return;const n="bottom"===i?t.slice().reverse():t,s="bottom"===i?e.slice().reverse():e,r=[],o=[],a=[];for(let c=0,u=0;c{var t,e;for(let o=0;o{e.some(t=>!t)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1)})}_removeStickyStyle(t,e){for(const i of e)t.style[i]="",t.classList.remove(this._borderCellCss[i]);RI.some(i=>-1===e.indexOf(i)&&t.style[i])?t.style.zIndex=this._getCalculatedZIndex(t):(t.style.zIndex="",this._needsPositionStickyOnElement&&(t.style.position=""),t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,i,n){t.classList.add(this._stickCellCss),n&&t.classList.add(this._borderCellCss[e]),t.style[e]=`${i}px`,t.style.zIndex=this._getCalculatedZIndex(t),this._needsPositionStickyOnElement&&(t.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(t){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const n of RI)t.style[n]&&(i+=e[n]);return i?`${i}`:""}_getCellWidths(t,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],n=t.children;for(let s=0;s0;s--)e[s]&&(i[s]=n,n+=t[s]);return i}_scheduleStyleChanges(t){this._coalescedStyleScheduler?this._coalescedStyleScheduler.schedule(t):t()}}const FI=new en("CDK_SPL");let NI=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)($o(Kl),$o(hl))},t.\u0275dir=ie({type:t,selectors:[["","rowOutlet",""]]}),t})(),VI=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)($o(Kl),$o(hl))},t.\u0275dir=ie({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),BI=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)($o(Kl),$o(hl))},t.\u0275dir=ie({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),HI=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)($o(Kl),$o(hl))},t.\u0275dir=ie({type:t,selectors:[["","noDataRowOutlet",""]]}),t})(),zI=(()=>{class t{constructor(t,e,i,n,s,r,o,a,l,c,u){this._differs=t,this._changeDetectorRef=e,this._elementRef=i,this._dir=s,this._platform=o,this._viewRepeater=a,this._coalescedStyleScheduler=l,this._stickyPositioningListener=c,this._viewportRuler=u,this._onDestroy=new k,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.viewChange=new cp({start:0,end:Number.MAX_VALUE}),n||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=r,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(t){this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=wg(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(t){this._fixedLayout=wg(t),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((t,e)=>this.trackBy?this.trackBy(e.dataIndex,e.data):e),this._viewportRuler&&this._viewportRuler.change().pipe(Hp(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),hS(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const t=this._dataDiffer.diff(this._renderRows);if(!t)return void this._updateNoDataRow();const e=this._rowOutlet.viewContainer;this._viewRepeater?this._viewRepeater.applyChanges(t,e,(t,e,i)=>this._getEmbeddedViewArgs(t.item,i),t=>t.item.data,t=>{1===t.operation&&t.context&&this._renderCellTemplateForItem(t.record.item.rowDef,t.context)}):t.forEachOperation((t,i,n)=>{if(null==t.previousIndex){const e=t.item;this._renderRow(this._rowOutlet,e.rowDef,n,{$implicit:e.data})}else if(null==n)e.remove(i);else{const t=e.get(i);e.move(t,n)}}),this._updateRowIndexContext(),t.forEachIdentityChange(t=>{e.get(t.currentIndex).context.$implicit=t.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}setNoDataRow(t){this._customNoDataRow=t}updateStickyHeaderRowStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");const i=this._headerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,i,"top"),this._headerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyFooterRowStyles(){const t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");const i=this._footerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyColumnStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...t,...e,...i],["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach((t,e)=>{this._addStickyColumnStyles([t],this._headerRowDefs[e])}),this._rowDefs.forEach(t=>{const i=[];for(let n=0;n{this._addStickyColumnStyles([t],this._footerRowDefs[e])}),Array.from(this._columnDefsByName.values()).forEach(t=>t.resetStickyChanged())}_getAllRenderRows(){const t=[],e=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let i=0;i{const s=i&&i.has(n)?i.get(n):[];if(s.length){const t=s.shift();return t.dataIndex=e,t}return{data:t,rowDef:n,dataIndex:e}})}_cacheColumnDefs(){this._columnDefsByName.clear(),GI(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=GI(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=GI(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=GI(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const t=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=t[0]}_renderUpdatedColumns(){const t=(t,e)=>t||!!e.getColumnsDiff(),e=this._rowDefs.reduce(t,!1);e&&this._forceRenderDataRows();const i=this._headerRowDefs.reduce(t,!1);i&&this._forceRenderHeaderRows();const n=this._footerRowDefs.reduce(t,!1);return n&&this._forceRenderFooterRows(),e||i||n}_switchDataSource(t){this._data=[],hS(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t}_observeRenderChanges(){if(!this.dataSource)return;let t;hS(this.dataSource)?t=this.dataSource.connect(this):sS(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=Sp(this.dataSource)),this._renderChangeSubscription=t.pipe(Hp(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,e)=>this._renderRow(this._headerRowOutlet,t,e)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,e)=>this._renderRow(this._footerRowOutlet,t,e)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(t,e){const i=Array.from(e.columns||[]).map(t=>this._columnDefsByName.get(t)),n=i.map(t=>t.sticky),s=i.map(t=>t.stickyEnd);this._stickyStyler.updateStickyColumns(t,n,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(t){const e=[];for(let i=0;i!i.when||i.when(e,t));else{let n=this._rowDefs.find(i=>i.when&&i.when(e,t))||this._defaultRowDef;n&&i.push(n)}return i}_getEmbeddedViewArgs(t,e){return{templateRef:t.rowDef.template,context:{$implicit:t.data},index:e}}_renderRow(t,e,i,n={}){const s=t.viewContainer.createEmbeddedView(e.template,n,i);return this._renderCellTemplateForItem(e,n),s}_renderCellTemplateForItem(t,e){for(let i of this._getCellTemplates(t))PI.mostRecentCellOutlet&&PI.mostRecentCellOutlet._viewContainer.createEmbeddedView(i,e);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const t=this._rowOutlet.viewContainer;for(let e=0,i=t.length;e{const i=this._columnDefsByName.get(e);return t.extractCellTemplate(i)}):[]}_applyNativeTableSections(){const t=this._document.createDocumentFragment(),e=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const i of e){const e=this._document.createElement(i.tag);e.setAttribute("role","rowgroup");for(const t of i.outlets)e.appendChild(t.elementRef.nativeElement);t.appendChild(e)}this._elementRef.nativeElement.appendChild(t)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const t=(t,e)=>t||e.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new LI(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:Sp()).pipe(Hp(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const t=this._customNoDataRow||this._noDataRow;if(t){const e=0===this._rowOutlet.viewContainer.length;if(e!==this._isShowingNoDataRow){const i=this._noDataRowOutlet.viewContainer;e?i.createEmbeddedView(t.templateRef):i.clear(),this._isShowingNoDataRow=e}}}}return t.\u0275fac=function(e){return new(e||t)($o(Dl),$o(Vl),$o(hl),Ki("role"),$o(Xg,8),$o(qu),$o(Ry),$o(gS,8),$o(vI,8),$o(FI,12),$o(yS,8))},t.\u0275cmp=Xt({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,e,i){if(1&t&&(Bc(i,II,1),Bc(i,fI,1),Bc(i,TI,1),Bc(i,kI,1),Bc(i,EI,1)),2&t){let t;Nc(t=Hc())&&(e._noDataRow=t.first),Nc(t=Hc())&&(e._contentColumnDefs=t),Nc(t=Hc())&&(e._contentRowDefs=t),Nc(t=Hc())&&(e._contentHeaderRowDefs=t),Nc(t=Hc())&&(e._contentFooterRowDefs=t)}},viewQuery:function(t,e){if(1&t&&(Vc(NI,3),Vc(VI,3),Vc(BI,3),Vc(HI,3)),2&t){let t;Nc(t=Hc())&&(e._rowOutlet=t.first),Nc(t=Hc())&&(e._headerRowOutlet=t.first),Nc(t=Hc())&&(e._footerRowOutlet=t.first),Nc(t=Hc())&&(e._noDataRowOutlet=t.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,e){2&t&&Sa("cdk-table-fixed-layout",e.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},exportAs:["cdkTable"],features:[rl([{provide:cI,useExisting:t},{provide:gS,useClass:pS},{provide:vI,useClass:wI},{provide:FI,useValue:null}])],ngContentSelectors:aI,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(ha(oI),pa(0),pa(1,1),ta(2,0),ta(3,1),ta(4,2),ta(5,3))},directives:[VI,NI,HI,BI],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),t})();function GI(t,e){return t.concat(Array.from(e))}let UI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[wS]]}),t})();const jI=[[["caption"]],[["colgroup"],["col"]]],WI=["caption","colgroup, col"];let $I=(()=>{class t extends zI{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return t.\u0275fac=function(e){return qI(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(t,e){2&t&&Sa("mat-table-fixed-layout",e.fixedLayout)},exportAs:["matTable"],features:[rl([{provide:gS,useClass:pS},{provide:zI,useExisting:t},{provide:cI,useExisting:t},{provide:vI,useClass:wI}]),Oo],ngContentSelectors:WI,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(ha(jI),pa(0),pa(1,1),ta(2,0),ta(3,1),ta(4,2),ta(5,3))},directives:[VI,NI,HI,BI],styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),t})();const qI=Qi($I);let YI=(()=>{class t extends uI{}return t.\u0275fac=function(e){return QI(e||t)},t.\u0275dir=ie({type:t,selectors:[["","matCellDef",""]],features:[rl([{provide:uI,useExisting:t}]),Oo]}),t})();const QI=Qi(YI);let XI=(()=>{class t extends dI{}return t.\u0275fac=function(e){return KI(e||t)},t.\u0275dir=ie({type:t,selectors:[["","matHeaderCellDef",""]],features:[rl([{provide:dI,useExisting:t}]),Oo]}),t})();const KI=Qi(XI);let ZI=(()=>{class t extends fI{get name(){return this._name}set name(t){this._setNameInput(t)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return t.\u0275fac=function(e){return JI(e||t)},t.\u0275dir=ie({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[rl([{provide:fI,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),Oo]}),t})();const JI=Qi(ZI);let tR=(()=>{class t extends _I{}return t.\u0275fac=function(e){return eR(e||t)},t.\u0275dir=ie({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[Oo]}),t})();const eR=Qi(tR);let iR=(()=>{class t extends bI{}return t.\u0275fac=function(e){return nR(e||t)},t.\u0275dir=ie({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[Oo]}),t})();const nR=Qi(iR);let sR=(()=>{class t extends kI{}return t.\u0275fac=function(e){return rR(e||t)},t.\u0275dir=ie({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[rl([{provide:kI,useExisting:t}]),Oo]}),t})();const rR=Qi(sR);let oR=(()=>{class t extends TI{}return t.\u0275fac=function(e){return aR(e||t)},t.\u0275dir=ie({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[rl([{provide:TI,useExisting:t}]),Oo]}),t})();const aR=Qi(oR);let lR=(()=>{class t extends DI{}return t.\u0275fac=function(e){return cR(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[rl([{provide:DI,useExisting:t}]),Oo],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&ta(0,0)},directives:[PI],encapsulation:2}),t})();const cR=Qi(lR);let uR=(()=>{class t extends MI{}return t.\u0275fac=function(e){return dR(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[rl([{provide:MI,useExisting:t}]),Oo],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&ta(0,0)},directives:[PI],encapsulation:2}),t})();const dR=Qi(uR);let hR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[UI,ax],ax]}),t})();class pR extends dS{constructor(t=[]){super(),this._renderData=new cp([]),this._filter=new cp(""),this._internalPageChanges=new k,this._renderChangesSubscription=null,this.sortingDataAccessor=(t,e)=>{const i=t[e];if(xg(i)){const t=Number(i);return t<9007199254740991?t:i}return i},this.sortData=(t,e)=>{const i=e.active,n=e.direction;return i&&""!=n?t.sort((t,e)=>{let s=this.sortingDataAccessor(t,i),r=this.sortingDataAccessor(e,i);const o=typeof s,a=typeof r;o!==a&&("number"===o&&(s+=""),"number"===a&&(r+=""));let l=0;return null!=s&&null!=r?s>r?l=1:s{const i=Object.keys(t).reduce((e,i)=>e+t[i]+"\u25ec","").toLowerCase(),n=e.trim().toLowerCase();return-1!=i.indexOf(n)},this._data=new cp(t),this._updateChangeSubscription()}get data(){return this._data.value}set data(t){this._data.next(t),this._renderChangesSubscription||this._filterData(t)}get filter(){return this._filter.value}set filter(t){this._filter.next(t),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(t){this._sort=t,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(t){this._paginator=t,this._updateChangeSubscription()}_updateChangeSubscription(){var t;const e=this._sort?Y(this._sort.sortChange,this._sort.initialized):Sp(null),i=this._paginator?Y(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Sp(null),n=hD([this._data,this._filter]).pipe(E(([t])=>this._filterData(t))),s=hD([n,e]).pipe(E(([t])=>this._orderData(t))),r=hD([s,i]).pipe(E(([t])=>this._pageData(t)));null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=r.subscribe(t=>this._renderData.next(t))}_filterData(t){return this.filteredData=null==this.filter||""===this.filter?t:t.filter(t=>this.filterPredicate(t,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(t){return this.sort?this.sortData(t.slice(),this.sort):t}_pageData(t){if(!this.paginator)return t;const e=this.paginator.pageIndex*this.paginator.pageSize;return t.slice(e,e+this.paginator.pageSize)}_updatePaginator(t){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=t,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,i=Math.min(e.pageIndex,t);i!==e.pageIndex&&(e.pageIndex=i,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var t;null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=null}}class mR extends pR{}function fR(t,e){1&t&&pa(0)}const gR=["*"];function _R(t,e){}const bR=function(t){return{animationDuration:t}},yR=function(t,e){return{value:t,params:e}},vR=["tabBodyWrapper"],wR=["tabHeader"];function CR(t,e){}function xR(t,e){1&t&&jo(0,CR,0,0,"ng-template",9),2&t&&qo("cdkPortalOutlet",ua().$implicit.templateLabel)}function SR(t,e){1&t&&Na(0),2&t&&Va(ua().$implicit.textLabel)}function kR(t,e){if(1&t){const t=ea();Qo(0,"div",6),ra("click",function(){Be(t);const i=e.$implicit,n=e.index,s=ua(),r=Wo(1);return s._handleClick(i,r,n)})("cdkFocusChange",function(i){Be(t);const n=e.index;return ua()._tabFocusChanged(i,n)}),Qo(1,"div",7),jo(2,xR,1,1,"ng-template",8),jo(3,SR,1,1,"ng-template",8),Xo(),Xo()}if(2&t){const t=e.$implicit,i=e.index,n=ua();Sa("mat-tab-label-active",n.selectedIndex==i),qo("id",n._getTabLabelId(i))("disabled",t.disabled)("matRippleDisabled",t.disabled||n.disableRipple),zo("tabIndex",n._getTabIndex(t,i))("aria-posinset",i+1)("aria-setsize",n._tabs.length)("aria-controls",n._getTabContentId(i))("aria-selected",n.selectedIndex==i)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),dr(2),qo("ngIf",t.templateLabel),dr(1),qo("ngIf",!t.templateLabel)}}function AR(t,e){if(1&t){const t=ea();Qo(0,"mat-tab-body",10),ra("_onCentered",function(){return Be(t),ua()._removeTabBodyWrapperHeight()})("_onCentering",function(e){return Be(t),ua()._setTabBodyWrapperHeight(e)}),Xo()}if(2&t){const t=e.$implicit,i=e.index,n=ua();Sa("mat-tab-body-active",n.selectedIndex==i),qo("id",n._getTabContentId(i))("content",t.content)("position",t.position)("origin",t.origin)("animationDuration",n.animationDuration),zo("aria-labelledby",n._getTabLabelId(i))}}const OR=["tabListContainer"],ER=["tabList"],TR=["nextPaginator"],PR=["previousPaginator"],DR=["mat-tab-nav-bar",""],MR=new en("MatInkBarPositioner",{providedIn:"root",factory:function(){return t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})}});let IR=(()=>{class t{constructor(t,e,i,n){this._elementRef=t,this._ngZone=e,this._inkBarPositioner=i,this._animationMode=n}alignToElement(t){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(t))}):this._setStyles(t)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(t){const e=this._inkBarPositioner(t),i=this._elementRef.nativeElement;i.style.left=e.left,i.style.width=e.width}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(mu),$o(MR),$o(QC,8))},t.\u0275dir=ie({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&Sa("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t})();const RR=new en("MatTabContent"),LR=new en("MatTabLabel");let FR=(()=>{class t extends ES{}return t.\u0275fac=function(e){return NR(e||t)},t.\u0275dir=ie({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[rl([{provide:LR,useExisting:t}]),Oo]}),t})();const NR=Qi(FR);class VR{}const BR=lx(VR),HR=new en("MAT_TAB_GROUP");let zR=(()=>{class t extends BR{constructor(t,e){super(),this._viewContainerRef=t,this._closestTabGroup=e,this.textLabel="",this._contentPortal=null,this._stateChanges=new k,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(t){this._setTemplateLabelInput(t)}get content(){return this._contentPortal}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new SS(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(t){t&&(this._templateLabel=t)}}return t.\u0275fac=function(e){return new(e||t)($o(Kl),$o(HR))},t.\u0275cmp=Xt({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,i){if(1&t&&(Bc(i,LR,1),Bc(i,RR,3,jl)),2&t){let t;Nc(t=Hc())&&(e.templateLabel=t.first),Nc(t=Hc())&&(e._explicitContent=t.first)}},viewQuery:function(t,e){if(1&t&&Vc(jl,3),2&t){let t;Nc(t=Hc())&&(e._implicitContent=t.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[Oo,me],ngContentSelectors:gR,decls:1,vars:0,template:function(t,e){1&t&&(ha(),jo(0,fR,1,0,"ng-template"))},encapsulation:2}),t})();const GR={translateTab:Ov("translateTab",[Mv("center, void, left-origin-center, right-origin-center",Dv({transform:"none"})),Mv("left",Dv({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),Mv("right",Dv({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),Rv("* => left, * => right, left => center, right => center",Ev("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Rv("void => left-origin-center",[Dv({transform:"translate3d(-100%, 0, 0)"}),Ev("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Rv("void => right-origin-center",[Dv({transform:"translate3d(100%, 0, 0)"}),Ev("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let UR=(()=>{class t extends TS{constructor(t,e,i,n){super(t,e,n),this._host=i,this._centeringSub=d.EMPTY,this._leavingSub=d.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(jp(this._host._isCenterPosition(this._host._position))).subscribe(t=>{t&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)($o(ll),$o(Kl),$o(ut(()=>WR)),$o(qu))},t.\u0275dir=ie({type:t,selectors:[["","matTabBodyHost",""]],features:[Oo]}),t})(),jR=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._dir=e,this._dirChangeSubscription=d.EMPTY,this._translateTabComplete=new k,this._onCentering=new kc,this._beforeCentering=new kc,this._afterLeavingCenter=new kc,this._onCentered=new kc(!0),this.animationDuration="500ms",e&&(this._dirChangeSubscription=e.change.subscribe(t=>{this._computePositionAnimationState(t),i.markForCheck()})),this._translateTabComplete.pipe(Np((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{this._isCenterPosition(t.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(t.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(t){this._positionIndex=t,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(t){const e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}_computePositionAnimationState(t=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}_computePositionFromOrigin(t){const e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(Xg,8),$o(Vl))},t.\u0275dir=ie({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t})(),WR=(()=>{class t extends jR{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(Xg,8),$o(Vl))},t.\u0275cmp=Xt({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){if(1&t&&Vc(TS,1),2&t){let t;Nc(t=Hc())&&(e._portalHost=t.first)}},hostAttrs:[1,"mat-tab-body"],features:[Oo],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(Qo(0,"div",0,1),ra("@translateTab.start",function(t){return e._onTranslateTabStarted(t)})("@translateTab.done",function(t){return e._translateTabComplete.next(t)}),jo(2,_R,0,0,"ng-template",2),Xo()),2&t&&qo("@translateTab",mc(3,yR,e._position,pc(1,bR,e.animationDuration)))},directives:[UR],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[GR.translateTab]}}),t})();const $R=new en("MAT_TABS_CONFIG");let qR=0;class YR{}class QR{constructor(t){this._elementRef=t}}const XR=cx(ux(QR),"primary");let KR=(()=>{class t extends XR{constructor(t,e,i,n){super(t),this._changeDetectorRef=e,this._animationMode=n,this._tabs=new Oc,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=d.EMPTY,this._tabLabelSubscription=d.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new kc,this.focusChange=new kc,this.animationDone=new kc,this.selectedTabChange=new kc(!0),this._groupId=qR++,this.animationDuration=i&&i.animationDuration?i.animationDuration:"500ms",this.disablePagination=!(!i||null==i.disablePagination)&&i.disablePagination,this.dynamicHeight=!(!i||null==i.dynamicHeight)&&i.dynamicHeight}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(t){this._dynamicHeight=wg(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=Cg(t,null)}get animationDuration(){return this._animationDuration}set animationDuration(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement;e.classList.remove(`mat-background-${this.backgroundColor}`),t&&e.classList.add(`mat-background-${t}`),this._backgroundColor=t}ngAfterContentChecked(){const t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){const e=null==this._selectedIndex;e||this.selectedTabChange.emit(this._createChangeEvent(t)),Promise.resolve().then(()=>{this._tabs.forEach((e,i)=>e.isActive=i===t),e||this.selectedIndexChange.emit(t)})}this._tabs.forEach((e,i)=>{e.position=i-t,null==this._selectedIndex||0!=e.position||e.origin||(e.origin=t-this._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const t=this._tabs.toArray();for(let e=0;e{this._tabs.reset(t.filter(t=>t._closestTabGroup===this)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}_focusChanged(t){this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){const e=new YR;return e.index=t,this._tabs&&this._tabs.length&&(e.tab=this._tabs.toArray()[t]),e}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Y(...this._tabs.map(t=>t._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}_getTabLabelId(t){return`mat-tab-label-${this._groupId}-${t}`}_getTabContentId(t){return`mat-tab-content-${this._groupId}-${t}`}_setTabBodyWrapperHeight(t){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const e=this._tabBodyWrapper.nativeElement;e.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(e.style.height=t+"px")}_removeTabBodyWrapperHeight(){const t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()}_handleClick(t,e,i){t.disabled||(this.selectedIndex=e.focusIndex=i)}_getTabIndex(t,e){return t.disabled?null:this.selectedIndex===e?0:-1}_tabFocusChanged(t,e){t&&(this._tabHeader.focusIndex=e)}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(Vl),$o($R,8),$o(QC,8))},t.\u0275dir=ie({type:t,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[Oo]}),t})(),ZR=(()=>{class t extends KR{constructor(t,e,i,n){super(t,e,i,n)}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(Vl),$o($R,8),$o(QC,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-tab-group"]],contentQueries:function(t,e,i){if(1&t&&Bc(i,zR,1),2&t){let t;Nc(t=Hc())&&(e._allTabs=t)}},viewQuery:function(t,e){if(1&t&&(Vc(vR,1),Vc(wR,1)),2&t){let t;Nc(t=Hc())&&(e._tabBodyWrapper=t.first),Nc(t=Hc())&&(e._tabHeader=t.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(t,e){2&t&&Sa("mat-tab-group-dynamic-height",e.dynamicHeight)("mat-tab-group-inverted-header","below"===e.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[rl([{provide:HR,useExisting:t}]),Oo],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(t,e){1&t&&(Qo(0,"mat-tab-header",0,1),ra("indexFocused",function(t){return e._focusChanged(t)})("selectFocusedIndex",function(t){return e.selectedIndex=t}),jo(2,kR,4,14,"div",2),Xo(),Qo(3,"div",3,4),jo(5,AR,1,8,"mat-tab-body",5),Xo()),2&t&&(qo("selectedIndex",e.selectedIndex||0)("disableRipple",e.disableRipple)("disablePagination",e.disablePagination),dr(2),qo("ngForOf",e._tabs),dr(1),Sa("_mat-animation-noopable","NoopAnimations"===e._animationMode),dr(2),qo("ngForOf",e._tabs))},directives:function(){return[rL,Kd,eL,Vx,Cv,Jd,TS,WR]},styles:[".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),t})();class JR{}const tL=lx(JR);let eL=(()=>{class t extends tL{constructor(t){super(),this.elementRef=t}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return t.\u0275fac=function(e){return new(e||t)($o(hl))},t.\u0275dir=ie({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(zo("aria-disabled",!!e.disabled),Sa("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[Oo]}),t})();const iL=Gy({passive:!0});let nL=(()=>{class t{constructor(t,e,i,n,s,r,o){this._elementRef=t,this._changeDetectorRef=e,this._viewportRuler=i,this._dir=n,this._ngZone=s,this._platform=r,this._animationMode=o,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new k,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new k,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new kc,this.indexFocused=new kc,s.runOutsideAngular(()=>{Cf(t.nativeElement,"mouseleave").pipe(Hp(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){t=Cg(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}ngAfterViewInit(){Cf(this._previousPaginator.nativeElement,"touchstart",iL).pipe(Hp(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Cf(this._nextPaginator.nativeElement,"touchstart",iL).pipe(Hp(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const t=this._dir?this._dir.change:Sp(null),e=this._viewportRuler.change(150),i=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new rv(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),Y(t,e,this._items.changes).pipe(Hp(this._destroyed)).subscribe(()=>{Promise.resolve().then(i),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(Hp(this._destroyed)).subscribe(t=>{this.indexFocused.emit(t),this._setTabFocus(t)})}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(t){if(!My(t))switch(t.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}}_onContentChanges(){const t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}_isValidIndex(t){if(!this._items)return!0;const e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();const e=this._tabListContainer.nativeElement,i=this._getLayoutDirection();e.scrollLeft="ltr"==i?0:e.scrollWidth-e.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const t=this.scrollDistance,e="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(e)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;const e=this._items?this._items.toArray()[t]:null;if(!e)return;const i=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:n,offsetWidth:s}=e.elementRef.nativeElement;let r,o;"ltr"==this._getLayoutDirection()?(r=n,o=r+s):(o=this._tabList.nativeElement.offsetWidth-n,r=o-s);const a=this.scrollDistance,l=this.scrollDistance+i;rl&&(this.scrollDistance+=o-l+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,e){e&&null!=e.button&&0!==e.button||(this._stopInterval(),gp(650,100).pipe(Hp(Y(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:e,distance:i}=this._scrollHeader(t);(0===i||i>=e)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(Vl),$o(yS),$o(Xg,8),$o(mu),$o(Ry),$o(QC,8))},t.\u0275dir=ie({type:t,inputs:{disablePagination:"disablePagination"}}),t})(),sL=(()=>{class t extends nL{constructor(t,e,i,n,s,r,o){super(t,e,i,n,s,r,o),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=wg(t)}_itemSelected(t){t.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(Vl),$o(yS),$o(Xg,8),$o(mu),$o(Ry),$o(QC,8))},t.\u0275dir=ie({type:t,inputs:{disableRipple:"disableRipple"},features:[Oo]}),t})(),rL=(()=>{class t extends sL{constructor(t,e,i,n,s,r,o){super(t,e,i,n,s,r,o)}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(Vl),$o(yS),$o(Xg,8),$o(mu),$o(Ry),$o(QC,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,i){if(1&t&&Bc(i,eL,0),2&t){let t;Nc(t=Hc())&&(e._items=t)}},viewQuery:function(t,e){if(1&t&&(Vc(IR,3),Vc(OR,3),Vc(ER,3),Vc(TR,1),Vc(PR,1)),2&t){let t;Nc(t=Hc())&&(e._inkBar=t.first),Nc(t=Hc())&&(e._tabListContainer=t.first),Nc(t=Hc())&&(e._tabList=t.first),Nc(t=Hc())&&(e._nextPaginator=t.first),Nc(t=Hc())&&(e._previousPaginator=t.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&Sa("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[Oo],ngContentSelectors:gR,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(ha(),Qo(0,"div",0,1),ra("click",function(){return e._handlePaginatorClick("before")})("mousedown",function(t){return e._handlePaginatorPress("before",t)})("touchend",function(){return e._stopInterval()}),Ko(2,"div",2),Xo(),Qo(3,"div",3,4),ra("keydown",function(t){return e._handleKeydown(t)}),Qo(5,"div",5,6),ra("cdkObserveContent",function(){return e._onContentChanges()}),Qo(7,"div",7),pa(8),Xo(),Ko(9,"mat-ink-bar"),Xo(),Xo(),Qo(10,"div",8,9),ra("mousedown",function(t){return e._handlePaginatorPress("after",t)})("click",function(){return e._handlePaginatorClick("after")})("touchend",function(){return e._stopInterval()}),Ko(12,"div",2),Xo()),2&t&&(Sa("mat-tab-header-pagination-disabled",e._disableScrollBefore),qo("matRippleDisabled",e._disableScrollBefore||e.disableRipple),dr(5),Sa("_mat-animation-noopable","NoopAnimations"===e._animationMode),dr(5),Sa("mat-tab-header-pagination-disabled",e._disableScrollAfter),qo("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[Vx,Yy,IR],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),t})(),oL=(()=>{class t extends nL{constructor(t,e,i,n,s,r,o){super(t,n,s,e,i,r,o),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement.classList;e.remove(`mat-background-${this.backgroundColor}`),t&&e.add(`mat-background-${t}`),this._backgroundColor=t}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=wg(t)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe(jp(null),Hp(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const t=this._items.toArray();for(let e=0;e{class t extends oL{constructor(t,e,i,n,s,r,o){super(t,e,i,n,s,r,o)}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(Xg,8),$o(mu),$o(Vl),$o(yS),$o(Ry),$o(QC,8))},t.\u0275cmp=Xt({type:t,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(t,e,i){if(1&t&&Bc(i,dL,1),2&t){let t;Nc(t=Hc())&&(e._items=t)}},viewQuery:function(t,e){if(1&t&&(Vc(IR,3),Vc(OR,3),Vc(ER,3),Vc(TR,1),Vc(PR,1)),2&t){let t;Nc(t=Hc())&&(e._inkBar=t.first),Nc(t=Hc())&&(e._tabListContainer=t.first),Nc(t=Hc())&&(e._tabList=t.first),Nc(t=Hc())&&(e._nextPaginator=t.first),Nc(t=Hc())&&(e._previousPaginator=t.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:10,hostBindings:function(t,e){2&t&&Sa("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())("mat-primary","warn"!==e.color&&"accent"!==e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color)},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[Oo],attrs:DR,ngContentSelectors:gR,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(ha(),Qo(0,"div",0,1),ra("click",function(){return e._handlePaginatorClick("before")})("mousedown",function(t){return e._handlePaginatorPress("before",t)})("touchend",function(){return e._stopInterval()}),Ko(2,"div",2),Xo(),Qo(3,"div",3,4),ra("keydown",function(t){return e._handleKeydown(t)}),Qo(5,"div",5,6),ra("cdkObserveContent",function(){return e._onContentChanges()}),Qo(7,"div",7),pa(8),Xo(),Ko(9,"mat-ink-bar"),Xo(),Xo(),Qo(10,"div",8,9),ra("mousedown",function(t){return e._handlePaginatorPress("after",t)})("click",function(){return e._handlePaginatorClick("after")})("touchend",function(){return e._stopInterval()}),Ko(12,"div",2),Xo()),2&t&&(Sa("mat-tab-header-pagination-disabled",e._disableScrollBefore),qo("matRippleDisabled",e._disableScrollBefore||e.disableRipple),dr(5),Sa("_mat-animation-noopable","NoopAnimations"===e._animationMode),dr(5),Sa("mat-tab-header-pagination-disabled",e._disableScrollAfter),qo("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[Vx,Yy,IR],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n'],encapsulation:2}),t})();class lL{}const cL=dx(ux(lx(lL)));let uL=(()=>{class t extends cL{constructor(t,e,i,n,s,r){super(),this._tabNavBar=t,this.elementRef=e,this._focusMonitor=s,this._isActive=!1,this.rippleConfig=i||{},this.tabIndex=parseInt(n)||0,"NoopAnimations"===r&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(t){wg(t)!==this._isActive&&(this._isActive=t,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}}return t.\u0275fac=function(e){return new(e||t)($o(oL),$o(hl),$o(Nx,8),Ki("tabindex"),$o(vv),$o(QC,8))},t.\u0275dir=ie({type:t,inputs:{active:"active"},features:[Oo]}),t})(),dL=(()=>{class t extends uL{constructor(t,e,i,n,s,r,o,a){super(t,e,s,r,o,a),this._tabLinkRipple=new Fx(this,i,e,n),this._tabLinkRipple.setupTriggerEvents(e.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return t.\u0275fac=function(e){return new(e||t)($o(aL),$o(hl),$o(mu),$o(Ry),$o(Nx,8),Ki("tabindex"),$o(vv),$o(QC,8))},t.\u0275dir=ie({type:t,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:7,hostBindings:function(t,e){2&t&&(zo("aria-current",e.active?"page":null)("aria-disabled",e.disabled)("tabIndex",e.tabIndex),Sa("mat-tab-disabled",e.disabled)("mat-tab-label-active",e.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[Oo]}),t})(),hL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[yh,ax,PS,Bx,Qy,Sv],ax]}),t})();const pL=["*",[["mat-toolbar-row"]]],mL=["*","mat-toolbar-row"];class fL{constructor(t){this._elementRef=t}}const gL=cx(fL);let _L=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ie({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),bL=(()=>{class t extends gL{constructor(t,e,i){super(t),this._platform=e,this._document=i}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(Ry),$o(qu))},t.\u0275cmp=Xt({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,i){if(1&t&&Bc(i,_L,1),2&t){let t;Nc(t=Hc())&&(e._toolbarRows=t)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&Sa("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[Oo],ngContentSelectors:mL,decls:2,vars:0,template:function(t,e){1&t&&(ha(pL),pa(0),pa(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%}\n"],encapsulation:2,changeDetection:0}),t})(),yL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[ax],ax]}),t})();class vL extends class{constructor(){this.expansionModel=new mS(!0)}toggle(t){this.expansionModel.toggle(this._trackByValue(t))}expand(t){this.expansionModel.select(this._trackByValue(t))}collapse(t){this.expansionModel.deselect(this._trackByValue(t))}isExpanded(t){return this.expansionModel.isSelected(this._trackByValue(t))}toggleDescendants(t){this.expansionModel.isSelected(this._trackByValue(t))?this.collapseDescendants(t):this.expandDescendants(t)}collapseAll(){this.expansionModel.clear()}expandDescendants(t){let e=[t];e.push(...this.getDescendants(t)),this.expansionModel.select(...e.map(t=>this._trackByValue(t)))}collapseDescendants(t){let e=[t];e.push(...this.getDescendants(t)),this.expansionModel.deselect(...e.map(t=>this._trackByValue(t)))}_trackByValue(t){return this.trackBy?this.trackBy(t):t}}{constructor(t,e){super(),this.getChildren=t,this.options=e,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const t=this.dataNodes.reduce((t,e)=>[...t,...this.getDescendants(e),e],[]);this.expansionModel.select(...t.map(t=>this._trackByValue(t)))}getDescendants(t){const e=[];return this._getDescendants(e,t),e.splice(1)}_getDescendants(t,e){t.push(e);const i=this.getChildren(e);Array.isArray(i)?i.forEach(e=>this._getDescendants(t,e)):sS(i)&&i.pipe(Tf(1),Mm(Boolean)).subscribe(e=>{for(const i of e)this._getDescendants(t,i)})}}const wL=new en("CDK_TREE_NODE_OUTLET_NODE");let CL=(()=>{class t{constructor(t,e){this.viewContainer=t,this._node=e}}return t.\u0275fac=function(e){return new(e||t)($o(Kl),$o(wL,8))},t.\u0275dir=ie({type:t,selectors:[["","cdkTreeNodeOutlet",""]]}),t})();class xL{constructor(t){this.$implicit=t}}let SL=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)($o(jl))},t.\u0275dir=ie({type:t,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),t})(),kL=(()=>{class t{constructor(t,e){this._differs=t,this._changeDetectorRef=e,this._onDestroy=new k,this._levels=new Map,this.viewChange=new cp({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}ngAfterContentChecked(){const t=this._nodeDefs.filter(t=>!t.when);this._defaultNodeDef=t[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(t){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),t||this._nodeOutlet.viewContainer.clear(),this._dataSource=t,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let t;hS(this._dataSource)?t=this._dataSource.connect(this):sS(this._dataSource)?t=this._dataSource:Array.isArray(this._dataSource)&&(t=Sp(this._dataSource)),t&&(this._dataSubscription=t.pipe(Hp(this._onDestroy)).subscribe(t=>this.renderNodeChanges(t)))}renderNodeChanges(t,e=this._dataDiffer,i=this._nodeOutlet.viewContainer,n){const s=e.diff(t);s&&(s.forEachOperation((e,s,r)=>{if(null==e.previousIndex)this.insertNode(t[r],r,i,n);else if(null==r)i.remove(s),this._levels.delete(e.item);else{const t=i.get(s);i.move(t,r)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(t,e){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(i=>i.when&&i.when(e,t))||this._defaultNodeDef}insertNode(t,e,i,n){const s=this._getNodeDef(t,e),r=new xL(t);r.level=this.treeControl.getLevel?this.treeControl.getLevel(t):void 0!==n&&this._levels.has(n)?this._levels.get(n)+1:0,this._levels.set(t,r.level),(i||this._nodeOutlet.viewContainer).createEmbeddedView(s.template,r,e),AL.mostRecentTreeNode&&(AL.mostRecentTreeNode.data=t)}}return t.\u0275fac=function(e){return new(e||t)($o(Dl),$o(Vl))},t.\u0275cmp=Xt({type:t,selectors:[["cdk-tree"]],contentQueries:function(t,e,i){if(1&t&&Bc(i,SL,1),2&t){let t;Nc(t=Hc())&&(e._nodeDefs=t)}},viewQuery:function(t,e){if(1&t&&Vc(CL,3),2&t){let t;Nc(t=Hc())&&(e._nodeOutlet=t.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(t,e){1&t&&ta(0,0)},directives:[CL],encapsulation:2}),t})(),AL=(()=>{class t{constructor(e,i){this._elementRef=e,this._tree=i,this._destroyed=new k,this._dataChanges=new k,t.mostRecentTreeNode=this,this._elementRef.nativeElement.classList.add("cdk-tree-node"),this.role="treeitem"}get role(){return"treeitem"}set role(t){this._elementRef.nativeElement.setAttribute("role",t)}get data(){return this._data}set data(t){t!==this._data&&(this._data=t,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}_setExpanded(t){this._isAriaExpanded=t,this._elementRef.nativeElement.setAttribute("aria-expanded",`${t}`)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}ngOnInit(){this._parentNodeAriaLevel=function(t){let e=t.parentElement;for(;e&&!OL(e);)e=e.parentElement;return e?e.classList.contains("cdk-nested-tree-node")?Cg(e.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngDoCheck(){this.isExpanded!=this._isAriaExpanded&&this._setExpanded(this.isExpanded)}ngOnDestroy(){t.mostRecentTreeNode===this&&(t.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(kL))},t.\u0275dir=ie({type:t,selectors:[["cdk-tree-node"]],inputs:{role:"role"},exportAs:["cdkTreeNode"]}),t.mostRecentTreeNode=null,t})();function OL(t){const e=t.classList;return!(!(null==e?void 0:e.contains("cdk-nested-tree-node"))&&!(null==e?void 0:e.contains("cdk-tree")))}let EL=(()=>{class t extends AL{constructor(t,e,i){super(t,e),this._elementRef=t,this._tree=e,this._differs=i,this._elementRef.nativeElement.classList.add("cdk-nested-tree-node")}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const t=this._tree.treeControl.getChildren(this.data);Array.isArray(t)?this.updateChildrenNodes(t):sS(t)&&t.pipe(Hp(this._destroyed)).subscribe(t=>this.updateChildrenNodes(t)),this.nodeOutlet.changes.pipe(Hp(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngDoCheck(){super.ngDoCheck()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(t){const e=this._getNodeOutlet();t&&(this._children=t),e&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,e.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const t=this._getNodeOutlet();t&&(t.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const t=this.nodeOutlet;return t&&t.find(t=>!t._node||t._node===this)}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(kL),$o(Dl))},t.\u0275dir=ie({type:t,selectors:[["cdk-nested-tree-node"]],contentQueries:function(t,e,i){if(1&t&&Bc(i,CL,1),2&t){let t;Nc(t=Hc())&&(e.nodeOutlet=t)}},inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[rl([{provide:AL,useExisting:t},{provide:wL,useExisting:t}]),Oo]}),t})();const TL=/([A-Za-z%]+)$/;let PL=(()=>{class t{constructor(t,e,i,n){this._treeNode=t,this._tree=e,this._element=i,this._dir=n,this._destroyed=new k,this.indentUnits="px",this._indent=40,this._setPadding(),n&&n.change.pipe(Hp(this._destroyed)).subscribe(()=>this._setPadding(!0)),t._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(t){this._setLevelInput(t)}get indent(){return this._indent}set indent(t){this._setIndentInput(t)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const t=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,e=null==this._level?t:this._level;return"number"==typeof e?`${e*this._indent}${this.indentUnits}`:null}_setPadding(t=!1){const e=this._paddingIndent();if(e!==this._currentPadding||t){const t=this._element.nativeElement,i=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",n="paddingLeft"===i?"paddingRight":"paddingLeft";t.style[i]=e||"",t.style[n]="",this._currentPadding=e}}_setLevelInput(t){this._level=Cg(t,null),this._setPadding()}_setIndentInput(t){let e=t,i="px";if("string"==typeof t){const n=t.split(TL);e=n[0],i=n[1]||i}this.indentUnits=i,this._indent=Cg(e),this._setPadding()}}return t.\u0275fac=function(e){return new(e||t)($o(AL),$o(kL),$o(hl),$o(Xg,8))},t.\u0275dir=ie({type:t,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),t})(),DL=(()=>{class t{constructor(t,e){this._tree=t,this._treeNode=e,this._recursive=!1}get recursive(){return this._recursive}set recursive(t){this._recursive=wg(t)}_toggle(t){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),t.stopPropagation()}}return t.\u0275fac=function(e){return new(e||t)($o(kL),$o(AL))},t.\u0275dir=ie({type:t,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(t,e){1&t&&ra("click",function(t){return e._toggle(t)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),t})(),ML=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({}),t})();const IL=dx(lx(AL));let RL=(()=>{class t extends IL{constructor(t,e,i){super(t,e),this._elementRef=t,this._tree=e,this.tabIndex=Number(i)||0,this._elementRef.nativeElement.classList.add("mat-tree-node")}ngOnInit(){super.ngOnInit()}ngDoCheck(){super.ngDoCheck()}ngOnDestroy(){super.ngOnDestroy()}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(kL),Ki("tabindex"))},t.\u0275dir=ie({type:t,selectors:[["mat-tree-node"]],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[rl([{provide:AL,useExisting:t}]),Oo]}),t})(),LL=(()=>{class t extends SL{}return t.\u0275fac=function(e){return FL(e||t)},t.\u0275dir=ie({type:t,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[rl([{provide:SL,useExisting:t}]),Oo]}),t})();const FL=Qi(LL);let NL=(()=>{class t extends EL{constructor(t,e,i,n){super(t,e,i),this._elementRef=t,this._tree=e,this._differs=i,this._disabled=!1,this.tabIndex=Number(n)||0,this._elementRef.nativeElement.classList.add("mat-nested-tree-node")}get disabled(){return this._disabled}set disabled(t){this._disabled=wg(t)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?t:0}ngOnInit(){super.ngOnInit()}ngDoCheck(){super.ngDoCheck()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(kL),$o(Dl),Ki("tabindex"))},t.\u0275dir=ie({type:t,selectors:[["mat-nested-tree-node"]],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[rl([{provide:EL,useExisting:t},{provide:AL,useExisting:t},{provide:wL,useExisting:t}]),Oo]}),t})(),VL=(()=>{class t extends PL{get level(){return this._level}set level(t){this._setLevelInput(t)}get indent(){return this._indent}set indent(t){this._setIndentInput(t)}}return t.\u0275fac=function(e){return BL(e||t)},t.\u0275dir=ie({type:t,selectors:[["","matTreeNodePadding",""]],inputs:{level:["matTreeNodePadding","level"],indent:["matTreeNodePaddingIndent","indent"]},features:[rl([{provide:PL,useExisting:t}]),Oo]}),t})();const BL=Qi(VL);let HL=(()=>{class t{constructor(t,e){this.viewContainer=t,this._node=e}}return t.\u0275fac=function(e){return new(e||t)($o(Kl),$o(wL,8))},t.\u0275dir=ie({type:t,selectors:[["","matTreeNodeOutlet",""]],features:[rl([{provide:CL,useExisting:t}])]}),t})(),zL=(()=>{class t extends kL{}return t.\u0275fac=function(e){return GL(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["mat-tree"]],viewQuery:function(t,e){if(1&t&&Vc(HL,3),2&t){let t;Nc(t=Hc())&&(e._nodeOutlet=t.first)}},hostAttrs:["role","tree",1,"mat-tree","cdk-tree"],exportAs:["matTree"],features:[rl([{provide:kL,useExisting:t}]),Oo],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(t,e){1&t&&ta(0,0)},directives:[HL],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}\n"],encapsulation:2}),t})();const GL=Qi(zL);let UL=(()=>{class t extends DL{get recursive(){return this._recursive}set recursive(t){this._recursive=wg(t)}}return t.\u0275fac=function(e){return jL(e||t)},t.\u0275dir=ie({type:t,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[rl([{provide:DL,useExisting:t}]),Oo]}),t})();const jL=Qi(UL);let WL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[ML,ax],ax]}),t})();class $L extends dS{constructor(){super(...arguments),this._data=new cp([])}get data(){return this._data.value}set data(t){this._data.next(t)}connect(t){return Y(t.viewChange,this._data).pipe(E(()=>this.data))}disconnect(){}}function qL(...t){return e=>{let i;return"function"==typeof t[t.length-1]&&(i=t.pop()),e.lift(new YL(t,i))}}class YL{constructor(t,e){this.observables=t,this.project=e}call(t,e){return e.subscribe(new QL(t,this.observables,this.project))}}class QL extends lD{constructor(t,e,i){super(t),this.observables=e,this.project=i,this.toRespond=[];const n=e.length;this.values=new Array(n);for(let s=0;s0){const t=n.indexOf(i);-1!==t&&n.splice(t,1)}}notifyComplete(){}_next(t){if(0===this.toRespond.length){const e=[t,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(t){let e;try{e=this.project.apply(this,t)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}function XL(t,e){let i=!1;return arguments.length>=2&&(i=!0),function(n){return n.lift(new KL(t,e,i))}}class KL{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new ZL(t,this.accumulator,this.seed,this.hasSeed))}}class ZL extends m{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)}}class JL{constructor(t){this.predicate=t}call(t,e){return e.subscribe(new tF(t,this.predicate))}}class tF extends m{constructor(t,e){super(t),this.predicate=e,this.skipping=!0,this.index=0}_next(t){const e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)}tryCallPredicate(t){try{const e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(e){this.destination.error(e)}}}const eF=["youtubeContainer"];let iF=(()=>{class t{constructor(t,e){this._ngZone=t,this._youtubeContainer=new k,this._destroyed=new k,this._playerChanges=new cp(void 0),this._videoId=new cp(void 0),this._height=new cp(390),this._width=new cp(640),this._startSeconds=new cp(void 0),this._endSeconds=new cp(void 0),this._suggestedQuality=new cp(void 0),this._playerVars=new cp(void 0),this.ready=this._getLazyEmitter("onReady"),this.stateChange=this._getLazyEmitter("onStateChange"),this.error=this._getLazyEmitter("onError"),this.apiChange=this._getLazyEmitter("onApiChange"),this.playbackQualityChange=this._getLazyEmitter("onPlaybackQualityChange"),this.playbackRateChange=this._getLazyEmitter("onPlaybackRateChange"),this._isBrowser=vh(e)}get videoId(){return this._videoId.value}set videoId(t){this._videoId.next(t)}get height(){return this._height.value}set height(t){this._height.next(t||390)}get width(){return this._width.value}set width(t){this._width.next(t||640)}set startSeconds(t){this._startSeconds.next(t)}set endSeconds(t){this._endSeconds.next(t)}set suggestedQuality(t){this._suggestedQuality.next(t)}get playerVars(){return this._playerVars.value}set playerVars(t){this._playerVars.next(t)}ngOnInit(){if(!this._isBrowser)return;let t=Sp(!0);if(!window.YT||!window.YT.Player){const e=new k;this._existingApiReadyCallback=window.onYouTubeIframeAPIReady,window.onYouTubeIframeAPIReady=()=>{this._existingApiReadyCallback&&this._existingApiReadyCallback(),this._ngZone.run(()=>e.next(!0))},t=e.pipe(Tf(1),jp(!1))}const e=function(t,e,i,n,s,r,o){const a=hD([e,r]).pipe(qL(hD([n,s])),E(([t,e])=>{const[i,n]=t,[s,r]=e;return i?{videoId:i,playerVars:n,width:s,height:r}:void 0}));return hD([t,a,Sp(o)]).pipe(b(function(...t){let e=null;return"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&l(t[0])&&(t=t[0].slice()),i=>i.lift.call(V([i,...t]),new pD(e))}(i),(c=([t,e])=>!e,t=>t.lift(new JL(c))),E(([t])=>t)),XL(nF,void 0),Np());var c}(this._youtubeContainer,this._videoId,t,this._width,this._height,this._playerVars,this._ngZone).pipe(If(t=>{this._playerChanges.next(t)}),(i=t=>{sF(t)||t.destroy()},W(t=>t?sF(t)?Sp(t):new v(e=>{let n=!1,s=!1;const r=t=>{s=!0,n||(t.target.removeEventListener("onReady",r),e.next(t.target))};return t.addEventListener("onReady",r),()=>{n=!0,s||i(t)}}).pipe(Tf(1),jp(void 0)):Sp(void 0))),Hp(this._destroyed),et(new k));var i;e.subscribe(t=>{this._player=t,t&&this._pendingPlayerState&&this._initializePlayer(t,this._pendingPlayerState),this._pendingPlayerState=void 0}),function(t,e,i){hD([t,e,i]).subscribe(([t,e,i])=>t&&t.setSize(e,i))}(e,this._width,this._height),function(t,e){hD([t,e]).subscribe(([t,e])=>t&&e&&t.setPlaybackQuality(e))}(e,this._suggestedQuality),function(t,e,i,n,s,r){const o=hD([i,n]).pipe(E(([t,e])=>({startSeconds:t,endSeconds:e}))),a=o.pipe(rF(t,t=>!!t&&!function(t){const e=t.getPlayerState();return-1!==e&&5!==e}(t))),l=e.pipe(rF(t,(t,e)=>!!t&&t.videoId!==e));Y(t.pipe(rF(hD([e,o]),([t,e],i)=>!(!i||t==i.videoId&&!e.startSeconds&&!e.endSeconds))),l,a).pipe(qL(hD([t,e,o,s])),E(([t,e])=>e),Hp(r)).subscribe(([t,e,i,n])=>{e&&t&&(t.videoId=e,t.cueVideoById(Object.assign({videoId:e,suggestedQuality:n},i)))})}(e,this._videoId,this._startSeconds,this._endSeconds,this._suggestedQuality,this._destroyed),e.connect()}createEventsBoundInZone(){return{}}ngAfterViewInit(){this._youtubeContainer.next(this.youtubeContainer.nativeElement)}ngOnDestroy(){this._player&&(this._player.destroy(),window.onYouTubeIframeAPIReady=this._existingApiReadyCallback),this._playerChanges.complete(),this._videoId.complete(),this._height.complete(),this._width.complete(),this._startSeconds.complete(),this._endSeconds.complete(),this._suggestedQuality.complete(),this._youtubeContainer.complete(),this._playerVars.complete(),this._destroyed.next(),this._destroyed.complete()}playVideo(){this._player?this._player.playVideo():this._getPendingState().playbackState=1}pauseVideo(){this._player?this._player.pauseVideo():this._getPendingState().playbackState=2}stopVideo(){this._player?this._player.stopVideo():this._getPendingState().playbackState=5}seekTo(t,e){this._player?this._player.seekTo(t,e):this._getPendingState().seek={seconds:t,allowSeekAhead:e}}mute(){this._player?this._player.mute():this._getPendingState().muted=!0}unMute(){this._player?this._player.unMute():this._getPendingState().muted=!1}isMuted(){return this._player?this._player.isMuted():!!this._pendingPlayerState&&!!this._pendingPlayerState.muted}setVolume(t){this._player?this._player.setVolume(t):this._getPendingState().volume=t}getVolume(){return this._player?this._player.getVolume():this._pendingPlayerState&&null!=this._pendingPlayerState.volume?this._pendingPlayerState.volume:0}setPlaybackRate(t){if(this._player)return this._player.setPlaybackRate(t);this._getPendingState().playbackRate=t}getPlaybackRate(){return this._player?this._player.getPlaybackRate():this._pendingPlayerState&&null!=this._pendingPlayerState.playbackRate?this._pendingPlayerState.playbackRate:0}getAvailablePlaybackRates(){return this._player?this._player.getAvailablePlaybackRates():[]}getVideoLoadedFraction(){return this._player?this._player.getVideoLoadedFraction():0}getPlayerState(){if(this._isBrowser&&window.YT)return this._player?this._player.getPlayerState():this._pendingPlayerState&&null!=this._pendingPlayerState.playbackState?this._pendingPlayerState.playbackState:-1}getCurrentTime(){return this._player?this._player.getCurrentTime():this._pendingPlayerState&&this._pendingPlayerState.seek?this._pendingPlayerState.seek.seconds:0}getPlaybackQuality(){return this._player?this._player.getPlaybackQuality():"default"}getAvailableQualityLevels(){return this._player?this._player.getAvailableQualityLevels():[]}getDuration(){return this._player?this._player.getDuration():0}getVideoUrl(){return this._player?this._player.getVideoUrl():""}getVideoEmbedCode(){return this._player?this._player.getVideoEmbedCode():""}_getPendingState(){return this._pendingPlayerState||(this._pendingPlayerState={}),this._pendingPlayerState}_initializePlayer(t,e){const{playbackState:i,playbackRate:n,volume:s,muted:r,seek:o}=e;switch(i){case 1:t.playVideo();break;case 2:t.pauseVideo();break;case 5:t.stopVideo()}null!=n&&t.setPlaybackRate(n),null!=s&&t.setVolume(s),null!=r&&(r?t.mute():t.unMute()),null!=o&&t.seekTo(o.seconds,o.allowSeekAhead)}_getLazyEmitter(t){return this._playerChanges.pipe(Rp(e=>e?bp(i=>{e.addEventListener(t,i)},i=>{try{e.removeEventListener&&e.removeEventListener(t,i)}catch(i2){}}):Sp()),t=>new v(e=>t.subscribe({next:t=>this._ngZone.run(()=>e.next(t)),error:t=>e.error(t),complete:()=>e.complete()})),Hp(this._destroyed))}}return t.\u0275fac=function(e){return new(e||t)($o(mu),$o(Jc))},t.\u0275cmp=Xt({type:t,selectors:[["youtube-player"]],viewQuery:function(t,e){if(1&t&&Vc(eF,1),2&t){let t;Nc(t=Hc())&&(e.youtubeContainer=t.first)}},inputs:{videoId:"videoId",height:"height",width:"width",startSeconds:"startSeconds",endSeconds:"endSeconds",suggestedQuality:"suggestedQuality",playerVars:"playerVars",showBeforeIframeApiLoads:"showBeforeIframeApiLoads"},outputs:{ready:"ready",stateChange:"stateChange",error:"error",apiChange:"apiChange",playbackQualityChange:"playbackQualityChange",playbackRateChange:"playbackRateChange"},decls:2,vars:0,consts:[["youtubeContainer",""]],template:function(t,e){1&t&&Ko(0,"div",null,0)},encapsulation:2,changeDetection:0}),t})();function nF(t,[e,i,n]){if(t&&i&&t.playerVars!==i.playerVars)t.destroy();else{if(!i)return void(t&&t.destroy());if(t)return t}const s=n.runOutsideAngular(()=>new YT.Player(e,i));return s.videoId=i.videoId,s.playerVars=i.playerVars,s}function sF(t){return"getPlayerStatus"in t}function rF(t,e){return b(qL(t),Mm(([t,i])=>e(i,t)),E(([t])=>t))}let oF=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({}),t})();const aF=["content"];function lF(t,e){if(1&t&&Ko(0,"formly-field",2),2&t){const t=e.$implicit;qo("form",t.form)("options",t.options)("model",t.model)("field",t)}}const cF=["*"],uF=["container"];function dF(t,e){}const hF=["fieldComponent"];function pF(t,e){1&t&&Ko(0,"formly-field",1),2&t&&qo("field",e.$implicit)}function mF(t,e,i){if(e.id)return e.id;let n=e.type;return!n&&e.template&&(n="template"),[t,n,e.key,i].join("_")}function fF(t){if(!t.key)return[];if(!t._keyPath||t._keyPath.key!==t.key){let e=[];if("string"==typeof t.key){const i=-1===t.key.indexOf("[")?t.key:t.key.replace(/\[(\w+)\]/g,".$1");e=-1!==i.indexOf(".")?i.split("."):[i]}else e=Array.isArray(t.key)?t.key.slice(0):[`${t.key}`];t._keyPath={key:t.key,path:e}}return t._keyPath.path.slice(0)}const gF=["required","pattern","minLength","maxLength","min","max"];function _F(t,e){let i=fF(t);if(0===i.length)return;let n=t;for(;n.parent;)n=n.parent,i=[...fF(n),...i];if(void 0===e&&t.resetOnHide){const t=i.pop();delete i.reduce((t,e)=>t[e]||{},n.model)[t]}else!function(t,e,i){for(let n=0;n{for(let s in e)vF(t[s])||""===t[s]?t[s]=SF(e[s]):(n=e[s],xF(i=t[s])&&xF(n)&&Object.getPrototypeOf(i)===Object.getPrototypeOf(n)&&!Array.isArray(i)&&!Array.isArray(n)&&yF(t[s],e[s]));var i,n}),t}function vF(t){return null==t}function wF(t){return void 0===t}function CF(t){return"function"==typeof t}function xF(t){return null!=t&&"object"==typeof t}function SF(t){if(!xF(t)||sS(t)||t.changingThisBreaksApplicationSecurity||-1!==["RegExp","FileList","File","Blob"].indexOf(t.constructor.name))return t;if(t._isAMomentObject&&CF(t.clone))return t.clone();if(t instanceof ay)return null;if(t instanceof Date)return new Date(t.getTime());if(Array.isArray(t))return t.slice(0).map(t=>SF(t));const e=Object.getPrototypeOf(t);let i=Object.create(e);return i=Object.setPrototypeOf(i,e),Object.keys(t).reduce((e,i)=>{const n=Object.getOwnPropertyDescriptor(t,i);return n.get?Object.defineProperty(e,i,n):e[i]=SF(t[i]),e},i)}function kF(t,e,i){Object.defineProperty(t,e,{enumerable:!1,writable:!0,configurable:!0}),t[e]=i}function AF(t,e,i){t._observers||kF(t,"_observers",{}),t._observers[e]||(t._observers[e]=[]);let n=t._observers[e];return-1===n.indexOf(i)&&(n.push(i),i({currentValue:t[e],firstChange:!0}),1===n.length&&(kF(t,`___$${e}`,t[e]),Object.defineProperty(t,e,{configurable:!0,get:()=>t[`___$${e}`],set:i=>{if(i!==t[`___$${e}`]){const s=t[`___$${e}`];t[`___$${e}`]=i,n.forEach(t=>t({previousValue:s,currentValue:i,firstChange:!1}))}}}))),()=>n.splice(n.indexOf(i),1)}function OF(t,e){const i=t._updateTreeValidity.bind(t);let n={called:!1,emitEvent:!1};t._updateTreeValidity=({emitEvent:t}={emitEvent:!0})=>n={called:!0,emitEvent:t||n.emitEvent},e(),n.called&&i({emitEvent:n.emitEvent}),t._updateTreeValidity=i}const EF=new en("FORMLY_CONFIG");let TF=(()=>{class t{constructor(){this.types={},this.validators={},this.wrappers={},this.messages={},this.templateManipulators={preWrapper:[],postWrapper:[]},this.extras={checkExpressionOn:"changeDetectionCheck",lazyRender:!1,showError:function(t){return t.formControl&&t.formControl.invalid&&(t.formControl.touched||t.options.parentForm&&t.options.parentForm.submitted||!(!t.field.validation||!t.field.validation.show))}},this.extensions={}}addConfig(t){t.types&&t.types.forEach(t=>this.setType(t)),t.validators&&t.validators.forEach(t=>this.setValidator(t)),t.wrappers&&t.wrappers.forEach(t=>this.setWrapper(t)),t.manipulators&&(console.warn("NgxFormly: passing 'manipulators' config is deprecated, use custom extension instead."),t.manipulators.forEach(t=>this.setManipulator(t))),t.validationMessages&&t.validationMessages.forEach(t=>this.addValidatorMessage(t.name,t.message)),t.extensions&&t.extensions.forEach(t=>this.extensions[t.name]=t.extension),t.extras&&(this.extras=Object.assign({},this.extras,t.extras))}setType(t){Array.isArray(t)?t.forEach(t=>this.setType(t)):(this.types[t.name]||(this.types[t.name]={name:t.name}),["component","extends","defaultOptions","wrappers"].forEach(e=>{t.hasOwnProperty(e)&&(this.types[t.name][e]=t[e])}))}getType(t){if(!this.types[t])throw new Error(`[Formly Error] The type "${t}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.mergeExtendedType(t),this.types[t]}getMergedField(t={}){const e=this.getType(t.type);e.defaultOptions&&yF(t,e.defaultOptions);const i=e.extends&&this.getType(e.extends).defaultOptions;i&&yF(t,i),t&&t.optionsTypes&&t.optionsTypes.forEach(e=>{const i=this.getType(e).defaultOptions;i&&yF(t,i)});const n=this.resolveFieldTypeRef(t);n&&n.instance&&n.instance.defaultOptions&&yF(t,n.instance.defaultOptions),!t.wrappers&&e.wrappers&&(t.wrappers=[...e.wrappers])}resolveFieldTypeRef(t={}){if(!t.type)return null;const e=this.getType(t.type);if(!e.component||e._componentRef)return e._componentRef;const{_resolver:i,_injector:n}=t.parent.options,s=i.resolveComponentFactory(e.component).create(n);return kF(e,"_componentRef",s),s.destroy(),e._componentRef}setWrapper(t){this.wrappers[t.name]=t,t.types&&t.types.forEach(e=>{this.setTypeWrapper(e,t.name)})}getWrapper(t){if(!this.wrappers[t])throw new Error(`[Formly Error] The wrapper "${t}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.wrappers[t]}setTypeWrapper(t,e){this.types[t]||(this.types[t]={}),this.types[t].wrappers||(this.types[t].wrappers=[]),-1===this.types[t].wrappers.indexOf(e)&&this.types[t].wrappers.push(e)}setValidator(t){this.validators[t.name]=t}getValidator(t){if(!this.validators[t])throw new Error(`[Formly Error] The validator "${t}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.validators[t]}addValidatorMessage(t,e){this.messages[t]=e}getValidatorMessage(t){return this.messages[t]}setManipulator(t){(new t.class)[t.method](this)}mergeExtendedType(t){if(!this.types[t].extends)return;const e=this.getType(this.types[t].extends);this.types[t].component||(this.types[t].component=e.component),this.types[t].wrappers||(this.types[t].wrappers=e.wrappers)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"}),t.ngInjectableDef=bt({factory:function(){return new t},token:t,providedIn:"root"}),t})(),PF=(()=>{class t{constructor(t,e,i){this.formlyConfig=t,this.componentFactoryResolver=e,this.injector=i}buildForm(t,e=[],i,n){if(!this.formlyConfig.extensions.core)throw new Error("NgxFormly: missing `forRoot()` call. use `forRoot()` when registering the `FormlyModule`.");const s={fieldGroup:e,model:i,formControl:t,options:this._setOptions(n)};OF(t,()=>this._buildForm(s)),s.options._checkField(s,!0)}_buildForm(t){this.getExtensions().forEach(e=>e.prePopulate&&e.prePopulate(t)),this.getExtensions().forEach(e=>e.onPopulate&&e.onPopulate(t)),t.fieldGroup&&t.fieldGroup.forEach(t=>this._buildForm(t)),this.getExtensions().forEach(e=>e.postPopulate&&e.postPopulate(t))}getExtensions(){return Object.keys(this.formlyConfig.extensions).map(t=>this.formlyConfig.extensions[t])}_setOptions(t){return(t=t||{}).formState=t.formState||{},t.showError||(t.showError=this.formlyConfig.extras.showError),t.fieldChanges||kF(t,"fieldChanges",new k),t._resolver||kF(t,"_resolver",this.componentFactoryResolver),t._injector||kF(t,"_injector",this.injector),t._hiddenFieldsForCheck||(t._hiddenFieldsForCheck=[]),t._markForCheck||(t._markForCheck=e=>{e._componentRefs&&e._componentRefs.forEach(t=>{t.injector.get(Vl).markForCheck()}),e.fieldGroup&&e.fieldGroup.forEach(e=>t._markForCheck(e))}),t._buildField||(t._buildField=t=>(this.buildForm(t.form,t.fieldGroup,t.model,t.options),t)),t}}return t.\u0275fac=function(e){return new(e||t)(wn(TF),wn(ll),wn(ko))},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"}),t.ngInjectableDef=bt({factory:function(){return new t(Cn(TF),Cn(ll),Cn(lo))},token:t,providedIn:"root"}),t})();function DF(t,e=!1){const i=t.formControl.parent;if(!i)return;const n=t.formControl,s={emitEvent:e};if(i instanceof uy){const t=i.controls.findIndex(t=>t===n);-1!==t&&LF(i,s,()=>i.removeAt(t))}else if(i instanceof cy){const e=fF(t),r=e[e.length-1];i.get([r])===n&&LF(i,s,()=>i.removeControl(r))}n.setParent(null)}function MF(t){if(t.formControl)return t.formControl;if(!1===t.shareFormControl)return null;const e=t.parent.formControl;return e?e.get(fF(t)):null}function IF(t,e,i=!1){(e=e||t.formControl)._fields||kF(e,"_fields",[]),-1===e._fields.indexOf(t)&&e._fields.push(t),!t.formControl&&e&&(kF(t,"formControl",e),t.templateOptions.disabled=!!t.templateOptions.disabled,AF(t.templateOptions,"disabled",({firstChange:e,currentValue:i})=>{e||(i?t.formControl.disable():t.formControl.enable())}),e.registerOnDisabledChange&&e.registerOnDisabledChange(e=>{t.templateOptions.___$disabled=e,t.options&&t.options._markForCheck(t)}));let n=t.parent.formControl;if(!n||!t.key)return;const s=fF(t),r=bF(t);vF(e.value)&&vF(r)||e.value===r||!(e instanceof ly)||e.patchValue(r);for(let a=0;an.setControl(t,new cy({}))),n=n.get([t])}const o=s[s.length-1];t._hide||n.get([o])===e||LF(n,{emitEvent:i},()=>n.setControl(o,e))}function RF(t){const e=t.status;t.updateValueAndValidity({emitEvent:!1}),e!==t.status&&t.statusChanges.emit(t.status)}function LF(t,e,i){t instanceof cy&&!t.__patchForEachChild&&(kF(t,"__patchForEachChild",!0),t._forEachChild=e=>{Object.keys(t.controls).forEach(i=>t.controls[i]&&e(t.controls[i],i))});const n=t.updateValueAndValidity.bind(t);!1===e.emitEvent&&(t.updateValueAndValidity=t=>{n(Object.assign({},t||{},{emitEvent:!1}))}),i(),!1===e.emitEvent&&(t.updateValueAndValidity=n)}function FF(t){t._fields&&delete t._fields,t.setValidators(null),t.setAsyncValidators(null),(t instanceof cy||t instanceof uy)&&Object.keys(t.controls).forEach(e=>FF(t.controls[e]))}let NF=(()=>{class t{constructor(t,e,i,n,s){this.formlyBuilder=t,this.formlyConfig=e,this.ngZone=i,this.parentFormGroup=s,this.modelChange=new kc,this.immutable=!1,this._modelChangeValue={},this.modelChangeSubs=[],this.modelChange$=new k,this.modelChangeSub=this.modelChange$.pipe(Rp(()=>this.ngZone.onStable.asObservable().pipe(Tf(1)))).subscribe(()=>this.ngZone.runGuarded(()=>{this.checkExpressionChange(),this.modelChange.emit(this._modelChangeValue=SF(this.model))})),null!==n&&console.warn("NgxFormly: passing 'immutable' attribute to 'formly-form' component is deprecated since v5.5, enable immutable mode through NgModule declaration instead."),this.immutable=null!==n||!!e.extras.immutable}set model(t){this._model=this.immutable?SF(t):t}get model(){return this._model||(this._model={}),this._model}set fields(t){this._fields=this.immutable?SF(t):t}get fields(){return this._fields||[]}set options(t){this._options=this.immutable?SF(t):t}get options(){return this._options}set content(t){if(t){let e=!1,i=t.nativeElement.nextSibling;for(;i&&!e;)(i.nodeType===Node.ELEMENT_NODE||i.nodeType===Node.TEXT_NODE&&i.textContent&&""!==i.textContent.trim())&&(e=!0),i=i.nextSibling;e&&console.warn("NgxFormly: content projection for 'formly-form' component is deprecated since v5.5, you should avoid passing content inside the 'formly-form' tag.")}}ngDoCheck(){"changeDetectionCheck"===this.formlyConfig.extras.checkExpressionOn&&this.checkExpressionChange()}ngOnChanges(t){t.model&&this.field&&(this.field.model=this.model),t.fields&&this.form&&FF(this.form),(t.fields||t.form||t.model&&this._modelChangeValue!==t.model.currentValue)&&(this.form=this.form||new cy({}),this.setOptions(),this.options.updateInitialValue(),this.clearModelSubscriptions(),this.formlyBuilder.buildForm(this.form,this.fields,this.model,this.options),this.trackModelChanges(this.fields))}ngOnDestroy(){this.modelChangeSub.unsubscribe(),this.clearModelSubscriptions()}changeModel({value:t,field:e}){_F(e,t),this.modelChange$.next()}setOptions(){this.options||(this.options={}),this.options.resetModel||(this.options.resetModel=t=>{t=SF(vF(t)?this.options._initialModel:t),this.model&&(Object.keys(this.model).forEach(t=>delete this.model[t]),Object.assign(this.model,t||{})),this.options._buildForm(),this.options.parentForm&&this.options.parentForm.control===this.form?this.options.parentForm.resetForm(this.model):this.form.reset(this.model)}),!this.options.parentForm&&this.parentFormGroup&&(kF(this.options,"parentForm",this.parentFormGroup),AF(this.options.parentForm,"submitted",({firstChange:t})=>{t||(this.checkExpressionChange(),this.options._markForCheck({fieldGroup:this.fields,model:this.model,formControl:this.form,options:this.options}))})),this.options.updateInitialValue||(this.options.updateInitialValue=()=>this.options._initialModel=SF(this.model)),this.options._buildForm||(this.options._buildForm=(t=!1)=>{this.clearModelSubscriptions(),this.formlyBuilder.buildForm(this.form,this.fields,this.model,this.options),this.trackModelChanges(this.fields),t&&this.modelChange.emit(this._modelChangeValue=SF(this.model))})}checkExpressionChange(){this.options&&this.options._checkField&&this.options._checkField({fieldGroup:this.fields,model:this.model,formControl:this.form,options:this.options})}trackModelChanges(t,e=[]){t.forEach(t=>{if(t.key&&!t.fieldGroup){const i=t.formControl;let n=i.valueChanges.pipe(Np((t,e)=>t===e&&!Array.isArray(t)&&!xF(t)));const{updateOn:s,debounce:r}=t.modelOptions;(!s||"change"===s)&&r&&r.default>0&&(n=i.valueChanges.pipe(Sf(r.default))),this.modelChangeSubs.push(n.subscribe(n=>{i instanceof ly&&i._fields&&i._fields.length>1&&i.patchValue(n,{emitEvent:!1,onlySelf:!0}),t.parsers&&t.parsers.length>0&&t.parsers.forEach(t=>n=t(n)),this.changeModel({key:[...e,...fF(t)].join("."),value:n,field:t})}));const o=i.valueChanges.observers;o&&o.length>1&&o.unshift(o.pop())}t.fieldGroup&&t.fieldGroup.length>0&&this.trackModelChanges(t.fieldGroup,t.key?[...e,...fF(t)]:e)})}clearModelSubscriptions(){this.modelChangeSubs.forEach(t=>t.unsubscribe()),this.modelChangeSubs=[]}get field(){return this.fields&&this.fields[0]&&this.fields[0].parent}}return t.\u0275fac=function(e){return new(e||t)($o(PF),$o(TF),$o(mu),Ki("immutable"),$o(ky,8))},t.\u0275cmp=Xt({type:t,selectors:[["formly-form"]],viewQuery:function(t,e){if(1&t&&Vc(aF,1),2&t){let t;Nc(t=Hc())&&(e.content=t.first)}},inputs:{model:"model",fields:"fields",options:"options",form:"form"},outputs:{modelChange:"modelChange"},features:[rl([PF]),me],ngContentSelectors:cF,decls:4,vars:1,consts:[["hide-deprecation","",3,"form","options","model","field",4,"ngFor","ngForOf"],["content",""],["hide-deprecation","",3,"form","options","model","field"]],template:function(t,e){1&t&&(ha(),jo(0,lF,1,4,"formly-field",0),Zo(1,null,1),pa(3),Jo()),2&t&&qo("ngForOf",e.fields)},directives:function(){return[Kd,VF]},encapsulation:2}),t})(),VF=(()=>{class t{constructor(t,e,i,n,s){this.formlyConfig=t,this.renderer=e,this.resolver=i,this.elementRef=n,this.warnDeprecation=!1,this.modelChange=new kc,this.hostObservers=[],this.componentRefs=[],this.hooksObservers=[],this.warnDeprecation=null===s}set model(t){this.warnDeprecation&&console.warn(`NgxFormly: passing 'model' input to '${this.constructor.name}' component is not required anymore, you may remove it!`)}set form(t){this.warnDeprecation&&console.warn(`NgxFormly: passing 'form' input to '${this.constructor.name}' component is not required anymore, you may remove it!`)}set options(t){this.warnDeprecation&&console.warn(`NgxFormly: passing 'options' input to '${this.constructor.name}' component is not required anymore, you may remove it!`)}ngAfterContentInit(){this.triggerHook("afterContentInit")}ngAfterContentChecked(){this.triggerHook("afterContentChecked")}ngAfterViewInit(){this.triggerHook("afterViewInit")}ngAfterViewChecked(){this.triggerHook("afterViewChecked")}ngDoCheck(){this.triggerHook("doCheck")}ngOnInit(){this.triggerHook("onInit")}ngOnChanges(t){this.triggerHook("onChanges",t)}ngOnDestroy(){this.resetRefs(this.field),this.hostObservers.forEach(t=>t()),this.hooksObservers.forEach(t=>t()),this.triggerHook("onDestroy")}renderField(t,e,i=[]){if(this.containerRef===t&&(this.resetRefs(this.field),this.containerRef.clear(),i=this.field?this.field.wrappers:[]),i&&i.length>0){const[n,...s]=i,{component:r}=this.formlyConfig.getWrapper(n),o=t.createComponent(this.resolver.resolveComponentFactory(r));this.attachComponentRef(o,e),AF(o.instance,"fieldComponent",({firstChange:t,previousValue:i,currentValue:n})=>{if(n){const r=i?i.detach():null;r&&!r.destroyed?n.insert(r):this.renderField(n,e,s),!t&&o.changeDetectorRef.detectChanges()}})}else if(e&&e.type){const{component:i}=this.formlyConfig.getType(e.type),n=t.createComponent(this.resolver.resolveComponentFactory(i));this.attachComponentRef(n,e)}}triggerHook(t,e){if(this.field&&this.field.hooks&&this.field.hooks[t]&&(!e||e.field)){const e=this.field.hooks[t](this.field);if(sS(e)&&-1!==["onInit","afterContentInit","afterViewInit"].indexOf(t)){const t=e.subscribe();this.hooksObservers.push(()=>t.unsubscribe())}}this.field&&this.field.lifecycle&&this.field.lifecycle[t]&&this.field.lifecycle[t](this.field.form,this.field,this.field.model,this.field.options),"onChanges"===t&&e.field&&(this.resetRefs(e.field.previousValue),this.render())}attachComponentRef(t,e){this.componentRefs.push(t),e._componentRefs.push(t),Object.assign(t.instance,{field:e})}render(){this.field&&(this.hostObservers.forEach(t=>t()),this.hostObservers=[AF(this.field,"hide",({firstChange:t,currentValue:e})=>{this.formlyConfig.extras.lazyRender?e?this.containerRef.clear():this.renderField(this.containerRef,this.field):(t&&this.renderField(this.containerRef,this.field),(!t||t&&e)&&this.renderer.setStyle(this.elementRef.nativeElement,"display",e?"none":""))}),AF(this.field,"className",({firstChange:t,currentValue:e})=>{(!t||t&&e)&&this.renderer.setAttribute(this.elementRef.nativeElement,"class",e)})])}resetRefs(t){t&&(t._componentRefs?t._componentRefs=t._componentRefs.filter(t=>-1===this.componentRefs.indexOf(t)):kF(this.field,"_componentRefs",[])),this.componentRefs=[]}}return t.\u0275fac=function(e){return new(e||t)($o(TF),$o(fl),$o(ll),$o(hl),Ki("hide-deprecation"))},t.\u0275cmp=Xt({type:t,selectors:[["formly-field"]],viewQuery:function(t,e){if(1&t&&Vc(uF,3,Kl),2&t){let t;Nc(t=Hc())&&(e.containerRef=t.first)}},inputs:{model:"model",form:"form",options:"options",field:"field"},outputs:{modelChange:"modelChange"},features:[me],decls:2,vars:0,consts:[["container",""]],template:function(t,e){1&t&&jo(0,dF,0,0,"ng-template",null,0,jc)},encapsulation:2}),t})(),BF=(()=>{class t{constructor(t,e,i){this.renderer=t,this.elementRef=e,this.uiAttributesCache={},this.uiAttributes=[...gF,"tabindex","placeholder","readonly","disabled","step"],this.uiEvents={listeners:[],events:["click","keyup","keydown","keypress"]},this.document=i}get to(){return this.field.templateOptions||{}}get fieldAttrElements(){return this.field&&this.field._elementRefs||[]}ngOnChanges(t){t.field&&(this.field.name&&this.setAttribute("name",this.field.name),this.uiEvents.listeners.forEach(t=>t()),this.uiEvents.events.forEach(t=>{this.to&&this.to[t]&&this.uiEvents.listeners.push(this.renderer.listen(this.elementRef.nativeElement,t,e=>this.to[t](this.field,e)))}),this.to&&this.to.attributes&&AF(this.to,"attributes",({currentValue:t,previousValue:e})=>{e&&Object.keys(e).forEach(t=>this.removeAttribute(t)),t&&Object.keys(t).forEach(e=>this.setAttribute(e,t[e]))}),this.detachElementRef(t.field.previousValue),this.attachElementRef(t.field.currentValue),1===this.fieldAttrElements.length&&(!this.id&&this.field.id&&this.setAttribute("id",this.field.id),AF(this.field,"focus",({currentValue:t})=>{this.toggleFocus(t)}))),t.id&&this.setAttribute("id",this.id)}ngDoCheck(){this.uiAttributes.forEach(t=>{const e=this.to[t];this.uiAttributesCache[t]!==e&&(this.uiAttributesCache[t]=e,e||0===e?this.setAttribute(t,!0===e?t:`${e}`):this.removeAttribute(t))})}ngOnDestroy(){this.uiEvents.listeners.forEach(t=>t()),this.detachElementRef(this.field)}toggleFocus(t){const e=this.fieldAttrElements?this.fieldAttrElements[0]:null;if(!e||!e.nativeElement.focus)return;const i=!!this.document.activeElement&&this.fieldAttrElements.some(({nativeElement:t})=>this.document.activeElement===t||t.contains(this.document.activeElement));t&&!i?e.nativeElement.focus():!t&&i&&e.nativeElement.blur()}onFocus(t){this.field.___$focus=!0,this.to.focus&&this.to.focus(this.field,t)}onBlur(t){this.field.___$focus=!1,this.to.blur&&this.to.blur(this.field,t)}onChange(t){this.to.change&&this.to.change(this.field,t),this.field.formControl&&this.field.formControl.markAsDirty()}attachElementRef(t){t&&(t._elementRefs&&-1===t._elementRefs.indexOf(this.elementRef)?t._elementRefs.push(this.elementRef):kF(t,"_elementRefs",[this.elementRef]))}detachElementRef(t){const e=t&&t._elementRefs?this.fieldAttrElements.indexOf(this.elementRef):-1;-1!==e&&this.field._elementRefs.splice(e,1)}setAttribute(t,e){this.renderer.setAttribute(this.elementRef.nativeElement,t,e)}removeAttribute(t){this.renderer.removeAttribute(this.elementRef.nativeElement,t)}}return t.\u0275fac=function(e){return new(e||t)($o(fl),$o(hl),$o(qu))},t.\u0275dir=ie({type:t,selectors:[["","formlyAttributes",""]],hostBindings:function(t,e){1&t&&ra("focus",function(t){return e.onFocus(t)})("blur",function(t){return e.onBlur(t)})("change",function(t){return e.onChange(t)})},inputs:{field:["formlyAttributes","field"],id:"id"},features:[me]}),t})(),HF=(()=>{class t{get model(){return this.field.model}set model(t){console.warn(`NgxFormly: passing 'model' input to '${this.constructor.name}' component is not required anymore, you may remove it!`)}get form(){return this.field.parent.formControl}set form(t){console.warn(`NgxFormly: passing 'form' input to '${this.constructor.name}' component is not required anymore, you may remove it!`)}get options(){return this.field.options}set options(t){console.warn(`NgxFormly: passing 'options' input to '${this.constructor.name}' component is not required anymore, you may remove it!`)}get key(){return this.field.key}get formControl(){return this.field.formControl}get to(){return this.field.templateOptions||{}}get showError(){return this.options.showError(this)}get id(){return this.field.id}get formState(){return this.options.formState||{}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ie({type:t,inputs:{model:"model",form:"form",options:"options",field:"field"}}),t})(),zF=(()=>{class t extends HF{constructor(t){super(),this.defaultOptions={defaultValue:[]},t instanceof PF&&console.warn(`NgxFormly: passing 'FormlyFormBuilder' to '${this.constructor.name}' type is not required anymore, you may remove it!`)}get formControl(){return this.field.formControl}onPopulate(t){!t.formControl&&t.key&&IF(t,MF(t)||new uy([],{updateOn:t.modelOptions.updateOn})),t.fieldGroup=t.fieldGroup||[];const e=t.model?t.model.length:0;if(t.fieldGroup.length>e)for(let i=t.fieldGroup.length-1;i>=e;--i)DF(t.fieldGroup[i]),t.fieldGroup.splice(i,1);for(let i=t.fieldGroup.length;it.key=`${e}`),this.options._buildForm(!0),e&&this.formControl.markAsDirty()}}return t.\u0275fac=function(e){return new(e||t)($o(EF,8))},t.\u0275dir=ie({type:t,selectors:[["fieldArray"]],features:[Oo]}),t})(),GF=(()=>{class t extends HF{}return t.\u0275fac=function(e){return UF(e||t)},t.\u0275dir=ie({type:t,viewQuery:function(t,e){if(1&t&&Vc(hF,1,Kl),2&t){let t;Nc(t=Hc())&&(e.fieldComponent=t.first)}},features:[Oo]}),t})();const UF=Qi(GF);let jF=(()=>{class t extends HF{constructor(){super(...arguments),this.defaultOptions={defaultValue:{}}}}return t.\u0275fac=function(e){return WF(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["formly-group"]],hostVars:2,hostBindings:function(t,e){2&t&&ka(e.field.fieldGroupClassName||"")},features:[Oo],ngContentSelectors:cF,decls:2,vars:1,consts:[[3,"field",4,"ngFor","ngForOf"],[3,"field"]],template:function(t,e){1&t&&(ha(),jo(0,pF,1,1,"formly-field",0),pa(1)),2&t&&qo("ngForOf",e.field.fieldGroup)},directives:[Kd,VF],encapsulation:2}),t})();const WF=Qi(jF);let $F=(()=>{class t{constructor(t){this.formlyConfig=t}ngOnChanges(){this.errorMessage$=this.field.formControl.statusChanges.pipe(jp(null),Rp(()=>sS(this.errorMessage)?this.errorMessage:Sp(this.errorMessage)))}get errorMessage(){const t=this.field.formControl;for(let e in t.errors)if(t.errors.hasOwnProperty(e)){let i=this.formlyConfig.getValidatorMessage(e);if(xF(t.errors[e])){if(t.errors[e].errorPath)return;t.errors[e].message&&(i=t.errors[e].message)}return this.field.validation&&this.field.validation.messages&&this.field.validation.messages[e]&&(i=this.field.validation.messages[e]),this.field.validators&&this.field.validators[e]&&this.field.validators[e].message&&(i=this.field.validators[e].message),this.field.asyncValidators&&this.field.asyncValidators[e]&&this.field.asyncValidators[e].message&&(i=this.field.asyncValidators[e].message),"function"==typeof i?i(t.errors[e],this.field):i}}}return t.\u0275fac=function(e){return new(e||t)($o(TF))},t.\u0275cmp=Xt({type:t,selectors:[["formly-validation-message"]],inputs:{field:"field"},features:[me],decls:2,vars:3,template:function(t,e){1&t&&(Na(0),vc(1,"async")),2&t&&Va(wc(1,1,e.errorMessage$))},pipes:[ph],encapsulation:2,changeDetection:0}),t})(),qF=(()=>{class t extends HF{constructor(t){super(),this.sanitizer=t,this.innerHtml={content:null,template:null}}get template(){return this.field&&this.field.template!==this.innerHtml.template&&(this.innerHtml={template:this.field.template,content:this.to.safeHtml?this.sanitizer.bypassSecurityTrustHtml(this.field.template):this.field.template}),this.innerHtml.content}}return t.\u0275fac=function(e){return new(e||t)($o(Xh))},t.\u0275cmp=Xt({type:t,selectors:[["formly-template"]],features:[Oo],decls:1,vars:1,consts:[[3,"innerHtml"]],template:function(t,e){1&t&&Ko(0,"div",0),2&t&&qo("innerHtml",e.template,ps)},encapsulation:2}),t})();function YF(t,e,i){return t instanceof Function?t.apply(e,i):!!t}class QF{prePopulate(t){if(t.parent||t.options._checkField)return;let e=!1;t.options._checkField=(t,i)=>{e||(e=!0,OF(t.formControl,()=>this.checkField(t,i)),e=!1)}}postPopulate(t){if(t.parent&&!t._expressionProperties){if(kF(t,"_expressionProperties",{}),t.expressionProperties)for(const e in t.expressionProperties){const i=t.expressionProperties[e];if("string"==typeof i||CF(i))t._expressionProperties[e]={expression:this._evalExpression(e,i,"templateOptions.disabled"===e&&t.parent.expressionProperties&&t.parent.expressionProperties.hasOwnProperty("templateOptions.disabled")?()=>t.parent.templateOptions.disabled:void 0)},"templateOptions.disabled"===e&&Object.defineProperty(t._expressionProperties[e],"expressionValue",{get:()=>t.templateOptions.disabled,set:()=>{},enumerable:!0,configurable:!0});else if(i instanceof v){const n=()=>i.subscribe(i=>{this.setExprValue(t,e,i),t.options&&t.options._markForCheck&&t.options._markForCheck(t)});let s=n();const r=t.hooks.onInit;t.hooks.onInit=()=>(null===s&&(s=n()),r&&r(t));const o=t.hooks.onDestroy;t.hooks.onDestroy=()=>{o&&o(t),s.unsubscribe(),s=null}}}t.hideExpression?(delete t.hide,t.hideExpression=this._evalExpression("hide",t.hideExpression,()=>{let e=t.parent;for(;e.parent&&!e.hide;)e=e.parent;return e.hide})):AF(t,"hide",({currentValue:e,firstChange:i})=>{t._hide=e,(!i||i&&!0===e)&&t.options._hiddenFieldsForCheck.push(t)})}}_evalExpression(t,e,i){return(n,s,r)=>{try{return"string"==typeof e&&(e=function(t,e){try{return-1!==t.indexOf("this.field")&&console.warn("NgxFormly: using 'this.field' in expressionProperties is deprecated since v5.1, use 'field' instead."),Function("model","formState","field",`return ${t};`)}catch(i){console.error(i)}}(e)),"function"!=typeof e&&(e=()=>!!e),i&&i()||e(n,s,r)}catch(o){throw o.message=`[Formly Error] [Expression "${t}"] ${o.message}`,o}}}checkField(t,e=!1){this._checkField(t,e),t.options._hiddenFieldsForCheck.sort(t=>t.hide?-1:1).forEach(t=>this.toggleFormControl(t,!!t.hide,!e)),t.options._hiddenFieldsForCheck=[]}_checkField(t,e=!1){let i=!1;t.fieldGroup.forEach(n=>{this.checkFieldExpressionChange(n,e)&&(i=!0),this.checkFieldVisibilityChange(n,e)&&(t.options._hiddenFieldsForCheck.push(n),i=!0),n.fieldGroup&&n.fieldGroup.length>0&&this._checkField(n,e)}),i&&t.options&&t.options._markForCheck&&t.options._markForCheck(t)}checkFieldExpressionChange(t,e){if(!t||!t._expressionProperties)return!1;let i=!1;const n=t._expressionProperties;for(const s in n){let r=YF(n[s].expression,{field:t},[t.model,t.options.formState,t]);"templateOptions.disabled"===s&&(r=!!r),!e&&(n[s].expressionValue===r||xF(r)&&JSON.stringify(r)===JSON.stringify(n[s].expressionValue))||(i=!0,n[s].expressionValue=r,this.setExprValue(t,s,r))}return i}checkFieldVisibilityChange(t,e){if(!t||vF(t.hideExpression))return!1;const i=!!YF(t.hideExpression,{field:t},[t.model,t.options.formState,t]);let n=!1;return(i!==t.hide||e)&&(n=!0,t.hide=i,t.templateOptions.hidden=i),n}setDisabledState(t,e){t.fieldGroup&&t.fieldGroup.filter(t=>!t.expressionProperties||!t.expressionProperties.hasOwnProperty("templateOptions.disabled")).forEach(t=>this.setDisabledState(t,e)),t.key&&t.templateOptions.disabled!==e&&(t.templateOptions.disabled=e)}toggleFormControl(t,e,i){if(t.formControl&&t.key){kF(t,"_hide",!(!e&&!t.hide));const n=t.formControl;n._fields.length>1&&RF(n),!0===e&&n._fields.every(t=>!!t._hide)?(DF(t,!0),i&&t.resetOnHide&&(t.formControl.reset({value:void 0,disabled:t.formControl.disabled}),t.fieldGroup&&(_F(t,void 0),t.formControl instanceof uy&&(t.fieldGroup.length=0)))):!1===e&&(t.resetOnHide&&t.parent&&!wF(t.defaultValue)&&wF(bF(t))&&_F(t,t.defaultValue),IF(t,void 0,!0),t.resetOnHide&&t.fieldArray&&(t.fieldGroup||[]).length!==(t.model||[]).length&&t.options._buildForm(!0))}t.fieldGroup&&t.fieldGroup.filter(t=>!t.hideExpression).forEach(t=>this.toggleFormControl(t,e,i)),t.options.fieldChanges&&t.options.fieldChanges.next({field:t,type:"hidden",value:e})}setExprValue(t,e,i){try{let n=t;const s=(-1===e.indexOf("[")?e:e.replace(/\[(\w+)\]/g,".$1")).split("."),r=s.length-1;for(let t=0;tthis.wrapNgValidatorFn(t,e))):i.push(this.wrapNgValidatorFn(t,t[e][n],n));kF(t,"_"+e,i)}getPredefinedFieldValidation(t){let e=[];return gF.forEach(i=>AF(t.templateOptions,i,({currentValue:n,firstChange:s})=>{e=e.filter(t=>t!==i),null!=n&&!1!==n&&e.push(i),!s&&t.formControl&&RF(t.formControl)})),i=>0===e.length?null:xb.compose(e.map(e=>()=>{const n=t.templateOptions[e];switch(e){case"required":return xb.required(i);case"pattern":return xb.pattern(n)(i);case"minLength":return xb.minLength(n)(i);case"maxLength":return xb.maxLength(n)(i);case"min":return xb.min(n)(i);case"max":return xb.max(n)(i)}}))(i)}wrapNgValidatorFn(t,e,i){let n=null;if("string"==typeof e&&(n=SF(this.formlyConfig.getValidator(e))),"object"==typeof e&&e.name&&(n=SF(this.formlyConfig.getValidator(e.name)),e.options&&(n.options=e.options)),"object"==typeof e&&e.expression){const{expression:t}=e,s=sp(e,["expression"]);n={name:i,validation:t,options:Object.keys(s).length>0?s:null}}return"function"==typeof e&&(n={name:i,validation:e}),e=>{const s=n.validation(e,t,n.options);return(r=s)&&"function"==typeof r.then?s.then(e=>this.handleAsyncResult(t,i?!!e:e,n)):sS(s)?s.pipe(E(e=>this.handleAsyncResult(t,i?!!e:e,n))):this.handleResult(t,i?!!s:s,n);var r}}handleAsyncResult(t,e,i){return t.options&&t.options._markForCheck&&t.options._markForCheck(t),this.handleResult(t,e,i)}handleResult(t,e,{name:i,options:n}){"boolean"==typeof e&&(e=e?null:{[i]:n||!0});const s=t.formControl;return s._childrenErrors&&s._childrenErrors[i]&&s._childrenErrors[i](),xF(e)&&Object.keys(e).forEach(i=>{const r=e[i].errorPath?e[i].errorPath:(n||{}).errorPath,o=r?t.formControl.get(r):null;if(o){const t=sp(e[i],["errorPath"]);o.setErrors(Object.assign({},o.errors||{},{[i]:t})),!s._childrenErrors&&kF(s,"_childrenErrors",{}),s._childrenErrors[i]=()=>{const t=sp(o.errors||{},["symbol"==typeof i?i:i+""]);o.setErrors(0===Object.keys(t).length?null:t)}}}),e}}class KF{constructor(t){this.config=t}onPopulate(t){t.parent&&(t.fieldGroup&&!t.key?kF(t,"formControl",t.parent.formControl):this.addFormControl(t))}postPopulate(t){if(t.parent)return;const e=this.setValidators(t);0!==e.length&&(1===e.length?e[0].formControl.updateValueAndValidity():t.formControl._updateTreeValidity())}addFormControl(t){let e=MF(t);if(!e){const i={updateOn:t.modelOptions.updateOn},n=t.key?bF(t):t.defaultValue,s=this.config?this.config.resolveFieldTypeRef(t):null;if(s&&s.componentType&&s.componentType.createControl){const i=s.componentType;console.warn(`NgxFormly: '${i.name}::createControl' is deprecated since v5.0, use 'prePopulate' hook instead.`),e=i.createControl(n,t)}else e=t.fieldGroup?new cy({},i):new ly(n,i)}IF(t,e)}setValidators(t){let e=!1;if(t.key||!t.parent||!t.key&&!t.fieldGroup){const{formControl:i}=t;!!t.templateOptions&&t.templateOptions.disabled&&i.enabled&&(i.disable({emitEvent:!1,onlySelf:!0}),i.parent?e=!0:RF(i)),null!==i.validator&&null!==i.asyncValidator||(i.setValidators(()=>{const e=xb.compose(this.mergeValidators(t,"_validators"));return e?e(i):null}),i.setAsyncValidators(()=>{const e=xb.composeAsync(this.mergeValidators(t,"_asyncValidators"));return e?e(i):Sp(null)}),i.parent?e=!0:RF(i))}const i=e?[t]:[];return(t.fieldGroup||[]).forEach(t=>{const n=this.setValidators(t);e||i.push(...n)}),i}mergeValidators(t,e){const i=[],n=t.formControl;return n&&n._fields&&n._fields.length>1?n._fields.filter(t=>!t._hide).forEach(t=>i.push(...t[e])):i.push(...t[e]),t.fieldGroup&&t.fieldGroup.filter(t=>!t.key&&t.fieldGroup).forEach(t=>i.push(...this.mergeValidators(t,e))),i}}class ZF{constructor(t){this.formlyConfig=t,this.formId=0}prePopulate(t){if(this.getFieldComponentInstance(t).prePopulate(),t.parent)return;const e=t.options&&t.options.fieldTransform||this.formlyConfig.extras.fieldTransform;(Array.isArray(e)?e:[e]).forEach(e=>{if(e&&(console.warn("NgxFormly: fieldTransform is deprecated since v5.0, use custom extension instead."),!e(t.fieldGroup,t.model,t.formControl,t.options)))throw new Error("fieldTransform must return an array of fields")})}onPopulate(t){this.initFieldOptions(t),this.getFieldComponentInstance(t).onPopulate(),t.fieldGroup&&t.fieldGroup.forEach((e,i)=>{Object.defineProperty(e,"parent",{get:()=>t,configurable:!0}),Object.defineProperty(e,"index",{get:()=>i,configurable:!0}),this.formId++})}postPopulate(t){this.getFieldComponentInstance(t).postPopulate()}initFieldOptions(t){const e=t.parent;if(e){if(Object.defineProperty(t,"form",{get:()=>e.formControl,configurable:!0}),Object.defineProperty(t,"options",{get:()=>e.options,configurable:!0}),Object.defineProperty(t,"model",{get:()=>t.key&&t.fieldGroup?bF(t):e.model,configurable:!0}),yF(t,{id:mF(`formly_${this.formId}`,t,t.index),hooks:{},modelOptions:{},templateOptions:t.type&&t.key?{label:"",placeholder:"",focus:!1,disabled:!1}:{}}),this.formlyConfig.extras.resetFieldOnHide&&!1!==t.resetOnHide&&(t.resetOnHide=!0),t.lifecycle&&console.warn("NgxFormly: 'lifecycle' is deprecated since v5.0, use 'hooks' instead."),"formly-template"!==t.type&&(t.template||t.expressionProperties&&t.expressionProperties.template)&&(t.type&&console.warn("NgxFormly: passing 'type' property is not allowed when 'template' is set."),t.type="formly-template"),!t.type&&t.fieldGroup&&(t.type="formly-group"),t.type&&this.formlyConfig.getMergedField(t),t.parent){let e=!wF(t.key)&&!wF(t.defaultValue)&&wF(bF(t))&&(!t.resetOnHide||!(t.hide||t.hideExpression));if(e&&t.resetOnHide){let i=t.parent;for(;i&&!i.hideExpression&&!i.hide;)i=i.parent;e=!i||!(i.hideExpression||i.hide)}e&&_F(t,t.defaultValue)}this.initFieldWrappers(t)}}initFieldWrappers(t){t.wrappers=t.wrappers||[];const e=Object.assign({preWrapper:[],postWrapper:[]},t.templateOptions.templateManipulators||{});t.wrappers=[...this.formlyConfig.templateManipulators.preWrapper.map(e=>e(t)),...e.preWrapper.map(e=>e(t)),...t.wrappers,...this.formlyConfig.templateManipulators.postWrapper.map(e=>e(t)),...e.postWrapper.map(e=>e(t))].filter((t,e,i)=>t&&e===i.indexOf(t))}getFieldComponentInstance(t){const e=this.formlyConfig.resolveFieldTypeRef(t),i=e?e.instance:{};return{prePopulate:()=>i.prePopulate&&i.prePopulate(t),onPopulate:()=>i.onPopulate&&i.onPopulate(t),postPopulate:()=>i.postPopulate&&i.postPopulate(t)}}}function JF(t){return{types:[{name:"formly-group",component:jF},{name:"formly-template",component:qF}],extensions:[{name:"core",extension:new ZF(t)},{name:"field-validation",extension:new XF(t)},{name:"field-form",extension:new KF(t)},{name:"field-expression",extension:new QF}]}}let tN=(()=>{class t{constructor(t,e=[]){e&&e.forEach(e=>t.addConfig(e))}static forRoot(e={}){return{ngModule:t,providers:[{provide:EF,multi:!0,useFactory:JF,deps:[TF]},{provide:EF,useValue:e,multi:!0},{provide:nn,useValue:e,multi:!0},TF,PF]}}static forChild(e={}){return{ngModule:t,providers:[{provide:EF,multi:!0,useFactory:JF,deps:[TF]},{provide:EF,useValue:e,multi:!0},{provide:nn,useValue:e,multi:!0},PF]}}}return t.\u0275fac=function(e){return new(e||t)(wn(TF),wn(EF,8))},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[yh]]}),t})();const eN=["matPrefix"],iN=["matSuffix"],nN=["fieldComponent"];function sN(t,e){1&t&&(Qo(0,"span",8),Na(1,"*"),Xo())}function rN(t,e){if(1&t&&(Qo(0,"mat-label"),Na(1),jo(2,sN,2,0,"span",7),Xo()),2&t){const t=ua();dr(1),Ba(" ",t.to.label," "),dr(1),qo("ngIf",t.to.required&&!0!==t.to.hideRequiredMarker)}}function oN(t,e){1&t&&ta(0)}function aN(t,e){if(1&t&&(Zo(0,9),jo(1,oN,1,0,"ng-container",10),Jo()),2&t){const t=ua();dr(1),qo("ngTemplateOutlet",t.to.prefix?t.to.prefix:t.formlyField._matprefix)}}function lN(t,e){1&t&&ta(0)}function cN(t,e){if(1&t&&(Zo(0,11),jo(1,lN,1,0,"ng-container",10),Jo()),2&t){const t=ua();dr(1),qo("ngTemplateOutlet",t.to.suffix?t.to.suffix:t.formlyField._matsuffix)}}function uN(t,e){if(1&t&&(Qo(0,"mat-hint",12),Na(1),Xo()),2&t){const t=ua();qo("id",null),dr(1),Va(t.to.description)}}class dN{constructor(t){this.field=t}isErrorState(t,e){return this.field&&this.field.showError}}let hN=(()=>{class t extends HF{constructor(){super(...arguments),this.errorStateMatcher=new dN(this),this.stateChanges=new k,this._errorState=!1}get formFieldControl(){return this._control||this}set formFieldControl(t){this._control=t,this.formField&&t!==this.formField._control&&(this.formField._control=t)}ngOnInit(){this.formField&&(this.formField._control=this.formFieldControl)}ngAfterViewInit(){(this.matPrefix||this.matSuffix)&&setTimeout(()=>{kF(this.field,"_matprefix",this.matPrefix),kF(this.field,"_matsuffix",this.matSuffix),this.options._markForCheck(this.field)})}ngOnDestroy(){this.formField&&delete this.formField._control,this.stateChanges.complete()}setDescribedByIds(t){}onContainerClick(t){this.field.focus=!0,this.stateChanges.next()}get errorState(){const t=this.options.showError(this);return t!==this._errorState&&(this._errorState=t,this.stateChanges.next()),t}get controlType(){return this.to.type?this.to.type:this.field.type instanceof on?this.field.type.constructor.name:this.field.type}get focused(){return!!this.field.focus&&!this.disabled}get disabled(){return!!this.to.disabled}get required(){return!!this.to.required}get placeholder(){return this.to.placeholder||""}get shouldPlaceholderFloat(){return this.shouldLabelFloat}get value(){return this.formControl.value}set value(t){this.formControl.patchValue(t)}get ngControl(){return this.formControl}get empty(){return null==this.value||""===this.value}get shouldLabelFloat(){return this.focused||!this.empty}get formField(){return this.field?this.field.__formField__:null}}return t.\u0275fac=function(e){return pN(e||t)},t.\u0275dir=ie({type:t,viewQuery:function(t,e){if(1&t&&(Vc(eN,1),Vc(iN,1)),2&t){let t;Nc(t=Hc())&&(e.matPrefix=t.first),Nc(t=Hc())&&(e.matSuffix=t.first)}},features:[Oo]}),t})();const pN=Qi(hN);let mN=(()=>{class t extends GF{constructor(t,e,i,n){super(),this.config=t,this.renderer=e,this.elementRef=i,this.focusMonitor=n,this.stateChanges=new k,this._errorState=!1,this.initialGapCalculated=!1}ngOnInit(){this.formField._control=this,kF(this.field,"__formField__",this.formField);const t=this.config.resolveFieldTypeRef(this.formlyField);!t||t.instance instanceof hN||console.warn(`Component '${t.componentType.name}' must extend 'FieldType' from '@ngx-formly/material/form-field'.`),this.formlyField.hide&&"outline"===this.formlyField.templateOptions.appearance&&(this.initialGapCalculated=!0),this.focusMonitor.monitor(this.elementRef,!0).subscribe(t=>{!t&&this.field.focus&&(this.field.focus=!1),this.stateChanges.next()})}ngAfterContentChecked(){this.initialGapCalculated&&!this.formlyField.hide&&(this.formField.updateOutlineGap(),this.initialGapCalculated=!0)}ngAfterViewInit(){if("outline"!==this.formField.appearance&&!0===this.to.hideFieldUnderline){const t=this.formField._elementRef.nativeElement.querySelector(".mat-form-field-underline");t&&this.renderer.removeChild(t.parentNode,t)}}ngOnDestroy(){delete this.formlyField.__formField__,this.stateChanges.complete(),this.focusMonitor.stopMonitoring(this.elementRef)}setDescribedByIds(t){}onContainerClick(t){this.formlyField.focus=!0,this.stateChanges.next()}get errorState(){const t=this.options.showError(this);return t!==this._errorState&&(this._errorState=t,this.stateChanges.next()),t}get controlType(){return this.to.type}get focused(){return!!this.formlyField.focus&&!this.disabled}get disabled(){return!!this.to.disabled}get required(){return!!this.to.required}get placeholder(){return this.to.placeholder||""}get shouldPlaceholderFloat(){return this.shouldLabelFloat}get value(){return this.formControl.value}get ngControl(){return this.formControl}get empty(){return!this.formControl.value}get shouldLabelFloat(){return this.focused||!this.empty}get formlyField(){return this.field}}return t.\u0275fac=function(e){return new(e||t)($o(TF),$o(fl),$o(hl),$o(vv))},t.\u0275cmp=Xt({type:t,selectors:[["formly-wrapper-mat-form-field"]],viewQuery:function(t,e){if(1&t&&(Vc(nN,3,Kl),Vc(Yk,3)),2&t){let t;Nc(t=Hc())&&(e.fieldComponent=t.first),Nc(t=Hc())&&(e.formField=t.first)}},features:[rl([{provide:Ik,useExisting:t}]),Oo],decls:9,vars:11,consts:[[3,"hideRequiredMarker","floatLabel","appearance","color"],["fieldComponent",""],[4,"ngIf"],["matPrefix","",4,"ngIf"],["matSuffix","",4,"ngIf"],[3,"field"],[3,"id",4,"ngIf"],["class","mat-form-field-required-marker",4,"ngIf"],[1,"mat-form-field-required-marker"],["matPrefix",""],[4,"ngTemplateOutlet"],["matSuffix",""],[3,"id"]],template:function(t,e){1&t&&(Qo(0,"mat-form-field",0),ta(1,null,1),jo(3,rN,3,2,"mat-label",2),jo(4,aN,2,1,"ng-container",3),jo(5,cN,2,1,"ng-container",4),Qo(6,"mat-error"),Ko(7,"formly-validation-message",5),Xo(),jo(8,uN,2,2,"mat-hint",6),Xo()),2&t&&(xa("width","100%"),qo("hideRequiredMarker",!0)("floatLabel",e.to.floatLabel)("appearance",e.to.appearance)("color",e.to.color),dr(3),qo("ngIf",e.to.label&&!0!==e.to.hideLabel),dr(1),qo("ngIf",e.to.prefix||e.formlyField._matprefix),dr(1),qo("ngIf",e.to.suffix||e.formlyField._matsuffix),dr(2),qo("field",e.field),dr(1),qo("ngIf",e.to.description))},directives:[Yk,Jd,Dk,$F,Nk,Hk,ah,Gk,Fk],encapsulation:2}),t})(),fN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[yh,Dy,Qk,tN.forChild({wrappers:[{name:"form-field",component:mN}]})]]}),t})();function gN(t,e){if(1&t&&Ko(0,"input",2),2&t){const t=ua();qo("id",t.id)("type",t.type||"text")("readonly",t.to.readonly)("required",t.to.required)("errorStateMatcher",t.errorStateMatcher)("formControl",t.formControl)("formlyAttributes",t.field)("tabindex",t.to.tabindex)("placeholder",t.to.placeholder)}}function _N(t,e){if(1&t&&Ko(0,"input",3),2&t){const t=ua();qo("id",t.id)("readonly",t.to.readonly)("required",t.to.required)("errorStateMatcher",t.errorStateMatcher)("formControl",t.formControl)("formlyAttributes",t.field)("tabIndex",t.to.tabindex)("placeholder",t.to.placeholder)}}let bN=(()=>{class t extends hN{get type(){return this.to.type||"text"}}return t.\u0275fac=function(e){return yN(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["formly-field-mat-input"]],viewQuery:function(t,e){if(1&t&&Vc(cE,1),2&t){let t;Nc(t=Hc())&&(e.formFieldControl=t.first)}},features:[Oo],decls:3,vars:2,consts:[["matInput","",3,"id","type","readonly","required","errorStateMatcher","formControl","formlyAttributes","tabindex","placeholder",4,"ngIf","ngIfElse"],["numberTmp",""],["matInput","",3,"id","type","readonly","required","errorStateMatcher","formControl","formlyAttributes","tabindex","placeholder"],["matInput","","type","number",3,"id","readonly","required","errorStateMatcher","formControl","formlyAttributes","tabIndex","placeholder"]],template:function(t,e){if(1&t&&(jo(0,gN,1,9,"input",0),jo(1,_N,1,8,"ng-template",null,1,jc)),2&t){const t=Wo(2);qo("ngIf","number"!==e.type)("ngIfElse",t)}},directives:[Jd,cE,_b,Ey,Ub,xy,BF,yy],encapsulation:2}),t})();const yN=Qi(bN);let vN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[yh,Dy,uE,fN,tN.forChild({types:[{name:"input",component:bN,wrappers:["form-field"]}]})]]}),t})(),wN=(()=>{class t extends hN{constructor(){super(...arguments),this.defaultOptions={templateOptions:{cols:1,rows:1}}}}return t.\u0275fac=function(e){return CN(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["formly-field-mat-textarea"]],viewQuery:function(t,e){if(1&t&&Vc(cE,3),2&t){let t;Nc(t=Hc())&&(e.formFieldControl=t.first)}},features:[rl([{provide:sE,useExisting:t}]),Oo],decls:2,vars:15,consts:[["matInput","",3,"id","readonly","required","formControl","errorStateMatcher","cols","rows","formlyAttributes","placeholder","tabindex","cdkTextareaAutosize","cdkAutosizeMinRows","cdkAutosizeMaxRows"]],template:function(t,e){1&t&&(Qo(0,"textarea",0),Na(1," "),Xo()),2&t&&(Sa("cdk-textarea-autosize",e.to.autosize),qo("id",e.id)("readonly",e.to.readonly)("required",e.to.required)("formControl",e.formControl)("errorStateMatcher",e.errorStateMatcher)("cols",e.to.cols)("rows",e.to.rows)("formlyAttributes",e.field)("placeholder",e.to.placeholder)("tabindex",e.to.tabindex)("cdkTextareaAutosize",e.to.autosize)("cdkAutosizeMinRows",e.to.autosizeMinRows)("cdkAutosizeMaxRows",e.to.autosizeMaxRows))},directives:[cE,_b,tE,Ey,Ub,xy,BF],encapsulation:2}),t})();const CN=Qi(wN);let xN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[yh,Dy,uE,fN,tN.forChild({types:[{name:"textarea",component:wN,wrappers:["form-field"]}]})]]}),t})(),SN=(()=>{class t{transform(t,e){return t instanceof v||(t=Sp(t)),t.pipe(E(t=>this.toOptions(t,e||{})))}toOptions(t,e){const i=[],n={},s=e.templateOptions||{};return s._flatOptions=!0,t.map(t=>{this.getGroupProp(t,s)?(s._flatOptions=!1,n[this.getGroupProp(t,s)]||(n[this.getGroupProp(t,s)]=[],i.push({label:this.getGroupProp(t,s),group:n[this.getGroupProp(t,s)]})),n[this.getGroupProp(t,s)].push(this.toOption(t,s))):i.push(this.toOption(t,s))}),i}toOption(t,e){return{label:this.getLabelProp(t,e),value:this.getValueProp(t,e),disabled:this.getDisabledProp(t,e)||!1}}getLabelProp(t,e){return"function"==typeof e.labelProp?e.labelProp(t):this.shouldUseLegacyOption(t,e)?(console.warn("NgxFormly: legacy select option '{key, value}' is deprecated since v5.5, use '{value, label}' instead."),t.value):t[e.labelProp||"label"]}getValueProp(t,e){return"function"==typeof e.valueProp?e.valueProp(t):this.shouldUseLegacyOption(t,e)?t.key:t[e.valueProp||"value"]}getDisabledProp(t,e){return"function"==typeof e.disabledProp?e.disabledProp(t):t[e.disabledProp||"disabled"]}getGroupProp(t,e){return"function"==typeof e.groupProp?e.groupProp(t):t[e.groupProp||"group"]}shouldUseLegacyOption(t,e){return!e.valueProp&&!e.labelProp&&null!=t&&"object"==typeof t&&"key"in t&&"value"in t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ne({name:"formlySelectOptions",type:t,pure:!0}),t})(),kN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({}),t})();function AN(t,e){if(1&t&&(Qo(0,"mat-radio-button",2),Na(1),Xo()),2&t){const t=e.$implicit,i=e.index,n=ua();qo("id",n.id+"_"+i)("color",n.to.color)("labelPosition",n.to.labelPosition)("disabled",t.disabled)("value",t.value),dr(1),Ba(" ",t.label," ")}}let ON=(()=>{class t extends hN{constructor(){super(...arguments),this.defaultOptions={templateOptions:{hideFieldUnderline:!0,floatLabel:"always",options:[],tabindex:-1}}}ngAfterViewInit(){this.focusObserver=AF(this.field,"focus",({currentValue:t})=>{-1===this.to.tabindex&&t&&this.radioGroup._radios.length>0&&setTimeout(()=>{(this.radioGroup.selected?this.radioGroup.selected:this.radioGroup._radios.first)._elementRef.nativeElement.focus({preventScroll:!0})})})}onContainerClick(){}ngOnDestroy(){this.focusObserver&&this.focusObserver()}}return t.\u0275fac=function(e){return EN(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["formly-field-mat-radio"]],viewQuery:function(t,e){if(1&t&&Vc(_M,1),2&t){let t;Nc(t=Hc())&&(e.radioGroup=t.first)}},features:[Oo],decls:4,vars:10,consts:[[3,"formControl","formlyAttributes","required","tabindex"],[3,"id","color","labelPosition","disabled","value",4,"ngFor","ngForOf"],[3,"id","color","labelPosition","disabled","value"]],template:function(t,e){1&t&&(Qo(0,"mat-radio-group",0),jo(1,AN,2,6,"mat-radio-button",1),vc(2,"async"),vc(3,"formlySelectOptions"),Xo()),2&t&&(qo("formControl",e.formControl)("formlyAttributes",e.field)("required",e.to.required)("tabindex",e.to.tabindex),dr(1),qo("ngForOf",wc(2,5,Cc(3,7,e.to.options,e.field))))},directives:[_M,Ub,xy,BF,Ey,Kd,CM],pipes:[ph,SN],encapsulation:2}),t})();const EN=Qi(ON);let TN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[yh,Dy,xM,fN,kN,tN.forChild({types:[{name:"radio",component:ON,wrappers:["form-field"]}]})]]}),t})();function PN(t,e){1&t&&(Qo(0,"span",2),Na(1,"*"),Xo())}let DN=(()=>{class t extends hN{constructor(t,e){super(),this.renderer=t,this.focusMonitor=e,this.defaultOptions={templateOptions:{hideFieldUnderline:!0,indeterminate:!0,floatLabel:"always",hideLabel:!0,align:"start",color:"accent"}}}onContainerClick(t){this.checkbox.focus(),super.onContainerClick(t)}ngAfterViewInit(){this.focusMonitor.monitor(this.checkbox._inputElement,!0).subscribe(t=>{t?this.to.focus&&this.to.focus(this.field):this.to.blur&&this.to.blur(this.field)})}ngAfterViewChecked(){if(this.required!==this._required&&this.checkbox&&this.checkbox._inputElement){this._required=this.required;const t=this.checkbox._inputElement.nativeElement;this.required?this.renderer.setAttribute(t,"required","required"):this.renderer.removeAttribute(t,"required")}}ngOnDestroy(){this.checkbox&&this.focusMonitor.stopMonitoring(this.checkbox._inputElement)}}return t.\u0275fac=function(e){return new(e||t)($o(fl),$o(vv))},t.\u0275cmp=Xt({type:t,selectors:[["formly-field-mat-checkbox"]],viewQuery:function(t,e){if(1&t&&Vc(hO,1),2&t){let t;Nc(t=Hc())&&(e.checkbox=t.first)}},features:[Oo],decls:3,vars:9,consts:[[3,"formControl","id","formlyAttributes","tabIndex","indeterminate","color","labelPosition"],["class","mat-form-field-required-marker",4,"ngIf"],[1,"mat-form-field-required-marker"]],template:function(t,e){1&t&&(Qo(0,"mat-checkbox",0),Na(1),jo(2,PN,2,0,"span",1),Xo()),2&t&&(qo("formControl",e.formControl)("id",e.id)("formlyAttributes",e.field)("tabIndex",e.to.tabindex)("indeterminate",e.to.indeterminate&&null===e.formControl.value)("color",e.to.color)("labelPosition",e.to.align||e.to.labelPosition),dr(1),Ba(" ",e.to.label," "),dr(1),qo("ngIf",e.to.required&&!0!==e.to.hideRequiredMarker))},directives:[hO,Ub,xy,BF,Jd],encapsulation:2}),t})(),MN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[yh,Dy,mO,fN,tN.forChild({types:[{name:"checkbox",component:DN,wrappers:["form-field"]}]})]]}),t})();function IN(t,e){if(1&t){const t=ea();Zo(0),Qo(1,"mat-checkbox",1),ra("change",function(i){Be(t);const n=e.$implicit;return ua().onChange(n.value,i.checked)}),Na(2),Xo(),Jo()}if(2&t){const t=e.$implicit,i=e.index,n=ua();dr(1),qo("id",n.id+"_"+i)("formlyAttributes",n.field)("tabIndex",n.to.tabindex)("color",n.to.color)("labelPosition",n.to.labelPosition)("checked",n.isChecked(t))("disabled",n.formControl.disabled),dr(1),Ba(" ",t.label," ")}}let RN=(()=>{class t extends hN{constructor(){super(...arguments),this.defaultOptions={templateOptions:{hideFieldUnderline:!0,floatLabel:"always",options:[],color:"accent"}}}onChange(t,e){this.formControl.patchValue("array"===this.to.type?e?[...this.formControl.value||[],t]:[...this.formControl.value||[]].filter(e=>e!==t):Object.assign({},this.formControl.value,{[t]:e})),this.formControl.markAsTouched()}onContainerClick(){}isChecked(t){const e=this.formControl.value;return e&&("array"===this.to.type?-1!==e.indexOf(t.value):e[t.value])}}return t.\u0275fac=function(e){return LN(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["formly-field-mat-multicheckbox"]],viewQuery:function(t,e){if(1&t&&Vc(hO,1),2&t){let t;Nc(t=Hc())&&(e.checkboxes=t)}},features:[Oo],decls:3,vars:6,consts:[[4,"ngFor","ngForOf"],[3,"id","formlyAttributes","tabIndex","color","labelPosition","checked","disabled","change"]],template:function(t,e){1&t&&(jo(0,IN,3,8,"ng-container",0),vc(1,"async"),vc(2,"formlySelectOptions")),2&t&&qo("ngForOf",wc(1,1,Cc(2,3,e.to.options,e.field)))},directives:[Kd,hO,BF],pipes:[ph,SN],encapsulation:2}),t})();const LN=Qi(RN);let FN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[yh,Dy,mO,fN,kN,tN.forChild({types:[{name:"multicheckbox",component:RN,wrappers:["form-field"]}]})]]}),t})();function NN(t,e){if(1&t){const t=ea();Qo(0,"mat-option",3),ra("click",function(){Be(t);const i=e.selectOptions;return ua().toggleSelectAll(i)}),Ko(1,"mat-pseudo-checkbox",4),Na(2),Xo()}if(2&t){const t=e.selectOptions,i=ua();dr(1),qo("state",i.getSelectAllState(t)),dr(1),Ba(" ",i.to.selectAllOption," ")}}const VN=function(t){return{selectOptions:t}};function BN(t,e){if(1&t&&ta(0,7),2&t){const t=ua().ngIf;ua(),qo("ngTemplateOutlet",Wo(1))("ngTemplateOutletContext",pc(2,VN,t))}}function HN(t,e){if(1&t&&(Qo(0,"mat-option",12),Na(1),Xo()),2&t){const t=e.$implicit;qo("value",t.value)("disabled",t.disabled),dr(1),Ba(" ",t.label," ")}}function zN(t,e){if(1&t&&(Qo(0,"mat-optgroup",10),jo(1,HN,2,3,"mat-option",11),Xo()),2&t){const t=ua().$implicit;qo("label",t.label),dr(1),qo("ngForOf",t.group)}}function GN(t,e){if(1&t&&(Qo(0,"mat-option",12),Na(1),Xo()),2&t){const t=ua().$implicit;qo("value",t.value)("disabled",t.disabled),dr(1),Va(t.label)}}function UN(t,e){if(1&t&&(Zo(0),jo(1,zN,2,2,"mat-optgroup",8),jo(2,GN,2,3,"mat-option",9),Jo()),2&t){const t=e.$implicit;dr(1),qo("ngIf",t.group),dr(1),qo("ngIf",!t.group)}}function jN(t,e){if(1&t&&(Zo(0),jo(1,BN,1,4,"ng-container",5),jo(2,UN,3,2,"ng-container",6),Jo()),2&t){const t=e.ngIf,i=ua();dr(1),qo("ngIf",i.to.multiple&&i.to.selectAllOption),dr(1),qo("ngForOf",t)}}let WN=(()=>{class t extends hN{constructor(){super(...arguments),this.defaultOptions={templateOptions:{options:[],compareWith:(t,e)=>t===e}}}getSelectAllState(t){return this.empty||0===this.value.length?"":this.value.length!==this.getSelectAllValue(t).length?"indeterminate":"checked"}toggleSelectAll(t){const e=this.getSelectAllValue(t);this.formControl.setValue(this.value&&this.value.length===e.length?[]:e)}change(t){this.to.change&&this.to.change(this.field,t)}_getAriaLabelledby(){return this.to.attributes&&this.to.attributes["aria-labelledby"]?this.to.attributes["aria-labelledby"]:this.formField&&this.formField._labelId?this.formField._labelId:null}getSelectAllValue(t){if(!this.selectAllValue||t!==this.selectAllValue.options){const e=[];t.forEach(t=>t.group?e.push(...t.group):e.push(t)),this.selectAllValue={options:t,value:e.filter(t=>!t.disabled).map(t=>t.value)}}return this.selectAllValue.value}}return t.\u0275fac=function(e){return $N(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["formly-field-mat-select"]],viewQuery:function(t,e){if(1&t&&Vc(rD,3),2&t){let t;Nc(t=Hc())&&(e.formFieldControl=t.first)}},features:[Oo],decls:6,vars:17,consts:[["selectAll",""],[3,"id","formControl","formlyAttributes","placeholder","tabIndex","required","compareWith","multiple","errorStateMatcher","aria-labelledby","disableOptionCentering","selectionChange"],[4,"ngIf"],[3,"click"],[1,"mat-option-pseudo-checkbox",3,"state"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"label",4,"ngIf"],[3,"value","disabled",4,"ngIf"],[3,"label"],[3,"value","disabled",4,"ngFor","ngForOf"],[3,"value","disabled"]],template:function(t,e){1&t&&(jo(0,NN,3,2,"ng-template",null,0,jc),Qo(2,"mat-select",1),ra("selectionChange",function(t){return e.change(t)}),jo(3,jN,3,2,"ng-container",2),vc(4,"async"),vc(5,"formlySelectOptions"),Xo()),2&t&&(dr(2),qo("id",e.id)("formControl",e.formControl)("formlyAttributes",e.field)("placeholder",e.to.placeholder)("tabIndex",e.to.tabindex)("required",e.to.required)("compareWith",e.to.compareWith)("multiple",e.to.multiple)("errorStateMatcher",e.errorStateMatcher)("aria-labelledby",e._getAriaLabelledby())("disableOptionCentering",e.to.disableOptionCentering),dr(1),qo("ngIf",wc(4,12,Cc(5,14,e.to.options,e.field))))},directives:[rD,Ub,xy,BF,Ey,Jd,Jx,Hx,Kd,ah,Yx],pipes:[ph,SN],encapsulation:2}),t})();const $N=Qi(WN);let qN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[yh,Dy,aD,zx,fN,kN,tN.forChild({types:[{name:"select",component:WN,wrappers:["form-field"]}]})]]}),t})(),YN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[fN,vN,xN,TN,MN,FN,qN]]}),t})();const QN=["datepickerToggle"];function XN(t,e){if(1&t&&Ko(0,"mat-datepicker-toggle",4),2&t){const t=ua(),e=Wo(4);qo("disabled",t.to.disabled)("for",e)}}let KN=(()=>{class t extends hN{constructor(){super(...arguments),this.defaultOptions={templateOptions:{datepickerOptions:{startView:"month",datepickerTogglePosition:"suffix",dateInput:()=>{},dateChange:()=>{},monthSelected:()=>{},yearSelected:()=>{}}}}}ngAfterViewInit(){super.ngAfterViewInit(),this.datepickerInput._formField=this.formField,setTimeout(()=>{kF(this.field,"_mat"+this.to.datepickerOptions.datepickerTogglePosition,this.datepickerToggle),this.options._markForCheck(this.field)})}}return t.\u0275fac=function(e){return ZN(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["formly-field-mat-datepicker"]],viewQuery:function(t,e){if(1&t&&(Vc(cE,3),Vc(lT,1),Vc(QN,1)),2&t){let t;Nc(t=Hc())&&(e.formFieldControl=t.first),Nc(t=Hc())&&(e.datepickerInput=t.first),Nc(t=Hc())&&(e.datepickerToggle=t.first)}},features:[Oo],decls:5,vars:20,consts:[["matInput","",3,"id","errorStateMatcher","formControl","matDatepicker","matDatepickerFilter","max","min","formlyAttributes","placeholder","tabindex","readonly","required","dateInput","dateChange"],["datepickerToggle",""],[3,"color","dateClass","disabled","opened","panelClass","startAt","startView","touchUi","monthSelected","yearSelected"],["picker",""],[3,"disabled","for"]],template:function(t,e){if(1&t){const t=ea();Qo(0,"input",0),ra("dateInput",function(t){return e.to.datepickerOptions.dateInput(e.field,t)})("dateChange",function(t){return e.to.datepickerOptions.dateChange(e.field,t)}),Xo(),jo(1,XN,1,2,"ng-template",null,1,jc),Qo(3,"mat-datepicker",2,3),ra("monthSelected",function(i){Be(t);const n=Wo(4);return e.to.datepickerOptions.monthSelected(e.field,i,n)})("yearSelected",function(i){Be(t);const n=Wo(4);return e.to.datepickerOptions.yearSelected(e.field,i,n)}),Xo()}if(2&t){const t=Wo(4);qo("id",e.id)("errorStateMatcher",e.errorStateMatcher)("formControl",e.formControl)("matDatepicker",t)("matDatepickerFilter",e.to.datepickerOptions.filter)("max",e.to.datepickerOptions.max)("min",e.to.datepickerOptions.min)("formlyAttributes",e.field)("placeholder",e.to.placeholder)("tabindex",e.to.tabindex)("readonly",e.to.readonly)("required",e.to.required),dr(3),qo("color",e.to.color)("dateClass",e.to.datepickerOptions.dateClass)("disabled",e.to.datepickerOptions.disabled)("opened",e.to.datepickerOptions.opened)("panelClass",e.to.datepickerOptions.panelClass)("startAt",e.to.datepickerOptions.startAt)("startView",e.to.datepickerOptions.startView)("touchUi",e.to.datepickerOptions.touchUi)}},directives:[cE,_b,lT,Ub,xy,BF,Ey,iT,uT],encapsulation:2}),t})();const ZN=Qi(KN);let JN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[yh,Dy,uE,dT,fN,tN.forChild({types:[{name:"datepicker",component:KN,wrappers:["form-field"]}]})]]}),t})(),tV=(()=>{class t{transform(t,...e){let i="",n=!1;t||(t=""),e&&e[1]&&"object"==typeof e[1]?(i=e[1].trailingString||"\u2026",n=e[1].countTrailing||!1):(i=e[1]||"\u2026",n=e[2]||!1);let s=this.getStringLength(e[0]||40,i,n);return s<0?(s*=-1,t.length>s?i+t.substring(t.length-s,t.length):t):t.length>s?t.substring(0,s)+i:t}getStringLength(t,e,i=!1){return i?t<0?t+e.length:t-e.length:t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ne({name:"truncate",type:t,pure:!0}),t})(),eV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({}),t})();var iV=["iframe"],nV=function(){function t(){this.onBeforePrint=new kc,this.onAfterPrint=new kc,this.onDocumentLoad=new kc,this.onPageChange=new kc,this.externalWindow=!1,this.showSpinner=!0,this.openFile=!0,this.download=!0,this.viewBookmark=!0,this.print=!0,this.fullScreen=!0,this.find=!0,this.useOnlyCssZoom=!1,this.errorOverride=!1,this.errorAppend=!0,this.diagnosticLogs=!0}return Object.defineProperty(t.prototype,"page",{get:function(){if(this.PDFViewerApplication)return this.PDFViewerApplication.page;this.diagnosticLogs&&console.warn("Document is not loaded yet!!!. Try to retrieve page# after full load.")},set:function(t){this._page=t,this.PDFViewerApplication?this.PDFViewerApplication.page=this._page:this.diagnosticLogs&&console.warn("Document is not loaded yet!!!. Try to set page# after full load. Ignore this warning if you are not setting page# using '.' notation. (E.g. pdfViewer.page = 5;)")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pdfSrc",{get:function(){return this._src},set:function(t){this._src=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"PDFViewerApplicationOptions",{get:function(){var t=null;return this.externalWindow?this.viewerTab&&(t=this.viewerTab.PDFViewerApplicationOptions):this.iframe.nativeElement.contentWindow&&(t=this.iframe.nativeElement.contentWindow.PDFViewerApplicationOptions),t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"PDFViewerApplication",{get:function(){var t=null;return this.externalWindow?this.viewerTab&&(t=this.viewerTab.PDFViewerApplication):this.iframe.nativeElement.contentWindow&&(t=this.iframe.nativeElement.contentWindow.PDFViewerApplication),t},enumerable:!0,configurable:!0}),t.prototype.receiveMessage=function(t){if(t.data&&t.data.viewerId&&t.data.event){var e=t.data.event,i=t.data.param;this.viewerId==t.data.viewerId&&(this.onBeforePrint&&"beforePrint"==e?this.onBeforePrint.emit():this.onAfterPrint&&"afterPrint"==e?this.onAfterPrint.emit():this.onDocumentLoad&&"pagesLoaded"==e?this.onDocumentLoad.emit(i):this.onPageChange&&"pageChange"==e&&this.onPageChange.emit(i))}},t.prototype.ngOnInit=function(){window.addEventListener("message",this.receiveMessage.bind(this),!1),this.externalWindow||this.loadPdf()},t.prototype.refresh=function(){this.loadPdf()},t.prototype.loadPdf=function(){if(this._src){if(this.externalWindow&&(void 0===this.viewerTab||this.viewerTab.closed)){if(this.viewerTab=window.open("","_blank",this.externalWindowOptions||""),null==this.viewerTab)return void(this.diagnosticLogs&&console.error("ng2-pdfjs-viewer: For 'externalWindow = true'. i.e opening in new tab to work, pop-ups should be enabled."));this.showSpinner&&this.viewerTab.document.write('\n \n
    \n ')}var t,e;if(this._src instanceof Blob)t=encodeURIComponent(URL.createObjectURL(this._src));else if(this._src instanceof Uint8Array){var i=new Blob([this._src],{type:"application/pdf"});t=encodeURIComponent(URL.createObjectURL(i))}else t=this._src;e=this.viewerFolder?this.viewerFolder+"/web/viewer.html":"assets/pdfjs/web/viewer.html",e+="?file="+t,void 0!==this.viewerId&&(e+="&viewerId="+this.viewerId),void 0!==this.onBeforePrint&&(e+="&beforePrint=true"),void 0!==this.onAfterPrint&&(e+="&afterPrint=true"),void 0!==this.onDocumentLoad&&(e+="&pagesLoaded=true"),void 0!==this.onPageChange&&(e+="&pageChange=true"),this.downloadFileName&&(this.downloadFileName.endsWith(".pdf")||(this.downloadFileName+=".pdf"),e+="&fileName="+this.downloadFileName),void 0!==this.openFile&&(e+="&openFile="+this.openFile),void 0!==this.download&&(e+="&download="+this.download),this.startDownload&&(e+="&startDownload="+this.startDownload),void 0!==this.viewBookmark&&(e+="&viewBookmark="+this.viewBookmark),void 0!==this.print&&(e+="&print="+this.print),this.startPrint&&(e+="&startPrint="+this.startPrint),void 0!==this.fullScreen&&(e+="&fullScreen="+this.fullScreen),void 0!==this.find&&(e+="&find="+this.find),this.lastPage&&(e+="&lastpage="+this.lastPage),this.rotatecw&&(e+="&rotatecw="+this.rotatecw),this.rotateccw&&(e+="&rotateccw="+this.rotateccw),this.cursor&&(e+="&cursor="+this.cursor),this.scroll&&(e+="&scroll="+this.scroll),this.spread&&(e+="&spread="+this.spread),this.locale&&(e+="&locale="+this.locale),this.useOnlyCssZoom&&(e+="&useOnlyCssZoom="+this.useOnlyCssZoom),(this._page||this.zoom||this.nameddest||this.pagemode)&&(e+="#"),this._page&&(e+="&page="+this._page),this.zoom&&(e+="&zoom="+this.zoom),this.nameddest&&(e+="&nameddest="+this.nameddest),this.pagemode&&(e+="&pagemode="+this.pagemode),(this.errorOverride||this.errorAppend)&&(e+="&errorMessage="+this.errorMessage,this.errorOverride&&(e+="&errorOverride="+this.errorOverride),this.errorAppend&&(e+="&errorAppend="+this.errorAppend)),this.externalWindow?this.viewerTab.location.href=e:this.iframe.nativeElement.src=e}},t.propDecorators={iframe:[{type:rn,args:["iframe",{static:!0}]}],viewerId:[{type:Wc}],onBeforePrint:[{type:$c}],onAfterPrint:[{type:$c}],onDocumentLoad:[{type:$c}],onPageChange:[{type:$c}],viewerFolder:[{type:Wc}],externalWindow:[{type:Wc}],showSpinner:[{type:Wc}],downloadFileName:[{type:Wc}],openFile:[{type:Wc}],download:[{type:Wc}],startDownload:[{type:Wc}],viewBookmark:[{type:Wc}],print:[{type:Wc}],startPrint:[{type:Wc}],fullScreen:[{type:Wc}],find:[{type:Wc}],zoom:[{type:Wc}],nameddest:[{type:Wc}],pagemode:[{type:Wc}],lastPage:[{type:Wc}],rotatecw:[{type:Wc}],rotateccw:[{type:Wc}],cursor:[{type:Wc}],scroll:[{type:Wc}],spread:[{type:Wc}],locale:[{type:Wc}],useOnlyCssZoom:[{type:Wc}],errorOverride:[{type:Wc}],errorAppend:[{type:Wc}],errorMessage:[{type:Wc}],diagnosticLogs:[{type:Wc}],externalWindowOptions:[{type:Wc}],page:[{type:Wc}],pdfSrc:[{type:Wc}]},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["ng2-pdfjs-viewer"]],viewQuery:function(t,e){var i;1&t&&Vc(iV,3),2&t&&Nc(i=Hc())&&(e.iframe=i.first)},inputs:{externalWindow:"externalWindow",showSpinner:"showSpinner",openFile:"openFile",download:"download",viewBookmark:"viewBookmark",print:"print",fullScreen:"fullScreen",find:"find",useOnlyCssZoom:"useOnlyCssZoom",errorOverride:"errorOverride",errorAppend:"errorAppend",diagnosticLogs:"diagnosticLogs",page:"page",pdfSrc:"pdfSrc",viewerId:"viewerId",viewerFolder:"viewerFolder",downloadFileName:"downloadFileName",startDownload:"startDownload",startPrint:"startPrint",zoom:"zoom",nameddest:"nameddest",pagemode:"pagemode",lastPage:"lastPage",rotatecw:"rotatecw",rotateccw:"rotateccw",cursor:"cursor",scroll:"scroll",spread:"spread",locale:"locale",errorMessage:"errorMessage",externalWindowOptions:"externalWindowOptions"},outputs:{onBeforePrint:"onBeforePrint",onAfterPrint:"onAfterPrint",onDocumentLoad:"onDocumentLoad",onPageChange:"onPageChange"},decls:2,vars:1,consts:[["title","ng2-pdfjs-viewer","width","100%","height","100%",3,"hidden"],["iframe",""]],template:function(t,e){1&t&&Ko(0,"iframe",0,1),2&t&&qo("hidden",e.externalWindow||!e.externalWindow&&!e.pdfSrc)},encapsulation:2}),t}(),sV=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[yh]]}),t}();const rV={UKNOWN:"Unknown"},oV={CHROME:"Chrome",FIREFOX:"Firefox",SAFARI:"Safari",OPERA:"Opera",IE:"IE",MS_EDGE:"MS-Edge",MS_EDGE_CHROMIUM:"MS-Edge-Chromium",FB_MESSANGER:"FB-Messanger",SAMSUNG:"Samsung",UCBROWSER:"UC-Browser",UNKNOWN:rV.UKNOWN},aV={HTC:/HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\bEVO\b|T-Mobile G1|Z520m|Android [0-9.]+; Pixel/,NEXUS_PHONE:/Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6/,DELL:/Dell[;]? (Streak|Aero|Venue|Venue Pro|Flash|Smoke|Mini 3iX)|XCD28|XCD35|\b001DL\b|\b101DL\b|\bGS01\b/,MOTOROLA:new RegExp("Motorola|DROIDX|DROID BIONIC|\\bDroid\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|\n A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|\n MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|\n ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|\n WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|\n XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|\n XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\bMoto E\\b|XT1068|XT1092|XT1052"),SAMSUNG:new RegExp("\\bSamsung\\b|SM-G950F|SM-G955F|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|\n GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|\n GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|\n GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|\n GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|\n GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|\n GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|\n GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|\n GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|\n GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|\n GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|\n GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|\n GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|\n GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|\n GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|\n GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|\n GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|\n GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|\n SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|\n SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|\n SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|\n SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|\n SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|\n SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|\n SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|\n SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|\n SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|\n SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|\n SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|\n SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|\n SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|\n SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|\n SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|\n SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|\n SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|\n SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|\n SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|\n SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|\n SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|\n SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|\n SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|\n SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|\n SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|\n SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|\n SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|\n SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|\n SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|\n SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|\n SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|\n GT-N7105|SCH-I535|SM-N900A|SM-N900T|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|\n GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|\n GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|\n SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|\n SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205|SM-G9350|SM-J120F|SM-G920F|SM-G920V|SM-G930F|\n SM-N910C|SM-A310F|GT-I9190|SM-J500FN|SM-G903F|SM-J330F"),LG:new RegExp("\\bLG\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|\n LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|\n C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|\n LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|\n VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802|\n MS323|M257)"),SONY:/SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533/,ASUS:/Asus.*Galaxy|PadFone.*Mobile/,NOKIA_LUMIA:/Lumia [0-9]{3,4}/,MICROMAX:/Micromax.*\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\b/,PALM:/PalmSource|Palm/,VERTU:/Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature/,PANTECH:new RegExp("PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|\n IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|\n IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|\n CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|\n P2000|P7040|P7000|C790"),FLY:/IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250/,WIKO:new RegExp("KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|\n SUNSET|GOA(?!nna)|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLIM|CINK SLIM 2|CINK +|\n CINK KING|CINK PEAX|CINK SLIM|SUBLIM"),I_MOBILE:/i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)/,SIMVALLEY:/\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\b/,WOLFGANG:/AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q/,ALCATEL:/Alcatel/,NINTENDO:/Nintendo (3DS|Switch)/,AMOI:/Amoi/,INQ:/INQ/,VITA:/\bVita\b/,BLACKBERRY:/\bBlackBerry\b|\bBB10\b|rim[0-9]+/,FIREFOX_OS:/\bFirefox-OS\b/,IPHONE:/\biPhone\b/,iPod:/\biPod\b/,ANDROID:/\bAndroid\b/,WINDOWS_PHONE:/\bWindows-Phone\b/,GENERIC_PHONE:new RegExp("Tapatalk|PDA;|SAGEM|\\bmmp\\b|pocket|\\bpsp\\b|symbian|Smartphone|smartfon|treo|up.browser|\n up.link|vodafone|\\bwap\\b|nokia|Nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser")},lV={iPad:/iPad|iPad.*Mobile/,NexusTablet:/Android.*Nexus[\s]+(7|9|10)/,GoogleTablet:/Android.*Pixel C/,SamsungTablet:new RegExp("SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|\n GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|\n SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|\n GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|\n SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|\n GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|\n SHV-E230S|SHW-M180K|SHW-M180L|SM-T290|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|\n SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|\n GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|\n SM-P601|SM-P605|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|\n GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|\n SM-T510|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|\n SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T330|\n SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|\n SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-T116BU|SM-P550|\n SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T815|SM-T360|SM-T533|\n SM-T113|SM-T335|SM-T715|SM-T560|SM-T670|SM-T677|SM-T377|SM-T567|SM-T357T|SM-T555|SM-T561|SM-T713|\n SM-T719|SM-T813|SM-T819|SM-T580|SM-T590|SM-T355Y?|SM-T280|SM-T817A|SM-T820|SM-W700|SM-P580|SM-T587|SM-P350|\n SM-P555M|SM-P355M|SM-T113NU|SM-T815Y|SM-T585|SM-T285|SM-T825|SM-W708|SM-T835|SM-P585Y"),Kindle:new RegExp("Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|\n KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI|KFARWI|KFFOWI|KFGIWI|KFMEWI)\\b|Android.*Silk/[0-9.]+ like Chrome /[0-9.]+ (?!Mobile)"),SurfaceTablet:/Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)/,HPTablet:/HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10/,AsusTablet:new RegExp("^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|\n TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|\n Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|\n ME560CG|ME372CG|ME302KL| K010 | K011 | K017 | K01E |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|\n ME581CL|ME8510C|ME181C|P01Y|PO1MA|P01Z|\\bP027\\b|\\bP024\\b|\\bP00C\\b"),BlackBerryTablet:/PlayBook|RIM Tablet/,HTCtablet:/HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410/,MotorolaTablet:/xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617/,NookTablet:/Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2/,AcerTablet:new RegExp("Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|\n W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b|\n \\bA3-A20\\b|\\bA3-A30"),ToshibaTablet:/Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO/,LGTablet:/\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\b/,FujitsuTablet:/Android.*\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\b/,PrestigioTablet:new RegExp("PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|\n PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|\n PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|\n PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|\n PMT5887|PMT5001|PMT5002"),LenovoTablet:new RegExp("Lenovo TAB|Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|YT3-850M|YT3-X90L|YT3-X90F|\n YT3-X90X|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|\n B8000|B8080)(-|)(FL|F|HV|H|)|TB-X103F|TB-X304F|TB-X304L|TB-X704F|TB-8703F|Tab2A7-10F|TB2-X30L|TB-8504F"),DellTablet:/Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7/,YarvikTablet:new RegExp("Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|\n TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|\n TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|\n TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|\n TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b"),MedionTablet:/Android.*\bOYO\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB/,ArnovaTablet:/97G4|AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2/,IntensoTablet:/INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004/,IRUTablet:/M702pro/,MegafonTablet:/MegaFon V9|\bZTE V9\b|Android.*\bMT7A\b/,EbodaTablet:/E-Boda (Supreme|Impresspeed|Izzycomm|Essential)/,AllViewTablet:/Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)/,ArchosTablet:new RegExp("\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|c|)(G10|\n Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b"),AinolTablet:/NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark/,NokiaLumiaTablet:/Lumia 2520/,SonyTablet:new RegExp("Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|\n SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|\n EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP641|SGP612|SOT31|SGP771|SGP611|\n SGP612|SGP712"),PhilipsTablet:/\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\b/,CubeTablet:/Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT/,CobyTablet:new RegExp("MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|\n MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010"),MIDTablet:new RegExp("M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|\n MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|\n MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733|MID4X10"),MSITablet:new RegExp("MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|\n Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b"),SMiTTablet:/Android.*(\bMID\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)/,RockChipTablet:/Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A/,FlyTablet:/IQ310|Fly Vision/,bqTablet:new RegExp("Android.*(bq)?.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|\n Livingstone|Cervantes|Avant|Aquaris ([E|M]10|M8))|Maxwell.*Lite|Maxwell.*Plus"),HuaweiTablet:new RegExp("MediaPad|MediaPad 7 Youth|MediaPad T3 10|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|\n S7-201|S7-Slim|M2-A01L|BAH-L09|BAH-W09|AGS-W09"),NecTablet:/\bN-06D|\bN-08D/,PantechTablet:/Pantech.*P4100/,BronchoTablet:/Broncho.*(N701|N708|N802|a710)/,VersusTablet:/TOUCHPAD.*[78910]|\bTOUCHTAB\b/,ZyncTablet:/z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900/,PositivoTablet:/TB07STA|TB10STA|TB07FTA|TB10FTA/,NabiTablet:/Android.*\bNabi/,KoboTablet:/Kobo Touch|\bK080\b|\bVox\b Build|\bArc\b Build/,DanewTablet:/DSlide.*\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\b/,TexetTablet:new RegExp("NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|\n TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|\n TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|\n TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|\n TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|\n TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|\n TB-436|TB-416|TB-146SE|TB-126SE"),PlaystationTablet:/Playstation.*(Portable|Vita)/,TrekstorTablet:/ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab/,PyleAudioTablet:/\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\b/,AdvanTablet:new RegExp("Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|\n T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b"),DanyTechTablet:"Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|\n Genius TAB GII|Genius TAB GIII|Genius Tab S1",GalapadTablet:/Android.*\bG1\b(?!\))/,MicromaxTablet:/Funbook|Micromax.*\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\b/,KarbonnTablet:/Android.*\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\b/,AllFineTablet:/Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide/,PROSCANTablet:new RegExp("\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|\n PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|\n PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|\n PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b"),YONESTablet:/BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026/,ChangJiaTablet:new RegExp("TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|\n TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|\n TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|\n TPC10111|TPC10203|TPC10205|TPC10503"),GUTablet:/TX-A1301|TX-M9002|Q702|kf026/,PointOfViewTablet:new RegExp("TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|\n TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|\n TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|\n TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10"),OvermaxTablet:new RegExp("OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|\n MagicTab|Stream|TB-08|TB-09)|Qualcore 1027"),HCLTablet:/HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync/,DPSTablet:/DPS Dream 9|DPS Dual 7/,VistureTablet:/V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10/,CrestaTablet:/CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989/,MediatekTablet:/\bMT8125|MT8389|MT8135|MT8377\b/,ConcordeTablet:/Concorde([ ]+)?Tab|ConCorde ReadMan/,GoCleverTablet:new RegExp("GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|\n TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|\n GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|\n TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|\n TAB R104|TAB R83.3|TAB A1042"),ModecomTablet:new RegExp("FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|\n FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|\n FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003"),VoninoTablet:new RegExp("\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|\n Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|\n Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b"),ECSTablet:/V07OT2|TM105A|S10OT1|TR10CS1/,StorexTablet:/eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab/,VodafoneTablet:/SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7|VF-1497/,EssentielBTablet:/Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2/,RossMoorTablet:/RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711/,iMobileTablet:/i-mobile i-note/,TolinoTablet:/tolino tab [0-9.]+|tolino shine/,AudioSonicTablet:/\bC-22Q|T7-QC|T-17B|T-17P\b/,AMPETablet:/Android.* A78 /,SkkTablet:/Android.* (SKYPAD|PHOENIX|CYCLOPS)/,TecnoTablet:/TECNO P9|TECNO DP8D/,JXDTablet:new RegExp("Android.* \\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|\n S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|\n P1000|P300|S18|S6600|S9100)\\b"),iJoyTablet:new RegExp("Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|\n Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|\n Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|\n Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|\n Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)"),FX2Tablet:/FX2 PAD7|FX2 PAD10/,XoroTablet:new RegExp("KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|\n PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|\n PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|\n TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151"),ViewsonicTablet:/ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a/,VerizonTablet:/QTAQZ3|QTAIR7|QTAQTZ3|QTASUN1|QTASUN2|QTAXIA1/,OdysTablet:/LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\bXELIO\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10/,CaptivaTablet:/CAPTIVA PAD/,IconbitTablet:new RegExp("NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|\n NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S"),TeclastTablet:new RegExp("T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\n \\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\n \\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\n \\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\n \\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\n \\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\n \\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\n \\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\n \\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi"),OndaTablet:new RegExp("\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|\n V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|\n V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|\n Vi40)\\b[s]+|V10 \\b4G\\b"),JaytechTablet:/TPC-PA762/,BlaupunktTablet:/Endeavour 800NG|Endeavour 1010/,DigmaTablet:/\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\b/,EvolioTablet:/ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\bEvotab\b|\bNeura\b/,LavaTablet:/QPAD E704|\bIvoryS\b|E-TAB IVORY|\bE-TAB\b/,AocTablet:/MW0811|MW0812|MW0922|MTK8382|MW1031|MW0831|MW0821|MW0931|MW0712/,MpmanTablet:new RegExp("MP11 OCTA|MP10 OCTA|MPQC1114|MPQC1004|MPQC994|MPQC974|MPQC973|MPQC804|MPQC784|MPQC780|\n \\bMPG7\\b|MPDCG75|MPDCG71|MPDC1006|MP101DC|MPDC9000|MPDC905|MPDC706HD|MPDC706|MPDC705|MPDC110|\n MPDC100|MPDC99|MPDC97|MPDC88|MPDC8|MPDC77|MP709|MID701|MID711|MID170|MPDC703|MPQC1010"),CelkonTablet:/CT695|CT888|CT[\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\bCT-1\b/,WolderTablet:new RegExp("miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|\n POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|\n FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b"),MediacomTablet:"M-MPI10C3G|M-SP10EG|M-SP10EGP|M-SP10HXAH|M-SP7HXAH|M-SP10HXBH|M-SP8HXAH|M-SP8MXA",MiTablet:/\bMI PAD\b|\bHM NOTE 1W\b/,NibiruTablet:/Nibiru M1|Nibiru Jupiter One/,NexoTablet:/NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI/,LeaderTablet:new RegExp("TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|\n TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100"),UbislateTablet:/UbiSlate[\s]?7C/,PocketBookTablet:/Pocketbook/,KocasoTablet:/\b(TB-1207)\b/,HisenseTablet:/\b(F5281|E2371)\b/,Hudl:/Hudl HT7S3|Hudl 2/,TelstraTablet:/T-Hub2/,GenericTablet:new RegExp("Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|\n A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|\n Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bTP750\\b|\\bQTAQZ3\\b|WVT101|TM1088|KT107")},cV={BLACKBERRY:"Blackberry",FIREFOX_OS:"Firefox-OS",CHROME_BOOK:"Chrome-Book",WINDOWS_PHONE:"Windows-Phone",VITA:"Vita",PS4:"PS4",CHROMECAST:"Chromecast",APPLE_TV:"Apple-TV",GOOGLE_TV:"Google-TV",ANDROID:"Android",Tesla:"Tesla",iPad:"iPad",IPHONE:"iPhone",iPod:"iPod",UNKNOWN:rV.UKNOWN,HTC:"HTC",NEXUS_PHONE:"Nexus Phone",NexusTablet:"Nexus Tablet",DELL:"Dell",MOTOROLA:"Motorola",SAMSUNG:"Samsung",LG:"LG",SONY:"Sony",ASUS:"Asus",NOKIA_LUMIA:"Nokia Lumia",MICROMAX:"Micromax",PALM:"Palm",VERTU:"Vertu",PANTECH:"PANTECH",FLY:"Fly",WIKO:"WIKO",I_MOBILE:"i-mobile",SIMVALLEY:"Simvalley",WOLFGANG:"Wolfgang",ALCATEL:"Alcatel",NINTENDO:"Nintendo",AMOI:"Amoi",INQ:"INQ",GENERIC_PHONE:"Generic Phone"},uV={WINDOWS:"Windows",MAC:"Mac",IOS:"iOS",ANDROID:"Android",LINUX:"Linux",UNIX:"Unix",FIREFOX_OS:"Firefox-OS",CHROME_OS:"Chrome-OS",WINDOWS_PHONE:"Windows-Phone",UNKNOWN:rV.UKNOWN},dV={WINDOWS_3_11:"windows-3-11",WINDOWS_95:"windows-95",WINDOWS_ME:"windows-me",WINDOWS_98:"windows-98",WINDOWS_CE:"windows-ce",WINDOWS_2000:"windows-2000",WINDOWS_XP:"windows-xp",WINDOWS_SERVER_2003:"windows-server-2003",WINDOWS_VISTA:"windows-vista",WINDOWS_7:"windows-7",WINDOWS_8_1:"windows-8-1",WINDOWS_8:"windows-8",WINDOWS_10:"windows-10",WINDOWS_PHONE_7_5:"windows-phone-7-5",WINDOWS_PHONE_8_1:"windows-phone-8-1",WINDOWS_PHONE_10:"windows-phone-10",WINDOWS_NT_4_0:"windows-nt-4-0",MACOSX_15:"mac-os-x-15",MACOSX_14:"mac-os-x-14",MACOSX_13:"mac-os-x-13",MACOSX_12:"mac-os-x-12",MACOSX_11:"mac-os-x-11",MACOSX_10:"mac-os-x-10",MACOSX_9:"mac-os-x-9",MACOSX_8:"mac-os-x-8",MACOSX_7:"mac-os-x-7",MACOSX_6:"mac-os-x-6",MACOSX_5:"mac-os-x-5",MACOSX_4:"mac-os-x-4",MACOSX_3:"mac-os-x-3",MACOSX_2:"mac-os-x-2",MACOSX:"mac-os-x",iOS:"iOS",UNKNOWN:rV.UKNOWN.toLowerCase()},hV=Object.assign(Object.assign(Object.assign({},aV),lV),{FIREFOX_OS:{and:[/\bFirefox\b/,/\bMobile\b/]},CHROME_BOOK:/\bCrOS\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,CHROMECAST:/\bCrKey\b/,APPLE_TV:/^iTunes-AppleTV\/4.1$/,GOOGLE_TV:/\bGoogleTV\b/,Tesla:/Tesla\/([0-9]{4}.[0-9]{1,2}.?[0-9]{0,2}.?[0-9]{0,2})-(.{7})/}),pV={WINDOWS_3_11:/Win16/,WINDOWS_95:/(Windows 95|Win95|Windows_95)/,WINDOWS_ME:/(Win 9x 4.90|Windows ME)/,WINDOWS_98:/(Windows 98|Win98)/,WINDOWS_CE:/Windows CE/,WINDOWS_2000:/(Windows NT 5.0|Windows 2000)/,WINDOWS_XP:/(Windows NT 5.1|Windows XP)/,WINDOWS_SERVER_2003:/Windows NT 5.2/,WINDOWS_VISTA:/Windows NT 6.0/,WINDOWS_7:/(Windows 7|Windows NT 6.1)/,WINDOWS_8_1:/(Windows 8.1|Windows NT 6.3)/,WINDOWS_8:/(Windows 8|Windows NT 6.2)/,WINDOWS_10:/(Windows NT 10.0)/,WINDOWS_PHONE_7_5:/(Windows Phone OS 7.5)/,WINDOWS_PHONE_8_1:/(Windows Phone 8.1)/,WINDOWS_PHONE_10:/(Windows Phone 10)/,WINDOWS_NT_4_0:{and:[/(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/,{not:/Windows NT 10.0/}]},MACOSX:/(MAC OS X\s*[^ 0-9])/,MACOSX_3:/(Darwin 10.3|Mac OS X 10.3)/,MACOSX_4:/(Darwin 10.4|Mac OS X 10.4)/,MACOSX_5:/(Mac OS X 10.5)/,MACOSX_6:/(Mac OS X 10.6)/,MACOSX_7:/(Mac OS X 10.7)/,MACOSX_8:/(Mac OS X 10.8)/,MACOSX_9:/(Mac OS X 10.9)/,MACOSX_10:/(Mac OS X 10.10)/,MACOSX_11:/(Mac OS X 10.11)/,MACOSX_12:/(Mac OS X 10.12)/,MACOSX_13:/(Mac OS X 10.13)/,MACOSX_14:/(Mac OS X 10.14)/,MACOSX_15:/(Mac OS X 10.15)/,iOS:/(iPhone OS\s*[0-9_]+)/},mV={CHROME:[/\bChrome\/([\d\.]+)\b/,/\bCriOS\/([\d\.]+)\b/,/\bHeadlessChrome\/([\d\.]+)\b/],FIREFOX:[/\bFirefox\/([\d\.]+)\b/,/\bFxiOS\/([\d\.]+)\b/],SAFARI:[/\bVersion\/([\d\.]+)\b/,/\bSafari\/([\d\.]+)\b/],OPERA:[/\bVersion\/([\d\.]+)\b/,/\bOPR\/([\d\.]+)\b/],IE:[/\bMSIE ([\d\.]+\w?)\b/,/\brv:([\d\.]+\w?)\b/],MS_EDGE:/\bEdg(?:e|A|iOS)\/([\d\.]+)\b/,MS_EDGE_CHROMIUM:/\bEdg\/([\d\.]+)\b/,SAMSUNG:/\bSamsungBrowser\/([\d\.]+)\b/,UCBROWSER:/\bUCBrowser\/([\d\.]+)\b/},fV=(t,e)=>(t[e]=pV[e],t),gV=Object.keys(pV).reduce(fV,{}),_V=(t,e)=>(t[oV[e]]=mV[e],t),bV=Object.keys(mV).reduce(_V,{});var yV=Object.freeze({__proto__:null,GENERAL:rV,BROWSERS:oV,MOBILES_RE:aV,TABLETS_RE:lV,DEVICES:cV,OS:uV,OS_VERSIONS:dV,OS_RE:{WINDOWS:{and:[{or:[/\bWindows|(Win\d\d)\b/,/\bWin 9x\b/]},{not:/\bWindows Phone\b/}]},MAC:{and:[/\bMac OS\b/,{not:{or:[/\biPhone\b/,/\biPad\b/,/\biPod\b/,/\bWindows Phone\b/]}}]},IOS:{and:[{or:[/\biPad\b/,/\biPhone\b/,/\biPod\b/]},{not:/\bWindows Phone\b/}]},ANDROID:{and:[/\bAndroid\b/,{not:/\bWindows Phone\b/}]},LINUX:/\bLinux\b/,UNIX:/\bUNIX\b/,FIREFOX_OS:{and:[/\bFirefox\b/,/Mobile\b/]},CHROME_OS:/\bCrOS\b/,WINDOWS_PHONE:{or:[/\bIEMobile\b/,/\bWindows Phone\b/]},PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/},BROWSERS_RE:{CHROME:{and:[{or:[/\bChrome\b/,/\bCriOS\b/,/\bHeadlessChrome\b/]},{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},FIREFOX:{or:[/\bFirefox\b/,/\bFxiOS\b/]},SAFARI:{and:[/^((?!CriOS).)*\Safari\b.*$/,{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bWindows Phone\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},OPERA:{or:[/Opera\b/,/\bOPR\b/]},IE:{or:[/\bMSIE\b/,/\bTrident\b/,/^Mozilla\/5\.0 \(Windows NT 10\.0; Win64; x64\)$/]},MS_EDGE:{or:[/\bEdg(e|A|iOS)\b/]},MS_EDGE_CHROMIUM:/\bEdg\/\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/,FB_MESSANGER:/\bFBAN\/MessengerForiOS\b/,SAMSUNG:/\bSamsungBrowser\b/,UCBROWSER:/\bUCBrowser\b/},DEVICES_RE:hV,OS_VERSIONS_RE_MAP:pV,BROWSER_VERSIONS_RE_MAP:mV,OS_VERSIONS_RE:gV,BROWSER_VERSIONS_RE:bV,"\u02750":fV,"\u02751":_V});class vV{constructor(){}test(t,e){return"string"==typeof e&&(e=new RegExp(e)),e instanceof RegExp?e.test(t):e&&Array.isArray(e.and)?e.and.every(e=>this.test(t,e)):e&&Array.isArray(e.or)?e.or.some(e=>this.test(t,e)):!(!e||!e.not||this.test(t,e.not))}exec(t,e){return"string"==typeof e&&(e=new RegExp(e)),e instanceof RegExp?e.exec(t):e&&Array.isArray(e)?e.reduce((e,i)=>e||this.exec(t,i),null):null}}var wV=function(t){return t.Mobile="mobile",t.Tablet="tablet",t.Desktop="desktop",t.Unknown="unknown",t}({}),CV=function(t){return t.Portrait="portrait",t.Landscape="landscape",t}({});let xV=(()=>{class t{constructor(t){this.platformId=t,this.ua="",this.userAgent="",this.os="",this.browser="",this.device="",this.os_version="",this.browser_version="",this.reTree=new vV,this.deviceType="",this.orientation="",vh(this.platformId)&&"undefined"!=typeof window&&(this.userAgent=window.navigator.userAgent),this.setDeviceInfo(this.userAgent)}setDeviceInfo(t=this.userAgent){t!==this.userAgent&&(this.userAgent=t);const e=[{const:"OS",prop:"os"},{const:"BROWSERS",prop:"browser"},{const:"DEVICES",prop:"device"},{const:"OS_VERSIONS",prop:"os_version"}];if(e.forEach(e=>{this[e.prop]=Object.keys(yV[e.const]).reduce((i,n)=>"device"===yV[e.const][n]&&vh(this.platformId)&&(this.reTree.test(this.userAgent,lV.iPad)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)?(i[yV[e.const][n]]="iPad",Object):(i[yV[e.const][n]]=this.reTree.test(t,yV[`${e.const}_RE`][n]),i),{})}),e.forEach(t=>{this[t.prop]=Object.keys(yV[t.const]).map(e=>yV[t.const][e]).reduce((e,i)=>"device"===t.prop&&e===yV[t.const].ANDROID?this[t.prop][i]?i:e:e===yV[t.const].UNKNOWN&&this[t.prop][i]?i:e,yV[t.const].UNKNOWN)}),this.browser_version="0",this.browser!==oV.UNKNOWN){const e=this.reTree.exec(t,bV[this.browser]);e&&(this.browser_version=e[1])}this.orientation="undefined"!=typeof window&&window.matchMedia?window.matchMedia("(orientation: landscape)").matches?CV.Landscape:CV.Portrait:rV.UKNOWN,this.deviceType=this.isTablet()?wV.Tablet:this.isMobile(this.userAgent)?wV.Mobile:this.isDesktop(this.userAgent)?wV.Desktop:wV.Unknown}getDeviceInfo(){return{userAgent:this.userAgent,os:this.os,browser:this.browser,device:this.device,os_version:this.os_version,browser_version:this.browser_version,deviceType:this.deviceType,orientation:this.orientation}}isMobile(t=this.userAgent){return!this.isTablet(t)&&!!Object.keys(aV).find(e=>this.reTree.test(t,aV[e]))}isTablet(t=this.userAgent){return!(!vh(this.platformId)||!(this.reTree.test(this.userAgent,lV.iPad)||"undefined"!=typeof navigator&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1))||!!Object.keys(lV).find(e=>!!this.reTree.test(t,lV[e]))}isDesktop(t=this.userAgent){const e=[cV.PS4,cV.CHROME_BOOK,cV.UNKNOWN];return(this.device!==cV.UNKNOWN||!this.isMobile(t)&&!this.isTablet(t))&&e.indexOf(this.device)>-1}}return t.\u0275fac=function(e){return new(e||t)(wn(Jc))},t.\u0275prov=_t({factory:function(){return new t(wn(Jc))},token:t,providedIn:"root"}),t})();var SV=i("DlQD");const kV=(()=>{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 AV(t=null){return e=>e.lift(new OV(t))}class OV{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new EV(t,this.defaultValue))}}class EV extends m{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function TV(t=MV){return e=>e.lift(new PV(t))}class PV{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new DV(t,this.errorFactory))}}class DV extends m{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function MV(){return new kV}function IV(t,e){const i=arguments.length>=2;return n=>n.pipe(t?Mm((e,i)=>t(e,i,n)):_,Tf(1),i?AV(e):TV(()=>new kV))}const RV=["*"];class LV{}const FV=new en("SECURITY_CONTEXT");let NV=(()=>{class t{constructor(t,e,i,n,s){this.platform=t,this.securityContext=e,this.http=i,this.sanitizer=s,this.initialMarkedOptions={renderer:new SV.Renderer},this.options=n}get options(){return this._options}set options(t){this._options=Object.assign(Object.assign({},this.initialMarkedOptions),t)}get renderer(){return this.options.renderer}set renderer(t){this.options.renderer=t}compile(t,e=!1,i=!1,n=this.options){const s=this.trimIndentation(t),r=e?this.decodeHtml(s):s,o=i?this.renderEmoji(r):r,a=Object(SV.parse)(o,n);return this.sanitizer.sanitize(this.securityContext,a)||""}getSource(t){if(!this.http)throw new Error("[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(t,{responseType:"text"}).pipe(E(e=>this.handleExtension(t,e)))}highlight(t){if(vh(this.platform)&&"undefined"!=typeof Prism){t||(t=document);const e=t.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(e,t=>t.classList.add("language-none")),Prism.highlightAllUnder(t)}}renderKatex(t,e){if("undefined"==typeof katex||void 0===katex.renderToString)throw new Error("[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information");return t.replace(/\$([^\s][^$]*?[^\s])\$/gm,(t,i)=>katex.renderToString(i,e))}decodeHtml(t){if(vh(this.platform)){const e=document.createElement("textarea");return e.innerHTML=t,e.value}return t}handleExtension(t,e){const i=t?t.split("?")[0].split(".").splice(-1).join():null;return"md"!==i?"```"+i+"\n"+e+"\n```":e}renderEmoji(t){if("undefined"==typeof joypixels||void 0===joypixels.shortnameToUnicode)throw new Error("[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information");return joypixels.shortnameToUnicode(t)}trimIndentation(t){if(!t)return"";let e;return t.split("\n").map(t=>{let i=e;return t.length>0&&(i=isNaN(i)?t.search(/\S|$/):Math.min(t.search(/\S|$/),i)),isNaN(e)&&(e=i),i?t.substring(i):t}).join("\n")}}return t.\u0275fac=function(e){return new(e||t)(wn(Jc),wn(FV),wn(Km,8),wn(LV,8),wn(Xh))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();var VV=function(t){return t.LineHighlight="line-highlight",t.LineNumbers="line-numbers",t}({});let BV=(()=>{class t{constructor(t,e){this.element=t,this.markdownService=e,this.error=new kc,this.load=new kc,this.ready=new kc,this._emoji=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1}get emoji(){return this._emoji}set emoji(t){this._emoji=this.coerceBooleanProperty(t)}get katex(){return this._katex}set katex(t){this._katex=this.coerceBooleanProperty(t)}get lineHighlight(){return this._lineHighlight}set lineHighlight(t){this._lineHighlight=this.coerceBooleanProperty(t)}get lineNumbers(){return this._lineNumbers}set lineNumbers(t){this._lineNumbers=this.coerceBooleanProperty(t)}ngOnChanges(){null==this.data?null==this.src||this.handleSrc():this.handleData()}ngAfterViewInit(){this.data||this.src||this.handleTransclusion()}render(t,e=!1){let i=this.markdownService.compile(t,e,this.emoji);i=this.katex?this.markdownService.renderKatex(i,this.katexOptions):i,this.element.nativeElement.innerHTML=i,this.handlePlugins(),this.markdownService.highlight(this.element.nativeElement),this.ready.emit()}coerceBooleanProperty(t){return null!=t&&"false"!=`${t}`}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe(t=>{this.render(t),this.load.emit(t)},t=>this.error.emit(t))}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.lineHighlight&&(this.setPluginClass(this.element.nativeElement,VV.LineHighlight),this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset})),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,VV.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(t,e){const i=t.querySelectorAll("pre");for(let n=0;n{const s=e[t];if(s){const e=this.toLispCase(t);i.item(n).setAttribute(e,s.toString())}})}toLispCase(t){const e=t.match(/([A-Z])/g);if(!e)return t;let i=t.toString();for(let n=0,s=e.length;n{class t{static forRoot(e){return{ngModule:t,providers:[NV,e&&e.loader||[],e&&e.markedOptions||[],{provide:FV,useValue:e&&null!=e.sanitize?e.sanitize:hs.HTML}]}}static forChild(){return{ngModule:t}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({}),t})();class zV{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new GV(t,this.durationSelector))}}class GV extends H{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){try{const e=this.durationSelector.call(this,t);e&&this._tryNext(t,e)}catch(e){this.destination.error(e)}}_complete(){this.emitValue(),this.destination.complete()}_tryNext(t,e){let i=this.durationSubscription;this.value=t,this.hasValue=!0,i&&(i.unsubscribe(),this.remove(i)),i=z(e,new B(this)),i&&!i.closed&&this.add(this.durationSubscription=i)}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){if(this.hasValue){const t=this.value,e=this.durationSubscription;e&&(this.durationSubscription=void 0,e.unsubscribe(),this.remove(e)),this.value=void 0,this.hasValue=!1,super._next(t)}}}const UV=new en("ngProgressConfig");let jV=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:UV,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[yh]]}),t})();const WV={production:!0};function $V(t,e){if(1&t&&(Qo(0,"mat-option",4),Na(1),Xo()),2&t){const t=e.$implicit;qo("value",t),dr(1),Ba(" ",t.name," ")}}let qV=(()=>{class t extends hN{ngOnInit(){this.filteredOptions=this.formControl.valueChanges.pipe(jp(""),E(t=>"string"==typeof t?t:t.name),E(t=>this.to.filter(t)))}displayFn(t){return t?t.name:void 0}}return t.\u0275fac=function(e){return YV(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-autocomplete-section"]],features:[Oo],decls:5,vars:9,consts:[["matInput","",3,"matAutocomplete","formControl","formlyAttributes","placeholder","errorStateMatcher"],[3,"displayWith"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(t,e){1&t&&(Ko(0,"input",0),Qo(1,"mat-autocomplete",1,2),jo(3,$V,2,2,"mat-option",3),vc(4,"async"),Xo()),2&t&&(qo("matAutocomplete",Wo(2))("formControl",e.formControl)("formlyAttributes",e.field)("placeholder",e.to.placeholder)("errorStateMatcher",e.errorStateMatcher),dr(1),qo("displayWith",e.displayFn),dr(2),qo("ngForOf",wc(4,7,e.filteredOptions)))},directives:[cE,fA,_b,Ub,xy,BF,cA,Kd,Jx],pipes:[ph],styles:[""]}),t})();const YV=Qi(qV),QV=["fieldComponent"];let XV=(()=>{class t extends GF{}return t.\u0275fac=function(e){return KV(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-card-wrapper"]],viewQuery:function(t,e){if(1&t&&Vc(QV,3,Kl),2&t){let t;Nc(t=Hc())&&(e.fieldComponent=t.first)}},inputs:{to:"to"},features:[Oo],decls:9,vars:2,consts:[["fieldComponent",""]],template:function(t,e){1&t&&(Qo(0,"mat-card"),Qo(1,"mat-card-header"),Qo(2,"mat-card-title"),Na(3),Xo(),Qo(4,"mat-card-subtitle"),Na(5),Xo(),Xo(),Qo(6,"mat-card-content"),ta(7,null,0),Xo(),Xo()),2&t&&(dr(3),Va(e.to.label),dr(2),Va(e.to.description))},directives:[ZA,JA,QA,XA,YA],styles:["mat-card[_ngcontent-%COMP%]{margin-bottom:1em;padding-bottom:2em}mat-card[_ngcontent-%COMP%] .mat-card-header-text{margin-left:0}mat-card[_ngcontent-%COMP%] .mat-card-header-text mat-card-title{font-size:1em;font-weight:600;margin-bottom:10px}"]}),t})();const KV=Qi(XV),ZV=["fieldComponent"];let JV=(()=>{class t extends GF{}return t.\u0275fac=function(e){return tB(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-help-wrapper"]],viewQuery:function(t,e){if(1&t&&Vc(ZV,3,Kl),2&t){let t;Nc(t=Hc())&&(e.fieldComponent=t.first)}},inputs:{to:"to"},features:[Oo],decls:7,vars:2,consts:[[1,"mat-typography","alert","alert-info"],[1,"mat-body-strong"],["fieldComponent",""]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"p",1),Na(2),Xo(),Qo(3,"p"),Na(4),Xo(),ta(5,null,2),Xo()),2&t&&(dr(2),Va(e.to.label),dr(2),Va(e.to.description))},styles:[""]}),t})();const tB=Qi(JV);function eB(t,e){if(1&t){const t=ea();Qo(0,"mat-tree-node",3),Qo(1,"li",4),Ko(2,"button",5),Qo(3,"mat-checkbox",6),ra("change",function(){Be(t);const i=e.$implicit;return ua().toggleNode(i)}),Na(4),Xo(),Xo(),Xo()}if(2&t){const t=e.$implicit,i=ua();dr(3),qo("checked",i.checklistSelection.isSelected(t)),dr(1),Va(t.name)}}function iB(t,e){if(1&t&&(Qo(0,"span",13),Na(1),Xo()),2&t){const t=ua().$implicit;ma("matBadge",ua().numSelectedDescendants(t)),dr(1),Va(t.name)}}function nB(t,e){if(1&t&&(Qo(0,"span"),Na(1),Xo()),2&t){const t=ua().$implicit;dr(1),Va(t.name)}}function sB(t,e){if(1&t&&(Qo(0,"mat-nested-tree-node"),Qo(1,"li"),Qo(2,"div",4),Qo(3,"button",7),Qo(4,"mat-icon",8),Na(5),Xo(),Xo(),Qo(6,"mat-checkbox",9),jo(7,iB,2,2,"span",10),jo(8,nB,2,1,"span",11),Xo(),Xo(),Qo(9,"ul"),ta(10,12),Xo(),Xo(),Xo()),2&t){const t=e.$implicit,i=ua();dr(3),zo("aria-label","toggle "+t.name),dr(2),Ba(" ",i.treeControl.isExpanded(t)?"expand_more":"chevron_right"," "),dr(1),qo("checked",i.checklistSelection.isSelected(t)),dr(1),qo("ngIf",i.numSelectedDescendants(t)),dr(1),qo("ngIf",!i.numSelectedDescendants(t)),dr(1),Sa("tree-select-invisible",!i.treeControl.isExpanded(t))}}let rB=(()=>{class t extends hN{constructor(){super(),this.dataLoaded=!1,this.nodes={},this.checklistSelection=new mS(!0),this.hasNestedChild=(t,e)=>e.children&&e.children.length>0,this.treeControl=new vL(t=>Sp(t.children)),this.dataSource=new $L}ngOnInit(){this.to.options.subscribe(t=>{this.dataSource.data=t,this.updateSelection()})}updateSelection(){this.isReady()&&(this.model.categories&&this.model.categories.forEach(t=>{const e=this.findNode(t.id);e&&this.toggleNode(e),this._updateModelCategories()}),this.dataLoaded=!0)}findNode(t){const e=[];return this.dataSource.data.forEach(t=>{this.treeControl.getDescendants(t).forEach(t=>e.push(t)),e.push(t)}),e.find(e=>e.id===t)}numSelectedDescendants(t){return this.treeControl.getDescendants(t).filter(t=>this.checklistSelection.isSelected(t)).length}toggleNode(t){this.checklistSelection.toggle(t);const e=[];let i=this.findNode(t.parent_id);for(;null!=i;)e.push(i),i=this.findNode(i.parent_id);this.checklistSelection.isSelected(t)?e.forEach(t=>{const e=this.findNode(t.id);this.checklistSelection.select(e)}):e.forEach(t=>{const e=this.findNode(t.id);this.numSelectedDescendants(e)<1&&this.checklistSelection.deselect(e)}),this._updateModelCategories()}isReady(){return!!(this.field&&this.field.form&&this.field.form.controls)}_updateModelCategories(){this.model.categories=[],this.checklistSelection.selected.forEach(t=>this.model.categories[t.id]=!0)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-multiselect-tree"]],inputs:{to:"to"},features:[Oo],decls:3,vars:3,consts:[[1,"tree-select",3,"dataSource","treeControl"],["matTreeNodeToggle","",4,"matTreeNodeDef"],[4,"matTreeNodeDef","matTreeNodeDefWhen"],["matTreeNodeToggle",""],[1,"mat-tree-node"],["disabled","","mat-icon-button",""],[3,"checked","change"],["mat-icon-button","","matTreeNodeToggle","",1,"toggle-node-button"],[1,"mat-icon-rtl-mirror"],["disabled","true",3,"checked"],["matBadgeColor","accent","matBadgeOverlap","false",3,"matBadge",4,"ngIf"],[4,"ngIf"],["matTreeNodeOutlet",""],["matBadgeColor","accent","matBadgeOverlap","false",3,"matBadge"]],template:function(t,e){1&t&&(Qo(0,"mat-tree",0),jo(1,eB,5,2,"mat-tree-node",1),jo(2,sB,11,7,"mat-nested-tree-node",2),Xo()),2&t&&(qo("dataSource",e.dataSource)("treeControl",e.treeControl),dr(2),qo("matTreeNodeDefWhen",e.hasNestedChild))},directives:[zL,LL,RL,UL,TA,hO,NL,JT,Jd,HL,wA],styles:[".tree-select-invisible[_ngcontent-%COMP%]{display:none}.tree-select[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .tree-select[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;margin-left:1rem;list-style-type:none}.tree-select[_ngcontent-%COMP%] li[_ngcontent-%COMP%] button.toggle-node-button[_ngcontent-%COMP%], .tree-select[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] button.toggle-node-button[_ngcontent-%COMP%]{outline:none!important}"]}),t})();const oB=function(t){window.scroll({top:0,left:0,behavior:"smooth"}),"Safari"===t.browser?window.scroll(0,0):window.scroll({behavior:"smooth",top:0})},aB=function(t){const e=document.querySelector("mat-form-field.ng-invalid");e&&("Safari"===t.browser?window.scroll(0,e.offsetTop-200):window.scroll({behavior:"smooth",top:e.offsetTop-200}))},lB=function(t){return null==(e=t)||"object"!=typeof e||t instanceof RegExp||t instanceof v||t.changingThisBreaksApplicationSecurity?t:t instanceof ay?null:t instanceof Date?new Date(t.getTime()):Array.isArray(t)?t.slice(0).map(t=>lB(t)):(t=Object.assign({},t),Object.keys(t).forEach(e=>t[e]=lB(t[e])),t);var e},cB=function(t){return{"repeat-section-dialog-save":!0,disabled:t}},uB=function(){return{"repeat-section-dialog-cancel":!0}};let dB=(()=>{class t{constructor(t,e,i){this.data=t,this.deviceDetectorService=e,this.dialogRef=i}ngAfterContentInit(){this.initialModel=lB(this.data.model),this.updateDisableSave()}updateDisableSave(){this.disableSave=!this.noErrors()}noErrors(){return this.data.fields.every(t=>t.formControl&&t.formControl.valid)}onNoClick(){Object.keys(this.initialModel).forEach(t=>{this.data.model[t]=this.initialModel[t]});const t=0===Object.keys(this.data.model).length&&this.data.model.constructor===Object;this.dialogRef.close(t?void 0:this.data.model)}highlightRequiredFields(t){t.forEach(t=>{t.formControl.updateValueAndValidity(),t.formControl.markAsDirty(),t.fieldGroup&&this.highlightRequiredFields(t.fieldGroup)}),this.updateDisableSave()}onInvalidFields(){this.highlightRequiredFields(this.data.fields),aB(this.deviceDetectorService)}onSubmit(){this.noErrors()&&this.dialogRef.close(this.data)}}return t.\u0275fac=function(e){return new(e||t)($o(BO),$o(xV),$o(NO))},t.\u0275cmp=Xt({type:t,selectors:[["app-repeat-section-dialog"]],decls:14,vars:8,consts:[[1,"mat-typography"],["mat-dialog-content",""],["fxLayout","row","fxLayout.lt-md","column"],["fxFlex",""],["mat-button","","id","highlight-required-fields-in-dialog","color","warn",3,"click"],[3,"fields","model","change"],["mat-dialog-actions",""],["mat-flat-button","","color","primary",3,"ngClass","click"],["mat-button","",3,"ngClass","click"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"div",1),Qo(2,"div",2),Qo(3,"h1"),Na(4),Xo(),Ko(5,"span",3),Qo(6,"button",4),ra("click",function(){return e.highlightRequiredFields(e.data.fields)}),Na(7,"*Required"),Xo(),Xo(),Qo(8,"formly-form",5),ra("change",function(){return e.updateDisableSave()}),Xo(),Xo(),Qo(9,"div",6),Qo(10,"button",7),ra("click",function(){return e.disableSave?e.onInvalidFields():e.onSubmit()}),Na(11,"Save"),Xo(),Qo(12,"button",8),ra("click",function(){return e.onNoClick()}),Na(13,"Cancel"),Xo(),Xo(),Xo()),2&t&&(dr(4),Va(e.data.title),dr(4),qo("fields",e.data.fields)("model",e.data.model),dr(2),qo("ngClass",pc(5,cB,!e.noErrors())),dr(2),qo("ngClass",hc(7,uB)))},directives:[YO,o_,k_,TA,NF,QO,Qd,Pg],styles:["#highlight-required-fields-in-dialog[_ngcontent-%COMP%]{text-align:right}"]}),t})();function hB(t,e){1&t&&Ko(0,"app-form-printout",3),2&t&&qo("field",ua().$implicit)}function pB(t,e){if(1&t&&(Qo(0,"p"),Na(1),Xo()),2&t){const t=ua().$implicit,e=ua();dr(1),Va(e.getModelValue(t.name))}}function mB(t,e){if(1&t&&(Zo(0),jo(1,hB,1,1,"app-form-printout",1),jo(2,pB,2,1,"p",2),Jo()),2&t){const t=e.$implicit,i=ua();dr(1),qo("ngIf",t.fieldGroup&&t.fieldGroup.length>0),dr(1),qo("ngIf",!t.fieldGroup&&i.getModelValue(t.name))}}let fB=(()=>{class t{constructor(){}getModelValue(t){let e=this.field.model[t];if(this.field.fieldGroup){let t;if(this.field.fieldGroup.forEach(i=>{"select"!==i.type&&"multicheckbox"!==i.type&&"radio"!==i.type||i.templateOptions.options.forEach(i=>{this._isOther(i.value)||this._isOther(i.label)||i.value!==e||(t=i.label)})}),t)return t}const i=RegExp(`^${t}`);"string"==typeof e&&i.test(e)&&(e=e.replace(i,""));const n=/_other$|\w+Other$/;if(n.test(t)){const i=t.replace(n,""),s=this.field.model[i];return this._isOther(s)||n.test(s)?e:null}return this._isOther(e)?null:e}_isOther(t){return t&&"string"==typeof t&&"other"===t.toLowerCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-form-printout"]],inputs:{field:"field"},decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[3,"field",4,"ngIf"],[4,"ngIf"],[3,"field"]],template:function(t,e){1&t&&jo(0,mB,3,2,"ng-container",0),2&t&&qo("ngForOf",e.field.fieldGroup)},directives:[Kd,Jd,t],styles:["p[_ngcontent-%COMP%]{margin-bottom:0;margin-top:0}"]}),t})();function gB(t,e){if(1&t){const t=ea();Qo(0,"mat-card",4),Qo(1,"mat-card-content",5),Qo(2,"div",6),Ko(3,"app-form-printout",7),Xo(),Qo(4,"div",8),Qo(5,"button",9),ra("click",function(){Be(t);const i=e.index,n=e.$implicit;return ua().openDialog(i,n)}),Qo(6,"mat-icon"),Na(7,"edit"),Xo(),Xo(),Qo(8,"button",9),ra("click",function(){Be(t);const i=e.index;return ua().remove(i)}),Qo(9,"mat-icon"),Na(10,"close"),Xo(),Xo(),Xo(),Xo(),Xo()}if(2&t){const t=e.$implicit;dr(3),qo("field",t)}}let _B=(()=>{class t extends zF{constructor(t){super(),this.dialog=t}openDialog(t,e){const i=!!e,n=this.field.templateOptions.description;this.dialog.open(dB,{maxWidth:"100vw",maxHeight:"100vh",minWidth:"70vw",data:{title:i?n.replace(/^Add an|^Add a|^Add/,"Edit"):n,fields:[this.field.fieldArray],model:i?this.field.fieldGroup[t].model:{}}}).afterClosed().subscribe(e=>{e&&e.model&&(this.field.fieldGroup.length>t&&super.remove(t),super.add(t,e.model))})}}return t.\u0275fac=function(e){return new(e||t)($o(jO))},t.\u0275cmp=Xt({type:t,selectors:[["app-repeat-section"]],features:[Oo],decls:5,vars:2,consts:[["fxLayout","column","fxLayoutGap","1em",1,"container"],["class","repeat",4,"ngFor","ngForOf"],[1,"repeat-action"],["mat-flat-button","","color","primary","type","button",3,"click"],[1,"repeat"],["fxLayout","row"],["fxFlex","70"],[3,"field"],["fxFlex","30","fxLayout","row","fxLayoutAlign","end start"],["mat-icon-button","","type","button",3,"click"]],template:function(t,e){1&t&&(Qo(0,"div",0),jo(1,gB,11,1,"mat-card",1),Xo(),Qo(2,"div",2),Qo(3,"button",3),ra("click",function(){return e.openDialog(e.field.fieldGroup.length)}),Na(4),Xo(),Xo()),2&t&&(dr(1),qo("ngForOf",e.field.fieldGroup),dr(3),Ba(" ",e.field.templateOptions.description," "))},directives:[o_,p_,Kd,TA,ZA,YA,k_,fB,Z_,JT],styles:["mat-card.repeat[_ngcontent-%COMP%]{background-color:#e4e7f2;border-left:8px solid #232d4b}mat-card.repeat[_ngcontent-%COMP%]:active, mat-card.repeat[_ngcontent-%COMP%]:focus, mat-card.repeat[_ngcontent-%COMP%]:focus-within, mat-card.repeat[_ngcontent-%COMP%]:hover{background:#eee}.container[_ngcontent-%COMP%], .repeat-action[_ngcontent-%COMP%]{padding-top:1em}"]}),t})(),bB=(()=>{class t extends HF{ngOnInit(){}}return t.\u0275fac=function(e){return yB(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-resize-textarea"]],viewQuery:function(t,e){if(1&t&&Vc(cE,1),2&t){let t;Nc(t=Hc())&&(e.formFieldControl=t.first)}},features:[Oo],decls:2,vars:7,consts:[["matInput","",3,"id","formControl","cols","rows","placeholder","formlyAttributes","matTextareaAutosize"]],template:function(t,e){1&t&&(Qo(0,"textarea",0),Na(1," "),Xo()),2&t&&qo("id",e.id)("formControl",e.formControl)("cols",e.to.cols)("rows",e.to.rows)("placeholder",e.to.placeholder)("formlyAttributes",e.field)("matTextareaAutosize",!0)},directives:[cE,_b,iE,Ub,xy,BF],styles:[""]}),t})();const yB=Qi(bB);var vB=/^[a-zA-Z0-9.!#$%&\u2019*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/,wB=/^(\+\d{1,2}\s)?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}$/,CB=new RegExp("^(?:(?:https?|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))\\.?)(?::\\d{2,5})?(?:[/?#]\\S*)?$","i");function xB(t){return!t.value||vB.test(t.value)?null:{email:!0}}function SB(t,e){return`"${e.formControl.value}" is not a valid email address`}function kB(t){const e=t.parent,i=e.get("email"),n=e.get("emailConfirm");return n.value!==i.value&&n.value&&i.value?{emailConfirm:!0}:null}function AB(t,e){return"Email Does Not Match"}function OB(t){return!t.value||CB.test(t.value)?null:{url:!0}}function EB(t,e){return`We cannot save "${e.formControl.value}". Please provide the full path, including http:// or https://`}function TB(t){return!t.value||wB.test(t.value)?null:{phone:!0}}function PB(t,e){return`"${e.formControl.value}" is not a valid phone number`}function DB(t){if(t.value)for(const e in t.value)if(!0===t.value[e])return null;return{required:!0}}function MB(t,e){return"At least one of these checkboxes must be selected."}function IB(t,e){return`This value should be more than ${e.templateOptions.min}`}function RB(t,e){return`This value should be less than ${e.templateOptions.max}`}function LB(t){return t.formControl&&t.formControl.invalid&&(t.formControl.dirty||t.options.parentForm&&t.options.parentForm.submitted||t.field.validation&&t.field.validation.show)}function FB(t){return function(e){return 0===t?xp():e.lift(new NB(t))}}class NB{constructor(t){if(this.total=t,this.total<0)throw new Ef}call(t,e){return e.subscribe(new VB(t,this.total))}}class VB extends m{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;st.length)return null;if("full"===i.pathMatch&&(e.hasChildren()||n.lengthn[e]===t)}return t===e}function lH(t){return Array.prototype.concat.apply([],t)}function cH(t){return t.length>0?t[t.length-1]:null}function uH(t,e){for(const i in t)t.hasOwnProperty(i)&&e(t[i],i)}function dH(t){return sa(t)?t:ia(t)?V(Promise.resolve(t)):Sp(t)}function hH(t,e,i){return i?function(t,e){return oH(t,e)}(t.queryParams,e.queryParams)&&pH(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>aH(t[i],e[i]))}(t.queryParams,e.queryParams)&&mH(t.root,e.root)}function pH(t,e){if(!yH(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(const i in e.children){if(!t.children[i])return!1;if(!pH(t.children[i],e.children[i]))return!1}return!0}function mH(t,e){return fH(t,e,e.segments)}function fH(t,e,i){if(t.segments.length>i.length)return!!yH(t.segments.slice(0,i.length),i)&&!e.hasChildren();if(t.segments.length===i.length){if(!yH(t.segments,i))return!1;for(const i in e.children){if(!t.children[i])return!1;if(!mH(t.children[i],e.children[i]))return!1}return!0}{const n=i.slice(0,t.segments.length),s=i.slice(t.segments.length);return!!yH(t.segments,n)&&!!t.children.primary&&fH(t.children.primary,e,s)}}class gH{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=nH(this.queryParams)),this._queryParamMap}toString(){return CH.serialize(this)}}class _H{constructor(t,e){this.segments=t,this.children=e,this.parent=null,uH(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return xH(this)}}class bH{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=nH(this.parameters)),this._parameterMap}toString(){return PH(this)}}function yH(t,e){return t.length===e.length&&t.every((t,i)=>t.path===e[i].path)}class vH{}class wH{parse(t){const e=new LH(t);return new gH(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`/${SH(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(t=>`${AH(e)}=${AH(t)}`).join("&"):`${AH(e)}=${AH(i)}`});return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const CH=new wH;function xH(t){return t.segments.map(t=>PH(t)).join("/")}function SH(t,e){if(!t.hasChildren())return xH(t);if(e){const e=t.children.primary?SH(t.children.primary,!1):"",i=[];return uH(t.children,(t,e)=>{"primary"!==e&&i.push(`${e}:${SH(t,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function(t,e){let i=[];return uH(t.children,(t,n)=>{"primary"===n&&(i=i.concat(e(t,n)))}),uH(t.children,(t,n)=>{"primary"!==n&&(i=i.concat(e(t,n)))}),i}(t,(e,i)=>"primary"===i?[SH(t.children.primary,!1)]:[`${i}:${SH(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${xH(t)}/${e[0]}`:`${xH(t)}/(${e.join("//")})`}}function kH(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function AH(t){return kH(t).replace(/%3B/gi,";")}function OH(t){return kH(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function EH(t){return decodeURIComponent(t)}function TH(t){return EH(t.replace(/\+/g,"%20"))}function PH(t){return`${OH(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${OH(t)}=${OH(e[t])}`).join("")}`;var e}const DH=/^[^\/()?;=#]+/;function MH(t){const e=t.match(DH);return e?e[0]:""}const IH=/^[^=?&#]+/,RH=/^[^?&#]+/;class LH{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new _H([],{}):new _H([],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 _H(t,e)),i}parseSegment(){const t=MH(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new bH(EH(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=MH(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=MH(this.remaining);t&&(i=t,this.capture(i))}t[EH(e)]=EH(i)}parseQueryParam(t){const e=function(t){const e=t.match(IH);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(RH);return e?e[0]:""}(this.remaining);t&&(i=t,this.capture(i))}const n=TH(e),s=TH(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=MH(this.remaining),n=this.remaining[i.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error(`Cannot parse url '${this.url}'`);let s;i.indexOf(":")>-1?(s=i.substr(0,i.indexOf(":")),this.capture(s),this.capture(":")):t&&(s="primary");const r=this.parseChildren();e[s]=1===Object.keys(r).length?r.primary:new _H([],r),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 FH{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=NH(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=NH(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=VH(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return VH(t,this._root).map(t=>t.value)}}function NH(t,e){if(t===e.value)return e;for(const i of e.children){const e=NH(t,i);if(e)return e}return null}function VH(t,e){if(t===e.value)return[e];for(const i of e.children){const n=VH(t,i);if(n.length)return n.unshift(e),n}return[]}class BH{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function HH(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class zH extends FH{constructor(t,e){super(t),this.snapshot=e,qH(this,t)}toString(){return this.snapshot.toString()}}function GH(t,e){const i=function(t,e){const i=new WH([],{},{},"",{},"primary",e,null,t.root,-1,{});return new $H("",new BH(i,[]))}(t,e),n=new cp([new bH("",{})]),s=new cp({}),r=new cp({}),o=new cp({}),a=new cp(""),l=new UH(n,s,o,a,r,"primary",e,i.root);return l.snapshot=i.root,new zH(new BH(l,[]),i)}class UH{constructor(t,e,i,n,s,r,o,a){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=r,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(E(t=>nH(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(E(t=>nH(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function jH(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 WH{constructor(t,e,i,n,s,r,o,a,l,c,u){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=r,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=nH(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=nH(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class $H extends FH{constructor(t,e){super(e),this.url=t,qH(this,e)}toString(){return YH(this._root)}}function qH(t,e){e.value._routerState=t,e.children.forEach(e=>qH(t,e))}function YH(t){const e=t.children.length>0?` { ${t.children.map(YH).join(", ")} } `:"";return`${t.value}${e}`}function QH(t){if(t.snapshot){const e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,oH(e.queryParams,i.queryParams)||t.queryParams.next(i.queryParams),e.fragment!==i.fragment&&t.fragment.next(i.fragment),oH(e.params,i.params)||t.params.next(i.params),function(t,e){if(t.length!==e.length)return!1;for(let i=0;ioH(t.parameters,n[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||XH(t.parent,e.parent))}function KH(t,e,i){if(i&&t.shouldReuseRoute(e.value,i.value.snapshot)){const n=i.value;n._futureSnapshot=e.value;const s=function(t,e,i){return e.children.map(e=>{for(const n of i.children)if(t.shouldReuseRoute(e.value,n.value.snapshot))return KH(t,e,n);return KH(t,e)})}(t,e,i);return new BH(n,s)}{const i=t.retrieve(e.value);if(i){const t=i.route;return ZH(e,t),t}{const i=new UH(new cp((n=e.value).url),new cp(n.params),new cp(n.queryParams),new cp(n.fragment),new cp(n.data),n.outlet,n.component,n),s=e.children.map(e=>KH(t,e));return new BH(i,s)}}var n}function ZH(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let i=0;i{r[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new gH(i.root===t?e:iz(i.root,t,e),r,s)}function iz(t,e,i){const n={};return uH(t.children,(t,s)=>{n[s]=t===e?i:iz(t,e,i)}),new _H(t.segments,n)}class nz{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&JH(i[0]))throw new Error("Root segment cannot have matrix parameters");const n=i.find(tz);if(n&&n!==cH(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class sz{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function rz(t,e,i){if(t||(t=new _H([],{})),0===t.segments.length&&t.hasChildren())return oz(t,e,i);const n=function(t,e,i){let n=0,s=e;const r={match:!1,pathIndex:0,commandIndex:0};for(;s=i.length)return r;const e=t.segments[s],o=i[n];if(tz(o))break;const a=`${o}`,l=n0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!uz(a,l,e))return r;n+=2}else{if(!uz(a,{},e))return r;n++}s++}return{match:!0,pathIndex:s,commandIndex:n}}(t,e,i),s=i.slice(n.commandIndex);if(n.match&&n.pathIndex{"string"==typeof i&&(i=[i]),null!==i&&(s[n]=rz(t.children[n],e,i))}),uH(t.children,(t,e)=>{void 0===n[e]&&(s[e]=t)}),new _H(t.segments,s)}}function az(t,e,i){const n=t.segments.slice(0,e);let s=0;for(;s{"string"==typeof t&&(t=[t]),null!==t&&(e[i]=az(new _H([],{}),0,t))}),e}function cz(t){const e={};return uH(t,(t,i)=>e[i]=`${t}`),e}function uz(t,e,i){return t==i.path&&oH(e,i.parameters)}class dz{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),QH(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const n=HH(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,n[e],i),delete n[e]}),uH(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),n=i&&t.value.component?i.children:e,s=HH(t);for(const r of Object.keys(s))this.deactivateRouteAndItsChildren(s[r],n);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated())}activateChildRoutes(t,e,i){const n=HH(e);t.children.forEach(t=>{this.activateRoutes(t,n[t.value.outlet],i),this.forwardEvent(new tH(t.value.snapshot))}),t.children.length&&this.forwardEvent(new ZB(t.value.snapshot))}activateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(QH(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),hz(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 hz(t){QH(t.value),t.children.forEach(hz)}class pz{constructor(t,e){this.routes=t,this.module=e}}function mz(t){return"function"==typeof t}function fz(t){return t instanceof gH}const gz=Symbol("INITIAL_VALUE");function _z(){return Rp(t=>hD(t.map(t=>t.pipe(Tf(1),jp(gz)))).pipe(XL((t,e)=>{let i=!1;return e.reduce((t,n,s)=>{if(t!==gz)return t;if(n===gz&&(i=!0),!i){if(!1===n)return n;if(s===e.length-1||fz(n))return n}return t},t)},gz),Mm(t=>t!==gz),E(t=>fz(t)?t:!0===t),Tf(1)))}let bz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&Ko(0,"router-outlet")},directives:function(){return[pG]},encapsulation:2}),t})();function yz(t,e=""){for(let i=0;ixz(t)===e);return i.push(...t.filter(t=>xz(t)!==e)),i}const kz={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Az(t,e,i){var n;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||i.length>0)?Object.assign({},kz):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(e.matcher||rH)(i,t,e);if(!s)return Object.assign({},kz);const r={};uH(s.posParams,(t,e)=>{r[e]=t.path});const o=s.consumed.length>0?Object.assign(Object.assign({},r),s.consumed[s.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:o,positionalParamSegments:null!==(n=s.posParams)&&void 0!==n?n:{}}}function Oz(t,e,i,n,s="corrected"){if(i.length>0&&function(t,e,i){return i.some(i=>Ez(t,e,i)&&"primary"!==xz(i))}(t,i,n)){const s=new _H(e,function(t,e,i,n){const s={};s.primary=n,n._sourceSegment=t,n._segmentIndexShift=e.length;for(const r of i)if(""===r.path&&"primary"!==xz(r)){const i=new _H([],{});i._sourceSegment=t,i._segmentIndexShift=e.length,s[xz(r)]=i}return s}(t,e,n,new _H(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=>Ez(t,e,i))}(t,i,n)){const r=new _H(t.segments,function(t,e,i,n,s,r){const o={};for(const a of n)if(Ez(t,i,a)&&!s[xz(a)]){const i=new _H([],{});i._sourceSegment=t,i._segmentIndexShift="legacy"===r?t.segments.length:e.length,o[xz(a)]=i}return Object.assign(Object.assign({},s),o)}(t,e,i,n,t.children,s));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:i}}const r=new _H(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:i}}function Ez(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path}function Tz(t,e,i,n){return!!(xz(t)===n||"primary"!==n&&Ez(e,i,t))&&("**"===t.path||Az(e,t,i).matched)}function Pz(t,e,i){return 0===e.length&&!t.children[i]}class Dz{constructor(t){this.segmentGroup=t||null}}class Mz{constructor(t){this.urlTree=t}}function Iz(t){return new v(e=>e.error(new Dz(t)))}function Rz(t){return new v(e=>e.error(new Mz(t)))}function Lz(t){return new v(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Fz{constructor(t,e,i,n,s){this.configLoader=e,this.urlSerializer=i,this.urlTree=n,this.config=s,this.allowRedirects=!0,this.ngModule=t.get(Yl)}apply(){const t=Oz(this.urlTree.root,[],[],this.config).segmentGroup,e=new _H(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,"primary").pipe(E(t=>this.createUrlTree(Nz(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe(MT(t=>{if(t instanceof Mz)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Dz)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(E(e=>this.createUrlTree(Nz(e),t.queryParams,t.fragment))).pipe(MT(t=>{if(t instanceof Dz)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 _H([],{primary:t}):t;return new gH(n,e,i)}expandSegmentGroup(t,e,i,n){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(E(t=>new _H([],t))):this.expandSegment(t,i,e,i.segments,n,!0)}expandChildren(t,e,i){const n=[];for(const s of Object.keys(i.children))"primary"===s?n.unshift(s):n.push(s);return V(n).pipe(Dm(n=>{const s=i.children[n],r=Sz(e,n);return this.expandSegmentGroup(t,r,s,n).pipe(E(t=>({segment:t,outlet:n})))}),XL((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const i=arguments.length>=2;return n=>n.pipe(t?Mm((e,i)=>t(e,i,n)):_,FB(1),i?AV(e):TV(()=>new kV))}())}expandSegment(t,e,i,n,s,r){return V(i).pipe(Dm(o=>this.expandSegmentAgainstRoute(t,e,i,o,n,s,r).pipe(MT(t=>{if(t instanceof Dz)return Sp(null);throw t}))),IV(t=>!!t),MT((t,i)=>{if(t instanceof kV||"EmptyError"===t.name){if(Pz(e,n,s))return Sp(new _H([],{}));throw new Dz(e)}throw t}))}expandSegmentAgainstRoute(t,e,i,n,s,r,o){return Tz(n,e,s,r)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,s,r):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,r):Iz(e):Iz(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,r){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,n,r):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,n){const s=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?Rz(s):this.lineralizeSegments(i,s).pipe(G(i=>{const s=new _H(i,{});return this.expandSegment(t,s,e,i,n,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,r){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=Az(e,n,s);if(!o)return Iz(e);const u=this.applyRedirectCommands(a,n.redirectTo,c);return n.redirectTo.startsWith("/")?Rz(u):this.lineralizeSegments(n,u).pipe(G(n=>this.expandSegment(t,e,i,n.concat(s.slice(l)),r,!1)))}matchSegmentAgainstRoute(t,e,i,n,s){if("**"===i.path)return i.loadChildren?(i._loadedConfig?Sp(i._loadedConfig):this.configLoader.load(t.injector,i)).pipe(E(t=>(i._loadedConfig=t,new _H(n,{})))):Sp(new _H(n,{}));const{matched:r,consumedSegments:o,lastChild:a}=Az(e,i,n);if(!r)return Iz(e);const l=n.slice(a);return this.getChildConfig(t,i,n).pipe(G(t=>{const n=t.module,r=t.routes,{segmentGroup:a,slicedSegments:c}=Oz(e,o,l,r),u=new _H(a.segments,a.children);if(0===c.length&&u.hasChildren())return this.expandChildren(n,r,u).pipe(E(t=>new _H(o,t)));if(0===r.length&&0===c.length)return Sp(new _H(o,{}));const d=xz(i)===s;return this.expandSegment(n,u,r,c,d?"primary":s,!0).pipe(E(t=>new _H(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,i){return e.children?Sp(new pz(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Sp(e._loadedConfig):this.runCanLoadGuards(t.injector,e,i).pipe(G(i=>i?this.configLoader.load(t.injector,e).pipe(E(t=>(e._loadedConfig=t,t))):function(t){return new v(e=>e.error(sH(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Sp(new pz([],t))}runCanLoadGuards(t,e,i){const n=e.canLoad;return n&&0!==n.length?Sp(n.map(n=>{const s=t.get(n);let r;if(function(t){return t&&mz(t.canLoad)}(s))r=s.canLoad(e,i);else{if(!mz(s))throw new Error("Invalid CanLoad guard");r=s(e,i)}return dH(r)})).pipe(_z(),If(t=>{if(!fz(t))return;const e=sH(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),E(t=>!0===t)):Sp(!0)}lineralizeSegments(t,e){let i=[],n=e.root;for(;;){if(i=i.concat(n.segments),0===n.numberOfChildren)return Sp(i);if(n.numberOfChildren>1||!n.children.primary)return Lz(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 gH(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return uH(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 r={};return uH(e.children,(e,s)=>{r[s]=this.createSegmentGroup(t,e,i,n)}),new _H(s,r)}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 Nz(t){const e={};for(const i of Object.keys(t.children)){const n=Nz(t.children[i]);(n.segments.length>0||n.hasChildren())&&(e[i]=n)}return function(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new _H(t.segments.concat(e.segments),e.children)}return t}(new _H(t.segments,e))}class Vz{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Bz{constructor(t,e){this.component=t,this.route=e}}function Hz(t,e,i){const n=t._root;return Gz(n,e?e._root:null,i,[n.value])}function zz(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 Gz(t,e,i,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=HH(e);return t.children.forEach(t=>{!function(t,e,i,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,o=e?e.value:null,a=i?i.getContext(t.value.outlet):null;if(o&&r.routeConfig===o.routeConfig){const l=function(t,e,i){if("function"==typeof i)return i(t,e);switch(i){case"pathParamsChange":return!yH(t.url,e.url);case"pathParamsOrQueryParamsChange":return!yH(t.url,e.url)||!oH(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!XH(t,e)||!oH(t.queryParams,e.queryParams);case"paramsChange":default:return!XH(t,e)}}(o,r,r.routeConfig.runGuardsAndResolvers);l?s.canActivateChecks.push(new Vz(n)):(r.data=o.data,r._resolvedData=o._resolvedData),Gz(t,e,r.component?a?a.children:null:i,n,s),l&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new Bz(a.outlet.component,o))}else o&&Uz(e,a,s),s.canActivateChecks.push(new Vz(n)),Gz(t,null,r.component?a?a.children:null:i,n,s)}(t,r[t.value.outlet],i,n.concat([t.value]),s),delete r[t.value.outlet]}),uH(r,(t,e)=>Uz(t,i.getContext(e),s)),s}function Uz(t,e,i){const n=HH(t),s=t.value;uH(n,(t,n)=>{Uz(t,s.component?e?e.children.getContext(n):null:e,i)}),i.canDeactivateChecks.push(new Bz(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}class jz{}function Wz(t){return new v(e=>e.error(t))}class $z{constructor(t,e,i,n,s,r){this.rootComponentType=t,this.config=e,this.urlTree=i,this.url=n,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=r}recognize(){const t=Oz(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary");if(null===e)return null;const i=new WH([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),n=new BH(i,e),s=new $H(this.url,n);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(t){const e=t.value,i=jH(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=[];for(const s of Object.keys(e.children)){const n=e.children[s],r=Sz(t,s),o=this.processSegmentGroup(r,n,s);if(null===o)return null;i.push(...o)}const n=function(t){const e=[];for(const i of t){if(!qz(i)){e.push(i);continue}const t=e.find(t=>i.value.routeConfig===t.value.routeConfig);void 0!==t?t.children.push(...i.children):e.push(i)}return e}(i);return n.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,i,n){for(const s of t){const t=this.processSegmentAgainstRoute(s,e,i,n);if(null!==t)return t}return Pz(e,i,n)?[]:null}processSegmentAgainstRoute(t,e,i,n){if(t.redirectTo||!Tz(t,e,i,n))return null;let s,r=[],o=[];if("**"===t.path){const n=i.length>0?cH(i).parameters:{};s=new WH(i,n,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Xz(t),xz(t),t.component,t,Yz(e),Qz(e)+i.length,Kz(t))}else{const n=Az(e,t,i);if(!n.matched)return null;r=n.consumedSegments,o=i.slice(n.lastChild),s=new WH(r,n.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Xz(t),xz(t),t.component,t,Yz(e),Qz(e)+r.length,Kz(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=Oz(e,r,o,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return null===t?null:[new BH(s,t)]}if(0===a.length&&0===c.length)return[new BH(s,[])];const u=xz(t)===n,d=this.processSegment(a,l,c,u?"primary":n);return null===d?null:[new BH(s,d)]}}function qz(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function Yz(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Qz(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 Xz(t){return t.data||{}}function Kz(t){return t.resolve||{}}function Zz(t){return Rp(e=>{const i=t(e);return i?V(i).pipe(E(()=>e)):Sp(e)})}class Jz extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const tG=new en("ROUTES");class eG{constructor(t,e,i,n){this.loader=t,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=n}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const i=this.loadModuleFactory(e.loadChildren).pipe(E(i=>{this.onLoadEndListener&&this.onLoadEndListener(e);const n=i.create(t);return new pz(lH(n.injector.get(tG,void 0,Ot.Self|Ot.Optional)).map(Cz),n)}),MT(t=>{throw e._loader$=void 0,t}));return e._loader$=new Z(i,()=>new k).pipe(Q()),e._loader$}loadModuleFactory(t){return"string"==typeof t?V(this.loader.load(t)):dH(t()).pipe(G(t=>t instanceof Ql?Sp(t):V(this.compiler.compileModuleAsync(t))))}}class iG{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new nG,this.attachRef=null}}class nG{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 iG,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class sG{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function rG(t){throw t}function oG(t,e,i){return e.parse("/")}function aG(t,e){return Sp(null)}let lG=(()=>{class t{constructor(t,e,i,n,s,r,o,a){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=i,this.location=n,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new k,this.errorHandler=rG,this.malformedUriErrorHandler=oG,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:aG,afterPreactivation:aG},this.urlHandlingStrategy=new sG,this.routeReuseStrategy=new Jz,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=s.get(Yl),this.console=s.get(eu);const l=s.get(mu);this.isNgZoneEnabled=l instanceof mu&&mu.isInAngularZone(),this.resetConfig(a),this.currentUrlTree=new gH(new _H([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new eG(r,o,t=>this.triggerEvent(new QB(t)),t=>this.triggerEvent(new XB(t))),this.routerState=GH(this.currentUrlTree,this.rootComponentType),this.transitions=new cp({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(Mm(t=>0!==t.id),E(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Rp(t=>{let i=!1,n=!1;return Sp(t).pipe(If(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}}),Rp(t=>{const i=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||i)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Sp(t).pipe(Rp(t=>{const i=this.transitions.getValue();return e.next(new HB(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==this.transitions.getValue()?Cp:Promise.resolve(t)}),(n=this.ngModule.injector,s=this.configLoader,r=this.urlSerializer,o=this.config,Rp(t=>function(t,e,i,n,s){return new Fz(t,e,i,n,s).apply()}(n,s,r,t.extractedUrl,o).pipe(E(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e}))))),If(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,i,n,s){return G(r=>function(t,e,i,n,s="emptyOnly",r="legacy"){try{const o=new $z(t,e,i,n,s,r).recognize();return null===o?Wz(new jz):Sp(o)}catch(o){return Wz(o)}}(t,e,r.urlAfterRedirects,i(r.urlAfterRedirects),n,s).pipe(E(t=>Object.assign(Object.assign({},r),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),If(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects);const i=new jB(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(i)}));var n,s,r,o;if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:i,extractedUrl:n,source:s,restoredState:r,extras:o}=t,a=new HB(i,this.serializeUrl(n),s,r);e.next(a);const l=GH(n,this.rootComponentType).snapshot;return Sp(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:n,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),Cp}),Zz(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),If(t=>{const e=new WB(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),E(t=>Object.assign(Object.assign({},t),{guards:Hz(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return G(i=>{const{targetSnapshot:n,currentSnapshot:s,guards:{canActivateChecks:r,canDeactivateChecks:o}}=i;return 0===o.length&&0===r.length?Sp(Object.assign(Object.assign({},i),{guardsResult:!0})):function(t,e,i,n){return V(t).pipe(G(t=>function(t,e,i,n,s){const r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return r&&0!==r.length?Sp(r.map(r=>{const o=zz(r,e,s);let a;if(function(t){return t&&mz(t.canDeactivate)}(o))a=dH(o.canDeactivate(t,e,i,n));else{if(!mz(o))throw new Error("Invalid CanDeactivate guard");a=dH(o(t,e,i,n))}return a.pipe(IV())})).pipe(_z()):Sp(!0)}(t.component,t.route,i,e,n)),IV(t=>!0!==t,!0))}(o,n,s,t).pipe(G(i=>i&&"boolean"==typeof i?function(t,e,i,n){return V(e).pipe(Dm(e=>Up(function(t,e){return null!==t&&e&&e(new KB(t)),Sp(!0)}(e.route.parent,n),function(t,e){return null!==t&&e&&e(new JB(t)),Sp(!0)}(e.route,n),function(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=>nS(()=>Sp(e.guards.map(s=>{const r=zz(s,e.node,i);let o;if(function(t){return t&&mz(t.canActivateChild)}(r))o=dH(r.canActivateChild(n,t));else{if(!mz(r))throw new Error("Invalid CanActivateChild guard");o=dH(r(n,t))}return o.pipe(IV())})).pipe(_z())));return Sp(s).pipe(_z())}(t,e.path,i),function(t,e,i){const n=e.routeConfig?e.routeConfig.canActivate:null;return n&&0!==n.length?Sp(n.map(n=>nS(()=>{const s=zz(n,e,i);let r;if(function(t){return t&&mz(t.canActivate)}(s))r=dH(s.canActivate(e,t));else{if(!mz(s))throw new Error("Invalid CanActivate guard");r=dH(s(e,t))}return r.pipe(IV())}))).pipe(_z()):Sp(!0)}(t,e.route,i))),IV(t=>!0!==t,!0))}(n,r,t,e):Sp(i)),E(t=>Object.assign(Object.assign({},i),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),If(t=>{if(fz(t.guardsResult)){const e=sH(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new $B(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Mm(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const i=new GB(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(i),t.resolve(!1),!1}return!0}),Zz(t=>{if(t.guards.canActivateChecks.length)return Sp(t).pipe(If(t=>{const e=new qB(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Rp(t=>{let i=!1;return Sp(t).pipe((n=this.paramsInheritanceStrategy,s=this.ngModule.injector,G(t=>{const{targetSnapshot:e,guards:{canActivateChecks:i}}=t;if(!i.length)return Sp(t);let r=0;return V(i).pipe(Dm(t=>function(t,e,i,n){return function(t,e,i,n){const s=Object.keys(t);if(0===s.length)return Sp({});const r={};return V(s).pipe(G(s=>function(t,e,i,n){const s=zz(t,e,n);return dH(s.resolve?s.resolve(e,i):s(e,i))}(t[s],e,i,n).pipe(If(t=>{r[s]=t}))),FB(1),G(()=>Object.keys(r).length===s.length?Sp(r):Cp))}(t._resolve,t,e,n).pipe(E(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),jH(t,i).resolve),null)))}(t.route,e,n,s)),If(()=>r++),FB(1),G(e=>r===i.length?Sp(t):Cp))})),If({next:()=>i=!0,complete:()=>{if(!i){const i=new GB(t.id,this.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");e.next(i),t.resolve(!1)}}}));var n,s}),If(t=>{const e=new YB(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),Zz(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),E(t=>{const e=function(t,e,i){const n=KH(t,e._root,i?i._root:void 0);return new zH(n,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),If(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,r=this.routeReuseStrategy,o=t=>this.triggerEvent(t),E(t=>(new dz(r,t.targetRouterState,t.currentRouterState,o).activate(s),t))),If({next(){i=!0},complete(){i=!0}}),LT(()=>{if(!i&&!n){this.resetUrlToCurrentUrlTree();const i=new GB(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}),MT(i=>{if(n=!0,(s=i)&&s.ngNavigationCancelingError){const n=fz(i.url);n||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new GB(t.id,this.serializeUrl(t.extractedUrl),i.message);e.next(s),n?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(i.url,this.rawUrlTree);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 UB(t.id,this.serializeUrl(t.extractedUrl),i);e.next(n);try{t.resolve(this.errorHandler(i))}catch(r){t.reject(r)}}var s;return Cp}));var s,r,o}))}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=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:i,urlTree:n}=e,s={replaceUrl:!0};if(i){const t=Object.assign({},i);delete t.navigationId,0!==Object.keys(t).length&&(s.state=t)}this.scheduleNavigation(n,t,i,s)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const i=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&i&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){yz(t),this.config=t.map(Cz),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,e={}){const{relativeTo:i,queryParams:n,fragment:s,queryParamsHandling:r,preserveFragment:o}=e,a=i||this.routerState.root,l=o?this.currentUrlTree.fragment:s;let c=null;switch(r){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),n);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=n||null}return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,i,n,s){if(0===i.length)return ez(e.root,e.root,e,n,s);const r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new nz(!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 uH(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 nz(i,e,n)}(i);if(r.toRoot())return ez(e.root,new _H([],{}),e,n,s);const o=function(t,e,i){if(t.isAbsolute)return new sz(e.root,!0,0);if(-1===i.snapshot._lastPathIndex){const t=i.snapshot._urlSegment;return new sz(t,t===e.root,0)}const n=JH(t.commands[0])?0:1;return function(t,e,i){let n=t,s=e,r=i;for(;r>s;){if(r-=s,n=n.parent,!n)throw new Error("Invalid number of '../'");s=n.segments.length}return new sz(n,!1,s-r)}(i.snapshot._urlSegment,i.snapshot._lastPathIndex+n,t.numberOfDoubleDots)}(r,e,t),a=o.processChildren?oz(o.segmentGroup,o.index,r.commands):rz(o.segmentGroup,o.index,r.commands);return ez(o.segmentGroup,a,e,n,s)}(a,this.currentUrlTree,t,c,l)}navigateByUrl(t,e={skipLocationChange:!1}){const i=fz(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 zB(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){if(this.disposed)return Promise.resolve(!1);const r=this.getTransition(),o="imperative"!==e&&"imperative"===(null==r?void 0:r.source),a=(this.lastSuccessfulId===r.id||this.currentNavigation?r.rawUrl:r.urlAfterRedirects).toString()===t.toString();if(o&&a)return Promise.resolve(!0);let l,c,u;s?(l=s.resolve,c=s.reject,u=s.promise):u=new Promise((t,e)=>{l=t,c=e});const d=++this.navigationId;return this.setTransition({id:d,source:e,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:n,resolve:l,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.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(e){return new(e||t)(wn(on),wn(vH),wn(nG),wn(ld),wn(ko),wn(Nu),wn(du),wn(void 0))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})(),cG=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.route=e,this.commands=[],this.onChanges=new k,null==i&&n.setAttribute(s.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:dG(this.skipLocationChange),replaceUrl:dG(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:dG(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)($o(lG),$o(UH),Ki("tabindex"),$o(fl),$o(hl))},t.\u0275dir=ie({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&ra("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[me]}),t})(),uG=(()=>{class t{constructor(t,e,i){this.router=t,this.route=e,this.locationStrategy=i,this.commands=[],this.onChanges=new k,this.subscription=t.events.subscribe(t=>{t instanceof zB&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,i,n,s){if(0!==t||e||i||n||s)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const r={skipLocationChange:dG(this.skipLocationChange),replaceUrl:dG(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,r),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:dG(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)($o(lG),$o(UH),$o(nd))},t.\u0275dir=ie({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&ra("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(Ua("href",e.href,ms),zo("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[me]}),t})();function dG(t){return""===t||!!t}let hG=(()=>{class t{constructor(t,e,i,n,s,r){this.router=t,this.element=e,this.renderer=i,this.cdr=n,this.link=s,this.linkWithHref=r,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=t.events.subscribe(t=>{t instanceof zB&&this.update()})}ngAfterContentInit(){Sp(this.links.changes,this.linksWithHrefs.changes,Sp(null)).pipe($()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var t;null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe();const e=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(t=>!!t).map(t=>t.onChanges);this.linkInputChangesSubscription=V(e).pipe($()).subscribe(t=>{this.isActive!==this.isLinkActive(this.router)(t)&&this.update()})}set routerLinkActive(t){const e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(t=>!!t)}ngOnChanges(t){this.update()}ngOnDestroy(){var t;this.routerEventsSubscription.unsubscribe(),null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.cdr.markForCheck(),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)($o(lG),$o(hl),$o(fl),$o(Vl),$o(cG,8),$o(uG,8))},t.\u0275dir=ie({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,i){if(1&t&&(Bc(i,cG,1),Bc(i,uG,1)),2&t){let t;Nc(t=Hc())&&(e.links=t),Nc(t=Hc())&&(e.linksWithHrefs=t)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[me]}),t})(),pG=(()=>{class t{constructor(t,e,i,n,s){this.parentContexts=t,this.location=e,this.resolver=i,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new kc,this.deactivateEvents=new kc,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 mG(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)($o(nG),$o(Kl),$o(ll),Ki("name"),$o(Vl))},t.\u0275dir=ie({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class mG{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===UH?this.route:t===nG?this.childContexts:this.parent.get(t,e)}}class fG{}class gG{preload(t,e){return Sp(null)}}let _G=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.injector=n,this.preloadingStrategy=s,this.loader=new eG(e,i,e=>t.triggerEvent(new QB(e)),e=>t.triggerEvent(new XB(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Mm(t=>t instanceof zB),Dm(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(Yl);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&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 V(i).pipe($(),E(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?Sp(e._loadedConfig):this.loader.load(t.injector,e)).pipe(G(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(wn(lG),wn(Nu),wn(du),wn(ko),wn(fG))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})(),bG=(()=>{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 HB?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof zB&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof eH&&(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 eH(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(e){return new(e||t)(wn(lG),wn(Ch),wn(void 0))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();const yG=new en("ROUTER_CONFIGURATION"),vG=new en("ROUTER_FORROOT_GUARD"),wG=[ld,{provide:vH,useClass:wH},{provide:lG,useFactory:function(t,e,i,n,s,r,o,a={},l,c){const u=new lG(null,t,e,i,n,s,r,lH(o));if(l&&(u.urlHandlingStrategy=l),c&&(u.routeReuseStrategy=c),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,u),a.enableTracing){const t=$u();u.events.subscribe(e=>{t.logGroup(`Router Event: ${e.constructor.name}`),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return u},deps:[vH,nG,ld,ko,Nu,du,tG,yG,[class{},new An],[class{},new An]]},nG,{provide:UH,useFactory:function(t){return t.routerState.root},deps:[lG]},{provide:Nu,useClass:Hu},_G,gG,class{preload(t,e){return e().pipe(MT(()=>Sp(null)))}},{provide:yG,useValue:{enableTracing:!1}}];function CG(){return new Pu("Router",lG)}let xG=(()=>{class t{constructor(t,e){}static forRoot(e,i){return{ngModule:t,providers:[wG,OG(e),{provide:vG,useFactory:AG,deps:[[lG,new An,new On]]},{provide:yG,useValue:i||{}},{provide:nd,useFactory:kG,deps:[Yu,[new kn(rd),new An],yG]},{provide:bG,useFactory:SG,deps:[lG,Ch,yG]},{provide:fG,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:gG},{provide:Pu,multi:!0,useFactory:CG},[EG,{provide:qc,multi:!0,useFactory:TG,deps:[EG]},{provide:DG,useFactory:PG,deps:[EG]},{provide:tu,multi:!0,useExisting:DG}]]}}static forChild(e){return{ngModule:t,providers:[OG(e)]}}}return t.\u0275fac=function(e){return new(e||t)(wn(vG,8),wn(lG,8))},t.\u0275mod=te({type:t}),t.\u0275inj=yt({}),t})();function SG(t,e,i){return i.scrollOffset&&e.setOffset(i.scrollOffset),new bG(t,e,i)}function kG(t,e,i={}){return i.useHash?new ad(t,e):new od(t,e)}function AG(t){return"guarded"}function OG(t){return[{provide:nn,multi:!0,useValue:t},{provide:tG,multi:!0,useValue:t}]}let EG=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new k}appInitializer(){return this.injector.get(Xu,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),i=this.injector.get(lG),n=this.injector.get(yG);return"disabled"===n.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===n.initialNavigation||"enabledBlocking"===n.initialNavigation?(i.hooks.afterPreactivation=()=>this.initNavigation?Sp(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),i.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(yG),i=this.injector.get(_G),n=this.injector.get(bG),s=this.injector.get(lG),r=this.injector.get(Lu);t===r.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||s.initialNavigation(),i.setUpPreloading(),n.init(),s.resetRootComponentType(r.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return t.\u0275fac=function(e){return new(e||t)(wn(ko))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();function TG(t){return t.appInitializer.bind(t)}function PG(t){return t.bootstrapListener.bind(t)}const DG=new en("Router Initializer");let MG=(()=>{class t{fromProperties(t){for(const e in t)t.hasOwnProperty(e)&&(this[e]=t[e])}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),IG=(()=>{class t{constructor(t,e){this.router=t,this.configService=e}event(t,e,i){gtag("event",t,{event_category:e,event_label:i})}errorEvent(t){this.event(t.code,"error_messages",t.message)}accountEvent(t){this.event(t,"account","")}searchEvent(t){t.words&&this.event(t.words,"search","");for(const e of t.ages)this.event(e.toString(),"search_filter","");t.category&&this.event(t.category.name,"search_filter","search_topic"),1===t.types.length&&this.event(t.types[0].toString(),"search_filter",""),this.event(t.sort.field,"search_sort",""),this.event(t.start.toString(),"search_start","")}searchInteractionEvent(t){this.event(t,"search_interaction","")}mapEvent(t){this.event(t,"map_interaction","map_pin_click")}mapResourceEvent(t){this.event(t,"map_interaction","map_pin_resource_click")}studyInquiryEvent(t){this.event(t.id.toString(),"study_inquiry",t.title)}studySurveyEvent(t){this.event(t.id.toString(),"study_survey",t.title)}flowStartEvent(t){this.event(t,"flow_started","")}flowCompleteEvent(t){this.event(t,"flow_completed","")}stepCompleteEvent(t){this.event(t,"step_completed","")}relatedContentEvent(t,e){this.event(t,"related_content",e)}set_user(t){gtag("set",{user_id:t})}init(){this.listenForRouteChanges();try{const t=this.configService.googleAnalyticsKey,e=document.createElement("script");e.async=!0,e.src="https://www.googletagmanager.com/gtag/js?id="+t,document.head.appendChild(e);const i=document.createElement("script");i.innerHTML="\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n gtag('config', '"+t+"', {'send_page_view': false});\n ",document.head.appendChild(i)}catch(t){console.error("Error appending google analytics"),console.error(t)}}listenForRouteChanges(){const t=this.configService.googleAnalyticsKey;this.router.events.subscribe(e=>{e instanceof zB&>ag("config",t,{page_path:e.urlAfterRedirects})})}}return t.\u0275fac=function(e){return new(e||t)(wn(lG),wn(MG))},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),RG=(()=>{class t{constructor(t,e){this.router=t,this.googleAnalyticsService=e,this.isSession=new RegExp(".*/api/session")}logError(t){this.googleAnalyticsService.errorEvent(t)}intercept(t,e){return e.handle(t).pipe(MT(e=>(401!==e.status||this.isSession.test(t.url)||(console.log("Unauthorized Access!!!",t),this.router.navigate(["timedout"])),e.error&&this.logError(e.error),kp(e.error||e.statusText))))}}return t.\u0275fac=function(e){return new(e||t)(wn(lG),wn(IG))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();var LG=function(t){return t.SELF_PARTICIPANT="self_participant",t.SELF_GUARDIAN="self_guardian",t.DEPENDENT="dependent",t.SELF_PROFESSIONAL="self_professional",t.SELF_INTERESTED="self_interested",t}({});class FG{constructor(t){this._props=t;for(const e in this._props)this._props.hasOwnProperty(e)&&(this[e]=this._props[e])}getFlowName(){switch(this.relationship){case LG.DEPENDENT:return"dependent_intake";case LG.SELF_GUARDIAN:return"guardian_intake";case LG.SELF_PROFESSIONAL:return"professional_intake";case LG.SELF_INTERESTED:return"interested_intake";case LG.SELF_PARTICIPANT:default:return"self_intake"}}}class NG{constructor(t){for(const e in t)t.hasOwnProperty(e)&&(this[e]=t[e])}}class VG{constructor(t){this._props=t;for(const e in this._props)this._props.hasOwnProperty(e)&&(this[e]=this._props[e]);this.participants&&this.participants.length>0&&(this.participants=this.participants.map(t=>new FG(t))),this.user_meta&&(this.user_meta=new NG(this.user_meta))}isSelf(t){return t.relationship===LG.SELF_GUARDIAN||t.relationship===LG.SELF_PARTICIPANT||t.relationship===LG.SELF_PROFESSIONAL||t.relationship===LG.SELF_INTERESTED}getSelf(){return this.participants.find(t=>this.isSelf(t))}getDependents(){return this.participants.filter(t=>!this.isSelf(t))}getParticipantById(t){for(const e of this.participants)if(e.id===t)return e;throw Error("The user does not have a participant with the given id.")}hasContactInfo(t){return null!=t.contact}checkContact(){return null!=this.participants.find(t=>this.hasContactInfo(t))}}let BG=(()=>{class t{constructor(e,i,n){this.http=e,this.googleAnalyticsService=i,this.configService=n,this.currentUserSubject=new cp(null);const s=localStorage.getItem(t.LOCAL_TOKEN_KEY);this.login_url=`${n.apiUrl}/api/login_password`,this.reset_pass_url=`${n.apiUrl}/api/reset_password`,this.refresh_url=`${n.apiUrl}/api/session`,this.currentUser=this.currentUserSubject.asObservable(),s?(console.log("A token is set. Grabbing the user."),this._refresh().subscribe()):(console.log("No Token. Current user is null."),this.currentUserSubject.next(null))}_handleError(t){let e="Could not complete your request; please try again later.";return e=t.message,kp(e)}loadUser(e){e.token&&localStorage.setItem(t.LOCAL_TOKEN_KEY,e.token);const i=new VG(e);return this.currentUserSubject.next(i),console.log("The current user subject is now set.",i),this.googleAnalyticsService.set_user(i.id),i}login(t,e,i=""){return this.http.post(this.login_url,{email:t,password:e,email_token:i}).pipe(E(t=>this.loadUser(t)),MT(this._handleError))}_refresh(){return this.http.get(this.refresh_url).pipe(E(t=>this.loadUser(t),t=>{this.currentUserSubject.next(null)}))}refresh(){this._refresh().subscribe()}resetPassword(t,e){return this.http.post(this.reset_pass_url,{password:t,email_token:e}).pipe(E(t=>this.loadUser(t)))}logout(){localStorage.removeItem(t.LOCAL_TOKEN_KEY),this.currentUserSubject.next(null),this.googleAnalyticsService.set_user(null)}}return t.LOCAL_TOKEN_KEY="star_token",t.\u0275fac=function(e){return new(e||t)(wn(Km),wn(IG),wn(MG))},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),HG=(()=>{class t{constructor(){this.isS3=new RegExp("^https?://s3.amazonaws.com.*")}intercept(t,e){const i=localStorage.getItem(BG.LOCAL_TOKEN_KEY);return this.isS3.test(t.url)||i&&(t=t.clone({setHeaders:{Authorization:`Bearer ${i}`}})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})(),zG=(()=>{class t{constructor(t,e){this.router=t,this.meta=e,this.meta.updateTag({property:"og:image",content:location.origin+"/assets/about/diversity.jpg"},"property='og:image'"),this.meta.updateTag({property:"og:image:secure_url",content:location.origin+"/assets/about/diversity.jpg"},"property='og:image:secure_url'"),this.meta.updateTag({name:"twitter:image",content:location.origin+"/assets/about/diversity.jpg"},"name='twitter:image'")}ngOnInit(){}goRegister(t){t.preventDefault(),this.router.navigate(["register"])}}return t.\u0275fac=function(e){return new(e||t)($o(lG),$o(ip))},t.\u0275cmp=Xt({type:t,selectors:[["app-about"]],decls:36,vars:0,consts:[["fxHide","","fxShow.gt-sm",""],["id","hero",1,"gradient-overlay","container"],[1,"row","move_up"],[1,"border-box"],["fxHide","","fxShow.lt-md",""],["id","hero",1,"gradient-overlay","container",2,"background-position","50% 0%","background-size","980px"],[1,"row","move_up_mobile"],["fxLayoutAlign","center","fxLayout","column"],[1,"container","about"],["fxLayout","row","fxLayoutGap","4%","fxLayoutAlign","center",1,"row"],["fxFlex","67%"],["href","https://curry.virginia.edu/faculty-research/centers-labs-projects/supporting-transformative-autism-research-star"],["fxLayoutAlign","center center",1,"row"],["mat-flat-button","","color","primary",1,"btn-lg",3,"click"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"div",1),Qo(2,"div",2),Qo(3,"div",3),Qo(4,"h1"),Na(5,"About Autism DRIVE"),Xo(),Xo(),Xo(),Xo(),Xo(),Qo(6,"div",4),Qo(7,"div",5),Qo(8,"div",6),Qo(9,"div",3),Qo(10,"h1"),Na(11,"About Autism DRIVE"),Xo(),Xo(),Xo(),Xo(),Xo(),Qo(12,"div",7),Qo(13,"div",8),Qo(14,"div",9),Qo(15,"div",10),Qo(16,"h2"),Na(17,'About "Autism DRIVE"'),Xo(),Qo(18,"p"),Na(19,"The Autism DRIVE was developed by "),Qo(20,"a",11),Na(21,"University of Virginia STAR initiative"),Xo(),Na(22," to help the autism community, researchers, and resources connect. Through the DRIVE we hope to learn more about autism and develop meaningful solutions to challenges experienced by people with autism and their families. It also provides individualized online access to training and resources focused on autism."),Xo(),Qo(23,"h2"),Na(24,"Why is autism research important?"),Xo(),Qo(25,"p"),Na(26,"Research can help us figure out answers to questions about autism that we don\u2019t yet know. Our goal is to increase autism research in Virginia and nationally."),Xo(),Qo(27,"p"),Na(28,"Through the Autism DRIVE, we aim to find answers in areas that have the greatest potential to improve the lives of people with autism and their families. Our projects focus on understanding the biological, social and cognitive bases of autism, developing effective and personalized interventions, and testing new models to bridge the gap between research and practice through training. Our research ranges from basic neuroscience to applied practice. Our ultimate goal is to empower people with autism, their families, and their communities to achieve positive outcomes."),Xo(),Qo(29,"h2"),Na(30,"What are the benefits of joining?"),Xo(),Qo(31,"p"),Na(32,"By joining the Autism DRIVE, you will be connected with autism researchers at the University of Virginia and will have the opportunity to participate in exciting research studies. Based on the information you provide in the registration process, you can be matched with research opportunities and resources that would be a good fit for you or your family member. Your participation in any research study is voluntary, so although we will match you with studies, you do not have to participate in them unless you or your family member want to. If you want to cancel your account at any time, you can let us know by emailing rn4ee@hscmail.mcc.virginia.edu."),Xo(),Xo(),Xo(),Xo(),Qo(33,"div",12),Qo(34,"button",13),ra("click",function(t){return e.goRegister(t)}),Na(35," Get started now "),Xo(),Xo(),Xo())},directives:[Ng,Z_,o_,p_,k_,TA],styles:[".enroll[_ngcontent-%COMP%]{margin:1em}.move_up[_ngcontent-%COMP%]{position:relative;width:575px;top:-110px}.move_up_mobile[_ngcontent-%COMP%]{position:relative;width:400px;top:-120px}#hero[_ngcontent-%COMP%]{background-position:50% 17%}#feature[_ngcontent-%COMP%], #hero[_ngcontent-%COMP%]{background-image:url(/assets/about/diversity.jpg);height:480px}#feature[_ngcontent-%COMP%]{background-position:100% 20%}#about-cta[_ngcontent-%COMP%]{font-weight:700;font-size:1.25rem;font-style:italic;margin-bottom:1em}"]}),t})();class GG{constructor(t){this.api=t,this.logSubject=new cp([]),this.logs$=this.logSubject.asObservable(),this.countSubject=new cp(0),this.count$=this.countSubject.asObservable(),this.loadingSubject=new cp(!1),this.loading$=this.loadingSubject.asObservable()}connect(t){return this.logSubject.asObservable()}disconnect(t){this.logSubject.complete(),this.loadingSubject.complete(),this.countSubject.complete()}loadLogs(t=0,e=10){this.loadingSubject.next(!0),this.api.getDataTransferLogs(t,e).subscribe(t=>{this.logSubject.next(t.items),this.countSubject.next(t.total),this.loadingSubject.next(!1)},t=>{this.logSubject.next(null),this.countSubject.next(0),this.loadingSubject.next(!1)})}}class UG{constructor(t){this._props=t;for(const e in this._props)this._props.hasOwnProperty(e)&&(this[e]=this._props[e])}isComplete(){return 1===this.percentComplete()}percentComplete(){return this.steps&&this.steps.length>0?this.steps.filter(t=>"COMPLETE"===t.status).length/this.steps.length*100:0}}class jG{constructor(t){this._props=t;for(const e in this._props)this._props.hasOwnProperty(e)&&(this[e]=this._props[e])}getIcon(){switch(this.question_type){case"sensitive":return"vpn_key";case"identifying":return"fingerprint";case"unrestricted":default:return"remove"}}}let WG=(()=>{class t{constructor(t,e){this.httpClient=t,this.configService=e,this.endpoints={adminNote:"/api/admin_note/",adminNoteList:"/api/admin_note",category:"/api/category/",categorybyresource:"/api/resource//category",categorybylocation:"/api/location//category",categorybyevent:"/api/event//category",categorybystudy:"/api/study//category",categorylist:"/api/category",categorynameslist:"/api/category/names_list",chainStepsList:"/api/chain_step",chainStep:"/api/chain_step/",data_transfer_log:"/api/data_transfer_log",event:"/api/event/",eventbycategory:"/api/category//event",eventcategory:"/api/event_category/",eventcategorylist:"/api/event_category",eventlist:"/api/event",favoritesbyuserlist:"/api/user//favorite",favoritesbyuserandtypelist:"/api/user//favorite/",flow:"/api/flow//",flowAnonymous:"/api/flow/",flowlist:"/api/flow",flowquestionnaire:"/api/flow//",flowquestionnairemeta:"/api/flow///meta",forgot_password:"/api/forgot_password",investigatorList:"/api/investigator",investigatorbystudy:"/api/study//investigator",investigator:"/api/investigator/",location:"/api/location/",locationbycategory:"/api/category//location",locationcategory:"/api/location_category/",locationcategorylist:"/api/location_category",locationlist:"/api/location",organization:"/api/organization/",organizationlist:"/api/organization",participant:"/api/participant/",participantAdminList:"/api/participant_admin_list",participantbysession:"/api/session/participant",participantStepLog:"/api/participant/step_log/",password_requirements:"/api/password_requirements/",questionnaire:"/api/q//",questionnaireExport:"/api/q//export",questionnaireInfo:"/api/q",questionnaireList:"/api/q/",questionnaireListMeta:"/api/q//meta",questionnaireUserExport:"/api/q/all/export/user/",questionnairemeta:"/api/flow///meta",resource:"/api/resource/",resourcebycategory:"/api/category//resource",resourcecategory:"/api/resource_category/",resourceChangeLog:"/api/resource//change_log",resourceAdminNoteList:"/api/resource//admin_note",relatedresults:"/api/related",resourcecategorylist:"/api/resource_category",resourcelist:"/api/resource",educationresourcelist:"/api/resource/education",covid19resourcelist:"/api/resource/covid19/",categorytree:"/api/category/root",search:"/api/search",searchstudies:"/api/search/studies",session:"/api/session",sessionparticipants:"/api/session/participant",sessionstatus:"/api/session/status",status:"/api/status",study:"/api/study/",studybycategory:"/api/category//study",studycategory:"/api/study_category/",studycategorylist:"/api/study_category",studyinquiry:"/api/study_inquiry",studylist:"/api/study",studybystatuslist:"/api/study/status/",studybyage:"/api/study/status//",user:"/api/user/",userAdminNoteList:"/api/user//admin_note",userEmailLog:"/api/user/email_log/",emailloglist:"/api/email_log",userfavoritelist:"/api/user_favorite",userfavorite:"/api/user_favorite/",userResourceChangeLog:"/api/user//resource_change_log",userStudyInquiryList:"/api/user//inquiry/study",userlist:"/api/user",userRegistration:"/api/user/registration",userparticipant:"/api/user_participant/",userMeta:"/api/user//usermeta",zip_code_coords:"/api/zip_code_coords/"},this.apiRoot=e.apiUrl}sendResetPasswordEmail(t){const e={email:t};return this.httpClient.post(this._endpointUrl("forgot_password"),e).pipe(MT(this._handleError))}sendStudyInquiryEmail(t,e){const i={user_id:t.id,study_id:e.id};return this.httpClient.post(this._endpointUrl("studyinquiry"),i).pipe(MT(this._handleError))}addUserMeta(t){const e=this._endpointUrl("userMeta").replace("",t.id.toString());return this.httpClient.post(e,t).pipe(E(t=>new NG(t)),MT(this._handleError))}getUserMeta(t){return this.httpClient.get(this._endpointUrl("userMeta").replace("",t.toString())).pipe(MT(this._handleError))}addParticipant(t){const e=this._endpointUrl("participantbysession");return this.httpClient.post(e,t).pipe(E(t=>new FG(t)),MT(this._handleError))}updateParticipant(t){return this.httpClient.put(this._endpointUrl("participant").replace("",t.id.toString()),t).pipe(MT(this._handleError))}getParticipant(t){return this.httpClient.get(this._endpointUrl("participant").replace("",t.toString())).pipe(MT(this._handleError))}getParticipantAdminList(){return this.httpClient.get(this._endpointUrl("participantAdminList")).pipe(MT(this._handleError))}getFlow(t,e){let i="";return i=e?this._endpointUrl("flow").replace("",t).replace("",e.toString()):this._endpointUrl("flowAnonymous").replace("",t),this.httpClient.get(i).pipe(E(t=>new UG(t)),MT(this._handleError))}addStudy(t){return this.httpClient.post(this._endpointUrl("studylist"),t).pipe(MT(this._handleError))}updateStudy(t){return this.httpClient.put(this._endpointUrl("study").replace("",t.id.toString()),t).pipe(MT(this._handleError))}deleteStudy(t){return this.httpClient.delete(this._endpointUrl("study").replace("",t.id.toString())).pipe(MT(this._handleError))}getStudy(t){return this.httpClient.get(this._endpointUrl("study").replace("",t.toString())).pipe(MT(this._handleError))}getStudies(){return this.httpClient.get(this._endpointUrl("studylist")).pipe(MT(this._handleError))}getStudiesByStatus(t){return this.httpClient.get(this._endpointUrl("studybystatuslist").replace("",t)).pipe(MT(this._handleError))}getStudiesByAge(t,e){return this.httpClient.get(this._endpointUrl("studybyage").replace("",t).replace("",e)).pipe(MT(this._handleError))}addAdminNote(t){return this.httpClient.post(this._endpointUrl("adminNoteList"),t).pipe(MT(this._handleError))}updateAdminNote(t){return this.httpClient.put(this._endpointUrl("adminNote").replace("",t.id.toString()),t).pipe(MT(this._handleError))}deleteAdminNote(t){return this.httpClient.delete(this._endpointUrl("adminNote").replace("",t.id.toString())).pipe(MT(this._handleError))}getAdminNote(t){return this.httpClient.get(this._endpointUrl("adminNote").replace("",t.toString())).pipe(MT(this._handleError))}getAdminNotes(){return this.httpClient.get(this._endpointUrl("adminNoteList")).pipe(MT(this._handleError))}getResourceAdminNotes(t){return this.httpClient.get(this._endpointUrl("resourceAdminNoteList").replace("",t.toString())).pipe(MT(this._handleError))}getUserAdminNotes(t){return this.httpClient.get(this._endpointUrl("userAdminNoteList").replace("",t.toString())).pipe(MT(this._handleError))}addEvent(t){return this.httpClient.post(this._endpointUrl("eventlist"),t).pipe(MT(this._handleError))}updateEvent(t){return this.httpClient.put(this._endpointUrl("event").replace("",t.id.toString()),t).pipe(MT(this._handleError))}deleteEvent(t){return this.httpClient.delete(this._endpointUrl("event").replace("",t.id.toString())).pipe(MT(this._handleError))}getEvent(t){return this.httpClient.get(this._endpointUrl("event").replace("",t.toString())).pipe(MT(this._handleError))}getEvents(){return this.httpClient.get(this._endpointUrl("eventlist")).pipe(MT(this._handleError))}addLocation(t){return this.httpClient.post(this._endpointUrl("locationlist"),t).pipe(MT(this._handleError))}updateLocation(t){return this.httpClient.put(this._endpointUrl("location").replace("",t.id.toString()),t).pipe(MT(this._handleError))}deleteLocation(t){return this.httpClient.delete(this._endpointUrl("location").replace("",t.id.toString())).pipe(MT(this._handleError))}getLocation(t){return this.httpClient.get(this._endpointUrl("location").replace("",t.toString())).pipe(MT(this._handleError))}getLocations(){return this.httpClient.get(this._endpointUrl("locationlist")).pipe(MT(this._handleError))}addResource(t){return this.httpClient.post(this._endpointUrl("resourcelist"),t).pipe(MT(this._handleError))}updateResource(t){return this.httpClient.put(this._endpointUrl("resource").replace("",t.id.toString()),t).pipe(MT(this._handleError))}deleteResource(t){return this.httpClient.delete(this._endpointUrl("resource").replace("",t.id.toString())).pipe(MT(this._handleError))}getResource(t){return this.httpClient.get(this._endpointUrl("resource").replace("",t.toString())).pipe(MT(this._handleError))}getResources(){return this.httpClient.get(this._endpointUrl("resourcelist")).pipe(MT(this._handleError))}getEducationResources(){return this.httpClient.get(this._endpointUrl("educationresourcelist")).pipe(MT(this._handleError))}getCovid19ResourcesByCategory(t){return this.httpClient.get(this._endpointUrl("covid19resourcelist").replace("",t)).pipe(MT(this._handleError))}getRelatedResults(t){return this.httpClient.post(this._endpointUrl("relatedresults"),t).pipe(MT(this._handleError))}getResourceCategories(t){const e=this._endpointUrl("categorybyresource").replace("",t.id.toString());return this.httpClient.get(e).pipe(MT(this._handleError))}addResourceCategory(t){return this.httpClient.post(this._endpointUrl("resourcecategorylist"),t).pipe(MT(this._handleError))}updateResourceCategories(t,e){const i=this._endpointUrl("categorybyresource").replace("",t.toString());return this.httpClient.post(i,e).pipe(MT(this._handleError))}updateLocationCategories(t,e){const i=this._endpointUrl("categorybylocation").replace("",t.toString());return this.httpClient.post(i,e).pipe(MT(this._handleError))}updateEventCategories(t,e){const i=this._endpointUrl("categorybyevent").replace("",t.toString());return this.httpClient.post(i,e).pipe(MT(this._handleError))}deleteResourceCategory(t){return this.httpClient.delete(this._endpointUrl("resourcecategory").replace("",t.id.toString())).pipe(MT(this._handleError))}addStudyCategory(t){return this.httpClient.post(this._endpointUrl("studycategorylist"),t).pipe(MT(this._handleError))}updateStudyCategories(t,e){const i=this._endpointUrl("categorybystudy").replace("",t.toString());return this.httpClient.post(i,e).pipe(MT(this._handleError))}deleteStudyCategory(t){return this.httpClient.delete(this._endpointUrl("studycategory").replace("",t.id.toString())).pipe(MT(this._handleError))}getCategoryNamesList(){return this.httpClient.get(this._endpointUrl("categorynameslist")).pipe(MT(this._handleError))}getCategoryTree(){return this.httpClient.get(this._endpointUrl("categorytree")).pipe(MT(this._handleError))}addCategory(t){return this.httpClient.post(this._endpointUrl("categorylist"),t).pipe(MT(this._handleError))}deleteCategory(t){return this.httpClient.delete(this._endpointUrl("category").replace("",t.toString())).pipe(MT(this._handleError))}addInvestigator(t){return this.httpClient.post(this._endpointUrl("investigatorList"),t).pipe(MT(this._handleError))}updateInvestigator(t){return this.httpClient.put(this._endpointUrl("investigator").replace("",t.id.toString()),t).pipe(MT(this._handleError))}getInvestigators(){return this.httpClient.get(this._endpointUrl("investigatorList")).pipe(MT(this._handleError))}updateStudyInvestigators(t,e){const i=this._endpointUrl("investigatorbystudy").replace("",t.toString());return this.httpClient.post(i,e).pipe(MT(this._handleError))}getUser(t){return this.httpClient.get(this._endpointUrl("user").replace("",t.toString())).pipe(MT(this._handleError))}updateUser(t){return this.httpClient.put(this._endpointUrl("user").replace("",t.id.toString()),t).pipe(MT(this._handleError))}addUser(t){return this.httpClient.post(this._endpointUrl("userlist"),t).pipe(E(t=>new VG(t)),MT(this._handleError))}findUsers(t="",e="email",i="asc",n=0,s=3){const r={filter:t,sort:e,sortOrder:i,pageNumber:String(n),pageSize:String(s)};return this.httpClient.get(this._endpointUrl("userlist"),{params:r}).pipe(MT(this._handleError))}getUserStudyInquiries(t){return this.httpClient.get(this._endpointUrl("userStudyInquiryList").replace("",t.toString())).pipe(MT(this._handleError))}getUserEmailLog(t){return this.httpClient.get(this._endpointUrl("userEmailLog").replace("",t.id.toString())).pipe(MT(this._handleError))}getAllEmailLog(){return this.httpClient.get(this._endpointUrl("emailloglist")).pipe(MT(this._handleError))}getResourceChangeLog(t){return this.httpClient.get(this._endpointUrl("resourceChangeLog").replace("",t.toString())).pipe(MT(this._handleError))}getUserResourceChangeLog(t){return this.httpClient.get(this._endpointUrl("userResourceChangeLog").replace("",t.toString())).pipe(MT(this._handleError))}getParticipantStepLog(t){return this.httpClient.get(this._endpointUrl("participantStepLog").replace("",t.id.toString())).pipe(MT(this._handleError))}addUserFavorites(t){return this.httpClient.post(this._endpointUrl("userfavoritelist"),t).pipe(MT(this._handleError))}deleteUserFavorite(t){return this.httpClient.delete(this._endpointUrl("userfavorite").replace("",t.id.toString())).pipe(MT(this._handleError))}getFavoritesByUser(t){return this.httpClient.get(this._endpointUrl("favoritesbyuserlist").replace("",t.id.toString())).pipe(MT(this._handleError))}getFavoritesByUserAndType(t,e){return this.httpClient.get(this._endpointUrl("favoritesbyuserandtypelist").replace("",t.id.toString()).replace("",e)).pipe(MT(this._handleError))}getQuestionnaireInfoList(){const t=this._endpointUrl("questionnaireInfo");return this.httpClient.get(t).pipe(E(t=>t.map(t=>new jG(t))),MT(this._handleError))}getQuestionnaireList(t){const e=this._endpointUrl("questionnaireList").replace("",t);return this.httpClient.get(e).pipe(MT(this._handleError))}getQuestionnaireListMeta(t){const e=this._endpointUrl("questionnaireListMeta").replace("",t);return this.httpClient.get(e).pipe(MT(this._handleError))}exportQuestionnaire(t){const e=this._endpointUrl("questionnaireExport").replace("",t);return this.httpClient.get(e,{observe:"response",responseType:"blob"})}exportUserQuestionnaire(t){const e=this._endpointUrl("questionnaireUserExport").replace("",name).replace("",t);return this.httpClient.get(e,{observe:"response",responseType:"blob"})}getQuestionnaire(t,e){const i=this._endpointUrl("questionnaire").replace("",t).replace("",e.toString());return this.httpClient.get(i).pipe(MT(this._handleError))}updateQuestionnaire(t,e,i){const n=this._endpointUrl("questionnaire").replace("",t).replace("",e.toString());return this.httpClient.put(n,i).pipe(MT(this._handleError))}getQuestionnaireMeta(t,e){const i=this._endpointUrl("questionnairemeta").replace("",t).replace("",e);return this.httpClient.get(i).pipe(MT(this._handleError))}submitQuestionnaire(t,e,i){const n=this._endpointUrl("flowquestionnaire").replace("",t).replace("",e);return this.httpClient.post(n,i).pipe(MT(this._handleError))}submitRegistration(t){const e=this._endpointUrl("userRegistration");return this.httpClient.post(e,t).pipe(MT(this._handleError))}search(t){const e=this._endpointUrl("search");return this.httpClient.post(e,t).pipe(MT(this._handleError))}searchStudies(t){const e=this._endpointUrl("searchstudies");return this.httpClient.post(e,t).pipe(MT(this._handleError))}getDataTransferLogs(t=0,e=10){const i={pageNumber:String(t),pageSize:String(e)};return this.httpClient.get(this._endpointUrl("data_transfer_log"),{params:i}).pipe(MT(this._handleError))}getZipCoords(t){const e=this._endpointUrl("zip_code_coords").replace("",t);return this.httpClient.get(e).pipe(MT(this._handleError))}getPasswordRequirements(t){const e=this._endpointUrl("password_requirements").replace("",t);return this.httpClient.get(e).pipe(MT(this._handleError))}_handleError(t){let e="Could not complete your request; please try again later.";return e=t.message,kp(e)}getChainStepsList(){return this.httpClient.get(this._endpointUrl("chainStepsList")).pipe(MT(this._handleError))}editChainStep(t){const e=this._endpointUrl("chainStep").replace("",t.id.toString());return this.httpClient.put(e,t).pipe(MT(this._handleError))}deleteChainStep(t){const e=this._endpointUrl("chainStep").replace("",t.id.toString());return this.httpClient.delete(e).pipe(MT(this._handleError))}_endpointUrl(t){const e=this.endpoints[t];if(e)return this.apiRoot+e;console.log(`endpoint '${t}' does not exist`)}_qEndpoint(t="",e,i){""!==t&&(t=t.charAt(0).toUpperCase()+t.slice(1));const n=this.endpoints["questionnaire"+t].replace("",e+"_questionnaire").replace("",isFinite(i)?i.toString():"");return this.apiRoot+n}}return t.\u0275fac=function(e){return new(e||t)(wn(Km),wn(MG))},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function $G(t,e){1&t&&(Qo(0,"mat-header-cell",13),Na(1," Table Name "),Xo())}function qG(t,e){if(1&t&&(Qo(0,"mat-cell",13),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.class_name," ")}}function YG(t,e){1&t&&(Qo(0,"mat-header-cell"),Na(1," Successful "),Xo())}function QG(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.successful," ")}}function XG(t,e){1&t&&(Qo(0,"mat-header-cell"),Na(1," Records Processed "),Xo())}function KG(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.success_count," ")}}function ZG(t,e){1&t&&(Qo(0,"mat-header-cell"),Na(1," Failures "),Xo())}function JG(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.failure_count," ")}}function tU(t,e){1&t&&(Qo(0,"mat-header-cell"),Na(1," Error Messages"),Xo())}function eU(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.errors," ")}}function iU(t,e){1&t&&Ko(0,"mat-header-row")}function nU(t,e){1&t&&Ko(0,"mat-row")}let sU=(()=>{class t{constructor(){this.displayedColumns=["class_name","successful","success_count","failure_count","errors"]}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-admin-export-details"]],inputs:{exportDetails:"exportDetails"},decls:21,vars:3,consts:[[1,"details"],[1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","class_name"],["style","flex: 2",4,"matHeaderCellDef"],["style","flex: 2",4,"matCellDef"],["matColumnDef","successful"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","success_count"],["matColumnDef","failure_count"],["matColumnDef","errors"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[2,"flex","2"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"h2"),Na(2,"Details:"),Xo(),Qo(3,"mat-table",1),Zo(4,2),jo(5,$G,2,0,"mat-header-cell",3),jo(6,qG,2,1,"mat-cell",4),Jo(),Zo(7,5),jo(8,YG,2,0,"mat-header-cell",6),jo(9,QG,2,1,"mat-cell",7),Jo(),Zo(10,8),jo(11,XG,2,0,"mat-header-cell",6),jo(12,KG,2,1,"mat-cell",7),Jo(),Zo(13,9),jo(14,ZG,2,0,"mat-header-cell",6),jo(15,JG,2,1,"mat-cell",7),Jo(),Zo(16,10),jo(17,tU,2,0,"mat-header-cell",6),jo(18,eU,2,1,"mat-cell",7),Jo(),jo(19,iU,1,0,"mat-header-row",11),jo(20,nU,1,0,"mat-row",12),Xo(),Xo()),2&t&&(dr(3),qo("dataSource",e.exportDetails),dr(16),qo("matHeaderRowDef",e.displayedColumns),dr(1),qo("matRowDefColumns",e.displayedColumns))},directives:[$I,ZI,XI,YI,sR,oR,tR,iR,lR,uR],styles:[".details[_ngcontent-%COMP%]{display:-ms-flexbox;display:flex;place-content:center;padding:24px;color:#555;font-weight:700;background:rgba(0,0,0,.1)}mat-table[_ngcontent-%COMP%]{width:85%;margin:auto}"]}),t})();const rU=["tableRow"];function oU(t,e){1&t&&(Qo(0,"p"),Na(1," The following is log of IMPORTS coming into this system. "),Xo())}function aU(t,e){1&t&&(Qo(0,"p"),Na(1," The following is log of EXPORTS going out of this system. "),Xo())}function lU(t,e){1&t&&(Qo(0,"p",15),Na(1," WARNING: The latest log is showing alerts. This means that the exporter may be having issues and is not removing sensitive data from the server in a timely manor. An email should have been sent to an administrator to alert them of this issue. "),Xo())}function cU(t,e){1&t&&(Qo(0,"mat-header-cell"),Na(1,"Id"),Xo())}function uU(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.id," ")}}function dU(t,e){1&t&&(Qo(0,"mat-header-cell"),Na(1,"Type"),Xo())}function hU(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.type," ")}}function pU(t,e){1&t&&(Qo(0,"mat-header-cell"),Na(1,"Date Started"),Xo())}function mU(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),vc(2,"date"),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",Cc(2,1,t.date_started,"medium")," ")}}function fU(t,e){1&t&&(Qo(0,"mat-header-cell"),Na(1,"Last Updated"),Xo())}function gU(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),vc(2,"date"),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",Cc(2,1,t.last_updated,"medium")," ")}}function _U(t,e){1&t&&(Qo(0,"mat-header-cell"),Na(1,"# Records"),Xo())}function bU(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.total_records," ")}}function yU(t,e){1&t&&(Qo(0,"mat-header-cell"),Na(1,"alerts_sent"),Xo())}function vU(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.alerts_sent," ")}}function wU(t,e){1&t&&Ko(0,"mat-header-row")}function CU(t,e){if(1&t){const t=ea();Qo(0,"mat-row",16,17),ra("click",function(){Be(t);const i=e.index;return ua().selectRow(i)}),Xo()}if(2&t){const t=e.$implicit;ka(ua().getRowClass(t))}}const xU=function(){return[5,10,20]};let SU=(()=>{class t{constructor(t,e,i,n){this.api=t,this.configService=e,this.router=i,this.resolver=n,this.columns=[],this.default_page_size=10,this.count=0}ngOnInit(){this.mirroring=this.configService.mirroring,this.loadData(),this.loadLatestLog(),Y(this.paginator.page).pipe(If(()=>this.loadData())).subscribe()}loadData(){this.dataTransferDataSource=new GG(this.api),this.columns=["id","type","date_started","last_updated","total_records","alerts_sent"],this.dataTransferDataSource.loadLogs(this.paginator.pageIndex,this.paginator.pageSize),this.dataTransferDataSource.count$.subscribe(t=>{this.count=t})}getRowClass(t){return t.details.filter(t=>!t.successful).length>0?"error":t.alerts_sent>0?"warn":"normal"}loadLatestLog(){this.api.getDataTransferLogs(0,1).subscribe(t=>{t.items.length>0&&(this.latestLog=t.items[0])})}selectRow(t){if(console.log("Row "+t+" Selected"),null!=this.expandedRow&&this.rowContainers.toArray()[this.expandedRow].clear(),this.expandedRow===t)this.expandedRow=null;else{const e=this.rowContainers.toArray()[t],i=this.resolver.resolveComponentFactory(sU),n=e.createComponent(i);this.dataTransferDataSource.logs$.subscribe(e=>{n.instance.exportDetails=e[t].details,this.expandedRow=t})}}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(MG),$o(lG),$o(ll))},t.\u0275cmp=Xt({type:t,selectors:[["app-admin-export"]],viewQuery:function(t,e){if(1&t&&(Vc(zD,3),Vc(rU,1,Kl)),2&t){let t;Nc(t=Hc())&&(e.paginator=t.first),Nc(t=Hc())&&(e.rowContainers=t)}},decls:30,vars:10,consts:[[1,"logs"],[4,"ngIf"],["class","mat-error",4,"ngIf"],[1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","id"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","type"],["matColumnDef","date_started"],["matColumnDef","last_updated"],["matColumnDef","total_records"],["matColumnDef","alerts_sent"],[4,"matHeaderRowDef"],["matRipple","",3,"class","click",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions"],[1,"mat-error"],["matRipple","",3,"click"],["tableRow",""]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"h1"),Na(2,"Transfer Logs"),Xo(),jo(3,oU,2,0,"p",1),jo(4,aU,2,0,"p",1),Qo(5,"p"),Na(6,"Click on a row for additional details."),Xo(),jo(7,lU,2,0,"p",2),Qo(8,"mat-table",3),Zo(9,4),jo(10,cU,2,0,"mat-header-cell",5),jo(11,uU,2,1,"mat-cell",6),Jo(),Zo(12,7),jo(13,dU,2,0,"mat-header-cell",5),jo(14,hU,2,1,"mat-cell",6),Jo(),Zo(15,8),jo(16,pU,2,0,"mat-header-cell",5),jo(17,mU,3,4,"mat-cell",6),Jo(),Zo(18,9),jo(19,fU,2,0,"mat-header-cell",5),jo(20,gU,3,4,"mat-cell",6),Jo(),Zo(21,10),jo(22,_U,2,0,"mat-header-cell",5),jo(23,bU,2,1,"mat-cell",6),Jo(),Zo(24,11),jo(25,yU,2,0,"mat-header-cell",5),jo(26,vU,2,1,"mat-cell",6),Jo(),jo(27,wU,1,0,"mat-header-row",12),jo(28,CU,2,3,"mat-row",13),Xo(),Xo(),Ko(29,"mat-paginator",14)),2&t&&(dr(3),qo("ngIf",e.mirroring),dr(1),qo("ngIf",!e.mirroring),dr(3),qo("ngIf",e.latestLog&&e.latestLog.alerts_sent>0),dr(1),qo("dataSource",e.dataTransferDataSource),dr(19),qo("matHeaderRowDef",e.columns),dr(1),qo("matRowDefColumns",e.columns),dr(1),qo("length",e.count)("pageSize",e.default_page_size)("pageSizeOptions",hc(9,xU)))},directives:[Jd,$I,ZI,XI,YI,sR,oR,zD,tR,iR,lR,uR],pipes:[_h],styles:["div.logs[_ngcontent-%COMP%]{padding:50px 0;margin:50px}table[_ngcontent-%COMP%]{width:100%}mat-card[_ngcontent-%COMP%]{margin-bottom:1em}mat-row.warn[_ngcontent-%COMP%]{background:#ffffe0}mat-row.error[_ngcontent-%COMP%]{background:#ffa07a}"]}),t})();function kU(t,e){if(1&t&&(Qo(0,"a",3,4),Na(2),Xo()),2&t){const t=e.$implicit,i=Wo(1);qo("routerLink",t.path)("active",i.isActive)("id",t.id),dr(2),Ba(" ",t.label," ")}}let AU=(()=>{class t{constructor(){this.navLinks=[{path:"/admin/data-admin",label:"Data Admin",id:"data-admin"},{path:"/admin/user-admin",label:"User Admin",id:"user-admin"},{path:"/admin/participant-admin",label:"Participant Admin",id:"participant-admin"},{path:"/admin/taxonomy-admin",label:"Taxonomy Admin",id:"taxonomy-admin"},{path:"/admin/import-export-status",label:"Import/Export Status",id:"import-export-status"},{path:"/admin/email-log",label:"Email Log",id:"email-log"}]}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-admin-home"]],decls:6,vars:1,consts:[[1,"admin"],["mat-tab-nav-bar",""],["mat-tab-link","","routerLinkActive","",3,"routerLink","active","id",4,"ngFor","ngForOf"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active","id"],["rla","routerLinkActive"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"h1"),Na(2,"Administrative Options"),Xo(),Qo(3,"nav",1),jo(4,kU,3,4,"a",2),Xo(),Ko(5,"router-outlet"),Xo()),2&t&&(dr(4),qo("ngForOf",e.navLinks))},directives:[aL,Kd,pG,uG,dL,hG],styles:[".admin[_ngcontent-%COMP%]{margin:2em}"]}),t})(),OU=(()=>{class t{constructor(t,e){this.name=t,this.label=e}static all(){return[this.LOCATION,this.RESOURCE,this.EVENT,this.STUDY]}static all_resources(){return[this.ALL_RESOURCES,this.LOCATION,this.RESOURCE,this.EVENT]}}return t.labels={location:"Local Services",resource:"Online Information",event:"Events and Training",study:"Research Studies",all:"All Results",all_resources:"All Resources"},t.LOCATION=new t("location",t.labels.location),t.RESOURCE=new t("resource",t.labels.resource),t.EVENT=new t("event",t.labels.event),t.STUDY=new t("study",t.labels.study),t.ALL=new t("all",t.labels.all),t.ALL_RESOURCES=new t("all_resources",t.labels.all_resources),t})(),EU=(()=>{class t{}return t.labels={"pre-k":"Pre-K (0 - 5 years)",school:"School Age (6 - 13 years)",transition:"Transition Age (14 - 22 years)",adult:"Adulthood (23 - 64)",aging:"Aging (65+)"},t})(),TU=(()=>{class t{}return t.labels={english:"English",spanish:"Spanish",chinese:"Chinese",korean:"Korean",vietnamese:"Vietnamese",arabic:"Arabic",tagalog:"Tagalog"},t})(),PU=(()=>{class t{}return t.labels={"COVID-19_for_Autism":"COVID-19 Information: Information explaining COVID-19 for people with ASD, families and professionals",Health_and_Telehealth:"Health and Telehealth: Online supports to help support the community's mental, behavioral, and physical health","Physical Activity":"Physical Activity: Resources focused on promoting physical activity and exercise",Visual_Aids:"Visual Aids: Resources to develop visual schedules, social stories, communication aids explaining COVID-19","Edu-tainment":"Edu-tainment: Fun educational games, experiences, virtual tours, videos, interactive tools, apps, etc",Supports_with_Living:"Daily Living Supports: Supports and information related to daily living needs and supporting daily living needs at home (e.g., with family, group care, residential supports)",Free_educational_resources:"Free Educational Resources: Curriculum based courses, classes, and textbooks; subscriptions"},t})();var DU=i("jIQF");class MU{constructor(t){this._superprops=t;for(const e in this._superprops)this._superprops.hasOwnProperty(e)&&(this[e]=this._superprops[e])}hasCoords(){const t=t=>"number"==typeof t&&isFinite(t);return t(this.latitude)&&t(this.longitude)}milesFrom(t){if(t&&this.hasCoords()){const e={lat:this.latitude,lng:this.longitude},i=Object(DU.getDistance)(e,t);return Object(DU.convertDistance)(i,"mi").toFixed(1)}}}class IU{constructor(t){this._props=t,this.words="",this.start=0,this.size=20,this.types=[],this.ages=[],this.languages=[],this.sort={field:"_score",order:"asc"},this.hits=[],this.type_counts=[],this.age_counts=[],this.language_counts=[],this.map_data_only=!1;const e=JSON.parse(JSON.stringify(this._props));for(const i in e)e.hasOwnProperty(i)&&(this[i]=e[i]);this.hits&&this.hits.length>0&&(this.hits=this.hits.map(t=>new RU(t)))}get hasHits(){return!!(this.hits&&this.hits.length>0)}get hasWords(){return!!(this.words&&this.words.length>0)}get hasTypes(){return!(!this.types||1!==this.types.length&&2!==this.types.length)}get hasAges(){return!!(this.ages&&this.ages.length>0)}get hasLanguages(){return!!(this.languages&&this.languages.length>0)}get hasCategory(){return!(!this.category||!this.category.id)}get hasFilters(){return!!(this.hasWords||this.hasTypes||this.hasLanguages||this.hasAges||this.hasCategory)}get hitTypes(){return OU.all().filter(t=>this.types.includes(t.name))}get hasAgeCounts(){return this.age_counts.filter(t=>t.count>0).length>0}get hasLanguageCounts(){return this.language_counts.filter(t=>t.count>0).length>0}equals(t){let e=!0;return this.category&&t.category&&(e=this.category.id===t.category.id),this.words===t.words&&this.types===t.types&&this.ages===t.ages&&this.languages===t.languages&&e}}class RU extends MU{constructor(t){super(t),this._props=t;for(const e in this._props)this._props.hasOwnProperty(e)&&(this[e]=this._props[e])}}var LU=function(t){return t.currently_enrolling="Currently enrolling",t.study_in_progress="Study in progress",t.results_being_analyzed="Results being analyzed",t.study_results_published="Study results published",t}({});class FU{constructor(t){this._props=t;for(const e in this._props)this._props.hasOwnProperty(e)&&(this[e]=this._props[e])}}const NU=function(t){return{active:t}};function VU(t,e){if(1&t){const t=ea();Qo(0,"div"),Qo(1,"div",1),Qo(2,"button",2),ra("click",function(e){return Be(t),ua().handleClick(e)}),Qo(3,"mat-icon",3),Na(4,"grade"),Xo(),Xo(),Xo(),Xo()}if(2&t){const t=ua();dr(2),ma("matTooltip",t.instructions()),dr(1),qo("ngClass",pc(2,NU,t.userFavorite()))}}let BU=(()=>{class t{constructor(t){this.api=t}ngOnInit(){}userFavorite(){for(const t of this.user.user_favorites)if(t.resource_id===this.resource_id)return!0;return!1}addFavorite(){const t=[new FU({user_id:this.user.id,resource_id:this.resource_id,type:"resource"})];this.api.addUserFavorites(t).subscribe(t=>{this.user.user_favorites.push(t[0])})}deleteFavorite(){for(const t of this.user.user_favorites)t.resource_id===this.resource_id&&(this.favorite=t);this.api.deleteUserFavorite(this.favorite).subscribe(t=>{this.user.user_favorites.splice(this.user.user_favorites.findIndex(t=>t.id===this.favorite.id),1)})}handleClick(t){t.preventDefault(),t.stopPropagation(),this.userFavorite()?this.deleteFavorite():this.addFavorite()}instructions(){return this.userFavorite()?"Remove Resource from Profile":"Save Resource to Profile"}}return t.\u0275fac=function(e){return new(e||t)($o(WG))},t.\u0275cmp=Xt({type:t,selectors:[["app-favorite-resource-button"]],inputs:{resource_id:"resource_id",user:"user"},decls:1,vars:1,consts:[[4,"ngIf"],["fxLayout","row wrap","fxLayout.xs","column","fxLayoutAlign","left","fxLayoutGap","10px","fxLayoutGap.xs","0",1,"container"],["mat-mini-fab","",3,"matTooltip","click"],[3,"ngClass"]],template:function(t,e){1&t&&jo(0,VU,5,4,"div",0),2&t&&qo("ngIf",e.user)},directives:[Jd,o_,Z_,p_,TA,AD,JT,Qd,Pg],styles:["button.mat-mini-fab.mat-accent[_ngcontent-%COMP%]{background-color:rgba(0,0,0,0);box-shadow:none;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)}button.mat-mini-fab.mat-accent[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{-webkit-text-stroke:1px #232d4b;color:#fff;text-shadow:-1px -1px 0 #232d4b,1px -1px 0 #232d4b,-1px 1px 0 #232d4b,1px 1px 0 #232d4b}button.mat-mini-fab.mat-accent[_ngcontent-%COMP%] mat-icon.active[_ngcontent-%COMP%]{color:#232d4b;text-shadow:none}"]}),t})();function HU(t,e){if(1&t&&(Qo(0,"span",4),Na(1),Xo()),2&t){const t=ua(2);dr(1),Va(t.subtitle)}}const zU=function(t){return[t]},GU=function(t,e,i,n){return{hover:t,selected:e,inverted:i,"all-caps":n}};function UU(t,e){if(1&t){const t=ea();Qo(0,"a",2),ra("mouseenter",function(){return Be(t),ua().onMouseOver()})("mouseleave",function(){return Be(t),ua().onMouseOut()}),Ko(1,"i"),Qo(2,"span"),Na(3),jo(4,HU,2,1,"span",3),Xo(),Xo()}if(2&t){const t=ua();qo("routerLink",pc(10,zU,t.url))("ngClass",gc(12,GU,t.hover||t.shouldHover,t.selected,t.inverted,t.allCaps)),dr(1),Ga("icofont-circled-right icofont-",t.size,"x details-link-icon"),dr(1),Ga("details-link-text-",t.size,"x"),dr(1),Ba(" ",t.label," "),dr(1),qo("ngIf",t.subtitle)}}function jU(t,e){if(1&t&&(Qo(0,"span",4),Na(1),Xo()),2&t){const t=ua(2);dr(1),Va(t.subtitle)}}function WU(t,e){if(1&t){const t=ea();Qo(0,"a",5),ra("mouseenter",function(){return Be(t),ua().onMouseOver()})("mouseleave",function(){return Be(t),ua().onMouseOut()}),Ko(1,"i"),Qo(2,"span"),Na(3),jo(4,jU,2,1,"span",3),Xo(),Xo()}if(2&t){const t=ua();qo("href",t.url,ms)("ngClass",gc(10,GU,t.hover||t.shouldHover,t.selected,t.inverted,t.allCaps)),dr(1),Ga("icofont-circled-right icofont-",t.size,"x details-link-icon"),dr(1),Ga("details-link-text-",t.size,"x"),dr(1),Ba(" ",t.label," "),dr(1),qo("ngIf",t.subtitle)}}let $U=(()=>{class t{constructor(){this.label="Details",this.size=1,this.selected=!1,this.subtitle="",this.inverted=!1,this.allCaps=!0,this.externalLink=!1,this.shouldHover=!1}ngOnInit(){}onMouseOver(){void 0===this.hover&&(this.shouldHover=!0)}onMouseOut(){void 0===this.hover&&(this.shouldHover=!1)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-details-link"]],inputs:{url:"url",label:"label",size:"size",hover:"hover",selected:"selected",subtitle:"subtitle",inverted:"inverted",allCaps:"allCaps",externalLink:"externalLink"},decls:2,vars:2,consts:[[3,"routerLink","ngClass","mouseenter","mouseleave",4,"ngIf"],["target","_blank",3,"href","ngClass","mouseenter","mouseleave",4,"ngIf"],[3,"routerLink","ngClass","mouseenter","mouseleave"],["class","muted",4,"ngIf"],[1,"muted"],["target","_blank",3,"href","ngClass","mouseenter","mouseleave"]],template:function(t,e){1&t&&(jo(0,UU,5,17,"a",0),jo(1,WU,5,15,"a",1)),2&t&&(qo("ngIf",!e.externalLink),dr(1),qo("ngIf",e.externalLink))},directives:[Jd,uG,Qd,Pg],styles:["a[_ngcontent-%COMP%]{transition:all .5s;text-decoration:none;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center}a[_ngcontent-%COMP%] [class*=details-link-text][_ngcontent-%COMP%]{font:700 1.5rem/1 franklin-gothic-urw,sans-serif;letter-spacing:normal;font-style:italic;color:#232d4b}a[_ngcontent-%COMP%] .details-link-text-1x[_ngcontent-%COMP%]{font-size:1.125rem;margin-left:.5rem}a[_ngcontent-%COMP%] .details-link-text-2x[_ngcontent-%COMP%]{font-size:1.5rem;margin-left:.75rem}a[_ngcontent-%COMP%] [class*=icofont-][_ngcontent-%COMP%]{color:#e57200;transition:all .5s}a[_ngcontent-%COMP%] .details-link-icon[_ngcontent-%COMP%]{-ms-transform:rotate(0deg);transform:rotate(0deg)}a.selected[_ngcontent-%COMP%] .details-link-icon[_ngcontent-%COMP%]{-ms-transform:rotate(90deg);transform:rotate(90deg)}a.hover[_ngcontent-%COMP%]{-ms-transform:translateX(10px);transform:translateX(10px)}a.hover.selected[_ngcontent-%COMP%]{-ms-transform:translateY(10px);transform:translateY(10px)}.muted[_ngcontent-%COMP%]{color:#4e4e4e}.inverted[_ngcontent-%COMP%], .inverted[_ngcontent-%COMP%] [class*=details-link-text][_ngcontent-%COMP%]{color:#fff}.all-caps[_ngcontent-%COMP%] [class*=details-link-text][_ngcontent-%COMP%]{text-transform:uppercase;letter-spacing:.1em}"]}),t})();function qU(t,e){1&t&&Ko(0,"i"),2&t&&Ga("icofont-search-stock icofont-",ua(2).size,"x")}const YU=function(t,e,i){return{"font-size":t,height:e,width:i}};function QU(t,e){if(1&t&&(Qo(0,"mat-icon",3),Na(1,"important_devices"),Xo()),2&t){const t=ua(2);qo("ngStyle",fc(1,YU,t.pxSize,t.pxSize,t.pxSize))}}function XU(t,e){if(1&t&&(Qo(0,"mat-icon",3),Na(1,"event_available"),Xo()),2&t){const t=ua(2);qo("ngStyle",fc(1,YU,t.pxSize,t.pxSize,t.pxSize))}}function KU(t,e){1&t&&Ko(0,"i"),2&t&&Ga("icofont-ui-map icofont-",ua(2).size,"x")}function ZU(t,e){if(1&t&&(Zo(0),jo(1,qU,1,3,"i",1),jo(2,QU,2,5,"mat-icon",2),jo(3,XU,2,5,"mat-icon",2),jo(4,KU,1,3,"i",1),Jo()),2&t){const t=ua();dr(1),qo("ngIf",t.is(t.iconType,"study")),dr(1),qo("ngIf",t.is(t.iconType,"resource")),dr(1),qo("ngIf",t.is(t.iconType,"event")),dr(1),qo("ngIf",t.is(t.iconType,"location"))}}let JU=(()=>{class t{constructor(){this.iconTypes=OU.all().map(t=>t.name)}ngOnInit(){}is(t,e){return t===e}get pxSize(){return 16*this.size+"px"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-type-icon"]],inputs:{iconType:"iconType",size:"size"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"class",4,"ngIf"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"]],template:function(t,e){1&t&&jo(0,ZU,5,4,"ng-container",0),2&t&&qo("ngIf",e.iconType)},directives:[Jd,JT,oh,Wg],styles:["mat-icon[_ngcontent-%COMP%]{vertical-align:top}"]}),t})(),tj=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-last-updated-date"]],inputs:{lastUpdatedDate:"lastUpdatedDate"},decls:3,vars:4,consts:[[1,"hit-last-updated"]],template:function(t,e){1&t&&(Qo(0,"span",0),Na(1),vc(2,"date"),Xo()),2&t&&(zo("data-iso-date-string",e.lastUpdatedDate),dr(1),Ba(" Updated ",wc(2,2,e.lastUpdatedDate)," -\n"))},pipes:[_h],styles:[".hit-last-updated[_ngcontent-%COMP%]{font-style:italic;font-size:1em;color:#666}"]}),t})();function ej(t,e){if(1&t&&(Qo(0,"span",1),Ko(1,"br"),Qo(2,"mat-icon"),Na(3,"event_available"),Xo(),Na(4),vc(5,"date"),Xo()),2&t){const t=ua();zo("data-iso-date-string",t.eventDate),dr(4),Ba(" Event date: ",wc(5,2,t.eventDate),"\n")}}let ij=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-event-date"]],inputs:{eventDate:"eventDate"},decls:1,vars:1,consts:[["class","hit-event-date","fxLayoutAlign","start center",4,"ngIf"],["fxLayoutAlign","start center",1,"hit-event-date"]],template:function(t,e){1&t&&jo(0,ej,6,4,"span",0),2&t&&qo("ngIf",e.eventDate)},directives:[Jd,Z_,JT],pipes:[_h],styles:[".hit-event-date[_ngcontent-%COMP%]{color:#e57200;font-weight:700}"]}),t})();function nj(t,e){1&t&&(Qo(0,"p"),Na(1,"[DRAFT]"),Xo())}const sj=function(){return["/search"]},rj=function(t){return{Type:t}};function oj(t,e){if(1&t&&(Qo(0,"button",12),Ko(1,"app-type-icon",13),Xo()),2&t){const t=ua(2);ma("matTooltip",t.hit.label),qo("routerLink",hc(6,sj))("queryParams",pc(7,rj,t.hit.label))("disableRipple",!0),dr(1),qo("iconType",t.hit.type.toLowerCase())("size",3)}}function aj(t,e){1&t&&Ko(0,"app-type-icon",13),2&t&&qo("iconType",ua(2).hit.type.toLowerCase())("size",3)}function lj(t,e){if(1&t&&(Zo(0),Qo(1,"em",14),Qo(2,"mat-icon"),Na(3,"timer"),Xo(),Na(4),Xo(),Jo()),2&t){const t=ua(2);dr(1),qo("ngClass","status-badge status-"+t.statusKey()),dr(3),Ba(" ",t.hit.status," ")}}function cj(t,e){1&t&&Ko(0,"app-event-date",18),2&t&&qo("eventDate",ua(3).hit.date)}function uj(t,e){if(1&t&&(Qo(0,"markdown",15),Ko(1,"app-last-updated-date",16),Na(2),jo(3,cj,1,1,"app-event-date",17),Xo()),2&t){const t=ua(2);dr(1),qo("lastUpdatedDate",t.hit.last_updated),dr(1),Ba(" ",t.hit.highlights," "),dr(1),qo("ngIf",t.hit.date)}}function dj(t,e){1&t&&Ko(0,"app-event-date",18),2&t&&qo("eventDate",ua(3).hit.date)}function hj(t,e){if(1&t&&(Qo(0,"p",19),Ko(1,"app-last-updated-date",16),Qo(2,"markdown"),Na(3),Xo(),jo(4,dj,1,1,"app-event-date",17),Xo()),2&t){const t=ua(2);dr(1),qo("lastUpdatedDate",t.hit.last_updated),dr(2),Va(t.isPastEvent?t.hit.post_event_description:t.hit.description),dr(1),qo("ngIf",t.hit.date)}}const pj=function(t,e){return[t,e]};function mj(t,e){if(1&t){const t=ea();Qo(0,"div",1),Qo(1,"div",2),Qo(2,"div",3),jo(3,nj,2,0,"p",4),Qo(4,"a",5),Na(5),Xo(),Ko(6,"app-favorite-resource-button",6),Xo(),jo(7,oj,2,9,"button",7),jo(8,aj,1,2,"app-type-icon",8),Xo(),jo(9,lj,5,2,"ng-container",4),jo(10,uj,4,3,"markdown",9),jo(11,hj,5,3,"p",10),Qo(12,"app-details-link",11),ra("mouseover",function(){return Be(t),ua().hover=!0})("mouseout",function(){return Be(t),ua().hover=!1}),Xo(),Xo()}if(2&t){const t=ua();dr(3),qo("ngIf",!0===t.hit.is_draft),dr(1),qo("routerLink",mc(14,pj,"/"+t.hit.type.toLowerCase(),t.hit.id)),dr(1),Ba(" ",t.hit.title," "),dr(1),qo("resource_id",t.hit.id)("user",t.currentUser),dr(1),qo("ngIf","study"!=t.hit.type),dr(1),qo("ngIf","study"==t.hit.type),dr(1),qo("ngIf",t.hit&&t.hit.status&&t.isEnrolling(t.hit.status)),dr(1),qo("ngIf",t.hit.highlights),dr(1),qo("ngIf",!t.hit.highlights),dr(1),fa("label","View ",t.hit.type," Details"),ma("subtitle",t.mapLoc&&t.hit.hasCoords()?"("+t.hit.milesFrom(t.mapLoc)+"mi)":""),qo("url","/"+t.hit.type.toLowerCase()+"/"+t.hit.id)("hover",t.hover)}}let fj=(()=>{class t{constructor(){this.hover=!1}get isPastEvent(){return!!(this.hit.date&&new Date(this.hit.date){class t{constructor(t,e,i,n){this.api=t,this.route=e,this.router=i,this.authenticationService=n,this.C19Categories=Object.keys(PU.labels).map(t=>({name:t,label:PU.labels[t].split(": ")[0],description:PU.labels[t].split(": ")[1]})),this.route.params.subscribe(t=>{"category"in t?this.selectedCategory=this.C19Categories.find(e=>e.name===t.category):(this.selectedCategory=this.C19Categories[0],this.route.params.category=this.C19Categories[0].name,this.router.navigate(["/covid19-resources/"+this.C19Categories[0].name]))}),this.loadResources(),this.authenticationService.currentUser.subscribe(t=>this.currentUser=t)}ngOnInit(){}loadResources(){this.api.getCovid19ResourcesByCategory(this.selectedCategory.name).subscribe(t=>{this.resourceHits=this._resourcesToHits(t)})}selectCategory(t){this.selectedCategory=t,this.router.navigate(["/covid19-resources/"+t.name]),this.loadResources()}_resourcesToHits(t){return t.map(t=>new RU({id:t.id,type:"resource",ages:t.ages,title:t.title,content:t.description,description:t.description,last_updated:t.last_updated,highlights:null,url:`/resource/${t.id}`,label:"Research Studies",status:this.C19Categories.find(e=>t.covid19_categories.includes(e.name)).label}))}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(UH),$o(lG),$o(BG))},t.\u0275cmp=Xt({type:t,selectors:[["app-covid19-resources"]],decls:19,vars:5,consts:[[1,"covid19-hero"],[1,"h4"],[1,"covid19-resources"],["fxLayout.gt-sm","row","fxLayout.lt-md","column","fxLayoutGap","2em grid"],["fxLayout.gt-sm","column","fxLayout.lt-md","row wrap","fxLayoutAlign","start space-between","fxLayoutGap","1em grid"],[4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutGap","40px","fxFlex.gt-sm","70%"],[1,"covid19-title"],[4,"ngIf"],["class","no-results",4,"ngIf"],["mat-flat-button","",1,"category-buttons",3,"color","id","click"],[3,"hit","currentUser",4,"ngFor","ngForOf"],[3,"hit","currentUser"],[1,"no-results"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"h1"),Na(2,"COVID-19 RESOURCES"),Xo(),Ko(3,"hr"),Qo(4,"p",1),Na(5,"The COVID-19 virus and resulting social distancing, school closures and general panic are taking a unique toll on autism families."),Xo(),Qo(6,"p",1),Na(7,"We have compiled this list of resources and will update it frequently."),Xo(),Xo(),Qo(8,"div",2),Qo(9,"div",3),Qo(10,"div",4),jo(11,gj,3,3,"div",5),Xo(),Qo(12,"div",6),Qo(13,"h2",7),Na(14),Xo(),Qo(15,"p"),Na(16),Xo(),jo(17,bj,2,1,"ng-container",8),jo(18,yj,2,1,"p",9),Xo(),Xo(),Xo()),2&t&&(dr(11),qo("ngForOf",e.C19Categories),dr(3),Va(e.selectedCategory.label),dr(2),Va(e.selectedCategory.description),dr(1),qo("ngIf",e.resourceHits&&e.resourceHits.length>0),dr(1),qo("ngIf",!e.resourceHits||0===e.resourceHits.length))},directives:[o_,p_,Z_,Kd,k_,Jd,TA,fj],styles:[".covid19-resources[_ngcontent-%COMP%]{margin:2em}.category-buttons[_ngcontent-%COMP%]{width:250px}.covid19-hero[_ngcontent-%COMP%]{background:#232d4b;color:#fff;padding:1em;margin-top:0;text-align:center}.covid19-hero[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{color:#fff}.covid19-hero[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border-top-width:4px;margin:1em auto}.covid19-title[_ngcontent-%COMP%]{margin-bottom:0!important}"]}),t})();function wj(t,e){1&t&&(Qo(0,"div",15),Ko(1,"mat-spinner"),Xo())}function Cj(t,e){1&t&&(Qo(0,"mat-header-cell",16),Na(1," ID "),Xo())}function xj(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.id," ")}}function Sj(t,e){1&t&&(Qo(0,"mat-header-cell",16),Na(1," User ID "),Xo())}function kj(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.user_id," ")}}function Aj(t,e){1&t&&(Qo(0,"mat-header-cell",16),Na(1," Type "),Xo())}function Oj(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.type," ")}}function Ej(t,e){1&t&&(Qo(0,"mat-header-cell",16),Na(1," Viewed "),Xo())}function Tj(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.viewed," ")}}function Pj(t,e){1&t&&(Qo(0,"mat-header-cell",16),Na(1," Date Viewed "),Xo())}function Dj(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),vc(2,"date"),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",Cc(2,1,t.date_viewed,"short")," ")}}function Mj(t,e){1&t&&(Qo(0,"mat-header-cell",16),Na(1," Date Sent "),Xo())}function Ij(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),vc(2,"date"),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",Cc(2,1,t.last_updated,"short")," ")}}function Rj(t,e){1&t&&Ko(0,"mat-header-row")}function Lj(t,e){1&t&&Ko(0,"mat-row")}function Fj(t,e){if(1&t){const t=ea();Qo(0,"div",1),jo(1,wj,2,0,"div",2),Qo(2,"div"),Qo(3,"h1"),Na(4,"Email Log:"),Xo(),Qo(5,"mat-form-field"),Qo(6,"mat-label"),Na(7,"Filter"),Xo(),Qo(8,"input",3),ra("keyup",function(e){return Be(t),ua().applyFilter(e)}),Xo(),Xo(),Qo(9,"mat-table",4),Zo(10,5),jo(11,Cj,2,0,"mat-header-cell",6),jo(12,xj,2,1,"mat-cell",7),Jo(),Zo(13,8),jo(14,Sj,2,0,"mat-header-cell",6),jo(15,kj,2,1,"mat-cell",7),Jo(),Zo(16,9),jo(17,Aj,2,0,"mat-header-cell",6),jo(18,Oj,2,1,"mat-cell",7),Jo(),Zo(19,10),jo(20,Ej,2,0,"mat-header-cell",6),jo(21,Tj,2,1,"mat-cell",7),Jo(),Zo(22,11),jo(23,Pj,2,0,"mat-header-cell",6),jo(24,Dj,3,4,"mat-cell",7),Jo(),Zo(25,12),jo(26,Mj,2,0,"mat-header-cell",6),jo(27,Ij,3,4,"mat-cell",7),Jo(),jo(28,Rj,1,0,"mat-header-row",13),jo(29,Lj,1,0,"mat-row",14),Xo(),Xo(),Xo()}if(2&t){const t=ua();dr(1),qo("ngIf",t.loading),dr(8),qo("dataSource",t.dataSource),dr(19),qo("matHeaderRowDef",t.displayedColumns),dr(1),qo("matRowDefColumns",t.displayedColumns)}}let Nj=(()=>{class t{constructor(t,e,i){this.api=t,this.route=e,this.authenticationService=i,this.displayedColumns=["id","user_id","type","viewed","date_viewed","last_updated"],this.loading=!0,this.authenticationService.currentUser.subscribe(t=>this.currentUser=t)}ngOnInit(){this.api.getAllEmailLog().subscribe(t=>{this.dataSource=new mR(t),this.dataSource.sort=this.sort,this.loading=!1})}applyFilter(t){this.dataSource.filter=t.target.value.trim().toLowerCase()}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(UH),$o(BG))},t.\u0275cmp=Xt({type:t,selectors:[["app-email-log-admin"]],viewQuery:function(t,e){if(1&t&&Vc(qM,3),2&t){let t;Nc(t=Hc())&&(e.sort=t.first)}},decls:1,vars:1,consts:[["class","email-log-admin",4,"ngIf"],[1,"email-log-admin"],["class","spinner-container",4,"ngIf"],["matInput","",3,"keyup"],["matSort","","matSortActive","id","matSortDirection","asc",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","id"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","user_id"],["matColumnDef","type"],["matColumnDef","viewed"],["matColumnDef","date_viewed"],["matColumnDef","last_updated"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[1,"spinner-container"],["mat-sort-header",""]],template:function(t,e){1&t&&jo(0,Fj,30,4,"div",0),2&t&&qo("ngIf",e.currentUser&&"admin"==e.currentUser.role)},directives:[Jd,Yk,Nk,cE,$I,qM,ZI,XI,YI,sR,oR,oM,tR,tI,iR,lR,uR],pipes:[_h],styles:[".email-log-admin[_ngcontent-%COMP%]{margin:2em}"]}),t})();function Vj(t,e){if(1&t){const t=ea();Qo(0,"div"),Qo(1,"p"),Na(2,"You have completed all the questions about your role as a Parent/Guardian. Please click the button below to begin entering information about your children or dependent(s)."),Xo(),Qo(3,"div",6),Qo(4,"button",7),ra("click",function(e){return Be(t),ua().enrollDependent(e)}),Na(5,"Create another profile"),Xo(),Xo(),Xo()}}function Bj(t,e){if(1&t){const t=ea();Qo(0,"div"),Qo(1,"p"),Na(2,"You have completed all the questions about your child or dependent. We will use this information to contact you about upcoming studies and emerging resources that will be of interest based on the details you provided. "),Xo(),Qo(3,"p"),Na(4,"If you have another dependent, please click the button below to create a profile for them. Otherwise we recommend you check out our list of active studies, or search through the available services and resources."),Xo(),Qo(5,"div",6),Qo(6,"button",8),ra("click",function(e){return Be(t),ua().enrollDependent(e)}),Na(7,"Create another profile"),Xo(),Xo(),Xo()}}function Hj(t,e){if(1&t){const t=ea();Qo(0,"div"),Qo(1,"h2"),Na(2,"Thank you!"),Xo(),Qo(3,"p"),Na(4,"You have completed all the questions about yourself. We will use this information to contact you about upcoming studies and emerging resources that will be of interest based on the details you provided."),Xo(),Qo(5,"p"),Na(6,"If you have a son, daughter, or dependent you would like to enroll as well, please click the button below to enter information about them. Otherwise we recommend you check out our list of active studies, or search through the available services and resources."),Xo(),Qo(7,"div",6),Qo(8,"button",9),ra("click",function(e){return Be(t),ua().enrollDependent(e)}),Na(9,"Create another profile"),Xo(),Xo(),Xo()}}function zj(t,e){if(1&t){const t=ea();Qo(0,"div"),Qo(1,"p"),Na(2,"Thank you for providing us with your information. If you have a son, daughter, or dependent you would like to enroll as well, please click the button below to enter information about them. Otherwise we recommend you check out our list of active studies, or search through the available services and resources."),Xo(),Qo(3,"div",6),Qo(4,"button",10),ra("click",function(e){return Be(t),ua().enrollDependent(e)}),Na(5,"Create another profile"),Xo(),Xo(),Xo()}}let Gj=(()=>{class t{constructor(t){this.router=t}ngOnInit(){}goProfile(t){t.preventDefault(),this.router.navigate(["profile"])}goStudies(t){t.preventDefault(),this.router.navigate(["studies"])}goResources(t){t.preventDefault(),this.router.navigate(["search"])}enrollDependent(t){t.preventDefault(),this.router.navigate(["terms",LG.DEPENDENT])}}return t.\u0275fac=function(e){return new(e||t)($o(lG))},t.\u0275cmp=Xt({type:t,selectors:[["app-flow-complete"]],inputs:{flow:"flow"},decls:16,vars:4,consts:[[1,"alert","alert-info"],[4,"ngIf"],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutGap","10px","fxLayoutAlign","center center"],["mat-flat-button","","type","button","color","primary","routerLink","/profile"],["mat-flat-button","","type","button","routerLink","/studies"],["mat-flat-button","","type","button","color","accent","routerLink","/search"],["fxLayoutAlign","center center"],["mat-flat-button","","color","primary","id","enroll_first_dependent",3,"click"],["mat-flat-button","","color","primary","id","enroll_another_dependent",3,"click"],["mat-flat-button","","color","primary","id","enroll_self_dependent",3,"click"],["mat-flat-button","","color","primary","id","enroll_professional_dependent",3,"click"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"h1"),Na(2,"Profile complete!"),Xo(),jo(3,Vj,6,0,"div",1),jo(4,Bj,8,0,"div",1),jo(5,Hj,10,0,"div",1),jo(6,zj,6,0,"div",1),Qo(7,"p"),Na(8,"You can continue to edit any unlocked questionnaires by selecting them from the column on the left."),Xo(),Qo(9,"div",2),Qo(10,"button",3),Na(11,"Return to Profile Page"),Xo(),Qo(12,"button",4),Na(13,"View Studies"),Xo(),Qo(14,"button",5),Na(15,"Search Resources"),Xo(),Xo(),Xo()),2&t&&(dr(3),qo("ngIf","guardian_intake"===e.flow.name),dr(1),qo("ngIf","dependent_intake"===e.flow.name),dr(1),qo("ngIf","self_intake"===e.flow.name),dr(1),qo("ngIf","professional_intake"===e.flow.name))},directives:[Jd,o_,p_,Z_,TA,cG],styles:["div[_ngcontent-%COMP%]{text-align:left;margin:auto;max-width:600px}"]}),t})();const Uj=function(t){if(function(t){return t===Object(t)&&!Array.isArray(t)&&"function"!=typeof t}(t)){const e={};return Object.keys(t).forEach(i=>{var n;e[(n=i,n.replace(/([-_][a-z])/gi,t=>t.toUpperCase().replace("-","").replace("_","")))]=Uj(t[i])}),e}return Array.isArray(t)?t.map(t=>Uj(t)):t};let jj=(()=>{class t{}return t.COMPLETE="COMPLETE",t.INCOMPLETE="INCOMPLETE",t})();function Wj(t,e){if(1&t&&(Qo(0,"div",2),Na(1),Ko(2,"mat-spinner",3),Xo()),2&t){const t=ua(2);dr(1),Ba(" ",t.message||""," "),dr(1),qo("diameter",t.diameter)}}function $j(t,e){if(1&t&&(Qo(0,"span"),Na(1),Xo()),2&t){const t=ua(2);dr(1),Va(t.message||"...")}}function qj(t,e){if(1&t&&(Zo(0),jo(1,Wj,3,2,"div",1),jo(2,$j,2,1,"span",0),Jo()),2&t){const t=ua();dr(1),qo("ngIf",t.showSpinner),dr(1),qo("ngIf",!t.showSpinner)}}function Yj(t,e){1&t&&(Qo(0,"mat-form-field"),Qo(1,"mat-label"),Na(2,"Loading..."),Xo(),Qo(3,"mat-select"),Qo(4,"mat-option"),Na(5,"..."),Xo(),Xo(),Xo())}let Qj=(()=>{class t{constructor(){this.showSpinner=!0,this.size="lg",this.baseSize=24,this.isField=!1}get diameter(){switch(this.size){case"xl":return 4*this.baseSize;case"lg":return 3*this.baseSize;case"med":return 2*this.baseSize;case"sm":return this.baseSize;default:return 3*this.baseSize}}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-loading"]],inputs:{showSpinner:"showSpinner",message:"message",size:"size",baseSize:"baseSize",isField:"isField"},decls:2,vars:2,consts:[[4,"ngIf"],["class","loading","fxLayoutAlign","center center",4,"ngIf"],["fxLayoutAlign","center center",1,"loading"],[3,"diameter"]],template:function(t,e){1&t&&(jo(0,qj,3,2,"ng-container",0),jo(1,Yj,6,0,"mat-form-field",0)),2&t&&(qo("ngIf",!e.isField),dr(1),qo("ngIf",e.isField))},directives:[Jd,Z_,oM,Yk,Nk,rD,Jx],styles:[""]}),t})();const Xj=function(){return{visible:!0}};function Kj(t,e){1&t&&(Qo(0,"mat-icon",8),Na(1,"lock"),Xo()),2&t&&qo("ngClass",hc(1,Xj))}const Zj=function(){return{hidden:!0}};function Jj(t,e){1&t&&(Qo(0,"mat-icon",8),Na(1,"lock"),Xo()),2&t&&qo("ngClass",hc(1,Zj))}function tW(t,e){1&t&&(Qo(0,"mat-icon",8),Na(1,"done"),Xo()),2&t&&qo("ngClass",hc(1,Xj))}function eW(t,e){1&t&&(Qo(0,"mat-icon",8),Na(1,"done"),Xo()),2&t&&qo("ngClass",hc(1,Zj))}const iW=function(t){return{active:t,"step-link":!0}};function nW(t,e){if(1&t){const t=ea();Qo(0,"mat-nav-list"),Qo(1,"mat-list-item",2),ra("click",function(){Be(t);const i=e.$implicit;return ua().selectStep(i)}),Qo(2,"span",3),jo(3,Kj,2,2,"mat-icon",4),jo(4,Jj,2,2,"mat-icon",4),Xo(),Qo(5,"span",5),Na(6),Xo(),Ko(7,"span",6),Qo(8,"span",7),jo(9,tW,2,2,"mat-icon",4),jo(10,eW,2,2,"mat-icon",4),Xo(),Xo(),Xo()}if(2&t){const t=e.$implicit,i=e.index,n=ua();dr(1),qo("ngClass",pc(7,iW,n.stepName===t.name))("id","step_link_"+i),dr(2),qo("ngIf","sensitive"===t.type),dr(1),qo("ngIf","sensitive"!==t.type),dr(2),Va(t.label),dr(3),qo("ngIf","COMPLETE"===t.status),dr(1),qo("ngIf","COMPLETE"!==t.status)}}function sW(t,e){1&t&&(Qo(0,"mat-nav-list"),Qo(1,"mat-list-item"),Na(2,"Loading..."),Xo(),Xo())}let rW=(()=>{class t{constructor(t){this.api=t,this.stepSelected=new kc}ngOnChanges(t){this.stepName=this.flow.steps[this.stepIndex].name}ngOnInit(){this.stepName=this.flow.steps[this.stepIndex].name}selectStep(t){this.stepName=t.name,this.stepSelected.emit(t)}}return t.\u0275fac=function(e){return new(e||t)($o(WG))},t.\u0275cmp=Xt({type:t,selectors:[["app-questionnaire-steps-list"]],inputs:{flow:"flow",stepIndex:"stepIndex"},outputs:{stepSelected:"stepSelected"},features:[me],decls:2,vars:2,consts:[[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"ngClass","id","click"],[1,"lock"],[3,"ngClass",4,"ngIf"],[1,"step-link-text"],["fxFlex",""],[1,"done"],[3,"ngClass"]],template:function(t,e){1&t&&(jo(0,nW,11,9,"mat-nav-list",0),jo(1,sW,3,0,"mat-nav-list",1)),2&t&&(qo("ngForOf",e.flow.steps),dr(1),qo("ngIf",0===e.flow.steps.length))},directives:[Kd,Jd,pP,bP,Qd,Pg,k_,JT],styles:["mat-icon[_ngcontent-%COMP%]{font-size:.8em;margin-right:8px}mat-icon.visible[_ngcontent-%COMP%]{opacity:1}mat-icon.hidden[_ngcontent-%COMP%]{opacity:0}"]}),t})();function oW(t,e){1&t&&(Qo(0,"div"),Qo(1,"h1"),Na(2,"Your Information"),Xo(),Qo(3,"p"),Na(4,"In the next few minutes you will be completing a series of questions about yourself and your relationship to autism. Please be as thorough as you can. "),Xo(),Xo())}function aW(t,e){1&t&&(Qo(0,"div"),Qo(1,"h1"),Na(2,"Dependent Information"),Xo(),Qo(3,"p"),Na(4,"In the next few minutes you will be completing a series of questions about your dependent. "),Xo(),Xo())}function lW(t,e){1&t&&(Qo(0,"div"),Qo(1,"h1"),Na(2,"Parent/Guardian Information"),Xo(),Qo(3,"p"),Na(4,"In the next few minutes you will be completing a short series of questions about yourself. When you are finished, we will ask you to complete a separate set of questions about your dependent(s). "),Xo(),Xo())}function cW(t,e){1&t&&(Qo(0,"div"),Qo(1,"h1"),Na(2,"Professional Details"),Xo(),Qo(3,"p"),Na(4,"In the next few minutes you will be completing a series of questions about yourself and your relationship to Autism. "),Xo(),Xo())}const uW=function(){return["/profile"]};let dW=(()=>{class t{constructor(){this.next=new kc}ngOnInit(){}continue(){this.next.emit()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-flow-intro"]],inputs:{flow:"flow"},outputs:{next:"next"},decls:18,vars:6,consts:[[4,"ngIf"],["id","instructions"],[1,"button-row"],["mat-flat-button","","type","button","color","primary","id","next-button",3,"click"],["mat-flat-button","","type","button","id","intro-cancel-button",3,"routerLink"]],template:function(t,e){1&t&&(jo(0,oW,5,0,"div",0),jo(1,aW,5,0,"div",0),jo(2,lW,5,0,"div",0),jo(3,cW,5,0,"div",0),Qo(4,"div",1),Qo(5,"h2"),Na(6,"Instructions"),Xo(),Qo(7,"p"),Na(8,"Please complete your profile by clicking the next button below. If you need to change your information at any time, please re-complete the questionnaires (listed on the left) that you'd like to change and your information will be updated. "),Xo(),Qo(9,"p"),Na(10,' Some of the questionnaires to the left might have "lock" icons because these questionnaires are considered to be asking for sensitive information. To protect your privacy, information you provide on these pages will be immediately saved on a secure server which will only be accessed as needed for study purposes by approved STAR study team members.'),Xo(),Qo(11,"p"),Na(12,'Click the "Next" button below to get started.'),Xo(),Qo(13,"div",2),Qo(14,"button",3),ra("click",function(){return e.continue()}),Na(15,"Next"),Xo(),Qo(16,"button",4),Na(17,"Cancel"),Xo(),Xo(),Xo()),2&t&&(qo("ngIf","self_intake"===e.flow.name),dr(1),qo("ngIf","dependent_intake"===e.flow.name),dr(1),qo("ngIf","guardian_intake"===e.flow.name),dr(1),qo("ngIf","professional_intake"===e.flow.name),dr(13),qo("routerLink",hc(5,uW)))},directives:[Jd,TA,cG],styles:["div[_ngcontent-%COMP%]{padding:20px}.button-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:8px;margin-top:35px}"]}),t})();function hW(t,e){1&t&&Ko(0,"app-loading",5)}function pW(t,e){if(1&t&&(Zo(0),Na(1),Jo()),2&t){const t=ua(3);dr(1),Ba("",t.participant.name,"'s Profile")}}function mW(t,e){if(1&t&&(Zo(0),Na(1),Jo()),2&t){const t=ua(3);dr(1),Ba("",t.user.isSelf(t.participant)?"Your":"Your dependent's"," Profile")}}function fW(t,e){if(1&t){const t=ea();Qo(0,"div"),Qo(1,"div",6),Qo(2,"button",7),ra("click",function(){return Be(t),ua(2).toggleSidenav()}),Qo(3,"mat-icon"),Na(4,"toc"),Xo(),Xo(),Qo(5,"h1",8),jo(6,pW,2,1,"ng-container",3),jo(7,mW,2,1,"ng-container",3),Xo(),Ko(8,"span",9),Qo(9,"div",10),Qo(10,"span",11),Na(11),Xo(),Na(12," of "),Qo(13,"span",12),Na(14),Xo(),Na(15," steps complete "),Xo(),Xo(),Xo()}if(2&t){const t=ua(2);dr(6),qo("ngIf",t.participant&&t.participant.name),dr(1),qo("ngIf",!(t.participant&&t.participant.name)),dr(4),Va(t.numCompletedSteps()),dr(3),Va(t.numTotalSteps())}}function gW(t,e){1&t&&Ko(0,"mat-progress-bar",13),2&t&&qo("value",ua(2).flow.percentComplete())}function _W(t,e){1&t&&Ko(0,"app-flow-complete",20),2&t&&qo("flow",ua(3).flow)}function bW(t,e){if(1&t){const t=ea();Qo(0,"app-flow-intro",21),ra("next",function(){return Be(t),ua(3).goToNextAvailableStep()}),Xo()}2&t&&qo("flow",ua(3).flow)}function yW(t,e){1&t&&(Qo(0,"p",27),Na(1,"In order to protect certain sensitive information about you, this information is no longer accessible via this web site. If you feel that this information should be updated, you may choose to re-complete this form and re-submit it."),Xo())}function vW(t,e){if(1&t){const t=ea();Qo(0,"button",28),ra("click",function(){return Be(t),ua(5).hideForm=!1}),Na(1),Xo()}if(2&t){const t=ua(5);dr(1),Ba("Show ",t.currentStep().label," Form ")}}function wW(t,e){if(1&t&&(Qo(0,"div"),jo(1,yW,2,0,"p",25),jo(2,vW,2,1,"button",26),Xo()),2&t){const t=ua(4);dr(1),qo("ngIf",t.hideForm),dr(1),qo("ngIf",t.hideForm)}}function CW(t,e){1&t&&(Qo(0,"p",27),Na(1,"You are about to re-submit this form. While this will not replace previous records, we will defer to the information you submit now when considering your eligibility to future studies and notifications."),Xo())}function xW(t,e){1&t&&(Qo(0,"p",27),Na(1,"This information is considered sensitive and to protect your privacy is saved on a secure server which will only be accessed as needed by approved STAR study team members for study purposes. You can provide this information again in full at any time if you need to edit what is currently stored on the secure server, which is not accessible by this site."),Xo())}const SW=function(t){return{disabled:t}};function kW(t,e){if(1&t){const t=ea();Qo(0,"button",33),ra("click",function(){Be(t);const e=ua(5);return e.form.valid?e.submit():e.highlightRequiredFields()}),Na(1,"Save & Next "),Xo()}if(2&t){const t=ua(5);qo("ngClass",pc(1,SW,!t.form.valid))}}const AW=function(){return["/profile"]};function OW(t,e){1&t&&(Qo(0,"button",34),Na(1,"Cancel "),Xo()),2&t&&qo("routerLink",hc(1,AW))}function EW(t,e){if(1&t&&(Qo(0,"div"),Ko(1,"formly-form",29),jo(2,CW,2,0,"p",25),jo(3,xW,2,0,"p",25),Qo(4,"div",30),jo(5,kW,2,3,"button",31),jo(6,OW,2,2,"button",32),Xo(),Xo()),2&t){const t=ua(4);dr(1),qo("form",t.form)("model",t.model)("fields",t.fields)("options",t.options),dr(1),qo("ngIf",t.showResubmitMessage),dr(1),qo("ngIf","sensitive"===t.currentStep().type),dr(2),qo("ngIf",t.form),dr(1),qo("ngIf",t.form)}}function TW(t,e){if(1&t){const t=ea();Qo(0,"form",22),Qo(1,"div",23),Qo(2,"h1"),Na(3),Xo(),Ko(4,"span",9),Qo(5,"button",24),ra("click",function(){return Be(t),ua(3).highlightRequiredFields()}),Na(6,"*Required"),Xo(),Xo(),Qo(7,"p"),Na(8),Xo(),jo(9,wW,3,2,"div",3),jo(10,EW,7,8,"div",3),Xo()}if(2&t){const t=ua(3);qo("formGroup",t.form),dr(3),Va(t.currentStep().label),dr(5),Va(t.currentStep().description),dr(1),qo("ngIf",t.showResubmitMessage),dr(1),qo("ngIf",!t.hideForm)}}function PW(t,e){if(1&t){const t=ea();Qo(0,"div"),Qo(1,"mat-drawer-container"),Qo(2,"mat-drawer",14,15),ra("openedChange",function(e){return Be(t),ua(2).sidebarOpen=e}),Qo(4,"app-questionnaire-steps-list",16),ra("stepSelected",function(e){return Be(t),ua(2).goToStep(e)}),Xo(),Xo(),Qo(5,"mat-drawer-content"),jo(6,_W,1,1,"app-flow-complete",17),jo(7,bW,1,1,"app-flow-intro",18),jo(8,TW,11,5,"form",19),Xo(),Xo(),Xo()}if(2&t){const t=ua(2);dr(2),qo("mode",t.mobileQuery.matches?"over":"side")("opened",t.sidebarOpen),dr(2),qo("flow",t.flow)("stepIndex",t.activeStep),dr(2),qo("ngIf",t.state===t.flowState.COMPLETE),dr(1),qo("ngIf",t.state===t.flowState.INTRO),dr(1),qo("ngIf",t.state===t.flowState.SHOW_FORM)}}function DW(t,e){if(1&t&&(Qo(0,"div",1),Qo(1,"div"),jo(2,hW,1,0,"app-loading",2),jo(3,fW,16,4,"div",3),jo(4,gW,1,1,"mat-progress-bar",4),jo(5,PW,9,7,"div",3),Xo(),Xo()),2&t){const t=ua();dr(2),qo("ngIf",t.state===t.flowState.LOADING),dr(1),qo("ngIf",t.state!==t.flowState.LOADING),dr(1),qo("ngIf",t.flow.percentComplete()<100),dr(1),qo("ngIf",t.state!==t.flowState.LOADING)}}var MW=function(t){return t.INTRO="intro",t.LOADING="loading",t.COMPLETE="complete",t.SHOW_FORM="form",t}({});let IW=(()=>{class t{constructor(t,e,i,n,s,r,o,a){this.api=e,this.authenticationService=i,this.changeDetectorRef=n,this.deviceDetectorService=s,this.googleAnalyticsService=r,this.route=o,this.router=a,this.activeStep=0,this.flowState=MW,this.state=MW.LOADING,this.showResubmitMessage=!1,this.hideForm=!1,this.sidebarOpen=!0,this.model={},this.fields=[],this.mobileQuery=t.matchMedia("(max-width: 959px)"),this.mobileQuery.addListener(this._mobileQueryListener),this._mobileQueryListener=()=>this._updateSidenavState(),window.addEventListener("resize",this._mobileQueryListener),this.authenticationService.currentUser.subscribe(t=>{this.user=t,this.route.params.subscribe(t=>{this.participant=this.user.getParticipantById(parseInt(t.participantId,10)),this.loadFlow(t.flowName)})})}set sidenav(t){this.sidenavElement=t,this._updateSidenavState()}ngOnInit(){}ngOnDestroy(){this.mobileQuery.removeListener(this._mobileQueryListener),window.removeEventListener("resize",this._mobileQueryListener)}loadFlow(t){this.api.getFlow(t,this.participant.id).subscribe(t=>{this.flow=new UG(t),0===this.flow.percentComplete()?this.state=this.flowState.INTRO:this.goToNextAvailableStep(),oB(this.deviceDetectorService)})}updateParticipant(t){this.api.getParticipant(t).subscribe(t=>{this.participant=t})}goToNextAvailableStep(){if(this.updateParticipant(this.participant.id),this.flow.percentComplete()<100){let t=this.activeStep;if(this.flow.steps[this.activeStep].status===jj.COMPLETE)for(t++;t!==this.activeStep;){if(this.flow.steps[t]&&this.flow.steps[t].status!==jj.COMPLETE){this.activeStep=t;break}t>=this.flow.steps.length-1?t=0:t++}this.loadActiveStep()}else this.state=MW.COMPLETE,this.googleAnalyticsService.flowCompleteEvent(this.flow.name),oB(this.deviceDetectorService)}goToStep(t){this.updateParticipant(this.participant.id);for(let e=0;e{this.showResubmitMessage=!1,this.hideForm=!1,"sensitive"===t.type&&t.questionnaire_id>0?(this.showResubmitMessage=!0,this.hideForm=!0,this.renderForm(t,e)):t.questionnaire_id>0?this.api.getQuestionnaire(t.name,t.questionnaire_id).subscribe(i=>{this.model=i,this.renderForm(t,e)}):this.renderForm(t,e),oB(this.deviceDetectorService)}),oB(this.deviceDetectorService)}highlightRequiredFields(){for(const t of Object.keys(this.form.controls)){const e=this.form.controls[t];e.updateValueAndValidity(),e.markAsDirty()}aB(this.deviceDetectorService)}submit(){this.model.participant_id=this.participant.id,this.model.time_on_task_ms=performance.now()-this.startTime,this.currentStep().questionnaire_id>0&&"sensitive"!==this.currentStep().type?this.api.updateQuestionnaire(this.currentStep().name,this.currentStep().questionnaire_id,this.model).subscribe(()=>{this.googleAnalyticsService.stepCompleteEvent(this.currentStep().name),this.loadFlow(this.flow.name),oB(this.deviceDetectorService)}):this.api.submitQuestionnaire(this.flow.name,this.currentStep().name,this.model).subscribe(()=>{this.googleAnalyticsService.stepCompleteEvent(this.currentStep().name),this.loadFlow(this.flow.name),oB(this.deviceDetectorService)})}numCompletedSteps(){return this.flow.steps.filter(t=>t.status===jj.COMPLETE).length}numTotalSteps(){return this.flow.steps.length}toggleSidenav(){this.sidebarOpen=!this.sidebarOpen,this.sidenavElement.toggle(this.sidebarOpen,"mouse").then(()=>{oB(this.deviceDetectorService)})}renderForm(t,e){this.startTime=performance.now(),this.fields=this.infoToForm(e),this.form=new cy({}),this.options={formState:{mainModel:this.model,preferredName:this.participant.name}},this.state=this.flowState.SHOW_FORM,oB(this.deviceDetectorService)}infoToForm(t){const e=[];for(const i of t.fields)i.fieldArray&&(i.fieldArray.model=this.model[i.name]),e.push(Uj(i));return e.sort((t,e)=>t.displayOrder-e.displayOrder),e}_updateSidenavState(){this.sidenavElement&&(this.mobileQuery.matches?(this.sidenavElement.close(),this.sidebarOpen=!1):(this.sidenavElement.open(),this.sidenavElement.disableClose=!0,this.sidebarOpen=!0)),this.changeDetectorRef.detectChanges()}}return t.\u0275fac=function(e){return new(e||t)($o(_D),$o(WG),$o(BG),$o(Vl),$o(xV),$o(IG),$o(UH),$o(lG))},t.\u0275cmp=Xt({type:t,selectors:[["app-flow"]],viewQuery:function(t,e){if(1&t&&Vc(FM,1),2&t){let t;Nc(t=Hc())&&(e.sidenav=t.first)}},decls:1,vars:1,consts:[["class","profile mat-typography",4,"ngIf"],[1,"profile","mat-typography"],["message","Loading...",4,"ngIf"],[4,"ngIf"],["mode","determinate",3,"value",4,"ngIf"],["message","Loading..."],["fxLayout","row","fxLayoutGap","10px","fxLayoutAlign","start center"],["mat-icon-button","","fxHide.gt-sm","",3,"click"],[1,"margin-bottom-none"],["fxFlex",""],["fxFlexAlign","end center",1,"mat-small"],["id","num_completed_steps"],["id","num_total_steps"],["mode","determinate",3,"value"],[3,"mode","opened","openedChange"],["sidenav",""],[3,"flow","stepIndex","stepSelected"],[3,"flow",4,"ngIf"],[3,"flow","next",4,"ngIf"],["class","pad-2",3,"formGroup",4,"ngIf"],[3,"flow"],[3,"flow","next"],[1,"pad-2",3,"formGroup"],["fxLayout","row","fxLayout.lt-md","column"],["mat-button","","id","highlight-required-fields","color","warn",3,"click"],["class","alert alert-warn",4,"ngIf"],["mat-flat-button","","type","button","color","primary",3,"click",4,"ngIf"],[1,"alert","alert-warn"],["mat-flat-button","","type","button","color","primary",3,"click"],[3,"form","model","fields","options"],[1,"button-row"],["mat-flat-button","","type","button","color","primary","id","save-next-button",3,"ngClass","click",4,"ngIf"],["mat-flat-button","","type","button","id","flow-cancel-button",3,"routerLink",4,"ngIf"],["mat-flat-button","","type","button","color","primary","id","save-next-button",3,"ngClass","click"],["mat-flat-button","","type","button","id","flow-cancel-button",3,"routerLink"]],template:function(t,e){1&t&&jo(0,DW,6,4,"div",0),2&t&&qo("ngIf",e.user&&e.flow)},directives:[Jd,Qj,o_,p_,Z_,TA,Ng,JT,k_,$_,YD,NM,FM,rW,LM,Gj,dW,_y,jb,ky,NF,Qd,Pg,cG],styles:[".profile[_ngcontent-%COMP%]{margin:2%}.button-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:8px;margin-top:35px}mat-drawer-container[_ngcontent-%COMP%]{min-height:100vh}mat-drawer-container[_ngcontent-%COMP%], mat-drawer-content[_ngcontent-%COMP%]{background-color:#fff}h1[_ngcontent-%COMP%]{position:relative}h1[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{position:absolute;right:0;color:#232d4b}@media (max-width:767px){h1[_ngcontent-%COMP%]{font-size:1.25em}}@media (min-width:768px){h1[_ngcontent-%COMP%]{font-size:2em}}@media (min-width:960px){h1[_ngcontent-%COMP%]{font-size:2.5em}} mat-progress-bar{height:16px;margin-bottom:1em} mat-progress-bar .mat-progress-bar-buffer{background-color:#dadada} mat-progress-bar .mat-progress-bar-background, mat-progress-bar .mat-progress-bar-background pattern{fill:#dadada}#highlight-required-fields[_ngcontent-%COMP%]{text-align:right}"]}),t})();const RW=function(){return["/home"]};let LW=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-logo"]],inputs:{variant:"variant"},decls:5,vars:5,consts:[["id","logo"],[3,"routerLink"],[1,"variant"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"a",1),Qo(2,"span",2),Na(3,"Autism"),Xo(),Na(4,"DRIVE "),Xo(),Xo()),2&t&&(ka(e.variant),dr(1),qo("routerLink",hc(4,RW)))},directives:[uG],styles:["#logo[_ngcontent-%COMP%]{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}#logo.dark-lg[_ngcontent-%COMP%] .variant[_ngcontent-%COMP%], #logo.dark[_ngcontent-%COMP%] .variant[_ngcontent-%COMP%]{color:#232d4b;font-weight:700}#logo.light-lg[_ngcontent-%COMP%] .variant[_ngcontent-%COMP%], #logo.light[_ngcontent-%COMP%] .variant[_ngcontent-%COMP%]{color:#fff;font-weight:700}#logo[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#e57200}#logo.dark-lg[_ngcontent-%COMP%] a[_ngcontent-%COMP%], #logo.light-lg[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font:800 2.25rem/1 franklin-gothic-urw,serif;letter-spacing:normal;font-family:franklin-gothic-urw,serif;text-transform:uppercase;margin-top:4rem;margin-bottom:4rem;font-weight:lighter;font-size:2.5rem}@media (min-width:959px){#logo.dark-lg[_ngcontent-%COMP%] a[_ngcontent-%COMP%], #logo.light-lg[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:3rem}}@media (min-width:960px){#logo.dark-lg[_ngcontent-%COMP%] a[_ngcontent-%COMP%], #logo.light-lg[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:3.5rem}}@media (min-width:1280px){#logo.dark-lg[_ngcontent-%COMP%] a[_ngcontent-%COMP%], #logo.light-lg[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:4rem}}#logo.dark-lg[_ngcontent-%COMP%] img[_ngcontent-%COMP%], #logo.light-lg[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{min-width:120px;max-width:600px;min-height:120px;max-height:240px;width:100%;margin-top:1em;margin-bottom:1em;margin-right:1em}#logo.dark[_ngcontent-%COMP%] a[_ngcontent-%COMP%], #logo.light[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font:800 1.75rem/1 franklin-gothic-urw,serif;letter-spacing:normal;font-family:franklin-gothic-urw,serif;text-transform:uppercase;font-weight:lighter;font-size:2rem}#logo.dark[_ngcontent-%COMP%] img[_ngcontent-%COMP%], #logo.light[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{min-width:40px;max-width:200px;min-height:40px;max-height:80px;width:auto;margin-top:1em;margin-bottom:1em;margin-right:1em}"]}),t})();function FW(t,e){if(1&t&&(Qo(0,"div",13),Na(1),Xo()),2&t){const t=ua(2);dr(1),Va(t.errorMessage)}}function NW(t,e){if(1&t){const t=ea();Qo(0,"footer",8),jo(1,FW,2,1,"div",9),Qo(2,"button",10),Na(3,"Submit"),Xo(),Qo(4,"button",11),ra("click",function(e){return Be(t),ua().goHome(e)}),Na(5,"Cancel"),Xo(),Qo(6,"button",12),ra("click",function(e){return Be(t),ua().goRegister(e)}),Na(7,"Register for an account"),Xo(),Xo()}if(2&t){const t=ua();dr(1),qo("ngIf",t.errorMessage)}}function VW(t,e){1&t&&(Qo(0,"footer"),Ko(1,"app-loading"),Xo())}function BW(t,e){if(1&t){const t=ea();Qo(0,"footer",14),Qo(1,"p"),Na(2,"You should receive a message in a few minutes with a link that will let you reset your password."),Xo(),Qo(3,"button",15),ra("click",function(e){return Be(t),ua().goHome(e)}),Na(4,"Continue"),Xo(),Xo()}}let HW=(()=>{class t{constructor(t,e,i){this.api=t,this.changeDetectorRef=e,this.router=i,this.formStatus="form",this.form=new cy({}),this.model={},this.fields=[{key:"email",type:"input",templateOptions:{type:"email",label:"Email Address:",placeholder:"Enter email",required:!0}}]}ngOnInit(){}submit(){localStorage.removeItem("token_url"),this.form.valid&&(this.formStatus="submitting",this.api.sendResetPasswordEmail(this.model.email).subscribe(t=>{t&&localStorage.setItem("token_url",t),this.formStatus="complete"},t=>{this.errorMessage=t||"We encountered an error resetting your password. Please contact support.",this.formStatus="form",this.changeDetectorRef.detectChanges()}))}goHome(t){t.preventDefault(),this.router.navigate(["home"])}goRegister(t){t.preventDefault(),this.router.navigate(["register"])}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(Vl),$o(lG))},t.\u0275cmp=Xt({type:t,selectors:[["app-forgot-password"]],decls:12,vars:7,consts:[["fxLayout","row","fxLayoutWrap","","fxLayoutGap","10px","fxLayoutAlign","center center",1,"container","mat-typography"],["fxFlex","50%","fxFlex.xs","90%",1,"form"],["variant","dark-lg"],[3,"formGroup","ngSubmit"],[3,"form","fields","model"],["fxLayout","column","fxLayoutGap","2%","fxLayoutAlign","center",4,"ngIf"],[4,"ngIf"],["id","confirmation_message",4,"ngIf"],["fxLayout","column","fxLayoutGap","2%","fxLayoutAlign","center"],["id","error_message","class","display mat-error",4,"ngIf"],["mat-flat-button","","type","submit","color","primary","id","submit"],["mat-flat-button","","color","accent","id","cancel",3,"click"],["mat-button","","id","register",3,"click"],["id","error_message",1,"display","mat-error"],["id","confirmation_message"],["mat-flat-button","","color","accent","id","continue",3,"click"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"div",1),Ko(2,"app-logo",2),Qo(3,"h1"),Na(4,"Forgot your password?"),Xo(),Qo(5,"p"),Na(6,"To reset your password, please enter the email address associated with your Autism DRIVE account."),Xo(),Qo(7,"form",3),ra("ngSubmit",function(){return e.submit()}),Qo(8,"formly-form",4),jo(9,NW,8,1,"footer",5),jo(10,VW,2,0,"footer",6),jo(11,BW,5,0,"footer",7),Xo(),Xo(),Xo(),Xo()),2&t&&(dr(7),qo("formGroup",e.form),dr(1),qo("form",e.form)("fields",e.fields)("model",e.model),dr(1),qo("ngIf","form"===e.formStatus),dr(1),qo("ngIf","submitting"===e.formStatus),dr(1),qo("ngIf","complete"===e.formStatus))},directives:[o_,p_,Z_,k_,LW,_y,jb,ky,NF,Jd,TA,Qj],styles:[".container[_ngcontent-%COMP%]{min-height:100vh}.form[_ngcontent-%COMP%]{border:2px solid #4e4e4e;padding:2%;text-align:center}"]}),t})();function zW(t,e){if(1&t&&Ko(0,"app-type-icon",6),2&t){const t=ua();qo("iconType",t.iconType)("size",t.iconSize)}}function GW(t,e){if(1&t&&(Qo(0,"div"),Na(1),Xo()),2&t){const t=ua();Ga("border-box-tile-label border-box-tile-label-",t.linkSize,"x"),dr(1),Va(t.title)}}function UW(t,e){if(1&t&&(Qo(0,"p",7),Na(1),Xo()),2&t){const t=ua();dr(1),Va(t.subtitle)}}const jW=function(t,e,i){return{"border-box-tile-inner":!0,selected:t,deselected:e,hover:i}};let WW=(()=>{class t{constructor(){this.iconSize=1,this.linkSize=1,this.hover=!1}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-border-box-tile"]],inputs:{iconType:"iconType",isSelected:"isSelected",url:"url",iconSize:"iconSize",title:"title",subtitle:"subtitle",linkLabel:"linkLabel",linkSize:"linkSize"},decls:6,vars:17,consts:[[3,"mouseover","mouseout"],[3,"ngClass"],[3,"iconType","size",4,"ngIf"],[3,"class",4,"ngIf"],["class","intro",4,"ngIf"],[3,"url","label","size","hover","selected"],[3,"iconType","size"],[1,"intro"]],template:function(t,e){var i,n;1&t&&(Qo(0,"div",0),ra("mouseover",function(){return e.hover=!0})("mouseout",function(){return e.hover=!1}),Qo(1,"div",1),jo(2,zW,1,2,"app-type-icon",2),jo(3,GW,2,4,"div",3),jo(4,UW,2,1,"p",4),Ko(5,"app-details-link",5),Xo(),Xo()),2&t&&("border-box-tile border-box-tile-",i=e.linkSize,"x ",n=e.iconType,"",Ea(hn,Aa,Uo(Ne(),"border-box-tile border-box-tile-",i,"x ",n,""),!0),dr(1),qo("ngClass",fc(13,jW,!0===e.isSelected,!1===e.isSelected,e.hover)),dr(1),qo("ngIf",e.iconType),dr(1),qo("ngIf",e.title),dr(1),qo("ngIf",e.subtitle),dr(1),qo("url",e.url)("label",e.linkLabel)("size",e.linkSize)("hover",e.hover)("selected",e.isSelected))},directives:[Qd,Pg,Jd,$U,JU],styles:['.border-box-tile[_ngcontent-%COMP%]{display:grid;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;position:relative;padding:0;margin:0;background-color:hsla(0,0%,100%,.8);text-align:center;color:#232d4b}.border-box-tile.border-box-tile-1x[_ngcontent-%COMP%]{height:226px}.border-box-tile.border-box-tile-2x[_ngcontent-%COMP%]{height:288px}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner.hover[_ngcontent-%COMP%]:before{opacity:0}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner.hover[_ngcontent-%COMP%]:after{opacity:1}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner[_ngcontent-%COMP%]:after, .border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner[_ngcontent-%COMP%]:before{content:"";pointer-events:none;transition:opacity .5s;position:absolute;width:100%;height:100%;top:0;left:0;right:0;bottom:0;margin:0}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner[_ngcontent-%COMP%]:before{border:11px solid #dadada;-o-border-image:linear-gradient(180deg,#dadada 0,#f1f1ef);border-image:linear-gradient(180deg,#dadada 0,#f1f1ef);border-image-slice:1;opacity:1}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner[_ngcontent-%COMP%]:after{border:11px solid #002f6c;-o-border-image:linear-gradient(#232d4b,#e57200);border-image:linear-gradient(#232d4b,#e57200);border-image-slice:1;opacity:0}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner.deselected[_ngcontent-%COMP%]:after{opacity:0}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner.deselected[_ngcontent-%COMP%]:before, .border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner.selected[_ngcontent-%COMP%]:after{opacity:1}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner.selected[_ngcontent-%COMP%]:before{opacity:0}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner[_ngcontent-%COMP%] p.intro[_ngcontent-%COMP%]{padding:0 20px;color:#4e4e4e;font-weight:700}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner[_ngcontent-%COMP%] .border-box-tile-label.border-box-tile-label-1x[_ngcontent-%COMP%]{font:700 1.5rem/1 franklin-gothic-urw,sans-serif;letter-spacing:normal;margin-top:1em;margin-bottom:1em;font-style:italic;text-transform:uppercase;letter-spacing:1.8px}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner[_ngcontent-%COMP%] .border-box-tile-label.border-box-tile-label-2x[_ngcontent-%COMP%]{font:800 1.75rem/1 franklin-gothic-urw,serif;letter-spacing:normal;margin-top:1em;margin-bottom:1em;font-style:italic;text-transform:uppercase}@media (max-width:1023px){.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner[_ngcontent-%COMP%]{padding:1em}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner[_ngcontent-%COMP%] .border-box-tile-label.border-box-tile-label-1x[_ngcontent-%COMP%]{font-size:1em}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner[_ngcontent-%COMP%] .border-box-tile-label.border-box-tile-label-2x[_ngcontent-%COMP%]{font-size:2em}}@media (min-width:1024px){.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner[_ngcontent-%COMP%]{padding:2.4375rem}}']}),t})();const $W=function(t,e){return{"news-item":!0,even:t,odd:e}},qW=function(t){return[t]};let YW=(()=>{class t{constructor(){}ngOnInit(){this.item.label||(this.item.label="Details")}isEven(t){return t%2==0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-news-item"]],inputs:{item:"item",index:"index"},decls:12,vars:16,consts:[[3,"ngClass"],[1,"image"],[3,"routerLink"],[3,"src"],[1,"content"],[1,"item-type"],[1,"item-title",3,"routerLink"],[3,"url","label"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"div",1),Qo(2,"a",2),Ko(3,"img",3),Xo(),Xo(),Qo(4,"div",4),Qo(5,"span",5),Na(6),Xo(),Qo(7,"a",6),Na(8),Xo(),Qo(9,"p"),Na(10),Xo(),Ko(11,"app-details-link",7),Xo(),Xo()),2&t&&(qo("ngClass",mc(9,$W,e.isEven(e.index),!e.isEven(e.index))),dr(2),qo("routerLink",pc(12,qW,e.item.url)),dr(1),ma("src",e.item.img,ms),dr(3),Va(e.item.type.label),dr(1),qo("routerLink",pc(14,qW,e.item.url)),dr(1),Va(e.item.title),dr(2),Va(e.item.description),dr(1),qo("url",e.item.url)("label",e.item.label))},directives:[Qd,Pg,uG,$U],styles:['.news-item[_ngcontent-%COMP%]{display:grid;position:relative}@media screen and (max-width:767px){.news-item[_ngcontent-%COMP%]{grid-template-columns:1fr}}@media screen and (min-width:768px){.news-item[_ngcontent-%COMP%]{grid-template-areas:"leftCol rightCol";grid-template-columns:1fr 1fr}}.news-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{display:grid;-ms-flex-line-pack:center;align-content:center}@media screen and (max-width:767px){.news-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{text-align:center;padding:2em}}@media screen and (min-width:768px){.news-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{padding:4em}}.news-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-image:url(/assets/theme/starburst.svg);background-position:top;background-repeat:no-repeat;background-size:contain;opacity:.1;z-index:-1}.news-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .item-type[_ngcontent-%COMP%]{text-transform:uppercase}.news-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .item-title[_ngcontent-%COMP%]{font:500 1.625rem/1 franklin-gothic-urw,serif;letter-spacing:normal;font-style:italic;color:#232d4b;cursor:pointer;margin-top:.75rem}.news-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .item-title[_ngcontent-%COMP%]:after{content:"";background-color:#e57200;width:6.25rem;height:.125rem;display:block}@media screen and (max-width:767px){.news-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .item-title[_ngcontent-%COMP%]:after{margin-left:auto;margin-right:auto}}@media screen and (min-width:768px){.news-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .item-title[_ngcontent-%COMP%]:after{margin:.45em 0}}.news-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-style:italic;font-size:1.125rem;line-height:1.666}.news-item[_ngcontent-%COMP%] .image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}@media screen and (min-width:768px){.news-item.even[_ngcontent-%COMP%] .image[_ngcontent-%COMP%]{grid-area:leftCol}}@media screen and (min-width:768px){.news-item.even[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{grid-area:rightCol}}.news-item.even[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]:before{left:-50%}@media screen and (min-width:768px){.news-item.odd[_ngcontent-%COMP%] .image[_ngcontent-%COMP%]{grid-area:rightCol}}@media screen and (min-width:768px){.news-item.odd[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{grid-area:leftCol}}.news-item.odd[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]:before{right:-50%}']}),t})();function QW(t,e){if(1&t&&Ko(0,"app-news-item",20),2&t){const t=e.index;qo("item",e.$implicit)("index",t)}}let XW=(()=>{class t{constructor(t,e,i,n){this.api=t,this.router=e,this.configService=i,this.meta=n,this.api.getStudiesByStatus("currently_enrolling").subscribe(t=>{this.currentStudies=t,this.newsItems=this._studiesToNewsItems(t)}),this.configService.mirroring&&e.navigate(["mirrored"]),this.meta.updateTag({property:"og:image",content:location.origin+"/assets/home/hero-family.jpg"},"property='og:image'"),this.meta.updateTag({property:"og:image:secure_url",content:location.origin+"/assets/home/hero-family.jpg"},"property='og:image:secure_url'"),this.meta.updateTag({name:"twitter:image",content:location.origin+"/assets/home/hero-family.jpg"},"name='twitter:image'")}ngOnInit(){}_studiesToNewsItems(t){if(this.currentStudies&&this.currentStudies.length>0)return t.map((t,e)=>({title:t.short_title||t.title,description:t.short_description||t.description,url:`/study/${t.id}`,type:OU.STUDY,img:t.image_url,imgClass:"center-center"}))}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(lG),$o(MG),$o(ip))},t.\u0275cmp=Xt({type:t,selectors:[["app-home"]],decls:30,vars:2,consts:[["id","hero",1,"gradient-overlay","container","with-escaping-tiles"],[1,"hero-content"],[1,"h4"],["fxLayout.lt-sm","column","fxLayout.gt-xs","row wrap","fxLayoutGap","40px","fxLayoutAlign","center auto",1,"row","escaping-tiles-2x"],["fxFlex.gt-sm","calc(33% - 160px)","fxFlex.sm","calc(50% - 120px)","url","/register","title","Join Autism DRIVE","subtitle","Connect to upcoming studies at UVA and resources across the state relevant to you.","linkSize","2","routerLink","/register"],["fxFlex.gt-sm","calc(33% - 160px)","fxFlex.sm","calc(50% - 120px)","url","/search","title","Find Resources","subtitle","Access autism-focused resources available in Virginia and online.","linkSize","2","routerLink","/search"],[1,"container","mat-typography"],["fxLayout","column","fxLayoutAlign","center center",1,"row"],[1,"intro"],[1,"jumbo-section"],[1,"jumbo-section-header"],["role","presentation",1,"watermark"],[1,"line-1"],["fxShow","","fxHide.gt-sm",""],[1,"line-2"],[1,"container"],[1,"row"],[3,"item","index",4,"ngFor","ngForOf"],[1,"more-studies"],["label","View more studies","size","2",3,"url"],[3,"item","index"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"div",1),Qo(2,"h1"),Na(3,"Transform Outcomes. Together."),Xo(),Ko(4,"hr"),Qo(5,"p",2),Na(6," We're bringing together researchers, professionals, and community organizations to improve the lives of individuals with autism and their families. Autism DRIVE gives you access to ground-breaking autism research and innovative models for care, support, and education. "),Xo(),Xo(),Qo(7,"div",3),Ko(8,"app-border-box-tile",4),Ko(9,"app-border-box-tile",5),Xo(),Xo(),Qo(10,"div",6),Qo(11,"div",7),Qo(12,"p",8),Na(13,"The Autism DRIVE enables secure storage and sharing of autism data, helping to monitor progress and outcomes. The system also provides access to resources for families and professionals -- infusing cutting-edge knowledge into community-based practices."),Xo(),Xo(),Xo(),Qo(14,"div",9),Qo(15,"header",10),Qo(16,"span",11),Na(17,"Autism"),Xo(),Qo(18,"h2"),Qo(19,"span",12),Na(20," Transformative "),Ko(21,"br",13),Na(22," Autism Research "),Xo(),Qo(23,"span",14),Na(24,"Current Studies"),Xo(),Xo(),Xo(),Xo(),Qo(25,"div",15),Qo(26,"div",16),jo(27,QW,1,2,"app-news-item",17),Qo(28,"div",18),Ko(29,"app-details-link",19),Xo(),Xo(),Xo()),2&t&&(dr(27),qo("ngForOf",e.newsItems),dr(2),qo("url","/studies"))},directives:[o_,p_,Z_,WW,k_,cG,Ng,Kd,$U,YW],styles:["#hero[_ngcontent-%COMP%]{background-image:url(/assets/home/hero-family.jpg);background-position:50% 33%;padding-top:80px;padding-bottom:80px}#hero[_ngcontent-%COMP%] .hero-content[_ngcontent-%COMP%]{text-align:center}#hero[_ngcontent-%COMP%] .hero-content[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-family:bodoni-urw,serif;text-transform:uppercase}#hero[_ngcontent-%COMP%] .hero-content[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border-top-width:4px;margin:1em auto}.more-studies[_ngcontent-%COMP%]{text-align:center;padding-top:2em}"]}),t})();function KW(t,e){1&t&&Ko(0,"app-loading",13)}const ZW=function(){return["/home"]},JW=function(){return["/register"]},t$=function(){return["/forgot-password"]};let e$=(()=>{class t{constructor(t,e,i,n,s){this.authenticationService=t,this.deviceDetectorService=e,this.googleAnalytics=i,this.route=n,this.router=s,this.loading=!1,this.errorEmitter=new kc,this.form=new cy({}),this.model={},this.fields=[{key:"email",type:"input",templateOptions:{type:"email",label:"Email Address:",placeholder:"Enter email",required:!0}},{key:"password",type:"input",templateOptions:{label:"Password:",type:"password",required:!0}}],this.route.queryParams.subscribe(t=>{t.hasOwnProperty("returnUrl")&&(this.returnUrl=t.returnUrl,this.authenticationService.currentUser.subscribe(t=>this._goToReturnUrl(t)))}),this.route.params.subscribe(t=>{t.hasOwnProperty("email_token")&&(this.emailToken=t.email_token)}),this.authenticationService.currentUser.subscribe(t=>{t&&this._goToReturnUrl(t)})}ngOnInit(){}submit(t){this.loading=!0,this.form.valid?this.authenticationService.login(t.email,t.password,this.emailToken).subscribe(t=>{this._goToReturnUrl(t),this.googleAnalytics.accountEvent("login")},t=>{this.errorEmitter.emit(t||"An unexpected error occurred. Please contact support"),this.loading=!1}):(this.loading=!1,this.errorEmitter.emit("Please enter a valid email address and password."))}_goToReturnUrl(t){t&&this.router.navigateByUrl(this.returnUrl||"/profile").then(t=>oB(this.deviceDetectorService))}}return t.\u0275fac=function(e){return new(e||t)($o(BG),$o(xV),$o(IG),$o(UH),$o(lG))},t.\u0275cmp=Xt({type:t,selectors:[["app-login"]],decls:21,vars:14,consts:[["message","Loading...",4,"ngIf"],["hidden","loading","fxLayout.gt-md","row","fxLayout.lt-lg","column","fxLayoutWrap","","fxLayoutGap","10px","fxLayoutAlign","center center",1,"container","mat-typography"],["fxFlex.gt-md","50%","fxFlex.lt-lg","80%",1,"form"],["variant","dark-lg"],[3,"formGroup","ngSubmit"],[3,"form","fields","model"],["fxLayout","column","fxLayoutGap","2%","fxLayoutAlign","center"],["id","error_message",1,"display","mat-error"],["mat-flat-button","","type","submit","color","primary","id","submit"],["mat-flat-button","","color","accent","id","cancel",3,"routerLink"],["fxLayout","row","fxLayoutAlign","space-between",1,"footer"],["mat-button","","id","register",3,"routerLink"],["mat-button","","id","forgot_password",3,"routerLink"],["message","Loading..."]],template:function(t,e){1&t&&(jo(0,KW,1,0,"app-loading",0),Qo(1,"div",1),Qo(2,"div",2),Ko(3,"app-logo",3),Qo(4,"h1"),Na(5,"Sign in"),Xo(),Qo(6,"form",4),ra("ngSubmit",function(){return e.submit(e.model)}),Qo(7,"formly-form",5),Qo(8,"div",6),Qo(9,"div",7),Na(10),vc(11,"async"),Xo(),Qo(12,"button",8),Na(13,"Submit"),Xo(),Qo(14,"a",9),Na(15,"Cancel"),Xo(),Xo(),Xo(),Xo(),Qo(16,"div",10),Qo(17,"a",11),Na(18,"Join Autism DRIVE"),Xo(),Qo(19,"a",12),Na(20,"Forgot password?"),Xo(),Xo(),Xo(),Xo()),2&t&&(qo("ngIf",e.loading),dr(6),qo("formGroup",e.form),dr(1),qo("form",e.form)("fields",e.fields)("model",e.model),dr(3),Va(wc(11,9,e.errorEmitter)),dr(4),qo("routerLink",hc(11,ZW)),dr(3),qo("routerLink",hc(12,JW)),dr(2),qo("routerLink",hc(13,t$)))},directives:[Jd,o_,p_,Z_,k_,LW,_y,jb,ky,NF,TA,PA,uG,Qj],pipes:[ph],styles:["@media (max-width:959px){.container[_ngcontent-%COMP%]{min-height:60vh}.container[_ngcontent-%COMP%] .mat-form-field-wrapper{padding-bottom:.25em}}@media (min-width:960px){.container[_ngcontent-%COMP%]{min-height:70vh}}@media (min-width:1280px){.container[_ngcontent-%COMP%]{min-height:80vh}}.form[_ngcontent-%COMP%]{padding:2%}"]}),t})();const i$=Dv({opacity:0}),n$=Dv({opacity:1}),s$=[n$,Ev("0.5s ease-in-out",i$)],r$=[i$,Ev("0.5s ease-in-out",n$)],o$={optional:!0};function a$(){return Ov("fadeTransition",[Rv("* <=> *",[Fv(":enter, :leave",n$,o$),Fv(":enter",i$,o$),Pv([Fv(":leave",Lv(),o$),Tv([Fv(":leave",s$,o$),Fv(":enter",r$,o$)]),Fv(":enter",Lv(),o$)])])])}Dv({opacity:1,transform:"translateX(0%) scale(1)"}),Dv({opacity:0,transform:"translateX(0%) scale(0)"}),Dv({opacity:0,transform:"translateX(0%) scale(10)"}),Dv({opacity:0,transform:"translateX(-100%) scale(1)"}),Dv({opacity:0,transform:"translateX(100%) scale(1)"}),Dv({opacity:0,transform:"translateX(0%) scale(1)"});let l$=(()=>{class t{constructor(t,e){this.api=t,this.router=e}ngOnInit(){}goHome(t){t.preventDefault(),this.router.navigate(["home"])}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(lG))},t.\u0275cmp=Xt({type:t,selectors:[["app-logout"]],hostVars:1,hostBindings:function(t,e){2&t&&ja("@fadeTransition",e.title)},decls:7,vars:0,consts:[["fxLayout.gt-md","row","fxLayout.lt-lg","column","fxLayoutWrap","","fxLayoutGap","10px","fxLayoutAlign","center center","id","logout-message",1,"container","mat-typography"],["fxFlex.gt-md","50%","fxFlex.lt-lg","80%",1,"message"],["variant","dark-lg",3,"click"],["id","ok-button","mat-flat-button","","color","primary",3,"click"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"div",1),Qo(2,"app-logo",2),ra("click",function(t){return e.goHome(t)}),Xo(),Qo(3,"h1"),Na(4,"You have been logged out."),Xo(),Qo(5,"button",3),ra("click",function(t){return e.goHome(t)}),Na(6,"Ok"),Xo(),Xo(),Xo())},directives:[o_,p_,Z_,k_,LW,TA],styles:["@media (max-width:959px){.container[_ngcontent-%COMP%]{min-height:70vh}}@media (min-width:960px){.container[_ngcontent-%COMP%]{min-height:80vh}}@media (min-width:1280px){.container[_ngcontent-%COMP%]{min-height:90vh}}div.message[_ngcontent-%COMP%]{text-align:center}"],data:{animation:[a$()]}}),t})(),c$=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-mirror"]],decls:14,vars:0,consts:[["fxLayout","column","fxLayoutAlign","start start",1,"mirror"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"h1"),Na(2,"Mirrored Server"),Xo(),Qo(3,"p"),Na(4,"This server is currently running in a mirrored mode and provides access to de-identified data. It is pulling data from the main/public server on a regular basis. Because this is acting as a mirror of the public facing system this data should not be modified. The following areas of the site are currently disabled:"),Xo(),Qo(5,"ul"),Qo(6,"li"),Qo(7,"b"),Na(8,"Profile Page"),Xo(),Na(9,": Which would allow the creation of new participants. This should be done on the main public facing site."),Xo(),Qo(10,"li"),Qo(11,"b"),Na(12,"Questionnaires / Flow"),Xo(),Na(13,": Which would create additional data that could be overwritten, lost, or contradict information taken from the main system."),Xo(),Xo(),Xo())},directives:[o_,Z_],styles:[".mirror[_ngcontent-%COMP%]{margin:auto;max-width:800px}button[_ngcontent-%COMP%]{margin-bottom:2em}"]}),t})();function u$(t,e){1&t&&(Qo(0,"div",16),Ko(1,"mat-spinner"),Xo())}function d$(t,e){if(1&t&&(Qo(0,"mat-card"),Qo(1,"p"),Na(2,"The filtered totals filter out all participants associated with Admin and Test User Accounts."),Xo(),Qo(3,"p"),Na(4,"The subtotals reflect all guardians, self advocates, and dependents, but not professionals."),Xo(),Ko(5,"mat-divider"),Qo(6,"div",17),Qo(7,"div"),Qo(8,"p"),Qo(9,"i"),Na(10,"Total Self Participants:"),Xo(),Na(11),Xo(),Qo(12,"p"),Qo(13,"i"),Na(14,"Total Self Guardians:"),Xo(),Na(15),Xo(),Qo(16,"p"),Qo(17,"i"),Na(18,"Total Dependents:"),Xo(),Na(19),Xo(),Qo(20,"p"),Qo(21,"b"),Na(22),Xo(),Xo(),Ko(23,"hr"),Qo(24,"p"),Qo(25,"i"),Na(26,"Total Self Professionals:"),Xo(),Na(27),Xo(),Qo(28,"p"),Qo(29,"b"),Na(30),Xo(),Xo(),Xo(),Qo(31,"div"),Qo(32,"p"),Qo(33,"i"),Na(34,"Filtered Self Participants:"),Xo(),Na(35),Xo(),Qo(36,"p"),Qo(37,"i"),Na(38,"Filtered Self Guardians:"),Xo(),Na(39),Xo(),Qo(40,"p"),Qo(41,"i"),Na(42,"Filtered Dependents:"),Xo(),Na(43),Xo(),Qo(44,"p"),Qo(45,"b"),Na(46),Xo(),Xo(),Ko(47,"hr"),Qo(48,"p"),Qo(49,"i"),Na(50,"Filtered Self Professionals:"),Xo(),Na(51),Xo(),Qo(52,"p"),Qo(53,"b"),Na(54),Xo(),Xo(),Xo(),Xo(),Xo()),2&t){const t=ua();dr(11),Ba(" ",t.userParticipantList.num_self_participants,""),dr(4),Ba(" ",t.userParticipantList.num_self_guardians,""),dr(4),Ba(" ",t.userParticipantList.num_dependents,""),dr(3),Ba("SubTotal: ",t.userParticipantList.num_self_participants+t.userParticipantList.num_self_guardians+t.userParticipantList.num_dependents,""),dr(5),Ba(" ",t.userParticipantList.num_self_professionals,""),dr(3),Ba("Total: ",t.userParticipantList.num_self_participants+t.userParticipantList.num_self_professionals+t.userParticipantList.num_self_guardians+t.userParticipantList.num_dependents,""),dr(5),Ba(" ",t.userParticipantList.filtered_self_participants,""),dr(4),Ba(" ",t.userParticipantList.filtered_self_guardians,""),dr(4),Ba(" ",t.userParticipantList.filtered_dependents,""),dr(3),Ba("Filtered SubTotal: ",t.userParticipantList.filtered_self_participants+t.userParticipantList.filtered_self_guardians+t.userParticipantList.filtered_dependents,""),dr(5),Ba(" ",t.userParticipantList.filtered_self_professionals,""),dr(3),Ba("Filtered Total: ",t.userParticipantList.filtered_self_participants+t.userParticipantList.filtered_self_professionals+t.userParticipantList.filtered_self_guardians+t.userParticipantList.filtered_dependents,"")}}function h$(t,e){1&t&&(Qo(0,"mat-header-cell",18),Na(1," Id "),Xo())}function p$(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.id," ")}}function m$(t,e){1&t&&(Qo(0,"mat-header-cell",18),Na(1," Name "),Xo())}function f$(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.name," ")}}function g$(t,e){1&t&&(Qo(0,"mat-header-cell",18),Na(1," User Id "),Xo())}function _$(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.user_id," ")}}function b$(t,e){1&t&&(Qo(0,"mat-header-cell",18),Na(1," Relationship "),Xo())}function y$(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.relationship," ")}}function v$(t,e){1&t&&(Qo(0,"mat-header-cell",18),Na(1," Percent Complete "),Xo())}function w$(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),vc(2,"percent"),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",wc(2,1,t.percent_complete)," ")}}function C$(t,e){1&t&&(Qo(0,"mat-header-cell",18),Na(1," Has Consented "),Xo())}function x$(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.has_consented," ")}}function S$(t,e){1&t&&(Qo(0,"mat-header-cell",18),Na(1," Last Updated "),Xo())}function k$(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.last_updated," ")}}function A$(t,e){1&t&&Ko(0,"mat-header-row")}function O$(t,e){1&t&&Ko(0,"mat-row")}let E$=(()=>{class t{constructor(t){this.api=t,this.participantDataSource=new mR([]),this.displayedColumns=["id","name","user_id","relationship","percent_complete","has_consented","last_updated"],this.loading=!0}ngOnInit(){this.api.getParticipantAdminList().subscribe(t=>{this.userParticipantList=t,this.participantDataSource.data=t.all_participants,this.participantDataSource.sort=this.sort,this.loading=!1})}applyFilter(t){this.participantDataSource.filter=t.target.value.trim().toLowerCase()}}return t.\u0275fac=function(e){return new(e||t)($o(WG))},t.\u0275cmp=Xt({type:t,selectors:[["app-participant-admin"]],viewQuery:function(t,e){if(1&t&&Vc(qM,3),2&t){let t;Nc(t=Hc())&&(e.sort=t.first)}},decls:34,vars:5,consts:[[1,"participant-admin"],["class","spinner-container",4,"ngIf"],[4,"ngIf"],["matInput","",3,"keyup"],["matSort","","matSortActive","id","matSortDirection","asc",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","id"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","name"],["matColumnDef","user_id"],["matColumnDef","relationship"],["matColumnDef","percent_complete"],["matColumnDef","has_consented"],["matColumnDef","last_updated"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[1,"spinner-container"],["fxLayout","row","fxLayout.lt-sm","column","fxLayoutGap","2em"],["mat-sort-header",""]],template:function(t,e){1&t&&(Qo(0,"div",0),jo(1,u$,2,0,"div",1),Qo(2,"div"),Qo(3,"h1"),Na(4,"Participant Admin"),Xo(),jo(5,d$,55,12,"mat-card",2),Qo(6,"mat-form-field"),Qo(7,"mat-label"),Na(8,"Filter"),Xo(),Qo(9,"input",3),ra("keyup",function(t){return e.applyFilter(t)}),Xo(),Xo(),Qo(10,"mat-table",4),Zo(11,5),jo(12,h$,2,0,"mat-header-cell",6),jo(13,p$,2,1,"mat-cell",7),Jo(),Zo(14,8),jo(15,m$,2,0,"mat-header-cell",6),jo(16,f$,2,1,"mat-cell",7),Jo(),Zo(17,9),jo(18,g$,2,0,"mat-header-cell",6),jo(19,_$,2,1,"mat-cell",7),Jo(),Zo(20,10),jo(21,b$,2,0,"mat-header-cell",6),jo(22,y$,2,1,"mat-cell",7),Jo(),Zo(23,11),jo(24,v$,2,0,"mat-header-cell",6),jo(25,w$,3,3,"mat-cell",7),Jo(),Zo(26,12),jo(27,C$,2,0,"mat-header-cell",6),jo(28,x$,2,1,"mat-cell",7),Jo(),Zo(29,13),jo(30,S$,2,0,"mat-header-cell",6),jo(31,k$,2,1,"mat-cell",7),Jo(),jo(32,A$,1,0,"mat-header-row",14),jo(33,O$,1,0,"mat-row",15),Xo(),Xo(),Xo()),2&t&&(dr(1),qo("ngIf",e.loading),dr(4),qo("ngIf",e.userParticipantList),dr(5),qo("dataSource",e.participantDataSource),dr(22),qo("matHeaderRowDef",e.displayedColumns),dr(1),qo("matRowDefColumns",e.displayedColumns))},directives:[Jd,Yk,Nk,cE,$I,qM,ZI,XI,YI,sR,oR,oM,ZA,eP,o_,p_,tR,tI,iR,lR,uR],pipes:[bh],styles:[".participant-admin[_ngcontent-%COMP%]{margin:2em}mat-form-field[_ngcontent-%COMP%]{margin-top:2em}"]}),t})();function T$(t,e){if(1&t&&(Qo(0,"div",13),Na(1),Xo()),2&t){const t=ua();dr(1),Va(t.errorMessage)}}const P$=function(){return["/register"]},D$=function(){return["/forgot-password"]};let M$=(()=>{class t{constructor(t,e,i,n,s,r,o){this.authenticationService=t,this.route=e,this.router=i,this.changeDetectorRef=n,this.apiService=s,this.deviceDetectorService=r,this.googleAnalyticsService=o,this.formState="form",this.errorMessage="",this.form=new cy({}),this.model={},this.fields=[{key:"password",validators:{fieldMatch:{expression:t=>{const e=t.value;return e.passwordConfirm===e.password||!e.passwordConfirm||!e.password},message:"Password Not Matching",errorPath:"passwordConfirm"}},fieldGroup:[{key:"password",type:"input",className:"password",templateOptions:{type:"password",label:"Password",required:!0},validators:{password:{expression:t=>!t.value||this.passwordRegex.test(t.value),message:(t,e)=>this.passwordRequirements.instructions}}},{key:"passwordConfirm",type:"input",className:"passwordConfirm",templateOptions:{type:"password",label:"Confirm Password",placeholder:"Please re-enter your password",required:!0}}]}],this.route.params.subscribe(t=>{this.token=t.email_token,this.role=t.role,this.apiService.getPasswordRequirements(this.role).subscribe(t=>{this.passwordRequirements=t,this.passwordRegex=RegExp(t.regex)})})}ngOnInit(){}goHome(t){t.preventDefault(),this.router.navigate(["home"])}submit(){this.form.valid&&(this.formState="submitting",this.errorMessage="",this.authenticationService.resetPassword(this.model.password.password,this.token).subscribe(t=>{this._goToReturnUrl(t),this.googleAnalyticsService.accountEvent("reset_password")},t=>{this.errorMessage="token_expired"===t.code?"The link for resetting your password has expired.Please return to the password reset page to generate a new email.":"We encountered an error resetting your password. Please contact support.",this.formState="form",this.changeDetectorRef.detectChanges()}))}updateValidationState(){this.form.updateValueAndValidity()}_goToReturnUrl(t){const e=localStorage.getItem("returnUrl");t&&this.router.navigateByUrl(e&&"undefined"!==e?e:"/profile").then(t=>oB(this.deviceDetectorService))}}return t.\u0275fac=function(e){return new(e||t)($o(BG),$o(UH),$o(lG),$o(Vl),$o(WG),$o(xV),$o(IG))},t.\u0275cmp=Xt({type:t,selectors:[["app-password-reset"]],decls:18,vars:9,consts:[["fxLayout","row","fxLayout.xs","column","fxLayoutWrap","","fxLayoutGap","10px","fxLayoutAlign","center center",1,"container","mat-typography"],["fxFlex","50%","fxFlex.xs","90%",1,"form"],["variant","dark-lg",3,"click"],["color","primary",1,"mat-display-1"],[3,"formGroup","ngSubmit"],[3,"form","fields","model","keyup"],["fxLayout","column","fxLayoutGap","2%","fxLayoutAlign","center"],["id","error_message","class","display mat-error",4,"ngIf"],["mat-flat-button","","type","submit","color","primary","id","submit"],["mat-flat-button","","color","accent","id","cancel",3,"click"],["fxLayout","row","fxLayoutAlign","space-between",1,"footer"],["mat-button","","id","register",3,"routerLink"],["mat-button","","id","forgot_password",3,"routerLink"],["id","error_message",1,"display","mat-error"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"div",1),Qo(2,"app-logo",2),ra("click",function(t){return e.goHome(t)}),Xo(),Qo(3,"h1",3),Na(4,"Set your new Autism DRIVE Password"),Xo(),Qo(5,"form",4),ra("ngSubmit",function(){return e.submit()}),Qo(6,"formly-form",5),ra("keyup",function(){return e.updateValidationState()}),Qo(7,"div",6),jo(8,T$,2,1,"div",7),Qo(9,"button",8),Na(10,"Next"),Xo(),Qo(11,"button",9),ra("click",function(t){return e.goHome(t)}),Na(12,"Cancel"),Xo(),Xo(),Xo(),Xo(),Qo(13,"div",10),Qo(14,"a",11),Na(15,"Join Autism DRIVE"),Xo(),Qo(16,"a",12),Na(17,"Forgot password?"),Xo(),Xo(),Xo(),Xo()),2&t&&(dr(5),qo("formGroup",e.form),dr(1),qo("form",e.form)("fields",e.fields)("model",e.model),dr(2),qo("ngIf",e.errorMessage),dr(6),qo("routerLink",hc(7,P$)),dr(2),qo("routerLink",hc(8,D$)))},directives:[o_,p_,Z_,k_,LW,_y,jb,ky,NF,Jd,TA,PA,uG],styles:[".container[_ngcontent-%COMP%]{min-height:100vh}.form[_ngcontent-%COMP%]{border:2px solid #4e4e4e;padding:2%}"]}),t})();function I$(t,e){1&t&&(Qo(0,"p"),Na(1," If you would like to join the research registry, please work with your legal guardian to create a profile for yourself. Your profile information will be used to match you with new study opportunities. "),Xo())}function R$(t,e){if(1&t&&(Qo(0,"div",11),Qo(1,"h1"),Na(2,"Profile complete!"),Xo(),Qo(3,"p"),Na(4," Your account set up is complete! You may now sign up for webinars and search for resources. "),Xo(),jo(5,I$,2,0,"p",6),Xo()),2&t){const t=ua(2);dr(5),qo("ngIf",t.meta.self_participant&&t.meta.self_has_guardian)}}function L$(t,e){1&t&&(Qo(0,"div",12),Qo(1,"h1"),Na(2,"Join the Registry!"),Xo(),Qo(3,"p"),Na(4,"Your account set up is complete! You may now sign up for webinars, search for resources, and join our research registry."),Xo(),Qo(5,"p"),Na(6,"Joining the research registry allows you to get connected with new study opportunities! The joining process involves creating a profile about yourself. Your information will be used to match you with study opportunities."),Xo(),Xo())}function F$(t,e){1&t&&(Qo(0,"div",13),Qo(1,"h1"),Na(2,"Join the Registry as a Parent/Guardian!"),Xo(),Qo(3,"p"),Na(4,"Your account set up is complete! You may now sign up for webinars, search for resources, and join our research registry."),Xo(),Qo(5,"p"),Na(6,"Joining the research registry allows you and your child to get connected with new study opportunities! The joining process involves creating profiles for yourself and your child. Your profile information will be used to match you or your child with relevant study opportunities. "),Xo(),Xo())}function N$(t,e){1&t&&(Qo(0,"div",14),Qo(1,"h1"),Na(2,"Join the Registry as a Professional!"),Xo(),Qo(3,"p"),Na(4,"Your account set up is complete! You may now sign up for webinars, search for resources, and join our research registry."),Xo(),Qo(5,"p"),Na(6,"Joining the research registry allows you to get connected with exciting study opportunities! The joining process involves creating a profile about yourself. Your information will be used to match you with study opportunities. "),Xo(),Xo())}function V$(t,e){1&t&&(Qo(0,"p"),Na(1," If you think your child would be interested in joining, please share information about Autism DRIVE with them so they can sign up directly. "),Xo())}function B$(t,e){if(1&t&&(Qo(0,"div"),Qo(1,"h1"),Na(2,"Join the Registry!"),Xo(),Qo(3,"p"),Na(4,"Your account set up is complete! You may now sign up for webinars, search for resources, and join our research registry."),Xo(),Qo(5,"p"),Na(6,"Joining the research registry allows you to get connected with exciting study opportunities! The joining process involves creating a profile about yourself. Your information will be used to match you with study opportunities. "),Xo(),jo(7,V$,2,0,"p",6),Xo()),2&t){const t=ua(2);dr(7),qo("ngIf",t.meta.guardian&&!t.meta.guardian_has_dependent)}}function H$(t,e){if(1&t){const t=ea();Qo(0,"button",15),ra("click",function(e){return Be(t),ua(2).goFlow(e)}),Na(1," Join the Registry "),Xo()}}function z$(t,e){if(1&t&&(Qo(0,"div",1),jo(1,R$,6,1,"div",2),jo(2,L$,7,0,"div",3),jo(3,F$,7,0,"div",4),jo(4,N$,7,0,"div",5),jo(5,B$,8,1,"div",6),Qo(6,"div",7),jo(7,H$,2,0,"button",8),Qo(8,"button",9),Na(9," Watch Webinars "),Xo(),Qo(10,"button",10),Na(11," Search Resources "),Xo(),Xo(),Xo()),2&t){const t=ua();dr(1),qo("ngIf",null===t.meta.self_relationship),dr(1),qo("ngIf",t.meta.self_relationship===t.relationships.SELF_PARTICIPANT),dr(1),qo("ngIf",t.meta.self_relationship===t.relationships.SELF_GUARDIAN),dr(1),qo("ngIf",t.meta.self_relationship===t.relationships.SELF_PROFESSIONAL),dr(1),qo("ngIf",t.meta.self_relationship===t.relationships.SELF_INTERESTED),dr(2),qo("ngIf",t.meta.self_relationship)}}let G$=(()=>{class t{constructor(t,e,i){this.authenticationService=t,this.api=e,this.router=i,this.relationships=LG}ngOnInit(){}goFlow(t){t.preventDefault(),this.router.navigate(["terms",this.meta.self_relationship])}}return t.\u0275fac=function(e){return new(e||t)($o(BG),$o(WG),$o(lG))},t.\u0275cmp=Xt({type:t,selectors:[["app-profile-meta"]],inputs:{user:"user",meta:"meta"},decls:1,vars:1,consts:[["class","meta_info","fxLayout","row","fxLayout.sm","row","fxLayout.xs","column","fxLayoutGap","10px","fxLayoutAlign","center center","fxFlexOffset","5",4,"ngIf"],["fxLayout","row","fxLayout.sm","row","fxLayout.xs","column","fxLayoutGap","10px","fxLayoutAlign","center center","fxFlexOffset","5",1,"meta_info"],["id","null_relationship",4,"ngIf"],["id","self_participant",4,"ngIf"],["id","self_guardian",4,"ngIf"],["id","self_profressional",4,"ngIf"],[4,"ngIf"],["fxLayout","column","fxLayout.gt-sm","column","fxLayoutGap","10px","fxLayoutAlign","center center","fxFlexOffset","15"],["mat-flat-button","","id","join","type","button","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","type","button","color","primary","routerLink","/uva-education"],["mat-flat-button","","type","button","color","primary","routerLink","/search"],["id","null_relationship"],["id","self_participant"],["id","self_guardian"],["id","self_profressional"],["mat-flat-button","","id","join","type","button","color","accent",3,"click"]],template:function(t,e){1&t&&jo(0,z$,12,6,"div",0),2&t&&qo("ngIf",e.meta)},directives:[Jd,o_,p_,Z_,L_,TA,cG],styles:["div.meta_info[_ngcontent-%COMP%]{margin:20px auto;text-align:left;max-width:800px}"]}),t})();const U$=function(t){return{"avatar-image-active":t}};function j$(t,e){if(1&t){const t=ea();Qo(0,"button",18),ra("click",function(){Be(t);const i=e.$implicit;return ua(2).setImage(i)}),Ko(1,"img",6),Xo()}if(2&t){const t=e.$implicit,i=ua(2);qo("ngClass",pc(2,U$,i.isSelectedImage(t))),dr(1),fa("src","/assets/avatars/",t,".svg",ms)}}const W$=function(t){return{"background-color":t}},$$=function(t){return{"color-swatch-active":t}};function q$(t,e){if(1&t){const t=ea();Qo(0,"button",19),ra("click",function(){Be(t);const i=e.$implicit;return ua(2).setColor(i)}),Na(1,"\xa0 "),Xo()}if(2&t){const t=e.$implicit,i=ua(2);qo("ngStyle",pc(2,W$,t))("ngClass",pc(4,$$,i.isSelectedColor(t)))}}function Y$(t,e){if(1&t){const t=ea();Qo(0,"div",1),Qo(1,"div",2),Qo(2,"h1",3),Na(3),Xo(),Qo(4,"div",4),Qo(5,"div",5),Ko(6,"img",6),Xo(),Xo(),Qo(7,"p"),Na(8,"Pick an image"),Xo(),Qo(9,"div",7),Qo(10,"button",8),ra("click",function(e){return Be(t),ua().scroll(e,"avatar-images","left")}),Qo(11,"mat-icon"),Na(12,"chevron_left"),Xo(),Xo(),Qo(13,"div",9),jo(14,j$,2,4,"button",10),Xo(),Qo(15,"button",11),ra("click",function(e){return Be(t),ua().scroll(e,"avatar-images","right")}),Qo(16,"mat-icon"),Na(17,"chevron_right"),Xo(),Xo(),Xo(),Qo(18,"p"),Na(19,"Pick a color"),Xo(),Qo(20,"div",12),Qo(21,"button",8),ra("click",function(e){return Be(t),ua().scroll(e,"color-swatches","left")}),Qo(22,"mat-icon"),Na(23,"chevron_left"),Xo(),Xo(),Qo(24,"div",13),jo(25,q$,2,6,"button",14),Xo(),Qo(26,"button",11),ra("click",function(e){return Be(t),ua().scroll(e,"color-swatches","right")}),Qo(27,"mat-icon"),Na(28,"chevron_right"),Xo(),Xo(),Xo(),Xo(),Qo(29,"div",15),Qo(30,"button",16),ra("click",function(){return Be(t),ua().onSubmit()}),Na(31,"Save"),Xo(),Qo(32,"button",17),ra("click",function(){return Be(t),ua().onNoClick()}),Na(33,"Cancel"),Xo(),Xo(),Xo()}if(2&t){const t=ua();dr(3),Va(t.getPrompt()),dr(2),qo("ngStyle",pc(5,W$,t.selectedColor||t.data.participant.avatar_color)),dr(1),fa("src","/assets/avatars/",t.selectedIcon||t.data.participant.avatar_icon,".svg",ms),dr(8),qo("ngForOf",t.avatarImages),dr(11),qo("ngForOf",t.avatarColors)}}let Q$=(()=>{class t{constructor(t,e,i){this.api=t,this.dialogRef=e,this.data=i,this.avatarImages=[],this.avatarColors=[];for(let n=0;n<104;n++)this.avatarImages[n]=(n+1).toLocaleString("en",{minimumIntegerDigits:3});for(let n=0;n<16;n++)this.avatarColors[n]=`hsl(${16*n},100%,80%)`;this.selectedIcon=this.data.participant.avatar_icon||"001",this.selectedColor=this.data.participant.avatar_color||"hsl(0, 100%, 80%)",this.dialogRef.afterOpened().subscribe(()=>{const t=document.getElementsByClassName("avatar-image-active")[0],e=document.getElementsByClassName("color-swatch-active")[0];t&&t.parentElement.scrollTo({left:t.offsetLeft-1.25*t.clientWidth-t.parentElement.clientWidth}),e&&e.parentElement.scrollTo({left:e.offsetLeft-3*e.clientWidth-e.parentElement.clientWidth})})}ngOnInit(){}onNoClick(){this.dialogRef.close()}getPrompt(){return`Choose ${this.data.participant.relationship!==LG.DEPENDENT?"your":`${this.data.participant.name||"your child"}'s`} avatar`}setColor(t){this.selectedColor=t}setImage(t){this.selectedIcon=t}isSelectedImage(t){return this.selectedIcon?t===this.selectedIcon:t===this.data.participant.avatar_icon}isSelectedColor(t){return this.selectedColor?t===this.selectedColor:t===this.data.participant.avatar_color}scroll(t,e,i){const n=document.getElementsByClassName(e)[0],s=document.getElementsByClassName(e+"-row")[0];n.scrollBy(s.clientWidth*("left"===i?-1:1),0)}onSubmit(){this.data.participant.avatar_color=this.selectedColor||this.data.participant.avatar_color,this.data.participant.avatar_icon=this.selectedIcon||this.data.participant.avatar_icon,this.api.updateParticipant(this.data.participant).subscribe(()=>this.dialogRef.close())}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(NO),$o(BO))},t.\u0275cmp=Xt({type:t,selectors:[["app-avatar-dialog"]],decls:1,vars:1,consts:[["class","mat-typography",4,"ngIf"],[1,"mat-typography"],["mat-dialog-content",""],["mat-dialog-title",""],["fxLayout","column","fxLayoutAlign","center center"],[1,"avatar",3,"ngStyle"],[3,"src"],[1,"avatar-images-row"],["mat-button","",1,"scroll-left",3,"click"],[1,"avatar-images"],["class","avatar-image",3,"ngClass","click",4,"ngFor","ngForOf"],["mat-button","",1,"scroll-right",3,"click"],[1,"color-swatches-row"],[1,"color-swatches"],["class","color-swatch",3,"ngStyle","ngClass","click",4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-flat-button","","color","primary","id","save_avatar_changes",3,"click"],["mat-button","","id","cancel_avatar_changes",3,"click"],[1,"avatar-image",3,"ngClass","click"],[1,"color-swatch",3,"ngStyle","ngClass","click"]],template:function(t,e){1&t&&jo(0,Y$,34,7,"div",0),2&t&&qo("ngIf",e.data.participant)},directives:[Jd,YO,qO,o_,Z_,oh,Wg,TA,JT,Kd,QO,Qd,Pg],styles:[".avatar[_ngcontent-%COMP%]{border-radius:50%}.avatar[_ngcontent-%COMP%], .avatar[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:192px;width:192px}.avatar-images-row[_ngcontent-%COMP%], .color-swatches-row[_ngcontent-%COMP%]{display:grid;grid-gap:0}@media (min-width:576px){.avatar-images-row[_ngcontent-%COMP%], .color-swatches-row[_ngcontent-%COMP%]{grid-template-columns:1fr 4fr 1fr}}@media (min-width:768px){.avatar-images-row[_ngcontent-%COMP%], .color-swatches-row[_ngcontent-%COMP%]{grid-template-columns:1fr 6fr 1fr}}@media (min-width:992px){.avatar-images-row[_ngcontent-%COMP%], .color-swatches-row[_ngcontent-%COMP%]{grid-template-columns:1fr 8fr 1fr}}@media (min-width:1200px){.avatar-images-row[_ngcontent-%COMP%], .color-swatches-row[_ngcontent-%COMP%]{grid-template-columns:1fr 10fr 1fr}}.avatar-images-row[_ngcontent-%COMP%] .scroll-left[_ngcontent-%COMP%], .avatar-images-row[_ngcontent-%COMP%] .scroll-right[_ngcontent-%COMP%], .color-swatches-row[_ngcontent-%COMP%] .scroll-left[_ngcontent-%COMP%], .color-swatches-row[_ngcontent-%COMP%] .scroll-right[_ngcontent-%COMP%]{height:100%}.avatar-images-row[_ngcontent-%COMP%] .scroll-left[_ngcontent-%COMP%], .avatar-images-row[_ngcontent-%COMP%] .scroll-left[_ngcontent-%COMP%]:active, .avatar-images-row[_ngcontent-%COMP%] .scroll-left[_ngcontent-%COMP%]:focus, .avatar-images-row[_ngcontent-%COMP%] .scroll-left[_ngcontent-%COMP%]:hover, .color-swatches-row[_ngcontent-%COMP%] .scroll-left[_ngcontent-%COMP%], .color-swatches-row[_ngcontent-%COMP%] .scroll-left[_ngcontent-%COMP%]:active, .color-swatches-row[_ngcontent-%COMP%] .scroll-left[_ngcontent-%COMP%]:focus, .color-swatches-row[_ngcontent-%COMP%] .scroll-left[_ngcontent-%COMP%]:hover{background-image:linear-gradient(90deg,#fff,#fff,hsla(0,0%,100%,0))}.avatar-images-row[_ngcontent-%COMP%] .scroll-right[_ngcontent-%COMP%], .avatar-images-row[_ngcontent-%COMP%] .scroll-right[_ngcontent-%COMP%]:active, .avatar-images-row[_ngcontent-%COMP%] .scroll-right[_ngcontent-%COMP%]:focus, .avatar-images-row[_ngcontent-%COMP%] .scroll-right[_ngcontent-%COMP%]:hover, .color-swatches-row[_ngcontent-%COMP%] .scroll-right[_ngcontent-%COMP%], .color-swatches-row[_ngcontent-%COMP%] .scroll-right[_ngcontent-%COMP%]:active, .color-swatches-row[_ngcontent-%COMP%] .scroll-right[_ngcontent-%COMP%]:focus, .color-swatches-row[_ngcontent-%COMP%] .scroll-right[_ngcontent-%COMP%]:hover{background-image:linear-gradient(90deg,hsla(0,0%,100%,0),#fff,#fff)}.avatar-images[_ngcontent-%COMP%], .color-swatches[_ngcontent-%COMP%]{overflow-x:scroll;white-space:nowrap;scroll-behavior:smooth}.avatar-images[_ngcontent-%COMP%]{height:112px}.color-swatches[_ngcontent-%COMP%]{height:80px}.avatar-image[_ngcontent-%COMP%], .color-swatch[_ngcontent-%COMP%]{border:8px solid #fff;display:inline-block;background:rgba(0,0,0,0);outline:none;margin:0 0 0 10px;padding:0;border-radius:50%}.color-swatch[_ngcontent-%COMP%]{width:64px;height:64px}.avatar-image[_ngcontent-%COMP%]{width:112px;height:112px;background:#eee}.avatar-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:96px;height:96px}.avatar-image-active[_ngcontent-%COMP%], .color-swatch-active[_ngcontent-%COMP%]{border-color:#999}"]}),t})();function X$(t,e){if(1&t&&(Qo(0,"div",7),Ko(1,"mat-progress-bar",8),Xo()),2&t){const t=ua();dr(1),qo("mode","determinate")("value",100*t.participant.percent_complete)}}function K$(t,e){1&t&&(Qo(0,"div",7),Na(1," Profile Complete "),Xo())}const Z$=function(t){return{"background-color":t}};let J$=(()=>{class t{constructor(t,e,i){this.api=t,this.router=e,this.dialog=i}ngOnInit(){}goEditEnroll(t){this.participant.relationship===LG.SELF_PARTICIPANT?(t.preventDefault(),this.router.navigate(["flow","self_intake",this.participant.id])):this.participant.relationship===LG.DEPENDENT?(t.preventDefault(),this.router.navigate(["flow","dependent_intake",this.participant.id])):this.participant.relationship===LG.SELF_PROFESSIONAL?(t.preventDefault(),this.router.navigate(["flow","professional_intake",this.participant.id])):this.participant.relationship===LG.SELF_INTERESTED?(t.preventDefault(),this.router.navigate(["flow","interested_intake",this.participant.id])):(t.preventDefault(),this.router.navigate(["flow","guardian_intake",this.participant.id]))}goTerms(t){t.preventDefault(),this.router.navigate(["terms",this.participant.relationship,{preview:!0}])}chooseAvatar(t,e){this.dialog.open(Q$,{maxWidth:"100vw",maxHeight:"100vh",data:{participant:e}}).afterClosed().subscribe(t=>{console.log("The dialog was closed")})}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(lG),$o(jO))},t.\u0275cmp=Xt({type:t,selectors:[["app-participant-profile"]],inputs:{participant:"participant",user:"user"},decls:19,vars:18,consts:[[1,"mat-typography"],["mat-card-avatar","",3,"src","ngStyle","id","click"],[1,"change_text",3,"click"],["class","mat-subheading-2",4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","start center","fxLayoutGap","10px"],["mat-flat-button","","color","accent",3,"id","click"],["mat-stroked-button","",3,"id","click"],[1,"mat-subheading-2"],[3,"mode","value"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"mat-card"),Qo(2,"mat-card-header"),Qo(3,"img",1),ra("click",function(t){return e.chooseAvatar(t,e.participant)}),Xo(),Qo(4,"div",2),ra("click",function(t){return e.chooseAvatar(t,e.participant)}),Na(5,"change icon"),Xo(),Qo(6,"mat-card-title"),Na(7),Xo(),Qo(8,"mat-card-subtitle"),Na(9),vc(10,"titlecase"),jo(11,X$,2,2,"div",3),jo(12,K$,2,0,"div",3),Qo(13,"div",4),Qo(14,"button",5),ra("click",function(t){return e.goEditEnroll(t)}),Na(15),Xo(),Qo(16,"button",6),ra("click",function(t){return e.goTerms(t)}),Na(17,"Terms and Conditions"),Xo(),Xo(),Xo(),Xo(),Ko(18,"mat-card-content"),Xo(),Xo()),2&t&&(dr(1),Sa("mat-elevation-z0",!0),dr(2),fa("src","/assets/avatars/",e.participant.avatar_icon||"001",".svg",ms),fa("id","avatar_",e.participant.id,""),qo("ngStyle",pc(16,Z$,e.participant.avatar_color||"#CCC")),dr(4),Ba(" ",e.participant.name," "),dr(2),Ba(" ",e.user.isSelf(e.participant)?"You":wc(10,14,e.participant.relationship)," "),dr(2),qo("ngIf",e.participant.percent_complete<1),dr(1),qo("ngIf",e.participant.percent_complete>=1),dr(2),ga("id","edit_enroll_",e.participant.relationship,"_",e.participant.id,""),dr(1),Ba("Edit ","self_guardian"===e.participant.relationship?"guardian":"enrollment"," info"),dr(1),ga("id","view_terms_",e.participant.relationship,"_",e.participant.id,""))},directives:[ZA,JA,KA,oh,Wg,QA,XA,Jd,o_,Z_,p_,TA,YA,YD],pipes:[fh],styles:["mat-card{width:100%}mat-card-header[_ngcontent-%COMP%]{position:relative}[mat-card-avatar][_ngcontent-%COMP%]{width:100px;height:100px;cursor:pointer}[mat-card-avatar][_ngcontent-%COMP%]:hover{opacity:.5}.change_text[_ngcontent-%COMP%]{position:absolute;top:105px;left:7px;cursor:pointer}.change_text[_ngcontent-%COMP%]:hover{opacity:.5} .mat-card-header-text{width:100%} mat-progress-bar{height:16px} mat-progress-bar .mat-progress-bar-buffer{background-color:#dadada} mat-progress-bar .mat-progress-bar-background, mat-progress-bar .mat-progress-bar-background pattern{fill:#dadada} mat-card-subtitle button{margin-top:20px} mat-card-subtitle .mat-subheading-2{color:#000}button[_ngcontent-%COMP%]{width:100%}@media (min-width:768px){button[_ngcontent-%COMP%]{width:50%}}"]}),t})();const tq=function(t){return["/resource",t]};function eq(t,e){if(1&t&&(Qo(0,"mat-list-item",2),Qo(1,"a",3),Na(2),Xo(),Qo(3,"p",4),Na(4),Xo(),Xo()),2&t){const t=e.$implicit;dr(1),qo("routerLink",pc(3,tq,t.id)),dr(1),Va(t.title),dr(2),Va(t.description)}}let iq=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-favorite-resources"]],inputs:{favoriteResources:"favoriteResources"},decls:5,vars:1,consts:[["class","pad-2",4,"ngFor","ngForOf"],["mat-flat-button","","type","button","color","primary","routerLink","/search"],[1,"pad-2"],["mat-line","",3,"routerLink"],["mat-line",""]],template:function(t,e){1&t&&(jo(0,eq,5,5,"mat-list-item",0),Qo(1,"p"),Na(2,"To add or remove resources, click on the star button found on the resource pages or on search results"),Xo(),Qo(3,"button",1),Na(4,"Search Resources"),Xo()),2&t&&qo("ngForOf",e.favoriteResources)},directives:[Kd,TA,cG,bP,uG,Ex],styles:[""]}),t})();function nq(t,e){if(1&t){const t=ea();Qo(0,"mat-tree-node",9),Qo(1,"li",10),Ko(2,"button",11),Qo(3,"mat-checkbox",12),ra("change",function(){Be(t);const i=e.$implicit;return ua().toggleNode(i)}),Na(4),Xo(),Xo(),Xo()}if(2&t){const t=e.$implicit,i=ua();dr(3),qo("checked",i.checklistSelection.isSelected(t)),dr(1),Va(t.name)}}function sq(t,e){if(1&t&&(Qo(0,"span",18),Na(1),Xo()),2&t){const t=ua().$implicit;ma("matBadge",ua().numSelectedDescendants(t)),dr(1),Va(t.name)}}function rq(t,e){if(1&t&&(Qo(0,"span"),Na(1),Xo()),2&t){const t=ua().$implicit;dr(1),Va(t.name)}}function oq(t,e){if(1&t){const t=ea();Qo(0,"mat-nested-tree-node"),Qo(1,"li"),Qo(2,"div",10),Qo(3,"button",13),Qo(4,"mat-icon",14),Na(5),Xo(),Xo(),Qo(6,"mat-checkbox",12),ra("change",function(){Be(t);const i=e.$implicit;return ua().toggleNode(i)}),jo(7,sq,2,2,"span",15),jo(8,rq,2,1,"span",16),Xo(),Xo(),Qo(9,"ul"),ta(10,17),Xo(),Xo(),Xo()}if(2&t){const t=e.$implicit,i=ua();dr(3),zo("aria-label","toggle "+t.name),dr(2),Ba(" ",i.treeControl.isExpanded(t)?"expand_more":"chevron_right"," "),dr(1),qo("checked",i.checklistSelection.isSelected(t)),dr(1),qo("ngIf",i.numSelectedDescendants(t)),dr(1),qo("ngIf",!i.numSelectedDescendants(t)),dr(1),Sa("tree-select-invisible",!i.treeControl.isExpanded(t))}}function aq(t,e){if(1&t&&(Qo(0,"mat-option",19),Na(1),Xo()),2&t){const t=e.$implicit;qo("value",t.value),dr(1),Va(t.label)}}function lq(t,e){if(1&t&&(Qo(0,"mat-option",19),Na(1),Xo()),2&t){const t=e.$implicit;qo("value",t.value),dr(1),Va(t.label)}}function cq(t,e){if(1&t&&(Qo(0,"mat-option",19),Na(1),Xo()),2&t){const t=e.$implicit;qo("value",t.value),dr(1),Va(t.label)}}let uq=(()=>{class t{constructor(t,e,i){this.api=t,this.dialogRef=e,this.data=i,this.ageLabels=EU.labels,this.languageLabels=TU.labels,this.covid19Labels=PU.labels,this.ageOptions=this.getOptions(this.ageLabels),this.languageOptions=this.getOptions(this.languageLabels),this.covid19Options=this.getOptions(this.covid19Labels),this.nodes={},this.checklistSelection=new mS(!0),this.hasNestedChild=(t,e)=>e.children&&e.children.length>0,this.treeControl=new vL(t=>Sp(t.children)),this.dataSource=new $L}ngOnInit(){this.api.getCategoryTree().subscribe(t=>{this.dataSource.data=t,this.updateTopicSelection()})}getOptions(t){const e=[];for(const i in t)t.hasOwnProperty(i)&&e.push({value:i,label:t[i]});return e}updateTopicSelection(){this.data.topics&&this.data.topics.forEach(t=>{const e=this.findNode(t.id);e&&this.toggleNode(e),this._updateModelCategories()})}findNode(t){const e=[];return this.dataSource.data.forEach(t=>{this.treeControl.getDescendants(t).forEach(t=>e.push(t)),e.push(t)}),e.find(e=>e.id===t)}toggleNode(t){this.checklistSelection.toggle(t),this._updateModelCategories()}numSelectedDescendants(t){return this.treeControl.getDescendants(t).filter(t=>this.checklistSelection.isSelected(t)).length}_updateModelCategories(){this.data.topics=[],this.checklistSelection.selected.forEach(t=>this.data.topics.push(t))}onNoClick(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(NO),$o(BO))},t.\u0275cmp=Xt({type:t,selectors:[["app-favorite-topics-dialog"]],decls:29,vars:10,consts:[["mat-dialog-title",""],[1,"tree-select",3,"dataSource","treeControl"],["matTreeNodeToggle","",4,"matTreeNodeDef"],[4,"matTreeNodeDef","matTreeNodeDefWhen"],["multiple","",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","",3,"click"],["mat-flat-button","","color","primary","cdkFocusInitial","",3,"mat-dialog-close"],["matTreeNodeToggle",""],[1,"mat-tree-node"],["disabled","","mat-icon-button",""],[3,"checked","change"],["mat-icon-button","","matTreeNodeToggle","",1,"toggle-node-button"],[1,"mat-icon-rtl-mirror"],["matBadgeColor","primary","matBadgeOverlap","false",3,"matBadge",4,"ngIf"],[4,"ngIf"],["matTreeNodeOutlet",""],["matBadgeColor","primary","matBadgeOverlap","false",3,"matBadge"],[3,"value"]],template:function(t,e){1&t&&(Qo(0,"h1",0),Na(1,"Manage My Topics"),Xo(),Qo(2,"p"),Na(3,"Select topics to add them to your favorites. Deselect topics to remove them from your favorites. Click Save to keep your changes or Cancel to discard all changes."),Xo(),Qo(4,"mat-label"),Na(5,"Topics:"),Xo(),Qo(6,"mat-tree",1),jo(7,nq,5,2,"mat-tree-node",2),jo(8,oq,11,7,"mat-nested-tree-node",3),Xo(),Qo(9,"mat-form-field"),Qo(10,"mat-label"),Na(11,"Ages:"),Xo(),Qo(12,"mat-select",4),ra("valueChange",function(t){return e.data.ages=t}),jo(13,aq,2,2,"mat-option",5),Xo(),Xo(),Qo(14,"mat-form-field"),Qo(15,"mat-label"),Na(16,"Languages:"),Xo(),Qo(17,"mat-select",4),ra("valueChange",function(t){return e.data.languages=t}),jo(18,lq,2,2,"mat-option",5),Xo(),Xo(),Qo(19,"mat-form-field"),Qo(20,"mat-label"),Na(21,"Covid19 Topics:"),Xo(),Qo(22,"mat-select",4),ra("valueChange",function(t){return e.data.covid19_categories=t}),jo(23,cq,2,2,"mat-option",5),Xo(),Xo(),Qo(24,"div",6),Qo(25,"button",7),ra("click",function(){return e.onNoClick()}),Na(26,"Cancel"),Xo(),Qo(27,"button",8),Na(28,"Save"),Xo(),Xo()),2&t&&(dr(6),qo("dataSource",e.dataSource)("treeControl",e.treeControl),dr(2),qo("matTreeNodeDefWhen",e.hasNestedChild),dr(4),qo("value",e.data.ages),dr(1),qo("ngForOf",e.ageOptions),dr(4),qo("value",e.data.languages),dr(1),qo("ngForOf",e.languageOptions),dr(4),qo("value",e.data.covid19_categories),dr(1),qo("ngForOf",e.covid19Options),dr(4),qo("mat-dialog-close",e.data))},directives:[qO,Nk,zL,LL,Yk,rD,Kd,QO,TA,$O,RL,UL,hO,NL,JT,Jd,HL,wA,Jx],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}.tree-select-invisible[_ngcontent-%COMP%]{display:none}.tree-select[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .tree-select[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;margin-left:1rem;list-style-type:none}.tree-select[_ngcontent-%COMP%] li[_ngcontent-%COMP%] button.toggle-node-button[_ngcontent-%COMP%], .tree-select[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] button.toggle-node-button[_ngcontent-%COMP%]{outline:none!important}"]}),t})();const dq=function(){return["/search"]},hq=function(t){return{category:t}};function pq(t,e){if(1&t&&(Qo(0,"mat-chip",6),Na(1),Xo()),2&t){const t=e.$implicit;qo("routerLink",hc(3,dq))("queryParams",pc(4,hq,t.id)),dr(1),Va(t.name)}}function mq(t,e){if(1&t&&(Qo(0,"div"),Qo(1,"mat-card-title"),Na(2,"Favorite Topics"),Xo(),Qo(3,"mat-chip-list"),jo(4,pq,2,6,"mat-chip",5),Xo(),Xo()),2&t){const t=ua();dr(4),qo("ngForOf",t.favoriteTopics)}}const fq=function(t){return{ages:t}};function gq(t,e){if(1&t&&(Qo(0,"mat-chip",6),Na(1),Xo()),2&t){const t=e.$implicit,i=ua(2);qo("routerLink",hc(3,dq))("queryParams",pc(4,fq,t)),dr(1),Va(i.ageLabels[t])}}function _q(t,e){if(1&t&&(Qo(0,"div",7),Qo(1,"mat-card-title"),Na(2,"Favorite Age Ranges"),Xo(),Qo(3,"mat-chip-list"),jo(4,gq,2,6,"mat-chip",5),Xo(),Xo()),2&t){const t=ua();dr(4),qo("ngForOf",t.favoriteAges)}}const bq=function(t){return{languages:t}};function yq(t,e){if(1&t&&(Qo(0,"mat-chip",6),Na(1),Xo()),2&t){const t=e.$implicit,i=ua(2);qo("routerLink",hc(3,dq))("queryParams",pc(4,bq,t)),dr(1),Va(i.languageLabels[t])}}function vq(t,e){if(1&t&&(Qo(0,"div",8),Qo(1,"mat-card-title"),Na(2,"Favorite Languages"),Xo(),Qo(3,"mat-chip-list"),jo(4,yq,2,6,"mat-chip",5),Xo(),Xo()),2&t){const t=ua();dr(4),qo("ngForOf",t.favoriteLanguages)}}const wq=function(t){return["/covid19-resources/",t]};function Cq(t,e){if(1&t&&(Qo(0,"mat-chip",11),Na(1),Xo()),2&t){const t=e.$implicit,i=ua(2);qo("routerLink",pc(4,wq,pc(2,hq,t))),dr(1),Va(i.covid19Labels[t].split(": ")[0])}}function xq(t,e){if(1&t&&(Qo(0,"div",9),Qo(1,"mat-card-title"),Na(2,"COVID-19 Topics"),Xo(),Qo(3,"mat-chip-list"),jo(4,Cq,2,6,"mat-chip",10),Xo(),Xo()),2&t){const t=ua();dr(4),qo("ngForOf",t.favoriteCovid19Topics)}}let Sq=(()=>{class t{constructor(t,e){this.api=t,this.dialog=e,this.favoriteTopics=[],this.favoriteAges=[],this.favoriteLanguages=[],this.favoriteCovid19Topics=[],this.ageLabels=EU.labels,this.languageLabels=TU.labels,this.covid19Labels=PU.labels}ngOnInit(){this.loadFavorites()}loadFavorites(){this.api.getFavoritesByUserAndType(this.currentUser,"category").subscribe(t=>{this.favoriteTopics=t.map(t=>t.category)}),this.api.getFavoritesByUserAndType(this.currentUser,"age_range").subscribe(t=>{this.favoriteAges=t.map(t=>t.age_range)}),this.api.getFavoritesByUserAndType(this.currentUser,"language").subscribe(t=>{this.favoriteLanguages=t.map(t=>t.language)}),this.api.getFavoritesByUserAndType(this.currentUser,"covid19_category").subscribe(t=>{this.favoriteCovid19Topics=t.map(t=>t.covid19_category)})}openFavoriteTopicsDialog(){this.dialog.open(uq,{maxWidth:"100vw",maxHeight:"100vh",data:{user:this.currentUser,topics:this.favoriteTopics,ages:this.favoriteAges,languages:this.favoriteLanguages,covid19_categories:this.favoriteCovid19Topics}}).afterClosed().subscribe(t=>{if(t){const e=[];t.topics.forEach(t=>{e.push(new FU({user_id:this.currentUser.id,type:"category",category_id:t.id}))}),t.ages.forEach(t=>{e.push(new FU({user_id:this.currentUser.id,type:"age_range",age_range:t}))}),t.languages.forEach(t=>{e.push(new FU({user_id:this.currentUser.id,type:"language",language:t}))}),t.covid19_categories.forEach(t=>{e.push(new FU({user_id:this.currentUser.id,type:"covid19_category",covid19_category:t}))}),this.api.addUserFavorites(e).subscribe(),this.favoriteTopics=t.topics,this.favoriteAges=t.ages,this.favoriteLanguages=t.languages,this.favoriteCovid19Topics=t.covid19_categories}})}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(jO))},t.\u0275cmp=Xt({type:t,selectors:[["app-favorite-topics"]],inputs:{currentUser:"currentUser"},decls:10,vars:4,consts:[[4,"ngIf"],["id","ages","class","margin-top",4,"ngIf"],["id","languages","class","margin-top",4,"ngIf"],["id","covid19_categories","class","margin-top",4,"ngIf"],["mat-flat-button","",3,"click"],["color","primary","selected","",3,"routerLink","queryParams",4,"ngFor","ngForOf"],["color","primary","selected","",3,"routerLink","queryParams"],["id","ages",1,"margin-top"],["id","languages",1,"margin-top"],["id","covid19_categories",1,"margin-top"],["color","accent","selected","",3,"routerLink",4,"ngFor","ngForOf"],["color","accent","selected","",3,"routerLink"]],template:function(t,e){1&t&&(jo(0,mq,5,1,"div",0),jo(1,_q,5,1,"div",1),jo(2,vq,5,1,"div",2),jo(3,xq,5,1,"div",3),Qo(4,"p"),Na(5,"To add or remove topics, please click Manage My Topics below"),Xo(),Qo(6,"button",4),ra("click",function(){return e.openFavoriteTopicsDialog()}),Qo(7,"mat-icon"),Na(8,"grade"),Xo(),Na(9," Manage My Topics"),Xo()),2&t&&(qo("ngIf",e.favoriteTopics.length>0),dr(1),qo("ngIf",e.favoriteAges&&e.favoriteAges.length>0),dr(1),qo("ngIf",e.favoriteLanguages&&e.favoriteLanguages.length>0),dr(1),qo("ngIf",e.favoriteCovid19Topics&&e.favoriteCovid19Topics.length>0))},directives:[Jd,TA,JT,QA,OO,Kd,wO,cG],styles:["p[_ngcontent-%COMP%]{margin:1em}"]}),t})();function kq(t,e){1&t&&(Qo(0,"div"),Qo(1,"h1"),Na(2,"Please Log in or Create an Account"),Xo(),Qo(3,"p"),Na(4,"You are not currently logged in."),Xo(),Xo())}function Aq(t,e){if(1&t){const t=ea();Qo(0,"div"),Qo(1,"div",3),Qo(2,"div",4),Qo(3,"h2"),Na(4,"Welcome!"),Xo(),Qo(5,"p"),Na(6,"Thank you for creating an account on Autism DRIVE. We would like to learn a little more about you, so we can connect you with the best possible resources. To create your profile, please select all the items below that describe you. If appropriate, you will have additional opportunities to create profiles for your children or dependents after completing your own profile. Once we have this information we can connect you to current and future research studies, and together, find ways to improve the lives of people living with autism."),Xo(),Qo(7,"form",5),Ko(8,"formly-form",6),Qo(9,"button",7),ra("click",function(){return Be(t),ua(2).createMeta()}),Na(10,"Submit"),Xo(),Xo(),Xo(),Xo(),Xo()}if(2&t){const t=ua(2);dr(7),qo("formGroup",t.form),dr(1),qo("model",t.model)("fields",t.fields)("options",t.options)("form",t.form)}}function Oq(t,e){if(1&t&&(Qo(0,"div"),Ko(1,"app-profile-meta",8),Xo()),2&t){const t=ua(2);dr(1),qo("user",t.user)("meta",t.userMeta)}}function Eq(t,e){1&t&&(Qo(0,"p"),Na(1," You indicated that you are a professional working in Autism research and treatment. Once your profile is complete we will be able to notify you about important updates. "),Xo())}function Tq(t,e){1&t&&(Qo(0,"p"),Na(1," Once your profile is complete we will be able to notify you about important updates. "),Xo())}function Pq(t,e){1&t&&(Qo(0,"p"),Na(1," Once your profile is complete, you\u2019ll be able to enroll in any relevant currently-running studies. "),Xo())}function Dq(t,e){1&t&&(Qo(0,"p"),Na(1," Once your complete your profile and the profiles of your dependents, you\u2019ll be able to enroll them in any relevant currently-running studies. "),Xo())}function Mq(t,e){1&t&&Ko(0,"app-loading",11)}function Iq(t,e){if(1&t&&Ko(0,"app-participant-profile",14),2&t){const t=e.$implicit,i=ua(4);fa("id","dependent_participant_",t.id,""),qo("participant",t)("user",i.user)}}function Rq(t,e){1&t&&(Qo(0,"p"),Na(1,"In order to add a dependent you must complete your own profile first"),Xo())}function Lq(t,e){if(1&t){const t=ea();Qo(0,"button",26),ra("click",function(e){return Be(t),ua(5).enrollDependent(e)}),Na(1,"Create another profile "),Xo()}2&t&&qo("disabled",ua(5).selfPercentComplete<100)}function Fq(t,e){if(1&t&&(Qo(0,"div",24),jo(1,Rq,2,0,"p",2),jo(2,Lq,2,1,"button",25),Xo()),2&t){const t=ua(4);dr(1),qo("ngIf",t.selfPercentComplete<100),dr(1),qo("ngIf",t.user.getSelf())}}function Nq(t,e){if(1&t&&(Qo(0,"mat-list-item"),Qo(1,"a",29),Na(2),Xo(),Qo(3,"p",30),Na(4),Xo(),Xo()),2&t){const t=e.$implicit;dr(1),fa("href","/#/study/",t.study.id,"",ms),dr(1),Va(t.study.short_title),dr(2),Va(t.study.short_description)}}function Vq(t,e){if(1&t&&(Qo(0,"div",27),Qo(1,"mat-card-subtitle"),Na(2,"Studies about which you have inquired"),Xo(),jo(3,Nq,5,3,"mat-list-item",28),Xo()),2&t){const t=ua(4);dr(3),qo("ngForOf",t.studyInquiries)}}function Bq(t,e){if(1&t&&(Qo(0,"mat-list-item"),Qo(1,"a",29),Na(2),Xo(),Qo(3,"p",30),Na(4),Xo(),Xo()),2&t){const t=e.$implicit;dr(1),fa("href","/#/study/",t.id,"",ms),dr(1),Va(t.short_title),dr(2),Va(t.short_description)}}function Hq(t,e){if(1&t&&(Qo(0,"div",31),Qo(1,"mat-card-subtitle"),Na(2,"All currently-enrolling studies"),Xo(),jo(3,Bq,5,3,"mat-list-item",28),Xo()),2&t){const t=ua(4);dr(3),qo("ngForOf",t.currentStudies)}}function zq(t,e){if(1&t&&(Qo(0,"div",12),Qo(1,"div",12),Qo(2,"div",13),Ko(3,"app-participant-profile",14),jo(4,Iq,1,3,"app-participant-profile",15),Xo(),jo(5,Fq,3,2,"div",16),Xo(),Qo(6,"div"),Qo(7,"mat-card"),Qo(8,"mat-tab-group"),Qo(9,"mat-tab",17),Qo(10,"mat-card-title"),Na(11,"Research Studies"),Xo(),Qo(12,"mat-card-content"),Qo(13,"mat-list"),jo(14,Vq,4,1,"div",18),jo(15,Hq,4,1,"div",19),Xo(),Xo(),Xo(),Qo(16,"mat-tab",20),Ko(17,"app-favorite-resources",21),Xo(),Qo(18,"mat-tab",22),Ko(19,"app-favorite-topics",23),Xo(),Xo(),Xo(),Xo(),Xo()),2&t){const t=ua(3);dr(3),fa("id","self_participant_",t.self.id,""),qo("participant",t.self)("user",t.user),dr(1),qo("ngForOf",t.dependents),dr(1),qo("ngIf",t.user.getSelf().relationship!==t.relationships.SELF_INTERESTED),dr(9),qo("ngIf",t.studyInquiries&&t.studyInquiries.length>0),dr(1),qo("ngIf",t.currentStudies&&t.currentStudies.length>0),dr(2),qo("favoriteResources",t.favoriteResources),dr(2),qo("currentUser",t.user)}}function Gq(t,e){if(1&t&&(Qo(0,"div"),Qo(1,"h1"),Na(2,"Manage Your Profiles"),Xo(),Qo(3,"div"),jo(4,Eq,2,0,"p",2),jo(5,Tq,2,0,"p",2),jo(6,Pq,2,0,"p",2),jo(7,Dq,2,0,"p",2),jo(8,Mq,1,0,"app-loading",9),jo(9,zq,20,9,"div",10),Xo(),Xo()),2&t){const t=ua(2);dr(4),qo("ngIf",t.user.getSelf().relationship===t.relationships.SELF_PROFESSIONAL),dr(1),qo("ngIf",t.user.getSelf().relationship===t.relationships.SELF_INTERESTED),dr(1),qo("ngIf",t.user.getSelf().relationship===t.relationships.SELF_PARTICIPANT),dr(1),qo("ngIf",t.user.getSelf().relationship===t.relationships.SELF_GUARDIAN),dr(1),qo("ngIf",t.loading),dr(1),qo("ngIf",!t.loading)}}function Uq(t,e){if(1&t&&(Qo(0,"div",1),jo(1,kq,5,0,"div",2),jo(2,Aq,11,5,"div",2),jo(3,Oq,2,2,"div",2),jo(4,Gq,10,6,"div",2),Xo()),2&t){const t=ua();dr(1),qo("ngIf",t.getState()===t.possibleStates.NEEDS_USER),dr(1),qo("ngIf",t.getState()===t.possibleStates.NEEDS_META),dr(1),qo("ngIf",t.getState()===t.possibleStates.NEEDS_PARTICIPANT),dr(1),qo("ngIf",t.getState()===t.possibleStates.HAS_PARTICIPANT)}}var jq=function(t){return t.NEEDS_USER="NEEDS_USER",t.NEEDS_META="NEEDS_META",t.NEEDS_PARTICIPANT="NEEDS_PARTICIPANT",t.HAS_PARTICIPANT="PARTICIPANT",t}({});let Wq=(()=>{class t{constructor(t,e,i,n){this.authenticationService=t,this.api=e,this.router=i,this.route=n,this.possibleStates=jq,this.forceMetaFormState=!1,this.relationships=LG,this.loading=!0,this.form=new cy({}),this.model=new NG({}),this.options={},this.fields=[{validators:{fieldMatch:{expression:t=>{const{self_participant:e,guardian:i,professional:n,interested:s}=t.value;return!!(e||i||n||s)},message:"Please select at least one option."}},wrappers:["group-validation"],fieldGroup:[{key:"self_participant",type:"checkbox",templateOptions:{label:"I am autistic/I have autism",indeterminate:!1,class:"self_participant"}},{key:"self_has_guardian",type:"radio",templateOptions:{label:"Do you have a legal guardian?",options:[{value:!0,label:"Yes",id:"1"},{value:!1,label:"No",id:"2"}]},expressionProperties:{"templateOptions.required":"model.self_participant"},hideExpression:"!model.self_participant"},{key:"guardian",type:"checkbox",className:"guardian",templateOptions:{label:"I am the parent/legal guardian of someone with autism",indeterminate:!1}},{key:"guardian_has_dependent",type:"radio",className:"guardian_has_dependent",templateOptions:{label:"Are you their legal guardian?",options:[{value:!0,label:"Yes",id:"3"},{value:!1,label:"No",id:"4"}]},expressionProperties:{"templateOptions.required":"model.guardian"},hideExpression:"!model.guardian"},{key:"professional",type:"checkbox",templateOptions:{label:"I am a professional who works with the autism community",indeterminate:!1}},{key:"interested",type:"checkbox",templateOptions:{label:"None of the above, but I am interested in autism research and resources",indeterminate:!1}}]}],this.route.queryParams.subscribe(t=>{console.log("Params",t),t.hasOwnProperty("meta")&&(this.forceMetaFormState=!0)}),this.authenticationService.currentUser.subscribe(t=>{this.user=t,console.log(t),this.self=t.getSelf(),this.dependents=t.getDependents(),this.api.getUserMeta(t.id).subscribe(t=>{console.log("UserMeta",t),this.userMeta=t,this.loading=!1},t=>{console.error(t),this.loading=!1})},t=>{console.error(t),this.user=null,this.loading=!1})}ngOnInit(){this.refreshParticipants(),this.api.getUserStudyInquiries(this.user.id).subscribe(t=>this.studyInquiries=t),this.api.getStudies().subscribe(t=>{this.currentStudies=t.filter(t=>"currently_enrolling"===t.status)}),this.favoriteResources=this.user.user_favorites.filter(t=>"resource"===t.type).map(t=>t.resource).sort(t=>t.id)}refreshParticipants(){this.user&&this.api.getUser(this.user.id).subscribe(t=>{const e=new VG(t);this.self=e.getSelf(),this.dependents=e.getDependents(),e.getSelf()&&this.api.getFlow(e.getSelf().getFlowName(),e.getSelf().id).subscribe(t=>{this.selfPercentComplete=t.percentComplete(),console.log("selfPercentComplete",this.selfPercentComplete)})})}getState(){return this.user?void 0===this.userMeta||this.forceMetaFormState?jq.NEEDS_META:void 0===this.user.getSelf()?jq.NEEDS_PARTICIPANT:jq.HAS_PARTICIPANT:jq.NEEDS_USER}enrollDependent(t){t.preventDefault(),this.router.navigate(["terms",LG.DEPENDENT])}createMeta(){this.form.valid&&(this.model.id=this.user.id,this.api.addUserMeta(this.model).subscribe(t=>{this.userMeta=t,this.forceMetaFormState=!1}))}}return t.\u0275fac=function(e){return new(e||t)($o(BG),$o(WG),$o(lG),$o(UH))},t.\u0275cmp=Xt({type:t,selectors:[["app-profile"]],decls:1,vars:1,consts:[["class","profile mat-typography",4,"ngIf"],[1,"profile","mat-typography"],[4,"ngIf"],["fxLayout","row","fxLayout.lt-lg","column","fxLayoutGap","2em",1,"meta-form"],["fxFlex","100%"],["id","meta-form",3,"formGroup"],[3,"model","fields","options","form"],["id","submit_meta","mat-flat-button","","type","submit","color","accent",3,"click"],[3,"user","meta"],["message","Loading...",4,"ngIf"],["fxLayout","column","fxLayoutGap","40px grid",4,"ngIf"],["message","Loading..."],["fxLayout","column","fxLayoutGap","40px grid"],["fxLayout","row wrap","fxLayoutGap","40px grid"],[3,"participant","user","id"],[3,"participant","user","id",4,"ngFor","ngForOf"],["fxFlex","60%",4,"ngIf"],["label","My Studies"],["id","study-inquiries",4,"ngIf"],["id","current-studies",4,"ngIf"],["label","My Resources"],[3,"favoriteResources"],["label","My Topics"],[3,"currentUser"],["fxFlex","60%"],["mat-flat-button","","color","primary","id","enroll_dependent",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","primary","id","enroll_dependent",3,"disabled","click"],["id","study-inquiries"],[4,"ngFor","ngForOf"],["mat-line","",3,"href"],["mat-line",""],["id","current-studies"]],template:function(t,e){1&t&&jo(0,Uq,5,4,"div",0),2&t&&qo("ngIf",e.user)},directives:[Jd,o_,p_,k_,_y,jb,ky,NF,TA,G$,Qj,J$,Kd,ZA,ZR,zR,QA,YA,fP,iq,Sq,XA,bP,Ex],styles:[".profile[_ngcontent-%COMP%]{margin:2%}mat-card-subtitle[_ngcontent-%COMP%]{font-weight:700;font-size:large}button[_ngcontent-%COMP%]{white-space:pre-wrap!important}.tiles[_ngcontent-%COMP%]{margin:4em 0;text-align:center}.meta-form[_ngcontent-%COMP%]{max-width:80%;margin:auto} .mat-checkbox-label{white-space:normal;margin-top:-1em} .mat-checkbox-layout{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:start;align-items:flex-start;-ms-flex-pack:start;justify-content:flex-start;vertical-align:top} .mat-checkbox-inner-container{margin-top:-.7em!important}"]}),t})();const $q=function(t){return t.replace(/([-_][a-z]|^[a-z])/gi,t=>t.toUpperCase().replace("-"," ").replace("_"," "))};class qq{constructor(t){this.api=t,this.stepSubject=new cp([]),this.countSubject=new cp(0),this.loadingSubject=new cp(!1)}connect(t){return this.stepSubject.asObservable()}disconnect(t){this.stepSubject.complete(),this.loadingSubject.complete(),this.countSubject.complete()}loadQuestionnaires(t){this.loadingSubject.next(!0),this.api.getQuestionnaireList(t).subscribe(t=>{this.stepSubject.next(t)})}}const Yq=function(t){return{selected:t}};function Qq(t,e){if(1&t){const t=ea();Qo(0,"span"),Qo(1,"button",6),ra("click",function(){Be(t);const i=e.$implicit;return ua(2).changeTable(i)}),Na(2),Xo(),Xo()}if(2&t){const t=e.$implicit,i=ua(2);dr(1),qo("ngClass",pc(2,Yq,i.selected_info==t)),dr(1),Ba(" ",t.display_name," ")}}function Xq(t,e){if(1&t){const t=ea();Qo(0,"div"),Qo(1,"h3"),Na(2,"Related Tables"),Xo(),Qo(3,"p"),Na(4,"This questionnaire contains some related tables that contain additional details. Use these buttons to change the view and look at sub-tables."),Xo(),Qo(5,"button",6),ra("click",function(){Be(t);const e=ua();return e.changeTable(e.questionnaire_info)}),Na(6),Xo(),jo(7,Qq,3,4,"span",3),Xo()}if(2&t){const t=ua();dr(5),qo("ngClass",pc(3,Yq,t.selected_info==t.questionnaire_info)),dr(1),Ba(" ",t.questionnaire_info.display_name," "),dr(1),qo("ngForOf",t.questionnaire_info.sub_tables)}}function Kq(t,e){if(1&t&&(Qo(0,"th",10),Na(1),Xo()),2&t){const t=ua().$implicit,e=ua();dr(1),Ba(" ",e.snakeToUpperCase(t.name)," ")}}function Zq(t,e){if(1&t&&(Qo(0,"td",11),Na(1),Xo()),2&t){const t=e.$implicit,i=ua().$implicit,n=ua();dr(1),Ba(" ",n.format_element(t,i),"")}}function Jq(t,e){if(1&t&&(Qo(0,"div"),Zo(1,7),jo(2,Kq,2,1,"th",8),jo(3,Zq,2,1,"td",9),Jo(),Xo()),2&t){const t=e.$implicit;dr(1),ma("matColumnDef",t.name)}}function tY(t,e){1&t&&Ko(0,"tr",12)}function eY(t,e){1&t&&Ko(0,"tr",13)}let iY=(()=>{class t{constructor(t){this.api=t,this.displayedColumns=[],this.columnNames=[]}get snakeToUpperCase(){return $q}ngOnChanges(){this.selected_info=this.questionnaire_info,this.changeTable(this.selected_info)}changeTable(t){this.selected_info=t,this.dataSource=new qq(this.api),this.dataSource.loadQuestionnaires(this.selected_info.table_name),this.load_columns()}load_columns(){this.displayedColumns=[],this.columnNames=[],this.api.getQuestionnaireListMeta(this.selected_info.table_name).subscribe(t=>{for(const e of t.fields)this.displayedColumns.includes(e.name)||this.displayedColumns.push({name:e.name,type:e.type}),this.columnNames.includes(e.name)||this.columnNames.push(e.name)})}format_element(t,e){return"DATETIME"===e.type?new Date(t[e.name]).toUTCString():t[e.name]}exportQ(t){this.api.exportQuestionnaire(t.table_name).subscribe(t=>{console.log("data",t);const e=t.headers.get("x-filename"),i=new Blob([t.body],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),n=URL.createObjectURL(i),s=document.createElement("a");s.href=n,s.download=e,window.document.body.appendChild(s),s.click(),window.document.body.removeChild(s),URL.revokeObjectURL(n)})}}return t.\u0275fac=function(e){return new(e||t)($o(WG))},t.\u0275cmp=Xt({type:t,selectors:[["app-questionnaire-data-table"]],inputs:{questionnaire_info:"questionnaire_info"},features:[me],decls:9,vars:7,consts:[["mat-flat-button","","color","accent",3,"click"],[4,"ngIf"],[3,"dataSource"],[4,"ngFor","ngForOf"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-flat-button","","color","accent",3,"ngClass","click"],[3,"matColumnDef"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(t,e){1&t&&(Qo(0,"h2"),Na(1),Xo(),Qo(2,"button",0),ra("click",function(){return e.exportQ(e.questionnaire_info)}),Na(3),Xo(),jo(4,Xq,8,5,"div",1),Qo(5,"mat-table",2),jo(6,Jq,4,1,"div",3),jo(7,tY,1,0,"tr",4),jo(8,eY,1,0,"tr",5),Xo()),2&t&&(dr(1),Va(e.questionnaire_info.display_name),dr(2),Ba(" Export ",e.questionnaire_info.display_name," Data\n"),dr(1),qo("ngIf",e.questionnaire_info.sub_tables.length>0),dr(1),qo("dataSource",e.dataSource),dr(1),qo("ngForOf",e.displayedColumns),dr(1),qo("matHeaderRowDef",e.columnNames),dr(1),qo("matRowDefColumns",e.columnNames))},directives:[TA,Jd,$I,Kd,sR,oR,Qd,Pg,ZI,XI,YI,tR,iR,lR,uR],styles:["td.mat-cell[_ngcontent-%COMP%], th.mat-header-cell[_ngcontent-%COMP%]{padding-right:1em}button[_ngcontent-%COMP%]{margin-bottom:2em;margin-left:2em}button.mat-flat-button.mat-accent.selected[_ngcontent-%COMP%]{background:#232d4b}"]}),t})();function nY(t,e){if(1&t){const t=ea();Qo(0,"mat-list",8),Qo(1,"mat-list-item"),Qo(2,"mat-icon",9),Na(3),Xo(),Na(4),Qo(5,"button",10),ra("click",function(){Be(t);const i=e.$implicit;return ua().selectQuestionnaire(i)}),Na(6),Xo(),Xo(),Xo()}if(2&t){const t=e.$implicit;dr(3),Va(t.getIcon()),dr(1),Ba(" (",t.size,") "),dr(1),qo("disabled",0==t.size),dr(1),Va(t.display_name)}}function sY(t,e){if(1&t&&(Qo(0,"mat-drawer-content",11),Ko(1,"app-questionnaire-data-table",12),Xo()),2&t){const t=ua();dr(1),qo("questionnaire_info",t.currentQuestionnaire)}}let rY=(()=>{class t{constructor(t,e,i){this.api=t,this.sidebarOpen=!0,this.mobileQuery=i.matchMedia("(max-width: 600px)"),this._mobileQueryListener=()=>e.detectChanges(),this.mobileQuery.addListener(this._mobileQueryListener),window.addEventListener("resize",this._mobileQueryListener)}get snakeToUpperCase(){return $q}ngOnInit(){this.api.getQuestionnaireInfoList().subscribe(t=>{this.questionnaire_info=t})}ngOnDestroy(){this.mobileQuery.removeListener(this._mobileQueryListener),window.removeEventListener("resize",this._mobileQueryListener)}selectQuestionnaire(t){return this.currentQuestionnaire=t,this.sidebarOpen=!1,this.currentQuestionnaire}exportAll(){console.log("clicking the button for export all"),this.api.exportQuestionnaire("all").subscribe(t=>{console.log("data",t);const e=t.headers.get("x-filename"),i=new Blob([t.body],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),n=URL.createObjectURL(i),s=document.createElement("a");s.href=n,s.download=e,window.document.body.appendChild(s),s.click(),window.document.body.removeChild(s),URL.revokeObjectURL(n)})}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(Vl),$o(_D))},t.\u0275cmp=Xt({type:t,selectors:[["app-questionnaire-data-view"]],decls:14,vars:4,consts:[[1,"mat-typography"],["fxLayout","row","fxLayoutAlign","auto center"],["mat-fab","","color","primary",3,"click"],["mat-flat-button","","color","accent",3,"click"],[3,"mode","opened","openedChange"],["sidenav",""],["class","data-list","dense","",4,"ngFor","ngForOf"],["class","pad-2",4,"ngIf"],["dense","",1,"data-list"],["matListIcon",""],["mat-button","",3,"disabled","click"],[1,"pad-2"],[3,"questionnaire_info"]],template:function(t,e){if(1&t){const t=ea();Qo(0,"div",0),Qo(1,"div"),Qo(2,"div",1),Qo(3,"h1"),Qo(4,"button",2),ra("click",function(){return Be(t),Wo(11).toggle()}),Qo(5,"mat-icon"),Na(6,"menu"),Xo(),Xo(),Xo(),Qo(7,"button",3),ra("click",function(){return e.exportAll()}),Na(8," Export All "),Xo(),Xo(),Qo(9,"mat-drawer-container"),Qo(10,"mat-drawer",4,5),ra("openedChange",function(t){return e.sidebarOpen=t}),jo(12,nY,7,4,"mat-list",6),Xo(),jo(13,sY,2,1,"mat-drawer-content",7),Xo(),Xo(),Xo()}2&t&&(dr(10),qo("mode","over")("opened",e.sidebarOpen),dr(2),qo("ngForOf",e.questionnaire_info),dr(1),qo("ngIf",e.currentQuestionnaire))},directives:[o_,Z_,TA,JT,NM,FM,Kd,Jd,fP,bP,_P,LM,iY],styles:["mat-drawer-container[_ngcontent-%COMP%]{min-height:100vh}mat-drawer-container[_ngcontent-%COMP%], mat-drawer-content[_ngcontent-%COMP%]{background-color:#fff}.pad-2[_ngcontent-%COMP%]{padding:2em}button[_ngcontent-%COMP%]{margin:2em}"]}),t})();function oY(t,e){if(1&t&&(Qo(0,"div",16),Na(1),Xo()),2&t){const t=ua(2);dr(1),Va(t.errorMessage)}}function aY(t,e){if(1&t){const t=ea();Qo(0,"footer",17),Qo(1,"button",18),Na(2,"Next"),Xo(),Qo(3,"button",19),ra("click",function(e){return Be(t),ua(2).goHome(e)}),Na(4,"Cancel"),Xo(),Xo()}}function lY(t,e){1&t&&(Qo(0,"footer"),Ko(1,"app-loading"),Xo())}function cY(t,e){if(1&t&&(Qo(0,"formly-form",12),jo(1,oY,2,1,"div",13),jo(2,aY,5,0,"footer",14),jo(3,lY,2,0,"footer",15),Xo()),2&t){const t=ua();qo("form",t.form)("fields",t.fields)("model",t.model),dr(1),qo("ngIf",t.errorMessage),dr(1),qo("ngIf","form"===t.registerStateValue),dr(1),qo("ngIf","submitting"===t.registerStateValue)}}function uY(t,e){if(1&t){const t=ea();Qo(0,"footer",20),Qo(1,"h2"),Na(2,"Account Created!"),Xo(),Qo(3,"p"),Na(4,"Please check your email to complete the signin process."),Xo(),Qo(5,"button",21),ra("click",function(e){return Be(t),ua().goHome(e)}),Na(6," Continue to browse "),Xo(),Xo()}}let dY=(()=>{class t{constructor(t,e,i,n,s,r){this.api=t,this.changeDetectorRef=e,this.router=i,this.route=n,this.googleAnalytics=s,this.meta=r,this.errorMessage="",this.form=new cy({}),this.model={},this.fields=[{key:"email",type:"input",templateOptions:{type:"email",label:"Email Address:",placeholder:"Enter email",required:!0},validators:{validation:["email"]}}],this._stateSubject=new cp("form"),this.registerState=this._stateSubject.asObservable(),this.user=new VG({id:null,email:this.model.email,role:"User"}),this.meta.updateTag({property:"og:image",content:location.origin+"/assets/join/hero.jpg"},"property='og:image'"),this.meta.updateTag({property:"og:image:secure_url",content:location.origin+"/assets/join/hero.jpg"},"property='og:image:secure_url'"),this.meta.updateTag({name:"twitter:image",content:location.origin+"/assets/join/hero.jpg"},"name='twitter:image'")}ngOnInit(){}submit(){localStorage.removeItem("token_url"),localStorage.setItem("returnUrl",this.route.snapshot.queryParams.returnUrl),this.form.valid&&(this._stateSubject.next("submitting"),this.registerState=this._stateSubject.asObservable(),this.errorMessage="",this.user.email=this.model.email,this.api.addUser(this.user).subscribe(t=>{this.user=t,t.hasOwnProperty("token_url")&&localStorage.setItem("token_url",t.token_url),this.googleAnalytics.accountEvent("register"),this._stateSubject.next("wait_for_email"),this.registerState=this._stateSubject.asObservable(),this.changeDetectorRef.detectChanges()},t=>{this._stateSubject.next("form"),this.registerState=this._stateSubject.asObservable(),this.errorMessage=t,this.changeDetectorRef.detectChanges()}))}goHome(t){t.preventDefault(),this.router.navigate(["home"])}get registerStateValue(){return this._stateSubject.value}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(Vl),$o(lG),$o(UH),$o(IG),$o(ip))},t.\u0275cmp=Xt({type:t,selectors:[["app-register"]],decls:33,vars:3,consts:[["id","hero",1,"gradient-overlay","container","with-escaping-tiles"],["fxLayoutAlign","center","id","TopOfJoin",1,"row","escaping-tiles-2x"],[1,"form","border-box"],[3,"formGroup","ngSubmit"],[3,"form","fields","model",4,"ngIf"],["id","confirmation_message",4,"ngIf"],[1,"register-container"],["fxLayout","column","fxLayoutGap","10px","fxFlex.gt-md","80%",1,"row","mat-typography"],[1,"bold-title"],["href","/#/studies"],["href","/#/uva-education"],["href","/#/search"],[3,"form","fields","model"],["id","error_message","class","display mat-error",4,"ngIf"],["fxLayout","column","fxLayoutGap","2%","fxLayoutAlign","center",4,"ngIf"],[4,"ngIf"],["id","error_message",1,"display","mat-error"],["fxLayout","column","fxLayoutGap","2%","fxLayoutAlign","center"],["mat-flat-button","","type","submit","color","primary","id","submit"],["mat-flat-button","","color","accent","id","cancel",3,"click"],["id","confirmation_message"],["color","primary","mat-flat-button","","id","continue",3,"click"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"div",1),Qo(2,"div",2),Qo(3,"h1"),Na(4,"Join Autism DRIVE"),Xo(),Qo(5,"form",3),ra("ngSubmit",function(){return e.submit()}),jo(6,cY,4,6,"formly-form",4),jo(7,uY,7,0,"footer",5),Xo(),Xo(),Xo(),Xo(),Qo(8,"div",6),Qo(9,"div",7),Qo(10,"div"),Qo(11,"h1",8),Na(12,"The more people take part in autism research, the faster we can promote positive outcomes"),Xo(),Qo(13,"p"),Na(14,"We are seeking adults with autism, children with autism and their families, and professionals to join us! If you complete our short registration process, you can be connected with researchers about study opportunities that "),Qo(15,"i"),Na(16,"are relevant to you."),Xo(),Xo(),Xo(),Qo(17,"div"),Qo(18,"h2"),Na(19,"Many studies involve incentives like gift cards, testing reports, or access to interventions for free."),Xo(),Qo(20,"p"),Na(21,"Visit our "),Qo(22,"a",9),Na(23,"studies page"),Xo(),Na(24," and contact the study teams to learn more about what each study offers. Creating an account also gives you free access to content of our "),Qo(25,"a",10),Na(26,"education"),Xo(),Na(27," page and the opportunity to save your favorite resources from our "),Qo(28,"a",11),Na(29,"statewide resources directory."),Xo(),Xo(),Xo(),Qo(30,"div"),Qo(31,"h2"),Na(32,"We can\u2019t make a difference without you. Let\u2019s transform outcomes. Together."),Xo(),Xo(),Xo(),Xo()),2&t&&(dr(5),qo("formGroup",e.form),dr(1),qo("ngIf","wait_for_email"!==e.registerStateValue),dr(1),qo("ngIf","wait_for_email"===e.registerStateValue))},directives:[Z_,_y,jb,ky,Jd,o_,p_,k_,NF,TA,Qj],styles:["#hero[_ngcontent-%COMP%]{background-image:url(/assets/join/hero.jpg);background-position:0 18%;padding-top:8rem;padding-bottom:8rem;background-size:100% auto}@media (max-width:768px){#hero[_ngcontent-%COMP%]{background-position:0 0}}#hero[_ngcontent-%COMP%] .hero-content[_ngcontent-%COMP%]{display:grid}@media (min-width:768px){#hero[_ngcontent-%COMP%] .hero-content[_ngcontent-%COMP%]{grid-template-columns:2fr 1fr}}@media (min-width:992px){#hero[_ngcontent-%COMP%] .hero-content[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr}}@media (min-width:1200px){#hero[_ngcontent-%COMP%] .hero-content[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr}}#hero[_ngcontent-%COMP%] .form.border-box[_ngcontent-%COMP%]{max-width:100%;background-color:#fff;color:#000;padding:2em}#hero[_ngcontent-%COMP%] .form.border-box[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .bold-title[_ngcontent-%COMP%]{text-transform:uppercase}.bold-title[_ngcontent-%COMP%]{font-size:1.8em;font-weight:700}.register-container[_ngcontent-%COMP%]{margin:1em}"]}),t})();class hY extends MU{constructor(t){super(t),this._props=t;for(const e in this._props)this._props.hasOwnProperty(e)&&(this[e]=this._props[e])}}function pY(t,e){if(1&t){const t=ea();Qo(0,"mat-chip",5),ra("click",function(){Be(t);const i=e.$implicit;return ua(2).goFilter(["/search"],"related_topic",{queryParams:{category:i.category.id}})}),Na(1),Xo()}if(2&t){const t=e.$implicit;dr(1),Va(t.category.name)}}function mY(t,e){if(1&t&&(Qo(0,"div"),Qo(1,"mat-card-title"),Na(2,"Related Topics"),Xo(),Qo(3,"mat-chip-list"),jo(4,pY,2,1,"mat-chip",4),Xo(),Xo()),2&t){const t=ua();dr(4),qo("ngForOf",t.categories)}}function fY(t,e){if(1&t){const t=ea();Qo(0,"mat-chip",5),ra("click",function(){Be(t);const i=e.$implicit;return ua(2).goFilter(["/search"],"related_age",{queryParams:{ages:i}})}),Na(1),Xo()}if(2&t){const t=e.$implicit,i=ua(2);dr(1),Va(i.ageLabels[t])}}function gY(t,e){if(1&t&&(Qo(0,"div",6),Qo(1,"mat-card-title"),Na(2,"Related Age Ranges"),Xo(),Qo(3,"mat-chip-list"),jo(4,fY,2,1,"mat-chip",4),Xo(),Xo()),2&t){const t=ua();dr(4),qo("ngForOf",t.ages)}}function _Y(t,e){if(1&t){const t=ea();Qo(0,"mat-chip",5),ra("click",function(){Be(t);const i=e.$implicit;return ua(2).goFilter(["/search"],"related_language",{queryParams:{languages:i}})}),Na(1),Xo()}if(2&t){const t=e.$implicit,i=ua(2);dr(1),Va(i.languageLabels[t])}}function bY(t,e){if(1&t&&(Qo(0,"div",7),Qo(1,"mat-card-title"),Na(2,"Related Languages"),Xo(),Qo(3,"mat-chip-list"),jo(4,_Y,2,1,"mat-chip",4),Xo(),Xo()),2&t){const t=ua();dr(4),qo("ngForOf",t.languages)}}function yY(t,e){if(1&t){const t=ea();Qo(0,"mat-chip",10),ra("click",function(){Be(t);const i=e.$implicit;return ua(2).goFilter(["/covid19-resources/",{category:i}],"related_covid19_topic",{queryParams:{covid19_categories:i}})}),Na(1),Xo()}if(2&t){const t=e.$implicit,i=ua(2);dr(1),Va(i.covid19Labels[t].split(": ")[0])}}function vY(t,e){if(1&t&&(Qo(0,"div",8),Qo(1,"mat-card-title"),Na(2,"COVID-19 Topics"),Xo(),Qo(3,"mat-chip-list"),jo(4,yY,2,1,"mat-chip",9),Xo(),Xo()),2&t){const t=ua();dr(4),qo("ngForOf",t.covid19_categories)}}let wY=(()=>{class t{constructor(t,e){this.router=t,this.googleAnalytics=e,this.categories=[],this.ages=[],this.languages=[],this.covid19_categories=[],this.ageLabels=EU.labels,this.languageLabels=TU.labels,this.covid19Labels=PU.labels}ngOnInit(){}goFilter(t,e,i){this.googleAnalytics.relatedContentEvent(e,this.parentComponent),this.router.navigate(t,i)}}return t.\u0275fac=function(e){return new(e||t)($o(lG),$o(IG))},t.\u0275cmp=Xt({type:t,selectors:[["app-filter-chips"]],inputs:{categories:"categories",ages:"ages",languages:"languages",covid19_categories:"covid19_categories",parentComponent:"parentComponent"},decls:5,vars:4,consts:[[4,"ngIf"],["id","ages","class","margin-top",4,"ngIf"],["id","languages","class","margin-top",4,"ngIf"],["id","covid19_categories","class","margin-top",4,"ngIf"],["color","primary","selected","",3,"click",4,"ngFor","ngForOf"],["color","primary","selected","",3,"click"],["id","ages",1,"margin-top"],["id","languages",1,"margin-top"],["id","covid19_categories",1,"margin-top"],["color","accent","selected","",3,"click",4,"ngFor","ngForOf"],["color","accent","selected","",3,"click"]],template:function(t,e){1&t&&(Qo(0,"mat-card"),jo(1,mY,5,1,"div",0),jo(2,gY,5,1,"div",1),jo(3,bY,5,1,"div",2),jo(4,vY,5,1,"div",3),Xo()),2&t&&(dr(1),qo("ngIf",e.categories.length>0),dr(1),qo("ngIf",e.ages&&e.ages.length>0),dr(1),qo("ngIf",e.languages&&e.languages.length>0),dr(1),qo("ngIf",e.covid19_categories&&e.covid19_categories.length>0))},directives:[ZA,Jd,QA,OO,Kd,wO],styles:["mat-chip[_ngcontent-%COMP%]{cursor:pointer}.margin-top[_ngcontent-%COMP%]{margin-top:1em}"]}),t})();function CY(t,e){if(1&t){const t=ea();Qo(0,"div"),Qo(1,"button",1),ra("click",function(){return Be(t),ua().openEdit()}),Qo(2,"mat-icon"),Na(3,"edit"),Xo(),Xo(),Xo()}if(2&t){const t=ua();dr(1),ma("matTooltip",t.editLabel)}}let xY=(()=>{class t{constructor(t){this.router=t}ngOnInit(){}openEdit(){this.router.navigateByUrl(this.editLink)}}return t.\u0275fac=function(e){return new(e||t)($o(lG))},t.\u0275cmp=Xt({type:t,selectors:[["app-edit-button"]],inputs:{currentUser:"currentUser",editLabel:"editLabel",editLink:"editLink"},decls:1,vars:1,consts:[[4,"ngIf"],["mat-mini-fab","","color","accent","aria-label","Edit",3,"matTooltip","click"]],template:function(t,e){1&t&&jo(0,CY,4,1,"div",0),2&t&&qo("ngIf",e.currentUser&&e.currentUser.permissions.includes("edit_resource"))},directives:[Jd,TA,AD,JT],styles:[""]}),t})();function SY(t,e){if(1&t&&(Qo(0,"div",6),Na(1),Xo()),2&t){const t=ua(2);dr(1),Va(t.errorMessage)}}function kY(t,e){if(1&t&&(Qo(0,"footer",7),Qo(1,"button",8),Na(2,"Register"),Xo(),Qo(3,"button",9),Na(4,"Cancel"),Xo(),Xo()),2&t){const t=ua(2);dr(3),qo("mat-dialog-close",t.data.registered)}}function AY(t,e){1&t&&(Qo(0,"footer"),Ko(1,"app-loading"),Xo())}function OY(t,e){if(1&t&&(Qo(0,"formly-form",2),jo(1,SY,2,1,"div",3),jo(2,kY,5,1,"footer",4),jo(3,AY,2,0,"footer",5),Xo()),2&t){const t=ua();qo("form",t.form)("fields",t.fields)("model",t.model),dr(1),qo("ngIf",t.errorMessage),dr(1),qo("ngIf","form"===t.registerStateValue),dr(1),qo("ngIf","submitting"===t.registerStateValue)}}let EY=(()=>{class t{constructor(t,e,i,n,s,r,o){this.api=t,this.changeDetectorRef=e,this.route=i,this.googleAnalytics=n,this.authenticationService=s,this.dialogRef=r,this.data=o,this.errorMessage="",this.form=new cy({}),this.model={},this.fields=[{key:"first_name",type:"input",templateOptions:{label:"First Name:",required:!0}},{key:"last_name",type:"input",templateOptions:{label:"Last Name:",required:!0}},{key:"email",type:"input",templateOptions:{type:"email",label:"Email Address:",placeholder:"Enter email",required:!0},validators:{validation:["email"]}},{key:"emailConfirm",type:"input",templateOptions:{type:"email",label:"Confirm Email",placeholder:"Please re-enter your email",required:!0},validators:{validation:["emailConfirm"]}},{key:"zip_code",type:"input",templateOptions:{type:"number",label:"Zip Code:",max:99999,min:0,pattern:"\\d{5}",required:!0}},{key:"relationship_to_autism",type:"multicheckbox",templateOptions:{label:"Relationship to Autism:",description:"(select all that apply)",type:"array",options:[{value:"friend_colleague",label:"Friend/Colleague"},{value:"family_member",label:"Parent/Family Member"},{value:"self_advocate",label:"Individual With Autism"},{value:"professional",label:"Professional"},{value:"other",label:"Other"}],required:!0}},{key:"relationship_other",type:"input",templateOptions:{label:"How else are you related to Autism"},hideExpression:'!(model.relationship_to_autism && model.relationship_to_autism.includes("other"))'},{key:"marketing_channel",type:"multicheckbox",templateOptions:{label:"How did you find about the virtual event?:",description:"(select all that apply)",type:"array",options:[{value:"star_newsletter",label:"STAR e-newsletter"},{value:"facebook",label:"Facebook"},{value:"drive",label:"Autism DRIVE"},{value:"family_member",label:"Parent/Family Member"},{value:"friend_colleague",label:"Friend/Colleague"},{value:"other",label:"Other"}],required:!0}},{key:"marketing_other",type:"input",templateOptions:{label:"What other ways did you find out about this event"},hideExpression:'!(model.marketing_channel && model.marketing_channel.includes("other"))'},{key:"newsletter_consent",type:"checkbox",defaultValue:!0,templateOptions:{label:"Please sign me up for the STAR E-newsletter",description:"Send me notifications of workshops, information, events, and research opportunities offered by the UVA Supporting Transformative Autism Research Initiative and partnering organizations."}}],this._stateSubject=new cp("form"),this.registerState=this._stateSubject.asObservable(),this.authenticationService.currentUser.subscribe(t=>{t?(this.user=t,this.model.email=t.email,this.model.first_name=t.getSelf().identification.first_name,this.model.last_name=t.getSelf().identification.last_name,this.model.zip_code=t.getSelf().contact.zip):this.user=new VG({id:null,email:this.model.email,role:"User"})})}ngOnInit(){}submit(){localStorage.removeItem("token_url"),this.form.valid&&(this.model.event_id=this.data.event_id,null===this.user.id?(this._stateSubject.next("submitting"),this.registerState=this._stateSubject.asObservable(),this.errorMessage="",this.user.email=this.model.email,this.api.addUser(this.user).subscribe(t=>{this.user=t,this.model.user_id=this.user.id,this.api.submitRegistration(this.model).subscribe(),t.hasOwnProperty("token_url")&&localStorage.setItem("token_url",t.token_url),this.googleAnalytics.accountEvent("register"),this._stateSubject.next("wait_for_email"),this.registerState=this._stateSubject.asObservable(),this.changeDetectorRef.detectChanges(),this.data.registered=!0,this.dialogRef.close()},t=>{this._stateSubject.next("form"),this.registerState=this._stateSubject.asObservable(),this.errorMessage=t,this.changeDetectorRef.detectChanges()}),this.dialogRef.close()):(this.model.participant_id=this.user.getSelf().id,this.api.submitQuestionnaire("registration","registration_questionnaire",this.model).subscribe(()=>{this.googleAnalytics.stepCompleteEvent("registration_questionnaire"),console.log("submitting questionnaire",this.model),this.dialogRef.close()})))}get registerStateValue(){return this._stateSubject.value}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(Vl),$o(UH),$o(IG),$o(BG),$o(NO),$o(BO))},t.\u0275cmp=Xt({type:t,selectors:[["app-event-registration-form"]],decls:5,vars:3,consts:[[3,"formGroup","ngSubmit"],[3,"form","fields","model",4,"ngIf"],[3,"form","fields","model"],["id","error_message","class","display mat-error",4,"ngIf"],["fxLayout","column","fxLayoutGap","2%","fxLayoutAlign","center",4,"ngIf"],[4,"ngIf"],["id","error_message",1,"display","mat-error"],["fxLayout","column","fxLayoutGap","2%","fxLayoutAlign","center"],["mat-flat-button","","type","submit","color","primary","id","submit"],["mat-flat-button","","color","accent","id","cancel",3,"mat-dialog-close"]],template:function(t,e){1&t&&(Qo(0,"mat-dialog-content"),Qo(1,"h1"),Na(2),Xo(),Qo(3,"form",0),ra("ngSubmit",function(){return e.submit()}),jo(4,OY,4,6,"formly-form",1),Xo(),Xo()),2&t&&(dr(2),Va(e.data.title),dr(1),qo("formGroup",e.form),dr(1),qo("ngIf","wait_for_email"!==e.registerStateValue))},directives:[YO,_y,jb,ky,Jd,NF,o_,p_,Z_,TA,$O,Qj],styles:[""]}),t})();function TY(t,e){if(1&t){const t=ea();Qo(0,"div",3),Qo(1,"p"),Na(2,"Joining Autism DRIVE is the first step toward participating in our events. Click below to join and register."),Xo(),Qo(3,"button",4),ra("click",function(){return Be(t),ua().openDialog()}),Na(4,"Join And Register"),Xo(),Qo(5,"p"),Na(6,"Already a user? Sign in to see the link to register."),Xo(),Qo(7,"button",5),ra("click",function(){return Be(t),ua().goLogin()}),Na(8,"Sign In"),Xo(),Xo()}}function PY(t,e){if(1&t){const t=ea();Qo(0,"div"),Qo(1,"button",6),ra("click",function(){return Be(t),ua().openDialog()}),Na(2,"Register Now"),Xo(),Xo()}}let DY=(()=>{class t{constructor(t,e){this.router=t,this.dialog=e,this.hasCurrentUser=!1}ngOnInit(){}goLogin(){this.router.navigate(["/login"],{queryParams:{returnUrl:this.router.url}})}openDialog(){this.dialog.open(EY,{width:`${window.innerWidth}px`,data:{registered:!1,title:"Register for "+this.resource.title,event_id:this.resource.id}}).afterClosed().subscribe(t=>{t&&(this.hasCurrentUser=!0)})}}return t.\u0275fac=function(e){return new(e||t)($o(lG),$o(jO))},t.\u0275cmp=Xt({type:t,selectors:[["app-event-registration"]],inputs:{resource:"resource",hasCurrentUser:"hasCurrentUser"},decls:5,vars:2,consts:[["fxLayout","column","fxLayoutAlign","center center",1,"event-container"],["fxLayout","column","fxLayoutGap","20px",4,"ngIf"],[4,"ngIf"],["fxLayout","column","fxLayoutGap","20px"],["mat-flat-button","","color","primary",3,"click"],["mat-flat-button","","color","accent",3,"click"],["mat-flat-button","","color","accent","id","register-button",1,"btn-xl",3,"click"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"h2"),Na(2,"Interested in Participating?"),Xo(),jo(3,TY,9,0,"div",1),jo(4,PY,3,0,"div",2),Xo()),2&t&&(dr(3),qo("ngIf",!e.hasCurrentUser),dr(1),qo("ngIf",e.hasCurrentUser))},directives:[o_,Z_,Jd,p_,TA],styles:[".event-container[_ngcontent-%COMP%]{margin:1em}"]}),t})();function MY(t,e){if(1&t&&(Qo(0,"p"),Na(1),Xo()),2&t){const t=ua().$implicit;dr(1),Va(t)}}function IY(t,e){if(1&t&&(Zo(0),jo(1,MY,2,1,"p",6),Jo()),2&t){const t=e.$implicit,i=ua(3);dr(1),qo("ngIf",i.isNotEmpty(t))}}function RY(t,e){if(1&t&&(Qo(0,"div",4),jo(1,IY,2,1,"ng-container",5),Xo()),2&t){const t=ua(2);dr(1),qo("ngForOf",t.contactItem.details)}}function LY(t,e){if(1&t&&(Qo(0,"p"),Na(1),Xo()),2&t){const t=ua().$implicit;dr(1),Va(t)}}function FY(t,e){if(1&t&&(Qo(0,"address"),jo(1,LY,2,1,"p",6),Xo()),2&t){const t=e.$implicit,i=ua(3);dr(1),qo("ngIf",i.isNotEmpty(t))}}function NY(t,e){if(1&t&&(Qo(0,"div",4),jo(1,FY,2,1,"address",5),Xo()),2&t){const t=ua(2);dr(1),qo("ngForOf",t.contactItem.details)}}function VY(t,e){if(1&t&&(Qo(0,"a",8),Na(1),Xo()),2&t){const t=ua().$implicit;fa("href","tel://",t,"",ms),dr(1),Va(t)}}function BY(t,e){if(1&t&&(Zo(0),jo(1,VY,2,2,"a",7),Jo()),2&t){const t=e.$implicit,i=ua(3);dr(1),qo("ngIf",i.isNotEmpty(t))}}function HY(t,e){if(1&t&&(Qo(0,"div",4),jo(1,BY,2,1,"ng-container",5),Xo()),2&t){const t=ua(2);dr(1),qo("ngForOf",t.contactItem.details)}}function zY(t,e){if(1&t&&(Qo(0,"p"),Na(1),Xo()),2&t){const t=ua().$implicit;dr(1),Ba("Extension: ",t,"")}}function GY(t,e){if(1&t&&(Zo(0),jo(1,zY,2,1,"p",6),Jo()),2&t){const t=e.$implicit,i=ua(3);dr(1),qo("ngIf",i.isNotEmpty(t))}}function UY(t,e){if(1&t&&(Qo(0,"div",4),jo(1,GY,2,1,"ng-container",5),Xo()),2&t){const t=ua(2);dr(1),qo("ngForOf",t.contactItem.details)}}function jY(t,e){if(1&t&&(Qo(0,"a",10),Na(1),Xo()),2&t){const t=ua().$implicit;ma("href",t,ms),dr(1),Va(t)}}function WY(t,e){if(1&t&&(Zo(0),jo(1,jY,2,2,"a",9),Jo()),2&t){const t=e.$implicit,i=ua(3);dr(1),qo("ngIf",i.isNotEmpty(t))}}function $Y(t,e){if(1&t&&(Qo(0,"div",4),jo(1,WY,2,1,"ng-container",5),Xo()),2&t){const t=ua(2);dr(1),qo("ngForOf",t.contactItem.details)}}function qY(t,e){if(1&t&&(Qo(0,"div",1),Qo(1,"div",2),Qo(2,"mat-icon"),Na(3),Xo(),Xo(),jo(4,RY,2,1,"div",3),jo(5,NY,2,1,"div",3),jo(6,HY,2,1,"div",3),jo(7,UY,2,1,"div",3),jo(8,$Y,2,1,"div",3),Xo()),2&t){const t=ua();dr(3),Va(t.contactItem.icon),dr(1),qo("ngIf",!t.contactItem.type||"p"===t.contactItem.type),dr(1),qo("ngIf",t.contactItem.type&&"address"===t.contactItem.type),dr(1),qo("ngIf",t.contactItem.type&&"phone"===t.contactItem.type),dr(1),qo("ngIf",t.contactItem.type&&"phone_extension"===t.contactItem.type),dr(1),qo("ngIf",t.contactItem.type&&"link"===t.contactItem.type)}}let YY=(()=>{class t{constructor(){}ngOnInit(){}isNotEmpty(t){return""!==(t||"").replace(/\s/g,"")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-contact-item"]],inputs:{contactItem:"contactItem"},decls:1,vars:1,consts:[["class","contact-item","fxLayout","row","fxLayoutGap","8px",4,"ngIf"],["fxLayout","row","fxLayoutGap","8px",1,"contact-item"],[1,"contact-item-icon"],["class","contact-item-detail",4,"ngIf"],[1,"contact-item-detail"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"href",4,"ngIf"],[3,"href"],["target","_blank",3,"href",4,"ngIf"],["target","_blank",3,"href"]],template:function(t,e){1&t&&jo(0,qY,9,6,"div",0),2&t&&qo("ngIf",e.contactItem&&e.contactItem.condition)},directives:[Jd,o_,p_,JT,Kd],styles:[".contact-item[_ngcontent-%COMP%]{margin-bottom:1em}.contact-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-top:-.1em}.contact-item-detail[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;line-height:1.2}"]}),t})(),QY=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}ngOnInit(){}onNoClick(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)($o(NO),$o(BO))},t.\u0275cmp=Xt({type:t,selectors:[["app-admin-note-form"]],decls:10,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["matInput","",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","",3,"click"],["mat-flat-button","","color","primary","cdkFocusInitial","",3,"mat-dialog-close"]],template:function(t,e){1&t&&(Qo(0,"h1",0),Na(1,"Please add a note"),Xo(),Qo(2,"div",1),Qo(3,"mat-form-field"),Qo(4,"textarea",2),ra("ngModelChange",function(t){return e.data.adminNote.note=t}),Xo(),Xo(),Xo(),Qo(5,"div",3),Qo(6,"button",4),ra("click",function(){return e.onNoClick()}),Na(7,"Cancel"),Xo(),Qo(8,"button",5),Na(9,"Save"),Xo(),Xo()),2&t&&(dr(4),qo("ngModel",e.data.adminNote.note),dr(4),qo("mat-dialog-close",e.data.adminNote.note))},directives:[qO,YO,Yk,cE,_b,Ub,gy,QO,TA,$O],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t})();function XY(t,e){if(1&t){const t=ea();Qo(0,"div",5),Qo(1,"div",6),Qo(2,"p",7),Qo(3,"a",8),Qo(4,"b"),Na(5),Xo(),Xo(),Qo(6,"i"),Na(7),vc(8,"date"),Xo(),Xo(),Qo(9,"p",7),Na(10),Xo(),Xo(),Qo(11,"div",9),Qo(12,"button",10),ra("click",function(){Be(t);const i=e.$implicit;return ua(3).openDialog(i)}),Qo(13,"mat-icon"),Na(14,"edit"),Xo(),Xo(),Qo(15,"button",11),ra("click",function(){Be(t);const i=e.$implicit;return ua(3).deleteNote(i)}),Qo(16,"mat-icon"),Na(17,"close"),Xo(),Xo(),Xo(),Xo()}if(2&t){const t=e.$implicit;dr(3),qo("href","/#/admin/user/"+t.user_id,ms),dr(2),Ha("User #",t.user_id," - ",t.user.email,""),dr(2),Ba(" - last updated: ",Cc(8,5,t.last_updated,"short"),""),dr(3),Va(t.note)}}function KY(t,e){if(1&t&&(Qo(0,"div"),jo(1,XY,18,8,"div",4),Xo()),2&t){const t=ua(2);dr(1),qo("ngForOf",t.notes)}}function ZY(t,e){if(1&t){const t=ea();Qo(0,"div",1),Qo(1,"mat-card"),Qo(2,"mat-card-title"),Na(3,"Admin Notes"),Xo(),Qo(4,"mat-card-content"),jo(5,KY,2,1,"div",2),Qo(6,"button",3),ra("click",function(){return Be(t),ua().openDialog()}),Na(7," Add Note "),Xo(),Xo(),Xo(),Xo()}if(2&t){const t=ua();dr(5),qo("ngIf",t.notes&&t.notes.length>0)}}let JY=(()=>{class t{constructor(t,e){this.api=t,this.dialog=e}ngOnInit(){this.getNotes()}getNotes(){this.api.getResourceAdminNotes(this.currentResource.id).subscribe(t=>{this.notes=t})}openDialog(t){this.dialog.open(QY,{width:`${window.innerWidth}px`,data:{adminNote:t||{user_id:this.currentUser.id,resource_id:this.currentResource.id,note:""}}}).afterClosed().subscribe(e=>{t?(t.note=e,this.api.updateAdminNote(t).subscribe(t=>{this.getNotes()})):e&&!t&&this.api.addAdminNote({user_id:this.currentUser.id,resource_id:this.currentResource.id,note:e}).subscribe(t=>{this.getNotes()})})}deleteNote(t){this.api.deleteAdminNote(t).subscribe(t=>{this.getNotes()})}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(jO))},t.\u0275cmp=Xt({type:t,selectors:[["app-admin-note-display"]],inputs:{currentUser:"currentUser",currentResource:"currentResource"},decls:1,vars:1,consts:[["id","admin_notes",4,"ngIf"],["id","admin_notes"],[4,"ngIf"],["mat-flat-button","","color","primary","type","button",3,"click"],["fxLayout","row","fxLayoutAlign","space-between",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","space-between"],["fxFlex","70%"],["mat-line",""],[3,"href"],["fxFlex","20%"],["mat-mini-fab","","type","button","color","primary","matTooltip","Edit Note",3,"click"],["mat-mini-fab","","type","button","color","accent","matTooltip","Delete Note",3,"click"]],template:function(t,e){1&t&&jo(0,ZY,8,1,"div",0),2&t&&qo("ngIf",e.currentUser&&"admin"==e.currentUser.role)},directives:[Jd,ZA,QA,YA,TA,Kd,o_,Z_,k_,Ex,AD,JT],pipes:[_h],styles:["button.mat-mini-fab[_ngcontent-%COMP%]{margin:.5em}"]}),t})();function tQ(t,e){if(1&t){const t=ea();Qo(0,"div"),Qo(1,"mat-list-item"),Qo(2,"a",4),ra("click",function(){Be(t);const i=e.$implicit;return ua(2).goStudy(i.id)}),Ko(3,"app-type-icon",5),Qo(4,"span",6),Na(5),Xo(),Xo(),Qo(6,"p",7),Na(7),Xo(),Xo(),Xo()}if(2&t){const t=e.$implicit;dr(3),qo("iconType","study"),dr(2),Va(t.short_title||t.title),dr(2),Va(t.short_description||t.description)}}const eQ=function(){return{"related-items":!0}};function iQ(t,e){if(1&t&&(Qo(0,"mat-card",2),Qo(1,"mat-card-title"),Na(2,"Related Research Studies"),Xo(),Qo(3,"mat-card-content"),Qo(4,"mat-list"),jo(5,tQ,8,3,"div",3),Xo(),Xo(),Xo()),2&t){const t=ua();qo("ngClass",hc(2,eQ)),dr(5),qo("ngForOf",t.relatedStudies)}}function nQ(t,e){if(1&t){const t=ea();Qo(0,"div"),Qo(1,"mat-list-item"),Qo(2,"a",4),ra("click",function(){Be(t);const i=e.$implicit;return ua(2).goResource(i.id)}),Ko(3,"app-type-icon",5),Qo(4,"span",8),Na(5),Xo(),Xo(),Qo(6,"p",7),Na(7),vc(8,"truncate"),Xo(),Xo(),Xo()}if(2&t){const t=e.$implicit;dr(3),qo("iconType",t.type),dr(2),Va(t.title),dr(2),Va(Cc(8,3,t.description,140))}}function sQ(t,e){if(1&t&&(Qo(0,"mat-card",2),Qo(1,"mat-card-title"),Na(2,"Related Resources"),Xo(),Qo(3,"mat-card-content"),Qo(4,"mat-list"),jo(5,nQ,9,6,"div",3),Xo(),Xo(),Xo()),2&t){const t=ua();qo("ngClass",hc(2,eQ)),dr(5),qo("ngForOf",t.relatedResources)}}let rQ=(()=>{class t{constructor(t,e,i){this.api=t,this.router=e,this.googleAnalytics=i,this.relatedResources=[],this.relatedStudies=[]}ngOnInit(){(this.resource||this.study)&&this.api.getRelatedResults({resource_id:this.resource?this.resource.id:void 0,study_id:this.study?this.study.id:void 0}).subscribe(t=>{this.relatedResources=t.resources,this.relatedStudies=t.studies})}goResource(t){this.googleAnalytics.relatedContentEvent("related_resource",this.parentComponent),this.router.navigate(["/resource",t])}goStudy(t){this.googleAnalytics.relatedContentEvent("related_study",this.parentComponent),this.router.navigate(["/study",t])}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(lG),$o(IG))},t.\u0275cmp=Xt({type:t,selectors:[["app-related-items"]],inputs:{resource:"resource",study:"study",loading:"loading",parentComponent:"parentComponent"},decls:3,vars:2,consts:[["fxLayout","column","fxLayoutGap","2em"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[4,"ngFor","ngForOf"],["mat-line","","fxLayout","row","fxLayoutAlign","start start","fxLayoutGap","8px",3,"click"],[3,"iconType"],[1,"study-title"],["mat-line",""],[1,"resource-title"]],template:function(t,e){1&t&&(Qo(0,"div",0),jo(1,iQ,6,3,"mat-card",1),jo(2,sQ,6,3,"mat-card",1),Xo()),2&t&&(dr(1),qo("ngIf",!e.loading&&e.relatedStudies.length>0),dr(1),qo("ngIf",!e.loading&&e.relatedResources.length>0))},directives:[o_,p_,Jd,ZA,Qd,Pg,QA,YA,fP,Kd,bP,Ex,Z_,JU],pipes:[tV],styles:[".related-items[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{max-width:100vw}.related-items[_ngcontent-%COMP%] .mat-list .mat-list-item .mat-line{word-wrap:break-word;white-space:pre-wrap}.related-items[_ngcontent-%COMP%] .mat-list .mat-list-item{height:auto;margin-bottom:1rem}"]}),t})();function oQ(t,e){1&t&&(Qo(0,"p"),Na(1,"[DRAFT]"),Xo())}function aQ(t,e){if(1&t&&Ko(0,"app-edit-button",23),2&t){const t=ua(2);qo("currentUser",t.currentUser)("editLink",t.resource.type+"/"+t.resource.id+"/edit")("editLabel","Edit "+t.resource.type)}}function lQ(t,e){1&t&&(Qo(0,"p"),Na(1,"This resource is being edited and is under review. Please check back for more up-to-date information soon."),Xo())}function cQ(t,e){if(1&t&&(Qo(0,"p"),Qo(1,"a",24),Ko(2,"img",25),Xo(),Xo()),2&t){const t=ua(2);dr(1),qo("href",t.resource.website,ms),dr(1),ma("src",t.resource.image_url,ms)}}function uQ(t,e){if(1&t&&(Zo(0),Qo(1,"markdown"),Na(2),Xo(),Jo()),2&t){const t=ua(2);dr(2),Va(t.resource.description)}}function dQ(t,e){if(1&t&&(Zo(0),Qo(1,"markdown"),Na(2),Xo(),Jo()),2&t){const t=ua(2);dr(2),Va(t.isPastEvent?t.resource.post_event_description:t.resource.description)}}function hQ(t,e){if(1&t&&Ko(0,"app-event-registration",29),2&t){const t=ua(3);qo("hasCurrentUser",!!t.currentUser)("resource",t.resource)}}function pQ(t,e){if(1&t&&(Qo(0,"a",30),Na(1,"Register Now"),Xo()),2&t){const t=ua(3);qo("href",t.resource.registration_url||"mailto:"+t.resource.contact_email+"?subject=Registration+for+"+t.resource.title,ms)}}function mQ(t,e){if(1&t&&(Qo(0,"div",26),jo(1,hQ,1,2,"app-event-registration",27),jo(2,pQ,2,1,"a",28),Xo()),2&t){const t=ua(2);dr(1),qo("ngIf",t.resource.includes_registration),dr(1),qo("ngIf",!t.resource.includes_registration&&(t.resource.registration_url||t.resource.contact_email))}}function fQ(t,e){if(1&t&&(Qo(0,"p"),Na(1),Xo()),2&t){const t=ua(2);dr(1),Ba("Insurance accepted: ",t.resource.insurance,"")}}function gQ(t,e){if(1&t&&(Qo(0,"div"),Ko(1,"iframe",31),Xo()),2&t){const t=ua(3);dr(1),qo("src",t.safeVideoLink,fs)}}const _Q=function(){return["/register"]},bQ=function(t){return{returnUrl:t}},yQ=function(){return["/login"]};function vQ(t,e){if(1&t&&(Qo(0,"div"),Qo(1,"h2"),Na(2,"Interested in watching this video?"),Xo(),Qo(3,"div",32),Qo(4,"div",33),Ko(5,"img",25),Xo(),Qo(6,"div",34),Qo(7,"button",35),Na(8,"Join Autism DRIVE"),Xo(),Qo(9,"button",35),Na(10,"Log In"),Xo(),Xo(),Xo(),Xo()),2&t){const t=ua(3);dr(5),qo("src","https://img.youtube.com/vi/"+t.resource.video_code+"/hqdefault.jpg",ms),dr(2),qo("routerLink",hc(5,_Q))("queryParams",pc(6,bQ,t.router.url)),dr(2),qo("routerLink",hc(8,yQ))("queryParams",pc(9,bQ,t.router.url))}}function wQ(t,e){if(1&t&&(Qo(0,"div"),jo(1,gQ,2,1,"div",7),jo(2,vQ,11,11,"div",7),Xo()),2&t){const t=ua(2);dr(1),qo("ngIf",t.currentUser),dr(1),qo("ngIf",!t.currentUser)}}function CQ(t,e){if(1&t&&(Qo(0,"p",36),Na(1),Xo()),2&t){const t=ua(2);dr(1),za(" ","location"===t.resource.type?"In-home therapy service.":""," Contact ",t.resource.organization_name," for specific ","location"===t.resource.type?"service area":"location",". ")}}function xQ(t,e){1&t&&Ko(0,"app-contact-item",37),2&t&&qo("contactItem",e.$implicit)}function SQ(t,e){if(1&t){const t=ea();Qo(0,"button",38),ra("click",function(e){return Be(t),ua(2).goPhone(e)}),Na(1),Xo()}if(2&t){const t=ua(2);dr(1),Ba("Call ",t.resource.phone,"")}}function kQ(t,e){if(1&t){const t=ea();Qo(0,"button",39),ra("click",function(e){return Be(t),ua(2).goWebsite(e)}),Na(1,"Visit website"),Xo()}}function AQ(t,e){if(1&t&&(Qo(0,"div"),Qo(1,"p",43),Qo(2,"a",44),Qo(3,"b"),Na(4),Xo(),Xo(),Na(5),vc(6,"uppercase"),vc(7,"date"),Xo(),Xo()),2&t){const t=e.$implicit;dr(2),qo("href","/#/admin/user/"+t.user_id,ms),dr(2),Ha("User #",t.user_id," - ",t.user_email,""),dr(1),Ha(" - Edit Type: ",wc(6,5,t.type)," - Update Date: ",Cc(7,7,t.last_updated,"long")," ")}}function OQ(t,e){if(1&t&&(Qo(0,"div"),jo(1,AQ,8,10,"div",42),Xo()),2&t){const t=ua(3);dr(1),qo("ngForOf",t.changeLog)}}function EQ(t,e){if(1&t&&(Qo(0,"div",40),Qo(1,"mat-card"),Qo(2,"mat-card-title"),Na(3,"Edit Log"),Xo(),jo(4,OQ,2,1,"div",7),Xo(),Ko(5,"app-admin-note-display",41),Xo()),2&t){const t=ua(2);dr(4),qo("ngIf",t.changeLog),dr(1),qo("currentUser",t.currentUser)("currentResource",t.resource)}}function TQ(t,e){if(1&t){const t=ea();Qo(0,"agm-circle",49),ra("circleClick",function(e){return Be(t),ua(3).toggleInfoWindow(e)}),Xo()}if(2&t){const t=ua(3);qo("latitude",t.resource.latitude)("longitude",t.resource.longitude)("radius",32186.9)("fillColor","location"===t.resource.type.toLowerCase()?"#6c799c":"#E57200")("clickable",!0)}}function PQ(t,e){if(1&t&&(Zo(0),Qo(1,"p"),Na(2),Xo(),Qo(3,"a",52),Na(4,"Driving directions"),Xo(),Jo()),2&t){const t=ua(4);dr(2),Ba("About ",t.resource.milesFrom(t.mapLoc)," miles away"),dr(1),ma("href",t.getGoogleMapsUrl(),ms)}}function DQ(t,e){if(1&t&&(Qo(0,"p",36),Na(1),Xo()),2&t){const t=ua(5);dr(1),za(" ","location"===t.resource.type?"In-home therapy service.":""," Contact ",t.resource.organization_name," for specific ","location"===t.resource.type?"service area":"location",". ")}}function MQ(t,e){if(1&t&&(Qo(0,"a",52),Na(1),Xo()),2&t){const t=ua(5);fa("href","tel://",t.resource.phone,"",ms),dr(1),Ba("Call ",t.resource.phone,"")}}function IQ(t,e){1&t&&(Qo(0,"a",52),Na(1," Visit website "),Xo()),2&t&&ma("href",ua(5).resource.website,ms)}function RQ(t,e){if(1&t&&(Zo(0),jo(1,DQ,2,3,"p",12),jo(2,MQ,2,2,"a",53),jo(3,IQ,2,1,"a",53),Jo()),2&t){const t=ua(4);dr(1),qo("ngIf",t.mapLoc&&!t.resource.street_address1),dr(1),qo("ngIf",t.resource.phone),dr(1),qo("ngIf",!t.resource.phone&&t.resource.website)}}const LQ=function(){return{x:24,y:24}},FQ=function(t,e){return{url:t,anchor:e}};function NQ(t,e){if(1&t){const t=ea();Qo(0,"agm-marker",50),ra("markerClick",function(e){return Be(t),ua(3).toggleInfoWindow(e)}),Qo(1,"agm-info-window",51),Qo(2,"h5"),Na(3),Xo(),jo(4,PQ,5,2,"ng-container",7),jo(5,RQ,4,3,"ng-container",7),Xo(),Xo()}if(2&t){const t=ua(3);qo("latitude",t.resource.latitude)("longitude",t.resource.longitude)("iconUrl",mc(10,FQ,"/assets/map/"+t.resource.type+(t.resource.street_address1?"":"-no-address")+".svg",hc(9,LQ))),dr(1),qo("isOpen",t.showInfoWindow)("latitude",t.resource.latitude)("latitude",t.resource.longitude),dr(2),Va(t.resource.title),dr(1),qo("ngIf",t.resource.street_address1),dr(1),qo("ngIf",!t.resource.street_address1)}}function VQ(t,e){if(1&t&&(Qo(0,"div",45),Qo(1,"agm-map",46),jo(2,TQ,1,5,"agm-circle",47),jo(3,NQ,6,13,"agm-marker",48),Xo(),Xo()),2&t){const t=ua(2);dr(1),qo("latitude",t.resource.latitude)("longitude",t.resource.longitude)("streetViewControl",!1)("zoom",7)("scrollwheel",null),dr(1),qo("ngIf",t.resource.hasCoords()&&!t.resource.street_address1),dr(1),qo("ngIf",t.resource.hasCoords())}}function BQ(t,e){if(1&t&&(Qo(0,"div",54),Ko(1,"app-related-items",55),Xo()),2&t){const t=ua(2);dr(1),qo("resource",t.resource)("loading",t.loading)("parentComponent","resource-detail")}}function HQ(t,e){if(1&t&&(Qo(0,"div",2),Qo(1,"div",3),Qo(2,"div",4),Qo(3,"div",5),Ko(4,"app-type-icon",6),Qo(5,"h1"),Na(6),Xo(),Xo(),jo(7,oQ,2,0,"p",7),jo(8,aQ,1,3,"app-edit-button",8),Ko(9,"app-favorite-resource-button",9),Qo(10,"p"),Na(11),vc(12,"date"),Xo(),Qo(13,"h2"),Na(14,"About this resource"),Xo(),jo(15,lQ,2,0,"p",7),jo(16,cQ,3,2,"p",7),jo(17,uQ,3,1,"ng-container",7),jo(18,dQ,3,1,"ng-container",7),jo(19,mQ,3,2,"div",10),jo(20,fQ,2,1,"p",7),jo(21,wQ,3,2,"div",7),Qo(22,"mat-card",11),Qo(23,"mat-card-title"),Qo(24,"h4"),Na(25,"Contact"),Xo(),Xo(),Qo(26,"mat-card-content"),jo(27,CQ,2,3,"p",12),jo(28,xQ,1,1,"app-contact-item",13),Xo(),Xo(),Qo(29,"div",14),jo(30,SQ,2,1,"button",15),jo(31,kQ,2,0,"button",16),Xo(),jo(32,EQ,6,3,"div",17),Xo(),Qo(33,"div",18),jo(34,VQ,4,7,"div",19),Qo(35,"div",20),Ko(36,"app-filter-chips",21),Xo(),jo(37,BQ,2,3,"div",22),Xo(),Xo(),Xo()),2&t){const t=ua();dr(4),qo("iconType",t.resource.type.toLowerCase())("size",3),dr(2),Va(t.resource.title),dr(1),qo("ngIf",t.resourceIsDraft),dr(1),qo("ngIf",t.userCanEdit),dr(1),qo("resource_id",t.resource.id)("user",t.currentUser),dr(2),Ba("Last Updated: ",Cc(12,27,t.resource.last_updated,"longDate"),""),dr(4),qo("ngIf",t.resourceIsDraft&&!t.userCanEdit),dr(1),qo("ngIf","event"===t.resource.type&&t.resource.image_url),dr(1),qo("ngIf","event"!==t.resource.type),dr(1),qo("ngIf","event"===t.resource.type),dr(1),qo("ngIf","event"===t.resource.type),dr(1),qo("ngIf",t.resource.insurance),dr(1),qo("ngIf",t.safeVideoLink),dr(6),qo("ngIf",t.mapLoc&&!t.resource.street_address1),dr(1),qo("ngForOf",t.contactItems),dr(2),qo("ngIf",t.resource.phone),dr(1),qo("ngIf",t.resource.website),dr(1),qo("ngIf",t.currentUser&&t.currentUser.permissions.includes("edit_resource")),dr(2),qo("ngIf",t.resource&&t.resource.hasCoords()),dr(2),qo("categories",t.resource.resource_categories)("ages",t.resource.ages)("languages",t.resource.languages)("covid19_categories",t.resource.covid19_categories)("parentComponent","resource_detail"),dr(1),qo("ngIf",!t.resource.should_hide_related_resources)}}function zQ(t,e){1&t&&Ko(0,"app-loading",56)}let GQ=(()=>{class t{constructor(t,e,i,n,s){this.api=t,this.route=e,this.router=i,this.authenticationService=n,this._sanitizer=s,this.loading=!0,this.showInfoWindow=!1,this.authenticationService.currentUser.subscribe(t=>this.currentUser=t),this.route.params.subscribe(t=>{this.loading=!0,this.safeVideoLink=null;const e=t.resourceId?parseInt(t.resourceId,10):null;if("number"==typeof e&&isFinite(e)){const t=this.route.snapshot.url[0].path,i=t.charAt(0).toUpperCase()+t.slice(1);this.api[`get${i}`](e).subscribe(t=>{this.resource=new hY(t),console.log("resource = ",this.resource),this.initializeContactItems(),this.loadMapLocation(),this.loading=!1,this.resource.video_code&&(this.safeVideoLink=this._sanitizer.bypassSecurityTrustResourceUrl("https://www.youtube.com/embed/"+this.resource.video_code)),this.currentUser&&this.currentUser.permissions.includes("edit_resource")&&this.api.getResourceChangeLog(this.resource.id).subscribe(t=>{this.changeLog=t})})}})}get isPastEvent(){const t=new Date(this.resource.date),e=new Date;return console.log("eventDate",t),!!(this.resource&&"event"===this.resource.type&&t{this.mapLoc={lat:t.coords.latitude,lng:t.coords.longitude}})}goPhone(t){t.preventDefault(),this.resource&&this.resource.phone&&(location.href=`tel://${this.resource.phone}`)}goWebsite(t){t.preventDefault(),this.resource&&this.resource.website&&window.open(this.resource.website,"_blank")}getGoogleMapsUrl(){if(this.mapLoc&&this.resource.hasCoords())return`https://www.google.com/maps/dir/${this.mapLoc.lat},${this.mapLoc.lng}/${encodeURIComponent(`\n ${this.resource.street_address1},\n ${this.resource.street_address2},\n ${this.resource.city},\n ${this.resource.state}\n ${this.resource.zip}\n `)}`}initializeContactItems(){const t=this.resource;this.contactItems=[{condition:!!t.primary_contact,icon:"person_pin",details:[t.primary_contact]},{condition:!!t.organization_name,icon:"business",details:[t.organization_name]},{condition:!!t.date,icon:"access_time",details:[t.date&&`${Pd(t.date,"longDate","en-US","-0")}: ${t.time}`]},{condition:!!(t.location_name||t.street_address1||t.street_address2||t.city||t.state||t.zip),icon:"location_on",details:[t.location_name,t.street_address1,t.street_address2,`${t.city?t.city+",":t.city} ${t.state} ${t.zip}`],type:"address"},{condition:!!t.ticket_cost,icon:"monetization_on",details:[t.ticket_cost]},{condition:!!t.phone,icon:"phone",details:[t.phone],type:"phone"},{condition:!!t.phone_extension,icon:"dialpad",details:[t.phone_extension],type:"phone_extension"},{condition:!!t.website,icon:"link",details:[t.website],type:"link"}]}toggleInfoWindow(t){this.showInfoWindow=!this.showInfoWindow}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(UH),$o(lG),$o(BG),$o(Xh))},t.\u0275cmp=Xt({type:t,selectors:[["app-resource-detail"]],decls:2,vars:2,consts:[["class","container","id","resource",4,"ngIf"],["message","Loading...",4,"ngIf"],["id","resource",1,"container"],["fxLayout","row","fxLayout.lt-lg","column","fxLayoutGap","40px",1,"row"],["id","resource-details","fxFlex.gt-md","60%","fxLayout","column","fxLayoutGap","40px"],["fxLayout","row","fxLayoutAlign","start start","fxLayoutGap","1em"],[3,"iconType","size"],[4,"ngIf"],[3,"currentUser","editLink","editLabel",4,"ngIf"],[3,"resource_id","user"],["fxLayout","column","fxLayoutAlign","center center",4,"ngIf"],["id","resource-contact"],["class","no-address-message",4,"ngIf"],[3,"contactItem",4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutGap","20px"],["mat-flat-button","","color","primary",3,"click",4,"ngIf"],["mat-stroked-button","","color","primary",3,"click",4,"ngIf"],["fxLayout","column","fxLayoutGap","2em",4,"ngIf"],["id","resource-meta","fxFlex.gt-md","40%","fxLayout","column","fxLayoutGap","20px"],["id","resource-map",4,"ngIf"],["id","resource-categories"],[3,"categories","ages","languages","covid19_categories","parentComponent"],["id","resource-related",4,"ngIf"],[3,"currentUser","editLink","editLabel"],["target","_blank",3,"href"],[3,"src"],["fxLayout","column","fxLayoutAlign","center center"],["id","star_event_registration",3,"hasCurrentUser","resource",4,"ngIf"],["mat-flat-button","","class","btn btn-xl","color","accent","target","_blank",3,"href",4,"ngIf"],["id","star_event_registration",3,"hasCurrentUser","resource"],["mat-flat-button","","color","accent","target","_blank",1,"btn","btn-xl",3,"href"],["fxFlex","100%","height","500px","frameborder","0","allowfullscreen","",3,"src"],[1,"video-image-box"],[1,"gradient-overlay","image"],["fxLayout","column","fxLayoutGap","20px",1,"button-overlay"],["mat-flat-button","","color","accent",3,"routerLink","queryParams"],[1,"no-address-message"],[3,"contactItem"],["mat-flat-button","","color","primary",3,"click"],["mat-stroked-button","","color","primary",3,"click"],["fxLayout","column","fxLayoutGap","2em"],[3,"currentUser","currentResource"],[4,"ngFor","ngForOf"],["mat-line",""],[3,"href"],["id","resource-map"],["mapTypeId","roadmap",3,"latitude","longitude","streetViewControl","zoom","scrollwheel"],["fillOpacity","0.1",3,"latitude","longitude","radius","fillColor","clickable","circleClick",4,"ngIf"],[3,"latitude","longitude","iconUrl","markerClick",4,"ngIf"],["fillOpacity","0.1",3,"latitude","longitude","radius","fillColor","clickable","circleClick"],[3,"latitude","longitude","iconUrl","markerClick"],[3,"isOpen","latitude"],["target","_blank",1,"chevron-link",3,"href"],["class","chevron-link","target","_blank",3,"href",4,"ngIf"],["id","resource-related"],[3,"resource","loading","parentComponent"],["message","Loading..."]],template:function(t,e){1&t&&(jo(0,HQ,38,30,"div",0),jo(1,zQ,1,0,"app-loading",1)),2&t&&(qo("ngIf",!e.loading&&e.resource),dr(1),qo("ngIf",!e.resource))},directives:[Jd,o_,p_,k_,Z_,JU,BU,ZA,QA,YA,Kd,wY,xY,BV,DY,PA,TA,cG,YY,JY,Ex,gm,tm,ym,lm,rQ,Qj],pipes:[_h,gh],styles:["agm-map[_ngcontent-%COMP%]{height:50vh;width:100%} .gm-style-iw-d, .gm-style-iw.gm-style-iw-c{max-height:50vh!important}@media (max-width:575px){ .gm-style-iw-d, .gm-style-iw.gm-style-iw-c{max-width:90vw!important}}@media (min-width:576px){ .gm-style-iw-d, .gm-style-iw.gm-style-iw-c{max-width:80vw!important}}@media (min-width:768px){ .gm-style-iw-d, .gm-style-iw.gm-style-iw-c{max-width:50vw!important}}@media (min-width:960px){ .gm-style-iw-d, .gm-style-iw.gm-style-iw-c{max-width:40vw!important}}@media (min-width:1200px){ .gm-style-iw-d, .gm-style-iw.gm-style-iw-c{max-width:30vw!important}}.no-address-message[_ngcontent-%COMP%]{font-weight:700;color:#e57200}.button-overlay[_ngcontent-%COMP%]{position:absolute;top:20%;left:10%;width:60%;z-index:3}.video-image-box[_ngcontent-%COMP%]{position:relative}.video-image-box[_ngcontent-%COMP%] .image[_ngcontent-%COMP%]{width:80%}.video-image-box[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}#resource-details[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;padding-bottom:0}"]}),t})();function UQ(t,e){1&t&&Ko(0,"app-loading",3)}function jQ(t,e){if(1&t){const t=ea();Qo(0,"button",12),ra("click",function(){return Be(t),ua(2).saveDraft()}),Na(1,"Save As Draft"),Xo()}}function WQ(t,e){if(1&t){const t=ea();Qo(0,"button",14),ra("click",function(){return Be(t),ua(3).savePublish()}),Na(1,"Save & Publish"),Xo()}}function $Q(t,e){if(1&t&&(Qo(0,"div"),jo(1,WQ,2,0,"button",13),Xo()),2&t){const t=ua(2);dr(1),qo("ngIf",t.form)}}function qQ(t,e){if(1&t){const t=ea();Qo(0,"button",15),ra("click",function(){return Be(t),ua(2).onCancel()}),Na(1,"Cancel"),Xo()}}function YQ(t,e){if(1&t){const t=ea();Qo(0,"button",16),ra("click",function(){return Be(t),ua(2).showDelete()}),Na(1,"Delete"),Xo()}}function QQ(t,e){if(1&t){const t=ea();Qo(0,"button",17),ra("click",function(){return Be(t),ua(2).onDelete()}),Na(1,"Permanently Delete This Resource!!! "),Xo()}}function XQ(t,e){if(1&t&&(Qo(0,"form",4),Qo(1,"h1"),Na(2,"Resource Details"),Xo(),Ko(3,"formly-form",5),Qo(4,"div",6),jo(5,jQ,2,0,"button",7),jo(6,$Q,2,1,"div",8),jo(7,qQ,2,0,"button",9),jo(8,YQ,2,0,"button",10),jo(9,QQ,2,0,"button",11),Xo(),Xo()),2&t){const t=ua();qo("formGroup",t.form),dr(3),qo("form",t.form)("model",t.model)("fields",t.fields)("options",t.options),dr(2),qo("ngIf",t.form),dr(1),qo("ngIf",t.currentUser&&t.currentUser.permissions.includes("publish_resource")),dr(1),qo("ngIf",t.form),dr(1),qo("ngIf",!t.showConfirmDelete&&!t.createNew),dr(1),qo("ngIf",t.showConfirmDelete)}}var KQ=function(t){return t.LOADING="loading",t.SHOW_FORM="form",t}({});let ZQ=(()=>{class t{constructor(t,e,i,n,s){this.api=t,this.authenticationService=e,this.deviceDetectorService=i,this.route=n,this.router=s,this.pageState=KQ,this.state=KQ.LOADING,this.showConfirmDelete=!1,this.model={},this.fields=[{key:"type",type:"select",templateOptions:{label:"Type",options:[{value:"resource",label:"Online Information"},{value:"location",label:"Local Services"},{value:"event",label:"Events and Training"}],required:!0},hideExpression:"!model.createNew"},{key:"title",type:"input",templateOptions:{label:"Title",placeholder:"Please enter the title",required:!0},expressionProperties:{"templateOptions.placeholder":'"Please enter the title of your " + (model.type || "resource")'},hideExpression:"!model.type"},{key:"description",type:"textarea",templateOptions:{label:"Description",placeholder:"Please enter a description",description:"You may use Markdown syntax to insert simple formatting, text links, and images",required:!0},expressionProperties:{"templateOptions.placeholder":'"Please enter a description of your " + (model.type || "resource")'},hideExpression:"!model.type"},{key:"post_event_description",type:"textarea",templateOptions:{label:"Post-Event Description",placeholder:"Description to display after event has occurred",description:"You may use Markdown syntax to insert simple formatting, text links, and images"},hideExpression:'model.type != "event"'},{key:"insurance",type:"textarea",templateOptions:{label:"Insurance",placeholder:"Please enter the type of insurance if applicable (e.g., private, medicaid, Tricare)"},hideExpression:"!model.type"},{key:"includes_registration",type:"radio",defaultValue:!1,templateOptions:{label:"Use Autism DRIVE or an external system for registration?",description:"Should users be able to register for this event through Autism DRIVE?",options:[{value:!0,label:"Autism DRIVE"},{value:!1,label:"External system"}]},expressionProperties:{"templateOptions.required":'model.type === "event"'},hideExpression:'model.type != "event"'},{key:"registration_url",type:"input",templateOptions:{label:"Registration Link",description:"If this is left blank, the contact email address will be used for registration.",placeholder:"https://link.to/external/website",type:"url"},hideExpression:'!(model.type === "event" && !model.includes_registration)'},{key:"image_url",type:"input",templateOptions:{label:"Feature Image",placeholder:"https://link.to/external/website/file.jpg",type:"url"},hideExpression:'model.type != "event"'},{key:"date",type:"datepicker",templateOptions:{label:"Event Date"},expressionProperties:{"templateOptions.required":'model.type === "event"'},hideExpression:'model.type != "event"'},{key:"time",type:"input",templateOptions:{label:"Event Time",placeholder:"Please enter the start time or time-frame for your event"},expressionProperties:{"templateOptions.required":'model.type === "event"'},hideExpression:'model.type != "event"'},{key:"ticket_cost",type:"input",templateOptions:{label:"Event Ticket Cost",placeholder:"Please enter the ticket cost for your event"},hideExpression:'model.type != "event"'},{key:"webinar_link",type:"input",templateOptions:{label:"Webinar Link",placeholder:"Please enter the link to attend the webinar"},hideExpression:'model.type != "event"',validators:{validation:["url"]}},{key:"post_survey_link",type:"input",templateOptions:{label:"Survey Link",placeholder:"Please enter the link to the post-event survey"},hideExpression:'model.type != "event"',validators:{validation:["url"]}},{key:"max_users",type:"input",templateOptions:{label:"Maximum attendees",placeholder:"Please enter the maximum number of users allowed to register",type:"number"},hideExpression:'model.type != "event"'},{key:"organization_name",type:"input",templateOptions:{label:"Organization Name",placeholder:"Please enter the name of the organization for your resource"},hideExpression:"!model.type"},{key:"primary_contact",type:"input",templateOptions:{label:"Primary Contact",placeholder:"Please enter the primary contact for your location or event"},hideExpression:'!model.type || model.type == "resource"'},{key:"contact_email",type:"input",templateOptions:{label:"Contact Email"},validators:{validation:["email"]},hideExpression:"!model.type",expressionProperties:{"templateOptions.description":(t,e,i)=>"event"!==t.type||t.includes_registration||t.registration_link?"This contact email will not be displayed on the site and is intended for admin use only":"This contact email will be used for attendees to request information about registering for this event."}},{key:"location_name",type:"input",templateOptions:{label:"Location Name",placeholder:"Please enter the name for your event venue"},hideExpression:'model.type != "event"'},{key:"street_address1",type:"input",templateOptions:{label:"Street Address",placeholder:"Please enter the street address"},hideExpression:'!model.type || model.type == "resource"'},{key:"street_address2",type:"input",templateOptions:{label:"Street Address Details",placeholder:"Please enter any additional details for the street address"},hideExpression:'!model.type || model.type == "resource"'},{key:"city",type:"input",templateOptions:{label:"City",placeholder:"Please enter the city"},hideExpression:'!model.type || model.type == "resource"'},{key:"state",type:"input",templateOptions:{label:"State",placeholder:"Please enter the state"},hideExpression:'!model.type || model.type == "resource"'},{key:"zip",type:"input",templateOptions:{label:"Zip Code",placeholder:"Please enter the zip code"},hideExpression:'!model.type || model.type == "resource"'},{key:"phone",type:"input",templateOptions:{label:"Phone Number",placeholder:"Please enter the phone number"},hideExpression:"!model.type",validators:{validation:["phone"]}},{key:"phone_extension",type:"input",templateOptions:{label:"Phone Number Extension",placeholder:"Please enter any extension to the phone number"},hideExpression:"!model.type"},{key:"website",type:"input",templateOptions:{label:"Website",placeholder:"Please enter the website"},hideExpression:"!model.type",validators:{validation:["url"]}},{key:"video_code",type:"input",templateOptions:{label:"Video Code",placeholder:"Please enter the YouTube code for a video of this content"},hideExpression:"!model.type"},{key:"is_uva_education_content",type:"radio",defaultValue:!1,templateOptions:{label:"UVA Education Content",description:"Should this resource be displayed on the UVA Education page?",options:[{value:!0,label:"Yes"},{value:!1,label:"No"}]},hideExpression:"!model.type"},{key:"categories",type:"multiselecttree",templateOptions:{label:"Topics",description:"This field is required",options:this.api.getCategoryTree(),valueProp:"id",labelProp:"name"},hideExpression:"!model.type"},{key:"ages",type:"multicheckbox",templateOptions:{label:"Age Ranges",type:"array",options:this.getOptions(EU.labels)},hideExpression:"!model.type"},{key:"languages",type:"multicheckbox",templateOptions:{label:"Languages",type:"array",options:this.getOptions(TU.labels)},hideExpression:"!model.type"},{key:"should_hide_related_resources",type:"radio",defaultValue:!1,templateOptions:{label:"Hide Related Resources",description:"Should related resources be displayed alongside this resource on the details page?",options:[{value:!0,label:"Yes"},{value:!1,label:"No"}]},hideExpression:"!model.type"}],this.createNew=!1,this.authenticationService.currentUser.subscribe(t=>this.currentUser=t)}ngOnInit(){this.model.createNew=!1,this.loadData()}getOptions(t){const e=[];for(const i in t)t.hasOwnProperty(i)&&e.push({value:i,label:t[i]});return e}loadData(){this.route.params.subscribe(t=>{if(t.resourceId&&t.resourceType){const e=t.resourceId,i=t.resourceType.charAt(0).toUpperCase()+t.resourceType.slice(1);this.createNew=!1,this.model.createNew=!1,this.api[`get${i}`](e).subscribe(t=>{this.resource=new hY(t),this.model=this.resource,this.loadResourceCategories(t,()=>this.loadForm())})}else this.createNew=!0,this.model.createNew=!0,this.model.categories=[],this.resource=new hY({type:"",title:"",description:"",phone:"",website:""}),this.loadForm()})}loadResourceCategories(t,e){if(this.model.categories=[],t.resource_categories.length>0)for(const i of t.resource_categories)this.model.categories.push(i.category),e();else e()}loadForm(){this.form=new cy({}),this.options={formState:{mainModel:this.model}},this.state=this.pageState.SHOW_FORM}updateResourceCategories(t){const e=this.model.type.charAt(0).toUpperCase()+this.model.type.slice(1),i=[];return this.model.categories.forEach((e,n)=>{!0===e&&i.push({resource_id:t,category_id:n,type:this.model.type})}),this.api[`update${e}Categories`](t,i)}submit(){const t=this.model.type.charAt(0).toUpperCase()+this.model.type.slice(1);this.form.valid&&this.updateAndClose(this.createNew&&!this.model.id?this.api[`add${t}`](this.model):this.api[`update${t}`](this.model))}updateAndClose(t){this.setDateTime(),t.subscribe(t=>{this.updatedResource=t,this.model.id=t.id,this.updateResourceCategories(t.id).subscribe(()=>this.close())})}setDateTime(){this.model.date&&(this.model.date instanceof Date||(this.model.date=new Date(this.model.date)),this.model.date.setHours(12))}showDelete(){this.showConfirmDelete=!0}onDelete(){this.api.deleteResource(this.resource).subscribe(t=>{this.router.navigate(["search"])})}close(){this.router.navigate(this.updatedResource&&this.updatedResource.id?[this.updatedResource.type,this.updatedResource.id]:["search"])}onCancel(){this.close()}saveDraft(){this.model.is_draft=!0,this.form.valid?this.submit():this.highlightRequiredFields()}savePublish(){this.model.is_draft=!1,this.form.valid?this.submit():this.highlightRequiredFields()}highlightRequiredFields(){for(const t of Object.keys(this.form.controls)){const e=this.form.controls[t];e.updateValueAndValidity(),e.markAsDirty()}aB(this.deviceDetectorService)}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(BG),$o(xV),$o(UH),$o(lG))},t.\u0275cmp=Xt({type:t,selectors:[["app-resource-form"]],decls:3,vars:2,consts:[[1,"resource-detail","mat-typography"],["message","Loading...",4,"ngIf"],["class","pad-2",3,"formGroup",4,"ngIf"],["message","Loading..."],[1,"pad-2",3,"formGroup"],[3,"form","model","fields","options"],["fxLayout","row","fxLayoutGap","2em",1,"button-row"],["mat-flat-button","","type","button","color","primary","id","save-draft-button",3,"click",4,"ngIf"],[4,"ngIf"],["mat-flat-button","","type","button","color","accent","id","cancel-button",3,"click",4,"ngIf"],["type","button","mat-flat-button","","color","warn","id","delete-button",3,"click",4,"ngIf"],["id","confirm_delete","type","button","mat-flat-button","","color","warn","id","permanently-delete-button",3,"click",4,"ngIf"],["mat-flat-button","","type","button","color","primary","id","save-draft-button",3,"click"],["mat-flat-button","","type","button","color","primary","id","save-publish-button",3,"click",4,"ngIf"],["mat-flat-button","","type","button","color","primary","id","save-publish-button",3,"click"],["mat-flat-button","","type","button","color","accent","id","cancel-button",3,"click"],["type","button","mat-flat-button","","color","warn","id","delete-button",3,"click"],["id","confirm_delete","type","button","mat-flat-button","","color","warn","id","permanently-delete-button",3,"click"]],template:function(t,e){1&t&&(Qo(0,"div",0),jo(1,UQ,1,0,"app-loading",1),jo(2,XQ,10,10,"form",2),Xo()),2&t&&(dr(1),qo("ngIf",e.state===e.pageState.LOADING),dr(1),qo("ngIf",e.state===e.pageState.SHOW_FORM))},directives:[Jd,Qj,_y,jb,ky,NF,o_,p_,TA],styles:[".resource-detail[_ngcontent-%COMP%]{margin:2em}"]}),t})();var JQ=i("AFAK"),tX=i.n(JQ);const eX={leading:!0,trailing:!1};function iX(t,e=mp,i=eX){return n=>n.lift(new nX(t,e,i.leading,i.trailing))}class nX{constructor(t,e,i,n){this.duration=t,this.scheduler=e,this.leading=i,this.trailing=n}call(t,e){return e.subscribe(new sX(t,this.duration,this.scheduler,this.leading,this.trailing))}}class sX extends m{constructor(t,e,i,n,s){super(t),this.duration=e,this.scheduler=i,this.leading=n,this.trailing=s,this._hasTrailingValue=!1,this._trailingValue=null}_next(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(rX,this.duration,{subscriber:this})),this.leading?this.destination.next(t):this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)}}function rX(t){const{subscriber:e}=t;e.clearThrottle()}var oX=function(t){return t.Small="sm",t.Medium="md",t.Large="lg",t}({}),aX=function(t){return t.Visible="visible",t.Hidden="hidden",t}({}),lX=function(t){return t.Expanded="expanded",t.Collapsed="collapsed",t}({}),cX=function(t){return t.Up="Up",t.Down="Down",t}({});let uX=(()=>{class t{constructor(t,e){this._http=t,this.config=e,this.query_url="/api/search/resources"}search(t){return this._http.post(this.config.apiUrl+this.query_url,t).pipe(E(t=>this._loadQuery(t)))}mapSearch(t,e){const i=tX()({circles:!0})(t);return i.geo_box=e,i.map_data_only=!0,i.size=300,this.search(i)}_loadQuery(t){if(t&&t.hits)return new IU(t)}}return t.\u0275fac=function(e){return new(e||t)(wn(Km),wn(MG))},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),dX=(()=>{class t{constructor(t){this.api=t,this.categoriesByDisplayOrder={},this.categoriesById={},this.updated=new kc,this.api.getCategoryTree().subscribe(t=>{this.categoryTree=t,this._populateCategoryIndices(this.categoryTree),this.categoryList=Object.entries(this.categoriesByDisplayOrder).sort((t,e)=>t[0].toLowerCase()t[1]),this._populateCategoryParents(),this.categoryList.forEach(t=>{t.indentedString=this._indentedString(t)}),this.updated.emit(!0)})}_indentedString(t){let e=t.parent;const i=[];for(;e;)i.unshift(e),e=e.parent;return i.map(t=>t.name).concat([t.name]).join(" > ")}_populateCategoryIndices(t,e=[]){t.forEach(t=>{const i=e.concat([null!=t.display_order?t.display_order:t.id]),n=i.join(".");this.categoriesByDisplayOrder[n]||(this.categoriesByDisplayOrder[n]=t),this.categoriesById[t.id]||(this.categoriesById[t.id]=t),t.children&&t.children.length>0&&this._populateCategoryIndices(t.children,i)})}_populateCategoryParents(){this.categoryList.forEach(t=>{null!==t.parent_id&&(t.parent=this.categoriesById[t.parent_id],this.categoriesById[t.id].parent=t.parent)})}}return t.\u0275fac=function(e){return new(e||t)(wn(WG))},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const hX=["searchInput"],pX=["autocompletePanel"];function mX(t,e){if(1&t&&(Qo(0,"div",13),Qo(1,"h1",14),Na(2,"Find Autism Resources"),Xo(),Qo(3,"h5",14),Na(4,"Type a search term and/or use filters below"),Xo(),Xo()),2&t){const t=ua();dr(1),qo("fxFlex",t.videoIsVisible?"calc(100% - 66px)":"100%"),dr(2),qo("fxFlex",t.videoIsVisible?"calc(100% - 66px)":"100%")}}function fX(t,e){if(1&t&&(Qo(0,"mat-option",15),Na(1),Xo()),2&t){const t=e.$implicit,i=ua();qo("value",t),dr(1),Va(i.optionText(t))}}const gX=function(t){return{"btn-cancel":!0,hidden:t}},_X=function(){return{"btn-search":!0}};let bX=(()=>{class t{constructor(t,e,i,n,s,r){var o;this.route=t,this.router=e,this.searchService=i,this.api=n,this.categoryService=s,this.changeDetectorRef=r,this.categorySelected=new kc,this.searchUpdated=new kc,this.searchBoxControl=new ly,this.searchUpdate=new k,this.skipUpdate=!1,this.route.queryParams.pipe((o=()=>gp(1e3),t=>t.lift(new zV(o)))).subscribe(t=>this.queryParams=t),this.searchUpdate.pipe(Sf(400),Np()).subscribe(()=>this.updateSearch(!1))}get videoIsVisible(){return"true"===localStorage.getItem("shouldHideTutorialVideo")}set searchInput(t){this.searchInputElement=t}set autocompletePanel(t){this.autocompletePanelElement=t}set autocompletePanelTrigger(t){this.autocompletePanelTriggerElement=t}get hasWords(){return!!(this.searchInputElement&&this.searchInputElement.value&&this.searchInputElement.value.length>0)}ngOnInit(){this.filteredOptions=this.searchBoxControl.valueChanges.pipe(jp(""),E(t=>this._filter(t)))}ngAfterViewInit(){this.searchInputElement.value=this.words}optionText(t){return null==t?void 0:t.indentedString}updateSearch(t){if(this.skipUpdate)return void(this.skipUpdate=!1);t&&(this.words="",this.searchInputElement.value=this.words);const e=JSON.parse(JSON.stringify(this.queryParams));return e.words=t?void 0:this.searchInputElement&&this.searchInputElement.value||"",e.pageStart=0,e.words&&(e.sort="Relevance"),Object.keys(e).length>0?this.router.navigate(["/search"],{relativeTo:this.route,queryParams:e}).finally(()=>{this.searchUpdated.emit(e),this.changeDetectorRef.detectChanges()}):this.router.navigateByUrl("/search").finally(()=>this.searchUpdated.emit(e))}indentedString(t){let e=t.parent;const i=[];for(;e;)i.unshift(e),e=e.parent;return i.map(t=>t.name).concat([t.name]).join(" > ")}selectCategory(t){this.skipUpdate=!0,this.categorySelected.emit(t.option.value)}showVideo(){localStorage.removeItem("shouldHideTutorialVideo")}_filter(t){if(t&&t.length>0){const e=t.replace(/\W+/gi," ").toLowerCase().split(" ").map(t=>`(?=.*${t})`).join(""),i=new RegExp(e,"gi");return this.categoryService.categoryList.filter(t=>t.all_resource_count>0&&i.test(t.indentedString))}return this.categoryService.categoryList}openAutocompletePanel(t){this.autocompletePanelTriggerElement._onChange(""),t.stopPropagation(),this.autocompletePanelTriggerElement.openPanel(),this.autocompletePanelElement.showPanel=!0,this.changeDetectorRef.detectChanges()}}return t.\u0275fac=function(e){return new(e||t)($o(UH),$o(lG),$o(uX),$o(WG),$o(dX),$o(Vl))},t.\u0275cmp=Xt({type:t,selectors:[["app-search-box"]],viewQuery:function(t,e){if(1&t&&(Vc(hX,1,cE),Vc(pX,1,cA),Vc(fA,1)),2&t){let t;Nc(t=Hc())&&(e.searchInput=t.first),Nc(t=Hc())&&(e.autocompletePanel=t.first),Nc(t=Hc())&&(e.autocompletePanelTrigger=t.first)}},inputs:{variant:"variant",words:"words"},outputs:{categorySelected:"categorySelected",searchUpdated:"searchUpdated"},decls:21,vars:17,consts:[["fxLayout","column"],["class","search-bar-header","fxLayout","row wrap","fxLayoutAlign","center center","fxLayoutGap","0px",4,"ngIf"],["fxLayout","row","fxLayoutGap","10px","fxLayoutAlign","center center"],["id","search-field",3,"fxFlex","click"],["matInput","","placeholder","Search for Autism Resources","type","text",3,"formControl","matAutocomplete","keyup.enter","keyup.escape","click"],["searchInput",""],["panelWidth","600px",3,"displayWith","optionSelected"],["auto","matAutocomplete","autocompletePanel",""],[3,"value",4,"ngFor","ngForOf"],["matSuffix","","fxLayout","row"],["mat-icon-button","","matSuffix","","fxHide","",3,"fxShow","ngClass","click"],["mat-icon-button","","matSuffix","",3,"ngClass","click"],["mat-fab","","matTooltip","Watch a video with tips about resources",1,"show-video",3,"fxHide","click"],["fxLayout","row wrap","fxLayoutAlign","center center","fxLayoutGap","0px",1,"search-bar-header"],[3,"fxFlex"],[3,"value"]],template:function(t,e){if(1&t&&(Qo(0,"div",0),jo(1,mX,5,2,"div",1),Qo(2,"div",2),Qo(3,"mat-form-field",3),ra("click",function(t){return e.openAutocompletePanel(t)}),Qo(4,"input",4,5),ra("keyup.enter",function(){return e.updateSearch(!1)})("keyup.escape",function(){return e.updateSearch(!0)})("click",function(t){return e.openAutocompletePanel(t)}),Xo(),Qo(6,"mat-autocomplete",6,7),ra("optionSelected",function(t){return e.selectCategory(t)}),jo(9,fX,2,2,"mat-option",8),vc(10,"async"),Xo(),Qo(11,"div",9),Qo(12,"button",10),ra("click",function(){return e.updateSearch(!0)}),Qo(13,"mat-icon"),Na(14,"cancel"),Xo(),Xo(),Qo(15,"button",11),ra("click",function(){return e.updateSearch(!1)}),Qo(16,"mat-icon"),Na(17,"search"),Xo(),Xo(),Xo(),Xo(),Qo(18,"button",12),ra("click",function(){return e.showVideo()}),Qo(19,"mat-icon"),Na(20,"ondemand_video"),Xo(),Xo(),Xo(),Xo()),2&t){const t=Wo(5),i=Wo(7);ka("search-bar "+e.variant),dr(1),qo("ngIf","Search for Autism Resources"!=t.value),dr(2),qo("fxFlex",e.videoIsVisible?"calc(100% - 66px)":"100%"),dr(1),qo("formControl",e.searchBoxControl)("matAutocomplete",i),dr(2),qo("displayWith",e.optionText),dr(3),qo("ngForOf",wc(10,12,e.filteredOptions)),dr(3),qo("fxShow",e.hasWords)("ngClass",pc(14,gX,!e.hasWords)),dr(3),qo("ngClass",hc(16,_X)),dr(3),qo("fxHide",!e.videoIsVisible)}},directives:[o_,Jd,p_,Z_,Yk,k_,cE,_b,fA,Ub,xy,cA,Kd,Gk,TA,Ng,Qd,Pg,JT,AD,Jx],pipes:[ph],styles:[".search-bar[_ngcontent-%COMP%]{display:-ms-inline-flexbox;display:inline-flex;width:100%;margin-top:2em}.search-bar.hidden[_ngcontent-%COMP%]{display:block;position:fixed;top:0;left:100%}.search-bar[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .search-bar[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{margin:0;padding:0}.search-bar[_ngcontent-%COMP%] .mat-hint[_ngcontent-%COMP%]{font-size:1em} .search-bar mat-form-field .mat-icon{margin-top:6px;margin-bottom:-6px} .search-bar mat-form-field .mat-form-field-wrapper{padding:10px 0 0} .search-bar mat-form-field .mat-form-field-infix{padding-top:10px;padding-bottom:10px;border-top-width:0} .search-bar mat-form-field .mat-icon-button.hidden{display:none} .search-bar.dark-bg .mat-form-field-appearance-outline .mat-form-field-outline, .search-bar.dark-bg .mat-form-field-label, .search-bar.dark-bg .mat-hint, .search-bar.dark-bg input{color:#fff} .search-bar.dark-bg mat-form-field ::-moz-placeholder{color:hsla(0,0%,100%,.7)} .search-bar.dark-bg mat-form-field :-ms-input-placeholder{color:hsla(0,0%,100%,.7)} .search-bar.dark-bg mat-form-field ::placeholder{color:hsla(0,0%,100%,.7)} .search-bar.light-bg .mat-form-field-appearance-outline .mat-form-field-outline, .search-bar.light-bg .mat-form-field-label, .search-bar.light-bg .mat-hint, .search-bar.light-bg input{color:#000} .search-bar.light-bg mat-form-field ::-moz-placeholder{color:#666} .search-bar.light-bg mat-form-field :-ms-input-placeholder{color:#666} .search-bar.light-bg mat-form-field ::placeholder{color:#666} #search-field .mat-form-field-outline{background-color:#fff;border-radius:5px} .mat-option-text{font-size:16px;overflow:visible!important;text-overflow:unset!important}.search-bar-header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .search-bar-header[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{padding:0;margin:0}.btn-cancel[_ngcontent-%COMP%], .btn-search[_ngcontent-%COMP%]{margin-top:4px;margin-bottom:-4px}"]}),t})();function yX(t,e){if(1&t&&(Qo(0,"span",3),Na(1),Xo()),2&t){const t=ua();dr(1),Va(t.selectedSort.label)}}function vX(t,e){if(1&t){const t=ea();Qo(0,"mat-option",4),ra("click",function(){Be(t);const i=e.$implicit;return ua().sortMethodSelected.emit(i)}),Qo(1,"span",5),Na(2),Xo(),Xo()}if(2&t){const t=e.$implicit;qo("value",t)("ngClass","sort-by-"+t.name.toLowerCase()),dr(2),Va(t.label)}}let wX=(()=>{class t{constructor(){this.sortMethodSelected=new kc}ngOnInit(){}get sortMethodsList(){return Object.values(this.sortMethods)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-search-sort"]],inputs:{selectedSort:"selectedSort",sortMethods:"sortMethods"},outputs:{sortMethodSelected:"sortMethodSelected"},decls:7,vars:3,consts:[[3,"value","valueChange"],["class","selected-sort-label",4,"ngIf"],[3,"value","ngClass","click",4,"ngFor","ngForOf"],[1,"selected-sort-label"],[3,"value","ngClass","click"],[1,"sort-label"]],template:function(t,e){1&t&&(Qo(0,"mat-form-field"),Qo(1,"mat-label"),Na(2,"Sort By:"),Xo(),Qo(3,"mat-select",0),ra("valueChange",function(t){return e.selectedSort=t}),Qo(4,"mat-select-trigger"),jo(5,yX,2,1,"span",1),Xo(),jo(6,vX,3,3,"mat-option",2),Xo(),Xo()),2&t&&(dr(3),qo("value",e.selectedSort),dr(2),qo("ngIf",e.selectedSort),dr(1),qo("ngForOf",e.sortMethodsList))},directives:[Yk,Nk,rD,nD,Jd,Kd,Jx,Qd,Pg],styles:[".mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t})();function CX(t,e){if(1&t&&Ko(0,"app-details-link",3),2&t){const t=e.$implicit;qo("url",t.url)("label",t.label)("inverted",!0)("allCaps",!1)("size",1)("externalLink",!0)}}let xX=(()=>{class t{constructor(){this.playerVars={cc_load_policy:1,modestbranding:1,rel:0,showinfo:0}}get windowWidthFactor(){const t=window.innerWidth;return t<600?.7:t>=600&&t<960?.8:t>=960&&t<1280?.9:t>=1280?1:void 0}get videoWidthFactor(){switch(this.videoSize){case"large":return 1;case"medium":return.75;case"small":return.5}}get videoWidth(){return Math.floor(560*this.videoWidthFactor*this.windowWidthFactor)}get videoHeight(){return Math.floor(315*this.videoWidthFactor*this.windowWidthFactor)}ngOnInit(){}hideVideo(){localStorage.setItem("shouldHideTutorialVideo","true")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-tutorial-video"]],inputs:{videoSize:"videoSize",videoId:"videoId",instructions:"instructions",links:"links"},decls:8,vars:9,consts:[["mat-mini-fab","",1,"hide-video",3,"click"],[3,"width","height","videoId","playerVars"],["class","video-link",3,"url","label","inverted","allCaps","size","externalLink",4,"ngFor","ngForOf"],[1,"video-link",3,"url","label","inverted","allCaps","size","externalLink"]],template:function(t,e){1&t&&(Qo(0,"div"),Qo(1,"button",0),ra("click",function(){return e.hideVideo()}),Qo(2,"mat-icon"),Na(3,"close"),Xo(),Xo(),Ko(4,"youtube-player",1),Qo(5,"markdown"),Na(6),Xo(),jo(7,CX,1,6,"app-details-link",2),Xo()),2&t&&(Ga("video-preview ",e.videoSize,""),dr(4),qo("width",e.videoWidth)("height",e.videoHeight)("videoId",e.videoId)("playerVars",e.playerVars),dr(2),Va(e.instructions),dr(1),qo("ngForOf",e.links))},directives:[TA,JT,iF,BV,Kd,$U],styles:[".video-preview[_ngcontent-%COMP%]{position:relative;display:block;margin:2em;padding:24px;background-color:#232d4b;color:#fff}.video-preview[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;text-align:center;padding:.5em}.video-preview.large[_ngcontent-%COMP%]{width:440px}@media (min-width:600px){.video-preview.large[_ngcontent-%COMP%]{width:496px}}@media (min-width:960px){.video-preview.large[_ngcontent-%COMP%]{width:552px}}@media (min-width:1280px){.video-preview.large[_ngcontent-%COMP%]{width:608px}}.video-preview.medium[_ngcontent-%COMP%]{width:342px}@media (min-width:600px){.video-preview.medium[_ngcontent-%COMP%]{width:384px}}@media (min-width:960px){.video-preview.medium[_ngcontent-%COMP%]{width:426px}}@media (min-width:1280px){.video-preview.medium[_ngcontent-%COMP%]{width:468px}}.video-preview.small[_ngcontent-%COMP%]{width:244px}@media (min-width:600px){.video-preview.small[_ngcontent-%COMP%]{width:272px}}@media (min-width:960px){.video-preview.small[_ngcontent-%COMP%]{width:300px}}@media (min-width:1280px){.video-preview.small[_ngcontent-%COMP%]{width:328px}}.hide-video[_ngcontent-%COMP%]{position:absolute;top:-12px;right:-12px}.video-link[_ngcontent-%COMP%]{display:block;margin-top:1em;color:#e57200}"]}),t})();function SX(t,e){if(1&t){const t=ea();Qo(0,"div"),Qo(1,"button",1),ra("click",function(){return Be(t),ua().openAdd()}),Qo(2,"mat-icon"),Na(3,"add"),Xo(),Xo(),Xo()}if(2&t){const t=ua();dr(1),ma("matTooltip",t.addLabel)}}let kX=(()=>{class t{constructor(t){this.router=t}ngOnInit(){}openAdd(){this.router.navigateByUrl(this.addLink)}}return t.\u0275fac=function(e){return new(e||t)($o(lG))},t.\u0275cmp=Xt({type:t,selectors:[["app-add-button"]],inputs:{currentUser:"currentUser",addLink:"addLink",addLabel:"addLabel"},decls:1,vars:1,consts:[[4,"ngIf"],["mat-mini-fab","","color","primary","aria-label","Add",1,"add-button",3,"matTooltip","click"]],template:function(t,e){1&t&&jo(0,SX,4,1,"div",0),2&t&&qo("ngIf",e.currentUser&&e.currentUser.permissions.includes("create_resource"))},directives:[Jd,TA,AD,JT],styles:[""]}),t})();function AX(t,e){if(1&t){const t=ea();Zo(0),Qo(1,"mat-list-item",5),ra("click",function(){Be(t);const i=e.$implicit;return ua(2).selectCategory(i)}),Qo(2,"mat-icon"),Na(3,"chevron_left"),Xo(),Qo(4,"span",6),Na(5),Xo(),Xo(),Jo()}if(2&t){const t=e.$implicit;dr(5),Ba(" ",t.name," ")}}function OX(t,e){if(1&t&&(Qo(0,"mat-list",3),jo(1,AX,6,1,"ng-container",4),Xo()),2&t){const t=ua();dr(1),qo("ngForOf",t.parentList())}}function EX(t,e){if(1&t&&(Qo(0,"span",13),Na(1),Xo()),2&t){const t=ua().$implicit;dr(1),Ha("",t.name," - ",t.hit_count," result")}}function TX(t,e){if(1&t&&(Qo(0,"span",13),Na(1),Xo()),2&t){const t=ua().$implicit;dr(1),Ha("",t.name," - ",t.hit_count," results")}}function PX(t,e){1&t&&(Qo(0,"mat-icon",14),Na(1,"arrow_right "),Xo())}function DX(t,e){if(1&t){const t=ea();Qo(0,"button",10),ra("click",function(){Be(t);const i=e.$implicit;return ua(2).selectCategory(i)}),jo(1,EX,2,2,"span",11),jo(2,TX,2,2,"span",11),jo(3,PX,2,0,"mat-icon",12),Xo()}if(2&t){const t=e.$implicit,i=ua(2);dr(1),qo("ngIf",1==t.hit_count),dr(1),qo("ngIf",1!=t.hit_count),dr(1),qo("ngIf",i.hasChildren(t))}}function MX(t,e){if(1&t&&(Zo(0),Qo(1,"button",7),Qo(2,"mat-icon"),Na(3,"topic"),Xo(),Na(4),Qo(5,"mat-icon"),Na(6,"arrow_drop_down"),Xo(),Xo(),Qo(7,"mat-menu",null,8),jo(9,DX,4,3,"button",9),Xo(),Jo()),2&t){const t=Wo(8),e=ua();dr(1),qo("matMenuTriggerFor",t)("ngClass.gt-sm","select-topic"),dr(3),Ba(" Filter by ",e.category.level<=0?"Topic":"Subtopic"," "),dr(5),qo("ngForOf",e.categories)}}function IX(t,e){1&t&&Ko(0,"div",15)}let RX=(()=>{class t{constructor(t,e){this.categoriesService=t,this.changeDetectorRef=e,this.categorySelected=new kc,this.categoriesById={},this.loading=!0,this.categoriesService.categoriesById&&(this.categoriesById=this.categoriesService.categoriesById,this.loading=!1),this.categoriesService.updated.subscribe(()=>{this.categoriesById=this.categoriesService.categoriesById,this.loading=!1,this.changeDetectorRef.detectChanges()})}get categories(){return this.getChildrenWithHits(this.category)}selectCategory(t){this.categorySelected.emit(t)}parentList(t=this.category,e=[]){return t.parent?(e.unshift(t.parent),this.parentList(t.parent,e)):e}hasChildren(t){const e=null===t.id?t:this.categoriesById[t.id];return e&&e.children&&e.children.length>0}getChildrenWithHits(t){return this.hasChildren(t)?t.children.filter(t=>t.hit_count>0):[]}}return t.\u0275fac=function(e){return new(e||t)($o(dX),$o(Vl))},t.\u0275cmp=Xt({type:t,selectors:[["app-search-topics"]],inputs:{category:"category"},outputs:{categorySelected:"categorySelected"},decls:4,vars:3,consts:[["class","parent-topics","dense","",4,"ngIf"],[4,"ngIf","ngIfElse"],["loadingMessage",""],["dense","",1,"parent-topics"],[4,"ngFor","ngForOf"],[1,"show-all",3,"click"],[1,"filter-facet-label"],["mat-button","",3,"matMenuTriggerFor","ngClass.gt-sm"],["topicMenu",""],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"],["class","child-label",4,"ngIf"],["matTooltip","Subtopics",4,"ngIf"],[1,"child-label"],["matTooltip","Subtopics"],[1,"placeholder"]],template:function(t,e){if(1&t&&(jo(0,OX,2,1,"mat-list",0),jo(1,MX,10,4,"ng-container",1),jo(2,IX,1,0,"ng-template",null,2,jc)),2&t){const t=Wo(3);qo("ngIf",e.category&&e.parentList().length>0),dr(1),qo("ngIf",!e.loading&&e.category&&e.category.children&&e.category.children.length>0)("ngIfElse",t)}},directives:[Jd,fP,Kd,bP,JT,TA,FP,Pg,MP,EP,AD],styles:[".mat-hint{display:block;color:#e57200;font-size:1rem;padding-top:.5rem}.mat-menu-trigger[_ngcontent-%COMP%]{min-width:100%;min-height:36px}div.current-facet-label[_ngcontent-%COMP%]{cursor:pointer;font-weight:700;color:#4e4e4e;padding:5px 0}.show-all[_ngcontent-%COMP%]{cursor:pointer}button[_ngcontent-%COMP%]{width:100%;text-align:left} .mat-menu-panel{max-width:400px!important;width:400px} .mat-menu-panel .mat-menu-content{width:auto} .mat-menu-panel .mat-menu-content .mat-menu-item{text-overflow:unset}.parent-topics[_ngcontent-%COMP%], .placeholder[_ngcontent-%COMP%], .select-topic[_ngcontent-%COMP%], .parent-topics mat-list-item{min-width:100%;min-height:36px}"]}),t})();function LX(t,e){if(1&t){const t=ea();Qo(0,"button",4),ra("click",function(){Be(t);const i=e.$implicit;return ua(2).select(i.value)}),Na(1),Xo()}if(2&t){const t=e.$implicit,i=ua(2);dr(1),za(" ",i.label_map[t.value]," - ",t.count," result",1===t.count?"":"s"," ")}}function FX(t,e){if(1&t&&(Qo(0,"mat-hint"),Na(1),Xo()),2&t){const t=ua(2);dr(1),Va(t.notApplicableMessage)}}function NX(t,e){if(1&t){const t=ea();Zo(0),Qo(1,"button",2),Qo(2,"mat-icon"),Na(3),Xo(),Na(4),Qo(5,"mat-icon"),Na(6,"arrow_drop_down"),Xo(),Xo(),Qo(7,"mat-menu",null,3),Qo(9,"button",4),ra("click",function(){return Be(t),ua().select()}),Na(10),Xo(),jo(11,LX,2,3,"button",5),Xo(),jo(12,FX,2,1,"mat-hint",6),Jo()}if(2&t){const t=Wo(8),e=ua();dr(1),qo("matMenuTriggerFor",t),dr(2),Va(e.label_icon),dr(1),Ba(" ",e.hasSelection()?e.label_map[e.selectedAgg().value]:e.label_title," "),dr(6),Va(e.label_any),dr(1),qo("ngForOf",e.aggregations),dr(1),qo("ngIf",e.isNotApplicable)}}function VX(t,e){1&t&&Ko(0,"app-loading",7),2&t&&qo("isField",!0)}let BX=(()=>{class t{constructor(){this.filterSelected=new kc}ngOnInit(){}select(t){this.filterSelected.emit(t)}hasSelection(){return 1===this.aggregations.filter(t=>t.is_selected).length}selectedAgg(){return this.hasSelection()?this.aggregations.filter(t=>t.is_selected)[0]:{value:null,count:0,is_selected:!0}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-search-filter"]],inputs:{label_title:"label_title",label_icon:"label_icon",label_any:"label_any",label_map:"label_map",aggregations:"aggregations",isNotApplicable:"isNotApplicable",notApplicableMessage:"notApplicableMessage"},outputs:{filterSelected:"filterSelected"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["loadingMessage",""],["mat-button","",3,"matMenuTriggerFor"],["menuItems",""],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"isField"]],template:function(t,e){if(1&t&&(jo(0,NX,13,6,"ng-container",0),jo(1,VX,1,1,"ng-template",null,1,jc)),2&t){const t=Wo(2);qo("ngIf",e.aggregations)("ngIfElse",t)}},directives:[Jd,TA,FP,JT,MP,EP,Kd,Fk,Qj],styles:[".mat-hint{display:block;color:#e57200;font-size:1rem;padding-top:.5rem}button[_ngcontent-%COMP%]{width:100%;text-align:left} .mat-menu-panel{max-width:400px!important;width:400px} .mat-menu-panel .mat-menu-content{width:auto} .mat-menu-panel .mat-menu-content .mat-menu-item{text-overflow:unset}.mat-menu-trigger[_ngcontent-%COMP%]{min-width:100%;min-height:36px}"]}),t})();function HX(t,e){if(1&t){const t=ea();Zo(0),Qo(1,"mat-chip",8),ra("click",function(){return Be(t),ua(2).mappedResultsChipClicked.emit(!1)}),Qo(2,"span",9),Na(3,"Mapped results only"),Xo(),Qo(4,"mat-icon"),Na(5,"close"),Xo(),Xo(),Jo()}}function zX(t,e){if(1&t){const t=ea();Zo(0),Qo(1,"mat-chip",10),ra("click",function(){return Be(t),ua(2).keywordChipClicked.emit()}),Qo(2,"span",9),Na(3),Xo(),Qo(4,"mat-icon"),Na(5,"close"),Xo(),Xo(),Jo()}if(2&t){const t=ua(2);dr(3),Ba('"',t.query.words,'"')}}function GX(t,e){if(1&t){const t=ea();Zo(0),Qo(1,"mat-chip",11),ra("click",function(){return Be(t),ua(2).ageRangeChipClicked.emit()}),Qo(2,"span",9),Na(3),Xo(),Qo(4,"mat-icon"),Na(5,"close"),Xo(),Xo(),Jo()}if(2&t){const t=e.$implicit,i=ua(2);dr(3),Va(i.ageLabels[t])}}function UX(t,e){if(1&t){const t=ea();Zo(0),Qo(1,"mat-chip",12),ra("click",function(){return Be(t),ua(2).languageChipClicked.emit()}),Qo(2,"span",9),Na(3),Xo(),Qo(4,"mat-icon"),Na(5,"close"),Xo(),Xo(),Jo()}if(2&t){const t=e.$implicit,i=ua(2);dr(3),Va(i.languageLabels[t])}}function jX(t,e){if(1&t){const t=ea();Qo(0,"div"),Qo(1,"mat-chip",13),ra("click",function(){return Be(t),ua(2).typeChipClicked.emit()}),Qo(2,"span",9),Na(3),Xo(),Qo(4,"mat-icon"),Na(5,"close"),Xo(),Xo(),Xo()}if(2&t){const t=ua(2);dr(3),Va(t.typeLabels[t.query.types[0]])}}function WX(t,e){if(1&t&&(Zo(0),Na(1),Qo(2,"mat-icon"),Na(3,"chevron_right"),Xo(),Jo()),2&t){const t=ua(3);dr(1),Ba(" ",t.query.category.parent.parent.name," ")}}function $X(t,e){if(1&t&&(Zo(0),Na(1),Qo(2,"mat-icon"),Na(3,"chevron_right"),Xo(),Jo()),2&t){const t=ua(3);dr(1),Ba(" ",t.query.category.parent.name," ")}}function qX(t,e){if(1&t){const t=ea();Zo(0),Qo(1,"mat-chip",14),ra("click",function(){return Be(t),ua(2).categoryChipClicked.emit()}),Qo(2,"div",15),jo(3,WX,4,1,"ng-container",5),jo(4,$X,4,1,"ng-container",5),Na(5),Xo(),Qo(6,"mat-icon"),Na(7,"close"),Xo(),Xo(),Jo()}if(2&t){const t=ua(2);dr(3),qo("ngIf",t.query.category.parent&&t.query.category.parent.parent),dr(1),qo("ngIf",t.query.category.parent),dr(1),Ba(" ",t.query.category.name," ")}}function YX(t,e){if(1&t){const t=ea();Qo(0,"a",16),ra("click",function(){return Be(t),ua(2).clearAllClicked.emit()}),Na(1,"Clear All"),Xo()}}function QX(t,e){if(1&t&&(Qo(0,"div",1),Qo(1,"h4",2),Na(2,"Selected Filters:"),Xo(),Qo(3,"mat-chip-list",3,4),jo(5,HX,6,0,"ng-container",5),jo(6,zX,6,1,"ng-container",5),jo(7,GX,6,1,"ng-container",6),jo(8,UX,6,1,"ng-container",6),jo(9,jX,6,1,"div",5),jo(10,qX,8,3,"ng-container",5),Xo(),jo(11,YX,2,0,"a",7),Xo()),2&t){const t=ua();dr(5),qo("ngIf",t.restrictToMappedResults),dr(1),qo("ngIf",t.query.hasWords),dr(1),qo("ngForOf",t.query.ages),dr(1),qo("ngForOf",t.query.languages),dr(1),qo("ngIf",t.query.hasTypes),dr(1),qo("ngIf",t.query.hasCategory),dr(1),qo("ngIf",t.query.hasFilters)}}let XX=(()=>{class t{constructor(){this.mappedResultsChipClicked=new kc,this.keywordChipClicked=new kc,this.ageRangeChipClicked=new kc,this.languageChipClicked=new kc,this.typeChipClicked=new kc,this.categoryChipClicked=new kc,this.clearAllClicked=new kc}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-search-filters-breadcrumbs"]],inputs:{query:"query",restrictToMappedResults:"restrictToMappedResults",ageLabels:"ageLabels",languageLabels:"languageLabels",typeLabels:"typeLabels"},outputs:{mappedResultsChipClicked:"mappedResultsChipClicked",keywordChipClicked:"keywordChipClicked",ageRangeChipClicked:"ageRangeChipClicked",languageChipClicked:"languageChipClicked",typeChipClicked:"typeChipClicked",categoryChipClicked:"categoryChipClicked",clearAllClicked:"clearAllClicked"},decls:1,vars:1,consts:[["fxLayout","row","fxFlex.gt-sm","100%","fxLayoutGap","10px",4,"ngIf"],["fxLayout","row","fxFlex.gt-sm","100%","fxLayoutGap","10px"],["fxShow","","fxHide.lt-md",""],["ngClass.lt-md","applied-filters-small",1,"applied-filters"],["appliedFilters",""],[4,"ngIf"],[4,"ngFor","ngForOf"],["mat-button","","fxShow","","fxHide.lt-md","",3,"click",4,"ngIf"],[1,"applied-filter","applied-filter-mapped",3,"click"],[1,"applied-filter-label"],[1,"applied-filter","applied-filter-keyword",3,"click"],[1,"applied-filter","applied-filter-age",3,"click"],[1,"applied-filter","applied-filter-language",3,"click"],[1,"applied-filter","applied-filter-type",3,"click"],[1,"applied-filter","applied-filter-topic",3,"click"],["fxLayout","row","fxLayoutAlign","center center",1,"applied-filter-label"],["mat-button","","fxShow","","fxHide.lt-md","",3,"click"]],template:function(t,e){1&t&&jo(0,QX,12,7,"div",0),2&t&&qo("ngIf",e.query.hasFilters)},directives:[Jd,o_,k_,p_,Ng,OO,Pg,Kd,wO,JT,Z_,PA],styles:[".applied-filters[_ngcontent-%COMP%]{grid-area:filters;margin-left:0;justify-self:start}.applied-filters[_ngcontent-%COMP%] .mat-chip-list-wrapper{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;overflow-x:auto;padding-bottom:1em}.applied-filters[_ngcontent-%COMP%] .mat-chip-list-wrapper .mat-chip{-ms-flex:0 0 auto;flex:0 0 auto}.applied-filters[_ngcontent-%COMP%] .applied-filter[_ngcontent-%COMP%]{color:#fff;background-color:#e57200}.applied-filters[_ngcontent-%COMP%] .applied-filter[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:.75rem;margin-right:-.25rem;font-size:1.25rem;line-height:1.25}.applied-filters[_ngcontent-%COMP%] .applied-filter[_ngcontent-%COMP%] .applied-filter-label[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:0}.applied-filters.applied-filters-small[_ngcontent-%COMP%] .applied-filter[_ngcontent-%COMP%]{font-size:.75rem}.applied-filters.applied-filters-small[_ngcontent-%COMP%] .applied-filter[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:1rem;line-height:1.5}"]}),t})();const KX=["paginator"],ZX=["mapTemplate"];function JX(t,e){if(1&t&&Ko(0,"app-tutorial-video",60),2&t){const t=ua();qo("videoSize",t.videoSize)("videoId",t.videoId)("instructions",t.videoInstructions)("links",t.videoLinks)}}function tK(t,e){if(1&t&&Ko(0,"app-tutorial-video",61),2&t){const t=ua();qo("videoSize",t.videoSize)("videoId",t.videoId)("instructions",t.videoInstructions)("links",t.videoLinks)}}function eK(t,e){if(1&t&&Ko(0,"app-add-button",62),2&t){const t=ua();qo("addLabel","Add Resource")("addLink","resources/add")("currentUser",t.currentUser)}}function iK(t,e){if(1&t&&Ko(0,"app-type-icon",63),2&t){const t=ua();qo("iconType",t.selectedType&&t.selectedType.name)("size",1)}}function nK(t,e){if(1&t&&(Qo(0,"span",64),Na(1),Xo()),2&t){const t=ua();dr(1),Va(t.selectedType.label)}}function sK(t,e){if(1&t){const t=ea();Qo(0,"mat-option",65),ra("click",function(){Be(t);const i=e.$implicit;return ua().selectType(i.name)}),Ko(1,"app-type-icon",63),Qo(2,"span",64),Na(3),Xo(),Xo()}if(2&t){const t=e.$implicit;qo("value",t),dr(1),qo("iconType",t.name)("size",1),dr(2),Va(t.label)}}function rK(t,e){if(1&t){const t=ea();Qo(0,"app-search-topics",66),ra("categorySelected",function(e){return Be(t),ua().selectCategory(e)}),Xo()}2&t&&qo("category",ua().selectedCategory)("ngClass","filter-by-topic")}function oK(t,e){if(1&t){const t=ea();Qo(0,"div"),Qo(1,"app-search-filter",67),ra("filterSelected",function(e){return Be(t),ua().selectAgeRange(e)}),Xo(),Xo()}if(2&t){const t=ua();dr(1),qo("aggregations",t.query.age_counts)("label_title","Filter by Age")("label_any","Any age")("label_map",t.ageLabels)("label_icon","cake")("ngClass","filter-by-age")("isNotApplicable",!t.loading&&!t.query.hasAgeCounts)("notApplicableMessage","No age restrictions available for these search results.")}}function aK(t,e){if(1&t){const t=ea();Qo(0,"div"),Qo(1,"app-search-filter",67),ra("filterSelected",function(e){return Be(t),ua().selectLanguage(e)}),Xo(),Xo()}if(2&t){const t=ua();dr(1),qo("aggregations",t.query.language_counts)("label_title","Filter by Language")("label_any","Any language")("label_map",t.languageLabels)("label_icon","language")("ngClass","filter-by-language")("isNotApplicable",!t.loading&&!t.query.hasLanguageCounts)("notApplicableMessage","No language restrictions available for these search results.")}}function lK(t,e){if(1&t&&Ko(0,"app-tutorial-video",61),2&t){const t=ua();qo("videoSize",t.videoSize)("videoId",t.videoId)("instructions",t.videoInstructions)("links",t.videoLinks)}}function cK(t,e){if(1&t&&Ko(0,"app-tutorial-video",60),2&t){const t=ua();qo("videoSize",t.videoSize)("videoId",t.videoId)("instructions",t.videoInstructions)("links",t.videoLinks)}}function uK(t,e){1&t&&(Qo(0,"div",68),Na(1,"All Resources"),Xo())}function dK(t,e){if(1&t&&(Qo(0,"div"),Ko(1,"app-type-icon",63),Na(2),Xo()),2&t){const t=ua().$implicit;Ga("type-buttons ",t.name,""),dr(1),qo("iconType",t.name)("size",1),dr(1),Ba(" ",t.label," ")}}function hK(t,e){1&t&&(Qo(0,"mat-tab"),jo(1,dK,3,6,"ng-template",32),Xo())}function pK(t,e){if(1&t&&(Zo(0),Na(1),Jo()),2&t){const t=ua();dr(1),Ba("",t.numTotalResults," results")}}function mK(t,e){if(1&t&&(Zo(0),Na(1),Jo()),2&t){const t=ua();dr(1),Ba("",t.hits.length," mapped results")}}function fK(t,e){1&t&&(Qo(0,"div",73),Qo(1,"h2"),Na(2,"No results currently available."),Xo(),Qo(3,"p"),Na(4,"We could not find any results for your search. Please try removing some of the conditions by clicking on the 'x' in the filter tiles above. This will broaden the search and give you more results."),Xo(),Qo(5,"h3"),Na(6,"Check back soon for more updates!"),Xo(),Xo())}function gK(t,e){if(1&t&&(Qo(0,"h4"),Na(1),Xo()),2&t){const t=ua(4);dr(1),za("Showing ",t.numResultsFrom,"-",t.numResultsTo," of ",t.numTotalResults," results")}}function _K(t,e){if(1&t&&(Qo(0,"h4"),Na(1),Xo()),2&t){const t=ua(4);dr(1),za("Showing ",t.numResultsFrom,"-",t.numResultsTo," of ",t.numTotalResults," mapped results.")}}function bK(t,e){if(1&t&&(Qo(0,"div",76),jo(1,gK,2,3,"h4",24),jo(2,_K,2,3,"h4",24),Xo()),2&t){const t=ua(3);zo("data-num-results",t.restrictToMappedResults?t.hits.length:t.numTotalResults),dr(1),qo("ngIf",!t.restrictToMappedResults),dr(1),qo("ngIf",t.restrictToMappedResults)}}function yK(t,e){if(1&t){const t=ea();Qo(0,"div",74),jo(1,bK,3,3,"div",75),Qo(2,"div",71),Qo(3,"app-search-sort",27),ra("sortMethodSelected",function(e){return Be(t),ua(2).reSort(e.name,!0)}),Xo(),Xo(),Xo()}if(2&t){const t=ua(2);dr(1),qo("ngIf",t.paginatorElement),dr(2),qo("selectedSort",t.selectedSort)("sortMethods",t.sortMethods)}}function vK(t,e){if(1&t){const t=ea();Qo(0,"app-search-filters-breadcrumbs",77),ra("ageRangeChipClicked",function(){return Be(t),ua(2).selectAgeRange()})("categoryChipClicked",function(){return Be(t),ua(2).removeCategory()})("clearAllClicked",function(){return Be(t),ua(2).clearAllFilters()})("keywordChipClicked",function(){return Be(t),ua(2).removeWords()})("languageChipClicked",function(){return Be(t),ua(2).selectLanguage()})("mappedResultsChipClicked",function(e){return Be(t),ua(2).listMapResultsOnly(e)})("typeChipClicked",function(){return Be(t),ua(2).selectType()}),Xo()}if(2&t){const t=ua(2);qo("ageLabels",t.ageLabels)("fxHide",!t.showBreadcrumbs())("fxShow",t.showBreadcrumbs())("languageLabels",t.languageLabels)("query",t.query)("restrictToMappedResults",t.restrictToMappedResults)("typeLabels",t.typeLabels)}}function wK(t,e){if(1&t&&Ko(0,"app-search-result",79),2&t){const t=e.$implicit,i=e.index,n=ua(3);qo("hit",t)("mapLoc",n.loc)("currentUser",n.currentUser)("ngClass","sort-order-"+i)}}function CK(t,e){if(1&t&&(Qo(0,"div"),jo(1,wK,1,4,"app-search-result",78),Xo()),2&t){const t=ua(2);dr(1),qo("ngForOf",t.hits)}}function xK(t,e){if(1&t&&(Zo(0),jo(1,fK,7,0,"div",69),jo(2,yK,4,3,"div",70),Qo(3,"div",71),jo(4,vK,1,7,"app-search-filters-breadcrumbs",72),Xo(),jo(5,CK,2,1,"div",24),Jo()),2&t){const t=ua();dr(1),qo("ngIf",0===(null==t.query?null:t.query.hits.length)),dr(1),qo("ngIf",0!=(null==t.query?null:t.query.total)),dr(2),qo("ngIf",t.query),dr(1),qo("ngIf",t.hits.length>0)}}function SK(t,e){1&t&&(Qo(0,"mat-icon"),Na(1,"check_box_outline_blank"),Xo())}function kK(t,e){1&t&&(Qo(0,"mat-icon"),Na(1,"check_box"),Xo())}function AK(t,e){1&t&&(Zo(0),Na(1,"Set Location"),Jo())}function OK(t,e){if(1&t&&(Zo(0),Na(1),Jo()),2&t){const t=ua(2);dr(1),Ba("Location: ",t.storedZip,"")}}function EK(t,e){1&t&&(Zo(0),Na(1,"Your current location"),Jo())}function TK(t,e){1&t&&(Zo(0),Na(1,"Using Map's Center"),Jo())}function PK(t,e){if(1&t){const t=ea();Qo(0,"button",89),ra("click",function(e){Be(t),ua();const i=Wo(1);return ua().useGPSLocation(e,i)}),Na(1,"Current Location"),Xo()}}function DK(t,e){if(1&t){const t=ea();Qo(0,"mat-expansion-panel",80,81),ra("afterExpand",function(){Be(t);const e=Wo(10);return ua().focusOnInput(e)}),Qo(2,"mat-expansion-panel-header"),jo(3,AK,2,0,"ng-container",24),jo(4,OK,2,1,"ng-container",24),jo(5,EK,2,0,"ng-container",24),jo(6,TK,2,0,"ng-container",24),Xo(),Qo(7,"div",82),Qo(8,"mat-form-field",83),Qo(9,"input",84,85),ra("ngModelChange",function(e){return Be(t),ua().storedZip=e})("keyup.enter",function(e){Be(t);const i=Wo(1);return ua().submitZip(e,i)}),Xo(),Xo(),Qo(11,"div",86),Qo(12,"button",87),ra("click",function(e){Be(t);const i=Wo(1);return ua().submitZip(e,i)}),Na(13,"Save"),Xo(),jo(14,PK,2,0,"button",88),Xo(),Xo(),Xo()}if(2&t){const t=ua();qo("ngClass","zipCodeSetButton mat-elevation-z1")("expanded",t.showLocationWindow()),dr(3),qo("ngIf",t.locationMode===t.locationModes.default),dr(1),qo("ngIf",t.locationMode===t.locationModes.zipcode),dr(1),qo("ngIf",t.locationMode===t.locationModes.gps),dr(1),qo("ngIf",t.locationMode===t.locationModes.map),dr(1),qo("ngClass","zipCodeSet"),dr(2),qo("ngModel",t.storedZip),dr(5),qo("ngIf",t.gpsEnabled)}}const MK=function(){return{x:48,y:48}},IK=function(t){return{url:"/assets/map/your-location.svg",anchor:t}};function RK(t,e){if(1&t&&Ko(0,"agm-marker",94),2&t){const t=ua(2);qo("latitude",t.loc.lat)("longitude",t.loc.lng)("iconUrl",pc(4,IK,hc(3,MK)))}}const LK=function(){return{x:24,y:24}},FK=function(t,e){return{url:t,anchor:e}};function NK(t,e){if(1&t){const t=ea();Zo(0),Qo(1,"agm-circle",95),ra("circleClick",function(){Be(t);const i=e.$implicit;return ua(2).showInfoWindow(i)}),Xo(),Qo(2,"agm-marker",96),ra("markerClick",function(){Be(t);const i=e.$implicit;return ua(2).showInfoWindow(i)}),Xo(),Jo()}if(2&t){const t=e.$implicit,i=ua(2);dr(1),qo("latitude",t.latitude+i.mapJitter(t.id,!0))("longitude",t.longitude+i.mapJitter(t.id,!1))("radius",i.circleRadius)("fillColor","location"===t.type.toLowerCase()?"#6C799C":"#E57200")("clickable",!0)("visible",i.isInfoWindowOpen&&i.selectedMapHit.id==t.id),dr(1),qo("latitude",t.latitude+i.mapJitter(t.id,!0))("longitude",t.longitude+i.mapJitter(t.id,!1))("iconUrl",mc(10,FK,"/assets/map/"+t.type+"-no-address.svg",hc(9,LK)))}}const VK=function(){return{x:16,y:16}};function BK(t,e){if(1&t){const t=ea();Zo(0),Qo(1,"agm-marker",96),ra("markerClick",function(){Be(t);const i=e.$implicit;return ua(2).showInfoWindow(i)}),Xo(),Jo()}if(2&t){const t=e.$implicit;dr(1),qo("latitude",t.latitude)("longitude",t.longitude)("iconUrl",mc(4,FK,"/assets/map/"+t.type+".svg",hc(3,VK)))}}function HK(t,e){if(1&t){const t=ea();Zo(0),Qo(1,"agm-info-window",97),ra("infoWindowClose",function(){return Be(t),ua(2).closeInfoWindow()}),Qo(2,"a",98),ra("click",function(){Be(t);const e=ua(2);return e.goSelectedMapResource(e.selectedMapResource)}),Na(3),Xo(),Qo(4,"a",99),ra("click",function(){Be(t);const e=ua(2);return e.goSelectedMapResource(e.selectedMapResource)}),Na(5),Xo(),Xo(),Jo()}if(2&t){const t=ua(2);dr(1),qo("isOpen",t.isInfoWindowOpen)("latitude",t.selectedMapHit.latitude)("longitude",t.selectedMapHit.longitude),dr(1),ga("href","/#/",t.selectedMapResource.type.toLowerCase(),"/",t.selectedMapResource.id,"",ms),dr(1),Va(t.selectedMapResource.title),dr(2),Ba(" ",t.selectedMapHit.no_address?"In-home therapy":t.selectedMapHit.type," Details")}}function zK(t,e){if(1&t){const t=ea();Qo(0,"agm-map",90,91),ra("mapReady",function(e){return Be(t),ua().mapLoad(e)})("mapClick",function(){return Be(t),ua().closeInfoWindow()})("zoomChange",function(e){return Be(t),ua().updateZoom(e)})("boundsChange",function(e){return Be(t),ua().updateResultsList(e)}),Qo(2,"agm-marker-cluster",92),jo(3,RK,1,6,"agm-marker",93),jo(4,NK,3,13,"ng-container",33),jo(5,BK,2,7,"ng-container",33),Xo(),jo(6,HK,6,7,"ng-container",24),Xo()}if(2&t){const t=ua();qo("latitude",t.loc.lat)("longitude",t.loc.lng)("streetViewControl",!1)("zoom",t.mapZoomLevel?t.mapZoomLevel:t.defaultZoom)("scrollwheel",null),dr(2),qo("imagePath","assets/map/m")("maxZoom",8),dr(1),qo("ngIf",t.loc),dr(1),qo("ngForOf",t.hitsWithNoAddress),dr(1),qo("ngForOf",t.hitsWithAddress),dr(1),qo("ngIf",t.selectedMapResource)}}const GK=function(){return["/studies"]};function UK(t,e){if(1&t&&(Qo(0,"div",100),Qo(1,"mat-card"),Qo(2,"mat-card-content"),Qo(3,"h3"),Na(4,"Highlighted Study: "),Qo(5,"a",101),Na(6),Xo(),Xo(),Qo(7,"p"),Na(8),Xo(),Qo(9,"a",102),Na(10," Explore other studies"),Xo(),Xo(),Xo(),Xo()),2&t){const t=ua();dr(5),fa("href","/#/study/",t.highlightedStudy.id,"",ms),dr(1),Va(t.highlightedStudy.short_title),dr(2),Va(t.highlightedStudy.short_description),dr(1),qo("routerLink",hc(4,GK))}}function jK(t,e){if(1&t&&(Qo(0,"span",103),Qo(1,"a",104),Ko(2,"img",105),Xo(),Xo()),2&t){const t=e.$implicit;dr(1),qo("href",t.url,ms)("title",t.name)("matTooltip",t.shortName+" - "+t.description),dr(1),qo("alt",t.shortName)("src",t.image,ms)}}function WK(t,e){if(1&t){const t=ea();Qo(0,"app-border-box-tile",106),ra("click",function(){return Be(t),ua().submitResource()}),Xo()}2&t&&qo("title","Can't find your resource on drive?")("subtitle","Click Here To Submit")("linkSize",2)}function $K(t,e){1&t&&Ko(0,"app-loading")}const qK=function(t){return{ghost:t}},YK=function(){return{width:"40%"}},QK=function(){return{marginTop:"120vh"}};HTMLDivElement;var XK=function(t){return t.default="default",t.zipcode="zipcode",t.gps="gps",t.map="map",t}({});let KK=(()=>{class t{constructor(t,e,i,n,s,r,o,a,l,c){this.api=t,this.authenticationService=e,this.changeDetectorRef=i,this.googleAnalyticsService=n,this.location=s,this.meta=r,this.renderer=o,this.route=a,this.router=l,this.searchService=c,this.animatePage=!0,this.querySubject=new k,this.mapQuerySubject=new k,this.resourceTypes=OU.all_resources(),this.selectedType=OU.ALL_RESOURCES,this.selectedTypeTabIndex=0,this.ageLabels=EU.labels,this.languageLabels=TU.labels,this.typeLabels=OU.labels,this.ageOptions=[],this.languageOptions=[],this.loading=!0,this.pageSizeOptions=[20,60,100],this.pageSize=this.pageSizeOptions[0],this.gpsEnabled=!0,this.defaultLoc={lat:37.32248,lng:-78.36926},this.loc=tX()()(this.defaultLoc),this.locationModes=XK,this.locationMode=XK.default,this.hitsWithNoAddress=[],this.hitsWithAddress=[],this.defaultZoom=7,this.resourceGatherers=[{name:"Charlottesville Region Autism Action Group",shortName:"CRAAG",description:"\n A parent-run advocacy group, one of three active all-volunteer regional Autism Action Groups\n initiated by Commonwealth Autism. Established in 2010, it serves Charlottesville, Albemarle, Greene,\n Fluvanna, Louisa, and Nelson counties.\n ",image:"/assets/partners/craag.png",url:"https://cahumanservices.org/advocating-change/community-organization-engagement/autism-action-groups/"},{name:"The Faison Center",shortName:"Faison Center",description:"The Faison School provides full-time day school programs for students ages 5 to 22 years.",image:"/assets/partners/faison_center.png",url:"https://www.faisoncenter.org"},{name:"Piedmont Regional Education Program",shortName:"PREP",description:"\n A public regional organization designed to meet the needs of special education students. Provides special\n education programming and related services to nine school districts under an umbrella of a regional program.\n ",image:"/assets/partners/prep.png",url:"http://www.prepivycreek.com/"},{name:"Virginia Institute of Autism",shortName:"VIA",description:"\n The Virginia Institute of Autism is dedicated to helping people overcome the challenges of autism through innovative,\n evidence-based programs in education, outreach and adult services.\n ",image:"/assets/partners/via.png",url:"https://www.viaschool.org/"}],this.searchBgClass="mountain",this.videoPlacement="right",this.videoSize="medium",this.videoId="oURTNCsiq3Y",this.videoInstructions="Watch this video for tips about resources",this.videoLinks=[{label:"Learn scientifically-supported interventions online",url:"https://afirm.fpg.unc.edu/selecting-ebp"},{label:"Read about scientifically-supported interventions",url:"https://www.nationalautismcenter.org/resources/for-families/"},{label:"Contact a Family Navigator for resource help",url:"https://curry.virginia.edu/faculty-research/centers-labs-projects/star/resources/star-family-navigation"}],this.sortMethods={RELEVANCE:{name:"Relevance",label:"Relevance",sortQuery:{field:"_score",order:"desc"}},DISTANCE:{name:"Distance",label:"Distance",sortQuery:{field:"geo_point",latitude:this.loc.lat,longitude:this.loc.lng,order:"asc",unit:"mi"}},UPDATED:{name:"Updated",label:"Recently Updated",sortQuery:{field:"last_updated",order:"desc"}},DATE:{name:"Date",label:"Happening Soon",sortQuery:{field:"date",order:"asc"}},DRAFTS:{name:"Drafts",label:"Drafts",sortQuery:{field:"is_draft",order:"desc"}}},this.selectedSort=this.sortMethods.DISTANCE,this.authenticationService.currentUser.subscribe(t=>this.currentUser=t),this.languageOptions=this.getOptions(TU.labels),this.ageOptions=this.getOptions(EU.labels),this.meta.updateTag({property:"og:image",content:window.location.origin+"/assets/home/hero-parent-child.jpg"},"property='og:image'"),this.meta.updateTag({property:"og:image:secure_url",content:window.location.origin+"/assets/home/hero-parent-child.jpg"},"property='og:image:secure_url'"),this.meta.updateTag({name:"twitter:image",content:window.location.origin+"/assets/home/hero-parent-child.jpg"},"name='twitter:image'")}ngOnInit(){"true"===localStorage.noFirstVisit&&this.hideVideo(),localStorage.noFirstVisit=!0,this.querySubject.pipe(Sf(1e3)).subscribe(t=>{this.loading=!0,this.searchService.search(t).subscribe(t=>{this.prevQuery=tX()()(this.query),this.query=t,this.googleAnalyticsService.searchEvent(this.query),this.updateUrl(),this.loading=!1,this.changeDetectorRef.detectChanges(),this._loadRelatedStudies(),this._updatePaginator()})}),this.mapQuerySubject.pipe(Sf(1e3)).subscribe(t=>{this.loading=!0;const e=this.geoBox();this.searchService.mapSearch(t,e).subscribe(t=>{this.mapQuery=t,this.mapQuery&&this.mapQuery.hits&&this.mapQuery.hits.length>0?(this.hitsWithAddress=this.mapQuery.hits.filter(t=>!t.no_address),this.hitsWithNoAddress=this.mapQuery.hits.filter(t=>t.no_address)):(this.hitsWithAddress=[],this.hitsWithNoAddress=[]),this.loading=!1,this.changeDetectorRef.detectChanges(),this.restrictToMappedResults&&(this.query.geo_box=e,this.querySubject.next(this.query))})}),this.setDefaultMapLocation(()=>{this.route.queryParamMap.subscribe(t=>{this.queryParamMap=t,this.query=this._queryParamsToQuery(t);const e=this.storedZip?10:this.defaultZoom;this.mapZoomLevel=parseInt(t.get("zoom"),10)||e;const i=t.get("lat"),n=t.get("lng");i&&n&&this.setLocation(XK.map,{lat:parseFloat(i),lng:parseFloat(n)});const s=t.get("sort")||"Distance",r=this.prevQuery&&0===this.query.start;r?s&&this.sortMethods[s.toUpperCase()]?this.reSort(s,r):this.reSort(this.query.hasWords?"Relevance":"Distance",r):(this.selectedSort=this.sortMethods[s.toUpperCase()],this.querySubject.next(this.query),this.mapQuerySubject.next(this.query))})})}setLocation(t,e){this.loc=e,this.locationMode=t}setZipLocation(t,e){this.storedZip=t,this.api.getZipCoords(this.storedZip).subscribe(t=>{this.setLocation(XK.zipcode,{lat:t.latitude,lng:t.longitude}),this.mapZoomLevel=10,e&&e()})}setGPSLocation(t){navigator.geolocation?(this.gpsEnabled=!0,navigator.geolocation.getCurrentPosition(e=>{this.setLocation(XK.gps,{lat:e.coords.latitude,lng:e.coords.longitude}),this.mapZoomLevel=10,t&&t()},e=>{this.gpsEnabled=!1,t&&t()})):(this.gpsEnabled=!1,t&&t())}_updateDistanceSort(){const t=this.sortMethods.DISTANCE.sortQuery;t.latitude=this.loc.lat,t.longitude=this.loc.lng,this.query.sort=t}set paginator(t){this.paginatorElement=t}set mapTemplate(t){this.mapTemplateElement=t}get circleRadius(){return 160934/(this.mapZoomLevel||1)}get filtersPanelStyles(){const t={"full-screen":this.showFilters,minimized:!this.showFilters};return t[this.searchBgClass]=!0,t}get hits(){return this.query.hits}get isDistanceSort(){return this.selectedSort&&"Distance"===this.selectedSort.name}get isInfoWindowOpen(){return null!=this.selectedMapResource}get isLastPage(){return!this.paginatorElement||!this.paginatorElement.hasNextPage()}get numResultsFrom(){return this.paginatorElement?this.paginatorElement.pageIndex*this.pageSize+1:0}get numResultsTo(){return this.paginatorElement?this.isLastPage?this.numTotalResults:(this.paginatorElement.pageIndex+1)*this.pageSize:this.numTotalResults}get numTotalResults(){return this.query&&this.query.total?this.query.total:0}get shouldHideVideo(){return!!localStorage.getItem("shouldHideTutorialVideo")}get shouldShowMap(){return this.selectedType&&["event","location"].includes(this.selectedType.name)||this.isDistanceSort}ngAfterViewInit(){this.watchScrollEvents()}ngOnDestroy(){}getOptions(t){const e=[];for(const i in t)t.hasOwnProperty(i)&&e.push({value:i,label:t[i]});return e}removeCategory(t=!1){this.query.category=null,this._goToFirstPage(t)}removeWords(t=!1){this.query.words="",this._goToFirstPage(t)}scrollToTopOfSearch(){document.getElementById("TopOfSearch").scrollIntoView()}setDefaultMapLocation(t){this.storedZip=localStorage.getItem("zipCode"),this.isZipCode(this.storedZip)?this.setZipLocation(this.storedZip,t):(this.setLocation(XK.default,this.defaultLoc),t&&t(),this.setGPSLocation(()=>{this.gpsEnabled&&this.reSort("Distance",!0)}))}reSort(t,e=!1){(this._queryParamsHaveChanged(this.queryParamMap)&&t&&t!==this.selectedSort.name||e)&&(this.selectedSort=this.sortMethods[t.toUpperCase()],this.query.start=0,this.query.sort=this.selectedSort.sortQuery,this.isDistanceSort&&this._updateDistanceSort(),this.mapQuerySubject.next(this.query),this.querySubject.next(this.query))}selectAgeRange(t=null,e=!1){this.query.ages=this.query&&t?[t]:[],this._goToFirstPage(e)}selectLanguage(t=null,e=!1){this.query.languages=t?[t]:[],this._goToFirstPage(e)}selectCategory(t){this.query.category={id:t.id,name:t.name},this._goToFirstPage()}selectType(t=null,e=!1){const i=OU.ALL_RESOURCES.name,n=!(t&&t!==i);n?(this.selectedTypeTabIndex=this.resourceTypes.findIndex(t=>t.name===i),this.selectedType=this.resourceTypes[this.selectedTypeTabIndex],this.query.types=this.resourceTypesFilteredNames(),this.query.date=null,this.selectedSort=this.sortMethods.DISTANCE):(this.selectedTypeTabIndex=this.resourceTypes.findIndex(e=>e.name===t),this.selectedType=this.resourceTypes[this.selectedTypeTabIndex],this.query.types=t===i?this.resourceTypesFilteredNames():[t],this.query.date=t===OU.EVENT.name?new Date:void 0,t===OU.LOCATION.name?this.selectedSort=this.sortMethods.DISTANCE:t===OU.RESOURCE.name?this.selectedSort=this.query.hasWords?this.sortMethods.RELEVANCE:this.sortMethods.UPDATED:t===OU.EVENT.name&&(this.selectedSort=this.sortMethods.DATE),this.query.sort=this.selectedSort.sortQuery),this._goToFirstPage(e),this.reSort(this.selectedSort.name,n)}submitResource(){window.open("https://virginia.az1.qualtrics.com/jfe/form/SV_0JQAQjutv54EwnP","_blank")}get selectedCategory(){if(this.query)return this.query.category}get resourceTypesFiltered(){return this.resourceTypes.filter(t=>t.name!==OU.ALL_RESOURCES.name)}resourceTypesFilteredNames(){return this.resourceTypesFiltered.map(t=>t.name)}updatePage(t){this.query.size=t.pageSize,this.pageSize=t.pageSize,this.query.start=t.pageIndex*t.pageSize+1,this.query.sort=this.selectedSort.sortQuery,this.scrollToTopOfSearch(),this.querySubject.next(this.query)}mapLoad(t){const e=document.createElement("div"),i=document.createElement("div");i.style.backgroundColor="#fff",i.style.border="2px solid #fff",i.style.borderRadius="3px",i.style.boxShadow="0 2px 6px rgba(0,0,0,.3)",i.style.cursor="pointer",i.style.marginBottom="6px",i.style.marginRight="12px",i.style.textAlign="center",i.title="Your Location",e.appendChild(i);const n=document.createElement("div");n.style.fontSize="16px",n.style.lineHeight="38px",n.style.paddingLeft="5px",n.style.paddingRight="5px",n.innerHTML='',i.appendChild(n),i.addEventListener("click",()=>{console.log("map clicked."),this.mapQuerySubject.next(this.query)}),e.index=1,t.controls[google.maps.ControlPosition.RIGHT_BOTTOM].push(e),t.addListener("dragend",()=>{this.setLocation(XK.map,{lat:this.mapBounds.getCenter().lat(),lng:this.mapBounds.getCenter().lng()}),this.mapQuerySubject.next(this.query),console.log("Map Dragged"),this.isDistanceSort&&(console.log("Map Dragged, re-sorting"),this._updateDistanceSort(),this.querySubject.next(this.query))})}showBreadcrumbs(){return!(!this.query||!this.query.hasFilters)}submitZip(t,e){e.close(),t.stopPropagation(),localStorage.setItem("zipCode",this.storedZip),this.googleAnalyticsService.searchInteractionEvent("set_zip_code_location"),this.isZipCode(this.storedZip)?(this.mapZoomLevel=10,this.setZipLocation(this.storedZip,()=>{this.reSort("Distance",!0)})):this.setLocation(XK.default,this.defaultLoc)}useGPSLocation(t,e){e.close(),t.stopPropagation(),this.googleAnalyticsService.searchInteractionEvent("set_gps_location"),this.setGPSLocation(()=>{this.gpsEnabled&&this.reSort("Distance",!0)})}isZipCode(t){return t&&""!==t&&/^\d{5}$/.test(t)}showInfoWindow(t){this.api.getResource(t.id).subscribe(e=>{this.selectedMapResource=e,this.selectedMapHit=t,this.googleAnalyticsService.mapEvent(t.id.toString())})}closeInfoWindow(){this.selectedMapResource=null,this.selectedMapHit=null}mapJitter(t,e){let i=t%2==0?1:-1;e&&(i*=-1);const n=1e4*Math.sin(t);return(n-Math.floor(n))/100*i}updateZoom(t){this.mapZoomLevel=t,this.mapQuerySubject.next(this.query)}selectTypeTab(t){this.selectType((t.index>0?this.resourceTypesFiltered[t.index-1]:OU.ALL_RESOURCES).name)}updateResultsList(t){this.mapBounds=t}geoBox(){if(this.mapBounds)return{top_left:{lat:this.mapBounds.getNorthEast().lat(),lon:this.mapBounds.getSouthWest().lng()},bottom_right:{lat:this.mapBounds.getSouthWest().lat(),lon:this.mapBounds.getNorthEast().lng()}}}listMapResultsOnly(t,e=!1){console.log("Restricting to mapped results",t),this.restrictToMappedResults=t,t?(this.googleAnalyticsService.searchInteractionEvent("search_as_map_moves"),this.query.geo_box=this.geoBox()):this.query.geo_box=null,e||this.querySubject.next(this.query)}mapDockClass(t,e,i){const n=t.getBoundingClientRect(),s=e.getBoundingClientRect(),r=i.getBoundingClientRect(),o=this.scrollDirection?this.scrollDirection.toLowerCase():"";let a;return a=this._overlaps(n,s)?"align-top":this._overlaps(n,r)?"align-bottom":"docked",a+" "+o}focusOnInput(t){t.focus()}watchScrollEvents(){const t=Cf(window,"scroll").pipe(iX(10),E(t=>window.pageYOffset),lS(),E(([t,e])=>et===cX.Up)).subscribe(()=>{this.scrollDirection=cX.Up}),t.pipe(Mm(t=>t===cX.Down)).subscribe(()=>{this.scrollDirection=cX.Down})}clearAllFilters(){this.listMapResultsOnly(!1,!0),this.removeWords(!0),this.selectAgeRange(null,!0),this.selectLanguage(null,!0),this.selectType(null,!0),this.removeCategory(!0),this.querySubject.next(this.query),this.mapQuerySubject.next(this.query)}toggleShowFilters(){this.showFilters=!this.showFilters,this.shouldShowMap||(this.expandResults=!0)}goSelectedMapResource(t){this.googleAnalyticsService.mapResourceEvent(t.id.toString()),this.router.navigate(["/"+t.type.toLowerCase()+"/"+t.id])}hideVideo(t=!0){t?localStorage.setItem("shouldHideTutorialVideo",`${t}`):localStorage.removeItem("shouldHideTutorialVideo")}showLocationWindow(){return this.locationMode===XK.default}updateUrl(){const t=this._queryToQueryParams(this.query),e=this.router.createUrlTree([],{queryParams:t,queryParamsHandling:"merge",preserveFragment:!0});this.location.replaceState(e.toString())}_queryToQueryParams(t){const e=tX()({circles:!0})(t),i={};return e.hasOwnProperty("words")&&e.words&&(i.words=e.words),i.types=e.types,i.ages=e.ages,i.languages=e.languages,i.sort=i.words?this.sortMethods.RELEVANCE.name:this.selectedSort.name,i.pageStart=e.start||0,i.zoom=this.mapZoomLevel,i.restrictToMap=this.restrictToMappedResults?"y":"n",this.loc&&(i.lat=this.loc.lat,i.lng=this.loc.lng),e.hasOwnProperty("category")&&e.category&&(i.category=e.category.id),i}_queryParamsToQuery(t){const e=new IU({geo_box:void 0,words:"",ages:[],languages:[],sort:this.sortMethods.DISTANCE.sortQuery,start:0,types:this.resourceTypesFilteredNames()});if(e.size=this.pageSize,t&&t.keys)for(const i of t.keys)if(void 0!==t.get(i))switch(i){case"words":e.words=t.get(i),e.sort=this.sortMethods.RELEVANCE.sortQuery;break;case"category":e.category={id:parseInt(t.get(i),10)};break;case"ages":e.ages=t.getAll(i);break;case"languages":e.languages=t.getAll(i);break;case"sort":const n=t.get(i).toUpperCase();this.sortMethods[n]&&(e.sort=this.sortMethods[n].sortQuery);break;case"pageStart":e.start=parseInt(t.get(i),10);break;case"types":e.types=t.getAll(i);break;case"restrictToMap":this.restrictToMappedResults="y"===t.get("restrictToMap")}return e}_goToFirstPage(t=!1){this.query.start=0,this.paginatorElement&&this.paginatorElement.firstPage(),t||(this.querySubject.next(this.query),this.mapQuerySubject.next(this.query))}_overlaps(t,e){return e.topt.top||e.top>t.top&&e.bottomt.bottom}_queryParamsHaveChanged(t){const e=this._queryParamsToQuery(t),i=this._queryParamsToQuery(nH(this._queryToQueryParams(this.query)));return!this.prevQuery||e.equals(i)}_loadRelatedStudies(){const t=tX()()(this.query);t.types=["study"],this.api.searchStudies(t).subscribe(t=>{t.hits.length>0?this.api.getStudy(t.hits[0].id).subscribe(t=>{this.highlightedStudy=t,this.changeDetectorRef.detectChanges()}):this.api.getStudiesByStatus("currently_enrolling").subscribe(t=>{this.highlightedStudy=t[Math.floor(Math.random()*Math.floor(t.length))],this.changeDetectorRef.detectChanges()})})}_updatePaginator(){const t=this.query&&this.query.start-1,e=parseInt(this.queryParamMap.get("pageStart"),10)-1,i=this.queryParamMap.has("pageStart")?e:t;this.paginatorElement.pageIndex=i/this.pageSize,this.expandResults=!0,this.changeDetectorRef.detectChanges()}}var e;return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(BG),$o(Vl),$o(IG),$o(ld),$o(ip),$o(fl),$o(UH),$o(lG),$o(uX))},t.\u0275cmp=Xt({type:t,selectors:[["app-search"]],viewQuery:function(t,e){if(1&t&&(Vc(KX,1),Vc(ZX,1)),2&t){let t;Nc(t=Hc())&&(e.paginator=t.first),Nc(t=Hc())&&(e.mapTemplate=t.first)}},hostVars:1,hostBindings:function(t,e){2&t&&ja("@pageAnimations",e.animatePage)},decls:85,vars:58,consts:[["id","hero","fxLayout","column"],["searchHeader",""],["fxFlexAlign","center",3,"videoSize","videoId","instructions","links",4,"ngIf"],["fxLayout","row","fxLayout.lt-md","column","fxLayoutAlign","center center"],[3,"videoSize","videoId","instructions","links",4,"ngIf"],["fxLayout","column"],["variant","light-bg",3,"words","searchUpdated","categorySelected"],[3,"addLabel","addLink","currentUser",4,"ngIf"],["id","show-filters-button","mat-flat-button","","color","primary","fxHide","","fxShow.lt-md","",3,"click"],["fxLayout","column","fxLayoutAlign","center center","id","filters-container"],["id","filters","fxFlex.gt-sm","60%",3,"ngClass.lt-md"],["fxHide","","fxShow.lt-md",""],["fxLayoutAlign","end end"],["mat-button","",1,"done-button",3,"click"],["id","TopOfSearch","fxLayout","row","fxLayout.lt-md","column","fxLayoutGap","2em",1,"filters-row"],["fxLayout","row","fxLayout.lt-lg","column","fxLayoutGap","2em","fxLayoutGap.lt-lg","1em","fxShow","",1,"filter-select"],["fxHide","","fxShow.lt-md","","id","type-filter"],[3,"value","valueChange"],[3,"iconType","size",4,"ngIf"],["class","type-label",4,"ngIf"],[3,"value","click",4,"ngFor","ngForOf"],["id","topic-filter","fxFlex.lt-lg","100%",3,"ngClass.lt-md"],[3,"category","ngClass","categorySelected",4,"ngIf"],["id","age-filter","fxFlex.lt-lg","100%",3,"ngClass.lt-md"],[4,"ngIf"],["id","language-filter","fxFlex.lt-lg","100%",3,"ngClass.lt-md"],["fxHide","","fxShow.lt-md","",1,"sort-order-small"],[3,"selectedSort","sortMethods","sortMethodSelected"],["fxHide","","fxShow.lt-md","","fxLayoutAlign","center center"],["mat-flat-button","","color","accent",3,"click"],["fxShow","","fxHide.lt-md","","fxLayout","row","fxLayoutGap","2em","fxLayoutAlign","start end",1,"type-tabs-container"],["mat-align-tabs","start","fxHide.lt-md","","color","accent",3,"ngClass","selectedIndex","selectedTabChange","selectedIndexChange"],["mat-tab-label",""],[4,"ngFor","ngForOf"],["fxHide","","fxShow.lt-md","","id","results-vs-map"],[3,"value","change"],[3,"value"],[3,"value","disabled"],["id","content","fxLayout","row","fxLayoutAlign","start start"],["id","results","fxLayout","column","fxLayoutGap","10px","fxFlex","60%","fxFlex.lt-md","100%","fxShow","","fxHide.lt-md","",1,"search-results",3,"fxShow.lt-md"],[4,"ngIf","ngIfElse"],[3,"length","pageSize","pageSizeOptions","ngClass","page"],["paginator",""],["id","location-and-map","fxFlex","40%","fxFlex.lt-md","100%","fxShow","",3,"fxShow.lt-md","ngClass.gt-sm","ngStyle.gt-sm"],[1,"inset-shadow"],["id","list-mapped-results-button","mat-flat-button","",3,"color","ngClass","ngClass.gt-sm","ngClass.lt-md","fxHide","click"],["id","set-location",3,"ngClass","expanded","afterExpand",4,"ngIf"],["id","map","fxLayout","column","fxLayoutGap","2em"],["mapTypeId","roadmap",3,"latitude","longitude","streetViewControl","zoom","scrollwheel","mapReady","mapClick","zoomChange","boundsChange",4,"ngIf"],["id","studies-highlight",4,"ngIf"],["id","partners","fxLayout","row","fxLayout.lt-md","column","fxLayoutGap","3em","fxLayoutAlign","auto center",3,"ngStyle.lt-md"],["searchFooter",""],["fxLayout","column","fxLayoutAlign","start"],[1,"pad-0"],["fxLayoutAlign.gt-xs","row","fxLayout.lt-sm","row wrap","fxLayoutAlign","space-between center","fxLayoutGap","40px"],["fxFlex.lt-md","40%","fxLayoutAlign","center center",4,"ngFor","ngForOf"],[3,"title","subtitle","linkSize","click",4,"ngIf"],["id","scroll-spy"],["scrollSpy",""],["loadingMessage",""],["fxFlexAlign","center",3,"videoSize","videoId","instructions","links"],[3,"videoSize","videoId","instructions","links"],[3,"addLabel","addLink","currentUser"],[3,"iconType","size"],[1,"type-label"],[3,"value","click"],[3,"category","ngClass","categorySelected"],[3,"aggregations","label_title","label_any","label_map","label_icon","ngClass","isNotApplicable","notApplicableMessage","filterSelected"],[1,"type-buttons","all"],["fxLayout","column","fxLayoutGap","20px","fxLayoutAlign","center center","class","pad-4",4,"ngIf"],["id","sort-and-status","fxLayout","row","fxLayout.lt-md","column","fxLayoutAlign","space-between end",4,"ngIf"],["fxShow","","fxHide.lt-md","",1,"sort-order"],[3,"ageLabels","fxHide","fxShow","languageLabels","query","restrictToMappedResults","typeLabels","ageRangeChipClicked","categoryChipClicked","clearAllClicked","keywordChipClicked","languageChipClicked","mappedResultsChipClicked","typeChipClicked",4,"ngIf"],["fxLayout","column","fxLayoutGap","20px","fxLayoutAlign","center center",1,"pad-4"],["id","sort-and-status","fxLayout","row","fxLayout.lt-md","column","fxLayoutAlign","space-between end"],["class","search-result-status","fxShow","","fxHide.lt-md","",4,"ngIf"],["fxShow","","fxHide.lt-md","",1,"search-result-status"],[3,"ageLabels","fxHide","fxShow","languageLabels","query","restrictToMappedResults","typeLabels","ageRangeChipClicked","categoryChipClicked","clearAllClicked","keywordChipClicked","languageChipClicked","mappedResultsChipClicked","typeChipClicked"],[3,"hit","mapLoc","currentUser","ngClass",4,"ngFor","ngForOf"],[3,"hit","mapLoc","currentUser","ngClass"],["id","set-location",3,"ngClass","expanded","afterExpand"],["setLocationExpansionPanel",""],["fxLayout","column",3,"ngClass"],[1,"zipCodeField"],["matInput","","placeholder","Enter ZIP Code",3,"ngModel","ngModelChange","keyup.enter"],["zipCodeInput",""],["fxLayout","row","fxLayoutGap","10px","fxLayoutAlign","start center"],["mat-flat-button","","color","accent","id","btn_save",3,"click"],["mat-flat-button","","id","btn_gps",3,"click",4,"ngIf"],["mat-flat-button","","id","btn_gps",3,"click"],["mapTypeId","roadmap",3,"latitude","longitude","streetViewControl","zoom","scrollwheel","mapReady","mapClick","zoomChange","boundsChange"],["mapTemplate",""],[3,"imagePath","maxZoom"],[3,"latitude","longitude","iconUrl",4,"ngIf"],[3,"latitude","longitude","iconUrl"],["fillOpacity","0.1","zIndex","-1",3,"latitude","longitude","radius","fillColor","clickable","visible","circleClick"],[3,"latitude","longitude","iconUrl","markerClick"],[3,"isOpen","latitude","longitude","infoWindowClose"],[1,"title","mat-h2",3,"href","click"],[1,"chevron-link",3,"click"],["id","studies-highlight"],[3,"href"],["routerLinkActive","router-link-active",1,"chevron-link",3,"routerLink"],["fxFlex.lt-md","40%","fxLayoutAlign","center center"],[1,"resource-gatherer",3,"href","title","matTooltip"],[3,"alt","src"],[3,"title","subtitle","linkSize","click"]],template:function(t,e){if(1&t&&(Qo(0,"div",0,1),jo(2,JX,1,4,"app-tutorial-video",2),Qo(3,"div",3),jo(4,tK,1,4,"app-tutorial-video",4),Qo(5,"div",5),Qo(6,"app-search-box",6),ra("searchUpdated",function(){return e.querySubject.next(e.query)})("categorySelected",function(t){return e.selectCategory(t)}),Xo(),jo(7,eK,1,3,"app-add-button",7),Qo(8,"button",8),ra("click",function(){return e.showFilters=!e.showFilters}),Qo(9,"mat-icon"),Na(10,"filter_alt"),Xo(),Na(11," Filter Search Results "),Xo(),Qo(12,"div",9),Qo(13,"div",10),Qo(14,"div",11),Qo(15,"div",12),Qo(16,"button",13),ra("click",function(){return e.toggleShowFilters()}),Na(17,"Done"),Xo(),Xo(),Qo(18,"h2"),Na(19,"Filter Resources"),Xo(),Xo(),Qo(20,"div",14),Qo(21,"div",15),Qo(22,"div",16),Qo(23,"mat-form-field"),Qo(24,"mat-label"),Na(25,"Resource types"),Xo(),Qo(26,"mat-select",17),ra("valueChange",function(t){return e.selectedType=t}),Qo(27,"mat-select-trigger"),jo(28,iK,1,2,"app-type-icon",18),jo(29,nK,2,1,"span",19),Xo(),jo(30,sK,4,4,"mat-option",20),Xo(),Xo(),Xo(),Qo(31,"div",21),jo(32,rK,1,2,"app-search-topics",22),Xo(),Qo(33,"div",23),jo(34,oK,2,8,"div",24),Xo(),Qo(35,"div",25),jo(36,aK,2,8,"div",24),Xo(),Xo(),Xo(),Qo(37,"div",26),Qo(38,"app-search-sort",27),ra("sortMethodSelected",function(t){return e.reSort(t.name,!0)}),Xo(),Xo(),Qo(39,"div",28),Qo(40,"button",29),ra("click",function(){return e.toggleShowFilters()}),Na(41),Xo(),Xo(),Xo(),Xo(),Xo(),jo(42,lK,1,4,"app-tutorial-video",4),Xo(),jo(43,cK,1,4,"app-tutorial-video",2),Qo(44,"div",30),Qo(45,"mat-tab-group",31),ra("selectedTabChange",function(t){return e.selectTypeTab(t)})("selectedIndexChange",function(t){return e.selectedTypeTabIndex=t}),Qo(46,"mat-tab"),jo(47,uK,2,0,"ng-template",32),Xo(),jo(48,hK,2,0,"mat-tab",33),Xo(),Xo(),Xo(),Qo(49,"div",34),Qo(50,"mat-button-toggle-group",35),ra("change",function(){return e.expandResults=!e.expandResults}),Qo(51,"mat-button-toggle",36),jo(52,pK,2,1,"ng-container",24),jo(53,mK,2,1,"ng-container",24),Xo(),Qo(54,"mat-button-toggle",37),Na(55,"Map"),Xo(),Xo(),Xo(),Qo(56,"div",38),Qo(57,"div",39),jo(58,xK,6,4,"ng-container",40),Qo(59,"mat-paginator",41,42),ra("page",function(t){return e.updatePage(t)}),Xo(),Xo(),Qo(61,"div",43),Ko(62,"span",44),Qo(63,"button",45),ra("click",function(){return e.listMapResultsOnly(!e.restrictToMappedResults)}),jo(64,SK,2,0,"mat-icon",24),jo(65,kK,2,0,"mat-icon",24),Na(66," Limit results to map "),Xo(),jo(67,DK,15,9,"mat-expansion-panel",46),Qo(68,"div",47),jo(69,zK,7,11,"agm-map",48),jo(70,UK,11,5,"div",49),Xo(),Xo(),Xo(),Qo(71,"div",50,51),Qo(73,"div",52),Qo(74,"h1"),Na(75,"Resource partners"),Xo(),Qo(76,"p",53),Na(77,"We are partnering with the following initiatives and organizations to identify resources that will improve outcomes for individuals with autism and their families."),Xo(),Qo(78,"div",54),jo(79,jK,3,5,"span",55),Xo(),Xo(),jo(80,WK,1,3,"app-border-box-tile",56),Xo(),Ko(81,"span",57,58),jo(83,$K,1,0,"ng-template",null,59,jc)),2&t){const t=Wo(1),i=Wo(72),n=Wo(82),s=Wo(84);ka(e.searchBgClass),dr(2),qo("ngIf","above"===e.videoPlacement&&!e.shouldHideVideo),dr(2),qo("ngIf","left"===e.videoPlacement&&!e.shouldHideVideo),dr(2),qo("words",null==e.query?null:e.query.words),dr(1),qo("ngIf",e.currentUser&&e.currentUser.permissions.includes("create_resource")),dr(6),qo("ngClass.lt-md",e.filtersPanelStyles),dr(13),qo("value",e.selectedType),dr(2),qo("ngIf",e.selectedType),dr(1),qo("ngIf",e.selectedType),dr(1),qo("ngForOf",e.resourceTypes),dr(1),qo("ngClass.lt-md","filter-container"),dr(1),qo("ngIf",e.selectedCategory),dr(1),qo("ngClass.lt-md","filter-container"),dr(1),qo("ngIf",e.query),dr(1),qo("ngClass.lt-md","filter-container"),dr(1),qo("ngIf",e.query),dr(2),qo("selectedSort",e.selectedSort)("sortMethods",e.sortMethods),dr(3),Ba("",e.numTotalResults," Results"),dr(1),qo("ngIf","right"===e.videoPlacement&&!e.shouldHideVideo),dr(1),qo("ngIf","below"===e.videoPlacement&&!e.shouldHideVideo),dr(2),qo("ngClass","type-tabs")("selectedIndex",e.selectedTypeTabIndex),dr(3),qo("ngForOf",e.resourceTypesFiltered),dr(2),qo("value",e.expandResults),dr(1),qo("value",!0),dr(1),qo("ngIf",!e.restrictToMappedResults),dr(1),qo("ngIf",e.restrictToMappedResults),dr(1),qo("value",!1)("disabled",!e.shouldShowMap),dr(3),qo("fxShow.lt-md",!!e.expandResults),dr(1),qo("ngIf",!e.loading)("ngIfElse",s),dr(1),qo("length",e.numTotalResults)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("ngClass",pc(54,qK,!e.query||0===e.numTotalResults)),dr(2),qo("fxShow.lt-md",!e.expandResults)("ngClass.gt-sm",e.mapDockClass(n,t,i))("ngStyle.gt-sm",hc(56,YK)),dr(2),qo("color",e.restrictToMappedResults?"accent":"")("ngClass","mat-elevation-z1")("ngClass.gt-sm","gt-sm")("ngClass.lt-md","lt-md")("fxHide",!e.shouldShowMap),dr(1),qo("ngIf",!e.restrictToMappedResults),dr(1),qo("ngIf",e.restrictToMappedResults),dr(2),qo("ngIf",e.shouldShowMap),dr(2),qo("ngIf",e.shouldShowMap),dr(1),qo("ngIf",e.highlightedStudy),dr(1),qo("ngStyle.lt-md",hc(57,QK)),dr(8),qo("ngForOf",e.resourceGatherers),dr(1),qo("ngIf",!e.loading)}},directives:[o_,Jd,Z_,bX,TA,Ng,JT,k_,Pg,p_,Yk,Nk,rD,nD,Kd,wX,ZR,Qd,zR,FR,BA,GA,zD,Wg,xX,$_,kX,JU,Jx,RX,BX,XX,fj,ET,TT,cE,_b,Ub,gy,gm,Tm,ym,tm,lm,ZA,YA,uG,hG,AD,WW,Qj],styles:["#hero[_ngcontent-%COMP%]{background-color:#ededed;padding-top:64px;margin-top:-64px;padding-left:16px;padding-right:16px}#hero[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{color:#232d4b;text-align:start;font-size:2.5rem;margin-bottom:0}#hero[_ngcontent-%COMP%] app-search-box[_ngcontent-%COMP%]{color:#000;width:100%}form.search-box[_ngcontent-%COMP%]{background:rgba(0,0,0,0);border-radius:5px;padding-top:1em;padding-bottom:1em;display:-ms-flexbox;display:flex;transition:padding-top .5s ease-in-out}form.search-box.hidden-results[_ngcontent-%COMP%]{padding-top:100px}form.search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%], form.search-box[_ngcontent-%COMP%] mat-hint[_ngcontent-%COMP%]{-ms-flex:2 0 auto;flex:2 0 auto}#tiles[_ngcontent-%COMP%]{padding-top:1em;padding-left:2em;padding-right:2em}.title[_ngcontent-%COMP%]{margin:0;color:#232d4b;font-weight:800;font-style:italic;text-transform:uppercase;line-height:1;font-size:1.625rem}button[_ngcontent-%COMP%]{-ms-flex:0 0 auto;flex:0 0 auto;border:none}mat-accordion[_ngcontent-%COMP%], mat-expansion-panel[_ngcontent-%COMP%]{width:100%;margin-bottom:1em}.filters[_ngcontent-%COMP%] #reset-filters[_ngcontent-%COMP%]{color:#e57200;font-weight:700;padding-left:0}.filters[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:1.5rem;margin-top:2em;margin-bottom:0}.filters[_ngcontent-%COMP%] .sort-order[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-top:1em}.filters[_ngcontent-%COMP%] h4.mat-subheader[_ngcontent-%COMP%]{font-size:1.25rem;line-height:1.5rem;margin-top:1em;margin-bottom:0;padding-left:0;padding-bottom:0}.filters[_ngcontent-%COMP%] h4.mat-subheader[_ngcontent-%COMP%]:first-of-type{margin-top:0}.filter-facet-item[_ngcontent-%COMP%], .sort-order[_ngcontent-%COMP%]{font-size:1em;line-height:1}app-search-filters-breadcrumbs[_ngcontent-%COMP%]{width:100%;padding-right:0;padding-left:0;margin:2em 1em 1em}.sort-order[_ngcontent-%COMP%]{grid-area:sort;justify-self:end}.sort-order[_ngcontent-%COMP%] mat-radio-button[_ngcontent-%COMP%]{height:36px;margin-top:0;padding:0} mat-paginator.mat-paginator .mat-paginator-page-size-select.mat-form-field-appearance-outline{width:84px} mat-paginator.mat-paginator .mat-paginator-page-size-select.mat-form-field-appearance-outline .mat-form-field-wrapper{padding-bottom:.75em} mat-paginator.mat-paginator .mat-paginator-page-size-select.mat-form-field-appearance-outline .mat-form-field-outline{top:.75em;bottom:-.25em} mat-paginator.mat-paginator .mat-paginator-page-size-select.mat-form-field-appearance-outline .mat-select-arrow-wrapper{-ms-transform:translateY(0);transform:translateY(0)} mat-paginator.mat-paginator .mat-paginator-page-size-select.mat-form-field-appearance-outline .mat-form-field-infix{padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0} .mat-option app-type-icon [class*=icofont-], .mat-select-trigger app-type-icon [class*=icofont-]{margin-right:.5em} .mat-option app-type-icon .mat-icon, .mat-select-trigger app-type-icon .mat-icon{margin-right:.5em;margin-top:-.25em} .mat-option .mat-select-value app-type-icon .mat-icon, .mat-select-trigger .mat-select-value app-type-icon .mat-icon{margin-top:.25em} .gm-style-iw-d, .gm-style-iw.gm-style-iw-c{max-height:50vh!important}@media (max-width:575px){ .gm-style-iw-d, .gm-style-iw.gm-style-iw-c{max-width:90vw!important}}@media (min-width:576px){ .gm-style-iw-d, .gm-style-iw.gm-style-iw-c{max-width:80vw!important}}@media (min-width:768px){ .gm-style-iw-d, .gm-style-iw.gm-style-iw-c{max-width:50vw!important}}@media (min-width:960px){ .gm-style-iw-d, .gm-style-iw.gm-style-iw-c{max-width:40vw!important}}@media (min-width:1200px){ .gm-style-iw-d, .gm-style-iw.gm-style-iw-c{max-width:30vw!important}} .mat-form-field-wrapper{padding-bottom:0} .type-tabs .mat-tab-label{color:#232d4b;margin:5px;opacity:1} .type-tabs .mat-tab-label:focus{outline:none}.type-buttons[_ngcontent-%COMP%]{text-transform:uppercase;margin:.25em 1em}.type-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#e57200;margin:.5em}#filters[_ngcontent-%COMP%], #partners[_ngcontent-%COMP%], #sort-and-status[_ngcontent-%COMP%], #type-buttons[_ngcontent-%COMP%]{margin:.5em 2em}.search-result-status[_ngcontent-%COMP%]{-ms-flex-pack:end;justify-content:flex-end}.type-tabs-container[_ngcontent-%COMP%]{height:74px}#content[_ngcontent-%COMP%]{position:relative}#location-and-map[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;right:0}#location-and-map.above[_ngcontent-%COMP%] #map[_ngcontent-%COMP%], #location-and-map.align-top[_ngcontent-%COMP%] #map[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}#location-and-map.docked.up[_ngcontent-%COMP%] #list-mapped-results-button[_ngcontent-%COMP%], #location-and-map.docked.up[_ngcontent-%COMP%] #set-location[_ngcontent-%COMP%]{top:194px}#location-and-map.docked.down[_ngcontent-%COMP%] #list-mapped-results-button[_ngcontent-%COMP%], #location-and-map.docked.down[_ngcontent-%COMP%] #set-location[_ngcontent-%COMP%]{top:74px}#location-and-map.docked[_ngcontent-%COMP%] #set-location[_ngcontent-%COMP%]{position:fixed;top:74px;left:calc(60% + 10px);width:240px}#location-and-map.docked[_ngcontent-%COMP%] #list-mapped-results-button[_ngcontent-%COMP%]{position:fixed;width:240px;top:74px;right:10px}#location-and-map.docked[_ngcontent-%COMP%] #map[_ngcontent-%COMP%]{position:fixed;top:64px;left:60%;right:0;bottom:0}#location-and-map.align-bottom[_ngcontent-%COMP%] #map[_ngcontent-%COMP%]{position:absolute;top:auto;bottom:0;left:0;right:0}#location-and-map.align-bottom[_ngcontent-%COMP%] #map[_ngcontent-%COMP%] agm-map[_ngcontent-%COMP%]{position:absolute;bottom:0}#location-and-map[_ngcontent-%COMP%] #list-mapped-results-button[_ngcontent-%COMP%]{position:absolute;z-index:1;width:240px;height:48px;transition:top .3s ease-in-out,margin-top .3s ease-in-out}#location-and-map[_ngcontent-%COMP%] #list-mapped-results-button.gt-sm[_ngcontent-%COMP%]{top:10px;right:10px}#location-and-map[_ngcontent-%COMP%] #list-mapped-results-button.lt-md[_ngcontent-%COMP%]{top:calc(100vh - 132px);left:10px}#location-and-map[_ngcontent-%COMP%] mat-expansion-panel#set-location{position:absolute;top:10px;left:10px;z-index:1;background-color:#fff;border-radius:5px;width:240px;transition:top .3s ease-in-out,margin-top .3s ease-in-out}#location-and-map[_ngcontent-%COMP%] mat-expansion-panel#set-location mat-expansion-panel-header{font-size:1em;height:48px!important}#location-and-map[_ngcontent-%COMP%] #map[_ngcontent-%COMP%]{height:100%}#location-and-map[_ngcontent-%COMP%] #map[_ngcontent-%COMP%] agm-map[_ngcontent-%COMP%]{height:calc(100vh - 64px);width:100%;z-index:0}#location-and-map[_ngcontent-%COMP%] .inset-shadow[_ngcontent-%COMP%]{position:absolute;top:0;right:0;bottom:0;left:0;box-shadow:inset 40px 20px 40px -40px rgba(0,0,0,.1);z-index:99;pointer-events:none}#scroll-spy[_ngcontent-%COMP%]{position:fixed;top:64px;bottom:0;left:0;right:0;pointer-events:none;background:rgba(0,0,0,0)}#filters.minimized[_ngcontent-%COMP%]{display:none!important}#filters.full-screen[_ngcontent-%COMP%]{display:block;position:fixed;top:0;right:0;bottom:0;left:0;height:100vh;width:100vw;background-color:#fff;z-index:1000;margin:0;padding:2rem;overflow-y:scroll}.filter-container[_ngcontent-%COMP%]{padding-top:2em;padding-bottom:1em;border-top:1px solid #ededed}#results-vs-map[_ngcontent-%COMP%], #results-vs-map[_ngcontent-%COMP%] .mat-button-toggle-group[_ngcontent-%COMP%], #type-filter[_ngcontent-%COMP%], #type-filter[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:100%}#results-vs-map[_ngcontent-%COMP%] .mat-button-toggle-group[_ngcontent-%COMP%] .mat-button-toggle[_ngcontent-%COMP%]{width:50%}.sort-order-small[_ngcontent-%COMP%]{width:100%}#design-options[_ngcontent-%COMP%]{padding:8px;position:fixed;top:0;left:50%;-ms-transform:translateX(-50%);transform:translateX(-50%);z-index:1000;background-color:#eee;border-radius:0 0 8px 8px}#design-options[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{padding:.2em .5em}#filters.black[_ngcontent-%COMP%] .mat-hint, #filters.gray[_ngcontent-%COMP%] .mat-hint, #filters.mountain[_ngcontent-%COMP%] .mat-hint, #filters.uva-blue[_ngcontent-%COMP%] .mat-hint, #filters.uva-orange[_ngcontent-%COMP%] .mat-hint, #hero.black[_ngcontent-%COMP%] .mat-hint, #hero.energy-burst-dark[_ngcontent-%COMP%] .mat-hint, #hero.energy-burst-light[_ngcontent-%COMP%] .mat-hint, #hero.gray[_ngcontent-%COMP%] .mat-hint, #hero.mountain[_ngcontent-%COMP%] .mat-hint, #hero.uva-blue[_ngcontent-%COMP%] .mat-hint, #hero.uva-orange[_ngcontent-%COMP%] .mat-hint, .black[_ngcontent-%COMP%] .mat-hint, .energy-burst-dark[_ngcontent-%COMP%] .mat-hint, .energy-burst-light[_ngcontent-%COMP%] .mat-hint, .gray[_ngcontent-%COMP%] .mat-hint, .mountain[_ngcontent-%COMP%] .mat-hint, .uva-blue[_ngcontent-%COMP%] .mat-hint, .uva-orange[_ngcontent-%COMP%] .mat-hint{color:#fff!important;font-style:italic}#filters.black[_ngcontent-%COMP%] .done-button, #filters.black[_ngcontent-%COMP%] .mat-form-field-label, #filters.black[_ngcontent-%COMP%] .mat-menu-trigger, #filters.black[_ngcontent-%COMP%] .mat-select-value-text, #filters.black[_ngcontent-%COMP%] .mat-tab-label, #filters.black[_ngcontent-%COMP%] .show-all, #filters.black[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, #filters.black[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, #filters.black[_ngcontent-%COMP%] h1, #filters.black[_ngcontent-%COMP%] h5, #filters.gray[_ngcontent-%COMP%] .done-button, #filters.gray[_ngcontent-%COMP%] .mat-form-field-label, #filters.gray[_ngcontent-%COMP%] .mat-menu-trigger, #filters.gray[_ngcontent-%COMP%] .mat-select-value-text, #filters.gray[_ngcontent-%COMP%] .mat-tab-label, #filters.gray[_ngcontent-%COMP%] .show-all, #filters.gray[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, #filters.gray[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, #filters.gray[_ngcontent-%COMP%] h1, #filters.gray[_ngcontent-%COMP%] h5, #filters.mountain[_ngcontent-%COMP%] .done-button, #filters.mountain[_ngcontent-%COMP%] .mat-form-field-label, #filters.mountain[_ngcontent-%COMP%] .mat-menu-trigger, #filters.mountain[_ngcontent-%COMP%] .mat-select-value-text, #filters.mountain[_ngcontent-%COMP%] .mat-tab-label, #filters.mountain[_ngcontent-%COMP%] .show-all, #filters.mountain[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, #filters.mountain[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, #filters.mountain[_ngcontent-%COMP%] h1, #filters.mountain[_ngcontent-%COMP%] h5, #filters.uva-blue[_ngcontent-%COMP%] .done-button, #filters.uva-blue[_ngcontent-%COMP%] .mat-form-field-label, #filters.uva-blue[_ngcontent-%COMP%] .mat-menu-trigger, #filters.uva-blue[_ngcontent-%COMP%] .mat-select-value-text, #filters.uva-blue[_ngcontent-%COMP%] .mat-tab-label, #filters.uva-blue[_ngcontent-%COMP%] .show-all, #filters.uva-blue[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, #filters.uva-blue[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, #filters.uva-blue[_ngcontent-%COMP%] h1, #filters.uva-blue[_ngcontent-%COMP%] h5, #hero.black[_ngcontent-%COMP%] .done-button, #hero.black[_ngcontent-%COMP%] .mat-form-field-label, #hero.black[_ngcontent-%COMP%] .mat-menu-trigger, #hero.black[_ngcontent-%COMP%] .mat-select-value-text, #hero.black[_ngcontent-%COMP%] .mat-tab-label, #hero.black[_ngcontent-%COMP%] .show-all, #hero.black[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, #hero.black[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, #hero.black[_ngcontent-%COMP%] h1, #hero.black[_ngcontent-%COMP%] h5, #hero.energy-burst-dark[_ngcontent-%COMP%] .done-button, #hero.energy-burst-dark[_ngcontent-%COMP%] .mat-form-field-label, #hero.energy-burst-dark[_ngcontent-%COMP%] .mat-menu-trigger, #hero.energy-burst-dark[_ngcontent-%COMP%] .mat-select-value-text, #hero.energy-burst-dark[_ngcontent-%COMP%] .mat-tab-label, #hero.energy-burst-dark[_ngcontent-%COMP%] .show-all, #hero.energy-burst-dark[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, #hero.energy-burst-dark[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, #hero.energy-burst-dark[_ngcontent-%COMP%] h1, #hero.energy-burst-dark[_ngcontent-%COMP%] h5, #hero.energy-burst-light[_ngcontent-%COMP%] .done-button, #hero.energy-burst-light[_ngcontent-%COMP%] .mat-form-field-label, #hero.energy-burst-light[_ngcontent-%COMP%] .mat-menu-trigger, #hero.energy-burst-light[_ngcontent-%COMP%] .mat-select-value-text, #hero.energy-burst-light[_ngcontent-%COMP%] .mat-tab-label, #hero.energy-burst-light[_ngcontent-%COMP%] .show-all, #hero.energy-burst-light[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, #hero.energy-burst-light[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, #hero.energy-burst-light[_ngcontent-%COMP%] h1, #hero.energy-burst-light[_ngcontent-%COMP%] h5, #hero.gray[_ngcontent-%COMP%] .done-button, #hero.gray[_ngcontent-%COMP%] .mat-form-field-label, #hero.gray[_ngcontent-%COMP%] .mat-menu-trigger, #hero.gray[_ngcontent-%COMP%] .mat-select-value-text, #hero.gray[_ngcontent-%COMP%] .mat-tab-label, #hero.gray[_ngcontent-%COMP%] .show-all, #hero.gray[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, #hero.gray[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, #hero.gray[_ngcontent-%COMP%] h1, #hero.gray[_ngcontent-%COMP%] h5, #hero.mountain[_ngcontent-%COMP%] .done-button, #hero.mountain[_ngcontent-%COMP%] .mat-form-field-label, #hero.mountain[_ngcontent-%COMP%] .mat-menu-trigger, #hero.mountain[_ngcontent-%COMP%] .mat-select-value-text, #hero.mountain[_ngcontent-%COMP%] .mat-tab-label, #hero.mountain[_ngcontent-%COMP%] .show-all, #hero.mountain[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, #hero.mountain[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, #hero.mountain[_ngcontent-%COMP%] h1, #hero.mountain[_ngcontent-%COMP%] h5, #hero.uva-blue[_ngcontent-%COMP%] .done-button, #hero.uva-blue[_ngcontent-%COMP%] .mat-form-field-label, #hero.uva-blue[_ngcontent-%COMP%] .mat-menu-trigger, #hero.uva-blue[_ngcontent-%COMP%] .mat-select-value-text, #hero.uva-blue[_ngcontent-%COMP%] .mat-tab-label, #hero.uva-blue[_ngcontent-%COMP%] .show-all, #hero.uva-blue[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, #hero.uva-blue[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, #hero.uva-blue[_ngcontent-%COMP%] h1, #hero.uva-blue[_ngcontent-%COMP%] h5, .black[_ngcontent-%COMP%] .done-button, .black[_ngcontent-%COMP%] .mat-form-field-label, .black[_ngcontent-%COMP%] .mat-menu-trigger, .black[_ngcontent-%COMP%] .mat-select-value-text, .black[_ngcontent-%COMP%] .mat-tab-label, .black[_ngcontent-%COMP%] .show-all, .black[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, .black[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, .black[_ngcontent-%COMP%] h1, .black[_ngcontent-%COMP%] h5, .energy-burst-dark[_ngcontent-%COMP%] .done-button, .energy-burst-dark[_ngcontent-%COMP%] .mat-form-field-label, .energy-burst-dark[_ngcontent-%COMP%] .mat-menu-trigger, .energy-burst-dark[_ngcontent-%COMP%] .mat-select-value-text, .energy-burst-dark[_ngcontent-%COMP%] .mat-tab-label, .energy-burst-dark[_ngcontent-%COMP%] .show-all, .energy-burst-dark[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, .energy-burst-dark[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, .energy-burst-dark[_ngcontent-%COMP%] h1, .energy-burst-dark[_ngcontent-%COMP%] h5, .energy-burst-light[_ngcontent-%COMP%] .done-button, .energy-burst-light[_ngcontent-%COMP%] .mat-form-field-label, .energy-burst-light[_ngcontent-%COMP%] .mat-menu-trigger, .energy-burst-light[_ngcontent-%COMP%] .mat-select-value-text, .energy-burst-light[_ngcontent-%COMP%] .mat-tab-label, .energy-burst-light[_ngcontent-%COMP%] .show-all, .energy-burst-light[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, .energy-burst-light[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, .energy-burst-light[_ngcontent-%COMP%] h1, .energy-burst-light[_ngcontent-%COMP%] h5, .gray[_ngcontent-%COMP%] .done-button, .gray[_ngcontent-%COMP%] .mat-form-field-label, .gray[_ngcontent-%COMP%] .mat-menu-trigger, .gray[_ngcontent-%COMP%] .mat-select-value-text, .gray[_ngcontent-%COMP%] .mat-tab-label, .gray[_ngcontent-%COMP%] .show-all, .gray[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, .gray[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, .gray[_ngcontent-%COMP%] h1, .gray[_ngcontent-%COMP%] h5, .mountain[_ngcontent-%COMP%] .done-button, .mountain[_ngcontent-%COMP%] .mat-form-field-label, .mountain[_ngcontent-%COMP%] .mat-menu-trigger, .mountain[_ngcontent-%COMP%] .mat-select-value-text, .mountain[_ngcontent-%COMP%] .mat-tab-label, .mountain[_ngcontent-%COMP%] .show-all, .mountain[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, .mountain[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, .mountain[_ngcontent-%COMP%] h1, .mountain[_ngcontent-%COMP%] h5, .uva-blue[_ngcontent-%COMP%] .done-button, .uva-blue[_ngcontent-%COMP%] .mat-form-field-label, .uva-blue[_ngcontent-%COMP%] .mat-menu-trigger, .uva-blue[_ngcontent-%COMP%] .mat-select-value-text, .uva-blue[_ngcontent-%COMP%] .mat-tab-label, .uva-blue[_ngcontent-%COMP%] .show-all, .uva-blue[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, .uva-blue[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, .uva-blue[_ngcontent-%COMP%] h1, .uva-blue[_ngcontent-%COMP%] h5{color:#fff!important}#filters.black[_ngcontent-%COMP%] .mat-menu-trigger, #filters.gray[_ngcontent-%COMP%] .mat-menu-trigger, #filters.mountain[_ngcontent-%COMP%] .mat-menu-trigger, #filters.uva-blue[_ngcontent-%COMP%] .mat-menu-trigger, #hero.black[_ngcontent-%COMP%] .mat-menu-trigger, #hero.energy-burst-dark[_ngcontent-%COMP%] .mat-menu-trigger, #hero.energy-burst-light[_ngcontent-%COMP%] .mat-menu-trigger, #hero.gray[_ngcontent-%COMP%] .mat-menu-trigger, #hero.mountain[_ngcontent-%COMP%] .mat-menu-trigger, #hero.uva-blue[_ngcontent-%COMP%] .mat-menu-trigger, .black[_ngcontent-%COMP%] .mat-menu-trigger, .energy-burst-dark[_ngcontent-%COMP%] .mat-menu-trigger, .energy-burst-light[_ngcontent-%COMP%] .mat-menu-trigger, .gray[_ngcontent-%COMP%] .mat-menu-trigger, .mountain[_ngcontent-%COMP%] .mat-menu-trigger, .uva-blue[_ngcontent-%COMP%] .mat-menu-trigger{background-color:rgba(0,0,0,.2)}#filters.light-gray[_ngcontent-%COMP%], #hero.light-gray[_ngcontent-%COMP%], .light-gray[_ngcontent-%COMP%]{background-color:#eee}#filters.white[_ngcontent-%COMP%], #hero.white[_ngcontent-%COMP%], .white[_ngcontent-%COMP%]{background-color:#fff}#filters.uva-blue[_ngcontent-%COMP%], #hero.uva-blue[_ngcontent-%COMP%], .uva-blue[_ngcontent-%COMP%]{background-color:#002f6c}#filters.uva-orange[_ngcontent-%COMP%], #hero.uva-orange[_ngcontent-%COMP%], .uva-orange[_ngcontent-%COMP%]{background-color:#e57200}#filters.black[_ngcontent-%COMP%], #hero.black[_ngcontent-%COMP%], .black[_ngcontent-%COMP%]{background-color:#000}#filters.gray[_ngcontent-%COMP%], #hero.gray[_ngcontent-%COMP%], .gray[_ngcontent-%COMP%]{background-color:#636466}#filters.mountain[_ngcontent-%COMP%], #hero.mountain[_ngcontent-%COMP%], .mountain[_ngcontent-%COMP%]{background-color:#6f7ea0}#filters.sky[_ngcontent-%COMP%], #hero.sky[_ngcontent-%COMP%], .sky[_ngcontent-%COMP%]{background-color:#e5eef3}#hero.energy-burst-dark[_ngcontent-%COMP%], .energy-burst-dark[_ngcontent-%COMP%]{background-image:url(https://curry.virginia.edu/sites/all/themes/curry/_files/css/i/sunrise-burst.jpg)}#hero.energy-burst-light[_ngcontent-%COMP%], .energy-burst-light[_ngcontent-%COMP%]{background-image:url(https://curry.virginia.edu/sites/all/themes/curry/_files/css/i/sunrise-burst-footer-crop.jpg)}.color-swatch[_ngcontent-%COMP%]{display:inline-block;width:24px;height:24px;outline:1px solid #eee}#show-filters-button[_ngcontent-%COMP%]{margin-bottom:1em}app-border-box-tile[_ngcontent-%COMP%]{transition:position 3s} .mat-tooltip{font-size:15px!important}.mat-progress-bar[_ngcontent-%COMP%]{height:6px}.loc-service[_ngcontent-%COMP%]{margin:2em}"],data:{animation:[Ov("pageAnimations",[Rv(":enter",[Fv("#age-filter, #language-filter, #topic-filter",[Dv({opacity:0,transform:"translateX(-100px)"}),(e=[Ev("500ms cubic-bezier(0.35, 0, 0.25, 1)",Dv({opacity:1,transform:"none"}))],{type:12,timings:-30,animation:e})])])])]}}),t})();function ZK(t,e){if(1&t&&Ko(0,"app-type-icon",20),2&t){const t=ua();qo("iconType",t.selectedStatus&&t.selectedStatus.name)("size",1)}}function JK(t,e){if(1&t&&(Qo(0,"span",21),Na(1),Xo()),2&t){const t=ua();dr(1),Va(t.selectedStatus.label)}}function tZ(t,e){if(1&t){const t=ea();Qo(0,"mat-option",22),ra("click",function(){Be(t);const i=e.$implicit;return ua().selectStatus(i)}),Qo(1,"span",21),Na(2),Xo(),Xo()}if(2&t){const t=e.$implicit;qo("value",t)("ngClass","sort-by-"+t.name.toLowerCase()),dr(2),Va(t.label)}}function eZ(t,e){if(1&t&&(Qo(0,"span",21),Na(1),Xo()),2&t){const t=ua();dr(1),Va(t.selectedAge.label)}}function iZ(t,e){if(1&t){const t=ea();Qo(0,"mat-option",11),ra("click",function(){Be(t);const i=e.$implicit;return ua().selectAge(i)}),Qo(1,"span",21),Na(2),Xo(),Xo()}if(2&t){const t=e.$implicit;qo("value",t),dr(2),Va(t.label)}}function nZ(t,e){if(1&t&&Ko(0,"app-type-icon",20),2&t){const t=ua();qo("iconType",t.selectedStatus&&t.selectedStatus.name)("size",1)}}function sZ(t,e){if(1&t&&(Qo(0,"span",21),Na(1),Xo()),2&t){const t=ua();dr(1),Va(t.selectedStatus.label)}}function rZ(t,e){if(1&t){const t=ea();Qo(0,"mat-option",11),ra("click",function(){Be(t);const i=e.$implicit;return ua().selectStatus(i)}),Qo(1,"span",21),Na(2),Xo(),Xo()}if(2&t){const t=e.$implicit;qo("value",t),dr(2),Va(t.label)}}function oZ(t,e){if(1&t&&(Qo(0,"span",21),Na(1),Xo()),2&t){const t=ua();dr(1),Va(t.selectedAge.label)}}function aZ(t,e){if(1&t){const t=ea();Qo(0,"mat-option",11),ra("click",function(){Be(t);const i=e.$implicit;return ua().selectAge(i)}),Qo(1,"span",21),Na(2),Xo(),Xo()}if(2&t){const t=e.$implicit;qo("value",t),dr(2),Va(t.label)}}function lZ(t,e){if(1&t&&Ko(0,"app-add-button",23),2&t){const t=ua();qo("addLabel","Add Study")("addLink","studies/add")("currentUser",t.currentUser)}}function cZ(t,e){if(1&t&&Ko(0,"app-search-result",25),2&t){const t=e.$implicit,i=ua(2);qo("hit",t),zo("data-study-status",i.selectedStatus.name)}}function uZ(t,e){if(1&t&&(Zo(0),jo(1,cZ,1,2,"app-search-result",24),Jo()),2&t){const t=ua();dr(1),qo("ngForOf",t.studyHits)}}function dZ(t,e){1&t&&(Qo(0,"span"),Na(1,"that are enrolling"),Xo())}function hZ(t,e){1&t&&(Qo(0,"span"),Na(1,"that are in progress"),Xo())}function pZ(t,e){1&t&&(Qo(0,"span"),Na(1,"where results are being analyzed"),Xo())}function mZ(t,e){1&t&&(Qo(0,"span"),Na(1,"where results have been published"),Xo())}function fZ(t,e){if(1&t&&(Qo(0,"p",26),Na(1," We don't have any Autism DRIVE studies "),jo(2,dZ,2,0,"span",18),jo(3,hZ,2,0,"span",18),jo(4,pZ,2,0,"span",18),jo(5,mZ,2,0,"span",18),Na(6," at this time, but we're working on it. Check back soon, as the status of our research is constantly changing! "),Xo()),2&t){const t=ua();zo("data-study-status",t.selectedStatus.name),dr(2),qo("ngIf","currently_enrolling"===t.selectedStatus.name),dr(1),qo("ngIf","study_in_progress"===t.selectedStatus.name),dr(1),qo("ngIf","results_being_analyzed"===t.selectedStatus.name),dr(1),qo("ngIf","study_results_published"===t.selectedStatus.name)}}let gZ=(()=>{class t{constructor(t,e,i,n,s){this.api=t,this.authenticationService=e,this.route=i,this.router=n,this.meta=s,this.authenticationService.currentUser.subscribe(t=>this.currentUser=t),this.meta.updateTag({property:"og:image",content:location.origin+"/assets/studies/hero.jpg"},"property='og:image'"),this.meta.updateTag({property:"og:image:secure_url",content:location.origin+"/assets/studies/hero.jpg"},"property='og:image:secure_url'"),this.meta.updateTag({name:"twitter:image",content:location.origin+"/assets/studies/hero.jpg"},"name='twitter:image'"),this.studyStatuses=Object.keys(LU).map(t=>({name:t,label:LU[t]})),this.Ages=Object.keys(EU.labels).map(t=>({name:t,label:EU.labels[t]})),console.log(this.Ages),this.route.params.subscribe(t=>{"studyStatus"in t?(this.selectedStatus=this.studyStatuses.find(e=>e.name===t.studyStatus),this.selectedAge="age"in t?this.Ages.find(e=>e.name===t.age):void 0):(this.selectedStatus=this.studyStatuses[0],this.route.params.studyStatus=this.studyStatuses[0].name,this.selectedAge=void 0,this.router.navigate(["/studies/"+this.studyStatuses[0].name]))}),this.loadStudies()}ngOnInit(){}loadStudies(){this.selectedAge?this.api.getStudiesByAge(this.selectedStatus.name,this.selectedAge.name).subscribe(t=>{this.studyHits=this._studiesToHits(t)}):this.api.getStudiesByStatus(this.selectedStatus.name).subscribe(t=>{this.studyHits=this._studiesToHits(t)})}selectStatus(t){this.selectedStatus=t,this.router.navigate(["/studies/"+t.name]),this.loadStudies()}selectAge(t){this.selectedAge=t,this.router.navigate(t?["/studies/"+this.selectedStatus.name+"/"+t.name]:["/studies/"+this.selectedStatus.name]),this.loadStudies()}_studiesToHits(t){return t.map(t=>new RU({id:t.id,type:"study",ages:t.ages,title:t.short_title,content:t.description,description:t.short_description,last_updated:t.last_updated,highlights:null,url:`/study/${t.id}`,label:"Research Studies",status:this.studyStatuses.find(e=>e.name===t.status).label}))}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(BG),$o(UH),$o(lG),$o(ip))},t.\u0275cmp=Xt({type:t,selectors:[["app-studies"]],decls:50,vars:20,consts:[["fxLayoutAlign","center","fxLayout","column"],["id","hero","ngClass.lt-md","margin-bottom-none","ngStyle.gt-md","padding-bottom:180px; margin-bottom:10px",1,"center-center","gradient-overlay","container","with-escaping-tiles"],[1,"hero-content"],[1,"desktop"],["fxLayout","row","fxLayoutGap","40px","fxLayoutAlign","left auto","id","TopOfSearch",1,"row","escaping-tiles-1x",2,"padding-left","6em","padding-right","2em","padding-top","2em"],["id","set-status",2,"margin-bottom","-1em"],[3,"value","valueChange"],[3,"iconType","size",4,"ngIf"],["class","type-label",4,"ngIf"],[3,"value","ngClass","click",4,"ngFor","ngForOf"],["placeholder","All Ages",3,"value","valueChange"],[3,"value","click"],[3,"value","click",4,"ngFor","ngForOf"],[1,"mobile_device_480px"],["fxLayout","column","fxLayoutGap","2px","fxLayoutAlign","center auto","id","TopOfSearch",1,"row","escaping-tiles-1x",2,"padding-left","2em","padding-right","2em"],[2,"margin-bottom","-1em"],["fxLayout","column","fxLayoutGap","40px","ngStyle.gt-md","padding-top:10px;",1,"studies"],[3,"addLabel","addLink","currentUser",4,"ngIf"],[4,"ngIf"],["class","no-results",4,"ngIf"],[3,"iconType","size"],[1,"type-label"],[3,"value","ngClass","click"],[3,"addLabel","addLink","currentUser"],[3,"hit",4,"ngFor","ngForOf"],[3,"hit"],[1,"no-results"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"div",1),Qo(2,"div",2),Qo(3,"h1"),Na(4,"Autism Research Studies"),Xo(),Xo(),Xo(),Qo(5,"div",3),Qo(6,"div",4),Qo(7,"mat-form-field",5),Qo(8,"mat-label"),Na(9,"Study Status"),Xo(),Qo(10,"mat-select",6),ra("valueChange",function(t){return e.selectedStatus=t}),Qo(11,"mat-select-trigger"),jo(12,ZK,1,2,"app-type-icon",7),jo(13,JK,2,1,"span",8),Xo(),jo(14,tZ,3,3,"mat-option",9),Xo(),Xo(),Qo(15,"mat-form-field"),Qo(16,"mat-label"),Na(17,"Age Range"),Xo(),Qo(18,"mat-select",10),ra("valueChange",function(t){return e.selectedAge=t}),Qo(19,"mat-select-trigger"),jo(20,eZ,2,1,"span",8),Xo(),Qo(21,"mat-option",11),ra("click",function(){return e.selectAge(void 0)}),Na(22,"All Ages"),Xo(),jo(23,iZ,3,2,"mat-option",12),Xo(),Xo(),Xo(),Xo(),Qo(24,"div",13),Ko(25,"p"),Qo(26,"div",14),Qo(27,"mat-form-field",15),Qo(28,"mat-label"),Na(29,"Study Status"),Xo(),Qo(30,"mat-select",6),ra("valueChange",function(t){return e.selectedStatus=t}),Qo(31,"mat-select-trigger"),jo(32,nZ,1,2,"app-type-icon",7),jo(33,sZ,2,1,"span",8),Xo(),jo(34,rZ,3,2,"mat-option",12),Xo(),Xo(),Qo(35,"mat-form-field"),Qo(36,"mat-label"),Na(37,"Age Range"),Xo(),Qo(38,"mat-select",10),ra("valueChange",function(t){return e.selectedAge=t}),Qo(39,"mat-select-trigger"),jo(40,oZ,2,1,"span",8),Xo(),Qo(41,"mat-option",11),ra("click",function(){return e.selectAge(void 0)}),Na(42,"All Ages"),Xo(),jo(43,aZ,3,2,"mat-option",12),Xo(),Xo(),Xo(),Xo(),Qo(44,"div",16),jo(45,lZ,1,3,"app-add-button",17),Qo(46,"h2"),Na(47),Xo(),jo(48,uZ,2,1,"ng-container",18),jo(49,fZ,7,5,"p",19),Xo(),Xo()),2&t&&(dr(10),qo("value",e.selectedStatus),dr(2),qo("ngIf",e.selectedStatus),dr(1),qo("ngIf",e.selectedStatus),dr(1),qo("ngForOf",e.studyStatuses),dr(4),qo("value",e.selectedAge),dr(2),qo("ngIf",e.selectedAge),dr(1),qo("value",void 0),dr(2),qo("ngForOf",e.Ages),dr(7),qo("value",e.selectedStatus),dr(2),qo("ngIf",e.selectedStatus),dr(1),qo("ngIf",e.selectedStatus),dr(1),qo("ngForOf",e.studyStatuses),dr(4),qo("value",e.selectedAge),dr(2),qo("ngIf",e.selectedAge),dr(1),qo("value",void 0),dr(2),qo("ngForOf",e.Ages),dr(2),qo("ngIf",e.currentUser&&e.currentUser.permissions.includes("create_study")),dr(2),Va(e.selectedStatus.label),dr(1),qo("ngIf",e.studyHits&&e.studyHits.length>0),dr(1),qo("ngIf",!e.studyHits||0===e.studyHits.length))},directives:[Z_,o_,Pg,Wg,p_,Yk,Nk,rD,nD,Jd,Kd,Jx,JU,Qd,kX,fj],styles:['#hero[_ngcontent-%COMP%]{background-image:url(/assets/studies/hero.jpg)}#hero[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{color:#fff}.studies[_ngcontent-%COMP%]{padding:5.5%}.studies[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:2.5rem}.studies[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]:after{content:"";background-color:#e57200;width:6.25rem;height:.125rem;display:block} .mat-form-field-wrapper{margin-bottom:-1.25em}.covid19-alert[_ngcontent-%COMP%]{margin:2%}.covid19-alert[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{max-width:960px}.mobile_device_480px[_ngcontent-%COMP%]{display:none}@media only screen and (max-device-width:480px){.mobile_device_480px[_ngcontent-%COMP%]{display:block}.desktop[_ngcontent-%COMP%]{display:none}}']}),t})(),_Z=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}ngOnInit(){}onNoClick(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)($o(NO),$o(BO))},t.\u0275cmp=Xt({type:t,selectors:[["app-investigator-form"]],decls:24,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["matInput","",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","",3,"click"],["mat-flat-button","","color","primary","cdkFocusInitial","",3,"mat-dialog-close"]],template:function(t,e){1&t&&(Qo(0,"h1",0),Na(1,"Edit Investigator"),Xo(),Qo(2,"div",1),Qo(3,"mat-form-field"),Qo(4,"mat-label"),Na(5,"Name:"),Xo(),Qo(6,"input",2),ra("ngModelChange",function(t){return e.data.si.investigator.name=t}),Xo(),Xo(),Qo(7,"mat-form-field"),Qo(8,"mat-label"),Na(9,"Title:"),Xo(),Qo(10,"input",2),ra("ngModelChange",function(t){return e.data.si.investigator.title=t}),Xo(),Xo(),Qo(11,"mat-form-field"),Qo(12,"mat-label"),Na(13,"Organization Name:"),Xo(),Qo(14,"input",2),ra("ngModelChange",function(t){return e.data.si.investigator.organization_name=t}),Xo(),Xo(),Qo(15,"mat-form-field"),Qo(16,"mat-label"),Na(17,"Bio Link:"),Xo(),Qo(18,"input",2),ra("ngModelChange",function(t){return e.data.si.investigator.bio_link=t}),Xo(),Xo(),Xo(),Qo(19,"div",3),Qo(20,"button",4),ra("click",function(){return e.onNoClick()}),Na(21,"Cancel"),Xo(),Qo(22,"button",5),Na(23,"Save"),Xo(),Xo()),2&t&&(dr(6),qo("ngModel",e.data.si.investigator.name),dr(4),qo("ngModel",e.data.si.investigator.title),dr(4),qo("ngModel",e.data.si.investigator.organization_name),dr(4),qo("ngModel",e.data.si.investigator.bio_link),dr(4),qo("mat-dialog-close",e.data.si.investigator))},directives:[qO,YO,Yk,Nk,cE,_b,Ub,gy,QO,TA,$O],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t})();function bZ(t,e){if(1&t&&(Qo(0,"div",7),Na(1),Xo()),2&t){const t=ua(2);dr(1),Va(t.errorMessage)}}function yZ(t,e){if(1&t&&(Qo(0,"footer",8),Qo(1,"button",9),Na(2,"Next"),Xo(),Qo(3,"button",10),Na(4,"Cancel"),Xo(),Xo()),2&t){const t=ua(2);dr(3),qo("mat-dialog-close",t.data.displaySurvey)}}function vZ(t,e){1&t&&(Qo(0,"footer"),Ko(1,"app-loading"),Xo())}function wZ(t,e){if(1&t&&(Qo(0,"formly-form",3),jo(1,bZ,2,1,"div",4),jo(2,yZ,5,1,"footer",5),jo(3,vZ,2,0,"footer",6),Xo()),2&t){const t=ua();qo("form",t.form)("fields",t.fields)("model",t.model),dr(1),qo("ngIf",t.errorMessage),dr(1),qo("ngIf","form"===t.registerStateValue),dr(1),qo("ngIf","submitting"===t.registerStateValue)}}function CZ(t,e){if(1&t&&(Qo(0,"footer",11),Qo(1,"h2"),Na(2,"Account Created!"),Xo(),Qo(3,"p"),Na(4,"Please check your email to complete the signin process."),Xo(),Qo(5,"button",12),Na(6," Continue to survey "),Xo(),Xo()),2&t){const t=ua();dr(5),qo("mat-dialog-close",t.data.displaySurvey)}}let xZ=(()=>{class t{constructor(t,e,i,n,s,r){this.api=t,this.changeDetectorRef=e,this.route=i,this.googleAnalytics=n,this.dialogRef=s,this.data=r,this.errorMessage="",this.form=new cy({}),this.model={},this.fields=[{key:"email",validators:{fieldMatch:{expression:t=>{const e=t.value;return e.emailConfirm===e.email||!e.emailConfirm||!e.email},message:"Email Does Not Match",errorPath:"emailConfirm"}},fieldGroup:[{key:"email",type:"input",templateOptions:{type:"email",label:"Email Address:",placeholder:"Enter email",required:!0},validators:{validation:["email"]}},{key:"emailConfirm",type:"input",templateOptions:{type:"email",label:"Confirm Email",placeholder:"Please re-enter your email",required:!0}}]}],this._stateSubject=new cp("form"),this.registerState=this._stateSubject.asObservable(),this.user=new VG({id:null,email:this.model.email,role:"User"})}ngOnInit(){}submit(){localStorage.removeItem("token_url"),this.form.valid&&(this._stateSubject.next("submitting"),this.registerState=this._stateSubject.asObservable(),this.errorMessage="",this.user.email=this.model.email.email,this.api.addUser(this.user).subscribe(t=>{this.user=t,t.hasOwnProperty("token_url")&&localStorage.setItem("token_url",t.token_url),this.googleAnalytics.accountEvent("register"),this._stateSubject.next("wait_for_email"),this.registerState=this._stateSubject.asObservable(),this.changeDetectorRef.detectChanges(),this.data.displaySurvey=!0},t=>{this._stateSubject.next("form"),this.registerState=this._stateSubject.asObservable(),this.errorMessage=t,this.changeDetectorRef.detectChanges()}))}get registerStateValue(){return this._stateSubject.value}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(Vl),$o(UH),$o(IG),$o(NO),$o(BO))},t.\u0275cmp=Xt({type:t,selectors:[["app-register-dialog"]],decls:5,vars:3,consts:[[3,"formGroup","ngSubmit"],[3,"form","fields","model",4,"ngIf"],["id","confirmation_message",4,"ngIf"],[3,"form","fields","model"],["id","error_message","class","display mat-error",4,"ngIf"],["fxLayout","column","fxLayoutGap","2%","fxLayoutAlign","center",4,"ngIf"],[4,"ngIf"],["id","error_message",1,"display","mat-error"],["fxLayout","column","fxLayoutGap","2%","fxLayoutAlign","center"],["mat-flat-button","","type","submit","color","primary","id","submit"],["mat-flat-button","","color","accent","id","cancel",3,"mat-dialog-close"],["id","confirmation_message"],["color","primary","mat-flat-button","","id","continue",3,"mat-dialog-close"]],template:function(t,e){1&t&&(Qo(0,"h1"),Na(1,"Join Autism DRIVE"),Xo(),Qo(2,"form",0),ra("ngSubmit",function(){return e.submit()}),jo(3,wZ,4,6,"formly-form",1),jo(4,CZ,7,1,"footer",2),Xo()),2&t&&(dr(2),qo("formGroup",e.form),dr(1),qo("ngIf","wait_for_email"!==e.registerStateValue),dr(1),qo("ngIf","wait_for_email"===e.registerStateValue))},directives:[_y,jb,ky,Jd,NF,o_,p_,Z_,TA,$O,Qj],styles:[""]}),t})();function SZ(t,e){if(1&t){const t=ea();Qo(0,"div",3),Qo(1,"p"),Na(2,"Joining Autism DRIVE is the first step toward participating in our clinical research. Once you join you will be able to see the link to participate."),Xo(),Qo(3,"button",4),ra("click",function(){return Be(t),ua().openDialog()}),Na(4,"Join Autism DRIVE"),Xo(),Qo(5,"p"),Na(6,"Already a user? Sign in to see the link to participate."),Xo(),Qo(7,"button",5),ra("click",function(){return Be(t),ua().goLogin()}),Na(8,"Sign In"),Xo(),Xo()}}function kZ(t,e){if(1&t){const t=ea();Qo(0,"button",7),ra("click",function(){return Be(t),ua(2).goSurvey()}),Na(1,"Start Survey"),Xo()}}function AZ(t,e){if(1&t&&(Qo(0,"div"),jo(1,kZ,2,0,"button",6),Xo()),2&t){const t=ua();dr(1),qo("ngIf",t.surveyLink)}}let OZ=(()=>{class t{constructor(t,e,i){this.router=t,this.googleAnalytics=e,this.dialog=i,this.currentUser=!1}ngOnInit(){}goLogin(){this.router.navigate(["/login"],{queryParams:{returnUrl:this.router.url}})}goSurvey(){this.surveyLink&&(this.googleAnalytics.studySurveyEvent(this.study),window.open(this.surveyLink,"_blank"))}openDialog(){this.dialog.open(xZ,{width:`${window.innerWidth}px`,data:{displaySurvey:!1}}).afterClosed().subscribe(t=>{t&&(this.currentUser=!0,this.goSurvey())})}}return t.\u0275fac=function(e){return new(e||t)($o(lG),$o(IG),$o(jO))},t.\u0275cmp=Xt({type:t,selectors:[["app-study-survey-entry"]],inputs:{study:"study",currentUser:"currentUser",surveyLink:"surveyLink"},decls:5,vars:2,consts:[["fxFlex.gt-md","60%"],["fxLayout","column","fxLayoutGap","20px",4,"ngIf"],[4,"ngIf"],["fxLayout","column","fxLayoutGap","20px"],["mat-flat-button","","color","primary",3,"click"],["mat-flat-button","","color","accent",3,"click"],["mat-flat-button","","color","primary","id","survey-button",3,"click",4,"ngIf"],["mat-flat-button","","color","primary","id","survey-button",3,"click"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"h2"),Na(2,"Interested in Participating?"),Xo(),jo(3,SZ,9,0,"div",1),jo(4,AZ,2,1,"div",2),Xo()),2&t&&(dr(3),qo("ngIf",!e.currentUser),dr(1),qo("ngIf",e.currentUser))},directives:[k_,Jd,o_,p_,TA],styles:["#survey-button[_ngcontent-%COMP%]{margin:1em auto}"]}),t})();function EZ(t,e){if(1&t){const t=ea();Qo(0,"div",3),Qo(1,"p"),Na(2,"Joining Autism DRIVE is the first step toward participating in our clinical research."),Xo(),Qo(3,"button",4),ra("click",function(){return Be(t),ua(2).goRegister()}),Na(4,"Join Autism DRIVE"),Xo(),Qo(5,"p"),Na(6,"Already a user? Sign in"),Xo(),Qo(7,"button",5),ra("click",function(){return Be(t),ua(2).goLogin()}),Na(8,"Sign In"),Xo(),Xo()}}function TZ(t,e){if(1&t){const t=ea();Qo(0,"div"),Qo(1,"mat-card"),Qo(2,"mat-card-title"),Na(3),Xo(),Qo(4,"mat-card-subtitle"),Na(5),vc(6,"titlecase"),Xo(),Qo(7,"div",8),Ko(8,"mat-progress-bar",9),Qo(9,"button",10),ra("click",function(i){Be(t);const n=e.$implicit;return ua(4).goEditEnroll(i,n)}),Na(10),Xo(),Xo(),Xo(),Xo()}if(2&t){const t=e.$implicit,i=ua(4);dr(1),Sa("mat-elevation-z0",!0),dr(2),Va(t.name||"No User Name Set"),dr(2),Va(i.currentUser.isSelf(t)?"You":wc(6,9,t.relationship)),dr(3),qo("mode","determinate")("value",100*t.percent_complete),dr(1),ga("id","edit_enroll_",t.relationship,"_",t.id,""),dr(1),Ba("Edit ","self_guardian"===t.relationship?"guardian":"enrollment"," info")}}function PZ(t,e){if(1&t){const t=ea();Qo(0,"div"),Qo(1,"h4"),Na(2,"Send Inquiry"),Xo(),Qo(3,"p"),Na(4,"Select the \u201cLearn More\u201d button for a member of the research team to contact you to learn more."),Xo(),Qo(5,"button",5),ra("click",function(){return Be(t),ua(4).sendInquiry()}),Na(6,"Learn More"),Xo(),Xo()}}function DZ(t,e){if(1&t&&(Qo(0,"div"),Qo(1,"p"),Na(2,"Please make sure that your profile is complete before indicating your interest in this study. The researchers have a much better chance of determining your eligibility if they can see complete details about you and/or your dependant."),Xo(),jo(3,TZ,11,11,"div",7),jo(4,PZ,7,0,"div",6),Xo()),2&t){const t=ua(3);dr(3),qo("ngForOf",t.currentUser.participants),dr(1),qo("ngIf",t.haveUserContact)}}function MZ(t,e){if(1&t){const t=ea();Qo(0,"div"),Qo(1,"p"),Na(2,'This study has an additional screener to complete in order to determine if you are eligible to participate. If you haven\'t already completed that screener, you can click the "Go to screener" button to be directed there.'),Xo(),Qo(3,"button",5),ra("click",function(){return Be(t),ua(4).goEligibility()}),Na(4,"Go to screener"),Xo(),Xo()}}function IZ(t,e){if(1&t&&(Qo(0,"div"),Qo(1,"p"),Na(2,"You have already sent an inquiry about this study. We\u2019ve let the researchers know that you are interested and they will contact you about next steps."),Xo(),jo(3,MZ,5,0,"div",6),Xo()),2&t){const t=ua(3);dr(3),qo("ngIf",t.study.eligibility_url)}}function RZ(t,e){1&t&&(Qo(0,"div"),Qo(1,"p"),Na(2,"Your profile is not currently eligible for enrolling in this Study."),Xo(),Xo())}function LZ(t,e){if(1&t&&(Qo(0,"div",3),jo(1,DZ,5,2,"div",6),jo(2,IZ,4,1,"div",6),jo(3,RZ,3,0,"div",6),Xo()),2&t){const t=ua(2);dr(1),qo("ngIf",!t.alreadyInquired&&!t.nonParticipant),dr(1),qo("ngIf",t.alreadyInquired),dr(1),qo("ngIf",t.nonParticipant)}}function FZ(t,e){if(1&t&&(Qo(0,"div",1),Qo(1,"h2"),Na(2,"Interested in Enrolling?"),Xo(),jo(3,EZ,9,0,"div",2),jo(4,LZ,4,3,"div",2),Xo()),2&t){const t=ua();dr(3),qo("ngIf",!t.currentUser),dr(1),qo("ngIf",t.currentUser)}}function NZ(t,e){if(1&t){const t=ea();Qo(0,"div"),Qo(1,"p"),Na(2,'This study has an additional screener to complete in order to determine if you are eligible to participate. Click the "Go to screener" button to be directed there.'),Xo(),Qo(3,"button",5),ra("click",function(){return Be(t),ua(2).goEligibility()}),Na(4,"Go to screener"),Xo(),Xo()}}function VZ(t,e){if(1&t&&(Qo(0,"div",1),Qo(1,"h2"),Na(2,"Thank You"),Xo(),Qo(3,"p"),Na(4,"We\u2019ve let the researchers know that you are interested in the study."),Xo(),jo(5,NZ,5,0,"div",6),Xo()),2&t){const t=ua();dr(5),qo("ngIf",t.study.eligibility_url)}}let BZ=(()=>{class t{constructor(t,e,i,n){this.api=t,this.authenticationService=e,this.router=i,this.googleAnalytics=n,this.haveUserContact=!1,this.nonParticipant=!0,this.inquirySent=!1,this.alreadyInquired=!1,this.authenticationService.currentUser.subscribe(t=>this.currentUser=t)}ngOnInit(){this.refreshUserAndInquiries()}refreshUserAndInquiries(){this.currentUser&&(this.api.getUser(this.currentUser.id).subscribe(t=>{const e=new VG(t);this.currentUser=e,this.haveUserContact=e.checkContact(),this.nonParticipant=e.getSelf().relationship===LG.SELF_INTERESTED}),this.api.getUserStudyInquiries(this.currentUser.id).subscribe(t=>{t.forEach(t=>{t.study_id===this.study.id&&(this.alreadyInquired=!0)})}))}goLogin(){this.router.navigate(["/login"],{queryParams:{returnUrl:this.router.url}})}goRegister(){this.router.navigateByUrl("/register")}sendInquiry(){this.api.sendStudyInquiryEmail(this.currentUser,this.study).subscribe(),this.googleAnalytics.studyInquiryEvent(this.study),this.inquirySent=!0}goEditEnroll(t,e){e.relationship===LG.SELF_PARTICIPANT?(t.preventDefault(),this.router.navigate(["flow","self_intake",e.id])):e.relationship===LG.DEPENDENT?(t.preventDefault(),this.router.navigate(["flow","dependent_intake",e.id])):e.relationship===LG.SELF_PROFESSIONAL?(t.preventDefault(),this.router.navigate(["flow","professional_intake",e.id])):e.relationship===LG.SELF_GUARDIAN&&(t.preventDefault(),this.router.navigate(["flow","guardian_intake",e.id]))}goEligibility(){this.study&&this.study.eligibility_url&&window.open(this.study.eligibility_url+"?user_id="+this.currentUser.id,"_blank")}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(BG),$o(lG),$o(IG))},t.\u0275cmp=Xt({type:t,selectors:[["app-study-inquiry"]],inputs:{study:"study"},decls:2,vars:2,consts:[["fxFlex.gt-md","60%",4,"ngIf"],["fxFlex.gt-md","60%"],["fxLayout","column","fxLayoutGap","20px",4,"ngIf"],["fxLayout","column","fxLayoutGap","20px"],["mat-flat-button","","color","primary",3,"click"],["mat-flat-button","","color","accent",3,"click"],[4,"ngIf"],[4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutGap","1em"],[3,"mode","value"],["mat-flat-button","","color","primary",3,"id","click"]],template:function(t,e){1&t&&(jo(0,FZ,5,2,"div",0),jo(1,VZ,6,1,"div",0)),2&t&&(qo("ngIf",!e.inquirySent),dr(1),qo("ngIf",e.inquirySent))},directives:[Jd,k_,o_,p_,TA,Kd,ZA,QA,XA,YD],pipes:[fh],styles:[""]}),t})();function HZ(t,e){if(1&t&&(Qo(0,"h4"),Na(1),Xo()),2&t){const t=ua(2);dr(1),Va(t.study.organization_name)}}function zZ(t,e){if(1&t&&Ko(0,"app-edit-button",7),2&t){const t=ua(2);qo("editLabel","Edit Study")("editLink","study/edit/"+t.study.id.toString())("currentUser",t.currentUser)}}function GZ(t,e){if(1&t&&(Qo(0,"p"),Qo(1,"b"),Na(2,"Click "),Qo(3,"a",8),Na(4,"here"),Xo(),Na(5," for the results"),Xo(),Xo()),2&t){const t=ua(2);dr(3),ma("href",t.study.results_url,ms)}}function UZ(t,e){if(1&t&&(Qo(0,"div"),Qo(1,"h2"),Na(2,"Who We're Looking For"),Xo(),Qo(3,"markdown"),Na(4),Xo(),Xo()),2&t){const t=ua(2);dr(4),Va(t.study.participant_description)}}function jZ(t,e){if(1&t&&(Qo(0,"div"),Qo(1,"h2"),Na(2,"Why Participate?"),Xo(),Qo(3,"markdown"),Na(4),Xo(),Xo()),2&t){const t=ua(2);dr(4),Va(t.study.benefit_description)}}function WZ(t,e){if(1&t&&(Qo(0,"a",8),Na(1),Xo()),2&t){const t=ua().$implicit;ma("href",t.investigator.bio_link,ms),dr(1),Va(t.investigator.name)}}function $Z(t,e){if(1&t&&(Qo(0,"b"),Na(1),Xo()),2&t){const t=ua().$implicit;dr(1),Va(t.investigator.name)}}function qZ(t,e){if(1&t&&(Qo(0,"span"),Na(1),Xo()),2&t){const t=ua().$implicit;dr(1),Ba(", ",t.investigator.title,"")}}function YZ(t,e){if(1&t&&(Qo(0,"span"),Na(1),Xo()),2&t){const t=ua().$implicit;dr(1),Ba(", ",t.investigator.organization_name,"")}}function QZ(t,e){if(1&t){const t=ea();Qo(0,"button",14),ra("click",function(){Be(t);const e=ua().$implicit;return ua(3).openDialog(e)}),Qo(1,"mat-icon"),Na(2,"edit"),Xo(),Xo()}}function XZ(t,e){if(1&t&&(Qo(0,"div",10),Qo(1,"div",11),Qo(2,"p"),jo(3,WZ,2,2,"a",12),jo(4,$Z,2,1,"b",4),jo(5,qZ,2,1,"span",4),jo(6,YZ,2,1,"span",4),Xo(),Xo(),jo(7,QZ,3,0,"button",13),Xo()),2&t){const t=e.$implicit,i=ua(3);dr(3),qo("ngIf",t.investigator.bio_link),dr(1),qo("ngIf",!t.investigator.bio_link),dr(1),qo("ngIf",t.investigator.title),dr(1),qo("ngIf",t.investigator.organization_name),dr(1),qo("ngIf",i.currentUser&&i.currentUser.permissions.includes("edit_resource"))}}function KZ(t,e){if(1&t&&(Qo(0,"div"),Qo(1,"h2"),Na(2,"About the Researchers"),Xo(),jo(3,XZ,8,5,"div",9),Xo()),2&t){const t=ua(2);dr(3),qo("ngForOf",t.study.study_investigators)}}function ZZ(t,e){1&t&&(Qo(0,"h2"),Na(1,"Where does this study take place?"),Xo())}function JZ(t,e){1&t&&(Qo(0,"h2"),Na(1,"Where did this study take place?"),Xo())}function tJ(t,e){if(1&t&&(Qo(0,"p"),Na(1),Xo()),2&t){const t=ua(3);dr(1),Ba("Number of Visits Required For Participation: ",t.study.num_visits,"")}}function eJ(t,e){if(1&t&&(Qo(0,"div"),jo(1,ZZ,2,0,"h2",4),jo(2,JZ,2,0,"h2",4),Qo(3,"p"),Na(4),Xo(),jo(5,tJ,2,1,"p",4),Xo()),2&t){const t=ua(2);dr(1),qo("ngIf","currently_enrolling"===t.study.status||"study_in_progress"===t.study.status),dr(1),qo("ngIf","results_being_analyzed"===t.study.status||"study_results_published"===t.study.status),dr(2),Va(t.study.location),dr(1),qo("ngIf",t.study.num_visits)}}function iJ(t,e){if(1&t&&(Qo(0,"div"),Ko(1,"app-study-survey-entry",15),Xo()),2&t){const t=ua(2);dr(1),qo("study",t.study)("currentUser",t.currentUser)("surveyLink",t.study.survey_url)}}function nJ(t,e){if(1&t&&(Qo(0,"div"),Ko(1,"app-study-inquiry",16),Xo()),2&t){const t=ua(2);dr(1),qo("study",t.study)}}function sJ(t,e){if(1&t&&(Qo(0,"div",2),Qo(1,"div",3),Qo(2,"h1"),Na(3),Xo(),jo(4,HZ,2,1,"h4",4),jo(5,zZ,1,3,"app-edit-button",5),Qo(6,"p",6),Na(7),Xo(),Qo(8,"markdown"),Na(9),Xo(),jo(10,GZ,6,1,"p",4),jo(11,UZ,5,1,"div",4),jo(12,jZ,5,1,"div",4),jo(13,KZ,4,1,"div",4),jo(14,eJ,6,4,"div",4),jo(15,iJ,2,3,"div",4),jo(16,nJ,2,1,"div",4),Xo(),Xo()),2&t){const t=ua();dr(3),Va(t.study.title),dr(1),qo("ngIf",t.study.organization_name),dr(1),qo("ngIf",t.currentUser&&t.currentUser.permissions.includes("edit_study")),dr(2),Ba("Study Status: ",t.snakeToUpperCase(t.study.status),""),dr(2),Va(t.study.description),dr(1),qo("ngIf",t.study.results_url),dr(1),qo("ngIf","currently_enrolling"===t.study.status&&t.study.participant_description),dr(1),qo("ngIf","currently_enrolling"===t.study.status&&t.study.benefit_description),dr(1),qo("ngIf",t.study.study_investigators.length>0),dr(1),qo("ngIf",t.study.location),dr(1),qo("ngIf","currently_enrolling"===t.study.status&&t.study.survey_url),dr(1),qo("ngIf","currently_enrolling"===t.study.status&&!t.study.survey_url)}}function rJ(t,e){1&t&&Ko(0,"app-loading",17)}let oJ=(()=>{class t{constructor(t,e,i,n,s){this.api=t,this.route=e,this.router=i,this.authenticationService=n,this.dialog=s,this.loading=!0,this.authenticationService.currentUser.subscribe(t=>this.currentUser=t),this.route.params.subscribe(t=>{this.loading=!0;const e=t.studyId?parseInt(t.studyId,10):null;isFinite(e)&&this.api.getStudy(e).subscribe(t=>{this.study=t,this.loading=!1})})}get snakeToUpperCase(){return $q}ngOnInit(){}openDialog(t){this.dialog.open(_Z,{width:`${window.innerWidth}px`,data:{si:t}}).afterClosed().subscribe(e=>{e&&(t.investigator=e,this.api.updateInvestigator(t.investigator).subscribe())})}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(UH),$o(lG),$o(BG),$o(jO))},t.\u0275cmp=Xt({type:t,selectors:[["app-study-detail"]],decls:2,vars:2,consts:[["class","container","id","study",4,"ngIf"],["message","Loading...",4,"ngIf"],["id","study",1,"container"],["id","study-details","fxFlex.gt-md","80%","fxFlex.gt-lg","60%","fxLayout","column","fxLayoutGap","15px",1,"row"],[4,"ngIf"],[3,"editLabel","editLink","currentUser",4,"ngIf"],[1,"status"],[3,"editLabel","editLink","currentUser"],["target","_blank",3,"href"],["fxLayout","row","fxLayoutGap","40px","fxLayoutAlign","start center",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutGap","40px","fxLayoutAlign","start center"],[1,"investigator"],["target","_blank",3,"href",4,"ngIf"],["mat-mini-fab","","type","button","color","primary","matTooltip","Edit Investigator",3,"click",4,"ngIf"],["mat-mini-fab","","type","button","color","primary","matTooltip","Edit Investigator",3,"click"],[3,"study","currentUser","surveyLink"],[3,"study"],["message","Loading..."]],template:function(t,e){1&t&&(jo(0,sJ,17,12,"div",0),jo(1,rJ,1,0,"app-loading",1)),2&t&&(qo("ngIf",!e.loading&&e.study),dr(1),qo("ngIf",!e.study))},directives:[Jd,k_,o_,p_,BV,xY,Kd,Z_,TA,AD,JT,OZ,BZ,Qj],styles:[".mat-flat-button[_ngcontent-%COMP%]{margin-top:1em}.status[_ngcontent-%COMP%]{font-size:1.5em;font-weight:700;margin:1em 0;padding-bottom:1em}.investigator[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:.25em auto}h1[_ngcontent-%COMP%]{margin:1em 0}#study-details[_ngcontent-%COMP%]{margin:2em}"]}),t})();function aJ(t,e){1&t&&Ko(0,"app-loading",3)}function lJ(t,e){if(1&t){const t=ea();Qo(0,"button",11),ra("click",function(){Be(t);const e=ua(2);return e.form.valid?e.submit():e.highlightRequiredFields()}),Na(1,"Save"),Xo()}}function cJ(t,e){if(1&t){const t=ea();Qo(0,"button",12),ra("click",function(){return Be(t),ua(2).onCancel()}),Na(1,"Cancel"),Xo()}}function uJ(t,e){if(1&t){const t=ea();Qo(0,"button",13),ra("click",function(){return Be(t),ua(2).showDelete()}),Na(1,"Delete"),Xo()}}function dJ(t,e){if(1&t){const t=ea();Qo(0,"button",14),ra("click",function(){return Be(t),ua(2).onDelete()}),Na(1,"Permanently Delete This Study!!! "),Xo()}}function hJ(t,e){if(1&t&&(Qo(0,"form",4),Qo(1,"h1"),Na(2,"Study Details"),Xo(),Ko(3,"formly-form",5),Qo(4,"div",6),jo(5,lJ,2,0,"button",7),jo(6,cJ,2,0,"button",8),jo(7,uJ,2,0,"button",9),jo(8,dJ,2,0,"button",10),Xo(),Xo()),2&t){const t=ua();qo("formGroup",t.form),dr(3),qo("form",t.form)("model",t.model)("fields",t.fields)("options",t.options),dr(2),qo("ngIf",t.form),dr(1),qo("ngIf",t.form),dr(1),qo("ngIf",!t.showConfirmDelete&&!t.createNew),dr(1),qo("ngIf",t.showConfirmDelete)}}var pJ=function(t){return t.LOADING="loading",t.SHOW_FORM="form",t}({});let mJ=(()=>{class t{constructor(t,e,i,n){this.api=t,this.route=e,this.router=i,this.deviceDetectorService=n,this.pageState=pJ,this.state=pJ.LOADING,this.showConfirmDelete=!1,this.model={},this.fields=[{key:"status",type:"select",templateOptions:{label:"Study Status",placeholder:"Please select the study status",options:[{value:"currently_enrolling",label:"Currently Enrolling"},{value:"study_in_progress",label:"Study in progress"},{value:"results_being_analyzed",label:"Results being analyzed"},{value:"study_results_published",label:"Study results published"}],required:!0}},{key:"title",type:"input",templateOptions:{label:"Title",placeholder:"Please enter the title of your study",required:!0}},{key:"short_title",type:"input",templateOptions:{label:"Short Title",placeholder:"Please enter the short display title of your study",required:!0,maxLength:55}},{key:"description",type:"textarea-auto-resize",templateOptions:{label:"Description",placeholder:"Please enter the description of your study",required:!0}},{key:"short_description",type:"textarea",templateOptions:{label:"Short Description",placeholder:"Please enter the short display description of your study",required:!0,maxLength:155}},{key:"participant_description",type:"textarea-auto-resize",templateOptions:{label:"Participant Description",placeholder:"Who are you looking for to participate in your study?"},expressionProperties:{"templateOptions.required":'model.status === "currently_enrolling"'}},{key:"benefit_description",type:"textarea",templateOptions:{label:"Benefit Description",placeholder:"How will participants benefit from your study?"},expressionProperties:{"templateOptions.required":'model.status === "currently_enrolling"'}},{key:"investigators",type:"select",templateOptions:{label:"Investigators",options:[],valueProp:"id",labelProp:"name",required:!0,multiple:!0},hooks:{onInit:t=>{t.templateOptions.options=this.api.getInvestigators()}}},{key:"additional_investigators",wrappers:["card"],templateOptions:{label:"Additional Investigator",description:"If your investigator does not appear in the list above, please add them here"},fieldGroup:[{type:"input",key:"name",templateOptions:{label:"Name"}},{type:"input",key:"title",templateOptions:{label:"Title"}},{type:"input",key:"organization_name",templateOptions:{label:"Organization Name"}},{type:"input",key:"bio_link",templateOptions:{label:"Bio Link"}}]},{key:"organization_name",type:"input",templateOptions:{label:"Organization",placeholder:"Please enter the name of the hosting organization"}},{key:"location",type:"input",templateOptions:{label:"Location Name",placeholder:"Please describe where the study will take place"}},{key:"num_visits",type:"input",templateOptions:{label:"Number of Visits",type:"number",placeholder:"Please list the number of visits required for participation in this study"}},{key:"coordinator_email",type:"input",templateOptions:{label:"Coordinator Email",placeholder:"Please enter the email address to which study inquires will be sent"},expressionProperties:{"templateOptions.required":'model.status === "currently_enrolling"'},validators:{validation:["email"]}},{key:"eligibility_url",type:"input",templateOptions:{label:"Eligibility Link",placeholder:"If you have an eligibilty screener, please enter the link"},validators:{validation:["url"]}},{key:"survey_url",type:"input",templateOptions:{label:"Survey Link",placeholder:"If this is an online survey study, please enter the link"},validators:{validation:["url"]}},{key:"results_url",type:"input",templateOptions:{label:"Results Url",placeholder:"Link to published results of the study"},validators:{validation:["url"]}},{key:"image_url",type:"input",templateOptions:{label:"Image Url",placeholder:"This is the link to the image used for current study display",description:"Something like: /assets/home/study7.jpg"}},{key:"categories",type:"multiselecttree",templateOptions:{label:"Topics",options:this.api.getCategoryTree(),valueProp:"id",labelProp:"name"}},{key:"ages",type:"multicheckbox",templateOptions:{label:"Age Ranges",type:"array",options:this.getOptions(EU.labels)}},{key:"languages",type:"multicheckbox",templateOptions:{label:"Languages",type:"array",options:this.getOptions(TU.labels)}}],this.createNew=!1}ngOnInit(){this.model.createNew=!1,this.loadData()}getOptions(t){const e=[];for(const i in t)t.hasOwnProperty(i)&&e.push({value:i,label:t[i]});return e}loadData(){this.route.params.subscribe(t=>{if(t.studyId){const e=t.studyId;this.createNew=!1,this.model.createNew=!1,this.api.getStudy(e).subscribe(t=>{this.study=t,this.model=this.study,this.loadInvestigators(t),this.loadStudyCategories(t,()=>this.loadForm())})}else this.createNew=!0,this.model.createNew=!0,this.study={title:"",description:"",participant_description:"",benefit_description:"",investigators:[],location:"",categories:[],status:""},this.loadForm()})}loadInvestigators(t){this.model.investigators=[],t.study_investigators.length>0&&t.study_investigators.forEach(t=>{this.model.investigators.push(t.investigator.id)})}loadStudyCategories(t,e){if(this.model.categories=[],t.study_categories.length>0)for(const i of t.study_categories)this.model.categories.push(i.category),e();else e()}loadForm(){this.form=new cy({}),this.options={formState:{mainModel:this.model}},this.state=this.pageState.SHOW_FORM}updateStudyCategories(t){const e=[];return this.model.categories.forEach((i,n)=>{!0===i&&e.push({study_id:t,category_id:n})}),this.api.updateStudyCategories(t,e)}addStudyInvestigator(){const t=this.model.additional_investigators;return this.api.addInvestigator({name:t.name,title:t.title,organization_name:t.organization_name,bio_link:t.bio_link})}updateStudyInvestigators(t){const e=[];return this.model.investigators.forEach(i=>{e.push({study_id:t,investigator_id:i})}),this.api.updateStudyInvestigators(t,e)}submit(){this.form.valid&&(this.createNew?(this.createNew=!1,this.updateAndClose(this.api.addStudy(this.model))):this.updateAndClose(this.api.updateStudy(this.model)))}updateAndClose(t){t.subscribe(t=>{this.updatedStudy=t,this.model.id=t.id,this.model.additional_investigators.name?this.addStudyInvestigator().subscribe(e=>{this.model.investigators.push(e.id),this.updateStudyInvestigators(t.id).subscribe(()=>{this.updateStudyCategories(t.id).subscribe(()=>this.close())})}):this.updateStudyInvestigators(t.id).subscribe(()=>{this.updateStudyCategories(t.id).subscribe(()=>this.close())})})}showDelete(){this.showConfirmDelete=!0}onDelete(){this.api.deleteStudy(this.study).subscribe(t=>{this.router.navigate(["studies"])})}close(){this.router.navigate(this.updatedStudy&&this.updatedStudy.id?["study",this.updatedStudy.id]:["studies"])}onCancel(){this.close()}highlightRequiredFields(){for(const t of Object.keys(this.form.controls)){const e=this.form.controls[t];e.updateValueAndValidity(),e.markAsDirty()}aB(this.deviceDetectorService)}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(UH),$o(lG),$o(xV))},t.\u0275cmp=Xt({type:t,selectors:[["app-study-form"]],decls:3,vars:2,consts:[[1,"study-detail","mat-typography"],["message","Loading...",4,"ngIf"],["class","pad-2",3,"formGroup",4,"ngIf"],["message","Loading..."],[1,"pad-2",3,"formGroup"],[3,"form","model","fields","options"],["fxLayoutGap","2em",1,"button-row"],["mat-flat-button","","type","button","color","primary","id","save-next-button",3,"click",4,"ngIf"],["mat-flat-button","","type","button","color","accent","id","cancel-button",3,"click",4,"ngIf"],["type","button","mat-flat-button","","color","warn","id","delete-button",3,"click",4,"ngIf"],["id","confirm_delete","type","button","mat-flat-button","","color","warn","id","permanently-delete-button",3,"click",4,"ngIf"],["mat-flat-button","","type","button","color","primary","id","save-next-button",3,"click"],["mat-flat-button","","type","button","color","accent","id","cancel-button",3,"click"],["type","button","mat-flat-button","","color","warn","id","delete-button",3,"click"],["id","confirm_delete","type","button","mat-flat-button","","color","warn","id","permanently-delete-button",3,"click"]],template:function(t,e){1&t&&(Qo(0,"div",0),jo(1,aJ,1,0,"app-loading",1),jo(2,hJ,9,9,"form",2),Xo()),2&t&&(dr(1),qo("ngIf",e.state===e.pageState.LOADING),dr(1),qo("ngIf",e.state===e.pageState.SHOW_FORM))},directives:[Jd,Qj,_y,jb,ky,NF,p_,TA],styles:[".study-detail[_ngcontent-%COMP%]{margin:2em}"]}),t})();var fJ=function(t,e,i,n){return new(i||(i=Promise))(function(s,r){function o(t){try{l(n.next(t))}catch(e){r(e)}}function a(t){try{l(n.throw(t))}catch(e){r(e)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(o,a)}l((n=n.apply(t,e||[])).next())})};function gJ(t,e){if(1&t){const t=ea();Qo(0,"button",17),ra("click",function(){Be(t);const e=ua().$implicit;return ua(2).showDelete(e)}),Qo(1,"mat-icon"),Na(2,"delete"),Xo(),Xo()}2&t&&qo("matTooltip","Delete "+ua().$implicit.name)}function _J(t,e){if(1&t){const t=ea();Zo(0),Qo(1,"button",18),ra("click",function(){Be(t);const e=ua().$implicit;return ua(2).deleteNode(e)}),Na(2),Xo(),Qo(3,"button",19),ra("click",function(){return Be(t),ua(3).cancelDelete()}),Na(4,"Cancel "),Xo(),Jo()}if(2&t){const t=ua().$implicit;dr(2),Ba("Permanently Delete ",t.name,"!!! ")}}const bJ=function(t){return{"mat-tree-node":!0,"highlight-node":t}},yJ=function(t){return{category:t}},vJ=function(){return["/search"]};function wJ(t,e){if(1&t){const t=ea();Qo(0,"mat-tree-node",8),Qo(1,"li",9),Ko(2,"button",10),Qo(3,"button",11),Na(4),Xo(),Qo(5,"a",12),Na(6),Xo(),Na(7),Qo(8,"button",13),ra("click",function(){Be(t);const i=e.$implicit;return ua(2).moveItem(i,-1)}),Qo(9,"mat-icon"),Na(10,"arrow_upward"),Xo(),Xo(),Qo(11,"button",14),ra("click",function(){Be(t);const i=e.$implicit;return ua(2).moveItem(i,1)}),Qo(12,"mat-icon"),Na(13,"arrow_downward"),Xo(),Xo(),Qo(14,"button",15),ra("click",function(){Be(t);const i=e.$implicit;return ua(2).addNewItem(i)}),Qo(15,"mat-icon"),Na(16,"add_circle"),Xo(),Xo(),jo(17,gJ,3,1,"button",16),jo(18,_J,5,1,"ng-container",0),Xo(),Xo()}if(2&t){const t=e.$implicit,i=ua(2);dr(1),qo("ngClass",pc(11,bJ,t.id===i.highlightedNode)),dr(3),Va(t.name),dr(1),qo("queryParams",pc(13,yJ,t.id))("routerLink",hc(15,vJ)),dr(1),Ba(" ",t.all_resource_count," associated resources "),dr(1),Ba(" & ",t.study_count," associated studies "),dr(1),qo("disabled",t.display_order<=0),dr(3),qo("disabled",t.display_order>=i.getSiblings(t).length-1),dr(3),qo("matTooltip","Add sub-category to "+t.name),dr(3),qo("ngIf",!i.showConfirmDelete),dr(1),qo("ngIf",i.showConfirmDelete&&t.id===i.nodeToDelete.id)}}function CJ(t,e){if(1&t){const t=ea();Qo(0,"mat-tree-node",20),Ko(1,"button",10),Qo(2,"mat-form-field"),Qo(3,"mat-label"),Na(4,"New item..."),Xo(),Ko(5,"input",21,22),Xo(),Qo(7,"button",6),ra("click",function(){Be(t);const i=e.$implicit,n=Wo(6);return ua(2).saveNode(i,n.value)}),Na(8,"Save"),Xo(),Qo(9,"button",7),ra("click",function(){return Be(t),ua(2).cancelAdd()}),Na(10,"Cancel"),Xo(),Xo()}}function xJ(t,e){if(1&t){const t=ea();Qo(0,"mat-nested-tree-node",20),Qo(1,"li"),Qo(2,"div",9),Qo(3,"button",23),Qo(4,"mat-icon",24),Na(5),Xo(),Xo(),Qo(6,"button",11),Na(7),Xo(),Qo(8,"a",12),Na(9),Xo(),Na(10),Qo(11,"button",13),ra("click",function(){Be(t);const i=e.$implicit;return ua(2).moveItem(i,-1)}),Qo(12,"mat-icon"),Na(13,"arrow_upward"),Xo(),Xo(),Qo(14,"button",14),ra("click",function(){Be(t);const i=e.$implicit;return ua(2).moveItem(i,1)}),Qo(15,"mat-icon"),Na(16,"arrow_downward"),Xo(),Xo(),Qo(17,"button",25),ra("click",function(){Be(t);const i=e.$implicit;return ua(2).addNewItem(i)}),Qo(18,"mat-icon"),Na(19,"add_circle"),Xo(),Xo(),Xo(),Qo(20,"ul"),ta(21,26),Xo(),Xo(),Xo()}if(2&t){const t=e.$implicit,i=ua(2);dr(2),qo("ngClass",pc(13,bJ,t.id===i.highlightedNode)),dr(1),zo("aria-label","toggle "+t.name),dr(2),Ba(" ",i.treeControl.isExpanded(t)?"expand_more":"chevron_right"," "),dr(2),Va(t.name),dr(1),qo("queryParams",pc(15,yJ,t.id))("routerLink",hc(17,vJ)),dr(1),Ba(" ",t.all_resource_count," associated resources "),dr(1),Ba(" & ",t.study_count," associated studies "),dr(1),qo("disabled",t.display_order<=0),dr(3),qo("disabled",t.display_order>=i.getSiblings(t).length-1),dr(3),qo("matTooltip","Add sub-category to "+t.name),dr(3),Sa("tree-select-invisible",!i.treeControl.isExpanded(t))}}function SJ(t,e){if(1&t){const t=ea();Qo(0,"div"),Qo(1,"h1"),Na(2,"Topics Taxonomy"),Xo(),Qo(3,"p"),Na(4,"To add a topic, click the plus sign next to the parent topic and fill in the name"),Xo(),Qo(5,"p"),Na(6,"To delete a topic, use the button directly next to the topic; it is only possible to delete one topic at a time and only possible to delete topics with no associated children topics."),Xo(),Qo(7,"mat-tree",1),jo(8,wJ,19,16,"mat-tree-node",2),jo(9,CJ,11,0,"mat-tree-node",3),jo(10,xJ,22,18,"mat-nested-tree-node",3),Xo(),Qo(11,"div",4),Qo(12,"mat-form-field"),Qo(13,"mat-label"),Na(14,"New root item..."),Xo(),Qo(15,"input",5),ra("ngModelChange",function(e){return Be(t),ua().rootValue=e}),Xo(),Xo(),Qo(16,"button",6),ra("click",function(){Be(t);const e=ua();return e.saveNode({name:"",parent_id:null},e.rootValue)}),Na(17,"Save"),Xo(),Qo(18,"button",7),ra("click",function(){return Be(t),ua().rootValue=""}),Na(19,"Cancel"),Xo(),Xo(),Xo()}if(2&t){const t=ua();dr(7),qo("dataSource",t.dataSource)("treeControl",t.treeControl),dr(2),qo("matTreeNodeDefWhen",t.hasNoContent),dr(1),qo("matTreeNodeDefWhen",t.hasNestedChild),dr(5),qo("ngModel",t.rootValue)}}let kJ=(()=>{class t{constructor(t,e){this.api=t,this.authenticationService=e,this.dataLoaded=!1,this.nodes={},this.showConfirmDelete=!1,this.rootValue="",this.checklistSelection=new mS(!0),this.hasNestedChild=(t,e)=>e.children&&e.children.length>0,this.hasNoContent=(t,e)=>{const i=""===e.name&&void 0===e.id;return""===e.name&&console.log({_nodeData:e}),i},this.treeControl=new vL(t=>Sp(t.children)),this.dataSource=new $L,this.authenticationService.currentUser.subscribe(t=>this.currentUser=t),this.getCategoryTree(!0)}ngOnInit(){}getCategoryTree(t=!1,e){this.api.getCategoryTree().subscribe(i=>fJ(this,void 0,void 0,function*(){if(!t||!(yield this.hasMissingDisplayOrder(i)))return yield this.walkTree(i,(t,e)=>(this.nodes[t.id]=t,Sp(!0))).then(()=>{this.dataSource.data=i,e&&e()});yield this.walkTree(i,(t,e)=>(t.display_order=e,this.api.addCategory(t))).then(()=>{this.dataSource.data=i,e&&e()})}))}addNewItem(t){this.dataSource.data=this.insertNewChildNode(t,this.dataSource.data),this.refreshTree(),this.treeControl.expand(t)}saveNode(t,e){t.name=e,this.api.addCategory(t).subscribe(t=>{const e=t.id;this.rootValue="",this.getCategoryTree(!0,()=>{this.refreshTree(),this.expandAncestorNodes(e),this.highlightedNode=e})})}moveItem(t,e){const i=t.id,n=null===t.parent_id?this.dataSource.data:this.nodes[t.parent_id].children,s=t.display_order+e;if(n.length<=1||e<0&&s<0||e>0&&s===n.length)return;const r=n[s];r.display_order=t.display_order,t.display_order=s,this.api.addCategory(r).subscribe(()=>{this.api.addCategory(t).subscribe(()=>{this.rootValue="",this.getCategoryTree(!1,()=>{this.refreshTree(),this.highlightedNode=i,this.expandAncestorNodes(i)})})})}showDelete(t){this.showConfirmDelete=!0,this.nodeToDelete=t}deleteNode(t){this.api.deleteCategory(t.id).subscribe(t=>{this.showConfirmDelete=!1,this.nodeToDelete=null,this.getCategoryTree()})}cancelDelete(){this.showConfirmDelete=!1,this.nodeToDelete=void 0}cancelAdd(){this.dataSource.data=this.removeEmpty(this.dataSource.data),this.refreshTree()}removeEmpty(t){return t&&t.length>0?(t=t.filter(t=>""!==t.name)).map(t=>(t.children=this.removeEmpty(t.children),t)):t}insertNewChildNode(t,e){if(e&&e.length>0){const i=e.findIndex(e=>e.id===t.id);return-1!==i?(e[i].children.push({name:"",parent_id:t.id}),e):e.map(e=>(e.children=this.insertNewChildNode(t,e.children),e))}}refreshTree(){const t=this.dataSource.data;this.dataSource.data=null,this.dataSource.data=t}walkTree(t,e){return fJ(this,void 0,void 0,function*(){return t.map((t,i)=>fJ(this,void 0,void 0,function*(){this.nodes[t.id]=t;const n=e(t,i);if(t.children&&t.children.length>0)return n.subscribe(()=>fJ(this,void 0,void 0,function*(){return yield this.walkTree(t.children,e)}))}))})}hasMissingDisplayOrder(t){return fJ(this,void 0,void 0,function*(){let e=!1;return yield this.walkTree(t,(t,i)=>(null==t.display_order&&(e=!0),Sp(e))),e})}getSiblings(t){if(null===t.parent_id)return this.dataSource.data;{const e=this.nodes[t.parent_id];return e&&e.children&&e.children.length>=0?e.children:[]}}expandAncestorNodes(t){const e=this.nodes[t];if(null!==e.parent_id){const t=this.nodes[e.parent_id];this.treeControl.expand(t),null!==t.parent_id&&this.expandAncestorNodes(t.id)}}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(BG))},t.\u0275cmp=Xt({type:t,selectors:[["app-taxonomy-admin"]],decls:1,vars:1,consts:[[4,"ngIf"],[1,"tree-select","taxonomy-admin",3,"dataSource","treeControl"],["matTreeNodeToggle","","matTreeNodePadding","",4,"matTreeNodeDef"],["matTreeNodePadding","",4,"matTreeNodeDef","matTreeNodeDefWhen"],["fxLayout","row"],["matInput","","placeholder","Ex. Topic Name",3,"ngModel","ngModelChange"],["mat-button","","color","primary",3,"click"],["mat-button","",3,"click"],["matTreeNodeToggle","","matTreeNodePadding",""],[3,"ngClass"],["disabled","","mat-icon-button",""],["matTreeNodeToggle","","mat-button",""],[1,"associated-records",3,"queryParams","routerLink"],["mat-icon-button","","color","primary","matTooltip","Move up",3,"disabled","click"],["mat-icon-button","","color","primary","matTooltip","Move down",3,"disabled","click"],["mat-icon-button","","color","primary",3,"matTooltip","click"],["color","warn","mat-icon-button","","type","button",3,"matTooltip","click",4,"ngIf"],["color","warn","mat-icon-button","","type","button",3,"matTooltip","click"],["color","warn","mat-flat-button","","type","button",3,"click"],["mat-flat-button","","type","button",3,"click"],["matTreeNodePadding",""],["matInput","","placeholder","Ex. Topic Name"],["itemValue",""],["mat-icon-button","","matTreeNodeToggle","",1,"toggle-node-button"],[1,"mat-icon-rtl-mirror"],["mat-icon-button","",3,"matTooltip","click"],["matTreeNodeOutlet",""]],template:function(t,e){1&t&&jo(0,SJ,20,5,"div",0),2&t&&qo("ngIf",e.currentUser&&e.currentUser.permissions.includes("publish_resource"))},directives:[Jd,zL,LL,o_,Yk,Nk,cE,_b,Ub,gy,TA,RL,UL,VL,Qd,Pg,uG,AD,JT,NL,HL],styles:[".tree-select-invisible[_ngcontent-%COMP%]{display:none}.tree-select[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .tree-select[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;margin-left:1rem;list-style-type:none}.tree-select[_ngcontent-%COMP%] li[_ngcontent-%COMP%] button.toggle-node-button[_ngcontent-%COMP%], .tree-select[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] button.toggle-node-button[_ngcontent-%COMP%]{outline:none!important}.associated-records[_ngcontent-%COMP%]{margin-left:.5em;margin-right:.5em}.highlight-node[_ngcontent-%COMP%]{background-color:#e4e7f2;-webkit-animation-name:fade-out;-webkit-animation:fade-out 5s forwards;animation:fade-out 5s forwards}@-webkit-keyframes fade-out{0%{background-color:#e4e7f2}to{background-color:rgba(0,0,0,0)}}@keyframes fade-out{0%{background-color:#e4e7f2}to{background-color:rgba(0,0,0,0)}}"]}),t})();function AJ(t,e){1&t&&(Qo(0,"h3",11),Na(1,"You must read and accept the following Terms & Conditions in order to continue creating an Autism DRIVE account."),Xo())}function OJ(t,e){1&t&&(Qo(0,"div",12),Ko(1,"ng2-pdfjs-viewer",13),Xo())}function EJ(t,e){1&t&&(Qo(0,"div",14),Ko(1,"ng2-pdfjs-viewer",15),Xo())}function TJ(t,e){1&t&&(Qo(0,"div",16),Ko(1,"ng2-pdfjs-viewer",17),Xo())}function PJ(t,e){if(1&t){const t=ea();Qo(0,"button",18),ra("click",function(e){return Be(t),ua().goProfile(e)}),Na(1," Cancel "),Xo()}}function DJ(t,e){if(1&t){const t=ea();Qo(0,"button",19),ra("click",function(){return Be(t),ua().addParticipantAndGoToFlow()}),Na(1," I agree "),Xo()}}function MJ(t,e){if(1&t){const t=ea();Qo(0,"button",20),ra("click",function(e){return Be(t),ua().goProfile(e)}),Na(1," Back to Profile "),Xo()}}let IJ=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.route=e,this.authenticationService=i,this.api=n,this.googleAnalyticsService=s,this.preview=!1,this.route.params.subscribe(t=>{this.relationship=t.relationship,"preview"in t&&(this.preview=t.preview)}),this.authenticationService.currentUser.subscribe(t=>{this.user=t},t=>{console.error(t),this.user=null})}ngOnInit(){}goProfile(t){t.preventDefault(),this.router.navigate(["profile"])}getFlow(t){return t===LG.SELF_PARTICIPANT?"self_intake":t===LG.SELF_GUARDIAN?"guardian_intake":t===LG.DEPENDENT?"dependent_intake":t===LG.SELF_PROFESSIONAL?"professional_intake":t===LG.SELF_INTERESTED?"interested_intake":void 0}addParticipantAndGoToFlow(){const t=new FG({user_id:this.user.id,user:this.user,last_updated:new Date,relationship:this.relationship,has_consented:!0}),e=this.getFlow(this.relationship);this.api.addParticipant(t).subscribe(t=>{this.googleAnalyticsService.flowStartEvent(e),this.user.participants.push(t),console.log("Navigating to flow/",e,"/",t.id),this.router.navigate(["flow",e,t.id])})}}return t.\u0275fac=function(e){return new(e||t)($o(lG),$o(UH),$o(BG),$o(WG),$o(IG))},t.\u0275cmp=Xt({type:t,selectors:[["app-terms"]],decls:13,vars:7,consts:[["fxLayoutAlign","center center",1,"container","mat-typography","terms"],["fxFlex","80%"],["variant","dark-lg",3,"click"],["class","alert alert-warn",4,"ngIf"],["id","guardian-terms",4,"ngIf"],["id","self-terms",4,"ngIf"],["id","dependent-terms",4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutGap","2%","fxLayoutAlign","center center"],["mat-flat-button","","color","accent","class","btn-lg","id","terms-cancel-button",3,"click",4,"ngIf"],["mat-flat-button","","color","primary","class","btn-lg","id","agree-button",3,"click",4,"ngIf"],["mat-flat-button","","color","primary","class","btn-lg","id","profile-button",3,"click",4,"ngIf"],[1,"alert","alert-warn"],["id","guardian-terms"],["pdfSrc","../../../assets/terms/guardian_information_sheet.pdf"],["id","self-terms"],["pdfSrc","../../../assets/terms/adult_information_sheet.pdf"],["id","dependent-terms"],["pdfSrc","../../../assets/terms/child_information_sheet.pdf"],["mat-flat-button","","color","accent","id","terms-cancel-button",1,"btn-lg",3,"click"],["mat-flat-button","","color","primary","id","agree-button",1,"btn-lg",3,"click"],["mat-flat-button","","color","primary","id","profile-button",1,"btn-lg",3,"click"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"div",1),Qo(2,"app-logo",2),ra("click",function(t){return e.goProfile(t)}),Xo(),jo(3,AJ,2,0,"h3",3),Qo(4,"h1"),Na(5,"Terms and Conditions"),Xo(),jo(6,OJ,2,0,"div",4),jo(7,EJ,2,0,"div",5),jo(8,TJ,2,0,"div",6),Qo(9,"div",7),jo(10,PJ,2,0,"button",8),jo(11,DJ,2,0,"button",9),jo(12,MJ,2,0,"button",10),Xo(),Xo(),Xo()),2&t&&(dr(3),qo("ngIf",!e.preview),dr(3),qo("ngIf","self_guardian"==e.relationship),dr(1),qo("ngIf","self_participant"==e.relationship||"self_professional"==e.relationship||"self_interested"==e.relationship),dr(1),qo("ngIf","dependent"==e.relationship),dr(2),qo("ngIf",!e.preview),dr(1),qo("ngIf",!e.preview),dr(1),qo("ngIf",e.preview))},directives:[Z_,k_,LW,Jd,o_,p_,nV,TA],styles:[".container[_ngcontent-%COMP%]{min-height:100vh}#dependent-terms[_ngcontent-%COMP%], #guardian-terms[_ngcontent-%COMP%], #self-terms[_ngcontent-%COMP%]{margin-bottom:2em;height:100vh}"]}),t})(),RJ=(()=>{class t{constructor(t,e){this.router=t,this.authenticationService=e}ngOnInit(){this.authenticationService.logout()}goHome(){this.router.navigate([""])}goLogin(){this.router.navigate(["/login"])}}return t.\u0275fac=function(e){return new(e||t)($o(lG),$o(BG))},t.\u0275cmp=Xt({type:t,selectors:[["app-timedout"]],hostVars:1,hostBindings:function(t,e){2&t&&ja("@fadeTransition",e.title)},decls:9,vars:0,consts:[["fxLayout","row","fxLayout.xs","column","fxLayoutWrap","","fxLayoutGap","10px","fxLayoutAlign","center center",1,"container","mat-typography"],["fxFlex","50%",1,"message"],["variant","dark-lg",3,"click"],["mat-flat-button","","color","accent",3,"click"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"div",1),Qo(2,"app-logo",2),ra("click",function(){return e.goHome()}),Xo(),Qo(3,"h1"),Na(4,"Your Autism DRIVE session has timed out."),Xo(),Qo(5,"p"),Na(6,"You will need to log in again to access your profile."),Xo(),Qo(7,"button",3),ra("click",function(){return e.goLogin()}),Na(8,"Ok"),Xo(),Xo(),Xo())},directives:[o_,p_,Z_,k_,LW,TA],styles:[".container[_ngcontent-%COMP%]{min-height:100vh}div.message[_ngcontent-%COMP%]{text-align:center}"],data:{animation:[a$()]}}),t})();function LJ(t,e){1&t&&(Qo(0,"th",14),Na(1," ID "),Xo())}function FJ(t,e){if(1&t&&(Qo(0,"td",15),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.id," ")}}function NJ(t,e){1&t&&(Qo(0,"th",14),Na(1," Questionnaire Name "),Xo())}function VJ(t,e){if(1&t&&(Qo(0,"td",15),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.questionnaire_name," ")}}function BJ(t,e){1&t&&(Qo(0,"th",14),Na(1," Questionnaire ID "),Xo())}function HJ(t,e){if(1&t&&(Qo(0,"td",15),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.questionnaire_id," ")}}function zJ(t,e){1&t&&(Qo(0,"th",14),Na(1," Flow "),Xo())}function GJ(t,e){if(1&t&&(Qo(0,"td",15),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.flow," ")}}function UJ(t,e){1&t&&(Qo(0,"th",14),Na(1," Participant ID "),Xo())}function jJ(t,e){if(1&t&&(Qo(0,"td",15),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.participant_id," ")}}function WJ(t,e){1&t&&(Qo(0,"th",14),Na(1," User ID "),Xo())}function $J(t,e){if(1&t&&(Qo(0,"td",15),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.user_id," ")}}function qJ(t,e){1&t&&(Qo(0,"th",14),Na(1," Date Completed "),Xo())}function YJ(t,e){if(1&t&&(Qo(0,"td",15),Na(1),vc(2,"date"),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",Cc(2,1,t.date_completed,"short")," ")}}function QJ(t,e){1&t&&(Qo(0,"th",14),Na(1," Time On Task MS "),Xo())}function XJ(t,e){if(1&t&&(Qo(0,"td",15),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.time_on_task_ms," ")}}function KJ(t,e){1&t&&Ko(0,"tr",16)}function ZJ(t,e){1&t&&Ko(0,"tr",17)}function JJ(t,e){if(1&t&&(Qo(0,"div"),Qo(1,"h5"),Na(2,"Step Log:"),Xo(),Qo(3,"table",1),Zo(4,2),jo(5,LJ,2,0,"th",3),jo(6,FJ,2,1,"td",4),Jo(),Zo(7,5),jo(8,NJ,2,0,"th",3),jo(9,VJ,2,1,"td",4),Jo(),Zo(10,6),jo(11,BJ,2,0,"th",3),jo(12,HJ,2,1,"td",4),Jo(),Zo(13,7),jo(14,zJ,2,0,"th",3),jo(15,GJ,2,1,"td",4),Jo(),Zo(16,8),jo(17,UJ,2,0,"th",3),jo(18,jJ,2,1,"td",4),Jo(),Zo(19,9),jo(20,WJ,2,0,"th",3),jo(21,$J,2,1,"td",4),Jo(),Zo(22,10),jo(23,qJ,2,0,"th",3),jo(24,YJ,3,4,"td",4),Jo(),Zo(25,11),jo(26,QJ,2,0,"th",3),jo(27,XJ,2,1,"td",4),Jo(),jo(28,KJ,1,0,"tr",12),jo(29,ZJ,1,0,"tr",13),Xo(),Xo()),2&t){const t=ua();dr(3),qo("dataSource",t.dataSource),dr(25),qo("matHeaderRowDef",t.displayedColumns),dr(1),qo("matRowDefColumns",t.displayedColumns)}}let t0=(()=>{class t{constructor(t){this.api=t,this.displayedColumns=["id","questionnaire_name","questionnaire_id","flow","participant_id","user_id","date_completed","time_on_task_ms"]}ngOnInit(){this.api.getParticipantStepLog(this.participant).subscribe(t=>{this.participant.step_log=t,this.dataSource=new mR(t)})}}return t.\u0275fac=function(e){return new(e||t)($o(WG))},t.\u0275cmp=Xt({type:t,selectors:[["app-participant-detail"]],inputs:{participant:"participant"},decls:14,vars:11,consts:[[4,"ngIf"],["mat-table","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","questionnaire_name"],["matColumnDef","questionnaire_id"],["matColumnDef","flow"],["matColumnDef","participant_id"],["matColumnDef","user_id"],["matColumnDef","date_completed"],["matColumnDef","time_on_task_ms"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(t,e){1&t&&(Qo(0,"p"),Qo(1,"b"),Na(2),Xo(),Xo(),Qo(3,"p"),Na(4),Xo(),Qo(5,"p"),Na(6),Xo(),Qo(7,"p"),Na(8),vc(9,"date"),Xo(),Qo(10,"p"),Na(11),vc(12,"percent"),Xo(),jo(13,JJ,30,3,"div",0)),2&t&&(dr(2),Ba("Participant ID: ",e.participant.id,""),dr(2),Ba("Name: ",e.participant.name||"(None given)",""),dr(2),Ba("Relationship: ",e.participant.relationship,""),dr(2),Ba("Last Updated: ",Cc(9,6,e.participant.last_updated,"short"),""),dr(3),Ba("Percent Complete: ",wc(12,9,e.participant.percent_complete),""),dr(2),qo("ngIf",e.participant.step_log&&e.participant.step_log.length>0))},directives:[Jd,$I,ZI,XI,YI,sR,oR,tR,iR,lR,uR],pipes:[_h,bh],styles:["td.mat-cell[_ngcontent-%COMP%], th.mat-header-cell[_ngcontent-%COMP%]{padding:0 1em}"]}),t})();function e0(t,e){if(1&t){const t=ea();Qo(0,"div",9),Qo(1,"mat-form-field"),Qo(2,"mat-label"),Na(3,"Select an option"),Xo(),Qo(4,"mat-select",10),ra("valueChange",function(e){return Be(t),ua(2).roleSelected=e}),Qo(5,"mat-option",11),Na(6,"Admin"),Xo(),Qo(7,"mat-option",12),Na(8,"Test"),Xo(),Qo(9,"mat-option",13),Na(10,"Researcher"),Xo(),Qo(11,"mat-option",14),Na(12,"Editor"),Xo(),Qo(13,"mat-option",15),Na(14,"User"),Xo(),Xo(),Xo(),Qo(15,"button",3),ra("click",function(){return Be(t),ua(2).saveSelection()}),Na(16," Save Selection "),Xo(),Xo()}if(2&t){const t=ua(2);dr(4),qo("value",t.roleSelected)}}function i0(t,e){1&t&&(Qo(0,"th",28),Na(1," ID "),Xo())}function n0(t,e){if(1&t&&(Qo(0,"td",29),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.id," ")}}function s0(t,e){1&t&&(Qo(0,"th",28),Na(1," User ID "),Xo())}function r0(t,e){if(1&t&&(Qo(0,"td",29),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.user_id," ")}}function o0(t,e){1&t&&(Qo(0,"th",28),Na(1," Type "),Xo())}function a0(t,e){if(1&t&&(Qo(0,"td",29),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.type," ")}}function l0(t,e){1&t&&(Qo(0,"th",28),Na(1," Tracking Code "),Xo())}function c0(t,e){if(1&t&&(Qo(0,"td",29),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.tracking_code," ")}}function u0(t,e){1&t&&(Qo(0,"th",28),Na(1," Viewed "),Xo())}function d0(t,e){if(1&t&&(Qo(0,"td",29),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.viewed," ")}}function h0(t,e){1&t&&(Qo(0,"th",28),Na(1," Date Viewed "),Xo())}function p0(t,e){if(1&t&&(Qo(0,"td",29),Na(1),vc(2,"date"),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",Cc(2,1,t.date_viewed,"short")," ")}}function m0(t,e){1&t&&Ko(0,"tr",30)}function f0(t,e){1&t&&Ko(0,"tr",31)}function g0(t,e){if(1&t&&(Qo(0,"div",16),Qo(1,"h5"),Na(2,"User Email Log:"),Xo(),Qo(3,"table",17),Zo(4,18),jo(5,i0,2,0,"th",19),jo(6,n0,2,1,"td",20),Jo(),Zo(7,21),jo(8,s0,2,0,"th",19),jo(9,r0,2,1,"td",20),Jo(),Zo(10,22),jo(11,o0,2,0,"th",19),jo(12,a0,2,1,"td",20),Jo(),Zo(13,23),jo(14,l0,2,0,"th",19),jo(15,c0,2,1,"td",20),Jo(),Zo(16,24),jo(17,u0,2,0,"th",19),jo(18,d0,2,1,"td",20),Jo(),Zo(19,25),jo(20,h0,2,0,"th",19),jo(21,p0,3,4,"td",20),Jo(),jo(22,m0,1,0,"tr",26),jo(23,f0,1,0,"tr",27),Xo(),Xo()),2&t){const t=ua(2);dr(3),qo("dataSource",t.dataSource),dr(19),qo("matHeaderRowDef",t.displayedColumns),dr(1),qo("matRowDefColumns",t.displayedColumns)}}function _0(t,e){1&t&&(Qo(0,"h2"),Na(1,"Related Participants:"),Xo())}function b0(t,e){if(1&t&&(Qo(0,"div",32),Qo(1,"mat-card"),Ko(2,"app-participant-detail",33),Xo(),Xo()),2&t){const t=e.$implicit;dr(2),qo("participant",t)}}function y0(t,e){if(1&t&&(Qo(0,"div"),Qo(1,"p",35),Qo(2,"a",36),Qo(3,"b"),Na(4),Xo(),Xo(),Na(5),vc(6,"uppercase"),vc(7,"date"),Xo(),Xo()),2&t){const t=e.$implicit;dr(2),qo("href","/#/resource/"+t.resource_id,ms),dr(2),Ha("Resource #",t.resource_id," - ",t.resource_title,""),dr(1),Ha(" - Edit Type: ",wc(6,5,t.type)," - Update Date: ",Cc(7,7,t.last_updated,"long")," ")}}function v0(t,e){if(1&t&&(Qo(0,"mat-card"),Qo(1,"mat-card-title"),Na(2,"Edit Log"),Xo(),jo(3,y0,8,10,"div",34),Xo()),2&t){const t=ua(2);dr(3),qo("ngForOf",t.resourceChangeLog)}}function w0(t,e){if(1&t&&(Qo(0,"div"),Qo(1,"p",35),Qo(2,"a",36),Qo(3,"b"),Na(4),Xo(),Xo(),Qo(5,"i"),Na(6),vc(7,"date"),Xo(),Xo(),Qo(8,"p",35),Na(9),Xo(),Xo()),2&t){const t=e.$implicit;dr(2),qo("href","/#/resource/"+t.resource_id,ms),dr(2),Ha("Resource #",t.resource_id," - ",t.resource.title,""),dr(2),Ba(" - note last updated: ",Cc(7,5,t.last_updated,"short"),""),dr(3),Va(t.note)}}function C0(t,e){if(1&t&&(Qo(0,"mat-card"),Qo(1,"mat-card-title"),Na(2,"Admin Notes"),Xo(),Qo(3,"mat-card-content"),jo(4,w0,10,8,"div",34),Xo(),Xo()),2&t){const t=ua(2);dr(4),qo("ngForOf",t.adminNotes)}}function x0(t,e){if(1&t){const t=ea();Qo(0,"div",1),Qo(1,"h1"),Na(2,"User:"),Xo(),Qo(3,"div",2),Qo(4,"button",3),ra("click",function(){return Be(t),ua().exportUserData()}),Na(5," Export User Data "),Xo(),Xo(),Qo(6,"div",4),Qo(7,"div"),Qo(8,"p"),Qo(9,"b"),Na(10),Xo(),Xo(),Qo(11,"p"),Na(12),Xo(),Qo(13,"p"),Na(14),Xo(),Qo(15,"p"),Na(16),vc(17,"date"),Xo(),Qo(18,"p"),Na(19),vc(20,"date"),Xo(),Qo(21,"p"),Na(22),vc(23,"date"),Xo(),jo(24,e0,17,1,"div",5),Xo(),jo(25,g0,24,3,"div",6),Xo(),jo(26,_0,2,0,"h2",7),jo(27,b0,3,1,"div",8),jo(28,v0,4,1,"mat-card",7),jo(29,C0,5,1,"mat-card",7),Xo()}if(2&t){const t=ua();dr(10),Ba("User ID: ",t.user.id,""),dr(2),Ba("User Email: ",t.user.email,""),dr(2),Ba("User Role: ",t.user.role,""),dr(2),Ba("Last Updated: ",Cc(17,12,t.user.last_updated,"short"),""),dr(3),Ba("Account Creation Date: ",Cc(20,15,t.user.registration_date,"short"),""),dr(3),Ba("Last Login: ",Cc(23,18,t.user.last_login,"short"),""),dr(2),qo("ngIf",t.currentUser&&t.currentUser.permissions.includes("user_roles")),dr(1),qo("ngIf",t.user.email_log&&t.user.email_log.length>0),dr(1),qo("ngIf",t.user.participants.length>0),dr(1),qo("ngForOf",t.user.participants),dr(1),qo("ngIf",t.resourceChangeLog&&t.resourceChangeLog.length>0),dr(1),qo("ngIf",t.adminNotes&&t.adminNotes.length>0)}}let S0=(()=>{class t{constructor(t,e,i){this.api=t,this.route=e,this.authenticationService=i,this.displayedColumns=["id","user_id","type","tracking_code","viewed","date_viewed"],this.authenticationService.currentUser.subscribe(t=>this.currentUser=t),this.route.params.subscribe(t=>{const e=t.userId?parseInt(t.userId,10):null;isFinite(e)&&this.api.getUser(e).subscribe(t=>{this.user=t,this.roleSelected=t.role,this.api.getUserEmailLog(this.user).subscribe(t=>{this.user.email_log=t,this.dataSource=new mR(t)}),this.api.getUserAdminNotes(this.user.id).subscribe(t=>{this.adminNotes=t}),this.api.getUserResourceChangeLog(this.user.id).subscribe(t=>{this.resourceChangeLog=t}),this.user.participants.forEach(t=>{this.api.getParticipantStepLog(t).subscribe(e=>{t.step_log=e})})})})}ngOnInit(){}exportUserData(){console.log("clicking the button for export user data"),this.api.exportUserQuestionnaire(this.user.id.toString()).subscribe(t=>{console.log("data",t);const e=t.headers.get("x-filename"),i=new Blob([t.body],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),n=URL.createObjectURL(i),s=document.createElement("a");s.href=n,s.download=e,window.document.body.appendChild(s),s.click(),window.document.body.removeChild(s),URL.revokeObjectURL(n)})}saveSelection(){this.user.role=this.roleSelected,this.api.updateUser(this.user).subscribe()}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(UH),$o(BG))},t.\u0275cmp=Xt({type:t,selectors:[["app-user-admin-details"]],decls:1,vars:1,consts:[["class","user-admin-details","fxLayout","column",4,"ngIf"],["fxLayout","column",1,"user-admin-details"],["fxFlex","20%","fxLayoutGap","2em"],["mat-flat-button","","color","accent",3,"click"],["fxLayout","row"],["fxLayout","column",4,"ngIf"],["class","email-log",4,"ngIf"],[4,"ngIf"],["id","participants","id","participant-detail","fxFlex","40%","fxLayoutGap","2em",4,"ngFor","ngForOf"],["fxLayout","column"],[3,"value","valueChange"],["value","admin"],["value","test"],["value","researcher"],["value","editor"],["value","user"],[1,"email-log"],["mat-table","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","user_id"],["matColumnDef","type"],["matColumnDef","tracking_code"],["matColumnDef","viewed"],["matColumnDef","date_viewed"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],["id","participants","id","participant-detail","fxFlex","40%","fxLayoutGap","2em"],[3,"participant"],[4,"ngFor","ngForOf"],["mat-line",""],[3,"href"]],template:function(t,e){1&t&&jo(0,x0,30,21,"div",0),2&t&&qo("ngIf",e.user)},directives:[Jd,o_,k_,p_,TA,Kd,Yk,Nk,rD,Jx,$I,ZI,XI,YI,sR,oR,tR,iR,lR,uR,ZA,t0,QA,Ex,YA],pipes:[_h,gh],styles:[".user-admin-details[_ngcontent-%COMP%]{margin:2em}mat-card[_ngcontent-%COMP%]{margin-bottom:1em}td.mat-cell[_ngcontent-%COMP%], th.mat-header-cell[_ngcontent-%COMP%]{padding:0 1em}.email-log[_ngcontent-%COMP%]{margin:0 2em}"]}),t})();class k0{constructor(t){this.api=t,this.userSubject=new cp([]),this.countSubject=new cp(0),this.count$=this.countSubject.asObservable(),this.loadingSubject=new cp(!1),this.loading$=this.loadingSubject.asObservable()}connect(t){return this.userSubject.asObservable()}disconnect(t){this.userSubject.complete(),this.loadingSubject.complete(),this.countSubject.complete()}loadUsers(t="",e="email",i="asc",n=0,s=10){this.loadingSubject.next(!0),this.api.findUsers(t,e,i,n,s).subscribe(t=>{console.log("UserDataSource loadUsers results",t),this.userSubject.next(t.items),this.countSubject.next(t.total),this.loadingSubject.next(!1)},t=>{this.userSubject.next(null),this.countSubject.next(0),this.loadingSubject.next(!1)})}}const A0=["input"];function O0(t,e){1&t&&(Qo(0,"div",24),Ko(1,"mat-spinner"),Xo())}function E0(t,e){1&t&&(Qo(0,"mat-header-cell",25),Na(1,"ID"),Xo())}function T0(t,e){if(1&t&&(Qo(0,"mat-cell",26),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba("",t.id," ")}}function P0(t,e){1&t&&(Qo(0,"mat-header-cell",25),Na(1,"Role"),Xo())}function D0(t,e){if(1&t&&(Qo(0,"mat-cell",27),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba("",t.role," ")}}function M0(t,e){1&t&&(Qo(0,"mat-header-cell",25),Na(1,"Account Creation Date"),Xo())}function I0(t,e){if(1&t&&(Qo(0,"mat-cell",27),Na(1),vc(2,"date"),Xo()),2&t){const t=e.$implicit;dr(1),Ba("",Cc(2,1,t.registration_date,"short")," ")}}function R0(t,e){1&t&&(Qo(0,"mat-header-cell",25),Na(1,"Last Updated"),Xo())}function L0(t,e){if(1&t&&(Qo(0,"mat-cell",27),Na(1),vc(2,"date"),Xo()),2&t){const t=e.$implicit;dr(1),Ba("",Cc(2,1,t.last_updated,"short")," ")}}function F0(t,e){1&t&&(Qo(0,"mat-header-cell",25),Na(1,"Last Login"),Xo())}function N0(t,e){if(1&t&&(Qo(0,"mat-cell",27),Na(1),vc(2,"date"),Xo()),2&t){const t=e.$implicit;dr(1),Ba("",Cc(2,1,t.last_login,"short")," ")}}function V0(t,e){1&t&&(Qo(0,"mat-header-cell",25),Na(1,"Email"),Xo())}function B0(t,e){if(1&t&&(Qo(0,"mat-cell",28),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba("",t.email," ")}}function H0(t,e){1&t&&(Qo(0,"mat-header-cell",25),Na(1,"Number of Participants"),Xo())}function z0(t,e){if(1&t&&(Qo(0,"mat-cell",29),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.participant_count," ")}}function G0(t,e){1&t&&(Qo(0,"mat-header-cell",25),Na(1,"Created Password"),Xo())}function U0(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.created_password," ")}}function j0(t,e){1&t&&(Qo(0,"mat-header-cell",25),Na(1,"Identity"),Xo())}function W0(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.identity," ")}}function $0(t,e){1&t&&(Qo(0,"mat-header-cell",25),Na(1,"Percent Self Registration Complete"),Xo())}function q0(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),vc(2,"percent"),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",wc(2,1,t.percent_self_registration_complete)," ")}}function Y0(t,e){1&t&&Ko(0,"mat-header-row")}function Q0(t,e){if(1&t){const t=ea();Qo(0,"mat-row",30),ra("click",function(){Be(t);const i=e.$implicit;return ua().onRowClicked(i)}),Xo()}2&t&&fa("id","user_row_",e.$implicit.id,"")}const X0=function(){return[5,10,20]};let K0=(()=>{class t{constructor(t,e){this.api=t,this.router=e,this.displayedColumns=["id","role","email","last_updated","registration_date","last_login","participant_count","created_password","identity","percent_self_registration_complete"],this.default_page_size=10,this.dataSource=new k0(this.api)}ngOnInit(){this.dataSource.loadUsers("","email","asc",0,this.default_page_size)}onRowClicked(t){this.router.navigate(["admin/user",t.id])}ngAfterViewInit(){Cf(this.input.nativeElement,"keyup").pipe(Sf(150),Np(),If(()=>{this.paginator.pageIndex=0,this.loadUsers()})).subscribe(),this.sort.sortChange.subscribe(()=>this.paginator.pageIndex=0),Y(this.sort.sortChange,this.paginator.page).pipe(If(()=>this.loadUsers())).subscribe()}loadUsers(){this.dataSource.loadUsers(this.input.nativeElement.value,this.sort.active,this.sort.direction,this.paginator.pageIndex,this.paginator.pageSize)}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(lG))},t.\u0275cmp=Xt({type:t,selectors:[["app-user-admin"]],viewQuery:function(t,e){if(1&t&&(Vc(zD,3),Vc(qM,3),Vc(A0,3)),2&t){let t;Nc(t=Hc())&&(e.paginator=t.first),Nc(t=Hc())&&(e.sort=t.first),Nc(t=Hc())&&(e.input=t.first)}},decls:41,vars:12,consts:[[1,"userList"],["matInput","","placeholder","Search Users"],["input",""],["class","spinner-container",4,"ngIf"],["matSort","","matSortActive","email","matSortDirection","asc","matSortDisableClear","",1,"users-table","mat-elevation-z8",3,"dataSource"],["matColumnDef","id"],["mat-sort-header","",4,"matHeaderCellDef"],["class","id-cell",4,"matCellDef"],["matColumnDef","role"],["class","role-cell",4,"matCellDef"],["matColumnDef","registration_date"],["matColumnDef","last_updated"],["matColumnDef","last_login"],["matColumnDef","email"],["class","email-cell",4,"matCellDef"],["matColumnDef","participant_count"],["class","participants-cell",4,"matCellDef"],["matColumnDef","created_password"],[4,"matCellDef"],["matColumnDef","identity"],["matColumnDef","percent_self_registration_complete"],[4,"matHeaderRowDef"],[3,"id","click",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions"],[1,"spinner-container"],["mat-sort-header",""],[1,"id-cell"],[1,"role-cell"],[1,"email-cell"],[1,"participants-cell"],[3,"id","click"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"mat-form-field"),Ko(2,"input",1,2),Xo(),jo(4,O0,2,0,"div",3),vc(5,"async"),Qo(6,"mat-table",4),Zo(7,5),jo(8,E0,2,0,"mat-header-cell",6),jo(9,T0,2,1,"mat-cell",7),Jo(),Zo(10,8),jo(11,P0,2,0,"mat-header-cell",6),jo(12,D0,2,1,"mat-cell",9),Jo(),Zo(13,10),jo(14,M0,2,0,"mat-header-cell",6),jo(15,I0,3,4,"mat-cell",9),Jo(),Zo(16,11),jo(17,R0,2,0,"mat-header-cell",6),jo(18,L0,3,4,"mat-cell",9),Jo(),Zo(19,12),jo(20,F0,2,0,"mat-header-cell",6),jo(21,N0,3,4,"mat-cell",9),Jo(),Zo(22,13),jo(23,V0,2,0,"mat-header-cell",6),jo(24,B0,2,1,"mat-cell",14),Jo(),Zo(25,15),jo(26,H0,2,0,"mat-header-cell",6),jo(27,z0,2,1,"mat-cell",16),Jo(),Zo(28,17),jo(29,G0,2,0,"mat-header-cell",6),jo(30,U0,2,1,"mat-cell",18),Jo(),Zo(31,19),jo(32,j0,2,0,"mat-header-cell",6),jo(33,W0,2,1,"mat-cell",18),Jo(),Zo(34,20),jo(35,$0,2,0,"mat-header-cell",6),jo(36,q0,3,3,"mat-cell",18),Jo(),jo(37,Y0,1,0,"mat-header-row",21),jo(38,Q0,1,1,"mat-row",22),Xo(),Ko(39,"mat-paginator",23),vc(40,"async"),Xo()),2&t&&(dr(4),qo("ngIf",wc(5,7,e.dataSource.loading$)),dr(2),qo("dataSource",e.dataSource),dr(31),qo("matHeaderRowDef",e.displayedColumns),dr(1),qo("matRowDefColumns",e.displayedColumns),dr(1),qo("length",wc(40,9,e.dataSource.count$))("pageSize",e.default_page_size)("pageSizeOptions",hc(11,X0)))},directives:[Yk,cE,Jd,$I,qM,ZI,XI,YI,sR,oR,zD,oM,tR,tI,iR,lR,uR],pipes:[ph,_h,bh],styles:[".userList[_ngcontent-%COMP%]{text-align:center;margin:2em}.spinner-container[_ngcontent-%COMP%]{height:360px;width:390px;position:fixed}.users-table[_ngcontent-%COMP%]{min-height:360px;margin-top:10px}.spinner-container[_ngcontent-%COMP%] mat-spinner[_ngcontent-%COMP%]{margin:130px auto 0}mat-row[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:#fff1e3}.mat-column-role[_ngcontent-%COMP%]{-ms-flex:0 0 75px;flex:0 0 75px}.mat-column-id[_ngcontent-%COMP%]{-ms-flex:0 0 130px;flex:0 0 130px}"]}),t})();function Z0(t,e){1&t&&(Qo(0,"div",4),Ko(1,"mat-spinner"),Xo())}function J0(t,e){if(1&t&&Ko(0,"app-news-item",10),2&t){const t=e.index;qo("item",e.$implicit)("index",t)}}function t1(t,e){if(1&t&&(Qo(0,"div",8),jo(1,J0,1,2,"app-news-item",9),Xo()),2&t){const t=ua(2);dr(1),qo("ngForOf",t.newsItems)}}function e1(t,e){1&t&&(Qo(0,"div",11),Qo(1,"h4"),Na(2,"Please check back for UVA Education content coming soon."),Xo(),Xo())}function i1(t,e){if(1&t&&(Qo(0,"div"),Qo(1,"div",5),jo(2,t1,2,1,"div",6),jo(3,e1,3,0,"div",7),Xo(),Xo()),2&t){const t=ua();dr(2),qo("ngIf",t.newsItems.length>0),dr(1),qo("ngIf",!t.newsItems||0==t.newsItems.length)}}let n1=(()=>{class t{constructor(t,e,i){this.api=t,this.authenticationService=e,this.meta=i,this.loading=!0,this.authenticationService.currentUser.subscribe(t=>this.currentUser=t),this.meta.updateTag({property:"og:image",content:location.origin+"/assets/education/uva_education.jpg"},"property='og:image'"),this.meta.updateTag({property:"og:image:secure_url",content:location.origin+"/assets/education/uva_education.jpg"},"property='og:image:secure_url'"),this.meta.updateTag({name:"twitter:image",content:location.origin+"/assets/education/uva_education.jpg"},"name='twitter:image'"),this.loadResources()}ngOnInit(){}loadResources(){this.api.getEducationResources().subscribe(t=>{this.edResources=t,this.newsItems=this._resourcesToNewsItems(this.edResources)||[],this.loading=!1})}get_image(t){return t.video_code?"https://img.youtube.com/vi/"+t.video_code+"/hqdefault.jpg":"/assets/about/feature.jpg"}_resourcesToNewsItems(t){if(this.edResources&&this.edResources.length>0)return t.map(t=>{let e;return t.video_code&&(e="Watch this video"),{title:t.title,description:t.description.substr(0,100)+"...",url:`/${t.type.toLowerCase()}/${t.id}`,type:OU.RESOURCE,img:this.get_image(t),imgClass:"center-center",label:e}})}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(BG),$o(ip))},t.\u0275cmp=Xt({type:t,selectors:[["app-uva-education"]],decls:6,vars:2,consts:[["id","hero",1,"gradient-overlay","container"],[1,"hero-content"],["class","pad-2","fxLayoutAlign","center center",4,"ngIf"],[4,"ngIf"],["fxLayoutAlign","center center",1,"pad-2"],[1,"container","uva-education"],["class","row","fxFlex","87%",4,"ngIf"],["class","pad-2",4,"ngIf"],["fxFlex","87%",1,"row"],[3,"item","index",4,"ngFor","ngForOf"],[3,"item","index"],[1,"pad-2"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"div",1),Qo(2,"h1"),Na(3,"Webinars"),Xo(),Xo(),Xo(),jo(4,Z0,2,0,"div",2),jo(5,i1,4,2,"div",3)),2&t&&(dr(4),qo("ngIf",e.loading),dr(1),qo("ngIf",e.newsItems))},directives:[Jd,Z_,oM,k_,Kd,YW],styles:["#hero[_ngcontent-%COMP%]{background-image:url(/assets/education/uva_education.jpg);background-position:50% 33%;padding:80px 0}#hero[_ngcontent-%COMP%] .hero-content[_ngcontent-%COMP%]{color:#fff;width:50%}"]}),t})(),s1=(()=>{class t{constructor(t,e){this.router=t,this.authenticationService=e,this.authenticationService.currentUser.subscribe(t=>this.currentUser=t)}canActivate(t,e){return!!this.currentUser||(console.log("On AuthGuard, and there is no user, sending to login!"),this.router.navigate(["/login"],{queryParams:{returnUrl:e.url}}),!1)}}return t.\u0275fac=function(e){return new(e||t)(wn(lG),wn(BG))},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),r1=(()=>{class t{constructor(t,e){this.router=t,this.configService=e}canActivate(t,e){return!this.configService||!this.configService.mirroring||(this.router.navigate(["/mirrored"]),!1)}}return t.\u0275fac=function(e){return new(e||t)(wn(lG),wn(MG))},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),o1=(()=>{class t{constructor(t,e){this.router=t,this.authenticationService=e,this.authenticationService.currentUser.subscribe(t=>this.currentUser=t)}canActivate(t,e){return this.currentUser?!!t.data.roles.includes(this.currentUser.role)||(this.router.navigate(["/profile"]),!1):(this.router.navigate(["/login"],{queryParams:{returnUrl:e.url}}),!1)}}return t.\u0275fac=function(e){return new(e||t)(wn(lG),wn(BG))},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const a1=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:XW,data:{title:"Welcome to Autism DRIVE"},canActivate:[r1]},{path:"uva-education",component:n1,data:{title:"Autism DRIVE UVA Education"},canActivate:[r1]},{path:"about",component:zG,data:{title:"About Autism DRIVE"},canActivate:[r1]},{path:"forgot-password",component:HW,data:{title:"Log in to Autism DRIVE",hideHeader:!0}},{path:"login",component:e$,data:{title:"Log in to Autism DRIVE",hideHeader:!0}},{path:"reset_password/:role/:email_token",component:M$,data:{title:"Reset your Autism DRIVE password",hideHeader:!0}},{path:"profile",component:Wq,data:{title:"Your Autism DRIVE Account"},canActivate:[s1,r1]},{path:"flow/complete",component:Gj,data:{title:"Enrollment complete"},canActivate:[s1,r1]},{path:"flow/:flowName/:participantId",component:IW,data:{title:"Your Autism DRIVE Account"},canActivate:[s1,r1]},{path:"register",component:dY,data:{title:"Create an Autism DRIVE Account",hideHeader:!0}},{path:"event/:resourceId",component:GQ,data:{title:"Autism DRIVE Event Details"}},{path:"location/:resourceId",component:GQ,data:{title:"Autism DRIVE Location Details"}},{path:"resource/:resourceId",component:GQ,data:{title:"Autism DRIVE Resource Details"}},{path:":resourceType/:resourceId/edit",component:ZQ,data:{title:"Edit Resource",roles:["admin","editor"]},canActivate:[o1]},{path:"resources/add",component:ZQ,data:{title:"Add Resource",roles:["admin","editor"]},canActivate:[o1]},{path:"covid19-resources",component:vj,data:{title:"Autism DRIVE COVID-19 Resources"}},{path:"covid19-resources/:category",component:vj,data:{title:"Autism DRIVE COVID-19 Resources"}},{path:"studies",component:gZ,data:{title:"Autism DRIVE Studies"}},{path:"studies/add",component:mJ,data:{title:"Create an Autism DRIVE Study",roles:["admin"]},canActivate:[o1]},{path:"studies/:studyStatus",component:gZ,data:{title:"Autism DRIVE Studies"}},{path:"studies/:studyStatus/:age",component:gZ,data:{title:"Autism DRIVE Studies"}},{path:"study/:studyId",component:oJ,data:{title:"Autism DRIVE Study Details"}},{path:"study/edit/:studyId",component:mJ,data:{title:"Edit Study",roles:["admin"]},canActivate:[o1]},{path:"terms/:relationship",component:IJ,data:{title:"Agree to Terms and Conditions for an Autism DRIVE Account",hideHeader:!0}},{path:"logout",component:l$,data:{title:"You have been logged out.",hideHeader:!0}},{path:"timedout",component:RJ,data:{title:"Your session has timed out.",hideHeader:!0}},{path:"search",component:KK,data:{title:"Search Autism DRIVE"}},{path:"search/:query",component:KK,data:{title:"Search Autism DRIVE Resources"}},{path:"admin",component:AU,data:{title:"Autism DRIVE Admin Home",roles:["admin"]},canActivate:[o1],children:[{path:"",redirectTo:"data-admin",pathMatch:"full"},{path:"data-admin",component:rY,data:{title:"Autism DRIVE Data Admin",roles:["admin"]},canActivate:[o1]},{path:"user-admin",component:K0,data:{title:"Autism DRIVE User Admin",roles:["admin"]},canActivate:[o1]},{path:"participant-admin",component:E$,data:{title:"Autism DRIVE Participant Admin",roles:["admin"]},canActivate:[o1]},{path:"taxonomy-admin",component:kJ,data:{title:"Autism DRIVE Taxonomy Admin",roles:["admin"]},canActivate:[o1]},{path:"import-export-status",component:SU,data:{title:"Autism DRIVE Import/Export Admin",roles:["admin"]},canActivate:[o1]},{path:"email-log",component:Nj,data:{title:"Autism DRIVE Email Log Admin",roles:["admin"]},canActivate:[o1]}]},{path:"admin/user/:userId",component:S0,data:{title:"User Admin Details",roles:["admin","researcher"]},canActivate:[o1]},{path:"mirrored",component:c$,data:{title:"Mirrored Server Details"}}];let l1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[xG.forRoot(a1,{useHash:!0,scrollPositionRestoration:"enabled"})],xG]}),t})(),c1=(()=>{class t{constructor(t){this.ngZone=t}setInterval(t,e){this.ngZone.runOutsideAngular(()=>{this.interval=window.setInterval(()=>{this.ngZone.run(t)},e)})}clearInterval(){window.clearInterval(this.interval)}}return t.\u0275fac=function(e){return new(e||t)(wn(mu))},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function u1(t,e){if(1&t&&Ko(0,"div",19),2&t){const t=ua();qo("@toggleBackground",t.onHomeScreen()&&t.headerViewportState)}}function d1(t,e){1&t&&(Qo(0,"div",26),Na(1,"THIS IS A MIRRORED SERVER"),Xo())}function h1(t,e){if(1&t&&(Qo(0,"mat-toolbar-row",20),Qo(1,"div",21),Qo(2,"a",22),Qo(3,"span",23),Na(4,"About UVA STAR"),Xo(),Qo(5,"span",24),Na(6,"Learn about the UVA STAR project"),Xo(),Xo(),Xo(),Ko(7,"span",5),jo(8,d1,2,0,"div",25),Xo()),2&t){const t=ua();qo("@toggleUvaHeader",t.headerExpandedState),dr(8),qo("ngIf",t.config.mirroring)}}const p1=function(){return["/register"]};function m1(t,e){1&t&&(Qo(0,"li"),Qo(1,"a",34),Qo(2,"span",23),Na(3,"Join"),Xo(),Qo(4,"span",24),Na(5,"Join Us"),Xo(),Xo(),Xo()),2&t&&(dr(1),qo("routerLink",hc(1,p1)))}function f1(t,e){if(1&t){const t=ea();Qo(0,"li"),Qo(1,"a",35),ra("click",function(){return Be(t),ua(2).goLogin()}),Na(2," Sign in "),Xo(),Xo()}}const g1=function(){return["/profile"]};function _1(t,e){1&t&&(Qo(0,"li"),Qo(1,"a",36),Qo(2,"mat-icon"),Na(3,"account_circle"),Xo(),Na(4," Profile "),Xo(),Xo()),2&t&&(dr(1),qo("routerLink",hc(1,g1)))}function b1(t,e){if(1&t){const t=ea();Qo(0,"li"),Qo(1,"a",37),ra("click",function(e){return Be(t),ua(2).goLogout(e)}),Qo(2,"mat-icon"),Na(3,"exit_to_app"),Xo(),Na(4," Logout "),Xo(),Xo()}}const y1=function(){return["/admin"]};function v1(t,e){1&t&&(Qo(0,"li"),Qo(1,"a",38),Qo(2,"mat-icon"),Na(3,"build"),Xo(),Na(4," Admin "),Xo(),Xo()),2&t&&(dr(1),qo("routerLink",hc(1,y1)))}const w1=function(){return["/about"]},C1=function(){return["/studies"]},x1=function(){return["/search"]},S1=function(){return["/uva-education"]};function k1(t,e){if(1&t&&(Qo(0,"div",27),Qo(1,"ul"),Qo(2,"li"),Qo(3,"a",28),Qo(4,"span",23),Na(5,"About"),Xo(),Qo(6,"span",24),Na(7,"About Autism DRIVE"),Xo(),Xo(),Xo(),Qo(8,"li"),Qo(9,"a",29),Qo(10,"span",23),Na(11,"Studies"),Xo(),Qo(12,"span",30),Na(13,"Current Studies"),Xo(),Xo(),Xo(),Qo(14,"li"),Qo(15,"a",31),Qo(16,"span",23),Na(17,"Resources"),Xo(),Qo(18,"span",24),Na(19,"Find Resources"),Xo(),Xo(),Xo(),Qo(20,"li"),Qo(21,"a",32),Na(22," Webinars "),Xo(),Xo(),jo(23,m1,6,2,"li",33),jo(24,f1,3,0,"li",33),jo(25,_1,5,2,"li",33),jo(26,b1,5,0,"li",33),jo(27,v1,5,2,"li",33),Xo(),Xo()),2&t){const t=ua();dr(3),qo("routerLink",hc(9,w1)),dr(6),qo("routerLink",hc(10,C1)),dr(6),qo("routerLink",hc(11,x1)),dr(6),qo("routerLink",hc(12,S1)),dr(2),qo("ngIf",!t.currentUser),dr(1),qo("ngIf",!t.currentUser),dr(1),qo("ngIf",t.currentUser),dr(1),qo("ngIf",t.currentUser),dr(1),qo("ngIf",t.currentUser&&"admin"==t.currentUser.role)}}function A1(t,e){1&t&&(Qo(0,"mat-toolbar-row",39),Qo(1,"p",40),Na(2," A centralized system for autism research & resources for individuals, families & professionals. "),Xo(),Qo(3,"p",41),Na(4," Autism research & resources for "),Ko(5,"br",42),Na(6," individuals, families & professionals. "),Xo(),Xo()),2&t&&qo("@toggleTaglineToolbar",ua().taglineToolbarState)}function O1(t,e){if(1&t){const t=ea();Qo(0,"a",43),ra("click",function(){return Be(t),ua().toggleMenu()}),Qo(1,"mat-icon"),Na(2,"person_add"),Xo(),Na(3," Join Us "),Xo()}2&t&&qo("routerLink",hc(1,p1))}const E1=function(){return["/login"]};function T1(t,e){if(1&t){const t=ea();Qo(0,"a",44),ra("click",function(){return Be(t),ua().toggleMenu()}),Qo(1,"mat-icon"),Na(2,"account_circle"),Xo(),Na(3," Sign in "),Xo()}2&t&&qo("routerLink",hc(1,E1))}function P1(t,e){if(1&t){const t=ea();Qo(0,"a",45),ra("click",function(){return Be(t),ua().toggleMenu()}),Qo(1,"mat-icon"),Na(2,"build"),Xo(),Na(3," Admin "),Xo()}2&t&&qo("routerLink",hc(1,y1))}function D1(t,e){if(1&t){const t=ea();Qo(0,"a",46),ra("click",function(){return Be(t),ua().toggleMenu()}),Qo(1,"mat-icon"),Na(2,"account_circle"),Xo(),Na(3," Visit Profile "),Xo()}2&t&&qo("routerLink",hc(1,g1))}function M1(t,e){if(1&t){const t=ea();Qo(0,"a",47),ra("click",function(e){return Be(t),ua().goLogout(e)})("click",function(){return Be(t),ua().toggleMenu()}),Qo(1,"mat-icon"),Na(2,"exit_to_app"),Xo(),Na(3," Logout "),Xo()}}const I1=function(t){return{mirroring:t}},R1=function(){return{}},L1=function(){return{top:0}},F1=function(){return{top:0,minHeight:"64px"}},N1="0px 5px 5px 0px rgba(0, 0, 0, 0.3)",V1=aX.Hidden+"-"+lX.Collapsed,B1=aX.Hidden+"-"+lX.Expanded,H1=aX.Visible+"-"+lX.Collapsed,z1=aX.Visible+"-"+lX.Expanded;let G1=(()=>{class t{constructor(t,e,i,n,s,r){this.authenticationService=e,this.router=i,this.api=n,this.config=s,this.headerExpanded=!0,this.menuVisible=!1,this.mobileQuery=r.matchMedia("(max-width: 959px)"),this.mdMediaQuery=r.matchMedia("(min-width: 960px) and (max-width: 1279px)"),this.lgMediaQuery=r.matchMedia("(min-width: 1280px)"),this._mobileQueryListener=()=>t.detectChanges(),this._mdMediaQueryListener=()=>t.detectChanges(),this._lgMediaQueryListener=()=>t.detectChanges(),this.mobileQuery.addListener(this._mobileQueryListener),this.mdMediaQuery.addListener(this._mdMediaQueryListener),this.lgMediaQuery.addListener(this._lgMediaQueryListener)}get viewportWidth(){return this.mobileQuery.matches?oX.Small:this.mdMediaQuery.matches?oX.Medium:this.lgMediaQuery.matches?oX.Large:void 0}get headerViewportState(){return`${this.headerExpanded?lX.Expanded:lX.Collapsed}-${this.viewportWidth}`}get menuState(){return`${this.menuVisible?aX.Visible:aX.Hidden}-${this.headerExpanded?lX.Expanded:lX.Collapsed}-${this.viewportWidth}`}get headerExpandedState(){return this.headerExpanded?lX.Expanded:lX.Collapsed}get taglineToolbarState(){return`${this.menuVisible?aX.Visible:aX.Hidden}-${this.headerExpanded?lX.Expanded:lX.Collapsed}-${this.viewportWidth}`}ngAfterViewInit(){this.watchScrollEvents()}ngOnDestroy(){this.mobileQuery.removeListener(this._mobileQueryListener),this.mdMediaQuery.removeListener(this._mdMediaQueryListener),this.lgMediaQuery.removeListener(this._lgMediaQueryListener)}goLogout(t){t.preventDefault(),this.authenticationService.logout(),this.router.navigate(["logout"])}goLogin(){const t=/^\/login/.test(this.router.url),e=/^\/logout/.test(this.router.url),i=/^\/home/.test(this.router.url),n=/^\/timedout/.test(this.router.url);i||t||e||n?this.router.navigate(["/login"]):this.router.navigate(["/login"],{queryParams:{returnUrl:this.router.url}})}toggleMenu(){this.menuVisible=!this.menuVisible}onHomeScreen(){return/^\/home/.test(this.router.url)}watchScrollEvents(){const t=Cf(window,"scroll").pipe(iX(10),E(t=>window.pageYOffset),lS(),E(([t,e])=>et===cX.Up)).subscribe(()=>{this.headerExpanded=!0}),t.pipe(Mm(t=>t===cX.Down)).subscribe(()=>{this.menuVisible=!1,this.headerExpanded=!1})}}return t.\u0275fac=function(e){return new(e||t)($o(Vl),$o(BG),$o(lG),$o(WG),$o(MG),$o(_D))},t.\u0275cmp=Xt({type:t,selectors:[["app-header"]],inputs:{currentUser:"currentUser"},decls:25,vars:31,consts:[["id","header-bg",4,"ngIf"],["ngStyle.lt-md","min-height: unset;","id","site-header",3,"ngClass"],["fxHide.lt-md","","fxShow","","fxLayout","row","fxLayoutAlign","center center","id","uva-header",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","id","menu-bar",3,"ngStyle","ngStyle.lt-md"],["variant","light"],["fxFlex",""],["id","primary-nav",4,"ngIf"],["fxHide","","fxShow.lt-md","","mat-button","",3,"color","click"],["fxHide.lt-md","","fxShow","","id","tagline",4,"ngIf"],["fxHide","","fxShow.lt-md","","id","mobile-menu",1,"mat-typography",3,"ngClass"],["id","about-button-mobile","mat-button","","routerLinkActive","selected",3,"routerLink","click"],["id","studies-button-mobile","mat-button","","routerLinkActive","selected",3,"routerLink","click"],["id","resources-button-mobile","mat-button","","routerLinkActive","selected",3,"routerLink","click"],["id","uva-education-button-mobile","mat-button","","routerLinkActive","selected",3,"routerLink","click"],["id","register-button-mobile","mat-button","","routerLinkActive","selected",3,"routerLink","click",4,"ngIf"],["id","login-button-mobile","mat-button","","routerLinkActive","selected",3,"routerLink","click",4,"ngIf"],["id","admin-button-mobile","mat-button","","routerLinkActive","selected",3,"routerLink","click",4,"ngIf"],["id","profile-button-mobile","mat-button","","routerLinkActive","selected",3,"routerLink","click",4,"ngIf"],["id","logout-button-mobile","mat-button","",3,"click",4,"ngIf"],["id","header-bg"],["fxHide.lt-md","","fxShow","","fxLayout","row","fxLayoutAlign","center center","id","uva-header"],["fxFlex","",1,"uva-logo"],["href","https://curry.virginia.edu/faculty-research/centers-labs-projects/supporting-transformative-autism-research-star","target","_blank"],["fxHide","","fxShow.lt-lg",""],["fxHide","","fxShow.gt-lg","","fxShow.lg",""],["class","mirror-message",4,"ngIf"],[1,"mirror-message"],["id","primary-nav"],["id","about-button","mat-button","","routerLinkActive","selected",3,"routerLink"],["id","studies-button","mat-button","","routerLinkActive","selected",3,"routerLink"],["fxHide","","fxShow.gt-md",""],["id","resources-button","mat-button","","routerLinkActive","selected",3,"routerLink"],["id","uva-education-button","mat-button","","routerLinkActive","selected",3,"routerLink"],[4,"ngIf"],["id","register-button","mat-button","","routerLinkActive","selected",3,"routerLink"],["id","login-button","mat-button","","routerLinkActive","selected",3,"click"],["id","profile-button","mat-button","","routerLinkActive","selected",3,"routerLink"],["id","logout-button","mat-button","",3,"click"],["color","accent","fxHide","","fxShow.gt-sm","","id","admin-button","mat-button","","routerLinkActive","selected",3,"routerLink"],["fxHide.lt-md","","fxShow","","id","tagline"],["fxHide.lt-md","","fxShow",""],["fxHide","","fxShow.lt-md",""],["fxHide","","fxShow.xs",""],["id","register-button-mobile","mat-button","","routerLinkActive","selected",3,"routerLink","click"],["id","login-button-mobile","mat-button","","routerLinkActive","selected",3,"routerLink","click"],["id","admin-button-mobile","mat-button","","routerLinkActive","selected",3,"routerLink","click"],["id","profile-button-mobile","mat-button","","routerLinkActive","selected",3,"routerLink","click"],["id","logout-button-mobile","mat-button","",3,"click"]],template:function(t,e){1&t&&(jo(0,u1,1,1,"div",0),Qo(1,"mat-toolbar",1),jo(2,h1,9,2,"mat-toolbar-row",2),Qo(3,"mat-toolbar-row",3),Ko(4,"app-logo",4),Ko(5,"span",5),jo(6,k1,28,13,"div",6),Qo(7,"button",7),ra("click",function(){return e.toggleMenu()}),Qo(8,"mat-icon"),Na(9,"menu"),Xo(),Xo(),Xo(),jo(10,A1,7,1,"mat-toolbar-row",8),Xo(),Qo(11,"div",9),Qo(12,"a",10),ra("click",function(){return e.toggleMenu()}),Na(13,"About Autism DRIVE"),Xo(),Qo(14,"a",11),ra("click",function(){return e.toggleMenu()}),Na(15,"Current studies"),Xo(),Qo(16,"a",12),ra("click",function(){return e.toggleMenu()}),Na(17,"Find Resources"),Xo(),Qo(18,"a",13),ra("click",function(){return e.toggleMenu()}),Na(19,"Webinars"),Xo(),jo(20,O1,4,2,"a",14),jo(21,T1,4,2,"a",15),jo(22,P1,4,2,"a",16),jo(23,D1,4,2,"a",17),jo(24,M1,4,0,"a",18),Xo()),2&t&&(qo("ngIf",e.onHomeScreen()),dr(1),qo("ngClass",pc(20,I1,e.config.mirroring)),dr(1),qo("ngIf",e.onHomeScreen()),dr(1),qo("@toggleMenuBar",e.onHomeScreen()&&e.menuState)("ngStyle",e.onHomeScreen()?hc(22,R1):hc(23,L1))("ngStyle.lt-md",hc(24,F1)),dr(3),qo("ngIf",!e.mobileQuery.matches),dr(1),qo("color",e.menuVisible?"":"accent"),dr(3),qo("ngIf",e.onHomeScreen()),dr(1),qo("@toggleMobileMenu",e.menuState)("ngClass",pc(25,I1,e.config.mirroring)),dr(1),qo("routerLink",hc(27,w1)),dr(2),qo("routerLink",hc(28,C1)),dr(2),qo("routerLink",hc(29,x1)),dr(2),qo("routerLink",hc(30,S1)),dr(2),qo("ngIf",!e.currentUser),dr(1),qo("ngIf",!e.currentUser),dr(1),qo("ngIf",e.currentUser&&"admin"==e.currentUser.role),dr(1),qo("ngIf",e.currentUser),dr(1),qo("ngIf",e.currentUser))},directives:[Jd,bL,Wg,Qd,Pg,_L,o_,Z_,oh,LW,k_,TA,Ng,JT,PA,uG,hG],styles:['#header-bg[_ngcontent-%COMP%]{position:fixed;z-index:98}#header-bg[_ngcontent-%COMP%], #site-header[_ngcontent-%COMP%]{background-color:#4e4e4e;width:100%}#site-header[_ngcontent-%COMP%]{z-index:100}#site-header[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{background-color:#232d4b;color:#fff;position:fixed;transition:translate .5s ease-in-out,height .5s ease-in-out,top .5s ease-in-out}#site-header[_ngcontent-%COMP%] mat-toolbar-row#uva-header[_ngcontent-%COMP%]{width:100%;background-color:#fff;z-index:103;padding-left:16px;color:#232d4b}#site-header[_ngcontent-%COMP%] mat-toolbar-row#uva-header[_ngcontent-%COMP%] .uva-logo[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font:500 1rem/1.5 franklin-gothic-urw,sans-serif;letter-spacing:normal;color:#232d4b;text-transform:uppercase}#site-header[_ngcontent-%COMP%] mat-toolbar-row#menu-bar[_ngcontent-%COMP%]{padding-right:0;background-color:#232d4b;z-index:102}#site-header[_ngcontent-%COMP%] mat-toolbar-row#menu-bar[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none;color:inherit}#site-header[_ngcontent-%COMP%] mat-toolbar-row#menu-bar[_ngcontent-%COMP%] #primary-nav[_ngcontent-%COMP%] .mat-button.selected[_ngcontent-%COMP%]{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:4px solid #232d4b}#site-header[_ngcontent-%COMP%] mat-toolbar-row#menu-bar[_ngcontent-%COMP%] #primary-nav[_ngcontent-%COMP%] .mat-button[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}#site-header[_ngcontent-%COMP%] mat-toolbar-row#tagline[_ngcontent-%COMP%]{position:fixed;z-index:100;box-shadow:40px 20px 40px -40px rgba(0,0,0,.1)}#site-header[_ngcontent-%COMP%] mat-toolbar-row#tagline[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-style:italic;margin:0}#site-header[_ngcontent-%COMP%] #primary-nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{list-style:none;-ms-flex-align:center;-ms-flex-line-pack:center;-ms-flex-pack:center;justify-content:center}#site-header[_ngcontent-%COMP%] #primary-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%], #site-header[_ngcontent-%COMP%] #primary-nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:0;display:-ms-flexbox;display:flex;align-items:center;justify-items:center;align-content:center}#site-header[_ngcontent-%COMP%] #primary-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{border-right:1px solid #e57200;height:2em;padding:0 18px;-ms-flex-align:center;-ms-flex-line-pack:center;-ms-flex-pack:stretch;justify-content:stretch}#site-header[_ngcontent-%COMP%] #primary-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:last-child{border-right:none}#site-header[_ngcontent-%COMP%] #primary-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-family:franklin-gothic-urw,sans-serif;font-weight:700;font-style:italic;font-size:1rem;color:#fff;text-transform:uppercase;position:relative;display:-ms-flexbox;display:flex;text-decoration:none}#site-header[_ngcontent-%COMP%] #primary-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after{transition:all .5s ease-in-out;content:"";background-color:rgba(0,0,0,0);width:100%;height:4px;position:absolute;bottom:8px;left:0}#site-header[_ngcontent-%COMP%] #primary-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a.selected[_ngcontent-%COMP%]:after{background-color:#e57200;bottom:0}#site-header[_ngcontent-%COMP%] #primary-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{background-color:#232d4b}#site-header[_ngcontent-%COMP%] #primary-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover a[_ngcontent-%COMP%]{text-decoration:none}#site-header[_ngcontent-%COMP%] #primary-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover a[_ngcontent-%COMP%]:after{background-color:#e57200;bottom:0} :not(body.is-home) #site-header{min-height:unset}#mobile-menu.mirroring[_ngcontent-%COMP%], #site-header.mirroring[_ngcontent-%COMP%], #site-header[_ngcontent-%COMP%] mat-toolbar.mirroring[_ngcontent-%COMP%]{background-color:#d87286}div.mirror-message[_ngcontent-%COMP%]{padding:20px;font-weight:700;color:#fff}#mobile-menu[_ngcontent-%COMP%]{position:fixed;width:100%;background-color:#232d4b;color:#fff;z-index:97;padding:1em;display:grid;grid-gap:.25em;grid-template-columns:1fr;-ms-flex-pack:stretch;justify-content:stretch}#mobile-menu[_ngcontent-%COMP%] .mat-button[_ngcontent-%COMP%]{text-align:left}'],data:{animation:[Ov("toggleMobileMenu",[Mv(V1+"-"+oX.Small,Dv({top:"-100vh"})),Mv(B1+"-"+oX.Small,Dv({top:"-100vh"})),Mv(H1+"-"+oX.Small,Dv({top:"64px","box-shadow":N1})),Mv(z1+"-"+oX.Small,Dv({top:"64px","box-shadow":N1})),Rv("* => *",Ev("500ms ease-in-out"))]),Ov("toggleUvaHeader",[Mv(lX.Collapsed,Dv({top:"-40px",height:"40px"})),Mv(lX.Expanded,Dv({top:"0px",height:"40px"})),Rv("* => *",Ev("500ms ease-in-out"))]),Ov("toggleMenuBar",[Mv(V1+"-"+oX.Small,Dv({top:"0px",height:"64px","box-shadow":N1})),Mv(B1+"-"+oX.Small,Dv({top:"0px",height:"64px","box-shadow":"none"})),Mv(H1+"-"+oX.Small,Dv({top:"0px",height:"64px","box-shadow":"none"})),Mv(z1+"-"+oX.Small,Dv({top:"0px",height:"64px","box-shadow":"none"})),Mv(V1+"-"+oX.Medium,Dv({top:"0px",height:"64px","box-shadow":N1})),Mv(B1+"-"+oX.Medium,Dv({top:"40px",height:"64px","box-shadow":"none"})),Mv(H1+"-"+oX.Medium,Dv({top:"0px",height:"64px","box-shadow":"none"})),Mv(z1+"-"+oX.Medium,Dv({top:"40px",height:"64px","box-shadow":"none"})),Mv(V1+"-"+oX.Large,Dv({top:"0px",height:"64px","box-shadow":N1})),Mv(B1+"-"+oX.Large,Dv({top:"40px",height:"64px","box-shadow":"none"})),Mv(H1+"-"+oX.Large,Dv({top:"0px",height:"64px","box-shadow":"none"})),Mv(z1+"-"+oX.Large,Dv({top:"40px",height:"64px","box-shadow":"none"})),Rv("* => *",Ev("500ms ease-in-out"))]),Ov("toggleTaglineToolbar",[Mv(V1+"-"+oX.Small,Dv({top:"0px",height:"40px","box-shadow":"none"})),Mv(B1+"-"+oX.Small,Dv({top:"104px",height:"64px","box-shadow":N1})),Mv(V1+"-"+oX.Medium,Dv({top:"0px",height:"40px","box-shadow":"none"})),Mv(B1+"-"+oX.Medium,Dv({top:"104px",height:"40px","box-shadow":N1})),Mv(V1+"-"+oX.Large,Dv({top:"0px",height:"40px","box-shadow":"none"})),Mv(B1+"-"+oX.Large,Dv({top:"104px",height:"40px","box-shadow":N1})),Mv(H1+"-"+oX.Small,Dv({top:"0px",height:"40px","box-shadow":"none"})),Mv(z1+"-"+oX.Small,Dv({top:"104px",height:"64px","box-shadow":"none"})),Mv(H1+"-"+oX.Medium,Dv({top:"0px",height:"40px","box-shadow":"none"})),Mv(z1+"-"+oX.Medium,Dv({top:"104px",height:"40px","box-shadow":"none"})),Mv(H1+"-"+oX.Large,Dv({top:"0px",height:"40px","box-shadow":"none"})),Mv(z1+"-"+oX.Large,Dv({top:"104px",height:"40px","box-shadow":"none"})),Rv("* => *",Ev("500ms ease-in-out"))]),Ov("toggleBackground",[Mv(lX.Collapsed+"-"+oX.Small,Dv({top:"0px",height:"64px"})),Mv(lX.Expanded+"-"+oX.Small,Dv({top:"0px",height:"64px"})),Mv(lX.Collapsed+"-"+oX.Medium,Dv({top:"0px",height:"64px"})),Mv(lX.Expanded+"-"+oX.Medium,Dv({top:"0px",height:"144px"})),Mv(lX.Collapsed+"-"+oX.Large,Dv({top:"0px",height:"64px"})),Mv(lX.Expanded+"-"+oX.Large,Dv({top:"0px",height:"144px"})),Rv("* => *",Ev("500ms ease-out"))])]}}),t})();function U1(t,e){1&t&&(Qo(0,"div"),Na(1,"Currently running in Development Mode."),Xo())}function j1(t,e){1&t&&(Qo(0,"div"),Na(1,"Currently running in Test mode."),Xo())}function W1(t,e){1&t&&(Qo(0,"div"),Na(1,"This is a mirrored server with de-identified data."),Xo())}let $1=(()=>{class t{constructor(t){this.config=t}}return t.\u0275fac=function(e){return new(e||t)($o(MG))},t.\u0275cmp=Xt({type:t,selectors:[["app-footer"]],decls:17,vars:3,consts:[[1,"global-footer"],[1,"funded-by"],["href","https://curry.virginia.edu/faculty-research/centers-labs-projects/supporting-transformative-autism-research-star","target","_blank"],["src","/assets/logo/UVA_STAR-logo.svg",1,"footer-logo"],[1,"footer-contact"],[1,"address"],["href","tel:434-297-8178",1,"tel"],["href","mailto:autismdrive@virginia.edu",1,"email"],[4,"ngIf"]],template:function(t,e){1&t&&(Qo(0,"footer",0),Qo(1,"div",1),Na(2,"Funded by"),Xo(),Qo(3,"a",2),Ko(4,"img",3),Xo(),Qo(5,"div",4),Qo(6,"address",5),Na(7,"417 Emmet Street, Charlottesville, VA 22904"),Xo(),Qo(8,"a",6),Na(9,"434-297-8178"),Xo(),Qo(10,"a",7),Na(11,"autismdrive@virginia.edu"),Xo(),Xo(),Qo(12,"p"),Na(13,"\xa9 2019 BY THE RECTOR AND VISITORS OF THE UNIVERSITY OF VIRGINIA"),Xo(),jo(14,U1,2,0,"div",8),jo(15,j1,2,0,"div",8),jo(16,W1,2,0,"div",8),Xo()),2&t&&(dr(14),qo("ngIf",e.config.development),dr(1),qo("ngIf",e.config.testing),dr(1),qo("ngIf",e.config.mirroring))},directives:[Jd],styles:['footer[_ngcontent-%COMP%]{margin:50px 10px 10px;text-align:center;position:relative}footer[_ngcontent-%COMP%]:before{background-image:url(/assets/theme/orange-dotted-border-x.png);background-repeat:repeat-x;width:100%;height:4px;display:block;position:absolute;left:0;content:"";top:-2em}.funded-by[_ngcontent-%COMP%]{text-align:left;margin:1em auto -1em}@media (max-width:959px){.funded-by[_ngcontent-%COMP%]{width:290px}}@media (min-width:960px){.funded-by[_ngcontent-%COMP%]{width:417px}}@media (max-width:959px){.footer-logo[_ngcontent-%COMP%]{width:320px}}@media (min-width:960px){.footer-logo[_ngcontent-%COMP%]{width:457px}}.footer-contact[_ngcontent-%COMP%]{margin:0 auto 1.25rem;max-width:15.625rem}.footer-contact[_ngcontent-%COMP%] .address[_ngcontent-%COMP%], .footer-contact[_ngcontent-%COMP%] .email[_ngcontent-%COMP%], .footer-contact[_ngcontent-%COMP%] .tel[_ngcontent-%COMP%]{color:#4e4e4e;line-height:1.5;font-style:italic;display:inline}.footer-contact[_ngcontent-%COMP%] .address[_ngcontent-%COMP%]:after, .footer-contact[_ngcontent-%COMP%] .tel[_ngcontent-%COMP%]:after{content:"|";display:inline-block;margin:0 .325em 0 .5em}@media screen and (min-width:45em){.footer-contact[_ngcontent-%COMP%]{max-width:none;margin:0 auto .625rem}}']}),t})(),q1=(()=>{class t{constructor(t,e,i,n,s,r,o){this.authenticationService=t,this.api=e,this.router=i,this.googleAnalyticsService=n,this.configService=s,this.meta=r,this.route=o,this.title="star-drive",this.hideHeader=!1,this.googleAnalyticsService.init(),this.router.events.subscribe(t=>{(t instanceof JB||t instanceof tH)&&t.snapshot&&t.snapshot.data&&(this.hideHeader=!!t.snapshot.data.hideHeader)}),this.authenticationService.currentUser.subscribe(t=>this.currentUser=t),this.meta.addTags([{property:"og:url",content:location.origin},{property:"og:image",content:location.origin+"/assets/home/hero-family.jpg"},{property:"og:image:secure_url",content:location.origin+"/assets/home/hero-family.jpg"},{name:"twitter:image",content:location.origin+"/assets/home/hero-family.jpg"}])}ngOnInit(){this.router.events.subscribe(t=>{if(t instanceof zB){const t=this.route.snapshot.firstChild.data.title;document.querySelector("body").classList.toggle("is-home","/home"===this.router.url),t&&(this.meta.updateTag({property:"og:title",content:t},"property='og:title'"),this.meta.updateTag({name:"twitter:text:title",content:t},"name='twitter:text:title'")),this.meta.updateTag({property:"og:url",content:location.href},"property='og:url'")}})}}return t.\u0275fac=function(e){return new(e||t)($o(BG),$o(WG),$o(lG),$o(IG),$o(MG),$o(ip),$o(UH))},t.\u0275cmp=Xt({type:t,selectors:[["app-root"]],decls:5,vars:1,consts:[[3,"currentUser"],[1,"content"]],template:function(t,e){1&t&&(Qo(0,"div"),Ko(1,"app-header",0),Qo(2,"div",1),Ko(3,"router-outlet"),Xo(),Ko(4,"app-footer"),Xo()),2&t&&(dr(1),qo("currentUser",e.currentUser))},directives:[G1,pG,$1],styles:[":not(body.is-home) .content{padding-top:64px}"]}),t})();const Y1=["fieldComponent"];function Q1(t,e){}function X1(t,e){if(1&t&&(Qo(0,"div",2),Ko(1,"formly-validation-message",3),Xo()),2&t){const t=ua();dr(1),qo("field",t.field)}}let K1=(()=>{class t extends GF{}return t.\u0275fac=function(e){return Z1(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-group-validation-wrapper"]],viewQuery:function(t,e){if(1&t&&Vc(Y1,3,Kl),2&t){let t;Nc(t=Hc())&&(e.fieldComponent=t.first)}},features:[Oo],decls:3,vars:1,consts:[["fieldComponent",""],["class","mat-error",4,"ngIf"],[1,"mat-error"],[3,"field"]],template:function(t,e){1&t&&(jo(0,Q1,0,0,"ng-template",null,0,jc),jo(2,X1,2,1,"div",1)),2&t&&(dr(2),qo("ngIf",e.showError))},directives:[Jd,$F],styles:[""]}),t})();const Z1=Qi(K1);function J1(t,e){return()=>new Promise(i=>{let n="./api/config";"override_config_url"in WV&&(n=WV.override_config_url),t.get(n).pipe(E(t=>{e.fromProperties(t),i(!0)}),MT((t,e)=>(console.log("Failed to load configuration, unable to find ./api/config"),i(!1),Sp({})))).subscribe()})}let t2=(()=>{class t{}return t.config={extras:{showError:LB},types:[{name:"repeat",component:_B},{name:"multiselecttree",component:rB,wrappers:["card"]},{name:"autocomplete",component:qV,wrappers:["form-field"]},{name:"textarea-auto-resize",component:bB,wrappers:["form-field"]}],validators:[{name:"phone",validation:TB},{name:"email",validation:xB},{name:"url",validation:OB},{name:"multicheckbox",validation:DB},{name:"emailConfirm",validation:kB}],validationMessages:[{name:"phone",message:PB},{name:"email",message:SB},{name:"emailConfirm",message:AB},{name:"url",message:EB},{name:"multicheckbox",message:MB},{name:"required",message:"This field is required."},{name:"min",message:IB},{name:"max",message:RB}],wrappers:[{name:"help",component:JV},{name:"card",component:XV},{name:"group-validation",component:K1}]},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})(),e2=(()=>{class t{constructor(t){t.getContainerElement().classList.add("stardrive-theme")}}return t.\u0275fac=function(e){return new(e||t)(wn(YS))},t.\u0275mod=te({type:t,bootstrap:[q1]}),t.\u0275inj=yt({providers:[WG,dX,_h,xV,IG,c1,uX,{provide:qc,useFactory:J1,deps:[Km,MG],multi:!0},{provide:Jm,useClass:RG,multi:!0},{provide:Jm,useClass:HG,multi:!0},{provide:Sm,useExisting:MG},{provide:$k,useValue:{appearance:"outline"}}],imports:[[Om.forRoot(),Pm,KC,tp,yh,ub,JN,YN,tN.forRoot(t2.config),Py,pf,HV.forRoot(),_A,CA,DA,UA,tO,mO,TO,dT,KO,PT,Qk,DT,tP,uE,yP,VP,Ax,GD,XD,aM,xM,aD,VM,HM,eI,rI,hR,hL,yL,ED,WL,jV,sV,Dy,eV,oF,l1]]}),t})();WV.production&&function(){if(Ou)throw new Error("Cannot enable prod mode after platform setup.");Au=!1}(),Zh().bootstrapModule(e2).catch(t=>console.error(t))},zn8P:function(t,e){function i(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}i.keys=function(){return[]},i.resolve=i,t.exports=i,i.id="zn8P"}},[[0,0]]]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"+eSx":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(i("2o5z")),s=a(i("QTq/")),r=a(i("jDUc")),o=a(i("6D9Q"));function a(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e){var i=(0,n.default)(e),a=(0,s.default)(e),l=(0,n.default)(t),c=(0,s.default)(t);return((0,o.default)(Math.atan2(Math.sin((0,r.default)(a)-(0,r.default)(c))*Math.cos((0,r.default)(i)),Math.cos((0,r.default)(l))*Math.sin((0,r.default)(i))-Math.sin((0,r.default)(l))*Math.cos((0,r.default)(i))*Math.cos((0,r.default)(a)-(0,r.default)(c))))+360)%360}},0:function(t,e,i){t.exports=i("zUnb")},"2o5z":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i("jH9d"),s=o(i("M7lk")),r=o(i("KcL1"));function o(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e){var i=(0,s.default)(t,n.latitudeKeys);if(null!=i){var o=t[i];return!0===e?o:(0,r.default)(o)}}},"3Q5m":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i("jH9d");e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"m",i=n.distanceConversion[e];if(i)return t*i;throw new Error("Invalid unit used for distance conversion.")}},"45h8":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(i("wI44")),s=r(i("me/f"));function r(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e,i){var r=(0,n.default)(e,t),o=(0,n.default)(t,i),a=(0,n.default)(e,i),l=Math.acos((0,s.default)((r*r+a*a-o*o)/(2*r*a))),c=Math.acos((0,s.default)((o*o+a*a-r*r)/(2*o*a)));return l>Math.PI/2?r:c>Math.PI/2?o:Math.sin(l)*r}},"5hfJ":function(t,e,i){"use strict";function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i1&&void 0!==arguments[1]?arguments[1]:"m",i=n.areaConversion[e];if(i)return t*i;throw new Error("Invalid unit used for area conversion.")}},"5vw/":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,s=(n=i("wI44"))&&n.__esModule?n:{default:n};e.default=function(t,e,i){return(0,s.default)(t,e)3&&void 0!==arguments[3]?arguments[3]:6371e3,c=(0,n.default)(t),u=(0,s.default)(t),d=e/l,h=(0,r.default)(i),p=(0,r.default)(c),m=(0,r.default)(u),f=Math.asin(Math.sin(p)*Math.cos(d)+Math.cos(p)*Math.sin(d)*Math.cos(h)),g=m+Math.atan2(Math.sin(h)*Math.sin(d)*Math.cos(p),Math.cos(d)-Math.sin(p)*Math.sin(f)),_=(0,o.default)(g);return(_a.MAXLON)&&(g=(g+3*Math.PI)%(2*Math.PI)-Math.PI,_=(0,o.default)(g)),{latitude:(0,o.default)(f),longitude:_}}},"9Og4":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i("jH9d");e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"kmh";switch(e){case"kmh":return t*n.timeConversion.h*n.distanceConversion.km;case"mph":return t*n.timeConversion.h*n.distanceConversion.mi;default:return t}}},AFAK:function(t,e,i){"use strict";function n(t){return t instanceof Buffer?Buffer.from(t):new t.constructor(t.buffer.slice(),t.byteOffset,t.length)}t.exports=function(t){return(t=t||{}).circles?function(t){var e=[],i=[];return t.proto?function t(r){if("object"!=typeof r||null===r)return r;if(r instanceof Date)return new Date(r);if(Array.isArray(r))return s(r,t);if(r instanceof Map)return new Map(s(Array.from(r),t));if(r instanceof Set)return new Set(s(Array.from(r),t));var o={};for(var a in e.push(r),i.push(o),r){var l=r[a];if("object"!=typeof l||null===l)o[a]=l;else if(l instanceof Date)o[a]=new Date(l);else if(l instanceof Map)o[a]=new Map(s(Array.from(l),t));else if(l instanceof Set)o[a]=new Set(s(Array.from(l),t));else if(ArrayBuffer.isView(l))o[a]=n(l);else{var c=e.indexOf(l);o[a]=-1!==c?i[c]:t(l)}}return e.pop(),i.pop(),o}:function t(r){if("object"!=typeof r||null===r)return r;if(r instanceof Date)return new Date(r);if(Array.isArray(r))return s(r,t);if(r instanceof Map)return new Map(s(Array.from(r),t));if(r instanceof Set)return new Set(s(Array.from(r),t));var o={};for(var a in e.push(r),i.push(o),r)if(!1!==Object.hasOwnProperty.call(r,a)){var l=r[a];if("object"!=typeof l||null===l)o[a]=l;else if(l instanceof Date)o[a]=new Date(l);else if(l instanceof Map)o[a]=new Map(s(Array.from(l),t));else if(l instanceof Set)o[a]=new Set(s(Array.from(l),t));else if(ArrayBuffer.isView(l))o[a]=n(l);else{var c=e.indexOf(l);o[a]=-1!==c?i[c]:t(l)}}return e.pop(),i.pop(),o};function s(t,s){for(var r=Object.keys(t),o=new Array(r.length),a=0;at.length)&&(e=t.length);for(var i=0,n=new Array(e);i=t.length?{done:!0}:{done:!1,value:t[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=t[Symbol.iterator]()).next.bind(n)}var n=function(t){var e={exports:{}};return function(t){function e(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}t.exports={defaults:{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},getDefaults:e,changeDefaults:function(e){t.exports.defaults=e}}}(e),e.exports}(),s=/[&<>"']/,r=/[&<>"']/g,o=/[<>"']|&(?!#?\w+;)/,a=/[<>"']|&(?!#?\w+;)/g,l={"&":"&","<":"<",">":">",'"':""","'":"'"},c=function(t){return l[t]},u=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function d(t){return t.replace(u,function(t,e){return"colon"===(e=e.toLowerCase())?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):""})}var h=/(^|[^\[])\^/g,p=/[^\w:]/g,m=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,f={},g=/^[^:]+:\/*[^/]*$/,_=/^([^:]+:)[\s\S]*$/,b=/^([^:]+:\/*[^/]*)[\s\S]*$/;function y(t,e,i){var n=t.length;if(0===n)return"";for(var s=0;s=0&&"\\"===i[s];)n=!n;return n?"|":" |"}).split(/ \|/),n=0;if(i.length>e)i.splice(e);else for(;i.length1?{type:"space",raw:e[0]}:{raw:"\n"}},e.code=function(t,e){var i=this.rules.block.code.exec(t);if(i){var n=e[e.length-1];if(n&&"paragraph"===n.type)return{raw:i[0],text:i[0].trimRight()};var s=i[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:i[0],codeBlockStyle:"indented",text:this.options.pedantic?s:S(s,"\n")}}},e.fences=function(t){var e=this.rules.block.fences.exec(t);if(e){var i=e[0],n=function(t,e){var i=t.match(/^(\s+)(?:```)/);if(null===i)return e;var n=i[1];return e.split("\n").map(function(t){var e=t.match(/^\s+/);return null===e?t:e[0].length>=n.length?t.slice(n.length):t}).join("\n")}(i,e[3]||"");return{type:"code",raw:i,lang:e[2]?e[2].trim():e[2],text:n}}},e.heading=function(t){var e=this.rules.block.heading.exec(t);if(e){var i=e[2].trim();if(/#$/.test(i)){var n=S(i,"#");this.options.pedantic?i=n.trim():n&&!/ $/.test(n)||(i=n.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:i}}},e.nptable=function(t){var e=this.rules.block.nptable.exec(t);if(e){var i={type:"table",header:k(e[1].replace(/^ *| *\| *$/g,"")),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:e[3]?e[3].replace(/\n$/,"").split("\n"):[],raw:e[0]};if(i.header.length===i.align.length){var n,s=i.align.length;for(n=0;n ?/gm,"");return{type:"blockquote",raw:e[0],text:i}}},e.list=function(t){var e=this.rules.block.list.exec(t);if(e){var i,n,s,r,o,a,l,c,u=e[0],d=e[2],h=d.length>1,p={type:"list",raw:u,ordered:h,start:h?+d.slice(0,-1):"",loose:!1,items:[]},m=e[0].match(this.rules.block.item),f=!1,g=m.length;s=this.rules.block.listItemStart.exec(m[0]);for(var _=0;_s[1].length:r[1].length>s[0].length||r[1].length>3){m.splice(_,2,m[_]+"\n"+m[_+1]),_--,g--;continue}(!this.options.pedantic||this.options.smartLists?r[2][r[2].length-1]!==d[d.length-1]:h===(1===r[2].length))&&(o=m.slice(_+1).join("\n"),p.raw=p.raw.substring(0,p.raw.length-o.length),_=g-1),s=r}n=i.length,~(i=i.replace(/^ *([*+-]|\d+[.)]) ?/,"")).indexOf("\n ")&&(n-=i.length,i=i.replace(this.options.pedantic?/^ {1,4}/gm:new RegExp("^ {1,"+n+"}","gm"),"")),a=f||/\n\n(?!\s*$)/.test(i),_!==g-1&&(f="\n"===i.charAt(i.length-1),a||(a=f)),a&&(p.loose=!0),this.options.gfm&&(c=void 0,(l=/^\[[ xX]\] /.test(i))&&(c=" "!==i[1],i=i.replace(/^\[[ xX]\] +/,""))),p.items.push({type:"list_item",raw:u,task:l,checked:c,loose:a,text:i})}return p}},e.html=function(t){var e=this.rules.block.html.exec(t);if(e)return{type:this.options.sanitize?"paragraph":"html",raw:e[0],pre:!this.options.sanitizer&&("pre"===e[1]||"script"===e[1]||"style"===e[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):A(e[0]):e[0]}},e.def=function(t){var e=this.rules.block.def.exec(t);if(e)return e[3]&&(e[3]=e[3].substring(1,e[3].length-1)),{tag:e[1].toLowerCase().replace(/\s+/g," "),raw:e[0],href:e[2],title:e[3]}},e.table=function(t){var e=this.rules.block.table.exec(t);if(e){var i={type:"table",header:k(e[1].replace(/^ *| *\| *$/g,"")),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:e[3]?e[3].replace(/\n$/,"").split("\n"):[]};if(i.header.length===i.align.length){i.raw=e[0];var n,s=i.align.length;for(n=0;n/i.test(n[0])&&(e=!1),!i&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?i=!0:i&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(i=!1),{type:this.options.sanitize?"text":"html",raw:n[0],inLink:e,inRawBlock:i,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):A(n[0]):n[0]}},e.link=function(t){var e=this.rules.inline.link.exec(t);if(e){var i=e[2].trim();if(!this.options.pedantic&&/^$/.test(i))return;var n=S(i.slice(0,-1),"\\");if((i.length-n.length)%2==0)return}else{var s=function(t,e){if(-1===t.indexOf(e[1]))return-1;for(var i=t.length,n=0,s=0;s-1){var r=(0===e[0].indexOf("!")?5:4)+e[1].length+s;e[2]=e[2].substring(0,s),e[0]=e[0].substring(0,r).trim(),e[3]=""}}var o=e[2],a="";if(this.options.pedantic){var l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);l&&(o=l[1],a=l[3])}else a=e[3]?e[3].slice(1,-1):"";return o=o.trim(),/^$/.test(i)?o.slice(1):o.slice(1,-1)),O(e,{href:o?o.replace(this.rules.inline._escapes,"$1"):o,title:a?a.replace(this.rules.inline._escapes,"$1"):a},e[0])}},e.reflink=function(t,e){var i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){var n=(i[2]||i[1]).replace(/\s+/g," ");if(!(n=e[n.toLowerCase()])||!n.href){var s=i[0].charAt(0);return{type:"text",raw:s,text:s}}return O(i,n,i[0])}},e.strong=function(t,e,i){void 0===i&&(i="");var n=this.rules.inline.strong.start.exec(t);if(n&&(!n[1]||n[1]&&(""===i||this.rules.inline.punctuation.exec(i)))){e=e.slice(-1*t.length);var s,r="**"===n[0]?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;for(r.lastIndex=0;null!=(n=r.exec(e));)if(s=this.rules.inline.strong.middle.exec(e.slice(0,n.index+3)))return{type:"strong",raw:t.slice(0,s[0].length),text:t.slice(2,s[0].length-2)}}},e.em=function(t,e,i){void 0===i&&(i="");var n=this.rules.inline.em.start.exec(t);if(n&&(!n[1]||n[1]&&(""===i||this.rules.inline.punctuation.exec(i)))){e=e.slice(-1*t.length);var s,r="*"===n[0]?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;for(r.lastIndex=0;null!=(n=r.exec(e));)if(s=this.rules.inline.em.middle.exec(e.slice(0,n.index+2)))return{type:"em",raw:t.slice(0,s[0].length),text:t.slice(1,s[0].length-1)}}},e.codespan=function(t){var e=this.rules.inline.code.exec(t);if(e){var i=e[2].replace(/\n/g," "),n=/[^ ]/.test(i),s=/^ /.test(i)&&/ $/.test(i);return n&&s&&(i=i.substring(1,i.length-1)),i=A(i,!0),{type:"codespan",raw:e[0],text:i}}},e.br=function(t){var e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}},e.del=function(t){var e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2]}},e.autolink=function(t,e){var i,n,s=this.rules.inline.autolink.exec(t);if(s)return n="@"===s[2]?"mailto:"+(i=A(this.options.mangle?e(s[1]):s[1])):i=A(s[1]),{type:"link",raw:s[0],text:i,href:n,tokens:[{type:"text",raw:i,text:i}]}},e.url=function(t,e){var i;if(i=this.rules.inline.url.exec(t)){var n,s;if("@"===i[2])s="mailto:"+(n=A(this.options.mangle?e(i[0]):i[0]));else{var r;do{r=i[0],i[0]=this.rules.inline._backpedal.exec(i[0])[0]}while(r!==i[0]);n=A(i[0]),s="www."===i[1]?"http://"+n:n}return{type:"link",raw:i[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}},e.inlineText=function(t,e,i){var n,s=this.rules.inline.text.exec(t);if(s)return n=e?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(s[0]):A(s[0]):s[0]:A(this.options.smartypants?i(s[0]):s[0]),{type:"text",raw:s[0],text:n}},t}(),T={exec:function(){}},P=function(t,e){t=t.source||t,e=e||"";var i={replace:function(e,n){return n=(n=n.source||n).replace(h,"$1"),t=t.replace(e,n),i},getRegex:function(){return new RegExp(t,e)}};return i},D=C,M={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?! {0,3}bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:T,table:T,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};M.def=P(M.def).replace("label",M._label).replace("title",M._title).getRegex(),M.bullet=/(?:[*+-]|\d{1,9}[.)])/,M.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,M.item=P(M.item,"gm").replace(/bull/g,M.bullet).getRegex(),M.listItemStart=P(/^( *)(bull)/).replace("bull",M.bullet).getRegex(),M.list=P(M.list).replace(/bull/g,M.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+M.def.source+")").getRegex(),M._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",M._comment=/|$)/,M.html=P(M.html,"i").replace("comment",M._comment).replace("tag",M._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),M.paragraph=P(M._paragraph).replace("hr",M.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",M._tag).getRegex(),M.blockquote=P(M.blockquote).replace("paragraph",M.paragraph).getRegex(),M.normal=D({},M),M.gfm=D({},M.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n {0,3}([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n {0,3}\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),M.gfm.nptable=P(M.gfm.nptable).replace("hr",M.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",M._tag).getRegex(),M.gfm.table=P(M.gfm.table).replace("hr",M.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",M._tag).getRegex(),M.pedantic=D({},M.normal,{html:P("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",M._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:T,paragraph:P(M.normal._paragraph).replace("hr",M.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",M.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var I={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:T,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation_\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation*\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation_\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation*\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:T,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~"};I.punctuation=P(I.punctuation).replace(/punctuation/g,I._punctuation).getRegex(),I._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",I._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",I._comment=P(M._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),I.em.start=P(I.em.start).replace(/punctuation/g,I._punctuation).getRegex(),I.em.middle=P(I.em.middle).replace(/punctuation/g,I._punctuation).replace(/overlapSkip/g,I._overlapSkip).getRegex(),I.em.endAst=P(I.em.endAst,"g").replace(/punctuation/g,I._punctuation).getRegex(),I.em.endUnd=P(I.em.endUnd,"g").replace(/punctuation/g,I._punctuation).getRegex(),I.strong.start=P(I.strong.start).replace(/punctuation/g,I._punctuation).getRegex(),I.strong.middle=P(I.strong.middle).replace(/punctuation/g,I._punctuation).replace(/overlapSkip/g,I._overlapSkip).getRegex(),I.strong.endAst=P(I.strong.endAst,"g").replace(/punctuation/g,I._punctuation).getRegex(),I.strong.endUnd=P(I.strong.endUnd,"g").replace(/punctuation/g,I._punctuation).getRegex(),I.blockSkip=P(I._blockSkip,"g").getRegex(),I.overlapSkip=P(I._overlapSkip,"g").getRegex(),I._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,I._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,I._email=/[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])?)+(?![-_])/,I.autolink=P(I.autolink).replace("scheme",I._scheme).replace("email",I._email).getRegex(),I._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,I.tag=P(I.tag).replace("comment",I._comment).replace("attribute",I._attribute).getRegex(),I._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,I._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,I._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,I.link=P(I.link).replace("label",I._label).replace("href",I._href).replace("title",I._title).getRegex(),I.reflink=P(I.reflink).replace("label",I._label).getRegex(),I.reflinkSearch=P(I.reflinkSearch,"g").replace("reflink",I.reflink).replace("nolink",I.nolink).getRegex(),I.normal=D({},I),I.pedantic=D({},I.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:P(/^!?\[(label)\]\((.*?)\)/).replace("label",I._label).getRegex(),reflink:P(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",I._label).getRegex()}),I.gfm=D({},I.normal,{escape:P(I.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\1;)1&e&&(i+=t),e>>=1,t+=t;return i+t};function B(t){return t.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026")}function H(t){var e,i,n="",s=t.length;for(e=0;e.5&&(i="x"+i.toString(16)),n+="&#"+i+";";return n}var z=function(){function e(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||L,this.options.tokenizer=this.options.tokenizer||new E,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var e={block:F.normal,inline:N.normal};this.options.pedantic?(e.block=F.pedantic,e.inline=N.pedantic):this.options.gfm&&(e.block=F.gfm,e.inline=this.options.breaks?N.breaks:N.gfm),this.tokenizer.rules=e}e.lex=function(t,i){return new e(i).lex(t)},e.lexInline=function(t,i){return new e(i).inlineTokens(t)};var i,n,s=e.prototype;return s.lex=function(t){return t=t.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(t,this.tokens,!0),this.inline(this.tokens),this.tokens},s.blockTokens=function(t,e,i){var n,s,r,o;for(void 0===e&&(e=[]),void 0===i&&(i=!0),this.options.pedantic&&(t=t.replace(/^ +$/gm,""));t;)if(n=this.tokenizer.space(t))t=t.substring(n.raw.length),n.type&&e.push(n);else if(n=this.tokenizer.code(t,e))t=t.substring(n.raw.length),n.type?e.push(n):((o=e[e.length-1]).raw+="\n"+n.raw,o.text+="\n"+n.text);else if(n=this.tokenizer.fences(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.heading(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.nptable(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.hr(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.blockquote(t))t=t.substring(n.raw.length),n.tokens=this.blockTokens(n.text,[],i),e.push(n);else if(n=this.tokenizer.list(t)){for(t=t.substring(n.raw.length),r=n.items.length,s=0;s0)for(;null!=(r=this.tokenizer.rules.inline.reflinkSearch.exec(l));)c.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,r.index)+"["+V("a",r[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(r=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,r.index)+"["+V("a",r[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;t;)if(o||(a=""),o=!1,s=this.tokenizer.escape(t))t=t.substring(s.raw.length),e.push(s);else if(s=this.tokenizer.tag(t,i,n))t=t.substring(s.raw.length),i=s.inLink,n=s.inRawBlock,e.push(s);else if(s=this.tokenizer.link(t))t=t.substring(s.raw.length),"link"===s.type&&(s.tokens=this.inlineTokens(s.text,[],!0,n)),e.push(s);else if(s=this.tokenizer.reflink(t,this.tokens.links))t=t.substring(s.raw.length),"link"===s.type&&(s.tokens=this.inlineTokens(s.text,[],!0,n)),e.push(s);else if(s=this.tokenizer.strong(t,l,a))t=t.substring(s.raw.length),s.tokens=this.inlineTokens(s.text,[],i,n),e.push(s);else if(s=this.tokenizer.em(t,l,a))t=t.substring(s.raw.length),s.tokens=this.inlineTokens(s.text,[],i,n),e.push(s);else if(s=this.tokenizer.codespan(t))t=t.substring(s.raw.length),e.push(s);else if(s=this.tokenizer.br(t))t=t.substring(s.raw.length),e.push(s);else if(s=this.tokenizer.del(t))t=t.substring(s.raw.length),s.tokens=this.inlineTokens(s.text,[],i,n),e.push(s);else if(s=this.tokenizer.autolink(t,H))t=t.substring(s.raw.length),e.push(s);else if(i||!(s=this.tokenizer.url(t,H))){if(s=this.tokenizer.inlineText(t,n,B))t=t.substring(s.raw.length),a=s.raw.slice(-1),o=!0,e.push(s);else if(t){var u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}throw new Error(u)}}else t=t.substring(s.raw.length),e.push(s);return e},i=e,n=[{key:"rules",get:function(){return{block:F,inline:N}}}],null&&t(i.prototype,null),n&&t(i,n),e}(),G=n.defaults,U=function(t,e,i){if(t){var n;try{n=decodeURIComponent(d(i)).replace(p,"").toLowerCase()}catch(s){return null}if(0===n.indexOf("javascript:")||0===n.indexOf("vbscript:")||0===n.indexOf("data:"))return null}e&&!m.test(i)&&(i=function(t,e){f[" "+t]||(f[" "+t]=g.test(t)?t+"/":y(t,"/",!0));var i=-1===(t=f[" "+t]).indexOf(":");return"//"===e.substring(0,2)?i?e:t.replace(_,"$1")+e:"/"===e.charAt(0)?i?e:t.replace(b,"$1")+e:t+e}(e,i));try{i=encodeURI(i).replace(/%25/g,"%")}catch(s){return null}return i},j=v,W=function(){function t(t){this.options=t||G}var e=t.prototype;return e.code=function(t,e,i){var n=(e||"").match(/\S*/)[0];if(this.options.highlight){var s=this.options.highlight(t,n);null!=s&&s!==t&&(i=!0,t=s)}return t=t.replace(/\n$/,"")+"\n",n?'
    '+(i?t:j(t,!0))+"
    \n":"
    "+(i?t:j(t,!0))+"
    \n"},e.blockquote=function(t){return"
    \n"+t+"
    \n"},e.html=function(t){return t},e.heading=function(t,e,i,n){return this.options.headerIds?"'+t+"\n":""+t+"\n"},e.hr=function(){return this.options.xhtml?"
    \n":"
    \n"},e.list=function(t,e,i){var n=e?"ol":"ul";return"<"+n+(e&&1!==i?' start="'+i+'"':"")+">\n"+t+"\n"},e.listitem=function(t){return"
  • "+t+"
  • \n"},e.checkbox=function(t){return" "},e.paragraph=function(t){return"

    "+t+"

    \n"},e.table=function(t,e){return e&&(e=""+e+""),"\n\n"+t+"\n"+e+"
    \n"},e.tablerow=function(t){return"\n"+t+"\n"},e.tablecell=function(t,e){var i=e.header?"th":"td";return(e.align?"<"+i+' align="'+e.align+'">':"<"+i+">")+t+"\n"},e.strong=function(t){return""+t+""},e.em=function(t){return""+t+""},e.codespan=function(t){return""+t+""},e.br=function(){return this.options.xhtml?"
    ":"
    "},e.del=function(t){return""+t+""},e.link=function(t,e,i){if(null===(t=U(this.options.sanitize,this.options.baseUrl,t)))return i;var n='"+i+""},e.image=function(t,e,i){if(null===(t=U(this.options.sanitize,this.options.baseUrl,t)))return i;var n=''+i+'":">")},e.text=function(t){return t},t}(),$=function(){function t(){}var e=t.prototype;return e.strong=function(t){return t},e.em=function(t){return t},e.codespan=function(t){return t},e.del=function(t){return t},e.html=function(t){return t},e.text=function(t){return t},e.link=function(t,e,i){return""+i},e.image=function(t,e,i){return""+i},e.br=function(){return""},t}(),q=function(){function t(){this.seen={}}var e=t.prototype;return e.serialize=function(t){return t.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},e.getNextSafeSlug=function(t,e){var i=t,n=0;if(this.seen.hasOwnProperty(i)){n=this.seen[t];do{i=t+"-"+ ++n}while(this.seen.hasOwnProperty(i))}return e||(this.seen[t]=n,this.seen[i]=0),i},e.slug=function(t,e){void 0===e&&(e={});var i=this.serialize(t);return this.getNextSafeSlug(i,e.dryrun)},t}(),Y=n.defaults,Q=w,X=function(){function t(t){this.options=t||Y,this.options.renderer=this.options.renderer||new W,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new $,this.slugger=new q}t.parse=function(e,i){return new t(i).parse(e)},t.parseInline=function(e,i){return new t(i).parseInline(e)};var e=t.prototype;return e.parse=function(t,e){void 0===e&&(e=!0);var i,n,s,r,o,a,l,c,u,d,h,p,m,f,g,_,b,y,v="",w=t.length;for(i=0;i0&&"text"===g.tokens[0].type?(g.tokens[0].text=y+" "+g.tokens[0].text,g.tokens[0].tokens&&g.tokens[0].tokens.length>0&&"text"===g.tokens[0].tokens[0].type&&(g.tokens[0].tokens[0].text=y+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:y}):f+=y),f+=this.parse(g.tokens,m),u+=this.renderer.listitem(f,b,_);v+=this.renderer.list(u,h,p);continue;case"html":v+=this.renderer.html(d.text);continue;case"paragraph":v+=this.renderer.paragraph(this.parseInline(d.tokens));continue;case"text":for(u=d.tokens?this.parseInline(d.tokens):d.text;i+1An error occurred:

    "+J(l.message+"",!0)+"
    ";throw l}}return nt.options=nt.setOptions=function(t){return K(nt.defaults,t),et(nt.defaults),nt},nt.getDefaults=tt,nt.defaults=it,nt.use=function(t){var e=K({},t);if(t.renderer&&function(){var i=nt.defaults.renderer||new W,n=function(e){var n=i[e];i[e]=function(){for(var s=arguments.length,r=new Array(s),o=0;oAn error occurred:

    "+J(n.message+"",!0)+"
    ";throw n}},nt.Parser=X,nt.parser=X.parse,nt.Renderer=W,nt.TextRenderer=$,nt.Lexer=z,nt.lexer=z.lex,nt.Tokenizer=E,nt.Slugger=q,nt.parse=nt,nt}()},Fqnj:function(t,e,i){"use strict";function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);iMath.PI&&(i=i>0?-1*(2*Math.PI-i):2*Math.PI+i),((0,o.default)(Math.atan2(i,a))+360)%360}},Nrgg:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,s=(n=i("wI44"))&&n.__esModule?n:{default:n};e.default=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default,n=i(t,e),r=Number(e.time)-Number(t.time),o=n/r*1e3;return o}},OTo6:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,s=(n=i("JKJh"))&&n.__esModule?n:{default:n};e.default=function(t){var e=(0,s.default)(t),i=e.minLng+(e.maxLng-e.minLng)/2;return{latitude:parseFloat((e.minLat+(e.maxLat-e.minLat)/2).toFixed(6)),longitude:parseFloat(i.toFixed(6))}}},"QTq/":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i("jH9d"),s=o(i("M7lk")),r=o(i("KcL1"));function o(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e){var i=(0,s.default)(t,n.longitudeKeys);if(null!=i){var o=t[i];return!0===e?o:(0,r.default)(o)}}},"SJ/V":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,s=(n=i("wI44"))&&n.__esModule?n:{default:n};e.default=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default;return i="function"==typeof i?i:s.default,e.slice().sort(function(e,n){return i(t,e)-i(t,n)})}},ZPc1:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,s=(n=i("SJ/V"))&&n.__esModule?n:{default:n};e.default=function(t,e){return(0,s.default)(t,e)[0]}},Zdlu:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(t){var e=t.toString().trim();return!isNaN(parseFloat(e))&&parseFloat(e)===Number(e)}},"c+JA":function(t,e){function i(t,e,n){this.extend(i,google.maps.OverlayView),this.map_=t,this.markers_=[],this.clusters_=[],this.sizes=[53,56,66,78,90],this.styles_=[],this.ready_=!1;var s=n||{};this.gridSize_=s.gridSize||60,this.minClusterSize_=s.minimumClusterSize||2,this.maxZoom_=s.maxZoom||null,this.styles_=s.styles||[],this.imagePath_=s.imagePath||this.MARKER_CLUSTER_IMAGE_PATH_,this.imageExtension_=s.imageExtension||this.MARKER_CLUSTER_IMAGE_EXTENSION_,this.zoomOnClick_=!0,null!=s.zoomOnClick&&(this.zoomOnClick_=s.zoomOnClick),this.averageCenter_=!1,null!=s.averageCenter&&(this.averageCenter_=s.averageCenter),this.setupStyles_(),this.setMap(t),this.prevZoom_=this.map_.getZoom();var r=this;google.maps.event.addListener(this.map_,"zoom_changed",function(){var t=r.map_.getZoom();r.prevZoom_!=t&&(r.prevZoom_=t,r.resetViewport())}),google.maps.event.addListener(this.map_,"idle",function(){r.redraw()}),e&&e.length&&this.addMarkers(e,!1)}function n(t){this.markerClusterer_=t,this.map_=t.getMap(),this.gridSize_=t.getGridSize(),this.minClusterSize_=t.getMinClusterSize(),this.averageCenter_=t.isAverageCenter(),this.center_=null,this.markers_=[],this.bounds_=null,this.clusterIcon_=new s(this,t.getStyles(),t.getGridSize())}function s(t,e,i){t.getMarkerClusterer().extend(s,google.maps.OverlayView),this.styles_=e,this.padding_=i||0,this.cluster_=t,this.center_=null,this.map_=t.getMap(),this.div_=null,this.sums_=null,this.visible_=!1,this.setMap(this.map_)}i.prototype.MARKER_CLUSTER_IMAGE_PATH_="http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/images/m",i.prototype.MARKER_CLUSTER_IMAGE_EXTENSION_="png",i.prototype.extend=function(t,e){return(function(t){for(var e in t.prototype)this.prototype[e]=t.prototype[e];return this}).apply(t,[e])},i.prototype.onAdd=function(){this.setReady_(!0)},i.prototype.draw=function(){},i.prototype.setupStyles_=function(){if(!this.styles_.length)for(var t,e=0;t=this.sizes[e];e++)this.styles_.push({url:this.imagePath_+(e+1)+"."+this.imageExtension_,height:t,width:t})},i.prototype.fitMapToMarkers=function(){for(var t,e=this.getMarkers(),i=new google.maps.LatLngBounds,n=0;t=e[n];n++)i.extend(t.getPosition());this.map_.fitBounds(i)},i.prototype.setStyles=function(t){this.styles_=t},i.prototype.getStyles=function(){return this.styles_},i.prototype.isZoomOnClick=function(){return this.zoomOnClick_},i.prototype.isAverageCenter=function(){return this.averageCenter_},i.prototype.getMarkers=function(){return this.markers_},i.prototype.getTotalMarkers=function(){return this.markers_.length},i.prototype.setMaxZoom=function(t){this.maxZoom_=t},i.prototype.getMaxZoom=function(){return this.maxZoom_},i.prototype.calculator_=function(t,e){for(var i=0,n=t.length,s=n;0!==s;)s=parseInt(s/10,10),i++;return{text:n,index:i=Math.min(i,e)}},i.prototype.setCalculator=function(t){this.calculator_=t},i.prototype.getCalculator=function(){return this.calculator_},i.prototype.addMarkers=function(t,e){for(var i,n=0;i=t[n];n++)this.pushMarkerTo_(i);e||this.redraw()},i.prototype.pushMarkerTo_=function(t){if(t.isAdded=!1,t.draggable){var e=this;google.maps.event.addListener(t,"dragend",function(){t.isAdded=!1,e.repaint()})}this.markers_.push(t)},i.prototype.addMarker=function(t,e){this.pushMarkerTo_(t),e||this.redraw()},i.prototype.removeMarker_=function(t){var e=-1;if(this.markers_.indexOf)e=this.markers_.indexOf(t);else for(var i,n=0;i=this.markers_[n];n++)if(i==t){e=n;break}return-1!=e&&(t.setMap(null),this.markers_.splice(e,1),!0)},i.prototype.removeMarker=function(t,e){var i=this.removeMarker_(t);return!(e||!i||(this.resetViewport(),this.redraw(),0))},i.prototype.removeMarkers=function(t,e){for(var i,n=!1,s=0;i=t[s];s++){var r=this.removeMarker_(i);n=n||r}if(!e&&n)return this.resetViewport(),this.redraw(),!0},i.prototype.setReady_=function(t){this.ready_||(this.ready_=t,this.createClusters_())},i.prototype.getTotalClusters=function(){return this.clusters_.length},i.prototype.getMap=function(){return this.map_},i.prototype.setMap=function(t){this.map_=t},i.prototype.getGridSize=function(){return this.gridSize_},i.prototype.setGridSize=function(t){this.gridSize_=t},i.prototype.getMinClusterSize=function(){return this.minClusterSize_},i.prototype.setMinClusterSize=function(t){this.minClusterSize_=t},i.prototype.getExtendedBounds=function(t){var e=this.getProjection(),i=new google.maps.LatLng(t.getNorthEast().lat(),t.getNorthEast().lng()),n=new google.maps.LatLng(t.getSouthWest().lat(),t.getSouthWest().lng()),s=e.fromLatLngToDivPixel(i);s.x+=this.gridSize_,s.y-=this.gridSize_;var r=e.fromLatLngToDivPixel(n);r.x-=this.gridSize_,r.y+=this.gridSize_;var o=e.fromDivPixelToLatLng(s),a=e.fromDivPixelToLatLng(r);return t.extend(o),t.extend(a),t},i.prototype.isMarkerInBounds_=function(t,e){return e.contains(t.getPosition())},i.prototype.clearMarkers=function(){this.resetViewport(!0),this.markers_=[]},i.prototype.resetViewport=function(t){for(var e,i=0;e=this.clusters_[i];i++)e.remove();var n;for(i=0;n=this.markers_[i];i++)n.isAdded=!1,t&&n.setMap(null);this.clusters_=[]},i.prototype.repaint=function(){var t=this.clusters_.slice();this.clusters_.length=0,this.resetViewport(),this.redraw(),window.setTimeout(function(){for(var e,i=0;e=t[i];i++)e.remove()},0)},i.prototype.redraw=function(){this.createClusters_()},i.prototype.distanceBetweenPoints_=function(t,e){if(!t||!e)return 0;var i=(e.lat()-t.lat())*Math.PI/180,n=(e.lng()-t.lng())*Math.PI/180,s=Math.sin(i/2)*Math.sin(i/2)+Math.cos(t.lat()*Math.PI/180)*Math.cos(e.lat()*Math.PI/180)*Math.sin(n/2)*Math.sin(n/2);return 2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s))*6371},i.prototype.addToClosestCluster_=function(t){for(var e,i=4e4,s=null,r=(t.getPosition(),0);e=this.clusters_[r];r++){var o=e.getCenter();if(o){var a=this.distanceBetweenPoints_(o,t.getPosition());a=this.minClusterSize_&&t.setMap(null),this.updateIcon(),!0},n.prototype.getMarkerClusterer=function(){return this.markerClusterer_},n.prototype.getBounds=function(){for(var t,e=new google.maps.LatLngBounds(this.center_,this.center_),i=this.getMarkers(),n=0;t=i[n];n++)e.extend(t.getPosition());return e},n.prototype.remove=function(){this.clusterIcon_.remove(),this.markers_.length=0,delete this.markers_},n.prototype.getSize=function(){return this.markers_.length},n.prototype.getMarkers=function(){return this.markers_},n.prototype.getCenter=function(){return this.center_},n.prototype.calculateBounds_=function(){var t=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(t)},n.prototype.isMarkerInClusterBounds=function(t){return this.bounds_.contains(t.getPosition())},n.prototype.getMap=function(){return this.map_},n.prototype.updateIcon=function(){var t=this.map_.getZoom(),e=this.markerClusterer_.getMaxZoom();if(e&&t>e)for(var i,n=0;i=this.markers_[n];n++)i.setMap(this.map_);else if(this.markers_.length0&&this.anchor_[0]0&&this.anchor_[1]1&&void 0!==arguments[1]?arguments[1]:{longitude:s.longitudeKeys,latitude:s.latitudeKeys,altitude:s.altitudeKeys},i=(0,r.default)(t,e.longitude),n=(0,r.default)(t,e.latitude),o=(0,r.default)(t,e.altitude);return a({latitude:n,longitude:i},o?{altitude:o}:{})}},fCuW:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,s=(n=i("wI44"))&&n.__esModule?n:{default:n};e.default=function(t,e,i){return(0,s.default)(e,t)+(0,s.default)(t,i)===(0,s.default)(e,i)}},fxgB:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=l(i("2o5z")),s=l(i("QTq/")),r=l(i("jDUc")),o=l(i("6D9Q")),a=i("jH9d");function l(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e){var i,l,c=(0,n.default)(t),u=(0,s.default)(t),d=(0,r.default)(c),h=(0,r.default)(u),p=e/a.earthRadius,m=d-p,f=d+p,g=(0,r.default)(a.MAXLAT),_=(0,r.default)(a.MINLAT),b=(0,r.default)(a.MAXLON),y=(0,r.default)(a.MINLON);if(m>_&&fb&&(l-=2*Math.PI)}else m=Math.max(m,_),f=Math.min(f,g),i=y,l=b;return[{latitude:(0,o.default)(m),longitude:(0,o.default)(i)},{latitude:(0,o.default)(f),longitude:(0,o.default)(l)}]}},i8yS:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(i("2o5z")),s=a(i("QTq/")),r=a(i("jDUc")),o=a(i("6D9Q"));function a(t){return t&&t.__esModule?t:{default:t}}e.default=function(t){if(!1===Array.isArray(t)||0===t.length)return!1;var e=t.length,i=t.reduce(function(t,e){var i=(0,r.default)((0,n.default)(e)),o=(0,r.default)((0,s.default)(e));return{X:t.X+Math.cos(i)*Math.cos(o),Y:t.Y+Math.cos(i)*Math.sin(o),Z:t.Z+Math.sin(i)}},{X:0,Y:0,Z:0}),a=i.X/e,l=i.Y/e,c=i.Z/e;return{longitude:(0,o.default)(Math.atan2(l,a)),latitude:(0,o.default)(Math.atan2(c,Math.sqrt(a*a+l*l)))}}},jDUc:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(t){return t*Math.PI/180}},jH9d:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.areaConversion=e.timeConversion=e.distanceConversion=e.altitudeKeys=e.latitudeKeys=e.longitudeKeys=e.MAXLON=e.MINLON=e.MAXLAT=e.MINLAT=e.earthRadius=e.sexagesimalPattern=void 0,e.sexagesimalPattern=/^([0-9]{1,3})\xb0\s*([0-9]{1,3}(?:\.(?:[0-9]{1,}))?)['\u2032]\s*(([0-9]{1,3}(\.([0-9]{1,}))?)["\u2033]\s*)?([NEOSW]?)$/,e.earthRadius=6378137,e.MINLAT=-90,e.MAXLAT=90,e.MINLON=-180,e.MAXLON=180,e.longitudeKeys=["lng","lon","longitude",0],e.latitudeKeys=["lat","latitude",1],e.altitudeKeys=["alt","altitude","elevation","elev",2],e.distanceConversion={m:1,km:.001,cm:100,mm:1e3,mi:1/1609.344,sm:1/1852.216,ft:100/30.48,in:100/2.54,yd:1/.9144},e.timeConversion={m:60,h:3600,d:86400};var n={m2:1,km2:1e-6,ha:1e-4,a:.01,ft2:10.763911,yd2:1.19599,in2:1550.0031};e.areaConversion=n,n.sqm=n.m2,n.sqkm=n.km2,n.sqft=n.ft2,n.sqyd=n.yd2,n.sqin=n.in2},jIQF:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={computeDestinationPoint:!0,convertArea:!0,convertDistance:!0,convertSpeed:!0,decimalToSexagesimal:!0,findNearest:!0,getAreaOfPolygon:!0,getBounds:!0,getBoundsOfDistance:!0,getCenter:!0,getCenterOfBounds:!0,getCompassDirection:!0,getCoordinateKey:!0,getCoordinateKeys:!0,getDistance:!0,getDistanceFromLine:!0,getGreatCircleBearing:!0,getLatitude:!0,getLongitude:!0,getPathLength:!0,getPreciseDistance:!0,getRhumbLineBearing:!0,getRoughCompassDirection:!0,getSpeed:!0,isDecimal:!0,isPointInLine:!0,isPointInPolygon:!0,isPointNearLine:!0,isPointWithinRadius:!0,isSexagesimal:!0,isValidCoordinate:!0,isValidLatitude:!0,isValidLongitude:!0,orderByDistance:!0,sexagesimalToDecimal:!0,toDecimal:!0,toRad:!0,toDeg:!0,wktToPolygon:!0};Object.defineProperty(e,"computeDestinationPoint",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"convertArea",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"convertDistance",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"convertSpeed",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"decimalToSexagesimal",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"findNearest",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"getAreaOfPolygon",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"getBounds",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"getBoundsOfDistance",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"getCenter",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"getCenterOfBounds",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"getCompassDirection",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"getCoordinateKey",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"getCoordinateKeys",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(e,"getDistance",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"getDistanceFromLine",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"getGreatCircleBearing",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"getLatitude",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(e,"getLongitude",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(e,"getPathLength",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"getPreciseDistance",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(e,"getRhumbLineBearing",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(e,"getRoughCompassDirection",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(e,"getSpeed",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(e,"isDecimal",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(e,"isPointInLine",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(e,"isPointInPolygon",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(e,"isPointNearLine",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(e,"isPointWithinRadius",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(e,"isSexagesimal",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(e,"isValidCoordinate",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(e,"isValidLatitude",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(e,"isValidLongitude",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(e,"orderByDistance",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(e,"sexagesimalToDecimal",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(e,"toDecimal",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(e,"toRad",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(e,"toDeg",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(e,"wktToPolygon",{enumerable:!0,get:function(){return G.default}});var s=j(i("95co")),r=j(i("5kFF")),o=j(i("3Q5m")),a=j(i("9Og4")),l=j(i("Fqnj")),c=j(i("ZPc1")),u=j(i("t3RW")),d=j(i("JKJh")),h=j(i("fxgB")),p=j(i("i8yS")),m=j(i("OTo6")),f=j(i("mpC8")),g=j(i("M7lk")),_=j(i("eRSq")),b=j(i("wI44")),y=j(i("45h8")),v=j(i("+eSx")),w=j(i("2o5z")),C=j(i("QTq/")),x=j(i("m5sM")),S=j(i("mbFH")),k=j(i("NBE3")),A=j(i("z+Es")),O=j(i("Nrgg")),E=j(i("Zdlu")),T=j(i("fCuW")),P=j(i("HkEB")),D=j(i("G31G")),M=j(i("5vw/")),I=j(i("dkTa")),R=j(i("vONA")),L=j(i("sCiF")),F=j(i("mSAH")),N=j(i("SJ/V")),V=j(i("rT3r")),B=j(i("KcL1")),H=j(i("jDUc")),z=j(i("6D9Q")),G=j(i("5hfJ")),U=i("jH9d");function j(t){return t&&t.__esModule?t:{default:t}}Object.keys(U).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(n,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return U[t]}}))})},m5sM:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,s=(n=i("wI44"))&&n.__esModule?n:{default:n};function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default;return t.reduce(function(t,i){return"object"===r(t)&&null!==t.last&&(t.distance+=e(i,t.last)),t.last=i,t},{last:null,distance:0}).distance}},mSAH:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(i("Zdlu")),s=a(i("dkTa")),r=a(i("rT3r")),o=i("jH9d");function a(t){return t&&t.__esModule?t:{default:t}}e.default=function t(e){return(0,n.default)(e)?!(parseFloat(e)>o.MAXLON||e2&&void 0!==arguments[2]?arguments[2]:1;i=void 0===i||isNaN(i)?1:i;var a,l,c,u,d,h,p,m=(0,n.default)(t),f=(0,s.default)(t),g=(0,n.default)(e),_=(0,s.default)(e),b=6356752.314245,y=1/298.257223563,v=(0,r.default)(_-f),w=Math.atan((1-y)*Math.tan((0,r.default)(parseFloat(m)))),C=Math.atan((1-y)*Math.tan((0,r.default)(parseFloat(g)))),x=Math.sin(w),S=Math.cos(w),k=Math.sin(C),A=Math.cos(C),O=v,E=100;do{var T=Math.sin(O),P=Math.cos(O);if(0===(h=Math.sqrt(A*T*(A*T)+(S*k-x*A*P)*(S*k-x*A*P))))return 0;a=x*k+S*A*P,l=Math.atan2(h,a),d=a-2*x*k/(u=1-(c=S*A*T/h)*c),isNaN(d)&&(d=0);var D=y/16*u*(4+y*(4-3*u));p=O,O=v+(1-D)*y*c*(l+D*h*(d+D*a*(2*d*d-1)))}while(Math.abs(O-p)>1e-12&&--E>0);if(0===E)return NaN;var M=u*(o.earthRadius*o.earthRadius-b*b)/(b*b),I=1+M/16384*(4096+M*(M*(320-175*M)-768)),R=M/1024*(256+M*(M*(74-47*M)-128)),L=R*h*(d+R/4*(a*(2*d*d-1)-R/6*d*(4*h*h-3)*(4*d*d-3))),F=b*I*(l-L);return Math.round(F/i)*i}},"me/f":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(t){return t>1?1:t<-1?-1:t}},mpC8:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,s=(n=i("NBE3"))&&n.__esModule?n:{default:n};e.default=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default,n="function"==typeof i?i(t,e):(0,s.default)(t,e);if(isNaN(n))throw new Error("Could not calculate bearing for given points. Check your bearing function");switch(Math.round(n/22.5)){case 1:return"NNE";case 2:return"NE";case 3:return"ENE";case 4:return"E";case 5:return"ESE";case 6:return"SE";case 7:return"SSE";case 8:return"S";case 9:return"SSW";case 10:return"SW";case 11:return"WSW";case 12:return"W";case 13:return"WNW";case 14:return"NW";case 15:return"NNW";default:return"N"}}},rT3r:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i("jH9d");e.default=function(t){var e=new RegExp(n.sexagesimalPattern).exec(t);if(null==e)throw new Error("Given value is not in sexagesimal format");var i=Number(e[2])/60||0,s=Number(e[4])/3600||0,r=parseFloat(e[1])+i+s;return["S","W"].includes(e[7])?-r:r}},sCiF:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(i("Zdlu")),s=a(i("dkTa")),r=a(i("rT3r")),o=i("jH9d");function a(t){return t&&t.__esModule?t:{default:t}}e.default=function t(e){return(0,n.default)(e)?!(parseFloat(e)>o.MAXLAT||e2){for(var i,a,l,c=0;c=2)return(0,r.default)(t[0])&&(0,s.default)(t[1]);if(void 0===i||void 0===o)return!1;var a=t[o],l=t[i];return void 0!==l&&void 0!==a&&!1!==(0,s.default)(l)&&!1!==(0,r.default)(a)}},wI44:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=l(i("2o5z")),s=l(i("QTq/")),r=l(i("jDUc")),o=l(i("me/f")),a=i("jH9d");function l(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;i=void 0===i||isNaN(i)?1:i;var l=(0,n.default)(t),c=(0,s.default)(t),u=(0,n.default)(e),d=(0,s.default)(e),h=Math.acos((0,o.default)(Math.sin((0,r.default)(u))*Math.sin((0,r.default)(l))+Math.cos((0,r.default)(u))*Math.cos((0,r.default)(l))*Math.cos((0,r.default)(c)-(0,r.default)(d))))*a.earthRadius;return Math.round(h/i)*i}},"z+Es":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(t){return/^NNE|NE|NNW|N$/.test(t)?"N":/^ENE|E|ESE|SE$/.test(t)?"E":/^SSE|S|SSW|SW$/.test(t)?"S":/^WSW|W|WNW|NW$/.test(t)?"W":void 0}},zUnb:function(t,e,i){"use strict";function n(t){return"function"==typeof t}i.r(e);let s=!1;const r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=t},get useDeprecatedSynchronousErrorHandling(){return s}};function o(t){setTimeout(()=>{throw t},0)}const a={closed:!0,next(t){},error(t){if(r.useDeprecatedSynchronousErrorHandling)throw t;o(t)},complete(){}},l=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))();function c(t){return null!==t&&"object"==typeof t}const u=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let d=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:i,_ctorUnsubscribe:s,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,i instanceof t)i.remove(this);else if(null!==i)for(let t=0;tt.concat(e instanceof u?e.errors:e),[])}const p=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class m extends d{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!t){this.destination=a;break}if("object"==typeof t){t instanceof m?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new f(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new f(this,t,e,i)}}[p](){return this}static create(t,e,i){const n=new m(t,e,i);return n.syncErrorThrowable=!1,n}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class f extends m{constructor(t,e,i,s){let r;super(),this._parentSubscriber=t;let o=this;n(e)?r=e:e&&(r=e.next,i=e.error,s=e.complete,e!==a&&(o=Object.create(e),n(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=i,this._complete=s}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;r.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=r;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):o(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;o(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);r.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(i){if(this.unsubscribe(),r.useDeprecatedSynchronousErrorHandling)throw i;o(i)}}__tryOrSetError(t,e,i){if(!r.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(n){return r.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=n,t.syncErrorThrown=!0,!0):(o(n),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const g=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function _(t){return t}function b(...t){return y(t)}function y(t){return 0===t.length?_:1===t.length?t[0]:function(e){return t.reduce((t,e)=>e(t),e)}}let v=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(t,e,i){const{operator:n}=this,s=function(t,e,i){if(t){if(t instanceof m)return t;if(t[p])return t[p]()}return t||e||i?new m(t,e,i):new m(a)}(t,e,i);if(s.add(n?n.call(s,this.source):this.source||r.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),r.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(t){try{return this._subscribe(t)}catch(e){r.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:i,isStopped:n}=t;if(e||n)return!1;t=i&&i instanceof m?i:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=w(e))((e,i)=>{let n;n=this.subscribe(e=>{try{t(e)}catch(s){i(s),n&&n.unsubscribe()}},i,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[g](){return this}pipe(...t){return 0===t.length?this:y(t)(this)}toPromise(t){return new(t=w(t))((t,e)=>{let i;this.subscribe(t=>i=t,t=>e(t),()=>t(i))})}}return t.create=e=>new t(e),t})();function w(t){if(t||(t=r.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const C=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class x extends d{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class S extends m{constructor(t){super(t),this.destination=t}}let k=(()=>{class t extends v{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new S(this)}lift(t){const e=new A(this,this);return e.operator=t,e}next(t){if(this.closed)throw new C;if(!this.isStopped){const{observers:e}=this,i=e.length,n=e.slice();for(let s=0;snew A(t,e),t})();class A extends k{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):d.EMPTY}}function O(t){return t&&"function"==typeof t.schedule}function E(t,e){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new T(t,e))}}class T{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new P(t,this.project,this.thisArg))}}class P extends m{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const D=t=>e=>{for(let i=0,n=t.length;it&&"number"==typeof t.length&&"function"!=typeof t;function L(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const F=t=>{if(t&&"function"==typeof t[g])return n=t,t=>{const e=n[g]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(R(t))return D(t);if(L(t))return i=t,t=>(i.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o),t);if(t&&"function"==typeof t[I])return e=t,t=>{const i=e[I]();for(;;){let e;try{e=i.next()}catch(n){return t.error(n),t}if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof i.return&&t.add(()=>{i.return&&i.return()}),t};{const e=c(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,i,n};function N(t,e){return new v(i=>{const n=new d;let s=0;return n.add(e.schedule(function(){s!==t.length?(i.next(t[s++]),i.closed||n.add(this.schedule())):i.complete()})),n})}function V(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[g]}(t))return function(t,e){return new v(i=>{const n=new d;return n.add(e.schedule(()=>{const s=t[g]();n.add(s.subscribe({next(t){n.add(e.schedule(()=>i.next(t)))},error(t){n.add(e.schedule(()=>i.error(t)))},complete(){n.add(e.schedule(()=>i.complete()))}}))})),n})}(t,e);if(L(t))return function(t,e){return new v(i=>{const n=new d;return n.add(e.schedule(()=>t.then(t=>{n.add(e.schedule(()=>{i.next(t),n.add(e.schedule(()=>i.complete()))}))},t=>{n.add(e.schedule(()=>i.error(t)))}))),n})}(t,e);if(R(t))return N(t,e);if(function(t){return t&&"function"==typeof t[I]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new v(i=>{const n=new d;let s;return n.add(()=>{s&&"function"==typeof s.return&&s.return()}),n.add(e.schedule(()=>{s=t[I](),n.add(e.schedule(function(){if(i.closed)return;let t,e;try{const i=s.next();t=i.value,e=i.done}catch(n){return void i.error(n)}e?i.complete():(i.next(t),this.schedule())}))})),n})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof v?t:new v(F(t))}class B extends m{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class H extends m{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function z(t,e){if(e.closed)return;if(t instanceof v)return t.subscribe(e);let i;try{i=F(t)(e)}catch(n){e.error(n)}return i}function G(t,e,i=Number.POSITIVE_INFINITY){return"function"==typeof e?n=>n.pipe(G((i,n)=>V(t(i,n)).pipe(E((t,s)=>e(i,t,n,s))),i)):("number"==typeof e&&(i=e),e=>e.lift(new U(t,i)))}class U{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new j(t,this.project,this.concurrent))}}class j extends H{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}const W=G;function $(t=Number.POSITIVE_INFINITY){return G(_,t)}function q(t,e){return e?N(t,e):new v(D(t))}function Y(...t){let e=Number.POSITIVE_INFINITY,i=null,n=t[t.length-1];return O(n)?(i=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof n&&(e=t.pop()),null===i&&1===t.length&&t[0]instanceof v?t[0]:$(e)(q(t,i))}function Q(){return function(t){return t.lift(new X(t))}}class X{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const n=new K(t,i),s=e.subscribe(n);return n.closed||(n.connection=i.connect()),s}}class K extends m{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,n=t._connection;this.connection=null,!n||i&&n!==i||n.unsubscribe()}}class Z extends v{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new d,t.add(this.source.subscribe(new tt(this.getSubject(),this))),t.closed&&(this._connection=null,t=d.EMPTY)),t}refCount(){return Q()(this)}}const J=(()=>{const t=Z.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class tt extends S{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function et(t,e){return function(i){let n;if(n="function"==typeof t?t:function(){return t},"function"==typeof e)return i.lift(new it(n,e));const s=Object.create(i,J);return s.source=i,s.subjectFactory=n,s}}class it{constructor(t,e){this.subjectFactory=t,this.selector=e}call(t,e){const{selector:i}=this,n=this.subjectFactory(),s=i(n).subscribe(t);return s.add(e.subscribe(n)),s}}function nt(){return new k}function st(){return t=>Q()(et(nt)(t))}function rt(t){for(let e in t)if(t[e]===rt)return e;throw Error("Could not find renamed property on target object.")}function ot(t,e){for(const i in e)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}function at(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(at).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const i=e.indexOf("\n");return-1===i?e:e.substring(0,i)}function lt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const ct=rt({__forward_ref__:rt});function ut(t){return t.__forward_ref__=ut,t.toString=function(){return at(this())},t}function dt(t){return ht(t)?t():t}function ht(t){return"function"==typeof t&&t.hasOwnProperty(ct)&&t.__forward_ref__===ut}class pt extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function mt(t){return"string"==typeof t?t:null==t?"":String(t)}function ft(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():mt(t)}function gt(t,e){const i=e?` in ${e}`:"";throw new pt("201",`No provider for ${ft(t)} found${i}`)}function _t(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}const bt=_t;function yt(t){return{providers:t.providers||[],imports:t.imports||[]}}function vt(t){return wt(t,xt)||wt(t,kt)}function wt(t,e){return t.hasOwnProperty(e)?t[e]:null}function Ct(t){return t&&(t.hasOwnProperty(St)||t.hasOwnProperty(At))?t[St]:null}const xt=rt({"\u0275prov":rt}),St=rt({"\u0275inj":rt}),kt=rt({ngInjectableDef:rt}),At=rt({ngInjectorDef:rt});var Ot=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});let Et;function Tt(t){const e=Et;return Et=t,e}function Pt(t,e,i){const n=vt(t);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:i&Ot.Optional?null:void 0!==e?e:void gt(at(t),"Injector")}function Dt(t){return{toString:t}.toString()}var Mt=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),It=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const Rt="undefined"!=typeof globalThis&&globalThis,Lt="undefined"!=typeof window&&window,Ft="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Nt="undefined"!=typeof global&&global,Vt=Rt||Nt||Lt||Ft,Bt={},Ht=[],zt=[],Gt=rt({"\u0275cmp":rt}),Ut=rt({"\u0275dir":rt}),jt=rt({"\u0275pipe":rt}),Wt=rt({"\u0275mod":rt}),$t=rt({"\u0275loc":rt}),qt=rt({"\u0275fac":rt}),Yt=rt({__NG_ELEMENT_ID__:rt});let Qt=0;function Xt(t){return Dt(()=>{const e={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===Mt.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||zt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||It.Emulated,id:"c",styles:t.styles||zt,_:null,setInput:null,schemas:t.schemas||null,tView:null},n=t.directives,s=t.features,r=t.pipes;return i.id+=Qt++,i.inputs=ee(t.inputs,e),i.outputs=ee(t.outputs),s&&s.forEach(t=>t(i)),i.directiveDefs=n?()=>("function"==typeof n?n():n).map(Kt):null,i.pipeDefs=r?()=>("function"==typeof r?r():r).map(Zt):null,i})}function Kt(t){return se(t)||function(t){return t[Ut]||null}(t)}function Zt(t){return function(t){return t[jt]||null}(t)}const Jt={};function te(t){const e={type:t.type,bootstrap:t.bootstrap||zt,declarations:t.declarations||zt,imports:t.imports||zt,exports:t.exports||zt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&Dt(()=>{Jt[t.id]=t.type}),e}function ee(t,e){if(null==t)return Bt;const i={};for(const n in t)if(t.hasOwnProperty(n)){let s=t[n],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),i[s]=n,e&&(e[s]=r)}return i}const ie=Xt;function ne(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function se(t){return t[Gt]||null}function re(t,e){const i=t[Wt]||null;if(!i&&!0===e)throw new Error(`Type ${at(t)} does not have '\u0275mod' property.`);return i}function oe(t){return Array.isArray(t)&&"object"==typeof t[1]}function ae(t){return Array.isArray(t)&&!0===t[1]}function le(t){return 0!=(8&t.flags)}function ce(t){return 2==(2&t.flags)}function ue(t){return 1==(1&t.flags)}function de(t){return null!==t.template}function he(t,e){return t.hasOwnProperty(qt)?t[qt]:null}class pe{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function me(){return fe}function fe(t){return t.type.prototype.ngOnChanges&&(t.setInput=_e),ge}function ge(){const t=be(this),e=null==t?void 0:t.current;if(e){const i=t.previous;if(i===Bt)t.previous=e;else for(let t in e)i[t]=e[t];t.current=null,this.ngOnChanges(e)}}function _e(t,e,i,n){const s=be(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:Bt,current:null}),r=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[i],l=o[a];r[a]=new pe(l&&l.currentValue,e,o===Bt),t[n]=e}function be(t){return t.__ngSimpleChanges__||null}let ye;function ve(){return void 0!==ye?ye:"undefined"!=typeof document?document:void 0}function we(t){return!!t.listen}me.ngInherit=!0;const Ce={createRenderer:(t,e)=>ve()};function xe(t){for(;Array.isArray(t);)t=t[0];return t}function Se(t,e){return xe(e[t])}function ke(t,e){return xe(e[t.index])}function Ae(t,e){return t.data[e]}function Oe(t,e){return t[e]}function Ee(t,e){const i=e[t];return oe(i)?i:i[0]}function Te(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Pe(t){return 4==(4&t[2])}function De(t){return 128==(128&t[2])}function Me(t,e){return null==e?null:t[e]}function Ie(t){t[18]=0}function Re(t,e){t[5]+=e;let i=t,n=t[3];for(;null!==n&&(1===e&&1===i[5]||-1===e&&0===i[5]);)n[5]+=e,i=n,n=n[3]}const Le={lFrame:oi(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Fe(){return Le.bindingsEnabled}function Ne(){return Le.lFrame.lView}function Ve(){return Le.lFrame.tView}function Be(t){Le.lFrame.contextLView=t}function He(){let t=ze();for(;null!==t&&64===t.type;)t=t.parent;return t}function ze(){return Le.lFrame.currentTNode}function Ge(t,e){const i=Le.lFrame;i.currentTNode=t,i.isParent=e}function Ue(){return Le.lFrame.isParent}function je(){Le.lFrame.isParent=!1}function We(){return Le.isInCheckNoChangesMode}function $e(t){Le.isInCheckNoChangesMode=t}function qe(){const t=Le.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Ye(){return Le.lFrame.bindingIndex}function Qe(){return Le.lFrame.bindingIndex++}function Xe(t){const e=Le.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function Ke(t,e){const i=Le.lFrame;i.bindingIndex=i.bindingRootIndex=t,Ze(e)}function Ze(t){Le.lFrame.currentDirectiveIndex=t}function Je(t){const e=Le.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function ti(){return Le.lFrame.currentQueryIndex}function ei(t){Le.lFrame.currentQueryIndex=t}function ii(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function ni(t,e,i){if(i&Ot.SkipSelf){let n=e,s=t;for(;n=n.parent,!(null!==n||i&Ot.Host||(n=ii(s),null===n)||(s=s[15],10&n.type)););if(null===n)return!1;e=n,t=s}const n=Le.lFrame=ri();return n.currentTNode=e,n.lView=t,!0}function si(t){const e=ri(),i=t[1];Le.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex,e.inI18n=!1}function ri(){const t=Le.lFrame,e=null===t?null:t.child;return null===e?oi(t):e}function oi(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function ai(){const t=Le.lFrame;return Le.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const li=ai;function ci(){const t=ai();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ui(){return Le.lFrame.selectedIndex}function di(t){Le.lFrame.selectedIndex=t}function hi(){const t=Le.lFrame;return Ae(t.tView,t.selectedIndex)}function pi(){Le.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function mi(){Le.lFrame.currentNamespace=null}function fi(t,e){for(let i=e.directiveStart,n=e.directiveEnd;i=n)break}else e[a]<0&&(t[18]+=65536),(o>11>16&&(3&t[2])===e&&(t[2]+=2048,r.call(o)):r.call(o)}class wi{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Ci(t,e,i){const n=we(t);let s=0;for(;se){o=r-1;break}}}for(;r>16,n=e;for(;i>0;)n=n[15],i--;return n}let Pi=!0;function Di(t){const e=Pi;return Pi=t,e}let Mi=0;function Ii(t,e){const i=Li(t,e);if(-1!==i)return i;const n=e[1];n.firstCreatePass&&(t.injectorIndex=e.length,Ri(n.data,t),Ri(e,null),Ri(n.blueprint,null));const s=Fi(t,e),r=t.injectorIndex;if(Oi(s)){const t=Ei(s),i=Ti(s,e),n=i[1].data;for(let s=0;s<8;s++)e[r+s]=i[t+s]|n[t+s]}return e[r+8]=s,r}function Ri(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Li(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Fi(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let i=0,n=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(n=2===e?t.declTNode:1===e?s[6]:null,null===n)return-1;if(i++,s=s[15],-1!==n.injectorIndex)return n.injectorIndex|i<<16}return-1}function Ni(t,e,i){!function(t,e,i){let n;"string"==typeof i?n=i.charCodeAt(0)||0:i.hasOwnProperty(Yt)&&(n=i[Yt]),null==n&&(n=i[Yt]=Mi++);const s=255&n;e.data[t+(s>>5)]|=1<=0?255&e:Gi:e}(i);if("function"==typeof r){if(!ni(e,t,n))return n&Ot.Host?Vi(s,i,n):Bi(e,i,n,s);try{const t=r();if(null!=t||n&Ot.Optional)return t;gt(i)}finally{li()}}else if("number"==typeof r){let s=null,o=Li(t,e),a=-1,l=n&Ot.Host?e[16][6]:null;for((-1===o||n&Ot.SkipSelf)&&(a=-1===o?Fi(t,e):e[o+8],-1!==a&&qi(n,!1)?(s=e[1],o=Ei(a),e=Ti(a,e)):o=-1);-1!==o;){const t=e[1];if($i(r,o,t.data)){const t=Ui(o,e,i,s,n,l);if(t!==zi)return t}a=e[o+8],-1!==a&&qi(n,e[1].data[o+8]===l)&&$i(r,o,e)?(s=t,o=Ei(a),e=Ti(a,e)):o=-1}}}return Bi(e,i,n,s)}const zi={};function Gi(){return new Yi(He(),Ne())}function Ui(t,e,i,n,s,r){const o=e[1],a=o.data[t+8],l=ji(a,o,i,null==n?ce(a)&&Pi:n!=o&&0!=(3&a.type),s&Ot.Host&&r===a);return null!==l?Wi(e,o,l,a):zi}function ji(t,e,i,n,s){const r=t.providerIndexes,o=e.data,a=1048575&r,l=t.directiveStart,c=r>>20,u=s?a+c:t.directiveEnd;for(let d=n?a:a+c;d=l&&t.type===i)return d}if(s){const t=o[l];if(t&&de(t)&&t.type===i)return l}return null}function Wi(t,e,i,n){let s=t[i];const r=e.data;if(s instanceof wi){const o=s;o.resolving&&function(t,e){throw new pt("200",`Circular dependency in DI detected for ${t}`)}(ft(r[i]));const a=Di(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?Tt(o.injectImpl):null;ni(t,n,Ot.Default);try{s=t[i]=o.factory(void 0,r,t,n),e.firstCreatePass&&i>=n.directiveStart&&function(t,e,i){const{ngOnChanges:n,ngOnInit:s,ngDoCheck:r}=e.type.prototype;if(n){const n=fe(e);(i.preOrderHooks||(i.preOrderHooks=[])).push(t,n),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,n)}s&&(i.preOrderHooks||(i.preOrderHooks=[])).push(0-t,s),r&&((i.preOrderHooks||(i.preOrderHooks=[])).push(t,r),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,r))}(i,r[i],e)}finally{null!==l&&Tt(l),Di(a),o.resolving=!1,li()}}return s}function $i(t,e,i){return!!(i[e+(t>>5)]&1<{const e=t.prototype.constructor,i=e[qt]||Xi(e),n=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==n;){const t=s[qt]||Xi(s);if(t&&t!==i)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function Xi(t){return ht(t)?()=>{const e=Xi(dt(t));return e&&e()}:he(t)}function Ki(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const i=t.attrs;if(i){const t=i.length;let n=0;for(;n{const n=Zi(e);function s(...t){if(this instanceof s)return n.apply(this,t),this;const e=new s(...t);return i.annotation=e,i;function i(t,i,n){const s=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;for(;s.length<=n;)s.push(null);return(s[n]=s[n]||[]).push(e),t}}return i&&(s.prototype=Object.create(i.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}function tn(t,e,i,n){return Dt(()=>{const s=Zi(e);function r(...t){if(this instanceof r)return s.apply(this,t),this;const e=new r(...t);return function(i,s){const r=i.constructor,o=r.hasOwnProperty("__prop__metadata__")?r.__prop__metadata__:Object.defineProperty(r,"__prop__metadata__",{value:{}}).__prop__metadata__;o[s]=o.hasOwnProperty(s)&&o[s]||[],o[s].unshift(e),n&&n(i,s,...t)}}return i&&(r.prototype=Object.create(i.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}class en{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=_t({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const nn=new en("AnalyzeForEntryComponents");class sn{}const rn=tn("ViewChild",(t,e)=>Object.assign({selector:t,first:!0,isViewQuery:!0,descendants:!0},e),sn),on=Function;function an(t,e){void 0===e&&(e=t);for(let i=0;iArray.isArray(t)?ln(t,e):e(t))}function cn(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function un(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function dn(t,e){const i=[];for(let n=0;n=0?t[1|n]=i:(n=~n,function(t,e,i,n){let s=t.length;if(s==e)t.push(i,n);else if(1===s)t.push(n,t[0]),t[0]=i;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=i,t[e+1]=n}}(t,n,e,i)),n}function pn(t,e){const i=mn(t,e);if(i>=0)return t[1|i]}function mn(t,e){return function(t,e,i){let n=0,s=t.length>>1;for(;s!==n;){const i=n+(s-n>>1),r=t[i<<1];if(e===r)return i<<1;r>e?s=i:n=i+1}return~(s<<1)}(t,e)}const fn={},gn=/\n/gm,_n=rt({provide:String,useValue:rt});let bn;function yn(t){const e=bn;return bn=t,e}function vn(t,e=Ot.Default){if(void 0===bn)throw new Error("inject() must be called from an injection context");return null===bn?Pt(t,void 0,e):bn.get(t,e&Ot.Optional?null:void 0,e)}function wn(t,e=Ot.Default){return(Et||vn)(dt(t),e)}const Cn=wn;function xn(t){const e=[];for(let i=0;i({token:t})),-1),An=Sn(Ji("Optional"),8),On=Sn(Ji("SkipSelf"),4);let En,Tn;function Pn(t){var e;return(null===(e=function(){if(void 0===En&&(En=null,Vt.trustedTypes))try{En=Vt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return En}())||void 0===e?void 0:e.createHTML(t))||t}function Dn(){if(void 0===Tn&&(Tn=null,Vt.trustedTypes))try{Tn=Vt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Tn}function Mn(t){var e;return(null===(e=Dn())||void 0===e?void 0:e.createHTML(t))||t}function In(t){var e;return(null===(e=Dn())||void 0===e?void 0:e.createScriptURL(t))||t}class Rn{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Ln extends Rn{getTypeName(){return"HTML"}}class Fn extends Rn{getTypeName(){return"Style"}}class Nn extends Rn{getTypeName(){return"Script"}}class Vn extends Rn{getTypeName(){return"URL"}}class Bn extends Rn{getTypeName(){return"ResourceURL"}}function Hn(t){return t instanceof Rn?t.changingThisBreaksApplicationSecurity:t}function zn(t,e){const i=Gn(t);if(null!=i&&i!==e){if("ResourceURL"===i&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${i} (see https://g.co/ng/security#xss)`)}return i===e}function Gn(t){return t instanceof Rn&&t.getTypeName()||null}class Un{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Pn(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class jn{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Pn(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Pn(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let n=e.length-1;0qn(t.trim())).join(", ")),this.buf.push(" ",e,'="',ls(o),'"')}var n;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();ts.hasOwnProperty(e)&&!Xn.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(ls(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const os=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,as=/([^\#-~ |!])/g;function ls(t){return t.replace(/&/g,"&").replace(os,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(as,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let cs;function us(t,e){let i=null;try{cs=cs||function(t){const e=new jn(t);return function(){try{return!!(new window.DOMParser).parseFromString(Pn(""),"text/html")}catch(t){return!1}}()?new Un(e):e}(t);let n=e?String(e):"";i=cs.getInertBodyElement(n);let s=5,r=n;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,n=r,r=i.innerHTML,i=cs.getInertBodyElement(n)}while(n!==r);return Pn((new rs).sanitizeChildren(ds(i)||i))}finally{if(i){const t=ds(i)||i;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function ds(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var hs=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function ps(t){const e=gs();return e?Mn(e.sanitize(hs.HTML,t)||""):zn(t,"HTML")?Mn(Hn(t)):us(ve(),mt(t))}function ms(t){const e=gs();return e?e.sanitize(hs.URL,t)||"":zn(t,"URL")?Hn(t):qn(mt(t))}function fs(t){const e=gs();if(e)return In(e.sanitize(hs.RESOURCE_URL,t)||"");if(zn(t,"ResourceURL"))return In(Hn(t));throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)")}function gs(){const t=Ne();return t&&t[12]}function _s(t){return t.ngDebugContext}function bs(t){return t.ngOriginalError}function ys(t,...e){t.error(...e)}class vs{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),i=this._findContext(t),n=function(t){return t.ngErrorLogger||ys}(t);n(this._console,"ERROR",t),e&&n(this._console,"ORIGINAL ERROR",e),i&&n(this._console,"ERROR CONTEXT",i)}_findContext(t){return t?_s(t)?_s(t):this._findContext(bs(t)):null}_findOriginalError(t){let e=bs(t);for(;e&&bs(e);)e=bs(e);return e}}function ws(t,e){t.__ngContext__=e}const Cs=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Vt))();function xs(t){return{name:"body",target:t.ownerDocument.body}}function Ss(t){return t instanceof Function?t():t}var ks=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});function As(t,e){return(void 0)(t,e)}function Os(t){const e=t[3];return ae(e)?e[3]:e}function Es(t){return Ps(t[13])}function Ts(t){return Ps(t[4])}function Ps(t){for(;null!==t&&!ae(t);)t=t[4];return t}function Ds(t,e,i,n,s){if(null!=n){let r,o=!1;ae(n)?r=n:oe(n)&&(o=!0,n=n[0]);const a=xe(n);0===t&&null!==i?null==s?Bs(e,i,a):Vs(e,i,a,s||null,!0):1===t&&null!==i?Vs(e,i,a,s||null,!0):2===t?function(t,e,i){const n=zs(t,e);n&&function(t,e,i,n){we(t)?t.removeChild(e,i,n):e.removeChild(i)}(t,n,e,i)}(e,a,o):3===t&&e.destroyNode(a),null!=r&&function(t,e,i,n,s){const r=i[7];r!==xe(i)&&Ds(e,t,n,r,s);for(let o=10;o0&&(t[i-1][4]=n[4]);const o=un(t,10+e);Qs(n[1],s=n,s[11],2,null,null),s[0]=null,s[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),n[3]=null,n[4]=null,n[2]&=-129}var s;return n}function Ls(t,e){if(!(256&e[2])){const i=e[11];we(i)&&i.destroyNode&&Qs(t,e,i,3,null,null),function(t){let e=t[13];if(!e)return Fs(t[1],t);for(;e;){let i=null;if(oe(e))i=e[13];else{const t=e[10];t&&(i=t)}if(!i){for(;e&&!e[4]&&e!==t;)oe(e)&&Fs(e[1],e),e=e[3];null===e&&(e=t),oe(e)&&Fs(e[1],e),i=e&&e[4]}e=i}}(e)}}function Fs(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let i;if(null!=t&&null!=(i=t.destroyHooks))for(let n=0;n=0?n[s=l]():n[s=-l].unsubscribe(),r+=2}else{const t=n[s=i[r+1]];i[r].call(t)}if(null!==n){for(let t=s+1;tr?"":s[u+1].toLowerCase();const e=8&n?t:null;if(e&&-1!==Js(e,c,0)||2&n&&c!==t){if(sr(n))return!1;o=!0}}}}else{if(!o&&!sr(n)&&!sr(l))return!1;if(o&&sr(l))continue;o=!1,n=l|1&n}}return sr(n)||o}function sr(t){return 0==(1&t)}function rr(t,e,i,n){if(null===e)return-1;let s=0;if(n||!i){let i=!1;for(;s-1)for(i++;i0?'="'+e+'"':"")+"]"}else 8&n?s+="."+o:4&n&&(s+=" "+o);else""===s||sr(o)||(e+=lr(r,s),s=""),n=o,r=r||!sr(n);i++}return""!==s&&(e+=lr(r,s)),e}const ur={};function dr(t){hr(Ve(),Ne(),ui()+t,We())}function hr(t,e,i,n){if(!n)if(3==(3&e[2])){const n=t.preOrderCheckHooks;null!==n&&gi(e,n,i)}else{const n=t.preOrderHooks;null!==n&&_i(e,n,0,i)}di(i)}function pr(t,e){return t<<17|e<<2}function mr(t){return t>>17&32767}function fr(t){return 2|t}function gr(t){return(131068&t)>>2}function _r(t,e){return-131069&t|e<<2}function br(t){return 1|t}function yr(t,e){const i=t.contentQueries;if(null!==i)for(let n=0;n20&&hr(t,e,20,We()),i(n,s)}finally{di(r)}}function Or(t,e,i){if(le(e)){const n=e.directiveEnd;for(let s=e.directiveStart;s0;){const i=t[--e];if("number"==typeof i&&i<0)return i}return 0})(i)!=r&&i.push(r),i.push(n,s,o)}}function Nr(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Vr(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Br(t,e,i){if(i){if(e.exportAs)for(let n=0;n0&&qr(i)}}function qr(t){for(let i=Es(t);null!==i;i=Ts(i))for(let t=10;t0&&qr(e)}const e=t[1].components;if(null!==e)for(let i=0;i0&&qr(n)}}function Yr(t,e){const i=Ee(e,t),n=i[1];!function(t,e){for(let i=e.length;iPromise.resolve(null))();function eo(t){return t[7]||(t[7]=[])}function io(t){return t.cleanup||(t.cleanup=[])}function no(t,e,i){return(null===t||de(t))&&(i=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(i[e.index])),i[11]}function so(t,e){const i=t[9],n=i?i.get(vs,null):null;n&&n.handleError(e)}function ro(t,e,i,n,s){for(let r=0;rthis.processProvider(i,t,e)),ln([t],t=>this.processInjectorType(t,[],s)),this.records.set(lo,wo(void 0,this));const r=this.records.get(uo);this.scope=null!=r?r.value:null,this.source=n||("object"==typeof t?null:at(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=fn,i=Ot.Default){this.assertNotDestroyed();const n=yn(this);try{if(!(i&Ot.SkipSelf)){let e=this.records.get(t);if(void 0===e){const i=("function"==typeof(s=t)||"object"==typeof s&&s instanceof en)&&vt(t);e=i&&this.injectableDefInScope(i)?wo(yo(t),ho):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(i&Ot.Self?go():this.parent).get(t,e=i&Ot.Optional&&e===fn?null:e)}catch(r){if("NullInjectorError"===r.name){if((r.ngTempTokenPath=r.ngTempTokenPath||[]).unshift(at(t)),n)throw r;return function(t,e,i,n){const s=t.ngTempTokenPath;throw e.__source&&s.unshift(e.__source),t.message=function(t,e,i,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=at(e);if(Array.isArray(e))s=e.map(at).join(" -> ");else if("object"==typeof e){let t=[];for(let i in e)if(e.hasOwnProperty(i)){let n=e[i];t.push(i+":"+("string"==typeof n?JSON.stringify(n):at(n)))}s=`{${t.join(", ")}}`}return`${i}${n?"("+n+")":""}[${s}]: ${t.replace(gn,"\n ")}`}("\n"+t.message,s,i,n),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(r,t,"R3InjectorError",this.source)}throw r}finally{yn(n)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,i)=>t.push(at(i))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,i){if(!(t=dt(t)))return!1;let n=Ct(t);const s=null==n&&t.ngModule||void 0,r=void 0===s?t:s,o=-1!==i.indexOf(r);if(void 0!==s&&(n=Ct(s)),null==n)return!1;if(null!=n.imports&&!o){let t;i.push(r);try{ln(n.imports,n=>{this.processInjectorType(n,e,i)&&(void 0===t&&(t=[]),t.push(n))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,i,n||mo))}}this.injectorDefTypes.add(r);const a=he(r)||(()=>new r);this.records.set(r,wo(a,ho));const l=n.providers;if(null!=l&&!o){const e=t;ln(l,t=>this.processProvider(t,e,l))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,i){let n=xo(t=dt(t))?t:dt(t&&t.provide);const s=function(t,e,i){return Co(t)?wo(void 0,t.useValue):wo(vo(t),ho)}(t);if(xo(t)||!0!==t.multi)this.records.get(n);else{let e=this.records.get(n);e||(e=wo(void 0,ho,!0),e.factory=()=>xn(e.multi),this.records.set(n,e)),n=t,e.multi.push(t)}this.records.set(n,s)}hydrate(t,e){var i;return e.value===ho&&(e.value=po,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(i=e.value)&&"object"==typeof i&&"function"==typeof i.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function yo(t){const e=vt(t),i=null!==e?e.factory:he(t);if(null!==i)return i;if(t instanceof en)throw new Error(`Token ${at(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const i=dn(e,"?");throw new Error(`Can't resolve all parameters for ${at(t)}: (${i.join(", ")}).`)}const i=function(t){const e=t&&(t[xt]||t[kt]);if(e){const i=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${i}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${i}" class.`),e}return null}(t);return null!==i?()=>i.factory(t):()=>new t}(t);throw new Error("unreachable")}function vo(t,e,i){let n;if(xo(t)){const e=dt(t);return he(e)||yo(e)}if(Co(t))n=()=>dt(t.useValue);else if((s=t)&&s.useFactory)n=()=>t.useFactory(...xn(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))n=()=>wn(dt(t.useExisting));else{const e=dt(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return he(e)||yo(e);n=()=>new e(...xn(t.deps))}var s;return n}function wo(t,e,i=!1){return{factory:t,value:e,multi:i?[]:void 0}}function Co(t){return null!==t&&"object"==typeof t&&_n in t}function xo(t){return"function"==typeof t}const So=function(t,e,i){return function(t,e=null,i=null,n){const s=_o(t,e,i,n);return s._resolveInjectorDefTypes(),s}({name:i},e,t,i)};let ko=(()=>{class t{static create(t,e){return Array.isArray(t)?So(t,e,""):So(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=fn,t.NULL=new co,t.\u0275prov=_t({token:t,providedIn:"any",factory:()=>wn(lo)}),t.__NG_ELEMENT_ID__=-1,t})();function Ao(t,e){fi(Te(t)[1],He())}function Oo(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,i=!0;const n=[t];for(;e;){let s;if(de(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(i){n.push(s);const e=t;e.inputs=Eo(t.inputs),e.declaredInputs=Eo(t.declaredInputs),e.outputs=Eo(t.outputs);const i=s.hostBindings;i&&Do(t,i);const r=s.viewQuery,o=s.contentQueries;if(r&&To(t,r),o&&Po(t,o),ot(t.inputs,s.inputs),ot(t.declaredInputs,s.declaredInputs),ot(t.outputs,s.outputs),de(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let n=0;n=0;n--){const s=t[n];s.hostVars=e+=s.hostVars,s.hostAttrs=ki(s.hostAttrs,i=ki(i,s.hostAttrs))}}(n)}function Eo(t){return t===Bt?{}:t===zt?[]:t}function To(t,e){const i=t.viewQuery;t.viewQuery=i?(t,n)=>{e(t,n),i(t,n)}:e}function Po(t,e){const i=t.contentQueries;t.contentQueries=i?(t,n,s)=>{e(t,n,s),i(t,n,s)}:e}function Do(t,e){const i=t.hostBindings;t.hostBindings=i?(t,n)=>{e(t,n),i(t,n)}:e}let Mo=null;function Io(){if(!Mo){const t=Vt.Symbol;if(t&&t.iterator)Mo=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(xe(t[n.index])).target:n.index;if(we(i)){let o=null;if(!a&&l&&(o=function(t,e,i,n){const s=t.cleanup;if(null!=s)for(let r=0;ri?t[i]:null}"string"==typeof t&&(r+=2)}return null}(t,e,s,n.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=r,o.__ngLastListenerFn__=r,d=!1;else{r=ca(n,e,r,!1);const t=i.listen(p.name||m,s,r);u.push(r,t),c&&c.push(s,g,f,f+1)}}else r=ca(n,e,r,!0),m.addEventListener(s,r,o),u.push(r),c&&c.push(s,g,f,o)}else r=ca(n,e,r,!1);const h=n.outputs;let p;if(d&&null!==h&&(p=h[s])){const t=p.length;if(t)for(let i=0;i0;)e=e[15],t--;return e}(t,Le.lFrame.contextLView))[8]}(t)}function da(t,e){let i=null;const n=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let s=0;s=0}const ya={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function va(t){return t.substring(ya.key,ya.keyEnd)}function wa(t,e){const i=ya.textEnd;return i===e?-1:(e=ya.keyEnd=function(t,e,i){for(;e32;)e++;return e}(t,ya.key=e,i),Ca(t,e,i))}function Ca(t,e,i){for(;e=0;i=wa(e,i))hn(t,va(e),!0)}function Oa(t,e,i,n){const s=Ne(),r=Ve(),o=Xe(2);r.firstUpdatePass&&Pa(r,t,o,n),e!==ur&&Vo(s,o,e)&&Ia(r,r.data[ui()],s,s[11],t,s[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=at(Hn(t)))),t}(e,i),n,o)}function Ea(t,e,i,n){const s=Ve(),r=Xe(2);s.firstUpdatePass&&Pa(s,null,r,n);const o=Ne();if(i!==ur&&Vo(o,r,i)){const a=s.data[ui()];if(Fa(a,n)&&!Ta(s,r)){let t=n?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(i=lt(t,i||"")),Yo(s,a,o,i,n)}else!function(t,e,i,n,s,r,o,a){s===ur&&(s=Ht);let l=0,c=0,u=0=t.expandoStartIndex}function Pa(t,e,i,n){const s=t.data;if(null===s[i+1]){const r=s[ui()],o=Ta(t,i);Fa(r,n)&&null===e&&!o&&(e=!1),e=function(t,e,i,n){const s=Je(t);let r=n?e.residualClasses:e.residualStyles;if(null===s)0===(n?e.classBindings:e.styleBindings)&&(i=Ma(i=Da(null,t,e,i,n),e.attrs,n),r=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==s)if(i=Da(s,t,e,i,n),null===r){let i=function(t,e,i){const n=i?e.classBindings:e.styleBindings;if(0!==gr(n))return t[mr(n)]}(t,e,n);void 0!==i&&Array.isArray(i)&&(i=Da(null,t,e,i[1],n),i=Ma(i,e.attrs,n),function(t,e,i,n){t[mr(i?e.classBindings:e.styleBindings)]=n}(t,e,n,i))}else r=function(t,e,i){let n;const s=e.directiveEnd;for(let r=1+e.directiveStylingLast;r0)&&(u=!0)}else c=i;if(s)if(0!==l){const e=mr(t[a+1]);t[n+1]=pr(e,a),0!==e&&(t[e+1]=_r(t[e+1],n)),t[a+1]=131071&t[a+1]|n<<17}else t[n+1]=pr(a,0),0!==a&&(t[a+1]=_r(t[a+1],n)),a=n;else t[n+1]=pr(l,0),0===a?a=n:t[l+1]=_r(t[l+1],n),l=n;u&&(t[n+1]=fr(t[n+1])),_a(t,c,n,!0),_a(t,c,n,!1),function(t,e,i,n,s){const r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&mn(r,e)>=0&&(i[n+1]=br(i[n+1]))}(e,c,t,n,r),o=pr(a,l),r?e.classBindings=o:e.styleBindings=o}(s,r,e,i,o,n)}}function Da(t,e,i,n,s){let r=null;const o=i.directiveEnd;let a=i.directiveStylingLast;for(-1===a?a=i.directiveStart:a++;a0;){const e=t[s],r=Array.isArray(e),l=r?e[1]:e,c=null===l;let u=i[s+1];u===ur&&(u=c?Ht:void 0);let d=c?pn(u,n):l===n?u:void 0;if(r&&!La(d)&&(d=pn(e,n)),La(d)&&(a=d,o))return a;const h=t[s+1];s=o?mr(h):gr(h)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(a=pn(t,n))}return a}function La(t){return void 0!==t}function Fa(t,e){return 0!=(t.flags&(e?16:32))}function Na(t,e=""){const i=Ne(),n=Ve(),s=t+20,r=n.firstCreatePass?wr(n,s,1,e,null):n.data[s],o=i[s]=function(t,e){return we(t)?t.createText(e):t.createTextNode(e)}(i[11],e);js(n,i,o,r),Ge(r,!1)}function Va(t){return Ba("",t,""),Va}function Ba(t,e,i){const n=Ne(),s=Go(n,t,e,i);return s!==ur&&oo(n,ui(),s),Ba}function Ha(t,e,i,n,s){const r=Ne(),o=Uo(r,t,e,i,n,s);return o!==ur&&oo(r,ui(),o),Ha}function za(t,e,i,n,s,r,o){const a=Ne(),l=function(t,e,i,n,s,r,o,a){const l=Ho(t,Ye(),i,s,o);return Xe(3),l?e+mt(i)+n+mt(s)+r+mt(o)+a:ur}(a,t,e,i,n,s,r,o);return l!==ur&&oo(a,ui(),l),za}function Ga(t,e,i){Ea(hn,Aa,Go(Ne(),t,e,i),!0)}function Ua(t,e,i){const n=Ne();return Vo(n,Qe(),e)&&Rr(Ve(),hi(),n,t,e,n[11],i,!0),Ua}function ja(t,e,i){const n=Ne();if(Vo(n,Qe(),e)){const s=Ve(),r=hi();Rr(s,r,n,t,e,no(Je(s.data),r,n),i,!0)}return ja}var Wa=["en",[["a","p"],["AM","PM"],void 0],[["AM","PM"],void 0,void 0],[["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"]],void 0,[["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"]],void 0,[["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}",void 0,"{1} 'at' {0}",void 0],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let $a={};function qa(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let i=Ya(e);if(i)return i;const n=e.split("-")[0];if(i=Ya(n),i)return i;if("en"===n)return Wa;throw new Error(`Missing locale data for the locale "${t}".`)}function Ya(t){return t in $a||($a[t]=Vt.ng&&Vt.ng.common&&Vt.ng.common.locales&&Vt.ng.common.locales[t]),$a[t]}var Qa=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});let Xa="en-US";function Ka(t){var e,i;i="Expected localeId to be defined",null==(e=t)&&function(t,e,i,n){throw new Error(`ASSERTION ERROR: ${t} [Expected=> null != ${e} <=Actual]`)}(i,e),"string"==typeof t&&(Xa=t.toLowerCase().replace(/_/g,"-"))}function Za(t,e,i,n,s){if(t=dt(t),Array.isArray(t))for(let r=0;r>20;if(xo(t)||!t.multi){const n=new wi(l,s,$o),p=el(a,e,s?u:u+h,d);-1===p?(Ni(Ii(c,o),r,a),Ja(r,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),i.push(n),o.push(n)):(i[p]=n,o[p]=n)}else{const p=el(a,e,u+h,d),m=el(a,e,u,u+h),f=p>=0&&i[p],g=m>=0&&i[m];if(s&&!g||!s&&!f){Ni(Ii(c,o),r,a);const u=function(t,e,i,n,s){const r=new wi(t,i,$o);return r.multi=[],r.index=e,r.componentProviders=0,tl(r,s,n&&!i),r}(s?nl:il,i.length,s,n,l);!s&&g&&(i[m].providerFactory=u),Ja(r,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),i.push(u),o.push(u)}else Ja(r,t,p>-1?p:m,tl(i[s?m:p],l,!s&&n));!s&&n&&g&&i[m].componentProviders++}}}function Ja(t,e,i,n){const s=xo(e);if(s||e.useClass){const r=(e.useClass||e).prototype.ngOnDestroy;if(r){const o=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=o.indexOf(i);-1===t?o.push(i,[n,r]):o[t+1].push(n,r)}else o.push(i,r)}}}function tl(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function el(t,e,i,n){for(let s=i;s{i.providersResolver=(i,n)=>function(t,e,i){const n=Ve();if(n.firstCreatePass){const s=de(t);Za(i,n.data,n.blueprint,s,!0),Za(e,n.data,n.blueprint,s,!1)}}(i,n?n(t):t,e)}}class ol{}class al{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${at(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let ll=(()=>{class t{}return t.NULL=new al,t})();function cl(...t){}function ul(t,e){return new hl(ke(t,e))}const dl=function(){return ul(He(),Ne())};let hl=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=dl,t})();function pl(t){return t instanceof hl?t.nativeElement:t}class ml{}let fl=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>gl(),t})();const gl=function(){const t=Ne(),e=Ee(He().index,t);return function(t){return t[11]}(oe(e)?e:t)};let _l=(()=>{class t{}return t.\u0275prov=_t({token:t,providedIn:"root",factory:()=>null}),t})();class bl{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const yl=new bl("11.2.8");class vl{constructor(){}supports(t){return Lo(t)}create(t){return new Cl(t)}}const wl=(t,e)=>e;class Cl{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||wl}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,n=0,s=null;for(;e||i;){const r=!i||e&&e.currentIndex{n=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,n)?(r&&(s=this._verifyReinsertion(s,t,n,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,n,e),r=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,n){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,n)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,n))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,n)):t=this._addAfter(new xl(e,i),s,n),t}_verifyReinsertion(t,e,i,n){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,n):t.currentIndex!=n&&(t.currentIndex=n,this._addToMoves(t,n)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const n=t._prevRemoved,s=t._nextRemoved;return null===n?this._removalsHead=s:n._nextRemoved=s,null===s?this._removalsTail=n:s._prevRemoved=n,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const n=null===e?this._itHead:e._next;return t._next=n,t._prev=e,null===n?this._itTail=t:n._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new kl),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new kl),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class xl{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Sl{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class kl{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new Sl,this.map.set(e,i)),i.add(t)}get(t,e){const i=this.map.get(t);return i?i.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Al(t,e,i){const n=t.previousIndex;if(null===n)return n;let s=0;return i&&n{if(e&&e.key===i)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const n=this._getOrCreateRecordForKey(i,t);e=this._insertBeforeOrAppend(e,n)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const i=this._records.get(t);this._maybeAddToChanges(i,e);const n=i._prev,s=i._next;return n&&(n._next=s),s&&(s._prev=n),i._next=null,i._prev=null,i}const i=new Tl(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class Tl{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Pl(){return new Dl([new vl])}let Dl=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(null!=i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Pl()),deps:[[t,new On,new An]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${i=t,i.name||typeof i}'`);var i}}return t.\u0275prov=_t({token:t,providedIn:"root",factory:Pl}),t})();function Ml(){return new Il([new Ol])}let Il=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Ml()),deps:[[t,new On,new An]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=_t({token:t,providedIn:"root",factory:Ml}),t})();function Rl(t,e,i,n,s=!1){for(;null!==i;){const r=e[i.index];if(null!==r&&n.push(xe(r)),ae(r))for(let t=10;t-1&&(Rs(t,i),un(e,i))}this._attachedToViewContainer=!1}Ls(this._lView[1],this._lView)}onDestroy(t){Mr(this._lView[1],this._lView,null,t)}markForCheck(){Xr(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Kr(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,i){$e(!0);try{Kr(t,e,i)}finally{$e(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,Qs(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Fl extends Ll{constructor(t){super(t),this._view=t}detectChanges(){Zr(this._view)}checkNoChanges(){!function(t){$e(!0);try{Zr(t)}finally{$e(!1)}}(this._view)}get context(){return null}}const Nl=Bl;let Vl=(()=>{class t{}return t.__NG_ELEMENT_ID__=Nl,t.__ChangeDetectorRef__=!0,t})();function Bl(t=!1){return function(t,e,i){if(!i&&ce(t)){const i=Ee(t.index,e);return new Ll(i,i)}return 47&t.type?new Ll(e[16],e):null}(He(),Ne(),t)}const Hl=[new Ol],zl=new Dl([new vl]),Gl=new Il(Hl),Ul=function(){return ql(He(),Ne())};let jl=(()=>{class t{}return t.__NG_ELEMENT_ID__=Ul,t})();const Wl=jl,$l=class extends Wl{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t){const e=this._declarationTContainer.tViews,i=vr(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const n=this._declarationLView[19];return null!==n&&(i[19]=n.createEmbeddedView(e)),xr(e,i,t),new Ll(i)}};function ql(t,e){return 4&t.type?new $l(e,t,ul(t,e)):null}class Yl{}class Ql{}const Xl=function(){return ic(He(),Ne())};let Kl=(()=>{class t{}return t.__NG_ELEMENT_ID__=Xl,t})();const Zl=Kl,Jl=class extends Zl{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return ul(this._hostTNode,this._hostLView)}get injector(){return new Yi(this._hostTNode,this._hostLView)}get parentInjector(){const t=Fi(this._hostTNode,this._hostLView);if(Oi(t)){const e=Ti(t,this._hostLView),i=Ei(t);return new Yi(e[1].data[i+8],e)}return new Yi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=tc(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){const n=t.createEmbeddedView(e||{});return this.insert(n,i),n}createComponent(t,e,i,n,s){const r=i||this.parentInjector;if(!s&&null==t.ngModule&&r){const t=r.get(Yl,null);t&&(s=t)}const o=t.create(r,n,void 0,s);return this.insert(o.hostView,e),o}insert(t,e){const i=t._lView,n=i[1];if(ae(i[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=i[3],n=new Jl(e,e[6],e[3]);n.detach(n.indexOf(t))}}const s=this._adjustIndex(e),r=this._lContainer;!function(t,e,i,n){const s=10+n,r=i.length;n>0&&(i[s-1][4]=e),nCs});class ac extends ol{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(cr).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return rc(this.componentDef.inputs)}get outputs(){return rc(this.componentDef.outputs)}create(t,e,i,n){const s=(n=n||this.ngModule)?function(t,e){return{get:(i,n,s)=>{const r=t.get(i,nc,s);return r!==nc||n===nc?r:e.get(i,n,s)}}}(t,n.injector):t,r=s.get(ml,Ce),o=s.get(_l,null),a=r.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=i?function(t,e,i){if(we(t))return t.selectRootElement(e,i===It.ShadowDom);let n="string"==typeof e?t.querySelector(e):e;return n.textContent="",n}(a,i,this.componentDef.encapsulation):Ms(r.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,d={components:[],scheduler:Cs,clean:to,playerHandler:null,flags:0},h=Dr(0,null,null,1,0,null,null,null,null,null),p=vr(null,h,d,u,null,null,r,a,o,s);let m,f;si(p);try{const t=function(t,e,i,n,s,r){const o=i[1];i[20]=t;const a=wr(o,20,2,"#host",null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(ao(a,l,!0),null!==t&&(Ci(s,t,l),null!==a.classes&&Zs(s,t,a.classes),null!==a.styles&&Ks(s,t,a.styles)));const c=n.createRenderer(t,e),u=vr(i,Pr(e),null,e.onPush?64:16,i[20],a,n,c,null,null);return o.firstCreatePass&&(Ni(Ii(a,i),o,e.type),Vr(o,a),Hr(a,i.length,1)),Qr(i,u),i[20]=u}(c,this.componentDef,p,r,a);if(c)if(i)Ci(a,c,["ng-version",yl.full]);else{const{attrs:t,classes:e}=function(t){const e=[],i=[];let n=1,s=2;for(;n0&&Zs(a,c,e.join(" "))}if(f=Ae(h,20),void 0!==e){const t=f.projection=[];for(let i=0;it(o,e)),e.contentQueries){const t=He();e.contentQueries(1,o,t.directiveStart)}const a=He();return!r.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(di(a.index),Fr(i[1],a,0,a.directiveStart,a.directiveEnd,e),Nr(e,o)),o}(t,this.componentDef,p,d,[Ao]),xr(h,p,null)}finally{ci()}return new lc(this.componentType,m,ul(f,p),p,f)}}class lc extends class{}{constructor(t,e,i,n,s){super(),this.location=i,this._rootLView=n,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new Fl(n),this.componentType=t}get injector(){return new Yi(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const cc=new Map;class uc extends Yl{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new sc(this);const i=re(t),n=t[$t]||null;n&&Ka(n),this._bootstrapComponents=Ss(i.bootstrap),this._r3Injector=_o(t,e,[{provide:Yl,useValue:this},{provide:ll,useValue:this.componentFactoryResolver}],at(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=ko.THROW_IF_NOT_FOUND,i=Ot.Default){return t===ko||t===Yl||t===lo?this:this._r3Injector.get(t,e,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class dc extends Ql{constructor(t){super(),this.moduleType=t,null!==re(t)&&function(t){const e=new Set;!function t(i){const n=re(i,!0),s=n.id;null!==s&&(function(t,e,i){if(e&&e!==i)throw new Error(`Duplicate module registered for ${t} - ${at(e)} vs ${at(e.name)}`)}(s,cc.get(s),i),cc.set(s,i));const r=Ss(n.imports);for(const o of r)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new uc(this.moduleType,t)}}function hc(t,e,i){const n=qe()+t,s=Ne();return s[n]===ur?No(s,n,i?e.call(i):e()):function(t,e){return t[e]}(s,n)}function pc(t,e,i,n){return bc(Ne(),qe(),t,e,i,n)}function mc(t,e,i,n,s){return yc(Ne(),qe(),t,e,i,n,s)}function fc(t,e,i,n,s,r){return function(t,e,i,n,s,r,o,a){const l=e+i;return Ho(t,l,s,r,o)?No(t,l+3,a?n.call(a,s,r,o):n(s,r,o)):_c(t,l+3)}(Ne(),qe(),t,e,i,n,s,r)}function gc(t,e,i,n,s,r,o){return function(t,e,i,n,s,r,o,a,l){const c=e+i;return function(t,e,i,n,s,r){const o=Bo(t,e,i,n);return Bo(t,e+2,s,r)||o}(t,c,s,r,o,a)?No(t,c+4,l?n.call(l,s,r,o,a):n(s,r,o,a)):_c(t,c+4)}(Ne(),qe(),t,e,i,n,s,r,o)}function _c(t,e){const i=t[e];return i===ur?void 0:i}function bc(t,e,i,n,s,r){const o=e+i;return Vo(t,o,s)?No(t,o+1,r?n.call(r,s):n(s)):_c(t,o+1)}function yc(t,e,i,n,s,r,o){const a=e+i;return Bo(t,a,s,r)?No(t,a+2,o?n.call(o,s,r):n(s,r)):_c(t,a+2)}function vc(t,e){const i=Ve();let n;const s=t+20;i.firstCreatePass?(n=function(t,e){if(e)for(let i=e.length-1;i>=0;i--){const n=e[i];if(t===n.name)return n}throw new pt("302",`The pipe '${t}' could not be found!`)}(e,i.pipeRegistry),i.data[s]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(s,n.onDestroy)):n=i.data[s];const r=n.factory||(n.factory=he(n.type)),o=Tt($o);try{const t=Di(!1),e=r();return Di(t),function(t,e,i,n){i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=n}(i,Ne(),s,e),e}finally{Tt(o)}}function wc(t,e,i){const n=t+20,s=Ne(),r=Oe(s,n);return Sc(s,xc(s,n)?bc(s,qe(),e,r.transform,i,r):r.transform(i))}function Cc(t,e,i,n){const s=t+20,r=Ne(),o=Oe(r,s);return Sc(r,xc(r,s)?yc(r,qe(),e,o.transform,i,n,o):o.transform(i,n))}function xc(t,e){return t[1].data[e].pure}function Sc(t,e){return Ro.isWrapped(e)&&(e=Ro.unwrap(e),t[Ye()]=ur),e}const kc=class extends k{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){let n,s=t=>null,r=()=>null;t&&"object"==typeof t?(n=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(s=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(r=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(n=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(s=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),i&&(r=this.__isAsync?()=>{setTimeout(()=>i())}:()=>{i()}));const o=super.subscribe(n,s,r);return t instanceof d&&t.add(o),o}};function Ac(){return this._results[Io()]()}class Oc{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Io(),i=Oc.prototype;i[e]||(i[e]=Ac)}get changes(){return this._changes||(this._changes=new kc)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){this.dirty=!1;const i=an(t);(this._changesDetected=!function(t,e,i){if(t.length!==e.length)return!1;for(let n=0;n0)n.push(o[t/2]);else{const s=r[t+1],o=e[-i];for(let t=10;t({bindingPropertyName:t})),$c=tn("Output",t=>({bindingPropertyName:t})),qc=new en("Application Initializer");let Yc=(()=>{class t{constructor(t){this.appInits=t,this.resolve=cl,this.reject=cl,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(wn(qc,8))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();const Qc=new en("AppId"),Xc={provide:Qc,useFactory:function(){return`${Kc()}${Kc()}${Kc()}`},deps:[]};function Kc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Zc=new en("Platform Initializer"),Jc=new en("Platform ID"),tu=new en("appBootstrapListener");let eu=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();const iu=new en("LocaleId"),nu=new en("DefaultCurrencyCode");class su{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const ru=function(t){return new dc(t)},ou=ru,au=function(t){return Promise.resolve(ru(t))},lu=function(t){const e=ru(t),i=Ss(re(t).declarations).reduce((t,e)=>{const i=se(e);return i&&t.push(new ac(i)),t},[]);return new su(e,i)},cu=lu,uu=function(t){return Promise.resolve(lu(t))};let du=(()=>{class t{constructor(){this.compileModuleSync=ou,this.compileModuleAsync=au,this.compileModuleAndAllComponentsSync=cu,this.compileModuleAndAllComponentsAsync=uu}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();const hu=(()=>Promise.resolve(0))();function pu(t){"undefined"==typeof Zone?hu.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class mu{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new kc(!1),this.onMicrotaskEmpty=new kc(!1),this.onStable=new kc(!1),this.onError=new kc(!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.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=!i&&e,this.shouldCoalesceRunChangeDetection=i,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let t=Vt.requestAnimationFrame,e=Vt.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i);const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Vt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,_u(t),gu(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),_u(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,n,s,r,o,a)=>{try{return bu(t),i.invokeTask(s,r,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&e(),yu(t)}},onInvoke:(i,n,s,r,o,a,l)=>{try{return bu(t),i.invoke(s,r,o,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),yu(t)}},onHasTask:(e,i,n,s)=>{e.hasTask(n,s),i===n&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,_u(t),gu(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,i,n,s)=>(e.handleError(n,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!mu.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(mu.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,n){const s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+n,t,fu,cl,cl);try{return s.runTask(r,e,i)}finally{s.cancelTask(r)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const fu={};function gu(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function _u(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function bu(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function yu(t){t._nesting--,gu(t)}class vu{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new kc,this.onMicrotaskEmpty=new kc,this.onStable=new kc,this.onError=new kc}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,n){return t.apply(e,i)}}let wu=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{mu.assertNotInAngularZone(),pu(()=>{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())pu(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,i){let n=-1;e&&e>0&&(n=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==n),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:n,updateCb:i})}whenStable(t,e,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,i){return[]}}return t.\u0275fac=function(e){return new(e||t)(wn(mu))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})(),Cu=(()=>{class t{constructor(){this._applications=new Map,ku.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return ku.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();class xu{addToWindow(t){}findTestabilityInTree(t,e,i){return null}}let Su,ku=new xu,Au=!0,Ou=!1;function Eu(){return Ou=!0,Au}const Tu=new en("AllowMultipleToken");class Pu{constructor(t,e){this.name=t,this.token=e}}function Du(t,e,i=[]){const n=`Platform: ${e}`,s=new en(n);return(e=[])=>{let r=Mu();if(!r||r.injector.get(Tu,!1))if(t)t(i.concat(e).concat({provide:s,useValue:!0}));else{const t=i.concat(e).concat({provide:s,useValue:!0},{provide:uo,useValue:"platform"});!function(t){if(Su&&!Su.destroyed&&!Su.injector.get(Tu,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Su=t.get(Iu);const e=t.get(Zc,null);e&&e.forEach(t=>t())}(ko.create({providers:t,name:n}))}return function(t){const e=Mu();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function Mu(){return Su&&!Su.destroyed?Su:null}let Iu=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const i=function(t,e){let i;return i="noop"===t?new vu:("zone.js"===t?void 0:t)||new mu({enableLongStackTrace:Eu(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),i}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),n=[{provide:mu,useValue:i}];return i.run(()=>{const e=ko.create({providers:n,parent:this.injector,name:t.moduleType.name}),s=t.create(e),r=s.injector.get(vs,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.runOutsideAngular(()=>{const t=i.onError.subscribe({next:t=>{r.handleError(t)}});s.onDestroy(()=>{Fu(this._modules,s),t.unsubscribe()})}),function(t,e,i){try{const n=i();return ia(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}(r,i,()=>{const t=s.injector.get(Yc);return t.runInitializers(),t.donePromise.then(()=>(Ka(s.injector.get(iu,"en-US")||"en-US"),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const i=Ru({},e);return function(t,e,i){const n=new dc(i);return Promise.resolve(n)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,i))}_moduleDoBootstrap(t){const e=t.injector.get(Lu);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${at(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(wn(ko))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();function Ru(t,e){return Array.isArray(e)?e.reduce(Ru,t):Object.assign(Object.assign({},t),e)}let Lu=(()=>{class t{constructor(t,e,i,n,s){this._zone=t,this._injector=e,this._exceptionHandler=i,this._componentFactoryResolver=n,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const r=new v(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),o=new v(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{mu.assertNotInAngularZone(),pu(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const i=this._zone.onUnstable.subscribe(()=>{mu.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),i.unsubscribe()}});this.isStable=Y(r,o.pipe(st()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let i;i=t instanceof ol?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(i.componentType);const n=i.isBoundToModule?void 0:this._injector.get(Yl),s=i.create(ko.NULL,[],e||i.selector,n),r=s.location.nativeElement,o=s.injector.get(wu,null),a=o&&s.injector.get(Cu);return o&&a&&a.registerApplication(r,o),s.onDestroy(()=>{this.detachView(s.hostView),Fu(this.components,s),a&&a.unregisterApplication(r)}),this._loadComponent(s),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Fu(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(tu,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(wn(mu),wn(ko),wn(vs),wn(ll),wn(Yc))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();function Fu(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}class Nu{}class Vu{}const Bu={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Hu=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Bu}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,n]=t.split("#");return void 0===n&&(n="default"),i("zn8P")(e).then(t=>t[n]).then(t=>zu(t,e,n)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,n]=t.split("#"),s="NgFactory";return void 0===n&&(n="default",s=""),i("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[n+s]).then(t=>zu(t,e,n))}}return t.\u0275fac=function(e){return new(e||t)(wn(du),wn(Vu,8))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();function zu(t,e,i){if(!t)throw new Error(`Cannot find '${i}' in '${e}'`);return t}const Gu=Du(null,"core",[{provide:Jc,useValue:"unknown"},{provide:Iu,deps:[ko]},{provide:Cu,deps:[]},{provide:eu,deps:[]}]),Uu=[{provide:Lu,useClass:Lu,deps:[mu,ko,vs,ll,Yc]},{provide:oc,deps:[mu],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Yc,useClass:Yc,deps:[[new An,qc]]},{provide:du,useClass:du,deps:[]},Xc,{provide:Dl,useFactory:function(){return zl},deps:[]},{provide:Il,useFactory:function(){return Gl},deps:[]},{provide:iu,useFactory:function(t){return Ka(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new kn(iu),new An,new On]]},{provide:nu,useValue:"USD"}];let ju=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(wn(Lu))},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:Uu}),t})(),Wu=null;function $u(){return Wu}const qu=new en("DocumentToken");let Yu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({factory:Qu,token:t,providedIn:"platform"}),t})();function Qu(){return wn(Ku)}const Xu=new en("Location Initialized");let Ku=(()=>{class t extends Yu{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=$u().getLocation(),this._history=$u().getHistory()}getBaseHrefFromDOM(){return $u().getBaseHref(this._doc)}onPopState(t){$u().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){$u().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,i){Zu()?this._history.pushState(t,e,i):this.location.hash=i}replaceState(t,e,i){Zu()?this._history.replaceState(t,e,i):this.location.hash=i}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(wn(qu))},t.\u0275prov=_t({factory:Ju,token:t,providedIn:"platform"}),t})();function Zu(){return!!window.history.pushState}function Ju(){return new Ku(wn(qu))}function td(t,e){if(0==t.length)return e;if(0==e.length)return t;let i=0;return t.endsWith("/")&&i++,e.startsWith("/")&&i++,2==i?t+e.substring(1):1==i?t+e:t+"/"+e}function ed(t){const e=t.match(/#|\?|$/),i=e&&e.index||t.length;return t.slice(0,i-("/"===t[i-1]?1:0))+t.slice(i)}function id(t){return t&&"?"!==t[0]?"?"+t:t}let nd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({factory:sd,token:t,providedIn:"root"}),t})();function sd(t){const e=wn(qu).location;return new od(wn(Yu),e&&e.origin||"")}const rd=new en("appBaseHref");let od=(()=>{class t extends nd{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return td(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+id(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${e}${i}`:e}pushState(t,e,i,n){const s=this.prepareExternalUrl(i+id(n));this._platformLocation.pushState(t,e,s)}replaceState(t,e,i,n){const s=this.prepareExternalUrl(i+id(n));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(wn(Yu),wn(rd,8))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})(),ad=(()=>{class t extends nd{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=td(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,i,n){let s=this.prepareExternalUrl(i+id(n));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,i,n){let s=this.prepareExternalUrl(i+id(n));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(wn(Yu),wn(rd,8))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})(),ld=(()=>{class t{constructor(t,e){this._subject=new kc,this._urlChangeListeners=[],this._platformStrategy=t;const i=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=ed(ud(i)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+id(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,ud(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",i=null){this._platformStrategy.pushState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+id(e)),i)}replaceState(t,e="",i=null){this._platformStrategy.replaceState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+id(e)),i)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(i=>i(t,e))}subscribe(t,e,i){return this._subject.subscribe({next:t,error:e,complete:i})}}return t.\u0275fac=function(e){return new(e||t)(wn(nd),wn(Yu))},t.normalizeQueryParams=id,t.joinWithSlash=td,t.stripTrailingSlash=ed,t.\u0275prov=_t({factory:cd,token:t,providedIn:"root"}),t})();function cd(){return new ld(wn(nd),wn(Yu))}function ud(t){return t.replace(/\/index.html$/,"")}var dd=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}({}),hd=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),pd=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),md=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),fd=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),gd=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function _d(t,e){return Cd(qa(t)[Qa.DateFormat],e)}function bd(t,e){return Cd(qa(t)[Qa.TimeFormat],e)}function yd(t,e){return Cd(qa(t)[Qa.DateTimeFormat],e)}function vd(t,e){const i=qa(t),n=i[Qa.NumberSymbols][e];if(void 0===n){if(e===gd.CurrencyDecimal)return i[Qa.NumberSymbols][gd.Decimal];if(e===gd.CurrencyGroup)return i[Qa.NumberSymbols][gd.Group]}return n}function wd(t){if(!t[Qa.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[Qa.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Cd(t,e){for(let i=e;i>-1;i--)if(void 0!==t[i])return t[i];throw new Error("Locale data API: locale data undefined")}function xd(t){const[e,i]=t.split(":");return{hours:+e,minutes:+i}}const Sd=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,kd={},Ad=/((?:[^GyYMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|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]*)/;var Od=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),Ed=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}({}),Td=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function Pd(t,e,i,n){let s=function(t){if(Ud(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[e,i=1,n=1]=t.split("-").map(t=>+t);return Dd(e,i-1,n)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(Sd))return function(t){const e=new Date(0);let i=0,n=0;const s=t[8]?e.setUTCFullYear:e.setFullYear,r=t[8]?e.setUTCHours:e.setHours;t[9]&&(i=Number(t[9]+t[10]),n=Number(t[9]+t[11])),s.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const o=Number(t[4]||0)-i,a=Number(t[5]||0)-n,l=Number(t[6]||0),c=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return r.call(e,o,a,l,c),e}(i)}const e=new Date(t);if(!Ud(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=Md(i,e)||e;let r,o=[];for(;e;){if(r=Ad.exec(e),!r){o.push(e);break}{o=o.concat(r.slice(1));const t=o.pop();if(!t)break;e=t}}let a=s.getTimezoneOffset();n&&(a=Gd(n,a),s=function(t,e,i){const n=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(Gd(e,n)-n))}(s,n));let l="";return o.forEach(t=>{const e=function(t){if(zd[t])return zd[t];let e;switch(t){case"G":case"GG":case"GGG":e=Fd(Td.Eras,md.Abbreviated);break;case"GGGG":e=Fd(Td.Eras,md.Wide);break;case"GGGGG":e=Fd(Td.Eras,md.Narrow);break;case"y":e=Ld(Ed.FullYear,1,0,!1,!0);break;case"yy":e=Ld(Ed.FullYear,2,0,!0,!0);break;case"yyy":e=Ld(Ed.FullYear,3,0,!1,!0);break;case"yyyy":e=Ld(Ed.FullYear,4,0,!1,!0);break;case"Y":e=Hd(1);break;case"YY":e=Hd(2,!0);break;case"YYY":e=Hd(3);break;case"YYYY":e=Hd(4);break;case"M":case"L":e=Ld(Ed.Month,1,1);break;case"MM":case"LL":e=Ld(Ed.Month,2,1);break;case"MMM":e=Fd(Td.Months,md.Abbreviated);break;case"MMMM":e=Fd(Td.Months,md.Wide);break;case"MMMMM":e=Fd(Td.Months,md.Narrow);break;case"LLL":e=Fd(Td.Months,md.Abbreviated,pd.Standalone);break;case"LLLL":e=Fd(Td.Months,md.Wide,pd.Standalone);break;case"LLLLL":e=Fd(Td.Months,md.Narrow,pd.Standalone);break;case"w":e=Bd(1);break;case"ww":e=Bd(2);break;case"W":e=Bd(1,!0);break;case"d":e=Ld(Ed.Date,1);break;case"dd":e=Ld(Ed.Date,2);break;case"E":case"EE":case"EEE":e=Fd(Td.Days,md.Abbreviated);break;case"EEEE":e=Fd(Td.Days,md.Wide);break;case"EEEEE":e=Fd(Td.Days,md.Narrow);break;case"EEEEEE":e=Fd(Td.Days,md.Short);break;case"a":case"aa":case"aaa":e=Fd(Td.DayPeriods,md.Abbreviated);break;case"aaaa":e=Fd(Td.DayPeriods,md.Wide);break;case"aaaaa":e=Fd(Td.DayPeriods,md.Narrow);break;case"b":case"bb":case"bbb":e=Fd(Td.DayPeriods,md.Abbreviated,pd.Standalone,!0);break;case"bbbb":e=Fd(Td.DayPeriods,md.Wide,pd.Standalone,!0);break;case"bbbbb":e=Fd(Td.DayPeriods,md.Narrow,pd.Standalone,!0);break;case"B":case"BB":case"BBB":e=Fd(Td.DayPeriods,md.Abbreviated,pd.Format,!0);break;case"BBBB":e=Fd(Td.DayPeriods,md.Wide,pd.Format,!0);break;case"BBBBB":e=Fd(Td.DayPeriods,md.Narrow,pd.Format,!0);break;case"h":e=Ld(Ed.Hours,1,-12);break;case"hh":e=Ld(Ed.Hours,2,-12);break;case"H":e=Ld(Ed.Hours,1);break;case"HH":e=Ld(Ed.Hours,2);break;case"m":e=Ld(Ed.Minutes,1);break;case"mm":e=Ld(Ed.Minutes,2);break;case"s":e=Ld(Ed.Seconds,1);break;case"ss":e=Ld(Ed.Seconds,2);break;case"S":e=Ld(Ed.FractionalSeconds,1);break;case"SS":e=Ld(Ed.FractionalSeconds,2);break;case"SSS":e=Ld(Ed.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Nd(Od.Short);break;case"ZZZZZ":e=Nd(Od.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Nd(Od.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Nd(Od.Long);break;default:return null}return zd[t]=e,e}(t);l+=e?e(s,i,a):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function Dd(t,e,i){const n=new Date(0);return n.setFullYear(t,e,i),n.setHours(0,0,0),n}function Md(t,e){const i=function(t){return qa(t)[Qa.LocaleId]}(t);if(kd[i]=kd[i]||{},kd[i][e])return kd[i][e];let n="";switch(e){case"shortDate":n=_d(t,fd.Short);break;case"mediumDate":n=_d(t,fd.Medium);break;case"longDate":n=_d(t,fd.Long);break;case"fullDate":n=_d(t,fd.Full);break;case"shortTime":n=bd(t,fd.Short);break;case"mediumTime":n=bd(t,fd.Medium);break;case"longTime":n=bd(t,fd.Long);break;case"fullTime":n=bd(t,fd.Full);break;case"short":const e=Md(t,"shortTime"),i=Md(t,"shortDate");n=Id(yd(t,fd.Short),[e,i]);break;case"medium":const s=Md(t,"mediumTime"),r=Md(t,"mediumDate");n=Id(yd(t,fd.Medium),[s,r]);break;case"long":const o=Md(t,"longTime"),a=Md(t,"longDate");n=Id(yd(t,fd.Long),[o,a]);break;case"full":const l=Md(t,"fullTime"),c=Md(t,"fullDate");n=Id(yd(t,fd.Full),[l,c])}return n&&(kd[i][e]=n),n}function Id(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,i){return null!=e&&i in e?e[i]:t})),t}function Rd(t,e,i="-",n,s){let r="";(t<0||s&&t<=0)&&(s?t=1-t:(t=-t,r=i));let o=String(t);for(;o.length0||a>-i)&&(a+=i),t===Ed.Hours)0===a&&-12===i&&(a=12);else if(t===Ed.FractionalSeconds)return l=e,Rd(a,3).substr(0,l);var l;const c=vd(o,gd.MinusSign);return Rd(a,e,c,n,s)}}function Fd(t,e,i=pd.Format,n=!1){return function(s,r){return function(t,e,i,n,s,r){switch(i){case Td.Months:return function(t,e,i){const n=qa(t),s=Cd([n[Qa.MonthsFormat],n[Qa.MonthsStandalone]],e);return Cd(s,i)}(e,s,n)[t.getMonth()];case Td.Days:return function(t,e,i){const n=qa(t),s=Cd([n[Qa.DaysFormat],n[Qa.DaysStandalone]],e);return Cd(s,i)}(e,s,n)[t.getDay()];case Td.DayPeriods:const o=t.getHours(),a=t.getMinutes();if(r){const t=function(t){const e=qa(t);return wd(e),(e[Qa.ExtraData][2]||[]).map(t=>"string"==typeof t?xd(t):[xd(t[0]),xd(t[1])])}(e),i=function(t,e,i){const n=qa(t);wd(n);const s=Cd([n[Qa.ExtraData][0],n[Qa.ExtraData][1]],e)||[];return Cd(s,i)||[]}(e,s,n),r=t.findIndex(t=>{if(Array.isArray(t)){const[e,i]=t,n=o>=e.hours&&a>=e.minutes,s=o0?Math.floor(s/60):Math.ceil(s/60);switch(t){case Od.Short:return(s>=0?"+":"")+Rd(o,2,r)+Rd(Math.abs(s%60),2,r);case Od.ShortGMT:return"GMT"+(s>=0?"+":"")+Rd(o,1,r);case Od.Long:return"GMT"+(s>=0?"+":"")+Rd(o,2,r)+":"+Rd(Math.abs(s%60),2,r);case Od.Extended:return 0===n?"Z":(s>=0?"+":"")+Rd(o,2,r)+":"+Rd(Math.abs(s%60),2,r);default:throw new Error(`Unknown zone width "${t}"`)}}}function Vd(t){return Dd(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function Bd(t,e=!1){return function(i,n){let s;if(e){const t=new Date(i.getFullYear(),i.getMonth(),1).getDay()-1,e=i.getDate();s=1+Math.floor((e+t)/7)}else{const t=Vd(i),e=function(t){const e=Dd(t,0,1).getDay();return Dd(t,0,1+(e<=4?4:11)-e)}(t.getFullYear()),n=t.getTime()-e.getTime();s=1+Math.round(n/6048e5)}return Rd(s,t,vd(n,gd.MinusSign))}}function Hd(t,e=!1){return function(i,n){return Rd(Vd(i).getFullYear(),t,vd(n,gd.MinusSign),e)}}const zd={};function Gd(t,e){t=t.replace(/:/g,"");const i=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(i)?e:i}function Ud(t){return t instanceof Date&&!isNaN(t.valueOf())}const jd=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Wd(t){const e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}class $d{}let qd=(()=>{class t extends $d{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return qa(t)[Qa.PluralCase]}(e||this.locale)(t)){case hd.Zero:return"zero";case hd.One:return"one";case hd.Two:return"two";case hd.Few:return"few";case hd.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(wn(iu))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();function Yd(t,e){e=encodeURIComponent(e);for(const i of t.split(";")){const t=i.indexOf("="),[n,s]=-1==t?[i,""]:[i.slice(0,t),i.slice(t+1)];if(n.trim()===e)return decodeURIComponent(s)}return null}let Qd=(()=>{class t{constructor(t,e,i,n){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=i,this._renderer=n,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Lo(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${at(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)($o(Dl),$o(Il),$o(hl),$o(fl))},t.\u0275dir=ie({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class Xd{constructor(t,e,i,n){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=n}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 Kd=(()=>{class t{constructor(t,e,i){this._viewContainer=t,this._template=e,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const i=this._ngForOf;if(!this._differ&&i)try{this._differ=this._differs.find(i).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${i}' of type '${t=i,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,i,n)=>{if(null==t.previousIndex){const i=this._viewContainer.createEmbeddedView(this._template,new Xd(null,this._ngForOf,-1,-1),null===n?void 0:n),s=new Zd(t,i);e.push(s)}else if(null==n)this._viewContainer.remove(null===i?void 0:i);else if(null!==i){const s=this._viewContainer.get(i);this._viewContainer.move(s,n);const r=new Zd(t,s);e.push(r)}});for(let i=0;i{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)($o(Kl),$o(jl),$o(Dl))},t.\u0275dir=ie({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class Zd{constructor(t,e){this.record=t,this.view=e}}let Jd=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new th,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){eh("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){eh("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)($o(Kl),$o(jl))},t.\u0275dir=ie({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class th{constructor(){this.$implicit=null,this.ngIf=null}}function eh(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${at(e)}'.`)}class ih{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let nh=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e{class t{constructor(t,e,i){this.ngSwitch=i,i._addCase(),this._view=new ih(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)($o(Kl),$o(jl),$o(nh,1))},t.\u0275dir=ie({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),rh=(()=>{class t{constructor(t,e,i){i._addDefault(new ih(t,e))}}return t.\u0275fac=function(e){return new(e||t)($o(Kl),$o(jl),$o(nh,1))},t.\u0275dir=ie({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),oh=(()=>{class t{constructor(t,e,i){this._ngEl=t,this._differs=e,this._renderer=i,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[i,n]=t.split(".");null!=(e=null!=e&&n?`${e}${n}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,i,e):this._renderer.removeStyle(this._ngEl.nativeElement,i)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(Il),$o(fl))},t.\u0275dir=ie({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),ah=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(t){const e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)}_hasContextShapeChanged(t){const e=Object.keys(t.previousValue||{}),i=Object.keys(t.currentValue||{});if(e.length===i.length){for(let t of i)if(-1===e.indexOf(t))return!0;return!1}return!0}_updateExistingContext(t){for(let e of Object.keys(t))this._viewRef.context[e]=this.ngTemplateOutletContext[e]}}return t.\u0275fac=function(e){return new(e||t)($o(Kl))},t.\u0275dir=ie({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[me]}),t})();function lh(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${at(t)}'`)}class ch{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class uh{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const dh=new uh,hh=new ch;let ph=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if(ia(e))return dh;if(na(e))return hh;throw lh(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(function(t=Ot.Default){const e=Bl(!0);if(null!=e||t&Ot.Optional)return e;gt("ChangeDetectorRef")}())},t.\u0275pipe=ne({name:"async",type:t,pure:!1}),t})();const mh=/(?:[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 fh=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw lh(t,e);return e.replace(mh,t=>t[0].toUpperCase()+t.substr(1).toLowerCase())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ne({name:"titlecase",type:t,pure:!0}),t})(),gh=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw lh(t,e);return e.toUpperCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ne({name:"uppercase",type:t,pure:!0}),t})(),_h=(()=>{class t{constructor(t){this.locale=t}transform(e,i="mediumDate",n,s){if(null==e||""===e||e!=e)return null;try{return Pd(e,i,s||this.locale,n)}catch(r){throw lh(t,r.message)}}}return t.\u0275fac=function(e){return new(e||t)($o(iu))},t.\u0275pipe=ne({name:"date",type:t,pure:!0}),t})(),bh=(()=>{class t{constructor(t){this._locale=t}transform(e,i,n){if(!function(t){return!(null==t||""===t||t!=t)}(e))return null;n=n||this._locale;try{return function(t,e,i){return function(t,e,i,n,s,r,o=!1){let a="",l=!1;if(isFinite(t)){let c=function(t){let e,i,n,s,r,o=Math.abs(t)+"",a=0;for((i=o.indexOf("."))>-1&&(o=o.replace(".","")),(n=o.search(/e/i))>0?(i<0&&(i=n),i+=+o.slice(n+1),o=o.substring(0,n)):i<0&&(i=o.length),n=0;"0"===o.charAt(n);n++);if(n===(r=o.length))e=[0],i=1;else{for(r--;"0"===o.charAt(r);)r--;for(i-=n,e=[],s=0;n<=r;n++,s++)e[s]=Number(o.charAt(n))}return i>22&&(e=e.splice(0,21),a=i-1,i=1),{digits:e,exponent:a,integerLen:i}}(t);o&&(c=function(t){if(0===t.digits[0])return t;const e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2),t}(c));let u=e.minInt,d=e.minFrac,h=e.maxFrac;if(r){const t=r.match(jd);if(null===t)throw new Error(`${r} is not a valid digit info`);const e=t[1],i=t[3],n=t[5];null!=e&&(u=Wd(e)),null!=i&&(d=Wd(i)),null!=n?h=Wd(n):null!=i&&d>h&&(h=d)}!function(t,e,i){if(e>i)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${i}).`);let n=t.digits,s=n.length-t.integerLen;const r=Math.min(Math.max(e,s),i);let o=r+t.integerLen,a=n[o];if(o>0){n.splice(Math.max(t.integerLen,o));for(let t=o;t=5)if(o-1<0){for(let e=0;e>o;e--)n.unshift(0),t.integerLen++;n.unshift(1),t.integerLen++}else n[o-1]++;for(;s=c?n.pop():l=!1),e>=10?1:0},0);u&&(n.unshift(u),t.integerLen++)}(c,d,h);let p=c.digits,m=c.integerLen;const f=c.exponent;let g=[];for(l=p.every(t=>!t);m0?g=p.splice(m,p.length):(g=p,p=[0]);const _=[];for(p.length>=e.lgSize&&_.unshift(p.splice(-e.lgSize,p.length).join(""));p.length>e.gSize;)_.unshift(p.splice(-e.gSize,p.length).join(""));p.length&&_.unshift(p.join("")),a=_.join(vd(i,n)),g.length&&(a+=vd(i,s)+g.join("")),f&&(a+=vd(i,gd.Exponential)+"+"+f)}else a=vd(i,gd.Infinity);return a=t<0&&!l?e.negPre+a+e.negSuf:e.posPre+a+e.posSuf,a}(t,function(t,e="-"){const i={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=t.split(";"),s=n[0],r=n[1],o=-1!==s.indexOf(".")?s.split("."):[s.substring(0,s.lastIndexOf("0")+1),s.substring(s.lastIndexOf("0")+1)],a=o[0],l=o[1]||"";i.posPre=a.substr(0,a.indexOf("#"));for(let u=0;u{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:[{provide:$d,useClass:qd}]}),t})();function vh(t){return"browser"===t}function wh(t){return"server"===t}let Ch=(()=>{class t{}return t.\u0275prov=_t({token:t,providedIn:"root",factory:()=>new xh(wn(qu),window)}),t})();class xh{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){var e;if(!this.supportsScrolling())return;const i=null!==(e=this.document.getElementById(t))&&void 0!==e?e:this.document.getElementsByName(t)[0];void 0!==i&&(this.scrollToElement(i),this.attemptFocus(i))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,n=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(i-s[0],n-s[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=Sh(this.window.history)||Sh(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function Sh(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class kh extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new kh,Wu||(Wu=t)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=Oh||(Oh=document.querySelector("base"),Oh)?Oh.getAttribute("href"):null;return null==e?null:(i=e,Ah||(Ah=document.createElement("a")),Ah.setAttribute("href",i),"/"===Ah.pathname.charAt(0)?Ah.pathname:"/"+Ah.pathname);var i}resetBaseElement(){Oh=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return Yd(document.cookie,t)}}let Ah,Oh=null;const Eh=new en("TRANSITION_ID"),Th=[{provide:qc,useFactory:function(t,e,i){return()=>{i.get(Yc).donePromise.then(()=>{const i=$u();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>i.remove(t))})}},deps:[Eh,qu,ko],multi:!0}];class Ph{static init(){var t;t=new Ph,ku=t}addToWindow(t){Vt.getAngularTestability=(e,i=!0)=>{const n=t.findTestabilityInTree(e,i);if(null==n)throw new Error("Could not find testability for element.");return n},Vt.getAllAngularTestabilities=()=>t.getAllTestabilities(),Vt.getAllAngularRootElements=()=>t.getAllRootElements(),Vt.frameworkStabilizers||(Vt.frameworkStabilizers=[]),Vt.frameworkStabilizers.push(t=>{const e=Vt.getAllAngularTestabilities();let i=e.length,n=!1;const s=function(e){n=n||e,i--,0==i&&t(n)};e.forEach(function(t){t.whenStable(s)})})}findTestabilityInTree(t,e,i){if(null==e)return null;const n=t.getTestability(e);return null!=n?n:i?$u().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const Dh=new en("EventManagerPlugins");let Mh=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,i){return this._findPluginFor(e).addEventListener(t,e,i)}addGlobalEventListener(t,e,i){return this._findPluginFor(e).addGlobalEventListener(t,e,i)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const i=this._plugins;for(let n=0;n{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})(),Lh=(()=>{class t extends Rh{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const i=this._doc.createElement("style");i.textContent=t,this._styleNodes.add(e.appendChild(i))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>$u().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(wn(qu))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();const Fh={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/"},Nh=/%COMP%/g;function Vh(t,e,i){for(let n=0;n{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let Hh=(()=>{class t{constructor(t,e,i){this.eventManager=t,this.sharedStylesHost=e,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new zh(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case It.Emulated:{let i=this.rendererByCompId.get(e.id);return i||(i=new Gh(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,i)),i.applyToHost(t),i}case 1:case It.ShadowDom:return new Uh(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=Vh(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(wn(Mh),wn(Lh),wn(Qc))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();class zh{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(Fh[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,i){t&&t.insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,n){if(n){e=n+":"+e;const s=Fh[n];s?t.setAttributeNS(s,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const n=Fh[i];n?t.removeAttributeNS(n,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,n){n&(ks.DashCase|ks.Important)?t.style.setProperty(e,i,n&ks.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&ks.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,Bh(i)):this.eventManager.addEventListener(t,e,Bh(i))}}class Gh extends zh{constructor(t,e,i,n){super(t),this.component=i;const s=Vh(n+"-"+i.id,i.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(Nh,n+"-"+i.id),this.hostAttr="_nghost-%COMP%".replace(Nh,n+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class Uh extends zh{constructor(t,e,i,n){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=Vh(n.id,n.styles,[]);for(let r=0;r{class t extends Ih{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,i){return t.addEventListener(e,i,!1),()=>this.removeEventListener(t,e,i)}removeEventListener(t,e,i){return t.removeEventListener(e,i)}}return t.\u0275fac=function(e){return new(e||t)(wn(qu))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();const Wh=["alt","control","meta","shift"],$h={"\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"},qh={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"},Yh={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Qh=(()=>{class t extends Ih{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,n){const s=t.parseEventName(i),r=t.eventCallback(s.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>$u().onAndCancel(e,s.domEventName,r))}static parseEventName(e){const i=e.toLowerCase().split("."),n=i.shift();if(0===i.length||"keydown"!==n&&"keyup"!==n)return null;const s=t._normalizeKey(i.pop());let r="";if(Wh.forEach(t=>{const e=i.indexOf(t);e>-1&&(i.splice(e,1),r+=t+".")}),r+=s,0!=i.length||0===s.length)return null;const o={};return o.domEventName=n,o.fullKey=r,o}static getEventFullKey(t){let e="",i=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&qh.hasOwnProperty(e)&&(e=qh[e]))}return $h[e]||e}(t);return i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),Wh.forEach(n=>{n!=i&&(0,Yh[n])(t)&&(e+=n+".")}),e+=i,e}static eventCallback(e,i,n){return s=>{t.getEventFullKey(s)===e&&n.runGuarded(()=>i(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(wn(qu))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})(),Xh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({factory:function(){return wn(Kh)},token:t,providedIn:"root"}),t})(),Kh=(()=>{class t extends Xh{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case hs.NONE:return e;case hs.HTML:return zn(e,"HTML")?Hn(e):us(this._doc,String(e)).toString();case hs.STYLE:return zn(e,"Style")?Hn(e):e;case hs.SCRIPT:if(zn(e,"Script"))return Hn(e);throw new Error("unsafe value used in a script context");case hs.URL:return Gn(e),zn(e,"URL")?Hn(e):qn(String(e));case hs.RESOURCE_URL:if(zn(e,"ResourceURL"))return Hn(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return new Ln(t)}bypassSecurityTrustStyle(t){return new Fn(t)}bypassSecurityTrustScript(t){return new Nn(t)}bypassSecurityTrustUrl(t){return new Vn(t)}bypassSecurityTrustResourceUrl(t){return new Bn(t)}}return t.\u0275fac=function(e){return new(e||t)(wn(qu))},t.\u0275prov=_t({factory:function(){return t=wn(lo),new Kh(t.get(qu));var t},token:t,providedIn:"root"}),t})();const Zh=Du(Gu,"browser",[{provide:Jc,useValue:"browser"},{provide:Zc,useValue:function(){kh.makeCurrent(),Ph.init()},multi:!0},{provide:qu,useFactory:function(){return function(t){ye=t}(document),document},deps:[]}]),Jh=[[],{provide:uo,useValue:"root"},{provide:vs,useFactory:function(){return new vs},deps:[]},{provide:Dh,useClass:jh,multi:!0,deps:[qu,mu,Jc]},{provide:Dh,useClass:Qh,multi:!0,deps:[qu]},[],{provide:Hh,useClass:Hh,deps:[Mh,Lh,Qc]},{provide:ml,useExisting:Hh},{provide:Rh,useExisting:Lh},{provide:Lh,useClass:Lh,deps:[qu]},{provide:wu,useClass:wu,deps:[mu]},{provide:Mh,useClass:Mh,deps:[Dh,mu]},[]];let tp=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:Qc,useValue:e.appId},{provide:Eh,useExisting:Qc},Th]}}}return t.\u0275fac=function(e){return new(e||t)(wn(t,12))},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:Jh,imports:[yh,ju]}),t})();function ep(){return new ip(wn(qu))}let ip=(()=>{class t{constructor(t){this._doc=t,this._dom=$u()}addTag(t,e=!1){return t?this._getOrCreateElement(t,e):null}addTags(t,e=!1){return t?t.reduce((t,i)=>(i&&t.push(this._getOrCreateElement(i,e)),t),[]):[]}getTag(t){return t&&this._doc.querySelector(`meta[${t}]`)||null}getTags(t){if(!t)return[];const e=this._doc.querySelectorAll(`meta[${t}]`);return e?[].slice.call(e):[]}updateTag(t,e){if(!t)return null;e=e||this._parseSelector(t);const i=this.getTag(e);return i?this._setMetaElementAttributes(t,i):this._getOrCreateElement(t,!0)}removeTag(t){this.removeTagElement(this.getTag(t))}removeTagElement(t){t&&this._dom.remove(t)}_getOrCreateElement(t,e=!1){if(!e){const e=this._parseSelector(t),i=this.getTag(e);if(i&&this._containsAttributes(t,i))return i}const i=this._dom.createElement("meta");return this._setMetaElementAttributes(t,i),this._doc.getElementsByTagName("head")[0].appendChild(i),i}_setMetaElementAttributes(t,e){return Object.keys(t).forEach(i=>e.setAttribute(this._getMetaKeyMap(i),t[i])),e}_parseSelector(t){const e=t.name?"name":"property";return`${e}="${t[e]}"`}_containsAttributes(t,e){return Object.keys(t).every(i=>e.getAttribute(this._getMetaKeyMap(i))===t[i])}_getMetaKeyMap(t){return np[t]||t}}return t.\u0275fac=function(e){return new(e||t)(wn(qu))},t.\u0275prov=_t({factory:ep,token:t,providedIn:"root"}),t})();const np={httpEquiv:"http-equiv"};function sp(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(t);s=0;a--)(s=t[a])&&(o=(r<3?s(o):r>3?s(e,i,o):s(e,i))||o);return r>3&&o&&Object.defineProperty(e,i,o),o}function op(t,e){return function(i,n){e(i,n,t)}}function ap(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function lp(t,e,i,n){return new(i||(i=Promise))(function(s,r){function o(t){try{l(n.next(t))}catch(e){r(e)}}function a(t){try{l(n.throw(t))}catch(e){r(e)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(o,a)}l((n=n.apply(t,e||[])).next())})}"undefined"!=typeof window&&window;class cp extends k{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new C;return this._value}next(t){super.next(this._value=t)}}class up extends d{constructor(t,e){super()}schedule(t,e=0){return this}}class dp extends up{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,n=!1;try{this.work(t)}catch(s){n=!0,i=!!s&&s||new Error(s)}if(n)return this.unsubscribe(),i}_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 hp=(()=>{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 pp extends hp{constructor(t,e=hp.now){super(t,()=>pp.delegate&&pp.delegate!==this?pp.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return pp.delegate&&pp.delegate!==this?pp.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 mp=new pp(dp);function fp(t){return!l(t)&&t-parseFloat(t)+1>=0}function gp(t=0,e,i){let n=-1;return fp(e)?n=Number(e)<1?1:Number(e):O(e)&&(i=e),O(i)||(i=mp),new v(e=>{const s=fp(t)?t:+t-i.now();return i.schedule(_p,s,{index:0,period:n,subscriber:e})})}function _p(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 bp(t,e,i){return i?bp(t,e).pipe(E(t=>l(t)?i(...t):i(t))):new v(i=>{const s=(...t)=>i.next(1===t.length?t[0]:t);let r;try{r=t(s)}catch(o){return void i.error(o)}if(n(e))return()=>e(s,r)})}class yp extends dp{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 vp extends pp{}const wp=new vp(yp),Cp=new v(t=>t.complete());function xp(t){return t?function(t){return new v(e=>t.schedule(()=>e.complete()))}(t):Cp}function Sp(...t){let e=t[t.length-1];return O(e)?(t.pop(),N(t,e)):q(t)}function kp(t,e){return new v(e?i=>e.schedule(Ap,0,{error:t,subscriber:i}):e=>e.error(t))}function Ap({error:t,subscriber:e}){e.error(t)}let Op=(()=>{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 Sp(this.value);case"E":return kp(this.error);case"C":return xp()}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 Ep extends m{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(Ep.dispatch,this.delay,new Tp(t,this.destination)))}_next(t){this.scheduleMessage(Op.createNext(t))}_error(t){this.scheduleMessage(Op.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(Op.createComplete()),this.unsubscribe()}}class Tp{constructor(t,e){this.notification=t,this.destination=e}}class Pp extends k{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){if(!this.isStopped){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift()}super.next(t)}nextTimeWindow(t){this.isStopped||(this._events.push(new Dp(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 r;if(this.closed)throw new C;if(this.isStopped||this.hasError?r=d.EMPTY:(this.observers.push(t),r=new x(this,t)),n&&t.add(t=new Ep(t,n)),e)for(let o=0;oe&&(r=Math.max(r,s-e)),r>0&&n.splice(0,r),n}}class Dp{constructor(t,e){this.time=t,this.value=e}}class Mp{constructor(t){this.notifier=t}call(t,e){const i=new Ip(t),n=e.subscribe(i);return n.add(z(this.notifier,new B(i))),n}}class Ip extends H{constructor(){super(...arguments),this.hasValue=!1}_next(t){this.value=t,this.hasValue=!0}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))}}function Rp(t,e){return"function"==typeof e?i=>i.pipe(Rp((i,n)=>V(t(i,n)).pipe(E((t,s)=>e(i,t,n,s))))):e=>e.lift(new Lp(t))}class Lp{constructor(t){this.project=t}call(t,e){return e.subscribe(new Fp(t,this.project))}}class Fp extends H{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)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const i=new B(this),n=this.destination;n.add(i),this.innerSubscription=z(t,i),this.innerSubscription!==i&&n.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}function Np(t,e){return i=>i.lift(new Vp(t,e))}class Vp{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new Bp(t,this.compare,this.keySelector))}}class Bp extends m{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))}}function Hp(t){return e=>e.lift(new zp(t))}class zp{constructor(t){this.notifier=t}call(t,e){const i=new Gp(t),n=z(this.notifier,new B(i));return n&&!i.seenValue?(i.add(n),e.subscribe(i)):i}}class Gp extends H{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function Up(...t){return $(1)(Sp(...t))}function jp(...t){const e=t[t.length-1];return O(e)?(t.pop(),i=>Up(t,i,e)):e=>Up(t,e)}function Wp(t){return e=>e.lift(new $p(t))}class $p{constructor(t){this.total=t}call(t,e){return e.subscribe(new qp(t,this.total))}}class qp extends m{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}const Yp=["*"];let Qp=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({token:t,factory:function(e){return t.\u0275fac(e)}}),t})(),Xp=(()=>{let t=class{constructor(t,e){this._loader=t,this._zone=e,this._map=new Promise(t=>{this._mapResolver=t})}createMap(t,e){return this._zone.runOutsideAngular(()=>this._loader.load().then(()=>{const i=new google.maps.Map(t,e);this._mapResolver(i)}))}setMapOptions(t){return this._zone.runOutsideAngular(()=>{this._map.then(e=>{e.setOptions(t)})})}createMarker(t={},e=!0){return this._zone.runOutsideAngular(()=>this._map.then(i=>(e&&(t.map=i),new google.maps.Marker(t))))}createInfoWindow(t){return this._zone.runOutsideAngular(()=>this._map.then(()=>new google.maps.InfoWindow(t)))}createCircle(t){return this._zone.runOutsideAngular(()=>this._map.then(e=>("string"==typeof t.strokePosition&&(t.strokePosition=google.maps.StrokePosition[t.strokePosition]),t.map=e,new google.maps.Circle(t))))}createRectangle(t){return this._zone.runOutsideAngular(()=>this._map.then(e=>(t.map=e,new google.maps.Rectangle(t))))}createPolyline(t){return this._zone.runOutsideAngular(()=>this.getNativeMap().then(e=>{let i=new google.maps.Polyline(t);return i.setMap(e),i}))}createPolygon(t){return this._zone.runOutsideAngular(()=>this.getNativeMap().then(e=>{let i=new google.maps.Polygon(t);return i.setMap(e),i}))}createDataLayer(t){return this._zone.runOutsideAngular(()=>this._map.then(e=>{let i=new google.maps.Data(t);return i.setMap(e),i}))}createTransitLayer(t){return this._zone.runOutsideAngular(()=>this._map.then(e=>{let i=new google.maps.TransitLayer;return i.setMap(t.visible?e:null),i}))}createBicyclingLayer(t){return this._zone.runOutsideAngular(()=>this._map.then(e=>{let i=new google.maps.BicyclingLayer;return i.setMap(t.visible?e:null),i}))}containsLocation(t,e){return google.maps.geometry.poly.containsLocation(t,e)}subscribeToMapEvent(t){return new v(e=>{this._map.then(i=>{i.addListener(t,t=>{this._zone.run(()=>e.next(t))})})})}clearInstanceListeners(){return this._zone.runOutsideAngular(()=>{this._map.then(t=>{google.maps.event.clearInstanceListeners(t)})})}setCenter(t){return this._zone.runOutsideAngular(()=>this._map.then(e=>e.setCenter(t)))}getZoom(){return this._zone.runOutsideAngular(()=>this._map.then(t=>t.getZoom()))}getBounds(){return this._zone.runOutsideAngular(()=>this._map.then(t=>t.getBounds()))}getMapTypeId(){return this._zone.runOutsideAngular(()=>this._map.then(t=>t.getMapTypeId()))}setZoom(t){return this._zone.runOutsideAngular(()=>this._map.then(e=>e.setZoom(t)))}getCenter(){return this._zone.runOutsideAngular(()=>this._map.then(t=>t.getCenter()))}panTo(t){return this._zone.runOutsideAngular(()=>this._map.then(e=>e.panTo(t)))}panBy(t,e){return this._zone.runOutsideAngular(()=>this._map.then(i=>i.panBy(t,e)))}fitBounds(t,e){return this._zone.runOutsideAngular(()=>this._map.then(i=>i.fitBounds(t,e)))}panToBounds(t,e){return this._zone.runOutsideAngular(()=>this._map.then(i=>i.panToBounds(t,e)))}getNativeMap(){return this._map}triggerMapEvent(t){return this._map.then(e=>google.maps.event.trigger(e,t))}};return t.\u0275fac=function(e){return new(e||t)(wn(Qp),wn(mu))},t.\u0275prov=_t({token:t,factory:function(e){return t.\u0275fac(e)}}),t=rp([ap("design:paramtypes",[Qp,mu])],t),t})(),Kp=(()=>{let t=class{constructor(t){this._wrapper=t,this._layers=new Map}addTransitLayer(t,e){const i=this._wrapper.createTransitLayer(e);this._layers.set(t,i)}addBicyclingLayer(t,e){const i=this._wrapper.createBicyclingLayer(e);this._layers.set(t,i)}deleteLayer(t){return this._layers.get(t).then(e=>{e.setMap(null),this._layers.delete(t)})}toggleLayerVisibility(t,e){return this._layers.get(t).then(t=>e.visible?this._wrapper.getNativeMap().then(e=>{t.setMap(e)}):void t.setMap(null))}};return t.\u0275fac=function(e){return new(e||t)(wn(Xp))},t.\u0275prov=_t({token:t,factory:function(e){return t.\u0275fac(e)}}),t=rp([ap("design:paramtypes",[Xp])],t),t})(),Zp=(()=>{let t=class{constructor(t,e){this._apiWrapper=t,this._zone=e,this._circles=new Map}addCircle(t){this._circles.set(t,this._apiWrapper.createCircle({center:{lat:t.latitude,lng:t.longitude},clickable:t.clickable,draggable:t.draggable,editable:t.editable,fillColor:t.fillColor,fillOpacity:t.fillOpacity,radius:t.radius,strokeColor:t.strokeColor,strokeOpacity:t.strokeOpacity,strokePosition:t.strokePosition,strokeWeight:t.strokeWeight,visible:t.visible,zIndex:t.zIndex}))}removeCircle(t){return this._circles.get(t).then(e=>{e.setMap(null),this._circles.delete(t)})}setOptions(t,e){return this._circles.get(t).then(t=>{"string"==typeof e.strokePosition&&(e.strokePosition=google.maps.StrokePosition[e.strokePosition]),t.setOptions(e)})}getBounds(t){return this._circles.get(t).then(t=>t.getBounds())}getCenter(t){return this._circles.get(t).then(t=>t.getCenter())}getRadius(t){return this._circles.get(t).then(t=>t.getRadius())}setCenter(t){return this._circles.get(t).then(e=>e.setCenter({lat:t.latitude,lng:t.longitude}))}setEditable(t){return this._circles.get(t).then(e=>e.setEditable(t.editable))}setDraggable(t){return this._circles.get(t).then(e=>e.setDraggable(t.draggable))}setVisible(t){return this._circles.get(t).then(e=>e.setVisible(t.visible))}setRadius(t){return this._circles.get(t).then(e=>e.setRadius(t.radius))}getNativeCircle(t){return this._circles.get(t)}createEventObservable(t,e){return new v(i=>{let n=null;return this._circles.get(e).then(e=>{n=e.addListener(t,t=>this._zone.run(()=>i.next(t)))}),()=>{null!==n&&n.remove()}})}};return t.\u0275fac=function(e){return new(e||t)(wn(Xp),wn(mu))},t.\u0275prov=_t({token:t,factory:function(e){return t.\u0275fac(e)}}),t=rp([ap("design:paramtypes",[Xp,mu])],t),t})();var Jp;let tm=(()=>{let t=Jp=class{constructor(t){this._manager=t,this.clickable=!0,this.draggable=!1,this.editable=!1,this.radius=0,this.strokePosition="CENTER",this.strokeWeight=0,this.visible=!0,this.centerChange=new kc,this.circleClick=new kc,this.circleDblClick=new kc,this.drag=new kc,this.dragEnd=new kc,this.dragStart=new kc,this.mouseDown=new kc,this.mouseMove=new kc,this.mouseOut=new kc,this.mouseOver=new kc,this.mouseUp=new kc,this.radiusChange=new kc,this.rightClick=new kc,this._circleAddedToManager=!1,this._eventSubscriptions=[]}ngOnInit(){this._manager.addCircle(this),this._circleAddedToManager=!0,this._registerEventListeners()}ngOnChanges(t){this._circleAddedToManager&&((t.latitude||t.longitude)&&this._manager.setCenter(this),t.editable&&this._manager.setEditable(this),t.draggable&&this._manager.setDraggable(this),t.visible&&this._manager.setVisible(this),t.radius&&this._manager.setRadius(this),this._updateCircleOptionsChanges(t))}_updateCircleOptionsChanges(t){let e={},i=Object.keys(t).filter(t=>-1!==Jp._mapOptions.indexOf(t));i.forEach(i=>{e[i]=t[i].currentValue}),i.length>0&&this._manager.setOptions(this,e)}_registerEventListeners(){let t=new Map;t.set("center_changed",this.centerChange),t.set("click",this.circleClick),t.set("dblclick",this.circleDblClick),t.set("drag",this.drag),t.set("dragend",this.dragEnd),t.set("dragstart",this.dragStart),t.set("mousedown",this.mouseDown),t.set("mousemove",this.mouseMove),t.set("mouseout",this.mouseOut),t.set("mouseover",this.mouseOver),t.set("mouseup",this.mouseUp),t.set("radius_changed",this.radiusChange),t.set("rightclick",this.rightClick),t.forEach((t,e)=>{this._eventSubscriptions.push(this._manager.createEventObservable(e,this).subscribe(i=>{switch(e){case"radius_changed":this._manager.getRadius(this).then(e=>t.emit(e));break;case"center_changed":this._manager.getCenter(this).then(e=>t.emit({lat:e.lat(),lng:e.lng()}));break;default:t.emit({coords:{lat:i.latLng.lat(),lng:i.latLng.lng()}})}}))})}ngOnDestroy(){this._eventSubscriptions.forEach(function(t){t.unsubscribe()}),this._eventSubscriptions=null,this._manager.removeCircle(this)}getBounds(){return this._manager.getBounds(this)}getCenter(){return this._manager.getCenter(this)}};return t.\u0275fac=function(e){return new(e||t)($o(Zp))},t.\u0275dir=ie({type:t,selectors:[["agm-circle"]],inputs:{clickable:"clickable",draggable:["circleDraggable","draggable"],editable:"editable",radius:"radius",strokePosition:"strokePosition",strokeWeight:"strokeWeight",visible:"visible",latitude:"latitude",longitude:"longitude",fillColor:"fillColor",fillOpacity:"fillOpacity",strokeColor:"strokeColor",strokeOpacity:"strokeOpacity",zIndex:"zIndex"},outputs:{centerChange:"centerChange",circleClick:"circleClick",circleDblClick:"circleDblClick",drag:"drag",dragEnd:"dragEnd",dragStart:"dragStart",mouseDown:"mouseDown",mouseMove:"mouseMove",mouseOut:"mouseOut",mouseOver:"mouseOver",mouseUp:"mouseUp",radiusChange:"radiusChange",rightClick:"rightClick"},features:[me]}),t._mapOptions=["fillColor","fillOpacity","strokeColor","strokeOpacity","strokePosition","strokeWeight","visible","zIndex","clickable"],t=Jp=rp([ap("design:paramtypes",[Zp])],t),t})(),em=(()=>{let t=class{constructor(t,e){this._wrapper=t,this._zone=e,this._layers=new Map}addDataLayer(t){const e=this._wrapper.createDataLayer({style:t.style}).then(e=>(t.geoJson&&this.getDataFeatures(e,t.geoJson).then(t=>e.features=t),e));this._layers.set(t,e)}deleteDataLayer(t){this._layers.get(t).then(e=>{e.setMap(null),this._layers.delete(t)})}updateGeoJson(t,e){this._layers.get(t).then(t=>{t.forEach(function(e){t.remove(e);var i=t.features.indexOf(e,0);i>-1&&t.features.splice(i,1)}),this.getDataFeatures(t,e).then(e=>t.features=e)})}setDataOptions(t,e){this._layers.get(t).then(t=>{t.setControlPosition(e.controlPosition),t.setControls(e.controls),t.setDrawingMode(e.drawingMode),t.setStyle(e.style)})}createEventObservable(t,e){return new v(i=>{this._layers.get(e).then(e=>{e.addListener(t,t=>this._zone.run(()=>i.next(t)))})})}getDataFeatures(t,e){return new Promise((i,n)=>{if("object"==typeof e)try{i(t.addGeoJson(e))}catch(s){n(s)}else"string"==typeof e?t.loadGeoJson(e,null,i):n("Impossible to extract features from geoJson: wrong argument type")})}};return t.\u0275fac=function(e){return new(e||t)(wn(Xp),wn(mu))},t.\u0275prov=_t({token:t,factory:function(e){return t.\u0275fac(e)}}),t=rp([ap("design:paramtypes",[Xp,mu])],t),t})();class im{}let nm=(()=>{let t=class{constructor(t){var e;this._boundsChangeSampleTime$=new cp(200),this._includeInBounds$=new cp(new Map),this.bounds$=V(t.load()).pipe(W(()=>this._includeInBounds$),(e=this._boundsChangeSampleTime$.pipe(Rp(t=>gp(0,t))),t=>t.lift(new Mp(e))),E(t=>this._generateBounds(t)),function(t,e,i){let n;return n={bufferSize:1,windowTime:void 0,refCount:!1,scheduler:void 0},t=>t.lift(function({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:i,scheduler:n}){let s,r,o=0,a=!1,l=!1;return function(c){let u;o++,!s||a?(a=!1,s=new Pp(t,e,n),u=s.subscribe(this),r=c.subscribe({next(t){s.next(t)},error(t){a=!0,s.error(t)},complete(){l=!0,r=void 0,s.complete()}}),l&&(r=void 0)):u=s.subscribe(this),this.add(()=>{o--,u.unsubscribe(),u=void 0,r&&!l&&i&&0===o&&(r.unsubscribe(),r=void 0,s=void 0)})}}(n))}())}_generateBounds(t){const e=new google.maps.LatLngBounds;return t.forEach(t=>e.extend(t)),e}addToBounds(t){const e=this._createIdentifier(t);if(this._includeInBounds$.value.has(e))return;const i=this._includeInBounds$.value;i.set(e,t),this._includeInBounds$.next(i)}removeFromBounds(t){const e=this._includeInBounds$.value;e.delete(this._createIdentifier(t)),this._includeInBounds$.next(e)}changeFitBoundsChangeSampleTime(t){this._boundsChangeSampleTime$.next(t)}getBounds$(){return this.bounds$}_createIdentifier(t){return`${t.lat}+${t.lng}`}};return t.\u0275fac=function(e){return new(e||t)(wn(Qp))},t.\u0275prov=_t({token:t,factory:function(e){return t.\u0275fac(e)}}),t=rp([ap("design:paramtypes",[Qp])],t),t})(),sm=(()=>{let t=class{constructor(t,e){this._mapsWrapper=t,this._zone=e,this._markers=new Map}convertAnimation(t){return lp(this,void 0,void 0,function*(){return null===t?null:this._mapsWrapper.getNativeMap().then(()=>google.maps.Animation[t])})}deleteMarker(t){const e=this._markers.get(t);return null==e?Promise.resolve():e.then(e=>this._zone.run(()=>{e.setMap(null),this._markers.delete(t)}))}updateMarkerPosition(t){return this._markers.get(t).then(e=>e.setPosition({lat:t.latitude,lng:t.longitude}))}updateTitle(t){return this._markers.get(t).then(e=>e.setTitle(t.title))}updateLabel(t){return this._markers.get(t).then(e=>{e.setLabel(t.label)})}updateDraggable(t){return this._markers.get(t).then(e=>e.setDraggable(t.draggable))}updateIcon(t){return this._markers.get(t).then(e=>e.setIcon(t.iconUrl))}updateOpacity(t){return this._markers.get(t).then(e=>e.setOpacity(t.opacity))}updateVisible(t){return this._markers.get(t).then(e=>e.setVisible(t.visible))}updateZIndex(t){return this._markers.get(t).then(e=>e.setZIndex(t.zIndex))}updateClickable(t){return this._markers.get(t).then(e=>e.setClickable(t.clickable))}updateAnimation(t){return lp(this,void 0,void 0,function*(){(yield this._markers.get(t)).setAnimation(yield this.convertAnimation(t.animation))})}addMarker(t){const e=new Promise(e=>lp(this,void 0,void 0,function*(){return this._mapsWrapper.createMarker({position:{lat:t.latitude,lng:t.longitude},label:t.label,draggable:t.draggable,icon:t.iconUrl,opacity:t.opacity,visible:t.visible,zIndex:t.zIndex,title:t.title,clickable:t.clickable,animation:yield this.convertAnimation(t.animation)}).then(e)}));this._markers.set(t,e)}getNativeMarker(t){return this._markers.get(t)}createEventObservable(t,e){return new v(i=>{this._markers.get(e).then(e=>{e.addListener(t,t=>this._zone.run(()=>i.next(t)))})})}};return t.\u0275fac=function(e){return new(e||t)(wn(Xp),wn(mu))},t.\u0275prov=_t({token:t,factory:function(e){return t.\u0275fac(e)}}),t=rp([ap("design:paramtypes",[Xp,mu])],t),t})(),rm=(()=>{let t=class{constructor(t,e,i){this._mapsWrapper=t,this._zone=e,this._markerManager=i,this._infoWindows=new Map}deleteInfoWindow(t){const e=this._infoWindows.get(t);return null==e?Promise.resolve():e.then(e=>this._zone.run(()=>{e.close(),this._infoWindows.delete(t)}))}setPosition(t){return this._infoWindows.get(t).then(e=>e.setPosition({lat:t.latitude,lng:t.longitude}))}setZIndex(t){return this._infoWindows.get(t).then(e=>e.setZIndex(t.zIndex))}open(t){return this._infoWindows.get(t).then(e=>null!=t.hostMarker?this._markerManager.getNativeMarker(t.hostMarker).then(t=>this._mapsWrapper.getNativeMap().then(i=>e.open(i,t))):this._mapsWrapper.getNativeMap().then(t=>e.open(t)))}close(t){return this._infoWindows.get(t).then(t=>t.close())}setOptions(t,e){return this._infoWindows.get(t).then(t=>t.setOptions(e))}addInfoWindow(t){const e={content:t.content,maxWidth:t.maxWidth,zIndex:t.zIndex,disableAutoPan:t.disableAutoPan};"number"==typeof t.latitude&&"number"==typeof t.longitude&&(e.position={lat:t.latitude,lng:t.longitude});const i=this._mapsWrapper.createInfoWindow(e);this._infoWindows.set(t,i)}createEventObservable(t,e){return new v(i=>{this._infoWindows.get(e).then(e=>{e.addListener(t,t=>this._zone.run(()=>i.next(t)))})})}};return t.\u0275fac=function(e){return new(e||t)(wn(Xp),wn(mu),wn(sm))},t.\u0275prov=_t({token:t,factory:function(e){return t.\u0275fac(e)}}),t=rp([ap("design:paramtypes",[Xp,mu,sm])],t),t})();var om;let am=0,lm=(()=>{let t=om=class{constructor(t,e){this._infoWindowManager=t,this._el=e,this.isOpen=!1,this.infoWindowClose=new kc,this._infoWindowAddedToManager=!1,this._id=(am++).toString()}ngOnInit(){this.content=this._el.nativeElement.querySelector(".agm-info-window-content"),this._infoWindowManager.addInfoWindow(this),this._infoWindowAddedToManager=!0,this._updateOpenState(),this._registerEventListeners()}ngOnChanges(t){this._infoWindowAddedToManager&&((t.latitude||t.longitude)&&"number"==typeof this.latitude&&"number"==typeof this.longitude&&this._infoWindowManager.setPosition(this),t.zIndex&&this._infoWindowManager.setZIndex(this),t.isOpen&&this._updateOpenState(),this._setInfoWindowOptions(t))}_registerEventListeners(){this._infoWindowManager.createEventObservable("closeclick",this).subscribe(()=>{this.isOpen=!1,this.infoWindowClose.emit()})}_updateOpenState(){this.isOpen?this.open():this.close()}_setInfoWindowOptions(t){let e={};Object.keys(t).filter(t=>-1!==om._infoWindowOptionsInputs.indexOf(t)).forEach(i=>{e[i]=t[i].currentValue}),this._infoWindowManager.setOptions(this,e)}open(){return this._infoWindowManager.open(this)}close(){return this._infoWindowManager.close(this).then(()=>{this.infoWindowClose.emit()})}id(){return this._id}toString(){return"AgmInfoWindow-"+this._id.toString()}ngOnDestroy(){this._infoWindowManager.deleteInfoWindow(this)}};return t.\u0275fac=function(e){return new(e||t)($o(rm),$o(hl))},t.\u0275cmp=Xt({type:t,selectors:[["agm-info-window"]],inputs:{isOpen:"isOpen",latitude:"latitude",longitude:"longitude",disableAutoPan:"disableAutoPan",zIndex:"zIndex",maxWidth:"maxWidth"},outputs:{infoWindowClose:"infoWindowClose"},features:[me],ngContentSelectors:Yp,decls:2,vars:0,consts:[[1,"agm-info-window-content"]],template:function(t,e){1&t&&(ha(),Qo(0,"div",0),pa(1),Xo())},encapsulation:2}),t._infoWindowOptionsInputs=["disableAutoPan","maxWidth"],t=om=rp([ap("design:paramtypes",[rm,hl])],t),t})(),cm=(()=>{let t=class{constructor(t,e){this._wrapper=t,this._zone=e,this._layers=new Map}addKmlLayer(t){const e=this._wrapper.getNativeMap().then(e=>new google.maps.KmlLayer({clickable:t.clickable,map:e,preserveViewport:t.preserveViewport,screenOverlays:t.screenOverlays,suppressInfoWindows:t.suppressInfoWindows,url:t.url,zIndex:t.zIndex}));this._layers.set(t,e)}setOptions(t,e){this._layers.get(t).then(t=>t.setOptions(e))}deleteKmlLayer(t){this._layers.get(t).then(e=>{e.setMap(null),this._layers.delete(t)})}createEventObservable(t,e){return new v(i=>{this._layers.get(e).then(e=>{e.addListener(t,t=>this._zone.run(()=>i.next(t)))})})}};return t.\u0275fac=function(e){return new(e||t)(wn(Xp),wn(mu))},t.\u0275prov=_t({token:t,factory:function(e){return t.\u0275fac(e)}}),t=rp([ap("design:paramtypes",[Xp,mu])],t),t})();function um(t){const e=["insert_at","remove_at","set_at"];return bp(i=>e.map(e=>t.addListener(e,(n,s)=>i.apply(t,[{newArr:t.getArray(),evName:e,index:n,previous:s}]))),(t,e)=>e.forEach(t=>t.remove()))}let dm=(()=>{let t=class{constructor(t,e){this._mapsWrapper=t,this._zone=e,this._polygons=new Map}addPolygon(t){const e=this._mapsWrapper.createPolygon({clickable:t.clickable,draggable:t.draggable,editable:t.editable,fillColor:t.fillColor,fillOpacity:t.fillOpacity,geodesic:t.geodesic,paths:t.paths,strokeColor:t.strokeColor,strokeOpacity:t.strokeOpacity,strokeWeight:t.strokeWeight,visible:t.visible,zIndex:t.zIndex});this._polygons.set(t,e)}updatePolygon(t){const e=this._polygons.get(t);return null==e?Promise.resolve():e.then(e=>this._zone.run(()=>{e.setPaths(t.paths)}))}setPolygonOptions(t,e){return this._polygons.get(t).then(t=>{t.setOptions(e)})}deletePolygon(t){const e=this._polygons.get(t);return null==e?Promise.resolve():e.then(e=>this._zone.run(()=>{e.setMap(null),this._polygons.delete(t)}))}getPath(t){return this._polygons.get(t).then(t=>t.getPath().getArray())}getPaths(t){return this._polygons.get(t).then(t=>t.getPaths().getArray().map(t=>t.getArray()))}createEventObservable(t,e){return new v(i=>{this._polygons.get(e).then(e=>{e.addListener(t,t=>this._zone.run(()=>i.next(t)))})})}createPathEventObservable(t){return lp(this,void 0,void 0,function*(){const e=(yield this._polygons.get(t)).getPaths();return um(e).pipe(jp({newArr:e.getArray()}),Rp(t=>Y(...t.newArr.map((e,i)=>um(e).pipe(E(e=>({parentMVEvent:t,chMVCEvent:e,pathIndex:i}))))).pipe(jp({parentMVEvent:t,chMVCEvent:null,pathIndex:null}))),Wp(1),E(({parentMVEvent:t,chMVCEvent:e,pathIndex:i})=>{let n;return e?(n={newArr:t.newArr.map(t=>t.getArray().map(t=>t.toJSON())),pathIndex:i,eventName:e.evName,index:e.index},e.previous&&(n.previous=e.previous)):(n={newArr:t.newArr.map(t=>t.getArray().map(t=>t.toJSON())),eventName:t.evName,index:t.index},t.previous&&(n.previous=t.previous.getArray())),n}))})}};return t.\u0275fac=function(e){return new(e||t)(wn(Xp),wn(mu))},t.\u0275prov=_t({token:t,factory:function(e){return t.\u0275fac(e)}}),t=rp([ap("design:paramtypes",[Xp,mu])],t),t})();var hm;let pm=(()=>{let t=hm=class{constructor(t,e){this._mapsWrapper=t,this._zone=e,this._polylines=new Map}static _convertPoints(t){return t._getPoints().map(t=>({lat:t.latitude,lng:t.longitude}))}static _convertPath(t){const e=google.maps.SymbolPath[t];return"number"==typeof e?e:t}static _convertIcons(t){const e=t._getIcons().map(t=>({fixedRotation:t.fixedRotation,offset:t.offset,repeat:t.repeat,icon:{anchor:new google.maps.Point(t.anchorX,t.anchorY),fillColor:t.fillColor,fillOpacity:t.fillOpacity,path:hm._convertPath(t.path),rotation:t.rotation,scale:t.scale,strokeColor:t.strokeColor,strokeOpacity:t.strokeOpacity,strokeWeight:t.strokeWeight}}));return e.forEach(t=>{Object.entries(t).forEach(([e,i])=>{void 0===i&&delete t[e]}),void 0!==t.icon.anchor.x&&void 0!==t.icon.anchor.y||delete t.icon.anchor}),e}addPolyline(t){const e=this._mapsWrapper.getNativeMap().then(()=>[hm._convertPoints(t),hm._convertIcons(t)]).then(([e,i])=>this._mapsWrapper.createPolyline({clickable:t.clickable,draggable:t.draggable,editable:t.editable,geodesic:t.geodesic,strokeColor:t.strokeColor,strokeOpacity:t.strokeOpacity,strokeWeight:t.strokeWeight,visible:t.visible,zIndex:t.zIndex,path:e,icons:i}));this._polylines.set(t,e)}updatePolylinePoints(t){const e=hm._convertPoints(t),i=this._polylines.get(t);return null==i?Promise.resolve():i.then(t=>this._zone.run(()=>{t.setPath(e)}))}updateIconSequences(t){return lp(this,void 0,void 0,function*(){yield this._mapsWrapper.getNativeMap();const e=hm._convertIcons(t),i=this._polylines.get(t);if(null!=i)return i.then(t=>this._zone.run(()=>t.setOptions({icons:e})))})}setPolylineOptions(t,e){return this._polylines.get(t).then(t=>{t.setOptions(e)})}deletePolyline(t){const e=this._polylines.get(t);return null==e?Promise.resolve():e.then(e=>this._zone.run(()=>{e.setMap(null),this._polylines.delete(t)}))}getMVCPath(t){return lp(this,void 0,void 0,function*(){return(yield this._polylines.get(t)).getPath()})}getPath(t){return lp(this,void 0,void 0,function*(){return(yield this.getMVCPath(t)).getArray()})}createEventObservable(t,e){return new v(i=>{this._polylines.get(e).then(e=>{e.addListener(t,t=>this._zone.run(()=>i.next(t)))})})}createPathEventObservable(t){return lp(this,void 0,void 0,function*(){return um(yield this.getMVCPath(t))})}};return t.\u0275fac=function(e){return new(e||t)(wn(Xp),wn(mu))},t.\u0275prov=_t({token:t,factory:function(e){return t.\u0275fac(e)}}),t=hm=rp([ap("design:paramtypes",[Xp,mu])],t),t})(),mm=(()=>{let t=class{constructor(t,e){this._apiWrapper=t,this._zone=e,this._rectangles=new Map}addRectangle(t){this._rectangles.set(t,this._apiWrapper.createRectangle({bounds:{north:t.north,east:t.east,south:t.south,west:t.west},clickable:t.clickable,draggable:t.draggable,editable:t.editable,fillColor:t.fillColor,fillOpacity:t.fillOpacity,strokeColor:t.strokeColor,strokeOpacity:t.strokeOpacity,strokePosition:t.strokePosition,strokeWeight:t.strokeWeight,visible:t.visible,zIndex:t.zIndex}))}removeRectangle(t){return this._rectangles.get(t).then(e=>{e.setMap(null),this._rectangles.delete(t)})}setOptions(t,e){return this._rectangles.get(t).then(t=>t.setOptions(e))}getBounds(t){return this._rectangles.get(t).then(t=>t.getBounds())}setBounds(t){return this._rectangles.get(t).then(e=>e.setBounds({north:t.north,east:t.east,south:t.south,west:t.west}))}setEditable(t){return this._rectangles.get(t).then(e=>e.setEditable(t.editable))}setDraggable(t){return this._rectangles.get(t).then(e=>e.setDraggable(t.draggable))}setVisible(t){return this._rectangles.get(t).then(e=>e.setVisible(t.visible))}createEventObservable(t,e){return v.create(i=>{let n=null;return this._rectangles.get(e).then(e=>{n=e.addListener(t,t=>this._zone.run(()=>i.next(t)))}),()=>{null!==n&&n.remove()}})}};return t.\u0275fac=function(e){return new(e||t)(wn(Xp),wn(mu))},t.\u0275prov=_t({token:t,factory:function(e){return t.\u0275fac(e)}}),t=rp([ap("design:paramtypes",[Xp,mu])],t),t})();var fm;let gm=(()=>{let t=fm=class{constructor(t,e,i,n,s){this._elem=t,this._mapsWrapper=e,this._platformId=i,this._fitBoundsService=n,this._zone=s,this.longitude=0,this.latitude=0,this.zoom=8,this.draggable=!0,this.disableDoubleClickZoom=!1,this.disableDefaultUI=!1,this.scrollwheel=!0,this.keyboardShortcuts=!0,this.styles=[],this.usePanning=!1,this.fitBounds=!1,this.scaleControl=!1,this.mapTypeControl=!1,this.panControl=!1,this.rotateControl=!1,this.fullscreenControl=!1,this.mapTypeId="roadmap",this.clickableIcons=!0,this.showDefaultInfoWindow=!0,this.gestureHandling="auto",this.tilt=0,this._observableSubscriptions=[],this.mapClick=new kc,this.mapRightClick=new kc,this.mapDblClick=new kc,this.centerChange=new kc,this.boundsChange=new kc,this.mapTypeIdChange=new kc,this.idle=new kc,this.zoomChange=new kc,this.mapReady=new kc,this.tilesLoaded=new kc}ngOnInit(){if(wh(this._platformId))return;const t=this._elem.nativeElement.querySelector(".agm-map-container-inner");this._initMapInstance(t)}_initMapInstance(t){this._mapsWrapper.createMap(t,{center:{lat:this.latitude||0,lng:this.longitude||0},zoom:this.zoom,minZoom:this.minZoom,maxZoom:this.maxZoom,controlSize:this.controlSize,disableDefaultUI:this.disableDefaultUI,disableDoubleClickZoom:this.disableDoubleClickZoom,scrollwheel:this.scrollwheel,backgroundColor:this.backgroundColor,draggable:this.draggable,draggableCursor:this.draggableCursor,draggingCursor:this.draggingCursor,keyboardShortcuts:this.keyboardShortcuts,styles:this.styles,zoomControl:this.zoomControl,zoomControlOptions:this.zoomControlOptions,streetViewControl:this.streetViewControl,streetViewControlOptions:this.streetViewControlOptions,scaleControl:this.scaleControl,scaleControlOptions:this.scaleControlOptions,mapTypeControl:this.mapTypeControl,mapTypeControlOptions:this.mapTypeControlOptions,panControl:this.panControl,panControlOptions:this.panControlOptions,rotateControl:this.rotateControl,rotateControlOptions:this.rotateControlOptions,fullscreenControl:this.fullscreenControl,fullscreenControlOptions:this.fullscreenControlOptions,mapTypeId:this.mapTypeId,clickableIcons:this.clickableIcons,gestureHandling:this.gestureHandling,tilt:this.tilt,restriction:this.restriction}).then(()=>this._mapsWrapper.getNativeMap()).then(t=>this.mapReady.emit(t)),this._handleMapCenterChange(),this._handleMapZoomChange(),this._handleMapMouseEvents(),this._handleBoundsChange(),this._handleMapTypeIdChange(),this._handleTilesLoadedEvent(),this._handleIdleEvent()}ngOnDestroy(){this._observableSubscriptions.forEach(t=>t.unsubscribe()),this._mapsWrapper.clearInstanceListeners(),this._fitBoundsSubscription&&this._fitBoundsSubscription.unsubscribe()}ngOnChanges(t){this._updateMapOptionsChanges(t),this._updatePosition(t)}_updateMapOptionsChanges(t){let e={};Object.keys(t).filter(t=>-1!==fm._mapOptionsAttributes.indexOf(t)).forEach(i=>{e[i]=t[i].currentValue}),this._mapsWrapper.setMapOptions(e)}triggerResize(t=!0){return new Promise(e=>{setTimeout(()=>this._mapsWrapper.triggerMapEvent("resize").then(()=>{t&&(null!=this.fitBounds?this._fitBounds():this._setCenter()),e()}))})}_updatePosition(t){(null!=t.latitude||null!=t.longitude||t.fitBounds)&&("fitBounds"in t?this._fitBounds():"number"==typeof this.latitude&&"number"==typeof this.longitude&&this._setCenter())}_setCenter(){let t={lat:this.latitude,lng:this.longitude};this.usePanning?this._mapsWrapper.panTo(t):this._mapsWrapper.setCenter(t)}_fitBounds(){switch(this.fitBounds){case!0:this._subscribeToFitBoundsUpdates();break;case!1:this._fitBoundsSubscription&&this._fitBoundsSubscription.unsubscribe();break;default:this._updateBounds(this.fitBounds,this.fitBoundsPadding)}}_subscribeToFitBoundsUpdates(){this._zone.runOutsideAngular(()=>{this._fitBoundsSubscription=this._fitBoundsService.getBounds$().subscribe(t=>{this._zone.run(()=>this._updateBounds(t,this.fitBoundsPadding))})})}_updateBounds(t,e){if(t){if(this._isLatLngBoundsLiteral(t)&&"undefined"!=typeof google&&google&&google.maps&&google.maps.LatLngBounds){const e=new google.maps.LatLngBounds;e.union(t),t=e}this.usePanning?this._mapsWrapper.panToBounds(t,e):this._mapsWrapper.fitBounds(t,e)}}_isLatLngBoundsLiteral(t){return null!=t&&void 0===t.extend}_handleMapCenterChange(){const t=this._mapsWrapper.subscribeToMapEvent("center_changed").subscribe(()=>{this._mapsWrapper.getCenter().then(t=>{this.latitude=t.lat(),this.longitude=t.lng(),this.centerChange.emit({lat:this.latitude,lng:this.longitude})})});this._observableSubscriptions.push(t)}_handleBoundsChange(){const t=this._mapsWrapper.subscribeToMapEvent("bounds_changed").subscribe(()=>{this._mapsWrapper.getBounds().then(t=>{this.boundsChange.emit(t)})});this._observableSubscriptions.push(t)}_handleMapTypeIdChange(){const t=this._mapsWrapper.subscribeToMapEvent("maptypeid_changed").subscribe(()=>{this._mapsWrapper.getMapTypeId().then(t=>{this.mapTypeIdChange.emit(t)})});this._observableSubscriptions.push(t)}_handleMapZoomChange(){const t=this._mapsWrapper.subscribeToMapEvent("zoom_changed").subscribe(()=>{this._mapsWrapper.getZoom().then(t=>{this.zoom=t,this.zoomChange.emit(t)})});this._observableSubscriptions.push(t)}_handleIdleEvent(){const t=this._mapsWrapper.subscribeToMapEvent("idle").subscribe(()=>{this.idle.emit(void 0)});this._observableSubscriptions.push(t)}_handleTilesLoadedEvent(){const t=this._mapsWrapper.subscribeToMapEvent("tilesloaded").subscribe(()=>this.tilesLoaded.emit(void 0));this._observableSubscriptions.push(t)}_handleMapMouseEvents(){[{name:"click",emitter:this.mapClick},{name:"rightclick",emitter:this.mapRightClick},{name:"dblclick",emitter:this.mapDblClick}].forEach(t=>{const e=this._mapsWrapper.subscribeToMapEvent(t.name).subscribe(e=>{let i={coords:{lat:e.latLng.lat(),lng:e.latLng.lng()},placeId:e.placeId};i.placeId&&!this.showDefaultInfoWindow&&e.stop(),t.emitter.emit(i)});this._observableSubscriptions.push(e)})}};return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(Xp),$o(Jc),$o(nm),$o(mu))},t.\u0275cmp=Xt({type:t,selectors:[["agm-map"]],hostVars:2,hostBindings:function(t,e){2&t&&Sa("sebm-google-map-container",!0)},inputs:{longitude:"longitude",latitude:"latitude",zoom:"zoom",draggable:["mapDraggable","draggable"],disableDoubleClickZoom:"disableDoubleClickZoom",disableDefaultUI:"disableDefaultUI",scrollwheel:"scrollwheel",keyboardShortcuts:"keyboardShortcuts",styles:"styles",usePanning:"usePanning",fitBounds:"fitBounds",scaleControl:"scaleControl",mapTypeControl:"mapTypeControl",panControl:"panControl",rotateControl:"rotateControl",fullscreenControl:"fullscreenControl",mapTypeId:"mapTypeId",clickableIcons:"clickableIcons",showDefaultInfoWindow:"showDefaultInfoWindow",gestureHandling:"gestureHandling",tilt:"tilt",minZoom:"minZoom",maxZoom:"maxZoom",controlSize:"controlSize",backgroundColor:"backgroundColor",draggableCursor:"draggableCursor",draggingCursor:"draggingCursor",zoomControl:"zoomControl",zoomControlOptions:"zoomControlOptions",streetViewControl:"streetViewControl",streetViewControlOptions:"streetViewControlOptions",fitBoundsPadding:"fitBoundsPadding",scaleControlOptions:"scaleControlOptions",mapTypeControlOptions:"mapTypeControlOptions",panControlOptions:"panControlOptions",rotateControlOptions:"rotateControlOptions",fullscreenControlOptions:"fullscreenControlOptions",restriction:"restriction"},outputs:{mapClick:"mapClick",mapRightClick:"mapRightClick",mapDblClick:"mapDblClick",centerChange:"centerChange",boundsChange:"boundsChange",mapTypeIdChange:"mapTypeIdChange",idle:"idle",zoomChange:"zoomChange",mapReady:"mapReady",tilesLoaded:"tilesLoaded"},features:[rl([Zp,em,em,nm,Xp,rm,cm,Kp,sm,dm,pm,mm]),me],ngContentSelectors:Yp,decls:3,vars:0,consts:[[1,"agm-map-container-inner","sebm-google-map-container-inner"],[1,"agm-map-content"]],template:function(t,e){1&t&&(ha(),Ko(0,"div",0),Qo(1,"div",1),pa(2),Xo())},styles:[".agm-map-container-inner[_ngcontent-%COMP%] {\n width: inherit;\n height: inherit;\n }\n .agm-map-content[_ngcontent-%COMP%] {\n display:none;\n }"]}),t._mapOptionsAttributes=["disableDoubleClickZoom","scrollwheel","draggable","draggableCursor","draggingCursor","keyboardShortcuts","zoomControl","zoomControlOptions","styles","streetViewControl","streetViewControlOptions","zoom","mapTypeControl","mapTypeControlOptions","minZoom","maxZoom","panControl","panControlOptions","rotateControl","rotateControlOptions","fullscreenControl","fullscreenControlOptions","scaleControl","scaleControlOptions","mapTypeId","clickableIcons","gestureHandling","tilt","restriction"],t=fm=rp([op(2,kn(Jc)),ap("design:paramtypes",[hl,Xp,Object,nm,mu])],t),t})();var _m;let bm=0,ym=(()=>{let t=_m=class{constructor(t){this._markerManager=t,this.draggable=!1,this.visible=!0,this.openInfoWindow=!0,this.opacity=1,this.zIndex=1,this.clickable=!0,this.animationChange=new kc,this.markerClick=new kc,this.markerDblClick=new kc,this.markerRightClick=new kc,this.dragStart=new kc,this.drag=new kc,this.dragEnd=new kc,this.mouseOver=new kc,this.mouseOut=new kc,this.infoWindow=new Oc,this._markerAddedToManger=!1,this._observableSubscriptions=[],this._fitBoundsDetails$=new Pp(1),this._id=(bm++).toString()}ngAfterContentInit(){this.handleInfoWindowUpdate(),this.infoWindow.changes.subscribe(()=>this.handleInfoWindowUpdate())}handleInfoWindowUpdate(){if(this.infoWindow.length>1)throw new Error("Expected no more than one info window.");this.infoWindow.forEach(t=>{t.hostMarker=this})}ngOnChanges(t){if("string"==typeof this.latitude&&(this.latitude=Number(this.latitude)),"string"==typeof this.longitude&&(this.longitude=Number(this.longitude)),"number"==typeof this.latitude&&"number"==typeof this.longitude){if(!this._markerAddedToManger)return this._markerManager.addMarker(this),this._updateFitBoundsDetails(),this._markerAddedToManger=!0,void this._addEventListeners();(t.latitude||t.longitude)&&(this._markerManager.updateMarkerPosition(this),this._updateFitBoundsDetails()),t.title&&this._markerManager.updateTitle(this),t.label&&this._markerManager.updateLabel(this),t.draggable&&this._markerManager.updateDraggable(this),t.iconUrl&&this._markerManager.updateIcon(this),t.opacity&&this._markerManager.updateOpacity(this),t.visible&&this._markerManager.updateVisible(this),t.zIndex&&this._markerManager.updateZIndex(this),t.clickable&&this._markerManager.updateClickable(this),t.animation&&this._markerManager.updateAnimation(this)}}getFitBoundsDetails$(){return this._fitBoundsDetails$.asObservable()}_updateFitBoundsDetails(){this._fitBoundsDetails$.next({latLng:{lat:this.latitude,lng:this.longitude}})}_addEventListeners(){const t=this._markerManager.createEventObservable("click",this).subscribe(()=>{this.openInfoWindow&&this.infoWindow.forEach(t=>t.open()),this.markerClick.emit(this)});this._observableSubscriptions.push(t);const e=this._markerManager.createEventObservable("dblclick",this).subscribe(()=>{this.markerDblClick.emit(null)});this._observableSubscriptions.push(e);const i=this._markerManager.createEventObservable("rightclick",this).subscribe(()=>{this.markerRightClick.emit(null)});this._observableSubscriptions.push(i);const n=this._markerManager.createEventObservable("dragstart",this).subscribe(t=>{this.dragStart.emit({coords:{lat:t.latLng.lat(),lng:t.latLng.lng()}})});this._observableSubscriptions.push(n);const s=this._markerManager.createEventObservable("drag",this).subscribe(t=>{this.drag.emit({coords:{lat:t.latLng.lat(),lng:t.latLng.lng()}})});this._observableSubscriptions.push(s);const r=this._markerManager.createEventObservable("dragend",this).subscribe(t=>{this.dragEnd.emit({coords:{lat:t.latLng.lat(),lng:t.latLng.lng()}})});this._observableSubscriptions.push(r);const o=this._markerManager.createEventObservable("mouseover",this).subscribe(t=>{this.mouseOver.emit({coords:{lat:t.latLng.lat(),lng:t.latLng.lng()}})});this._observableSubscriptions.push(o);const a=this._markerManager.createEventObservable("mouseout",this).subscribe(t=>{this.mouseOut.emit({coords:{lat:t.latLng.lat(),lng:t.latLng.lng()}})});this._observableSubscriptions.push(a);const l=this._markerManager.createEventObservable("animation_changed",this).subscribe(()=>{this.animationChange.emit(this.animation)});this._observableSubscriptions.push(l)}id(){return this._id}toString(){return"AgmMarker-"+this._id.toString()}ngOnDestroy(){this._markerManager.deleteMarker(this),this._observableSubscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)($o(sm))},t.\u0275dir=ie({type:t,selectors:[["agm-marker"]],contentQueries:function(t,e,i){if(1&t&&Bc(i,lm,0),2&t){let t;Nc(t=Hc())&&(e.infoWindow=t)}},inputs:{latitude:"latitude",longitude:"longitude",title:"title",label:"label",draggable:["markerDraggable","draggable"],iconUrl:"iconUrl",openInfoWindow:"openInfoWindow",opacity:"opacity",visible:"visible",zIndex:"zIndex",animation:"animation",clickable:["markerClickable","clickable"]},outputs:{markerClick:"markerClick",dragStart:"dragStart",drag:"drag",dragEnd:"dragEnd",mouseOver:"mouseOver",mouseOut:"mouseOut",animationChange:"animationChange",markerDblClick:"markerDblClick",markerRightClick:"markerRightClick"},features:[rl([{provide:im,useExisting:ut(()=>_m)}]),me]}),t=_m=rp([ap("design:paramtypes",[sm])],t),t})();class vm{getNativeWindow(){return window}}class wm{getNativeDocument(){return document}}const Cm=[vm,wm];var xm=function(t){return t[t.HTTP=1]="HTTP",t[t.HTTPS=2]="HTTPS",t[t.AUTO=3]="AUTO",t}({});const Sm=new en("angular-google-maps LAZY_MAPS_API_CONFIG");let km=(()=>{let t=class extends Qp{constructor(t=null,e,i,n){super(),this.localeId=n,this._SCRIPT_ID="agmGoogleMapsApiScript",this.callbackName="agmLazyMapsAPILoader",this._config=t||{},this._windowRef=e,this._documentRef=i}load(){const t=this._windowRef.getNativeWindow();if(t.google&&t.google.maps)return Promise.resolve();if(this._scriptLoadingPromise)return this._scriptLoadingPromise;const e=this._documentRef.getNativeDocument().getElementById(this._SCRIPT_ID);if(e)return this._assignScriptLoadingPromise(e),this._scriptLoadingPromise;const i=this._documentRef.getNativeDocument().createElement("script");return i.type="text/javascript",i.async=!0,i.defer=!0,i.id=this._SCRIPT_ID,i.src=this._getScriptSrc(this.callbackName),this._assignScriptLoadingPromise(i),this._documentRef.getNativeDocument().body.appendChild(i),this._scriptLoadingPromise}_assignScriptLoadingPromise(t){this._scriptLoadingPromise=new Promise((e,i)=>{this._windowRef.getNativeWindow()[this.callbackName]=()=>{e()},t.onerror=t=>{i(t)}})}_getScriptSrc(t){let e;switch(this._config&&this._config.protocol||xm.HTTPS){case xm.AUTO:e="";break;case xm.HTTP:e="http:";break;case xm.HTTPS:e="https:"}const i={v:this._config.apiVersion||"quarterly",callback:t,key:this._config.apiKey,client:this._config.clientId,channel:this._config.channel,libraries:this._config.libraries,region:this._config.region,language:this._config.language||"en-US"!==this.localeId?this.localeId:null};return`${e}//${this._config.hostAndPath||"maps.googleapis.com/maps/api/js"}?${Object.keys(i).filter(t=>null!=i[t]).filter(t=>!Array.isArray(i[t])||Array.isArray(i[t])&&i[t].length>0).map(t=>{let e=i[t];return Array.isArray(e)?{key:t,value:e.join(",")}:{key:t,value:i[t]}}).map(t=>`${t.key}=${t.value}`).join("&")}`}};return t.\u0275fac=function(e){return new(e||t)(wn(Sm,8),wn(vm),wn(wm),wn(iu))},t.\u0275prov=_t({token:t,factory:function(e){return t.\u0275fac(e)}}),t=rp([op(0,An()),op(0,kn(Sm)),op(3,kn(iu)),ap("design:paramtypes",[Object,vm,wm,String])],t),t})();var Am;let Om=(()=>{let t=Am=class{static forRoot(t){return{ngModule:Am,providers:[...Cm,{provide:Qp,useClass:km},{provide:Sm,useValue:t}]}}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({}),t})();i("c+JA");let Em=(()=>{let t=class extends sm{constructor(t,e){super(t,e),this._mapsWrapper=t,this._zone=e,this._clustererInstance=new Promise(t=>{this._resolver=t})}init(t){this._mapsWrapper.getNativeMap().then(e=>{const i=new MarkerClusterer(e,[],t);this._resolver(i)})}getClustererInstance(){return this._clustererInstance}addMarker(t){const e=this.getClustererInstance(),i=this._mapsWrapper.createMarker({position:{lat:t.latitude,lng:t.longitude},label:t.label,draggable:t.draggable,icon:t.iconUrl,opacity:t.opacity,visible:t.visible,zIndex:t.zIndex,title:t.title,clickable:t.clickable},!1);Promise.all([e,i]).then(([t,e])=>t.addMarker(e)),this._markers.set(t,i)}deleteMarker(t){const e=this._markers.get(t);return null==e?Promise.resolve():e.then(e=>{this._zone.run(()=>{e.setMap(null),this.getClustererInstance().then(i=>{i.removeMarker(e),this._markers.delete(t)})})})}clearMarkers(){return this.getClustererInstance().then(t=>{t.clearMarkers()})}setGridSize(t){this.getClustererInstance().then(e=>{e.setGridSize(t.gridSize)})}setMaxZoom(t){this.getClustererInstance().then(e=>{e.setMaxZoom(t.maxZoom)})}setStyles(t){this.getClustererInstance().then(e=>{e.setStyles(t.styles)})}setZoomOnClick(t){this.getClustererInstance().then(e=>{void 0!==t.zoomOnClick&&(e.zoomOnClick_=t.zoomOnClick)})}setAverageCenter(t){this.getClustererInstance().then(e=>{void 0!==t.averageCenter&&(e.averageCenter_=t.averageCenter)})}setImagePath(t){this.getClustererInstance().then(e=>{void 0!==t.imagePath&&(e.imagePath_=t.imagePath)})}setMinimumClusterSize(t){this.getClustererInstance().then(e=>{void 0!==t.minimumClusterSize&&(e.minimumClusterSize_=t.minimumClusterSize)})}setImageExtension(t){this.getClustererInstance().then(e=>{void 0!==t.imageExtension&&(e.imageExtension_=t.imageExtension)})}createClusterEventObservable(t){return v.create(e=>{this._zone.runOutsideAngular(()=>{this._clustererInstance.then(i=>{i.addListener(t,t=>this._zone.run(()=>e.next(t)))})})})}setCalculator(t){this.getClustererInstance().then(e=>{"function"==typeof t.calculator&&e.setCalculator(t.calculator)})}};return t.\u0275fac=function(e){return new(e||t)(wn(Xp),wn(mu))},t.\u0275prov=_t({token:t,factory:function(e){return t.\u0275fac(e)}}),t=rp([ap("design:paramtypes",[Xp,mu])],t),t})(),Tm=(()=>{let t=class{constructor(t){this._clusterManager=t,this.clusterClick=new kc,this._observableSubscriptions=[]}ngOnDestroy(){this._clusterManager.clearMarkers(),this._observableSubscriptions.forEach(t=>t.unsubscribe())}ngOnChanges(t){t.gridSize&&this._clusterManager.setGridSize(this),t.maxZoom&&this._clusterManager.setMaxZoom(this),t.zoomOnClick&&this._clusterManager.setZoomOnClick(this),t.averageCenter&&this._clusterManager.setAverageCenter(this),t.minimumClusterSize&&this._clusterManager.setMinimumClusterSize(this),t.imagePath&&this._clusterManager.setImagePath(this),t.imageExtension&&this._clusterManager.setImageExtension(this),t.calculator&&this._clusterManager.setCalculator(this),t.styles&&this._clusterManager.setStyles(this)}_addEventListeners(){[{name:"clusterclick",handler:()=>this.clusterClick.emit()}].forEach(t=>{const e=this._clusterManager.createClusterEventObservable(t.name).subscribe(t.handler);this._observableSubscriptions.push(e)})}ngOnInit(){this._addEventListeners(),this._clusterManager.init({gridSize:this.gridSize,maxZoom:this.maxZoom,zoomOnClick:this.zoomOnClick,averageCenter:this.averageCenter,minimumClusterSize:this.minimumClusterSize,styles:this.styles,imagePath:this.imagePath,imageExtension:this.imageExtension,calculator:this.calculator})}};return t.\u0275fac=function(e){return new(e||t)($o(Em))},t.\u0275dir=ie({type:t,selectors:[["agm-marker-cluster"]],inputs:{gridSize:"gridSize",maxZoom:"maxZoom",zoomOnClick:"zoomOnClick",averageCenter:"averageCenter",minimumClusterSize:"minimumClusterSize",styles:"styles",calculator:"calculator",imagePath:"imagePath",imageExtension:"imageExtension"},outputs:{clusterClick:"clusterClick"},features:[rl([Em,{provide:sm,useExisting:Em},rm]),me]}),t=rp([ap("design:paramtypes",[Em])],t),t})(),Pm=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[Om]]}),t})();function Dm(t,e){return G(t,e,1)}function Mm(t,e){return function(i){return i.lift(new Im(t,e))}}class Im{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Rm(t,this.predicate,this.thisArg))}}class Rm extends m{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)}}class Lm{}class Fm{}class Nm{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 Nm?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 Nm;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Nm?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 Vm{encodeKey(t){return Bm(t)}encodeValue(t){return Bm(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function Bm(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 Hm{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Vm,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.replace(/^\?/,"").split("&").forEach(t=>{const n=t.indexOf("="),[s,r]=-1==n?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,n)),e.decodeValue(t.slice(n+1))],o=i.get(s)||[];o.push(r),i.set(s,o)}),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"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const n=t[i];Array.isArray(n)?n.forEach(t=>{e.push({param:i,value:t,op:"a"})}):e.push({param:i,value:n,op:"a"})}),this.clone(e)}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 Hm({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 zm(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Gm(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Um(t){return"undefined"!=typeof FormData&&t instanceof FormData}class jm{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 Nm),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]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,i)=>e.set(i,t.setParams[i]),l)),new jm(e,i,s,{params:l,headers:a,reportProgress:o,responseType:n,withCredentials:r})}}var Wm=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class $m{constructor(t,e=200,i="OK"){this.headers=t.headers||new Nm,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 qm extends $m{constructor(t={}){super(t),this.type=Wm.ResponseHeader}clone(t={}){return new qm({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 Ym extends $m{constructor(t={}){super(t),this.type=Wm.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Ym({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 Qm extends $m{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 Xm(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Km=(()=>{class t{constructor(t){this.handler=t}request(t,e,i={}){let n;if(t instanceof jm)n=t;else{let s,r;s=i.headers instanceof Nm?i.headers:new Nm(i.headers),i.params&&(r=i.params instanceof Hm?i.params:new Hm({fromObject:i.params})),n=new jm(t,e,void 0!==i.body?i.body:null,{headers:s,params:r,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const s=Sp(n).pipe(Dm(t=>this.handler.handle(t)));if(t instanceof jm||"events"===i.observe)return s;const r=s.pipe(Mm(t=>t instanceof Ym));switch(i.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return r.pipe(E(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return r.pipe(E(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return r.pipe(E(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return r.pipe(E(t=>t.body))}case"response":return r;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 Hm).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,Xm(i,e))}post(t,e,i={}){return this.request("POST",t,Xm(i,e))}put(t,e,i={}){return this.request("PUT",t,Xm(i,e))}}return t.\u0275fac=function(e){return new(e||t)(wn(Lm))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();class Zm{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const Jm=new en("HTTP_INTERCEPTORS");let tf=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();const ef=/^\)\]\}',?\n/;class nf{}let sf=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})(),rf=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new v(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 r=()=>{if(null!==s)return s;const e=1223===i.status?204:i.status,n=i.statusText||"OK",r=new Nm(i.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(i)||t.url;return s=new qm({headers:r,status:e,statusText:n,url:o}),s},o=()=>{let{headers:n,status:s,statusText:o,url:a}=r(),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(ef,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=t,c&&(c=!1,l={error:u,text:l})}}c?(e.next(new Ym({body:l,headers:n,status:s,statusText:o,url:a||void 0})),e.complete()):e.error(new Qm({error:l,headers:n,status:s,statusText:o,url:a||void 0}))},a=t=>{const{url:n}=r(),s=new Qm({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(r()),l=!0);let s={type:Wm.DownloadProgress,loaded:n.loaded};n.lengthComputable&&(s.total=n.total),"text"===t.responseType&&i.responseText&&(s.partialText=i.responseText),e.next(s)},u=t=>{let i={type:Wm.UploadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),e.next(i)};return i.addEventListener("load",o),i.addEventListener("error",a),i.addEventListener("timeout",a),i.addEventListener("abort",a),t.reportProgress&&(i.addEventListener("progress",c),null!==n&&i.upload&&i.upload.addEventListener("progress",u)),i.send(n),e.next({type:Wm.Sent}),()=>{i.removeEventListener("error",a),i.removeEventListener("abort",a),i.removeEventListener("load",o),i.removeEventListener("timeout",a),t.reportProgress&&(i.removeEventListener("progress",c),null!==n&&i.upload&&i.upload.removeEventListener("progress",u)),i.readyState!==i.DONE&&i.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(wn(nf))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();const of=new en("XSRF_COOKIE_NAME"),af=new en("XSRF_HEADER_NAME");class lf{}let cf=(()=>{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=Yd(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(wn(qu),wn(Jc),wn(of))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})(),uf=(()=>{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)(wn(lf),wn(af))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})(),df=(()=>{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(Jm,[]);this.chain=t.reduceRight((t,e)=>new Zm(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(wn(Fm),wn(ko))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})(),hf=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:uf,useClass:tf}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:of,useValue:e.cookieName}:[],e.headerName?{provide:af,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:[uf,{provide:Jm,useExisting:uf,multi:!0},{provide:lf,useClass:cf},{provide:of,useValue:"XSRF-TOKEN"},{provide:af,useValue:"X-XSRF-TOKEN"}]}),t})(),pf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:[Km,{provide:Lm,useClass:df},rf,{provide:Fm,useExisting:rf},sf,{provide:nf,useExisting:sf}],imports:[[hf.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})(),mf=1;const ff=(()=>Promise.resolve())(),gf={};function _f(t){return t in gf&&(delete gf[t],!0)}const bf={setImmediate(t){const e=mf++;return gf[e]=!0,ff.then(()=>_f(e)&&t()),e},clearImmediate(t){_f(t)}};class yf extends dp{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=bf.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&&(bf.clearImmediate(e),t.scheduled=void 0)}}class vf extends pp{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(++nl(t)?s(...t):s(t))):new v(n=>{xf(t,e,function(t){n.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},n,i)})}function xf(t,e,i,n,s){let r;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const n=t;t.addEventListener(e,i,s),r=()=>n.removeEventListener(e,i,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const n=t;t.on(e,i),r=()=>n.off(e,i)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const n=t;t.addListener(e,i),r=()=>n.removeListener(e,i)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let r=0,o=t.length;ri.lift(new kf(t,e))}class kf{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new Af(t,this.dueTime,this.scheduler))}}class Af extends m{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(Of,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 Of(t){t.debouncedNext()}const Ef=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function Tf(t){return e=>0===t?xp():e.lift(new Pf(t))}class Pf{constructor(t){if(this.total=t,this.total<0)throw new Ef}call(t,e){return e.subscribe(new Df(t,this.total))}}class Df extends m{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 Mf(){}function If(t,e,i){return function(n){return n.lift(new Rf(t,e,i))}}class Rf{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new Lf(t,this.nextOrObserver,this.error,this.complete))}}class Lf extends m{constructor(t,e,i,s){super(t),this._tapNext=Mf,this._tapError=Mf,this._tapComplete=Mf,this._tapError=i||Mf,this._tapComplete=s||Mf,n(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Mf,this._tapError=e.error||Mf,this._tapComplete=e.complete||Mf)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}const Ff={provide:tu,useFactory:function(t,e){return()=>{if(vh(e)){const e=Array.from(t.querySelectorAll(`[class*=${Nf}]`)),i=/\bflex-layout-.+?\b/g;e.forEach(t=>{t.classList.contains(`${Nf}ssr`)&&t.parentNode?t.parentNode.removeChild(t):t.className.replace(i,"")})}}},deps:[qu,Jc],multi:!0},Nf="flex-layout-";let Vf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:[Ff]}),t})();class Bf{constructor(t=!1,e="all",i="",n="",s=0){this.matches=t,this.mediaQuery=e,this.mqAlias=i,this.suffix=n,this.priority=s,this.property=""}clone(){return new Bf(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let Hf=(()=>{class t{constructor(){this.stylesheet=new Map}addStyleToElement(t,e,i){const n=this.stylesheet.get(t);n?n.set(e,i):this.stylesheet.set(t,new Map([[e,i]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(t,e){const i=this.stylesheet.get(t);let n="";if(i){const t=i.get(e);"number"!=typeof t&&"string"!=typeof t||(n=t+"")}return n}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({factory:function(){return new t},token:t,providedIn:"root"}),t})();const zf={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},Gf=new en("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>zf}),Uf=new en("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),jf=new en("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function Wf(t,e){return t=t?t.clone():new Bf,e&&(t.mqAlias=e.alias,t.mediaQuery=e.mediaQuery,t.suffix=e.suffix,t.priority=e.priority),t}const $f=["row","column","row-reverse","column-reverse"];function qf(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}let Yf=(()=>{class t{constructor(t,e,i,n){this.elementRef=t,this.styleBuilder=e,this.styler=i,this.marshal=n,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new k,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,this.marshal.activatedAlias)}ngOnChanges(t){Object.keys(t).forEach(e=>{if(-1!==this.inputs.indexOf(e)){const i=e.split(".").slice(1).join(".");this.setValue(t[e].currentValue,i)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(t=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),t)}addStyles(t,e){const i=this.styleBuilder,n=i.shouldCache;let s=this.styleCache.get(t);s&&n||(s=i.buildStyles(t,e),n&&this.styleCache.set(t,s)),this.mru=Object.assign({},s),this.applyStyleToElement(s),i.sideEffect(t,s,e)}clearStyles(){Object.keys(this.mru).forEach(t=>{this.mru[t]=""}),this.applyStyleToElement(this.mru),this.mru={}}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(t,e=!1){if(t){const[i,n]=this.styler.getFlowDirection(t);if(!n&&e){const e=function(t){let[e,i,n]=function(t){t=t?t.toLowerCase():"";let[e,i,n]=t.split(" ");return $f.find(t=>t===e)||(e=$f[0]),"inline"===i&&(i="inline"!==n?n:"",n="inline"),[e,qf(i),!!n]}(t);return function(t,e=null,i=!1){return{display:i?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}(e,i,n)}(i);this.styler.applyStyleToElements(e,[t])}return i.trim()}return"row"}hasWrap(t){return this.styler.hasWrap(t)}applyStyleToElement(t,e,i=this.nativeElement){this.styler.applyStyleToElement(i,t,e)}setValue(t,e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,e)}updateWithValue(t){this.currentValue!==t&&(this.addStyles(t),this.currentValue=t)}}return t.\u0275fac=function(t){!function(){throw new Error("invalid")}()},t.\u0275dir=ie({type:t,features:[me]}),t})();const Qf=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],Xf="(orientation: portrait) and (max-width: 599.98px)",Kf="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",Zf="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",Jf="(orientation: portrait) and (min-width: 840px)",tg="(orientation: landscape) and (min-width: 1280px)",eg={HANDSET:`${Xf}, (orientation: landscape) and (max-width: 959.98px)`,TABLET:`${Kf} , ${Zf}`,WEB:`${Jf}, ${tg} `,HANDSET_PORTRAIT:`${Xf}`,TABLET_PORTRAIT:`${Kf} `,WEB_PORTRAIT:`${Jf}`,HANDSET_LANDSCAPE:"(orientation: landscape) and (max-width: 959.98px)",TABLET_LANDSCAPE:`${Zf}`,WEB_LANDSCAPE:`${tg}`},ig=[{alias:"handset",priority:2e3,mediaQuery:eg.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:eg.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:eg.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:eg.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:eg.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:eg.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:eg.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:eg.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:eg.WEB_PORTRAIT,overlapping:!0}],ng=/(\.|-|_)/g;function sg(t){let e=t.length>0?t.charAt(0):"",i=t.length>1?t.slice(1):"";return e.toUpperCase()+i}const rg=new en("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const t=Cn(jf),e=Cn(Gf),i=[].concat.apply([],(t||[]).map(t=>Array.isArray(t)?t:[t]));return function(t,e=[]){const i={};return t.forEach(t=>{i[t.alias]=t}),e.forEach(t=>{i[t.alias]?function(t,...e){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let i of e)if(null!=i)for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e])}(i[t.alias],t):i[t.alias]=t}),(n=Object.keys(i).map(t=>i[t])).forEach(t=>{t.suffix||(t.suffix=function(t){return t.replace(ng,"|").split("|").map(sg).join("")}(t.alias),t.overlapping=!!t.overlapping)}),n;var n}((e.disableDefaultBps?[]:Qf).concat(e.addOrientationBps?ig:[]),i)}});function og(t,e){return(e&&e.priority||0)-(t&&t.priority||0)}function ag(t,e){return(t.priority||0)-(e.priority||0)}let lg=(()=>{class t{constructor(t){this.findByMap=new Map,this.items=[...t].sort(ag)}findByAlias(t){return t?this.findWithPredicate(t,e=>e.alias==t):null}findByQuery(t){return this.findWithPredicate(t,e=>e.mediaQuery==t)}get overlappings(){return this.items.filter(t=>1==t.overlapping)}get aliases(){return this.items.map(t=>t.alias)}get suffixes(){return this.items.map(t=>t.suffix?t.suffix:"")}findWithPredicate(t,e){let i=this.findByMap.get(t);return i||(i=this.items.find(e)||null,this.findByMap.set(t,i)),i||null}}return t.\u0275fac=function(e){return new(e||t)(wn(rg))},t.\u0275prov=_t({factory:function(){return new t(wn(rg))},token:t,providedIn:"root"}),t})(),cg=(()=>{class t{constructor(t,e,i){this._zone=t,this._platformId=e,this._document=i,this.source=new cp(new Bf(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const t=[];return this.registry.forEach((e,i)=>{e.matches&&t.push(i)}),t}isActive(t){const e=this.registry.get(t);return e?e.matches:this.registerQuery(t).some(t=>t.matches)}observe(t,e=!1){if(t&&t.length){const i=this._observable$.pipe(Mm(i=>!e||t.indexOf(i.mediaQuery)>-1));return Y(new v(e=>{const i=this.registerQuery(t);if(i.length){const t=i.pop();i.forEach(t=>{e.next(t)}),this.source.next(t)}e.complete()}),i)}return this._observable$}registerQuery(t){const e=Array.isArray(t)?t:[t],i=[];return function(t,e){const i=t.filter(t=>!ug[t]);if(i.length>0){const t=i.join(", ");try{const n=e.createElement("style");n.setAttribute("type","text/css"),n.styleSheet||n.appendChild(e.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${t} {.fx-query-test{ }}\n`)),e.head.appendChild(n),i.forEach(t=>ug[t]=n)}catch(n){console.error(n)}}}(e,this._document),e.forEach(t=>{const e=e=>{this._zone.run(()=>this.source.next(new Bf(e.matches,t)))};let n=this.registry.get(t);n||(n=this.buildMQL(t),n.addListener(e),this.pendingRemoveListenerFns.push(()=>n.removeListener(e)),this.registry.set(t,n)),n.matches&&i.push(new Bf(!0,t))}),i}ngOnDestroy(){let t;for(;t=this.pendingRemoveListenerFns.pop();)t()}buildMQL(t){return function(t,e){return e&&window.matchMedia("all").addListener?window.matchMedia(t):{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(t,vh(this._platformId))}}return t.\u0275fac=function(e){return new(e||t)(wn(mu),wn(Jc),wn(qu))},t.\u0275prov=_t({factory:function(){return new t(wn(mu),wn(Jc),wn(qu))},token:t,providedIn:"root"}),t})();const ug={},dg={alias:"print",mediaQuery:"print",priority:1e3};let hg=(()=>{class t{constructor(t,e,i){this.breakpoints=t,this.layoutConfig=e,this._document=i,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new pg,this.deactivations=[]}withPrintQuery(t){return[...t,"print"]}isPrintEvent(t){return t.mediaQuery.startsWith("print")}get printAlias(){return this.layoutConfig.printWithBreakpoints||[]}get printBreakPoints(){return this.printAlias.map(t=>this.breakpoints.findByAlias(t)).filter(t=>null!==t)}getEventBreakpoints({mediaQuery:t}){const e=this.breakpoints.findByQuery(t);return(e?[...this.printBreakPoints,e]:this.printBreakPoints).sort(og)}updateEvent(t){let e=this.breakpoints.findByQuery(t.mediaQuery);return this.isPrintEvent(t)&&(e=this.getEventBreakpoints(t)[0],t.mediaQuery=e?e.mediaQuery:""),Wf(t,e)}registerBeforeAfterPrintHooks(t){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const e=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(t,this.getEventBreakpoints(new Bf(!0,"print"))),t.updateStyles())},i=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(t),t.updateStyles())};this._document.defaultView.addEventListener("beforeprint",e),this._document.defaultView.addEventListener("afterprint",i),this.beforePrintEventListeners.push(e),this.afterPrintEventListeners.push(i)}interceptEvents(t){return this.registerBeforeAfterPrintHooks(t),e=>{this.isPrintEvent(e)?e.matches&&!this.isPrinting?(this.startPrinting(t,this.getEventBreakpoints(e)),t.updateStyles()):e.matches||!this.isPrinting||this.isPrintingBeforeAfterEvent||(this.stopPrinting(t),t.updateStyles()):this.collectActivations(e)}}blockPropagation(){return t=>!(this.isPrinting||this.isPrintEvent(t))}startPrinting(t,e){this.isPrinting=!0,t.activatedBreakpoints=this.queue.addPrintBreakpoints(e)}stopPrinting(t){t.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}collectActivations(t){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(t.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{const e=this.breakpoints.findByQuery(t.mediaQuery);e&&(this.deactivations.push(e),this.deactivations.sort(og))}}ngOnDestroy(){this.beforePrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("beforeprint",t)),this.afterPrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("afterprint",t))}}return t.\u0275fac=function(e){return new(e||t)(wn(lg),wn(Gf),wn(qu))},t.\u0275prov=_t({factory:function(){return new t(wn(lg),wn(Gf),wn(qu))},token:t,providedIn:"root"}),t})();class pg{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(t){return t.push(dg),t.sort(og),t.forEach(t=>this.addBreakpoint(t)),this.printBreakpoints}addBreakpoint(t){t&&void 0===this.printBreakpoints.find(e=>e.mediaQuery===t.mediaQuery)&&(this.printBreakpoints=function(t){return!!t&&t.mediaQuery.startsWith("print")}(t)?[t,...this.printBreakpoints]:[...this.printBreakpoints,t])}clear(){this.printBreakpoints=[]}}function mg(t){for(let e in t){let i=t[e]||"";switch(e){case"display":t.display="flex"===i?["-webkit-flex","flex"]:"inline-flex"===i?["-webkit-inline-flex","inline-flex"]:i;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":t["-webkit-"+e]=i;break;case"flex-direction":i=i||"row",t["-webkit-flex-direction"]=i,t["flex-direction"]=i;break;case"order":t.order=t["-webkit-"+e]=isNaN(+i)?"0":i}}return t}let fg=(()=>{class t{constructor(t,e,i,n){this._serverStylesheet=t,this._serverModuleLoaded=e,this._platformId=i,this.layoutConfig=n}applyStyleToElement(t,e,i=null){let n={};"string"==typeof e&&(n[e]=i,e=n),n=this.layoutConfig.disableVendorPrefixes?e:mg(e),this._applyMultiValueStyleToElement(n,t)}applyStyleToElements(t,e=[]){const i=this.layoutConfig.disableVendorPrefixes?t:mg(t);e.forEach(t=>{this._applyMultiValueStyleToElement(i,t)})}getFlowDirection(t){let e=this.lookupStyle(t,"flex-direction");return[e||"row",this.lookupInlineStyle(t,"flex-direction")||wh(this._platformId)&&this._serverModuleLoaded?e:""]}hasWrap(t){return"wrap"===this.lookupStyle(t,"flex-wrap")}lookupAttributeValue(t,e){return t.getAttribute(e)||""}lookupInlineStyle(t,e){return vh(this._platformId)?t.style.getPropertyValue(e):this._getServerStyle(t,e)}lookupStyle(t,e,i=!1){let n="";return t&&((n=this.lookupInlineStyle(t,e))||(vh(this._platformId)?i||(n=getComputedStyle(t).getPropertyValue(e)):this._serverModuleLoaded&&(n=this._serverStylesheet.getStyleForElement(t,e)))),n?n.trim():""}_applyMultiValueStyleToElement(t,e){Object.keys(t).sort().forEach(i=>{const n=t[i],s=Array.isArray(n)?n:[n];s.sort();for(let t of s)t=t?t+"":"",vh(this._platformId)||!this._serverModuleLoaded?vh(this._platformId)?e.style.setProperty(i,t):this._setServerStyle(e,i,t):this._serverStylesheet.addStyleToElement(e,i,t)})}_setServerStyle(t,e,i){e=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const n=this._readStyleAttribute(t);n[e]=i||"",this._writeStyleAttribute(t,n)}_getServerStyle(t,e){return this._readStyleAttribute(t)[e]||""}_readStyleAttribute(t){const e={},i=t.getAttribute("style");if(i){const t=i.split(/;+/g);for(let i=0;i0){const t=n.indexOf(":");if(-1===t)throw new Error(`Invalid CSS style: ${n}`);e[n.substr(0,t).trim()]=n.substr(t+1).trim()}}}return e}_writeStyleAttribute(t,e){let i="";for(const n in e)e[n]&&(i+=n+":"+e[n]+";");t.setAttribute("style",i)}}return t.\u0275fac=function(e){return new(e||t)(wn(Hf),wn(Uf),wn(Jc),wn(Gf))},t.\u0275prov=_t({factory:function(){return new t(wn(Hf),wn(Uf),wn(Jc),wn(Gf))},token:t,providedIn:"root"}),t})();class gg{constructor(){this.shouldCache=!0}sideEffect(t,e,i){}}function _g(t,e="1",i="1"){let n=[e,i,t],s=t.indexOf("calc");if(s>0){n[2]=bg(t.substring(s).trim());let e=t.substr(0,s).trim().split(" ");2==e.length&&(n[0]=e[0],n[1]=e[1])}else if(0==s)n[2]=bg(t.trim());else{let s=t.split(" ");n=3===s.length?s:[e,i,t]}return n}function bg(t){return t.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}let yg=(()=>{class t{constructor(t,e,i){this.matchMedia=t,this.breakpoints=e,this.hook=i,this.activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new k,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}onMediaChange(t){const e=this.findByQuery(t.mediaQuery);e&&((t=Wf(t,e)).matches&&-1===this.activatedBreakpoints.indexOf(e)?(this.activatedBreakpoints.push(e),this.activatedBreakpoints.sort(og),this.updateStyles()):t.matches||-1===this.activatedBreakpoints.indexOf(e)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(e),1),this.activatedBreakpoints.sort(og),this.updateStyles()))}init(t,e,i,n,s=[]){vg(this.updateMap,t,e,i),vg(this.clearMap,t,e,n),this.buildElementKeyMap(t,e),this.watchExtraTriggers(t,e,s)}getValue(t,e,i){const n=this.elementMap.get(t);if(n){const t=void 0!==i?n.get(i):this.getActivatedValues(n,e);if(t)return t.get(e)}}hasValue(t,e){const i=this.elementMap.get(t);if(i){const t=this.getActivatedValues(i,e);if(t)return void 0!==t.get(e)||!1}return!1}setValue(t,e,i,n){let s=this.elementMap.get(t);if(s){const r=(s.get(n)||new Map).set(e,i);s.set(n,r),this.elementMap.set(t,s)}else s=(new Map).set(n,(new Map).set(e,i)),this.elementMap.set(t,s);const r=this.getValue(t,e);void 0!==r&&this.updateElement(t,e,r)}trackValue(t,e){return this.subject.asObservable().pipe(Mm(i=>i.element===t&&i.key===e))}updateStyles(){this.elementMap.forEach((t,e)=>{const i=new Set(this.elementKeyMap.get(e));let n=this.getActivatedValues(t);n&&n.forEach((t,n)=>{this.updateElement(e,n,t),i.delete(n)}),i.forEach(i=>{if(n=this.getActivatedValues(t,i),n){const t=n.get(i);this.updateElement(e,i,t)}else this.clearElement(e,i)})})}clearElement(t,e){const i=this.clearMap.get(t);if(i){const n=i.get(e);n&&(n(),this.subject.next({element:t,key:e,value:""}))}}updateElement(t,e,i){const n=this.updateMap.get(t);if(n){const s=n.get(e);s&&(s(i),this.subject.next({element:t,key:e,value:i}))}}releaseElement(t){const e=this.watcherMap.get(t);e&&(e.forEach(t=>t.unsubscribe()),this.watcherMap.delete(t));const i=this.elementMap.get(t);i&&(i.forEach((t,e)=>i.delete(e)),this.elementMap.delete(t))}triggerUpdate(t,e){const i=this.elementMap.get(t);if(i){const n=this.getActivatedValues(i,e);n&&(e?this.updateElement(t,e,n.get(e)):n.forEach((e,i)=>this.updateElement(t,i,e)))}}buildElementKeyMap(t,e){let i=this.elementKeyMap.get(t);i||(i=new Set,this.elementKeyMap.set(t,i)),i.add(e)}watchExtraTriggers(t,e,i){if(i&&i.length){let n=this.watcherMap.get(t);if(n||(n=new Map,this.watcherMap.set(t,n)),!n.get(e)){const s=Y(...i).subscribe(()=>{const i=this.getValue(t,e);this.updateElement(t,e,i)});n.set(e,s)}}}findByQuery(t){return this.breakpoints.findByQuery(t)}getActivatedValues(t,e){for(let n=0;nt.mediaQuery);this.matchMedia.observe(this.hook.withPrintQuery(t)).pipe(If(this.hook.interceptEvents(this)),Mm(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return t.\u0275fac=function(e){return new(e||t)(wn(cg),wn(lg),wn(hg))},t.\u0275prov=_t({factory:function(){return new t(wn(cg),wn(lg),wn(hg))},token:t,providedIn:"root"}),t})();function vg(t,e,i,n){if(void 0!==n){let s=t.get(e);s||(s=new Map,t.set(e,s)),s.set(i,n)}}function wg(t){return null!=t&&"false"!=`${t}`}function Cg(t,e=0){return xg(t)?Number(t):e}function xg(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Sg(t){return Array.isArray(t)?t:[t]}function kg(t){return null==t?"":"string"==typeof t?t:`${t}px`}function Ag(t){return t instanceof hl?t.nativeElement:t}function Og(t,e=/\s+/){const i=[];if(null!=t){const n=Array.isArray(t)?t:`${t}`.split(e);for(const t of n){const e=`${t}`.trim();e&&i.push(e)}}return i}new Map;let Eg=(()=>{class t extends Yf{constructor(t,e,i,n,s,r,o){super(t,null,e,i),this.ngClassInstance=o,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new Qd(n,s,t,r)),this.init(),this.setValue("","")}set klass(t){this.ngClassInstance.klass=t,this.setValue(t,"")}updateWithValue(t){this.ngClassInstance.ngClass=t,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(fg),$o(yg),$o(Dl),$o(Il),$o(fl),$o(Qd,10))},t.\u0275dir=ie({type:t,inputs:{klass:["class","klass"]},features:[Oo]}),t})();const Tg=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"];let Pg=(()=>{class t extends Eg{constructor(){super(...arguments),this.inputs=Tg}}return t.\u0275fac=function(e){return Dg(e||t)},t.\u0275dir=ie({type:t,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[Oo]}),t})();const Dg=Qi(Pg);let Mg=(()=>{class t extends gg{buildStyles(t,e){return{display:"true"===t?e.display||(e.isServer?"initial":""):"none"}}}return t.\u0275fac=function(e){return Ig(e||t)},t.\u0275prov=_t({factory:function(){return new t},token:t,providedIn:"root"}),t})();const Ig=Qi(Mg);let Rg=(()=>{class t extends Yf{constructor(t,e,i,n,s,r,o){super(t,e,i,n),this.layoutConfig=s,this.platformId=r,this.serverModuleLoaded=o,this.DIRECTIVE_KEY="show-hide",this.display="",this.hasLayout=!1,this.hasFlexChild=!1}ngAfterViewInit(){this.trackExtraTriggers();const t=Array.from(this.nativeElement.children);for(let i=0;i{if(-1!==this.inputs.indexOf(e)){const i=e.split("."),n=i.slice(1).join("."),s=t[e].currentValue;let r=""===s||0!==s&&wg(s);"fxHide"===i[0]&&(r=!r),this.setValue(r,n)}})}trackExtraTriggers(){this.hasLayout=this.marshal.hasValue(this.nativeElement,"layout"),["layout","layout-align"].forEach(t=>{this.marshal.trackValue(this.nativeElement,t).pipe(Hp(this.destroySubject)).subscribe(this.triggerUpdate.bind(this))})}getDisplayStyle(){return this.hasLayout||this.hasFlexChild&&this.layoutConfig.addFlexToParent?"flex":this.styler.lookupStyle(this.nativeElement,"display",!0)}updateWithValue(t=!0){if(""===t)return;const e=wh(this.platformId);this.addStyles(t?"true":"false",{display:this.display,isServer:e}),e&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display",""),this.marshal.triggerUpdate(this.parentElement,"layout-gap")}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(Mg),$o(fg),$o(yg),$o(Gf),$o(Jc),$o(Uf))},t.\u0275dir=ie({type:t,features:[Oo,me]}),t})();const Lg=new WeakMap,Fg=["fxShow","fxShow.print","fxShow.xs","fxShow.sm","fxShow.md","fxShow.lg","fxShow.xl","fxShow.lt-sm","fxShow.lt-md","fxShow.lt-lg","fxShow.lt-xl","fxShow.gt-xs","fxShow.gt-sm","fxShow.gt-md","fxShow.gt-lg","fxHide","fxHide.print","fxHide.xs","fxHide.sm","fxHide.md","fxHide.lg","fxHide.xl","fxHide.lt-sm","fxHide.lt-md","fxHide.lt-lg","fxHide.lt-xl","fxHide.gt-xs","fxHide.gt-sm","fxHide.gt-md","fxHide.gt-lg"];let Ng=(()=>{class t extends Rg{constructor(){super(...arguments),this.inputs=Fg}}return t.\u0275fac=function(e){return Vg(e||t)},t.\u0275dir=ie({type:t,selectors:[["","fxShow",""],["","fxShow.print",""],["","fxShow.xs",""],["","fxShow.sm",""],["","fxShow.md",""],["","fxShow.lg",""],["","fxShow.xl",""],["","fxShow.lt-sm",""],["","fxShow.lt-md",""],["","fxShow.lt-lg",""],["","fxShow.lt-xl",""],["","fxShow.gt-xs",""],["","fxShow.gt-sm",""],["","fxShow.gt-md",""],["","fxShow.gt-lg",""],["","fxHide",""],["","fxHide.print",""],["","fxHide.xs",""],["","fxHide.sm",""],["","fxHide.md",""],["","fxHide.lg",""],["","fxHide.xl",""],["","fxHide.lt-sm",""],["","fxHide.lt-md",""],["","fxHide.lt-lg",""],["","fxHide.lt-xl",""],["","fxHide.gt-xs",""],["","fxHide.gt-sm",""],["","fxHide.gt-md",""],["","fxHide.gt-lg",""]],inputs:{fxShow:"fxShow","fxShow.print":"fxShow.print","fxShow.xs":"fxShow.xs","fxShow.sm":"fxShow.sm","fxShow.md":"fxShow.md","fxShow.lg":"fxShow.lg","fxShow.xl":"fxShow.xl","fxShow.lt-sm":"fxShow.lt-sm","fxShow.lt-md":"fxShow.lt-md","fxShow.lt-lg":"fxShow.lt-lg","fxShow.lt-xl":"fxShow.lt-xl","fxShow.gt-xs":"fxShow.gt-xs","fxShow.gt-sm":"fxShow.gt-sm","fxShow.gt-md":"fxShow.gt-md","fxShow.gt-lg":"fxShow.gt-lg",fxHide:"fxHide","fxHide.print":"fxHide.print","fxHide.xs":"fxHide.xs","fxHide.sm":"fxHide.sm","fxHide.md":"fxHide.md","fxHide.lg":"fxHide.lg","fxHide.xl":"fxHide.xl","fxHide.lt-sm":"fxHide.lt-sm","fxHide.lt-md":"fxHide.lt-md","fxHide.lt-lg":"fxHide.lt-lg","fxHide.lt-xl":"fxHide.lt-xl","fxHide.gt-xs":"fxHide.gt-xs","fxHide.gt-sm":"fxHide.gt-sm","fxHide.gt-md":"fxHide.gt-md","fxHide.gt-lg":"fxHide.gt-lg"},features:[Oo]}),t})();const Vg=Qi(Ng);class Bg{constructor(t,e,i=!0){this.key=t,this.value=e,this.key=i?t.replace(/['"]/g,"").trim():t.trim(),this.value=i?e.replace(/['"]/g,"").trim():e.trim(),this.value=this.value.replace(/;/,"")}}function Hg(t){let e=typeof t;return"object"===e?t.constructor===Array?"array":t.constructor===Set?"set":"object":e}function zg(t){const[e,...i]=t.split(":");return new Bg(e,i.join(":"))}function Gg(t,e){return e.key&&(t[e.key]=e.value),t}let Ug=(()=>{class t extends Yf{constructor(t,e,i,n,s,r,o,a,l){super(t,null,e,i),this.sanitizer=n,this.ngStyleInstance=o,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new oh(t,s,r)),this.init();const c=this.nativeElement.getAttribute("style")||"";this.fallbackStyles=this.buildStyleMap(c),this.isServer=a&&wh(l)}updateWithValue(t){const e=this.buildStyleMap(t);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),e),this.isServer&&this.applyStyleToElement(e),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(t){const e=t=>this.sanitizer.sanitize(hs.STYLE,t)||"";if(t)switch(Hg(t)){case"string":return qg(function(t,e=";"){return String(t).trim().split(e).map(t=>t.trim()).filter(t=>""!==t)}(t),e);case"array":return qg(t,e);case"set":default:return function(t,e){let i=[];return"set"===Hg(t)?t.forEach(t=>i.push(t)):Object.keys(t).forEach(e=>{i.push(`${e}:${t[e]}`)}),function(t,e){return t.map(zg).filter(t=>!!t).map(t=>(e&&(t.value=e(t.value)),t)).reduce(Gg,{})}(i,e)}(t,e)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(fg),$o(yg),$o(Xh),$o(Il),$o(fl),$o(oh,10),$o(Uf),$o(Jc))},t.\u0275dir=ie({type:t,features:[Oo]}),t})();const jg=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let Wg=(()=>{class t extends Ug{constructor(){super(...arguments),this.inputs=jg}}return t.\u0275fac=function(e){return $g(e||t)},t.\u0275dir=ie({type:t,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[Oo]}),t})();const $g=Qi(Wg);function qg(t,e){return t.map(zg).filter(t=>!!t).map(t=>(e&&(t.value=e(t.value)),t)).reduce(Gg,{})}let Yg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[Vf]]}),t})();const Qg=new en("cdk-dir-doc",{providedIn:"root",factory:function(){return Cn(qu)}});let Xg=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new kc,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)(wn(Qg,8))},t.\u0275prov=_t({factory:function(){return new t(wn(Qg,8))},token:t,providedIn:"root"}),t})(),Kg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({}),t})();const Zg=["row","column","row-reverse","column-reverse"];function Jg(t){t=t?t.toLowerCase():"";let[e,i,n]=t.split(" ");return Zg.find(t=>t===e)||(e=Zg[0]),"inline"===i&&(i="inline"!==n?n:"",n="inline"),[e,e_(i),!!n]}function t_(t){let[e]=Jg(t);return e.indexOf("row")>-1}function e_(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}let i_=(()=>{class t extends gg{buildStyles(t){return function(t){let[e,i,n]=Jg(t);return function(t,e=null,i=!1){return{display:i?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}(e,i,n)}(t)}}return t.\u0275fac=function(e){return n_(e||t)},t.\u0275prov=_t({factory:function(){return new t},token:t,providedIn:"root"}),t})();const n_=Qi(i_),s_=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let r_=(()=>{class t extends Yf{constructor(t,e,i,n){super(t,i,e,n),this.DIRECTIVE_KEY="layout",this.styleCache=l_,this.init()}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(fg),$o(i_),$o(yg))},t.\u0275dir=ie({type:t,features:[Oo]}),t})(),o_=(()=>{class t extends r_{constructor(){super(...arguments),this.inputs=s_}}return t.\u0275fac=function(e){return a_(e||t)},t.\u0275dir=ie({type:t,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[Oo]}),t})();const a_=Qi(o_),l_=new Map,c_={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null};let u_=(()=>{class t extends gg{constructor(t){super(),this._styler=t}buildStyles(t,e){return t.endsWith(y_)?function(t,e){const[i,n]=t.split(" "),s=t=>`-${t}`;let r="0px",o=s(n||i),a="0px";return"rtl"===e?a=s(i):r=s(i),{margin:`0px ${r} ${o} ${a}`}}(t=t.slice(0,t.indexOf(y_)),e.directionality):{}}sideEffect(t,e,i){const n=i.items;if(t.endsWith(y_)){const e=function(t,e){const[i,n]=t.split(" ");let s="0px",r="0px";return"rtl"===e?r=i:s=i,{padding:`0px ${s} ${n||i} ${r}`}}(t=t.slice(0,t.indexOf(y_)),i.directionality);this._styler.applyStyleToElements(e,i.items)}else{const e=n.pop(),s=function(t,e){const i=v_(e.directionality,e.layout),n=Object.assign({},c_);return n[i]=t,n}(t,i);this._styler.applyStyleToElements(s,n),this._styler.applyStyleToElements(c_,[e])}}}return t.\u0275fac=function(e){return new(e||t)(wn(fg))},t.\u0275prov=_t({factory:function(){return new t(wn(fg))},token:t,providedIn:"root"}),t})();const d_=["fxLayoutGap","fxLayoutGap.xs","fxLayoutGap.sm","fxLayoutGap.md","fxLayoutGap.lg","fxLayoutGap.xl","fxLayoutGap.lt-sm","fxLayoutGap.lt-md","fxLayoutGap.lt-lg","fxLayoutGap.lt-xl","fxLayoutGap.gt-xs","fxLayoutGap.gt-sm","fxLayoutGap.gt-md","fxLayoutGap.gt-lg"];let h_=(()=>{class t extends Yf{constructor(t,e,i,n,s,r){super(t,s,n,r),this.zone=e,this.directionality=i,this.styleUtils=n,this.layout="row",this.DIRECTIVE_KEY="layout-gap",this.observerSubject=new k;const o=[this.directionality.change,this.observerSubject.asObservable()];this.init(o),this.marshal.trackValue(this.nativeElement,"layout").pipe(Hp(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}get childrenNodes(){const t=this.nativeElement.children,e=[];for(let i=t.length;i--;)e[i]=t[i];return e}ngAfterContentInit(){this.buildChildObservable(),this.triggerUpdate()}ngOnDestroy(){super.ngOnDestroy(),this.observer&&this.observer.disconnect()}onLayoutChange(t){const e=t.value.split(" ");this.layout=e[0],Zg.find(t=>t===this.layout)||(this.layout="row"),this.triggerUpdate()}updateWithValue(t){const e=this.childrenNodes.filter(t=>1===t.nodeType&&this.willDisplay(t)).sort((t,e)=>{const i=+this.styler.lookupStyle(t,"order"),n=+this.styler.lookupStyle(e,"order");return isNaN(i)||isNaN(n)||i===n?0:i>n?1:-1});if(e.length>0){const i=this.directionality.value,n=this.layout;"row"===n&&"rtl"===i?this.styleCache=f_:"row"===n&&"rtl"!==i?this.styleCache=__:"column"===n&&"rtl"===i?this.styleCache=g_:"column"===n&&"rtl"!==i&&(this.styleCache=b_),this.addStyles(t,{directionality:i,items:e,layout:n})}}clearStyles(){const t=Object.keys(this.mru).length>0,e=t?"padding":v_(this.directionality.value,this.layout);t&&super.clearStyles(),this.styleUtils.applyStyleToElements({[e]:""},this.childrenNodes)}willDisplay(t){const e=this.marshal.getValue(t,"show-hide");return!0===e||void 0===e&&"none"!==this.styleUtils.lookupStyle(t,"display")}buildChildObservable(){this.zone.runOutsideAngular(()=>{"undefined"!=typeof MutationObserver&&(this.observer=new MutationObserver(t=>{t.some(t=>t.addedNodes&&t.addedNodes.length>0||t.removedNodes&&t.removedNodes.length>0)&&this.observerSubject.next()}),this.observer.observe(this.nativeElement,{childList:!0}))})}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(mu),$o(Xg),$o(fg),$o(u_),$o(yg))},t.\u0275dir=ie({type:t,features:[Oo]}),t})(),p_=(()=>{class t extends h_{constructor(){super(...arguments),this.inputs=d_}}return t.\u0275fac=function(e){return m_(e||t)},t.\u0275dir=ie({type:t,selectors:[["","fxLayoutGap",""],["","fxLayoutGap.xs",""],["","fxLayoutGap.sm",""],["","fxLayoutGap.md",""],["","fxLayoutGap.lg",""],["","fxLayoutGap.xl",""],["","fxLayoutGap.lt-sm",""],["","fxLayoutGap.lt-md",""],["","fxLayoutGap.lt-lg",""],["","fxLayoutGap.lt-xl",""],["","fxLayoutGap.gt-xs",""],["","fxLayoutGap.gt-sm",""],["","fxLayoutGap.gt-md",""],["","fxLayoutGap.gt-lg",""]],inputs:{fxLayoutGap:"fxLayoutGap","fxLayoutGap.xs":"fxLayoutGap.xs","fxLayoutGap.sm":"fxLayoutGap.sm","fxLayoutGap.md":"fxLayoutGap.md","fxLayoutGap.lg":"fxLayoutGap.lg","fxLayoutGap.xl":"fxLayoutGap.xl","fxLayoutGap.lt-sm":"fxLayoutGap.lt-sm","fxLayoutGap.lt-md":"fxLayoutGap.lt-md","fxLayoutGap.lt-lg":"fxLayoutGap.lt-lg","fxLayoutGap.lt-xl":"fxLayoutGap.lt-xl","fxLayoutGap.gt-xs":"fxLayoutGap.gt-xs","fxLayoutGap.gt-sm":"fxLayoutGap.gt-sm","fxLayoutGap.gt-md":"fxLayoutGap.gt-md","fxLayoutGap.gt-lg":"fxLayoutGap.gt-lg"},features:[Oo]}),t})();const m_=Qi(p_),f_=new Map,g_=new Map,__=new Map,b_=new Map,y_=" grid";function v_(t,e){switch(e){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":return"rtl"===t?"margin-left":"margin-right";case"row-reverse":return"rtl"===t?"margin-right":"margin-left";default:return"rtl"===t?"margin-left":"margin-right"}}function w_(t,...e){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let i of e)if(null!=i)for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e]);return t}let C_=(()=>{class t extends gg{constructor(t){super(),this.layoutConfig=t}buildStyles(t,e){let[i,n,...s]=t.split(" "),r=s.join(" ");const o=e.direction.indexOf("column")>-1?"column":"row",a=t_(o)?"max-width":"max-height",l=t_(o)?"min-width":"min-height",c=String(r).indexOf("calc")>-1,u=c||"auto"===r,d=String(r).indexOf("%")>-1&&!c,h=String(r).indexOf("px")>-1||String(r).indexOf("rem")>-1||String(r).indexOf("em")>-1||String(r).indexOf("vw")>-1||String(r).indexOf("vh")>-1;let p=c||h;i="0"==i?0:i,n="0"==n?0:n;const m=!i&&!n;let f={};const g={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(r||""){case"":const t=!1!==this.layoutConfig.useColumnBasisZero;r="row"===o?"0%":t?"0.000000001px":"auto";break;case"initial":case"nogrow":i=0,r="auto";break;case"grow":r="100%";break;case"noshrink":n=0,r="auto";break;case"auto":break;case"none":i=0,n=0,r="auto";break;default:p||d||isNaN(r)||(r+="%"),"0%"===r&&(p=!0),"0px"===r&&(r="0%"),f=w_(g,c?{"flex-grow":i,"flex-shrink":n,"flex-basis":p?r:"100%"}:{flex:`${i} ${n} ${p?r:"100%"}`})}return f.flex||f["flex-grow"]||(f=w_(g,c?{"flex-grow":i,"flex-shrink":n,"flex-basis":r}:{flex:`${i} ${n} ${r}`})),"0%"!==r&&"0px"!==r&&"0.000000001px"!==r&&"auto"!==r&&(f[l]=m||p&&i?r:null,f[a]=m||!u&&n?r:null),f[l]||f[a]?e.hasWrap&&(f[c?"flex-basis":"flex"]=f[a]?c?f[a]:`${i} ${n} ${f[a]}`:c?f[l]:`${i} ${n} ${f[l]}`):f=w_(g,c?{"flex-grow":i,"flex-shrink":n,"flex-basis":r}:{flex:`${i} ${n} ${r}`}),w_(f,{"box-sizing":"border-box"})}}return t.\u0275fac=function(e){return new(e||t)(wn(Gf))},t.\u0275prov=_t({factory:function(){return new t(wn(Gf))},token:t,providedIn:"root"}),t})();const x_=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let S_=(()=>{class t extends Yf{constructor(t,e,i,n,s){super(t,n,e,s),this.layoutConfig=i,this.marshal=s,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(t){this.flexShrink=t||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(t){this.flexGrow=t||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(Hp(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(Hp(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(t){const e=t.value.split(" ");this.direction=e[0],this.wrap=void 0!==e[1]&&"wrap"===e[1],this.triggerUpdate()}updateWithValue(t){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const e=this.direction,i=e.startsWith("row"),n=this.wrap;i&&n?this.styleCache=T_:i&&!n?this.styleCache=O_:!i&&n?this.styleCache=P_:i||n||(this.styleCache=E_);const s=_g(String(t).replace(";",""),this.flexGrow,this.flexShrink);this.addStyles(s.join(" "),{direction:e,hasWrap:n})}triggerReflow(){const t=this.activatedValue;if(void 0!==t){const e=_g(t+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,e.join(" "))}}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(fg),$o(Gf),$o(C_),$o(yg))},t.\u0275dir=ie({type:t,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[Oo]}),t})(),k_=(()=>{class t extends S_{constructor(){super(...arguments),this.inputs=x_}}return t.\u0275fac=function(e){return A_(e||t)},t.\u0275dir=ie({type:t,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[Oo]}),t})();const A_=Qi(k_),O_=new Map,E_=new Map,T_=new Map,P_=new Map;new Map;let D_=(()=>{class t extends gg{buildStyles(t,e){""===t&&(t="0");const i=String(t).indexOf("%")>-1;String(t).indexOf("px")>-1||i||isNaN(+t)||(t+="%");const n=e.isRtl?"margin-right":"margin-left";return t_(e.layout)?{[n]:`${t}`}:{"margin-top":`${t}`}}}return t.\u0275fac=function(e){return M_(e||t)},t.\u0275prov=_t({factory:function(){return new t},token:t,providedIn:"root"}),t})();const M_=Qi(D_),I_=["fxFlexOffset","fxFlexOffset.xs","fxFlexOffset.sm","fxFlexOffset.md","fxFlexOffset.lg","fxFlexOffset.xl","fxFlexOffset.lt-sm","fxFlexOffset.lt-md","fxFlexOffset.lt-lg","fxFlexOffset.lt-xl","fxFlexOffset.gt-xs","fxFlexOffset.gt-sm","fxFlexOffset.gt-md","fxFlexOffset.gt-lg"];let R_=(()=>{class t extends Yf{constructor(t,e,i,n,s){super(t,i,s,n),this.directionality=e,this.DIRECTIVE_KEY="flex-offset",this.init([this.directionality.change]),this.parentElement&&this.marshal.trackValue(this.parentElement,"layout-gap").pipe(Hp(this.destroySubject)).subscribe(this.triggerUpdate.bind(this))}updateWithValue(t=""){const e=this.getFlexFlowDirection(this.parentElement,!0),i="rtl"===this.directionality.value;"row"===e&&i?this.styleCache=N_:"row"!==e||i?"column"===e&&i?this.styleCache=V_:"column"!==e||i||(this.styleCache=H_):this.styleCache=B_,this.addStyles(t+"",{layout:e,isRtl:i})}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(Xg),$o(D_),$o(yg),$o(fg))},t.\u0275dir=ie({type:t,features:[Oo]}),t})(),L_=(()=>{class t extends R_{constructor(){super(...arguments),this.inputs=I_}}return t.\u0275fac=function(e){return F_(e||t)},t.\u0275dir=ie({type:t,selectors:[["","fxFlexOffset",""],["","fxFlexOffset.xs",""],["","fxFlexOffset.sm",""],["","fxFlexOffset.md",""],["","fxFlexOffset.lg",""],["","fxFlexOffset.xl",""],["","fxFlexOffset.lt-sm",""],["","fxFlexOffset.lt-md",""],["","fxFlexOffset.lt-lg",""],["","fxFlexOffset.lt-xl",""],["","fxFlexOffset.gt-xs",""],["","fxFlexOffset.gt-sm",""],["","fxFlexOffset.gt-md",""],["","fxFlexOffset.gt-lg",""]],inputs:{fxFlexOffset:"fxFlexOffset","fxFlexOffset.xs":"fxFlexOffset.xs","fxFlexOffset.sm":"fxFlexOffset.sm","fxFlexOffset.md":"fxFlexOffset.md","fxFlexOffset.lg":"fxFlexOffset.lg","fxFlexOffset.xl":"fxFlexOffset.xl","fxFlexOffset.lt-sm":"fxFlexOffset.lt-sm","fxFlexOffset.lt-md":"fxFlexOffset.lt-md","fxFlexOffset.lt-lg":"fxFlexOffset.lt-lg","fxFlexOffset.lt-xl":"fxFlexOffset.lt-xl","fxFlexOffset.gt-xs":"fxFlexOffset.gt-xs","fxFlexOffset.gt-sm":"fxFlexOffset.gt-sm","fxFlexOffset.gt-md":"fxFlexOffset.gt-md","fxFlexOffset.gt-lg":"fxFlexOffset.gt-lg"},features:[Oo]}),t})();const F_=Qi(L_),N_=new Map,V_=new Map,B_=new Map,H_=new Map;let z_=(()=>{class t extends gg{buildStyles(t){const e={};switch(t=t||"stretch"){case"start":e["align-self"]="flex-start";break;case"end":e["align-self"]="flex-end";break;default:e["align-self"]=t}return e}}return t.\u0275fac=function(e){return G_(e||t)},t.\u0275prov=_t({factory:function(){return new t},token:t,providedIn:"root"}),t})();const G_=Qi(z_),U_=["fxFlexAlign","fxFlexAlign.xs","fxFlexAlign.sm","fxFlexAlign.md","fxFlexAlign.lg","fxFlexAlign.xl","fxFlexAlign.lt-sm","fxFlexAlign.lt-md","fxFlexAlign.lt-lg","fxFlexAlign.lt-xl","fxFlexAlign.gt-xs","fxFlexAlign.gt-sm","fxFlexAlign.gt-md","fxFlexAlign.gt-lg"];let j_=(()=>{class t extends Yf{constructor(t,e,i,n){super(t,i,e,n),this.DIRECTIVE_KEY="flex-align",this.styleCache=W_,this.init()}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(fg),$o(z_),$o(yg))},t.\u0275dir=ie({type:t,features:[Oo]}),t})();const W_=new Map;let $_=(()=>{class t extends j_{constructor(){super(...arguments),this.inputs=U_}}return t.\u0275fac=function(e){return q_(e||t)},t.\u0275dir=ie({type:t,selectors:[["","fxFlexAlign",""],["","fxFlexAlign.xs",""],["","fxFlexAlign.sm",""],["","fxFlexAlign.md",""],["","fxFlexAlign.lg",""],["","fxFlexAlign.xl",""],["","fxFlexAlign.lt-sm",""],["","fxFlexAlign.lt-md",""],["","fxFlexAlign.lt-lg",""],["","fxFlexAlign.lt-xl",""],["","fxFlexAlign.gt-xs",""],["","fxFlexAlign.gt-sm",""],["","fxFlexAlign.gt-md",""],["","fxFlexAlign.gt-lg",""]],inputs:{fxFlexAlign:"fxFlexAlign","fxFlexAlign.xs":"fxFlexAlign.xs","fxFlexAlign.sm":"fxFlexAlign.sm","fxFlexAlign.md":"fxFlexAlign.md","fxFlexAlign.lg":"fxFlexAlign.lg","fxFlexAlign.xl":"fxFlexAlign.xl","fxFlexAlign.lt-sm":"fxFlexAlign.lt-sm","fxFlexAlign.lt-md":"fxFlexAlign.lt-md","fxFlexAlign.lt-lg":"fxFlexAlign.lt-lg","fxFlexAlign.lt-xl":"fxFlexAlign.lt-xl","fxFlexAlign.gt-xs":"fxFlexAlign.gt-xs","fxFlexAlign.gt-sm":"fxFlexAlign.gt-sm","fxFlexAlign.gt-md":"fxFlexAlign.gt-md","fxFlexAlign.gt-lg":"fxFlexAlign.gt-lg"},features:[Oo]}),t})();const q_=Qi($_);new Map;let Y_=(()=>{class t extends gg{buildStyles(t,e){const i={},[n,s]=t.split(" ");switch(n){case"center":i["justify-content"]="center";break;case"space-around":i["justify-content"]="space-around";break;case"space-between":i["justify-content"]="space-between";break;case"space-evenly":i["justify-content"]="space-evenly";break;case"end":case"flex-end":i["justify-content"]="flex-end";break;case"start":case"flex-start":default:i["justify-content"]="flex-start"}switch(s){case"start":case"flex-start":i["align-items"]=i["align-content"]="flex-start";break;case"center":i["align-items"]=i["align-content"]="center";break;case"end":case"flex-end":i["align-items"]=i["align-content"]="flex-end";break;case"space-between":i["align-content"]="space-between",i["align-items"]="stretch";break;case"space-around":i["align-content"]="space-around",i["align-items"]="stretch";break;case"baseline":i["align-content"]="stretch",i["align-items"]="baseline";break;case"stretch":default:i["align-items"]=i["align-content"]="stretch"}return w_(i,{display:e.inline?"inline-flex":"flex","flex-direction":e.layout,"box-sizing":"border-box","max-width":"stretch"===s?t_(e.layout)?null:"100%":null,"max-height":"stretch"===s&&t_(e.layout)?"100%":null})}}return t.\u0275fac=function(e){return Q_(e||t)},t.\u0275prov=_t({factory:function(){return new t},token:t,providedIn:"root"}),t})();const Q_=Qi(Y_),X_=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];let K_=(()=>{class t extends Yf{constructor(t,e,i,n){super(t,i,e,n),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe(Hp(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(t){const e=this.layout||"row",i=this.inline;"row"===e&&i?this.styleCache=sb:"row"!==e||i?"row-reverse"===e&&i?this.styleCache=ob:"row-reverse"!==e||i?"column"===e&&i?this.styleCache=rb:"column"!==e||i?"column-reverse"===e&&i?this.styleCache=ab:"column-reverse"!==e||i||(this.styleCache=nb):this.styleCache=eb:this.styleCache=ib:this.styleCache=tb,this.addStyles(t,{layout:e,inline:i})}onLayoutChange(t){const e=t.value.split(" ");this.layout=e[0],this.inline=t.value.includes("inline"),Zg.find(t=>t===this.layout)||(this.layout="row"),this.triggerUpdate()}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(fg),$o(Y_),$o(yg))},t.\u0275dir=ie({type:t,features:[Oo]}),t})(),Z_=(()=>{class t extends K_{constructor(){super(...arguments),this.inputs=X_}}return t.\u0275fac=function(e){return J_(e||t)},t.\u0275dir=ie({type:t,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[Oo]}),t})();const J_=Qi(Z_),tb=new Map,eb=new Map,ib=new Map,nb=new Map,sb=new Map,rb=new Map,ob=new Map,ab=new Map;let lb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[Vf,Kg]]}),t})();new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map;let cb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[Vf]]}),t})();new bl("11.0.0-beta.33");let ub=(()=>{class t{constructor(t,e){wh(e)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,i=[]){return{ngModule:t,providers:e.serverLoaded?[{provide:Gf,useValue:Object.assign(Object.assign({},zf),e)},{provide:jf,useValue:i,multi:!0},{provide:Uf,useValue:!0}]:[{provide:Gf,useValue:Object.assign(Object.assign({},zf),e)},{provide:jf,useValue:i,multi:!0}]}}}return t.\u0275fac=function(e){return new(e||t)(wn(Uf),wn(Jc))},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[lb,Yg,cb],lb,Yg,cb]}),t})();function db(...t){if(1===t.length){const e=t[0];if(l(e))return hb(e,null);if(c(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return hb(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return hb(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(E(t=>e(...t)))}return hb(t,null)}function hb(t,e){return new v(i=>{const n=t.length;if(0===n)return void i.complete();const s=new Array(n);let r=0,o=0;for(let a=0;a{c||(c=!0,o++),s[a]=t},error:t=>i.error(t),complete:()=>{r++,r!==n&&c||(o===n&&i.next(e?e.reduce((t,e,i)=>(t[e]=s[i],t),{}):s),i.complete())}}))}})}class pb{}const mb=new en("NgValueAccessor"),fb={provide:mb,useExisting:ut(()=>_b),multi:!0},gb=new en("CompositionEventMode");let _b=(()=>{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=$u()?$u().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)($o(fl),$o(hl),$o(gb,8))},t.\u0275dir=ie({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&&ra("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:[rl([fb])]}),t})();function bb(t){return null==t||0===t.length}function yb(t){return null!=t&&"number"==typeof t.length}const vb=new en("NgValidators"),wb=new en("NgAsyncValidators"),Cb=/^(?=.{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 xb{static min(t){return function(t){return e=>{if(bb(e.value)||bb(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i{if(bb(e.value)||bb(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}(t)}static required(t){return Sb(t)}static requiredTrue(t){return function(t){return!0===t.value?null:{required:!0}}(t)}static email(t){return function(t){return bb(t.value)||Cb.test(t.value)?null:{email:!0}}(t)}static minLength(t){return function(t){return e=>bb(e.value)||!yb(e.value)?null:e.value.lengthyb(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}(t)}static pattern(t){return function(t){if(!t)return kb;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(bb(t.value))return null;const n=t.value;return e.test(n)?null:{pattern:{requiredPattern:i,actualValue:n}}}}(t)}static nullValidator(t){return null}static compose(t){return Db(t)}static composeAsync(t){return Ib(t)}}function Sb(t){return bb(t.value)?{required:!0}:null}function kb(t){return null}function Ab(t){return null!=t}function Ob(t){const e=ia(t)?V(t):t;return sa(e),e}function Eb(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 Tb(t,e){return e.map(e=>e(t))}function Pb(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function Db(t){if(!t)return null;const e=t.filter(Ab);return 0==e.length?null:function(t){return Eb(Tb(t,e))}}function Mb(t){return null!=t?Db(Pb(t)):null}function Ib(t){if(!t)return null;const e=t.filter(Ab);return 0==e.length?null:function(t){return db(Tb(t,e).map(Ob)).pipe(E(Eb))}}function Rb(t){return null!=t?Ib(Pb(t)):null}function Lb(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function Fb(t){return t._rawValidators}function Nb(t){return t._rawAsyncValidators}let Vb=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}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}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Mb(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Rb(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}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=ie({type:t}),t})(),Bb=(()=>{class t extends Vb{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return Hb(e||t)},t.\u0275dir=ie({type:t,features:[Oo]}),t})();const Hb=Qi(Bb);class zb extends Vb{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Gb{constructor(t){this._cd=t}is(t){var e,i;return!!(null===(i=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===i?void 0:i[t])}}let Ub=(()=>{class t extends Gb{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)($o(zb,2))},t.\u0275dir=ie({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&Sa("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[Oo]}),t})(),jb=(()=>{class t extends Gb{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)($o(Bb,10))},t.\u0275dir=ie({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&Sa("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[Oo]}),t})();function Wb(t,e){Yb(t,e,!0),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Xb(t,e)})}(t,e),function(t,e){const i=(t,i)=>{e.valueAccessor.writeValue(t),i&&e.viewToModelUpdate(t)};t.registerOnChange(i),e._registerOnDestroy(()=>{t._unregisterOnChange(i)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Xb(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const i=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(i),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(i)})}}(t,e)}function $b(t,e,i=!0){const n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),Qb(t,e,!0),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function qb(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function Yb(t,e,i){const n=Fb(t);null!==e.validator?t.setValidators(Lb(n,e.validator)):"function"==typeof n&&t.setValidators([n]);const s=Nb(t);if(null!==e.asyncValidator?t.setAsyncValidators(Lb(s,e.asyncValidator)):"function"==typeof s&&t.setAsyncValidators([s]),i){const i=()=>t.updateValueAndValidity();qb(e._rawValidators,i),qb(e._rawAsyncValidators,i)}}function Qb(t,e,i){let n=!1;if(null!==t){if(null!==e.validator){const i=Fb(t);if(Array.isArray(i)&&i.length>0){const s=i.filter(t=>t!==e.validator);s.length!==i.length&&(n=!0,t.setValidators(s))}}if(null!==e.asyncValidator){const i=Nb(t);if(Array.isArray(i)&&i.length>0){const s=i.filter(t=>t!==e.asyncValidator);s.length!==i.length&&(n=!0,t.setAsyncValidators(s))}}}if(i){const t=()=>{};qb(e._rawValidators,t),qb(e._rawAsyncValidators,t)}return n}function Xb(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Kb(t,e){Yb(t,e,!1)}function Zb(t,e){if(!t.hasOwnProperty("model"))return!1;const i=t.model;return!!i.isFirstChange()||!Object.is(e,i.currentValue)}function Jb(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function ty(t,e){if(!e)return null;let i,n,s;return Array.isArray(e),e.forEach(t=>{t.constructor===_b?i=t:Object.getPrototypeOf(t.constructor)===pb?n=t:s=t}),s||n||i||null}function ey(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}function iy(t){return(oy(t)?t.validators:t)||null}function ny(t){return Array.isArray(t)?Mb(t):t||null}function sy(t,e){return(oy(e)?e.asyncValidators:t)||null}function ry(t){return Array.isArray(t)?Rb(t):t||null}function oy(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class ay{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=ny(this._rawValidators),this._composedAsyncValidatorFn=ry(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}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._rawValidators=t,this._composedValidatorFn=ny(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=ry(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",this._hasOwnPendingAsyncValidator=!0;const e=Ob(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}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 cy?n.controls.hasOwnProperty(t)?n.controls[t]:null:n instanceof uy&&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 kc,this.statusChanges=new kc}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||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){oy(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class ly extends ay{constructor(t=null,e,i){super(iy(e),sy(i,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!i})}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)}_unregisterOnChange(t){ey(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){ey(this._onDisabledChange,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 cy extends ay{constructor(t,e,i){super(iy(e),sy(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!i})}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={}){null!=t&&(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 ly?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=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const i=this.controls[e];if(this.contains(e)&&t(i))return!0}return!1}_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 uy extends ay{constructor(t,e,i){super(iy(e),sy(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!i})}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={}){null!=t&&(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 ly?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 dy={provide:Bb,useExisting:ut(()=>py)},hy=(()=>Promise.resolve(null))();let py=(()=>{class t extends Bb{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new kc,this.form=new cy({},Mb(t),Rb(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){hy.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),Wb(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){hy.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),ey(this._directives,t)})}addFormGroup(t){hy.then(()=>{const e=this._findContainer(t.path),i=new cy({});Kb(i,t),e.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){hy.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){hy.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,Jb(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)($o(vb,10),$o(wb,10))},t.\u0275dir=ie({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&ra("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[rl([dy]),Oo]}),t})();const my={provide:zb,useExisting:ut(()=>gy)},fy=(()=>Promise.resolve(null))();let gy=(()=>{class t extends zb{constructor(t,e,i,n){super(),this.control=new ly,this._registered=!1,this.update=new kc,this._parent=t,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=ty(0,n)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),Zb(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?function(t,e){return[...e.path,t]}(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}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(){Wb(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){fy.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,i=""===e||e&&"false"!==e;fy.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)($o(Bb,9),$o(vb,10),$o(wb,10),$o(mb,10))},t.\u0275dir=ie({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:[rl([my]),Oo,me]}),t})(),_y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ie({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const by={provide:mb,useExisting:ut(()=>yy),multi:!0};let yy=(()=>{class t extends pb{constructor(t,e){super(),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)($o(fl),$o(hl))},t.\u0275dir=ie({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&ra("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[rl([by]),Oo]}),t})(),vy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({}),t})();const wy=new en("NgModelWithFormControlWarning"),Cy={provide:zb,useExisting:ut(()=>xy)};let xy=(()=>{class t extends zb{constructor(t,e,i,n){super(),this._ngModelWarningConfig=n,this.update=new kc,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(e),this.valueAccessor=ty(0,i)}set isDisabled(t){}ngOnChanges(t){if(this._isControlChanged(t)){const e=t.form.previousValue;e&&$b(e,this,!1),Wb(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Zb(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&$b(this.form,this,!1)}get path(){return[]}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)($o(vb,10),$o(wb,10),$o(mb,10),$o(wy,8))},t.\u0275dir=ie({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[rl([Cy]),Oo,me]}),t._ngModelWarningSentOnce=!1,t})();const Sy={provide:Bb,useExisting:ut(()=>ky)};let ky=(()=>{class t extends Bb{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new kc,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Qb(this.form,this,!1),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return Wb(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){$b(t.control||null,t,!1),ey(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(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,Jb(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=t.control,i=this.form.get(t.path);e!==i&&($b(e||null,t),i instanceof ly&&(Wb(i,t),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);Kb(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);e&&function(t,e){return Qb(t,e,!1)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Yb(this.form,this,!1),this._oldForm&&Qb(this._oldForm,this,!1)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)($o(vb,10),$o(wb,10))},t.\u0275dir=ie({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&ra("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[rl([Sy]),Oo,me]}),t})();const Ay={provide:vb,useExisting:ut(()=>Ey),multi:!0};let Oy,Ey=(()=>{class t{constructor(){this._required=!1}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?Sb(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ie({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&&zo("required",e.required?"":null)},inputs:{required:"required"},features:[rl([Ay])]}),t})(),Ty=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[vy]]}),t})(),Py=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[Ty]}),t})(),Dy=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:wy,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[Ty]}),t})();function My(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}try{Oy="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(i2){Oy=!1}let Iy,Ry=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?vh(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&&!Oy)&&"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)(wn(Jc))},t.\u0275prov=_t({factory:function(){return new t(wn(Jc))},token:t,providedIn:"root"}),t})(),Ly=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({}),t})();const Fy=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Ny(){if(Iy)return Iy;if("object"!=typeof document||!document)return Iy=new Set(Fy),Iy;let t=document.createElement("input");return Iy=new Set(Fy.filter(e=>(t.setAttribute("type",e),t.type===e))),Iy}let Vy,By,Hy,zy;function Gy(t){return function(){if(null==Vy&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Vy=!0}))}finally{Vy=Vy||!1}return Vy}()?t:!!t.capture}function Uy(){if(null==Hy){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Hy=!1,Hy;if("scrollBehavior"in document.documentElement.style)Hy=!0;else{const t=Element.prototype.scrollTo;Hy=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return Hy}function jy(){if("object"!=typeof document||!document)return 0;if(null==By){const t=document.createElement("div"),e=t.style;t.dir="rtl",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),By=0,0===t.scrollLeft&&(t.scrollLeft=1,By=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return By}function Wy(t){if(function(){if(null==zy){const t="undefined"!=typeof document?document.head:null;zy=!(!t||!t.createShadowRoot&&!t.attachShadow)}return zy}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}let $y=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({factory:function(){return new t},token:t,providedIn:"root"}),t})(),qy=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=Ag(t);return new v(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 k,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)(wn($y))},t.\u0275prov=_t({factory:function(){return new t(wn($y))},token:t,providedIn:"root"}),t})(),Yy=(()=>{class t{constructor(t,e,i){this._contentObserver=t,this._elementRef=e,this._ngZone=i,this.event=new kc,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=wg(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=Cg(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(Sf(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)($o(qy),$o(hl),$o(mu))},t.\u0275dir=ie({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),Qy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:[$y]}),t})();function Xy(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}let Ky=0;const Zy=new Map;let Jy=null,tv=(()=>{class t{constructor(t){this._document=t}describe(t,e,i){if(!this._canBeDescribed(t,e))return;const n=ev(e,i);"string"!=typeof e?(iv(e),Zy.set(n,{messageElement:e,referenceCount:0})):Zy.has(n)||this._createMessageElement(e,i),this._isElementDescribedByMessage(t,n)||this._addMessageReference(t,n)}removeDescription(t,e,i){if(!e||!this._isElementNode(t))return;const n=ev(e,i);if(this._isElementDescribedByMessage(t,n)&&this._removeMessageReference(t,n),"string"==typeof e){const t=Zy.get(n);t&&0===t.referenceCount&&this._deleteMessageElement(n)}Jy&&0===Jy.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=Zy.get(e);!function(t,e,i){const n=Xy(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=Zy.get(e);i.referenceCount--,function(t,e,i){const n=Xy(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=Xy(t,"aria-describedby"),n=Zy.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)(wn(qu))},t.\u0275prov=_t({factory:function(){return new t(wn(qu))},token:t,providedIn:"root"}),t})();function ev(t,e){return"string"==typeof t?`${e||""}/${t}`:t}function iv(t){t.id||(t.id="cdk-describedby-message-"+Ky++)}class nv{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new k,this._typeaheadSubscription=d.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new k,this.change=new k,t instanceof Oc&&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){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(If(t=>this._pressedLetters.push(t)),Sf(t),Mm(()=>this._pressedLetters.length>0),E(()=>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;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||My(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 Oc?this._items.toArray():this._items}}class sv extends nv{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class rv extends nv{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 ov=(()=>{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(i2){return null}}((i=t).ownerDocument&&i.ownerDocument.defaultView||window);var i;if(e){if(-1===lv(e))return!1;if(!this.isVisible(e))return!1}let n=t.nodeName.toLowerCase(),s=lv(t);return t.hasAttribute("contenteditable")?-1!==s:"iframe"!==n&&"object"!==n&&!(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))&&("audio"===n?!!t.hasAttribute("controls")&&-1!==s:"video"===n?-1!==s&&(null!==s||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){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")||av(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(wn(Ry))},t.\u0275prov=_t({factory:function(){return new t(wn(Ry))},token:t,providedIn:"root"}),t})();function av(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 lv(t){if(!av(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class cv{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,this._hasAttached=!1}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.pipe(Tf(1)).subscribe(t)}}let uv=(()=>{class t{constructor(t,e,i){this._checker=t,this._ngZone=e,this._document=i}create(t,e=!1){return new cv(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(wn(ov),wn(mu),wn(qu))},t.\u0275prov=_t({factory:function(){return new t(wn(ov),wn(mu),wn(qu))},token:t,providedIn:"root"}),t})(),dv=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._focusTrapFactory=e,this._previouslyFocusedElement=null,this._document=i,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(t){this.focusTrap.enabled=wg(t)}get autoCapture(){return this._autoCapture}set autoCapture(t){this._autoCapture=wg(t)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(t){const e=t.autoCapture;e&&!e.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=this._document.activeElement,this.focusTrap.focusInitialElementWhenReady()}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(uv),$o(qu))},t.\u0275dir=ie({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[me]}),t})();"undefined"!=typeof Element&∈const hv=new en("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),pv=new en("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let mv=(()=>{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,i,n){this._elementRef=t,this._liveAnnouncer=e,this._contentObserver=i,this._ngZone=n,this._politeness="polite"}get politeness(){return this._politeness}set politeness(t){this._politeness="off"===t||"assertive"===t?t:"polite","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const t=this._elementRef.nativeElement.textContent;t!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(t,this._politeness),this._previousAnnouncedText=t)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(mv),$o(qy),$o(mu))},t.\u0275dir=ie({type:t,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),t})();function gv(t){return 0===t.buttons}function _v(t){const e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}const bv=new en("cdk-focus-monitor-default-options"),yv=Gy({passive:!0,capture:!0});let vv=(()=>{class t{constructor(t,e,i,n){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=gv(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{_v(t)?this._lastTouchTarget||this._setOriginForCurrentEventQueue("keyboard"):(null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=wv(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650))},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=wv(t),i="focus"===t.type?this._onFocus:this._onBlur;for(let n=e;n;n=n.parentElement)i.call(this,t,n)},this._document=i,this._detectionMode=(null==n?void 0:n.detectionMode)||0}monitor(t,e=!1){const i=Ag(t);if(!this._platform.isBrowser||1!==i.nodeType)return Sp(null);const n=Wy(i)||this._getDocument(),s=this._elementInfo.get(i);if(s)return e&&(s.checkChildren=!0),s.subject;const r={checkChildren:e,subject:new k,rootNode:n};return this._elementInfo.set(i,r),this._registerGlobalListeners(r),r.subject}stopMonitoring(t){const e=Ag(t),i=this._elementInfo.get(e);i&&(i.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(i))}focusVia(t,e,i){const n=Ag(t);n===this._getDocument().activeElement?this._getClosestElementsInfo(n).forEach(([t,i])=>this._originChanged(t,e,i)):(this._setOriginForCurrentEventQueue(e),"function"==typeof n.focus&&n.focus(i))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,i){i?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=wv(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const i=this._elementInfo.get(e);i&&(i.checkChildren||e===wv(t))&&this._originChanged(e,this._getFocusOrigin(t),i)}_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))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,i=this._rootNodeFocusListenerCount.get(e)||0;i||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,yv),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,yv)}),this._rootNodeFocusListenerCount.set(e,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,yv),t.addEventListener("mousedown",this._documentMousedownListener,yv),t.addEventListener("touchstart",this._documentTouchstartListener,yv),e.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,yv),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,yv),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,yv),t.removeEventListener("mousedown",this._documentMousedownListener,yv),t.removeEventListener("touchstart",this._documentTouchstartListener,yv),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}_originChanged(t,e,i){this._setClasses(t,e),this._emitOrigin(i.subject,e),this._lastFocusOrigin=e}_getClosestElementsInfo(t){const e=[];return this._elementInfo.forEach((i,n)=>{(n===t||i.checkChildren&&n.contains(t))&&e.push([n,i])}),e}}return t.\u0275fac=function(e){return new(e||t)(wn(mu),wn(Ry),wn(qu,8),wn(bv,8))},t.\u0275prov=_t({factory:function(){return new t(wn(mu),wn(Ry),wn(qu,8),wn(bv,8))},token:t,providedIn:"root"}),t})();function wv(t){return t.composedPath?t.composedPath()[0]:t.target}let Cv=(()=>{class t{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new kc}ngAfterViewInit(){const t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,1===t.nodeType&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(vv))},t.\u0275dir=ie({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})(),xv=(()=>{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||window,i=e&&e.getComputedStyle?e.getComputedStyle(t):null,n=(i&&i.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),n){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)(wn(Ry),wn(qu))},t.\u0275prov=_t({factory:function(){return new t(wn(Ry),wn(qu))},token:t,providedIn:"root"}),t})(),Sv=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(wn(xv))},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[Ly,Qy]]}),t})();const kv=new bl("11.2.7");class Av{}function Ov(t,e){return{type:7,name:t,definitions:e,options:{}}}function Ev(t,e=null){return{type:4,styles:e,timings:t}}function Tv(t,e=null){return{type:3,steps:t,options:e}}function Pv(t,e=null){return{type:2,steps:t,options:e}}function Dv(t){return{type:6,styles:t,offset:null}}function Mv(t,e,i){return{type:0,name:t,styles:e,options:i}}function Iv(t){return{type:5,steps:t}}function Rv(t,e,i=null){return{type:1,expr:t,animation:e,options:i}}function Lv(t=null){return{type:9,options:t}}function Fv(t,e,i=null){return{type:11,selector:t,animation:e,options:i}}function Nv(t){Promise.resolve(null).then(t)}class Vv{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,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(){Nv(()=>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){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Bv{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?Nv(()=>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(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}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 Hv(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function zv(t){switch(t.length){case 0:return new Vv;case 1:return t[0];default:return new Bv(t)}}function Gv(t,e,i,n,s={},r={}){const o=[],a=[];let l=-1,c=null;if(n.forEach(t=>{const i=t.offset,n=i==l,u=n&&c||{};Object.keys(t).forEach(i=>{let n=i,a=t[i];if("offset"!==i)switch(n=e.normalizePropertyName(n,o),a){case"!":a=s[i];break;case"*":a=r[i];break;default:a=e.normalizeStyleValue(i,n,a,o)}u[n]=a}),n||a.push(u),c=u,l=i}),o.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${o.join(t)}`)}return a}function Uv(t,e,i,n){switch(e){case"start":t.onStart(()=>n(i&&jv(i,"start",t)));break;case"done":t.onDone(()=>n(i&&jv(i,"done",t)));break;case"destroy":t.onDestroy(()=>n(i&&jv(i,"destroy",t)))}}function jv(t,e,i){const n=i.totalTime,s=Wv(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==n?t.totalTime:n,!!i.disabled),r=t._data;return null!=r&&(s._data=r),s}function Wv(t,e,i,n,s="",r=0,o){return{element:t,triggerName:e,fromState:i,toState:n,phaseName:s,totalTime:r,disabled:!!o}}function $v(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 qv(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let Yv=(t,e)=>!1,Qv=(t,e)=>!1,Xv=(t,e,i)=>[];const Kv=Hv();(Kv||"undefined"!=typeof Element)&&(Yv=(t,e)=>t.contains(e),Qv=(()=>{if(Kv||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]):Qv}})(),Xv=(t,e,i)=>{let n=[];if(i){const i=t.querySelectorAll(e);for(let t=0;t{const n=i.replace(/([a-z])([A-Z])/g,"$1-$2");e[n]=t[i]}),e}let rw=(()=>{class t{validateStyleProperty(t){return tw(t)}matchesElement(t,e){return ew(t,e)}containsElement(t,e){return iw(t,e)}query(t,e,i){return nw(t,e,i)}computeStyle(t,e,i){return i||""}animate(t,e,i,n,s,r=[],o){return new Vv(i,n)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})(),ow=(()=>{class t{}return t.NOOP=new rw,t})();function aw(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:lw(parseFloat(e[1]),e[2])}function lw(t,e){switch(e){case"s":return 1e3*t;default:return t}}function cw(t,e,i){return t.hasOwnProperty("duration")?t:function(t,e,i){let n,s=0,r="";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=lw(parseFloat(i[1]),i[2]);const o=i[3];null!=o&&(s=lw(parseFloat(o),i[4]));const a=i[5];a&&(r=a)}else n=t;if(!i){let i=!1,r=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(r,0,`The provided timing value "${t}" is invalid.`)}return{duration:n,delay:s,easing:r}}(t,e,i)}function uw(t,e={}){return Object.keys(t).forEach(i=>{e[i]=t[i]}),e}function dw(t,e,i={}){if(e)for(let n in t)i[n]=t[n];else uw(t,i);return i}function hw(t,e,i){return i?e+":"+i+";":""}function pw(t){let e="";for(let i=0;i{const s=Cw(n);i&&!i.hasOwnProperty(n)&&(i[n]=t.style[s]),t.style[s]=e[n]}),Hv()&&pw(t))}function fw(t,e){t.style&&(Object.keys(e).forEach(e=>{const i=Cw(e);t.style[i]=""}),Hv()&&pw(t))}function gw(t){return Array.isArray(t)?1==t.length?t[0]:Pv(t):t}const _w=new RegExp("{{\\s*(.+?)\\s*}}","g");function bw(t){let e=[];if("string"==typeof t){let i;for(;i=_w.exec(t);)e.push(i[1]);_w.lastIndex=0}return e}function yw(t,e,i){const n=t.toString(),s=n.replace(_w,(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 vw(t){const e=[];let i=t.next();for(;!i.done;)e.push(i.value),i=t.next();return e}const ww=/-+([a-z0-9])/g;function Cw(t){return t.replace(ww,(...t)=>t[1].toUpperCase())}function xw(t,e){return 0===t||0===e}function Sw(t,e,i){const n=Object.keys(i);if(n.length&&e.length){let r=e[0],o=[];if(n.forEach(t=>{r.hasOwnProperty(t)||o.push(t),r[t]=i[t]}),o.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],r=n[2],o=n[3];e.push(Pw(s,o)),"<"!=r[0]||"*"==s&&"*"==o||e.push(Pw(o,s))}(t,i,e)):i.push(t),i}const Ew=new Set(["true","1"]),Tw=new Set(["false","0"]);function Pw(t,e){const i=Ew.has(t)||Tw.has(t),n=Ew.has(e)||Tw.has(e);return(s,r)=>{let o="*"==t||t==s,a="*"==e||e==r;return!o&&i&&"boolean"==typeof s&&(o=s?Ew.has(t):Tw.has(t)),!a&&n&&"boolean"==typeof r&&(a=r?Ew.has(e):Tw.has(e)),o&&a}}const Dw=new RegExp("s*:selfs*,?","g");function Mw(t,e,i){return new Iw(t).build(e,i)}class Iw{constructor(t){this._driver=t}build(t,e){const i=new Rw(e);return this._resetContextStyleTimingState(i),kw(this,gw(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=[],r=[];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,r.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:r,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,r=n||{};if(i.styles.forEach(t=>{if(Lw(t)){const e=t;Object.keys(e).forEach(t=>{bw(e[t]).forEach(t=>{r.hasOwnProperty(t)||s.add(t)})})}}),s.size){const i=vw(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=kw(this,gw(t.animation),e);return{type:1,matchers:Ow(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Fw(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>kw(this,t,e)),options:Fw(t.options)}}visitGroup(t,e){const i=e.currentTime;let n=0;const s=t.steps.map(t=>{e.currentTime=i;const s=kw(this,t,e);return n=Math.max(n,e.currentTime),s});return e.currentTime=n,{type:3,steps:s,options:Fw(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 Nw(cw(t,e).duration,0,"");const n=t;if(n.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=Nw(0,0,"");return t.dynamic=!0,t.strValue=n,t}return i=i||cw(n,e),Nw(i.duration,i.delay,i.easing)}(t.timings,e.errors);let n;e.currentAnimateTimings=i;let s=t.styles?t.styles:Dv({});if(5==s.type)n=this.visitKeyframes(s,e);else{let s=t.styles,r=!1;if(!s){r=!0;const t={};i.easing&&(t.easing=i.easing),s=Dv(t)}e.currentTime+=i.duration+i.delay;const o=this.visitStyle(s,e);o.isEmptyStep=r,n=o}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(Lw(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 r=e.collectedStyles[e.currentQuerySelector],o=r[i];let a=!0;o&&(s!=n&&s>=o.startTime&&n<=o.endTime&&(e.errors.push(`The CSS property "${i}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${n}ms"`),a=!1),s=o.startTime),a&&(r[i]={startTime:s,endTime:n}),e.options&&function(t,e,i){const n=e.params||{},s=bw(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 r=!1,o=!1,a=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(Lw(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(Lw(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),o=o||c<0||c>1,r=r||c0&&n{const r=u>0?n==d?1:u*n:s[n],o=r*m;e.currentTime=h+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=r,i.styles.push(t)}),i}visitReference(t,e){return{type:8,animation:kw(this,gw(t.animation),e),options:Fw(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Fw(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Fw(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,n=t.options||{};e.queryCount++,e.currentQuery=t;const[s,r]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(Dw,"")),[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,$v(e.collectedStyles,e.currentQuerySelector,{});const o=kw(this,gw(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:n.limit||0,optional:!!n.optional,includeSelf:r,animation:o,originalSelector:t.selector,options:Fw(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"}:cw(t.timings,e.errors,!0);return{type:12,animation:kw(this,gw(t.animation),e),timings:i,options:null}}}class Rw{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 Lw(t){return!Array.isArray(t)&&"object"==typeof t}function Fw(t){var e;return t?(t=uw(t)).params&&(t.params=(e=t.params)?uw(e):null):t={},t}function Nw(t,e,i){return{duration:t,delay:e,easing:i}}function Vw(t,e,i,n,s,r,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}class Bw{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 Hw=new RegExp(":enter","g"),zw=new RegExp(":leave","g");function Gw(t,e,i,n,s,r={},o={},a,l,c=[]){return(new Uw).buildKeyframes(t,e,i,n,s,r,o,a,l,c)}class Uw{buildKeyframes(t,e,i,n,s,r,o,a,l,c=[]){l=l||new Bw;const u=new Ww(t,e,l,n,s,c,[]);u.options=a,u.currentTimeline.setStyles([r],null,u.errors,a),kw(this,i,u);const d=u.timelines.filter(t=>t.containsAnimation());if(d.length&&Object.keys(o).length){const t=d[d.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,u.errors,a)}return d.length?d.map(t=>t.buildKeyframes()):[Vw(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,r=this._visitSubInstructions(i,n,n.options);s!=r&&e.transformIntoNewTimeline(r)}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?aw(i.duration):null,r=null!=i.delay?aw(i.delay):null;return 0!==s&&t.forEach(t=>{const i=e.appendInstructionToTimeline(t,s,r);n=Math.max(n,i.duration+i.delay)}),n}visitReference(t,e){e.updateOptions(t.options,!0),kw(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=jw);const t=aw(s.delay);n.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>kw(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?aw(t.options.delay):0;t.steps.forEach(r=>{const o=e.createSubContext(t.options);s&&o.delayNextStep(s),kw(this,r,o),n=Math.max(n,o.currentTimeline.currentTime),i.push(o.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 cw(e.params?yw(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,r=e.createSubContext().currentTimeline;r.easing=i.easing,t.styles.forEach(t=>{r.forwardTime((t.offset||0)*s),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(n+s),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,n=t.options||{},s=n.delay?aw(n.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=jw);let r=i;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!n.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((i,n)=>{e.currentQueryIndex=n;const o=e.createSubContext(t.options,i);s&&o.delayNextStep(s),i===e.element&&(a=o.currentTimeline),kw(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,n=e.currentTimeline,s=t.timings,r=Math.abs(s.duration),o=r*(e.currentQueryTotal-1);let a=r*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=o-a;break;case"full":a=i.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;kw(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=n.currentTime-c+(n.startTime-i.currentTimeline.startTime)}}const jw={};class Ww{constructor(t,e,i,n,s,r,o,a){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=n,this._leaveClassName=s,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=jw,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new $w(this._driver,e,0),o.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=aw(i.duration)),null!=i.delay&&(n.delay=aw(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]=yw(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 Ww(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=jw,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 qw(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,r){let o=[];if(n&&o.push(this.element),t.length>0){t=(t=t.replace(Hw,"."+this._enterClassName)).replace(zw,"."+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)),o.push(...e)}return s||0!=o.length||r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class $w{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 $w(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||{},r=function(t,e){const i={};let n;return t.forEach(t=>{"*"===t?(n=n||Object.keys(e),n.forEach(t=>{i[t]="*"})):dw(t,!1,i)}),i}(t,this._globalTimelineStyles);Object.keys(r).forEach(t=>{const e=yw(r[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,r)=>{const o=dw(s,!0);Object.keys(o).forEach(i=>{const n=o[i];"!"==n?t.add(i):"*"==n&&e.add(i)}),i||(o.offset=r/this.duration),n.push(o)});const s=t.size?vw(t.values()):[],r=e.size?vw(e.values()):[];if(i){const t=n[0],e=uw(t);t.offset=0,e.offset=1,n=[t,e]}return Vw(this.element,n,s,r,this.duration,this.startTime,this.easing,!1)}}class qw extends $w{constructor(t,e,i,n,s,r,o=!1){super(t,e,r.delay),this.element=e,this.keyframes=i,this.preStyleProps=n,this.postStyleProps=s,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:n}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],r=i+e,o=e/r,a=dw(t[0],!1);a.offset=0,s.push(a);const l=dw(t[0],!1);l.offset=Yw(o),s.push(l);const c=t.length-1;for(let n=1;n<=c;n++){let o=dw(t[n],!1);o.offset=Yw((e+o.offset*i)/r),s.push(o)}i=r,e=0,n="",t=s}return Vw(this.element,t,this.preStyleProps,this.postStyleProps,i,e,n,!0)}}function Yw(t,e=3){const i=Math.pow(10,e-1);return Math.round(t*i)/i}class Qw{}class Xw extends Qw{normalizePropertyName(t,e){return Cw(t)}normalizeStyleValue(t,e,i,n){let s="";const r=i.toString().trim();if(Kw[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 r+s}}const Kw=(()=>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 Zw(t,e,i,n,s,r,o,a,l,c,u,d,h){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:i,fromStyles:r,toState:n,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const Jw={};class tC{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],r=n?n.buildStyles(e,i):{};return s?s.buildStyles(e,i):r}build(t,e,i,n,s,r,o,a,l,c){const u=[],d=this.ast.options&&this.ast.options.params||Jw,h=this.buildStyles(i,o&&o.params||Jw,u),p=a&&a.params||Jw,m=this.buildStyles(n,p,u),f=new Set,g=new Map,_=new Map,b="void"===n,y={params:Object.assign(Object.assign({},d),p)},v=c?[]:Gw(t,e,this.ast.animation,s,r,h,m,y,l,u);let w=0;if(v.forEach(t=>{w=Math.max(t.duration+t.delay,w)}),u.length)return Zw(e,this._triggerName,i,n,b,h,m,[],[],g,_,w,u);v.forEach(t=>{const i=t.element,n=$v(g,i,{});t.preStyleProps.forEach(t=>n[t]=!0);const s=$v(_,i,{});t.postStyleProps.forEach(t=>s[t]=!0),i!==e&&f.add(i)});const C=vw(f.values());return Zw(e,this._triggerName,i,n,b,h,m,v,C,g,_,w)}}class eC{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const i={},n=uw(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 r=s[t];r.length>1&&(r=yw(r,n,e)),i[t]=r})}}),i}}class iC{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new eC(t.style,t.options&&t.options.params||{})}),nC(this.states,"true","1"),nC(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new tC(t,e,this.states))}),this.fallbackTransition=new tC(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 nC(t,e,i){t.hasOwnProperty(e)?t.hasOwnProperty(i)||(t[i]=t[e]):t.hasOwnProperty(i)&&(t[e]=t[i])}const sC=new Bw;class rC{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=Mw(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=Gv(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 r;const o=new Map;if(s?(r=Gw(this._driver,e,s,"ng-enter","ng-leave",{},{},i,sC,n),r.forEach(t=>{const e=$v(o,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(n.push("The requested animation doesn't exist or has already been destroyed"),r=[]),n.length)throw new Error(`Unable to create the animation due to the following errors: ${n.join("\n")}`);o.forEach((t,e)=>{Object.keys(t).forEach(i=>{t[i]=this._driver.computeStyle(e,i,"*")})});const a=zv(r.map(t=>{const e=o.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=a,a.onDestroy(()=>this.destroy(t)),this.players.push(a),a}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const 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=Wv(e,"","","");return Uv(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 oC=[],aC={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},lC={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class cC{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=uw(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 uC=new cC("void");class dC{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,bC(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 r=$v(this._elementListeners,t,[]),o={name:e,phase:i,callback:n};r.push(o);const a=$v(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(bC(t,"ng-trigger"),bC(t,"ng-trigger-"+e),a[e]=uC),()=>{this._engine.afterFlush(()=>{const t=r.indexOf(o);t>=0&&r.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,i,n=!0){const s=this._getTrigger(e),r=new pC(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(bC(t,"ng-trigger"),bC(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new cC(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=uC),"void"!==l.value&&a.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{fw(t,i),mw(t,n)})}return}const c=$v(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let u=s.matchTransition(a.value,l.value,t,l.params),d=!1;if(!u){if(!n)return;u=s.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:u,fromState:a,toState:l,player:r,isFallbackTransition:d}),d||(bC(t,"ng-animate-queued"),r.onStart(()=>{yC(t,"ng-animate-queued")})),r.onDone(()=>{let e=this.players.indexOf(r);e>=0&&this.players.splice(e,1);const i=this._engine.playersByElement.get(t);if(i){let t=i.indexOf(r);t>=0&&i.splice(t,1)}}),this.players.push(r),c.push(r),r}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 r=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const i=this.trigger(t,e,"void",n);i&&r.push(i)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),i&&zv(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const n=new Set;e.forEach(e=>{const s=e.name;if(n.has(s))return;n.add(s);const r=this._triggers[s].fallbackTransition,o=i[s]||uC,a=new cC("void"),l=new pC(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:r,fromState:o,toState:a,player:l,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!==aC||(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){bC(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const n=i.player;if(n.destroyed)return;const s=i.element,r=this._elementListeners.get(s);r&&r.forEach(e=>{if(e.name==i.triggerName){const n=Wv(s,i.triggerName,i.fromState.value,i.toState.value);n._data=t,Uv(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 hC{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 dC(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),bC(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),yC(t,"ng-animate-disabled"))}removeNode(t,e,i,n){if(mC(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 mC(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 zv(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=aC,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?zv(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 Bw,n=[],s=new Map,r=[],o=new Map,a=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(t=>{c.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let i=0;i{const i="ng-enter"+m++;p.set(e,i),t.forEach(t=>bC(t,i))});const f=[],g=new Set,_=new Set;for(let P=0;Pg.add(t)):_.add(t))}const b=new Map,y=_C(d,Array.from(g));y.forEach((t,e)=>{const i="ng-leave"+m++;b.set(e,i),t.forEach(t=>bC(t,i))}),t.push(()=>{h.forEach((t,e)=>{const i=p.get(e);t.forEach(t=>yC(t,i))}),y.forEach((t,e)=>{const i=b.get(e);t.forEach(t=>yC(t,i))}),f.forEach(t=>{this.processLeaveNode(t)})});const v=[],w=[];for(let P=this._namespaceList.length-1;P>=0;P--)this._namespaceList[P].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(v.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const c=!u||!this.driver.containsElement(u,s),d=b.get(s),h=p.get(s),m=this._buildInstruction(t,i,h,d,c);if(m.errors&&m.errors.length)w.push(m);else{if(c)return e.onStart(()=>fw(s,m.fromStyles)),e.onDestroy(()=>mw(s,m.toStyles)),void n.push(e);if(t.isFallbackTransition)return e.onStart(()=>fw(s,m.fromStyles)),e.onDestroy(()=>mw(s,m.toStyles)),void n.push(e);m.timelines.forEach(t=>t.stretchStartingKeyframe=!0),i.append(s,m.timelines),r.push({instruction:m,player:e,element:s}),m.queriedElements.forEach(t=>$v(o,t,[]).push(e)),m.preStyleProps.forEach((t,e)=>{const i=Object.keys(t);if(i.length){let t=a.get(e);t||a.set(e,t=new Set),i.forEach(e=>t.add(e))}}),m.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))})}});if(w.length){const t=[];w.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),v.forEach(t=>t.destroy()),this.reportError(t)}const C=new Map,x=new Map;r.forEach(t=>{const e=t.element;i.has(e)&&(x.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,C))}),n.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{$v(C,e,[]).push(t),t.destroy()})});const S=f.filter(t=>CC(t,a,l)),k=new Map;gC(k,this.driver,_,l,"*").forEach(t=>{CC(t,a,l)&&S.push(t)});const A=new Map;h.forEach((t,e)=>{gC(A,this.driver,new Set(t),a,"!")}),S.forEach(t=>{const e=k.get(t),i=A.get(t);k.set(t,Object.assign(Object.assign({},e),i))});const O=[],E=[],T={};r.forEach(t=>{const{element:e,player:r,instruction:o}=t;if(i.has(e)){if(c.has(e))return r.onDestroy(()=>mw(e,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void n.push(r);let t=T;if(x.size>1){let i=e;const n=[];for(;i=i.parentNode;){const e=x.get(i);if(e){t=e;break}n.push(i)}n.forEach(e=>x.set(e,t))}const i=this._buildAnimation(r.namespaceId,o,C,s,A,k);if(r.setRealPlayer(i),t===T)O.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=zv(e)),n.push(r)}}else fw(e,o.fromStyles),r.onDestroy(()=>mw(e,o.toStyles)),E.push(r),c.has(e)&&n.push(r)}),E.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const i=zv(e);t.setRealPlayer(i)}}),n.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let P=0;P!t.destroyed);n.length?vC(this,t,n):this.processLeaveNode(t)}return f.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 r=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(r=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||"void"==s;e.forEach(e=>{e.queued||(t||e.triggerName==n)&&r.push(e)})}}return(i||n)&&(r=r.filter(t=>!(i&&i!=t.namespaceId||n&&n!=t.triggerName))),r}_beforeAnimationBuild(t,e,i){const n=e.element,s=e.isRemovalTransition?void 0:t,r=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==n,l=$v(i,t,[]);this._getPreviousPlayers(t,a,s,r,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}fw(n,e.fromStyles)}_buildAnimation(t,e,i,n,s,r){const o=e.triggerName,a=e.element,l=[],c=new Set,u=new Set,d=e.timelines.map(e=>{const d=e.element;c.add(d);const h=d.__ng_removed;if(h&&h.removedBeforeQueried)return new Vv(e.duration,e.delay);const p=d!==a,m=function(t){const e=[];return wC(t,e),e}((i.get(d)||oC).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===d),f=s.get(d),g=r.get(d),_=Gv(0,this._normalizer,0,e.keyframes,f,g),b=this._buildPlayer(e,_,m);if(e.subTimeline&&n&&u.add(d),p){const e=new pC(t,o,d);e.setRealPlayer(b),l.push(e)}return b});l.forEach(t=>{$v(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=>bC(t,"ng-animating"));const h=zv(d);return h.onDestroy(()=>{c.forEach(t=>yC(t,"ng-animating")),mw(a,e.toStyles)}),u.forEach(t=>{$v(n,t,[]).push(h)}),h}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new Vv(t.duration,t.delay)}}class pC{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new Vv,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=>Uv(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){$v(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 mC(t){return t&&1===t.nodeType}function fC(t,e){const i=t.style.display;return t.style.display=null!=e?e:"none",i}function gC(t,e,i,n,s){const r=[];i.forEach(t=>r.push(fC(t)));const o=[];n.forEach((i,n)=>{const r={};i.forEach(t=>{const i=r[t]=e.computeStyle(n,t,s);i&&0!=i.length||(n.__ng_removed=lC,o.push(n))}),t.set(n,r)});let a=0;return i.forEach(t=>fC(t,r[a++])),o}function _C(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;function r(t){if(!t)return 1;let e=s.get(t);if(e)return e;const o=t.parentNode;return e=i.has(o)?o:n.has(o)?1:r(o),s.set(t,e),e}return e.forEach(t=>{const e=r(t);1!==e&&i.get(e).push(t)}),i}function bC(t,e){if(t.classList)t.classList.add(e);else{let i=t.$$classes;i||(i=t.$$classes={}),i[e]=!0}}function yC(t,e){if(t.classList)t.classList.remove(e);else{let i=t.$$classes;i&&delete i[e]}}function vC(t,e,i){zv(i).onDone(()=>t.processLeaveNode(e))}function wC(t,e){for(let i=0;is.add(t)):e.set(t,n),i.delete(t),!0}class xC{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new hC(t,e,i),this._timelineEngine=new rC(t,e,i),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,i,n,s){const r=t+"-"+n;let o=this._triggerCache[r];if(!o){const t=[],e=Mw(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 - ")}`);o=function(t,e){return new iC(t,e)}(n,e),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(e,n,o)}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]=qv(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]=qv(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 SC(t,e){let i=null,n=null;return Array.isArray(e)&&e.length?(i=AC(e[0]),e.length>1&&(n=AC(e[e.length-1]))):e&&(i=AC(e)),i||n?new kC(t,i,n):null}let kC=(()=>{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&&mw(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(mw(this._element,this._initialStyles),this._endStyles&&(mw(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(fw(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(fw(this._element,this._endStyles),this._endStyles=null),mw(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function AC(t){let e=null;const i=Object.keys(t);for(let n=0;nthis._handleCallback(t)}apply(){!function(t,e){const i=RC(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(),MC(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const i=RC(t,"").split(","),n=DC(i,e);n>=0&&(i.splice(n,1),IC(t,"",i.join(",")))}(this._element,this._name))}}function TC(t,e,i){IC(t,"PlayState",i,PC(t,e))}function PC(t,e){const i=RC(t,"");return i.indexOf(",")>0?DC(i.split(","),e):DC([i],e)}function DC(t,e){for(let i=0;i=0)return i;return-1}function MC(t,e,i){i?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function IC(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 RC(t,e){return t.style["animation"+e]||""}class LC{constructor(t,e,i,n,s,r,o,a){this.element=t,this.keyframes=e,this.animationName=i,this._duration=n,this._delay=s,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=r||"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 EC(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]:Aw(this.element,i))})}this.currentSnapshot=t}}class FC extends Vv{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=sw(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 NC{constructor(){this._count=0,this._head=document.querySelector("head")}validateStyleProperty(t){return tw(t)}matchesElement(t,e){return ew(t,e)}containsElement(t,e){return iw(t,e)}query(t,e,i){return nw(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,i){i=i.map(t=>sw(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 r=document.createElement("style");return r.textContent=n,r}animate(t,e,i,n,s,r=[],o){const a=r.filter(t=>t instanceof LC),l={};xw(i,n)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(i=>{"offset"!=i&&"easing"!=i&&(e[i]=t[i])})}),e}(e=Sw(t,e,l));if(0==i)return new FC(t,c);const u="gen_css_kf_"+this._count++,d=this.buildKeyframeElement(t,u,e);document.querySelector("head").appendChild(d);const h=SC(t,e),p=new LC(t,e,u,i,n,s,c,h);return p.onDestroy(()=>{var t;(t=d).parentNode.removeChild(t)}),p}}class VC{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){void 0===this.domPlayer&&this.init(),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]:Aw(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class BC{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(HC().toString()),this._cssKeyframesDriver=new NC}validateStyleProperty(t){return tw(t)}matchesElement(t,e){return ew(t,e)}containsElement(t,e){return iw(t,e)}query(t,e,i){return nw(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,i,n,s,r=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,n,s,r);const a={duration:i,delay:n,fill:0==n?"both":"forwards"};s&&(a.easing=s);const l={},c=r.filter(t=>t instanceof VC);xw(i,n)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const u=SC(t,e=Sw(t,e=e.map(t=>dw(t,!1)),l));return new VC(t,e,a,u)}}function HC(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let zC=(()=>{class t extends Av{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:It.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(t)?Pv(t):t;return jC(this._renderer,null,e,"register",[i]),new GC(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(wn(ml),wn(qu))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();class GC extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new UC(this._id,t,e||{},this._renderer)}}class UC{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 jC(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(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function jC(t,e,i,n,s){return t.setProperty(e,`@@${i}:${n}`,s)}let WC=(()=>{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 $C("",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 r=e=>{Array.isArray(e)?e.forEach(r):this.engine.registerTrigger(n,s,t,e.name,e)};return e.data.animation.forEach(r),new qC(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)(wn(ml),wn(xC),wn(mu))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();class $C{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,n=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,n)}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 qC extends $C{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),r="";return"@"!=s.charAt(0)&&([s,r]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,n,s,r,t=>{this.factory.scheduleListenerCallback(t._data||-1,i,t)})}return this.delegate.listen(t,e,i)}}let YC=(()=>{class t extends xC{constructor(t,e,i){super(t.body,e,i)}}return t.\u0275fac=function(e){return new(e||t)(wn(qu),wn(ow),wn(Qw))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();const QC=new en("AnimationModuleType"),XC=[{provide:ow,useFactory:function(){return"function"==typeof HC()?new BC:new NC}},{provide:QC,useValue:"BrowserAnimations"},{provide:Av,useClass:zC},{provide:Qw,useFactory:function(){return new Xw}},{provide:xC,useClass:YC},{provide:ml,useFactory:function(t,e,i){return new WC(t,e,i)},deps:[Hh,xC,mu]}];let KC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:XC,imports:[tp]}),t})();const ZC=["*",[["mat-option"],["ng-container"]]],JC=["*","mat-option, ng-container"];function tx(t,e){if(1&t&&Ko(0,"mat-pseudo-checkbox",4),2&t){const t=ua();qo("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}function ex(t,e){if(1&t&&(Qo(0,"span",5),Na(1),Xo()),2&t){const t=ua();dr(1),Ba("(",t.group.label,")")}}const ix=["*"];let nx=(()=>{class t{}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t})(),sx=(()=>{class t{}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t})();const rx=new bl("11.2.7"),ox=new en("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let ax=(()=>{class t{constructor(t,e,i){this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}_checksAreEnabled(){return Eu()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!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.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)&&rx.full!==kv.full&&console.warn("The Angular Material version ("+rx.full+") does not match the Angular CDK version ("+kv.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275fac=function(e){return new(e||t)(wn(xv),wn(ox,8),wn(qu))},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[Kg],Kg]}),t})();function lx(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=wg(t)}}}function cx(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),e&&this._elementRef.nativeElement.classList.add(`mat-${e}`),this._color=e)}}}function ux(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=wg(t)}}}function dx(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e,this.defaultTabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?Cg(t):this.defaultTabIndex}}}function hx(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new k}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}function px(t){return class extends t{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new v(t=>{this._isInitialized?this._notifySubscriber(t):this._pendingSubscribers.push(t)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(t){t.next(),t.complete()}}}const mx=new en("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return Cn(iu)}});class fx{constructor(){this._localeChanges=new k,this.localeChanges=this._localeChanges}getValidDateOrNull(t){return this.isDateInstance(t)&&this.isValid(t)?t:null}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 gx=new en("mat-date-formats");let _x;try{_x="undefined"!=typeof Intl}catch(i2){_x=!1}const bx={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"]},yx=Cx(31,t=>String(t+1)),vx={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},wx=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Cx(t,e){const i=Array(t);for(let n=0;n{class t extends fx{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(_x){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return Cx(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return bx[t]}getDateNames(){if(_x){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Cx(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return yx}getDayOfWeekNames(t){if(_x){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return Cx(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return vx[t]}getYearName(t){if(_x){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){let n=this._createDateWithOverflow(t,e,i);return n.getMonth(),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(_x){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(wx.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;return n.setFullYear(t,e,i),n.setHours(0,0,0,0),n}_2digit(t){return("00"+t).slice(-2)}_stripDirectionalityCharacters(t){return t.replace(/[\u200e\u200f]/g,"")}_format(t,e){const i=new Date;return i.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),i.setUTCHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t.format(i)}}return t.\u0275fac=function(e){return new(e||t)(wn(mx,8),wn(Ry))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})(),Sx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:[{provide:fx,useClass:xx}],imports:[[Ly]]}),t})();const kx={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 Ax=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:[{provide:gx,useValue:kx}],imports:[[Sx]]}),t})(),Ox=(()=>{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=_t({factory:function(){return new t},token:t,providedIn:"root"}),t})(),Ex=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ie({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t})();function Tx(t,e,i){const n=t.nativeElement.classList;i?n.add(e):n.remove(e)}let Px=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[ax],ax]}),t})();class Dx{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Mx={enterDuration:450,exitDuration:400},Ix=Gy({passive:!0}),Rx=["mousedown","touchstart"],Lx=["mouseup","mouseleave","touchend","touchcancel"];class Fx{constructor(t,e,i,n){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,n.isBrowser&&(this._containerElement=Ag(i))}fadeInRipple(t,e,i={}){const n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},Mx),i.animation);i.centered&&(t=n.left+n.width/2,e=n.top+n.height/2);const r=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),o=t-n.left,a=e-n.top,l=s.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=o-r+"px",c.style.top=a-r+"px",c.style.height=2*r+"px",c.style.width=2*r+"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 u=new Dx(this,c,i);return u.state=0,this._activeRipples.add(u),i.persistent||(this._mostRecentTransientRipple=u),this._runTimeoutOutsideZone(()=>{const t=u===this._mostRecentTransientRipple;u.state=1,i.persistent||t&&this._isPointerDown||u.fadeOut()},l),u}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,n=Object.assign(Object.assign({},Mx),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=Ag(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(Rx))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Lx),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=gv(t),i=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,Ix)})})}_removeTriggerEvents(){this._triggerElement&&(Rx.forEach(t=>{this._triggerElement.removeEventListener(t,this,Ix)}),this._pointerUpEventsRegistered&&Lx.forEach(t=>{this._triggerElement.removeEventListener(t,this,Ix)}))}}const Nx=new en("mat-ripple-global-options");let Vx=(()=>{class t{constructor(t,e,i,n,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=n||{},this._rippleRenderer=new Fx(this,e,t,i)}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(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),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)($o(hl),$o(mu),$o(Ry),$o(Nx,8),$o(QC,8))},t.\u0275dir=ie({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&Sa("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})(),Bx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[ax,Ly],ax]}),t})(),Hx=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)($o(QC,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&Sa("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})(),zx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[ax]]}),t})();const Gx=new en("MAT_OPTION_PARENT_COMPONENT");class Ux{}const jx=lx(Ux);let Wx=0,$x=(()=>{class t extends jx{constructor(t){var e;super(),this._labelId="mat-optgroup-label-"+Wx++,this._inert=null!==(e=null==t?void 0:t.inertGroups)&&void 0!==e&&e}}return t.\u0275fac=function(e){return new(e||t)($o(Gx,8))},t.\u0275dir=ie({type:t,inputs:{label:"label"},features:[Oo]}),t})();const qx=new en("MatOptgroup");let Yx=(()=>{class t extends $x{}return t.\u0275fac=function(e){return Qx(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-optgroup"],hostVars:5,hostBindings:function(t,e){2&t&&(zo("role",e._inert?null:"group")("aria-disabled",e._inert?null:e.disabled.toString())("aria-labelledby",e._inert?null:e._labelId),Sa("mat-optgroup-disabled",e.disabled))},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[rl([{provide:qx,useExisting:t}]),Oo],ngContentSelectors:JC,decls:4,vars:2,consts:[["aria-hidden","true",1,"mat-optgroup-label",3,"id"]],template:function(t,e){1&t&&(ha(ZC),Qo(0,"span",0),Na(1),pa(2),Xo(),pa(3,1)),2&t&&(qo("id",e._labelId),dr(1),Ba("",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 Qx=Qi(Yx);let Xx=0;class Kx{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let Zx=(()=>{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-"+Xx++,this.onSelectionChange=new kc,this._stateChanges=new k}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=wg(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||My(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 Kx(this,t))}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(Vl),$o(void 0),$o($x))},t.\u0275dir=ie({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),Jx=(()=>{class t extends Zx{constructor(t,e,i,n){super(t,e,i,n)}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(Vl),$o(Gx,8),$o(qx,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&ra("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(Ua("id",e.id),zo("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),Sa("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[Oo],ngContentSelectors:ix,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(t,e){1&t&&(ha(),jo(0,tx,1,2,"mat-pseudo-checkbox",0),Qo(1,"span",1),pa(2),Xo(),jo(3,ex,2,1,"span",2),Ko(4,"div",3)),2&t&&(qo("ngIf",e.multiple),dr(3),qo("ngIf",e.group&&e.group._inert),dr(1),qo("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[Jd,Vx,Hx],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}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.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}.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 tS(t,e,i){if(i.length){let n=e.toArray(),s=i.toArray(),r=0;for(let e=0;ei+n?Math.max(0,t-n+e):i}let iS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[Bx,yh,ax,zx]]}),t})();function nS(t){return new v(e=>{let i;try{i=t()}catch(n){return void e.error(n)}return(i?V(i):xp()).subscribe(e)})}function sS(t){return!!t&&(t instanceof v||"function"==typeof t.lift&&"function"==typeof t.subscribe)}class rS{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new oS(t,this.durationSelector))}}class oS extends H{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=z(i,new B(this));!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=void 0,i.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function aS(t,e=mp){return i=()=>gp(t,e),function(t){return t.lift(new rS(i))};var i}function lS(){return t=>t.lift(new cS)}class cS{call(t,e){return e.subscribe(new uS(t))}}class uS extends m{constructor(t){super(t),this.hasPrev=!1}_next(t){let e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)}}class dS{}function hS(t){return t&&"function"==typeof t.connect}class pS{applyChanges(t,e,i,n,s){t.forEachOperation((t,n,r)=>{let o,a;if(null==t.previousIndex){const s=i(t,n,r);o=e.createEmbeddedView(s.templateRef,s.context,s.index),a=1}else null==r?(e.remove(n),a=3):(o=e.get(n),e.move(o,r),a=2);s&&s({context:null==o?void 0:o.context,operation:a,record:t})})}detach(){}}class mS{constructor(t=!1,e,i=!0){this._multiple=t,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new k,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){}}let fS=(()=>{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=_t({factory:function(){return new t},token:t,providedIn:"root"}),t})();const gS=new en("_ViewRepeater");let _S=(()=>{class t{constructor(t,e,i){this._ngZone=t,this._platform=e,this._scrolled=new k,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}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 v(e=>{this._globalSubscription||this._addGlobalListener();const i=t>0?this._scrolled.pipe(aS(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{i.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Sp()}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(Mm(t=>!t||i.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((i,n)=>{this._scrollableContainsElement(n,t)&&e.push(n)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let i=Ag(e),n=t.getElementRef().nativeElement;do{if(i==n)return!0}while(i=i.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Cf(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(wn(mu),wn(Ry),wn(qu,8))},t.\u0275prov=_t({factory:function(){return new t(wn(mu),wn(Ry),wn(qu,8))},token:t,providedIn:"root"}),t})(),bS=(()=>{class t{constructor(t,e,i,n){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=i,this.dir=n,this._destroyed=new k,this._elementScrolled=new v(t=>this.ngZone.runOutsideAngular(()=>Cf(this.elementRef.nativeElement,"scroll").pipe(Hp(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!=jy()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==jy()?t.left=t.right:1==jy()&&(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;Uy()?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==jy()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:i&&1==jy()?"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)($o(hl),$o(_S),$o(mu),$o(Xg,8))},t.\u0275dir=ie({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),yS=(()=>{class t{constructor(t,e,i){this._platform=t,this._change=new k,this._changeListener=t=>{this._change.next(t)},this._document=i,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}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=this._document,e=this._getWindow(),i=t.documentElement,n=i.getBoundingClientRect();return{top:-n.top||t.body.scrollTop||e.scrollY||i.scrollTop||0,left:-n.left||t.body.scrollLeft||e.scrollX||i.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(aS(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(wn(Ry),wn(mu),wn(qu,8))},t.\u0275prov=_t({factory:function(){return new t(wn(Ry),wn(mu),wn(qu,8))},token:t,providedIn:"root"}),t})(),vS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({}),t})(),wS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[Kg,Ly,vS],Kg,vS]}),t})();class CS{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class xS extends CS{constructor(t,e,i,n){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=n}}class SS extends CS{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 kS extends CS{constructor(t){super(),this.element=t instanceof hl?t.nativeElement:t}}class AS{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof xS?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof SS?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof kS?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}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 OS extends AS{constructor(t,e,i,n,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=n,this.attachDomPortal=t=>{const e=t.element,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.rootNodes.forEach(t=>this.outletElement.appendChild(t)),i.detectChanges(),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 ES=(()=>{class t extends SS{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)($o(jl),$o(Kl))},t.\u0275dir=ie({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[Oo]}),t})(),TS=(()=>{class t extends AS{constructor(t,e,i){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new kc,this.attachDomPortal=t=>{const e=t.element,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)($o(ll),$o(Kl),$o(qu))},t.\u0275dir=ie({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Oo]}),t})(),PS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({}),t})();class DS{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new MS(t,this.predicate,this.inclusive))}}class MS extends m{constructor(t,e,i){super(t),this.predicate=e,this.inclusive=i,this.index=0}_next(t){const e=this.destination;let i;try{i=this.predicate(t,this.index++)}catch(n){return void e.error(n)}this.nextOrComplete(t,i)}nextOrComplete(t,e){const i=this.destination;Boolean(e)?i.next(t):(this.inclusive&&i.next(t),i.complete())}}const IS=Uy();class RS{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=kg(-this._previousScrollPosition.left),t.style.top=kg(-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"),IS&&(e.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),IS&&(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}}class LS{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){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 FS{enable(){}disable(){}attach(){}}function NS(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function VS(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class BS{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=n,this._scrollSubscription=null}attach(t){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();NS(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 HS=(()=>{class t{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this.noop=()=>new FS,this.close=t=>new LS(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new RS(this._viewportRuler,this._document),this.reposition=t=>new BS(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=n}}return t.\u0275fac=function(e){return new(e||t)(wn(_S),wn(yS),wn(mu),wn(qu))},t.\u0275prov=_t({factory:function(){return new t(wn(_S),wn(yS),wn(mu),wn(qu))},token:t,providedIn:"root"}),t})();class zS{constructor(t){if(this.scrollStrategy=new FS,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 GS{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 US{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let jS=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),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()}}return t.\u0275fac=function(e){return new(e||t)(wn(qu))},t.\u0275prov=_t({factory:function(){return new t(wn(qu))},token:t,providedIn:"root"}),t})(),WS=(()=>{class t extends jS{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let i=e.length-1;i>-1;i--)if(e[i]._keydownEvents.observers.length>0){e[i]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(wn(qu))},t.\u0275prov=_t({factory:function(){return new t(wn(qu))},token:t,providedIn:"root"}),t})(),$S=(()=>{class t extends jS{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,i=this._attachedOverlays.slice();for(let n=i.length-1;n>-1;n--){const s=i[n];if(!(s._outsidePointerEvents.observers.length<1)&&s.hasAttached()){if(s.overlayElement.contains(e))break;s._outsidePointerEvents.next(t)}}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._document.body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(wn(qu),wn(Ry))},t.\u0275prov=_t({factory:function(){return new t(wn(qu),wn(Ry))},token:t,providedIn:"root"}),t})();const qS=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let YS=(()=>{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(){if(this._platform.isBrowser||qS){const t=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]');for(let e=0;ethis._backdropClick.next(t),this._keydownEvents=new k,this._outsidePointerEvents=new k,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.pipe(Tf(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._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),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(),this._outsideClickDispatcher.remove(this),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._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),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}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}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=kg(this._config.width),t.height=kg(this._config.height),t.minWidth=kg(this._config.minWidth),t.minHeight=kg(this._config.minHeight),t.maxWidth=kg(this._config.maxWidth),t.maxHeight=kg(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"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;Sg(e).forEach(t=>{t&&(i?n.add(t):n.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Hp(Y(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 XS=/([A-Za-z%]+)$/;class KS{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 k,this._resizeSubscription=d.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){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 r of this._preferredPositions){let o=this._getOriginPoint(t,r),a=this._getOverlayPoint(o,e,r),l=this._getOverlayFit(a,e,i,r);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(r,o);this._canFitWithFlexibleDimensions(l,a,i)?n.push({position:r,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,r)}):(!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&&ZS(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){const s=tk(e);let{x:r,y:o}=t,a=this._getOffset(n,"x"),l=this._getOffset(n,"y");a&&(r+=a),l&&(o+=l);let c=0-o,u=o+s.height-i.height,d=this._subtractOverflows(s.width,0-r,r+s.width-i.width),h=this._subtractOverflows(s.height,c,u),p=d*h;return{visibleArea:p,isCompletelyWithinViewport:s.width*s.height===p,fitsInViewportVertically:h===s.height,fitsInViewportHorizontally:d==s.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const n=i.bottom-e.y,s=i.right-e.x,r=JS(this._overlayRef.getConfig().minHeight),o=JS(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=s;return(t.fitsInViewportVertically||null!=r&&r<=n)&&a}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=tk(e),s=this._viewportRect,r=Math.max(t.x+n.width-s.width,0),o=Math.max(t.y+n.height-s.height,0),a=Math.max(s.top-i.top-t.y,0),l=Math.max(s.left-i.left-t.x,0);let c=0,u=0;return c=n.width<=s.width?l||-r:t.xn&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-n/2)}if("end"===e.overlayX&&!n||"start"===e.overlayX&&n)c=i.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!n||"end"===e.overlayX&&n)l=t.x,a=i.right-t.x;else{const e=Math.min(i.right-t.x+i.left,t.x),n=this._lastBoundingBoxSize.width;a=2*e,l=t.x-e,a>n&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-n/2)}return{top:r,left:l,bottom:o,right:c,width:a,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=kg(i.height),n.top=kg(i.top),n.bottom=kg(i.bottom),n.width=kg(i.width),n.left=kg(i.left),n.right=kg(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=kg(t)),s&&(n.maxWidth=kg(s))}this._lastBoundingBoxSize=i,ZS(this._boundingBox.style,n)}_resetBoundingBoxStyles(){ZS(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ZS(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},n=this._hasExactPosition(),s=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(n){const n=this._viewportRuler.getViewportScrollPosition();ZS(i,this._getExactOverlayY(e,t,n)),ZS(i,this._getExactOverlayX(e,t,n))}else i.position="static";let o="",a=this._getOffset(e,"x"),l=this._getOffset(e,"y");a&&(o+=`translateX(${a}px) `),l&&(o+=`translateY(${l}px)`),i.transform=o.trim(),r.maxHeight&&(n?i.maxHeight=kg(r.maxHeight):s&&(i.maxHeight="")),r.maxWidth&&(n?i.maxWidth=kg(r.maxWidth):s&&(i.maxWidth="")),ZS(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 r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=r,"bottom"===t.overlayY?n.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":n.top=kg(s.y),n}_getExactOverlayX(t,e,i){let n,s={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),n=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===n?s.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":s.left=kg(r.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:VS(t,i),isOriginOutsideView:NS(t,i),isOverlayClipped:VS(e,i),isOverlayOutsideView:NS(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(){}_addPanelClasses(t){this._pane&&Sg(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 hl)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)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 ZS(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function JS(t){if("number"!=typeof t&&null!=t){const[e,i]=t.split(XS);return i&&"px"!==i?null:parseFloat(e)}return t||null}function tk(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}class ek{constructor(t,e,i,n,s,r,o){this._preferredPositions=[],this._positionStrategy=new KS(i,n,s,r,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=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 GS(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 ik{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:r,maxHeight:o}=i,a=!("100%"!==n&&"100vw"!==n||r&&"100%"!==r&&"100vw"!==r),l=!("100%"!==s&&"100vh"!==s||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,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 nk=(()=>{class t{constructor(t,e,i,n){this._viewportRuler=t,this._document=e,this._platform=i,this._overlayContainer=n}global(){return new ik}connectedTo(t,e,i){return new ek(e,i,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new KS(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(wn(yS),wn(qu),wn(Ry),wn(YS))},t.\u0275prov=_t({factory:function(){return new t(wn(yS),wn(qu),wn(Ry),wn(YS))},token:t,providedIn:"root"}),t})(),sk=0,rk=(()=>{class t{constructor(t,e,i,n,s,r,o,a,l,c,u){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=i,this._positionBuilder=n,this._keyboardDispatcher=s,this._injector=r,this._ngZone=o,this._document=a,this._directionality=l,this._location=c,this._outsideClickDispatcher=u}create(t){const e=this._createHostElement(),i=this._createPaneElement(e),n=this._createPortalOutlet(i),s=new zS(t);return s.direction=s.direction||this._directionality.value,new QS(n,e,i,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+sk++,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(Lu)),new OS(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(wn(HS),wn(YS),wn(ll),wn(nk),wn(WS),wn(ko),wn(mu),wn(qu),wn(Xg),wn(ld),wn($S))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();const ok=[{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"}],ak=new en("cdk-connected-overlay-scroll-strategy");let lk=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)($o(hl))},t.\u0275dir=ie({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),ck=(()=>{class t{constructor(t,e,i,n,s){this._overlay=t,this._dir=s,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=d.EMPTY,this._attachSubscription=d.EMPTY,this._detachSubscription=d.EMPTY,this._positionSubscription=d.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new kc,this.positionChange=new kc,this.attach=new kc,this.detach=new kc,this.overlayKeydown=new kc,this.overlayOutsideClick=new kc,this._templatePortal=new SS(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=wg(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=wg(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=wg(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=wg(t)}get push(){return this._push}set push(t){this._push=wg(t)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}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=ok);const t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),27!==t.keyCode||this.disableClose||My(t)||(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new zS({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}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(t,e=!1){return i=>i.lift(new DS(t,e))}(()=>this.positionChange.observers.length>0)).subscribe(t=>{this.positionChange.emit(t),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)($o(rk),$o(jl),$o(Kl),$o(ak),$o(Xg,8))},t.\u0275dir=ie({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],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",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[me]}),t})();const uk={provide:ak,deps:[rk],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let dk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:[rk,uk],imports:[[Kg,PS,wS],wS]}),t})();const hk=["underline"],pk=["connectionContainer"],mk=["inputContainer"],fk=["label"];function gk(t,e){1&t&&(Zo(0),Qo(1,"div",14),Ko(2,"div",15),Ko(3,"div",16),Ko(4,"div",17),Xo(),Qo(5,"div",18),Ko(6,"div",15),Ko(7,"div",16),Ko(8,"div",17),Xo(),Jo())}function _k(t,e){1&t&&(Qo(0,"div",19),pa(1,1),Xo())}function bk(t,e){if(1&t&&(Zo(0),pa(1,2),Qo(2,"span"),Na(3),Xo(),Jo()),2&t){const t=ua(2);dr(3),Va(t._control.placeholder)}}function yk(t,e){1&t&&pa(0,3,["*ngSwitchCase","true"])}function vk(t,e){1&t&&(Qo(0,"span",23),Na(1," *"),Xo())}function wk(t,e){if(1&t){const t=ea();Qo(0,"label",20,21),ra("cdkObserveContent",function(){return Be(t),ua().updateOutlineGap()}),jo(2,bk,4,1,"ng-container",12),jo(3,yk,1,0,"ng-content",12),jo(4,vk,2,0,"span",22),Xo()}if(2&t){const t=ua();Sa("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),qo("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),zo("for",t._control.id)("aria-owns",t._control.id),dr(2),qo("ngSwitchCase",!1),dr(1),qo("ngSwitchCase",!0),dr(1),qo("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function Ck(t,e){1&t&&(Qo(0,"div",24),pa(1,4),Xo())}function xk(t,e){if(1&t&&(Qo(0,"div",25,26),Ko(2,"span",27),Xo()),2&t){const t=ua();dr(2),Sa("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function Sk(t,e){1&t&&(Qo(0,"div"),pa(1,5),Xo()),2&t&&qo("@transitionMessages",ua()._subscriptAnimationState)}function kk(t,e){if(1&t&&(Qo(0,"div",31),Na(1),Xo()),2&t){const t=ua(2);qo("id",t._hintLabelId),dr(1),Va(t.hintLabel)}}function Ak(t,e){if(1&t&&(Qo(0,"div",28),jo(1,kk,2,2,"div",29),pa(2,6),Ko(3,"div",30),pa(4,7),Xo()),2&t){const t=ua();qo("@transitionMessages",t._subscriptAnimationState),dr(1),qo("ngIf",t.hintLabel)}}const Ok=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Ek=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Tk=0;const Pk=new en("MatError");let Dk=(()=>{class t{constructor(){this.id="mat-error-"+Tk++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ie({type:t,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&zo("id",e.id)},inputs:{id:"id"},features:[rl([{provide:Pk,useExisting:t}])]}),t})();const Mk={transitionMessages:Ov("transitionMessages",[Mv("enter",Dv({opacity:1,transform:"translateY(0%)"})),Rv("void => enter",[Dv({opacity:0,transform:"translateY(-5px)"}),Ev("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Ik=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ie({type:t}),t})(),Rk=0;const Lk=new en("MatHint");let Fk=(()=>{class t{constructor(){this.align="start",this.id="mat-hint-"+Rk++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ie({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(zo("id",e.id)("align",null),Sa("mat-form-field-hint-end","end"===e.align))},inputs:{align:"align",id:"id"},features:[rl([{provide:Lk,useExisting:t}])]}),t})(),Nk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ie({type:t,selectors:[["mat-label"]]}),t})(),Vk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ie({type:t,selectors:[["mat-placeholder"]]}),t})();const Bk=new en("MatPrefix");let Hk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ie({type:t,selectors:[["","matPrefix",""]],features:[rl([{provide:Bk,useExisting:t}])]}),t})();const zk=new en("MatSuffix");let Gk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ie({type:t,selectors:[["","matSuffix",""]],features:[rl([{provide:zk,useExisting:t}])]}),t})(),Uk=0;class jk{constructor(t){this._elementRef=t}}const Wk=cx(jk,"primary"),$k=new en("MAT_FORM_FIELD_DEFAULT_OPTIONS"),qk=new en("MatFormField");let Yk=(()=>{class t extends Wk{constructor(t,e,i,n,s,r,o,a){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=n,this._defaults=s,this._platform=r,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new k,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Uk++,this._labelId="mat-form-field-label-"+Uk++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,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=wg(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_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}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}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(jp(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Hp(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Hp(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Y(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(jp(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(jp(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Hp(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._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Cf(this._label.nativeElement,"transitionend").pipe(Tf(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"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.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}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"),r=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 r=this._getStartEnd(s),o=t.children,a=this._getStartEnd(o[0].getBoundingClientRect());let l=0;for(let t=0;t0?.75*l+10:0}for(let o=0;o{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[yh,ax,Qy],ax]}),t})();function Xk(t,e=mp){var i;const n=(i=t)instanceof Date&&!isNaN(+i)?+t-e.now():Math.abs(t);return t=>t.lift(new Kk(n,e))}class Kk{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new Zk(t,this.delay,this.scheduler))}}class Zk extends m{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(Zk.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,i=new Jk(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(Op.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(Op.createComplete()),this.unsubscribe()}}class Jk{constructor(t,e){this.time=t,this.notification=e}}const tA=["panel"];function eA(t,e){if(1&t&&(Qo(0,"div",0,1),pa(2),Xo()),2&t){const t=e.id,i=ua();qo("id",i.id)("ngClass",i._classList),zo("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(t))}}const iA=["*"];let nA=0;class sA{constructor(t,e){this.source=t,this.option=e}}class rA{}const oA=ux(rA),aA=new en("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}});let lA=(()=>{class t extends oA{constructor(t,e,i,n){super(),this._changeDetectorRef=t,this._elementRef=e,this._activeOptionChanges=d.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new kc,this.opened=new kc,this.closed=new kc,this.optionActivated=new kc,this._classList={},this.id="mat-autocomplete-"+nA++,this.inertGroups=(null==n?void 0:n.SAFARI)||!1,this._autoActiveFirstOption=!!i.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(t){this._autoActiveFirstOption=wg(t)}set classList(t){this._classList=t&&t.length?Og(t).reduce((t,e)=>(t[e]=!0,t),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new sv(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 sA(this,t);this.optionSelected.emit(e)}_getPanelAriaLabelledby(t){return this.ariaLabel?null:this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}_setVisibilityClasses(t){t[this._visibleClass]=this.showPanel,t[this._hiddenClass]=!this.showPanel}}return t.\u0275fac=function(e){return new(e||t)($o(Vl),$o(hl),$o(aA),$o(Ry))},t.\u0275dir=ie({type:t,viewQuery:function(t,e){if(1&t&&(Vc(jl,3),Vc(tA,1)),2&t){let t;Nc(t=Hc())&&(e.template=t.first),Nc(t=Hc())&&(e.panel=t.first)}},inputs:{displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[Oo]}),t})(),cA=(()=>{class t extends lA{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return t.\u0275fac=function(e){return uA(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,i){if(1&t&&(Bc(i,qx,1),Bc(i,Jx,1)),2&t){let t;Nc(t=Hc())&&(e.optionGroups=t),Nc(t=Hc())&&(e.options=t)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[rl([{provide:Gx,useExisting:t}]),Oo],ngContentSelectors:iA,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(ha(),jo(0,eA,3,4,"ng-template"))},directives:[Qd],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}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),t})();const uA=Qi(cA),dA=new en("mat-autocomplete-scroll-strategy"),hA={provide:dA,deps:[rk],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},pA={provide:mb,useExisting:ut(()=>fA),multi:!0};let mA=(()=>{class t{constructor(t,e,i,n,s,r,o,a,l,c,u){this._element=t,this._overlay=e,this._viewContainerRef=i,this._zone=n,this._changeDetectorRef=s,this._dir=o,this._formField=a,this._document=l,this._viewportRuler=c,this._defaults=u,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=d.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new k,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=nS(()=>this.autocomplete&&this.autocomplete.options?Y(...this.autocomplete.options.map(t=>t.onSelectionChange)):this._zone.onStable.pipe(Tf(1),Rp(()=>this.optionSelections))),this._scrollStrategy=r}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(t){this._autocompleteDisabled=wg(t)}ngAfterViewInit(){const t=this._getWindow();void 0!==t&&this._zone.runOutsideAngular(()=>t.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const t=this._getWindow();void 0!==t&&t.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 Y(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Mm(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Mm(()=>this._overlayAttached)):Sp()).pipe(E(t=>t instanceof Kx?t:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return Y(Cf(this._document,"click"),Cf(this._document,"auxclick"),Cf(this._document,"touchend")).pipe(Mm(t=>{const e=this._isInsideShadowRoot&&t.composedPath?t.composedPath()[0]:t.target,i=this._formField?this._formField._elementRef.nativeElement:null,n=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&e!==this._element.nativeElement&&(!i||!i.contains(e))&&(!n||!n.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||My(t)||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(this.autocomplete._keyManager.activeItemIndex||0)}}_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)}_subscribeToClosingActions(){return Y(this._zone.onStable.pipe(Tf(1)),this.autocomplete.options.changes.pipe(If(()=>this._positionStrategy.reapplyLastPosition()),Xk(0))).pipe(Rp(()=>{const t=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),t!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),Tf(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(){var t;null==this._isInsideShadowRoot&&(this._isInsideShadowRoot=!!Wy(this._element.nativeElement));let e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new SS(this.autocomplete.template,this._viewContainerRef,{id:null===(t=this._formField)||void 0===t?void 0:t.getLabelId()}),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,e.keydownEvents().subscribe(t=>{(27===t.keyCode&&!My(t)||38===t.keyCode&&My(t,"altKey"))&&(this._resetActiveItem(),this._closeKeyEventStream.next(),t.stopPropagation(),t.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&e&&e.updateSize({width:this._getPanelWidth()})})),e&&!e.hasAttached()&&(e.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const i=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&i!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var t;return new zS({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(t=this._defaults)||void 0===t?void 0:t.overlayPanelClass})}_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"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],i=this._aboveClass,n=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:i},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:i}];let s;s="above"===this.position?n:"below"===this.position?e:[...e,...n],t.withPositions(s)}_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(){const t=this.autocomplete;t.autoActiveFirstOption?t._keyManager.setFirstItemActive():t._keyManager.setActiveItem(-1)}_canOpen(){const t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}_getWindow(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}_scrollToOption(t){const e=this.autocomplete,i=tS(t,e.options,e.optionGroups);if(0===t&&1===i)e._setScrollTop(0);else{const i=e.options.toArray()[t];if(i){const t=i._getHostElement(),n=eS(t.offsetTop,t.offsetHeight,e._getScrollTop(),e.panel.nativeElement.offsetHeight);e._setScrollTop(n)}}}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(rk),$o(Kl),$o(mu),$o(Vl),$o(dA),$o(Xg,8),$o(qk,9),$o(qu,8),$o(yS),$o(aA,8))},t.\u0275dir=ie({type:t,inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},features:[me]}),t})(),fA=(()=>{class t extends mA{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return t.\u0275fac=function(e){return gA(e||t)},t.\u0275dir=ie({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&ra("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&&zo("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==e.autocomplete?null:e.autocomplete.id)("aria-haspopup",!e.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[rl([pA]),Oo]}),t})();const gA=Qi(fA);let _A=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:[hA],imports:[[dk,iS,ax,yh],vS,iS,ax]}),t})(),bA=0;class yA{}const vA=lx(yA);let wA=(()=>{class t extends vA{constructor(t,e,i,n,s){super(),this._ngZone=t,this._elementRef=e,this._ariaDescriber=i,this._renderer=n,this._animationMode=s,this._hasContent=!1,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=bA++}get color(){return this._color}set color(t){this._setColor(t),this._color=t}get overlap(){return this._overlap}set overlap(t){this._overlap=wg(t)}get description(){return this._description}set description(t){if(t!==this._description){const e=this._badgeElement;this._updateHostAriaDescription(t,this._description),this._description=t,e&&(t?e.setAttribute("aria-label",t):e.removeAttribute("aria-label"))}}get hidden(){return this._hidden}set hidden(t){this._hidden=wg(t)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}ngOnChanges(t){const e=t.content;if(e){const t=e.currentValue;this._hasContent=null!=t&&`${t}`.trim().length>0,this._updateTextContent()}}ngOnDestroy(){const t=this._badgeElement;t&&(this.description&&this._ariaDescriber.removeDescription(t,this.description),this._renderer.destroyNode&&this._renderer.destroyNode(t))}getBadgeElement(){return this._badgeElement}_updateTextContent(){return this._badgeElement?this._badgeElement.textContent=this._stringifyContent():this._badgeElement=this._createBadgeElement(),this._badgeElement}_createBadgeElement(){const t=this._renderer.createElement("span");return this._clearExistingBadges("mat-badge-content"),t.setAttribute("id",`mat-badge-content-${this._id}`),t.classList.add("mat-badge-content"),t.textContent=this._stringifyContent(),"NoopAnimations"===this._animationMode&&t.classList.add("_mat-animation-noopable"),this.description&&t.setAttribute("aria-label",this.description),this._elementRef.nativeElement.appendChild(t),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{t.classList.add("mat-badge-active")})}):t.classList.add("mat-badge-active"),t}_updateHostAriaDescription(t,e){const i=this._updateTextContent();e&&this._ariaDescriber.removeDescription(i,e),t&&this._ariaDescriber.describe(i,t)}_setColor(t){if(t!==this._color){const e=this._elementRef.nativeElement.classList;this._color&&e.remove(`mat-badge-${this._color}`),t&&e.add(`mat-badge-${t}`)}}_clearExistingBadges(t){const e=this._elementRef.nativeElement;let i=e.children.length;for(;i--;){const n=e.children[i];n.classList.contains(t)&&e.removeChild(n)}}_stringifyContent(){const t=this.content;return null==t?"":`${t}`}}return t.\u0275fac=function(e){return new(e||t)($o(mu),$o(hl),$o(tv),$o(fl),$o(QC,8))},t.\u0275dir=ie({type:t,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(t,e){2&t&&Sa("mat-badge-overlap",e.overlap)("mat-badge-above",e.isAbove())("mat-badge-below",!e.isAbove())("mat-badge-before",!e.isAfter())("mat-badge-after",e.isAfter())("mat-badge-small","small"===e.size)("mat-badge-medium","medium"===e.size)("mat-badge-large","large"===e.size)("mat-badge-hidden",e.hidden||!e._hasContent)("mat-badge-disabled",e.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],position:["matBadgePosition","position"],size:["matBadgeSize","size"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],description:["matBadgeDescription","description"],hidden:["matBadgeHidden","hidden"],content:["matBadge","content"]},features:[Oo,me]}),t})(),CA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[Sv,ax],ax]}),t})();const xA=["mat-button",""],SA=["*"],kA=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .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.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-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.mat-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.mat-button-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.mat-button-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}.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:inline-flex;justify-content:center;align-items:center;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}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n",AA=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class OA{constructor(t){this._elementRef=t}}const EA=cx(lx(ux(OA)));let TA=(()=>{class t extends EA{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 AA)this._hasHostAttributes(n)&&this._getHostElement().classList.add(n);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(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)($o(hl),$o(vv),$o(QC,8))},t.\u0275cmp=Xt({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){if(1&t&&Vc(Vx,1),2&t){let t;Nc(t=Hc())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(zo("disabled",e.disabled||null),Sa("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[Oo],attrs:xA,ngContentSelectors:SA,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&&(ha(),Qo(0,"span",0),pa(1),Xo(),Ko(2,"span",1),Ko(3,"span",2)),2&t&&(dr(2),Sa("mat-button-ripple-round",e.isRoundButton||e.isIconButton),qo("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[Vx],styles:[kA],encapsulation:2,changeDetection:0}),t})(),PA=(()=>{class t extends TA{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)($o(vv),$o(hl),$o(QC,8))},t.\u0275cmp=Xt({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:7,hostBindings:function(t,e){1&t&&ra("click",function(t){return e._haltDisabledEvents(t)}),2&t&&(zo("tabindex",e.disabled?-1:e.tabIndex||0)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString()),Sa("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[Oo],attrs:xA,ngContentSelectors:SA,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&&(ha(),Qo(0,"span",0),pa(1),Xo(),Ko(2,"span",1),Ko(3,"span",2)),2&t&&(dr(2),Sa("mat-button-ripple-round",e.isRoundButton||e.isIconButton),qo("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[Vx],styles:[kA],encapsulation:2,changeDetection:0}),t})(),DA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[Bx,ax],ax]}),t})();const MA=["button"],IA=["*"],RA=new en("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),LA=new en("MatButtonToggleGroup"),FA={provide:mb,useExisting:ut(()=>BA),multi:!0};let NA=0;class VA{constructor(t,e){this.source=t,this.value=e}}let BA=(()=>{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-"+NA++,this.valueChange=new kc,this.change=new kc,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=wg(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=wg(t)}get disabled(){return this._disabled}set disabled(t){this._disabled=wg(t),this._buttonToggles&&this._buttonToggles.forEach(t=>t._markForCheck())}ngOnInit(){this._selectionModel=new mS(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 VA(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().then(()=>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){this._rawValue=t,this._buttonToggles&&(this.multiple&&t?(Array.isArray(t),this._clearSelection(),t.forEach(t=>this._selectValue(t))):(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)($o(Vl),$o(RA,8))},t.\u0275dir=ie({type:t,selectors:[["mat-button-toggle-group"]],contentQueries:function(t,e,i){if(1&t&&Bc(i,GA,1),2&t){let t;Nc(t=Hc())&&(e._buttonToggles=t)}},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(t,e){2&t&&(zo("aria-disabled",e.disabled),Sa("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:[rl([FA,{provide:LA,useExisting:t}])]}),t})();class HA{}const zA=ux(HA);let GA=(()=>{class t extends zA{constructor(t,e,i,n,s,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 kc;const o=Number(s);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=wg(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=wg(t)}ngOnInit(){const t=this.buttonToggleGroup;this._isSingleSelector=t&&!t.multiple,this.id=this.id||"mat-button-toggle-"+NA++,this._isSingleSelector&&(this.name=t.name),t&&(t._isPrechecked(this)?this.checked=!0:t._isSelected(this)!==this._checked&&t._syncButtonToggle(this,this._checked))}ngAfterViewInit(){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 VA(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)($o(LA,8),$o(Vl),$o(hl),$o(vv),Ki("tabindex"),$o(RA,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-button-toggle"]],viewQuery:function(t,e){if(1&t&&Vc(MA,1),2&t){let t;Nc(t=Hc())&&(e._buttonElement=t.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(t,e){1&t&&ra("focus",function(){return e.focus()}),2&t&&(zo("aria-label",null)("aria-labelledby",null)("id",e.id)("name",null),Sa("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:[Oo],ngContentSelectors:IA,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&&(ha(),Qo(0,"button",0,1),ra("click",function(){return e._onButtonClick()}),Qo(2,"span",2),pa(3),Xo(),Xo(),Ko(4,"span",3),Ko(5,"span",4)),2&t){const t=Wo(1);qo("id",e.buttonId)("disabled",e.disabled||null),zo("tabindex",e.disabled?-1:e.tabIndex)("aria-pressed",e.checked)("name",e.name||null)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),dr(5),qo("matRippleTrigger",t)("matRippleDisabled",e.disableRipple||e.disabled)}},directives:[Vx],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{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 500px}.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})(),UA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[ax,Bx],ax]}),t})();const jA=["*",[["mat-card-footer"]]],WA=["*","mat-card-footer"],$A=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],qA=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let YA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ie({type:t,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),t})(),QA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ie({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),t})(),XA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ie({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),t})(),KA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ie({type:t,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),t})(),ZA=(()=>{class t{constructor(t){this._animationMode=t}}return t.\u0275fac=function(e){return new(e||t)($o(QC,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,e){2&t&&Sa("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:WA,decls:2,vars:0,template:function(t,e){1&t&&(ha(jA),pa(0),pa(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:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-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})(),JA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:qA,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(t,e){1&t&&(ha($A),pa(0),Qo(1,"div",0),pa(2,1),Xo(),pa(3,2))},encapsulation:2,changeDetection:0}),t})(),tO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[ax],ax]}),t})();const eO=["input"],iO=function(){return{enterDuration:150}},nO=["*"],sO=new en("mat-checkbox-default-options",{providedIn:"root",factory:rO});function rO(){return{color:"accent",clickAction:"check-indeterminate"}}let oO=0;const aO=rO(),lO={provide:mb,useExisting:ut(()=>hO),multi:!0};class cO{}class uO{constructor(t){this._elementRef=t}}const dO=dx(cx(ux(lx(uO))));let hO=(()=>{class t extends dO{constructor(t,e,i,n,s,r,o){super(t),this._changeDetectorRef=e,this._focusMonitor=i,this._ngZone=n,this._animationMode=r,this._options=o,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++oO,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new kc,this.indeterminateChange=new kc,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||aO,this.color=this.defaultColor=this._options.color||aO.color,this.tabIndex=parseInt(s)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(t){this._required=wg(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{t||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),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=wg(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=wg(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 cO;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(t){var e;const i=null===(e=this._options)||void 0===e?void 0:e.clickAction;t.stopPropagation(),this.disabled||"noop"===i?this.disabled||"noop"!==i||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==i&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(t,e){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(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)($o(hl),$o(Vl),$o(vv),$o(mu),Ki("tabindex"),$o(QC,8),$o(sO,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){if(1&t&&(Vc(eO,1),Vc(Vx,1)),2&t){let t;Nc(t=Hc())&&(e._inputElement=t.first),Nc(t=Hc())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(Ua("id",e.id),zo("tabindex",null),Sa("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",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[rl([lO]),Oo],ngContentSelectors:nO,decls:17,vars:20,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&&(ha(),Qo(0,"label",0,1),Qo(2,"span",2),Qo(3,"input",3,4),ra("change",function(t){return e._onInteractionEvent(t)})("click",function(t){return e._onInputClick(t)}),Xo(),Qo(5,"span",5),Ko(6,"span",6),Xo(),Ko(7,"span",7),Qo(8,"span",8),pi(),Qo(9,"svg",9),Ko(10,"path",10),Xo(),mi(),Ko(11,"span",11),Xo(),Xo(),Qo(12,"span",12,13),ra("cdkObserveContent",function(){return e._onLabelTextChange()}),Qo(14,"span",14),Na(15,"\xa0"),Xo(),pa(16),Xo(),Xo()),2&t){const t=Wo(1),i=Wo(13);zo("for",e.inputId),dr(2),Sa("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),dr(1),qo("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),zo("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked())("aria-describedby",e.ariaDescribedby),dr(2),qo("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",hc(19,iO))}},directives:[Vx,Yy],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{display:inline-block;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}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .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);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;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})(),pO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({}),t})(),mO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[Bx,ax,Qy,pO],ax,pO]}),t})();const fO=["*"],gO=new en("MatChipRemove"),_O=new en("MatChipAvatar"),bO=new en("MatChipTrailingIcon");class yO{constructor(t){this._elementRef=t}}const vO=dx(cx(ux(yO),"primary"),-1);let wO=(()=>{class t extends vO{constructor(t,e,i,n,s,r,o,a){super(t),this._elementRef=t,this._ngZone=e,this._changeDetectorRef=s,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new k,this._onBlur=new k,this.selectionChange=new kc,this.destroyed=new kc,this.removed=new kc,this._addHostClassName(),this._chipRippleTarget=r.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new Fx(this,e,this._chipRippleTarget,i),this._chipRipple.setupTriggerEvents(t),this.rippleConfig=n||{},this._animationsDisabled="NoopAnimations"===o,this.tabIndex=null!=a&&parseInt(a)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(t){const e=wg(t);e!==this._selected&&(this._selected=e,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(t){this._value=t}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(t){this._selectable=wg(t)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(t){this._disabled=wg(t)}get removable(){return this._removable}set removable(t){this._removable=wg(t)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const t=this._elementRef.nativeElement;t.hasAttribute("mat-basic-chip")||"mat-basic-chip"===t.tagName.toLowerCase()?t.classList.add("mat-basic-chip"):t.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(t=!1){return this._selected=!this.selected,this._dispatchSelectionChange(t),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(t){this.disabled?t.preventDefault():t.stopPropagation()}_handleKeydown(t){if(!this.disabled)switch(t.keyCode){case 46:case 8:this.remove(),t.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),t.preventDefault()}}_blur(){this._ngZone.onStable.pipe(Tf(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(t=!1){this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected})}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(mu),$o(Ry),$o(Nx,8),$o(Vl),$o(qu),$o(QC,8),Ki("tabindex"))},t.\u0275dir=ie({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,e,i){if(1&t&&(Bc(i,_O,1),Bc(i,bO,1),Bc(i,gO,1)),2&t){let t;Nc(t=Hc())&&(e.avatar=t.first),Nc(t=Hc())&&(e.trailingIcon=t.first),Nc(t=Hc())&&(e.removeIcon=t.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,e){1&t&&ra("click",function(t){return e._handleClick(t)})("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e.focus()})("blur",function(){return e._blur()}),2&t&&(zo("tabindex",e.disabled?null:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),Sa("mat-chip-selected",e.selected)("mat-chip-with-avatar",e.avatar)("mat-chip-with-trailing-icon",e.trailingIcon||e.removeIcon)("mat-chip-disabled",e.disabled)("_mat-animation-noopable",e._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[Oo]}),t})();const CO=new en("mat-chips-default-options");class xO{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const SO=hx(xO);let kO=0;class AO{constructor(t,e){this.source=t,this.value=e}}let OO=(()=>{class t extends SO{constructor(t,e,i,n,s,r,o){super(r,n,s,o),this._elementRef=t,this._changeDetectorRef=e,this._dir=i,this.ngControl=o,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new k,this._uid="mat-chip-list-"+kO++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(t,e)=>t===e,this._required=!1,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new kc,this.valueChange=new kc,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(t){this._multiple=wg(t),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){this.writeValue(t),this._value=t}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required}set required(t){this._required=wg(t),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=wg(t),this._syncChipsState()}get selectable(){return this._selectable}set selectable(t){this._selectable=wg(t),this.chips&&this.chips.forEach(t=>t.chipListSelectable=this._selectable)}set tabIndex(t){this._userTabIndex=t,this._tabIndex=t}get chipSelectionChanges(){return Y(...this.chips.map(t=>t.selectionChange))}get chipFocusChanges(){return Y(...this.chips.map(t=>t._onFocus))}get chipBlurChanges(){return Y(...this.chips.map(t=>t._onBlur))}get chipRemoveChanges(){return Y(...this.chips.map(t=>t.destroyed))}ngAfterContentInit(){this._keyManager=new rv(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Hp(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),this._keyManager.tabOut.pipe(Hp(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(jp(null),Hp(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new mS(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(t){this._chipInput=t,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",t.id)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}writeValue(t){this.chips&&this._setSelectionByValue(t,!1)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this.stateChanges.next()}onContainerClick(t){this._originatesFromChip(t)||this.focus()}focus(t){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(t),this.stateChanges.next()))}_focusInput(t){this._chipInput&&this._chipInput.focus(t)}_keydown(t){const e=t.target;8===t.keyCode&&this._isInputEmpty(e)?(this._keyManager.setLastItemActive(),t.preventDefault()):e&&e.classList.contains("mat-chip")&&(this._keyManager.onKeydown(t),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const t=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(t)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(t){return t>=0&&tt.deselect()),Array.isArray(t))t.forEach(t=>this._selectValue(t,e)),this._sortValues();else{const i=this._selectValue(t,e);i&&e&&this._keyManager.setActiveItem(i)}}_selectValue(t,e=!0){const i=this.chips.find(e=>null!=e.value&&this._compareWith(e.value,t));return i&&(e?i.selectViaInteraction():i.select(),this._selectionModel.select(i)),i}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(t){this._selectionModel.clear(),this.chips.forEach(e=>{e!==t&&e.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(t=>{t.selected&&this._selectionModel.select(t)}),this.stateChanges.next())}_propagateChanges(t){let e=null;e=Array.isArray(this.selected)?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.change.emit(new AO(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(t=>{t.source.selected?this._selectionModel.select(t.source):this._selectionModel.deselect(t.source),this.multiple||this.chips.forEach(t=>{!this._selectionModel.isSelected(t)&&t.selected&&t.deselect()}),t.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(t=>{let e=this.chips.toArray().indexOf(t.chip);this._isValidIndex(e)&&this._keyManager.updateActiveItem(e),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(t=>{const e=t.chip,i=this.chips.toArray().indexOf(t.chip);this._isValidIndex(i)&&e._hasFocus&&(this._lastDestroyedChipIndex=i)})}_originatesFromChip(t){let e=t.target;for(;e&&e!==this._elementRef.nativeElement;){if(e.classList.contains("mat-chip"))return!0;e=e.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(t=>t._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(t=>{t._chipListDisabled=this._disabled,t._chipListMultiple=this.multiple})}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(Vl),$o(Xg,8),$o(py,8),$o(ky,8),$o(Ox),$o(zb,10))},t.\u0275cmp=Xt({type:t,selectors:[["mat-chip-list"]],contentQueries:function(t,e,i){if(1&t&&Bc(i,wO,1),2&t){let t;Nc(t=Hc())&&(e.chips=t)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,e){1&t&&ra("focus",function(){return e.focus()})("blur",function(){return e._blur()})("keydown",function(t){return e._keydown(t)}),2&t&&(Ua("id",e._uid),zo("tabindex",e.disabled?null:e._tabIndex)("aria-describedby",e._ariaDescribedby||null)("aria-required",e.role?e.required:null)("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-multiselectable",e.multiple)("role",e.role)("aria-orientation",e.ariaOrientation),Sa("mat-chip-list-disabled",e.disabled)("mat-chip-list-invalid",e.errorState)("mat-chip-list-required",e.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[rl([{provide:Ik,useExisting:t}]),Oo],ngContentSelectors:fO,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,e){1&t&&(ha(),Qo(0,"div",0),pa(1),Xo())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),t})();const EO={separatorKeyCodes:[13]};let TO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:[Ox,{provide:CO,useValue:EO}],imports:[[ax]]}),t})();function PO(t,e){}class DO{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 MO={dialogContainer:Ov("dialogContainer",[Mv("void, exit",Dv({opacity:0,transform:"scale(0.7)"})),Mv("enter",Dv({transform:"none"})),Rv("* => enter",Ev("150ms cubic-bezier(0, 0, 0.2, 1)",Dv({transform:"none",opacity:1}))),Rv("* => void, * => exit",Ev("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Dv({opacity:0})))])};let IO=(()=>{class t extends AS{constructor(t,e,i,n,s,r){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=i,this._config=s,this._focusMonitor=r,this._animationStateChanged=new kc,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=t=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=s.ariaLabelledBy||null,this._document=n}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=this._getActiveElement(),i=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==i&&!i.contains(e)||(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._getActiveElement())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,e=this._getActiveElement();return t===e||t.contains(e)}_getActiveElement(){var t;const e=this._document.activeElement;return(null===(t=null==e?void 0:e.shadowRoot)||void 0===t?void 0:t.activeElement)||e}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(uv),$o(Vl),$o(qu,8),$o(DO),$o(vv))},t.\u0275dir=ie({type:t,viewQuery:function(t,e){if(1&t&&Vc(TS,3),2&t){let t;Nc(t=Hc())&&(e._portalOutlet=t.first)}},features:[Oo]}),t})(),RO=(()=>{class t extends IO{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:t,totalTime:e}){"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:e}))}_onAnimationStart({toState:t,totalTime:e}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:e}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:e})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return LO(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&oa("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(Ua("id",e._id),zo("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),ja("@dialogContainer",e._state))},features:[Oo],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&jo(0,PO,0,0,"ng-template",0)},directives:[TS],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;box-sizing:content-box;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:[MO.dialogContainer]}}),t})();const LO=Qi(RO);let FO=0;class NO{constructor(t,e,i="mat-dialog-"+FO++){this._overlayRef=t,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new k,this._afterClosed=new k,this._beforeClosed=new k,this._state=0,e._id=i,e._animationStateChanged.pipe(Mm(t=>"opened"===t.state),Tf(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(Mm(t=>"closed"===t.state),Tf(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),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(Mm(t=>27===t.keyCode&&!this.disableClose&&!My(t))).subscribe(t=>{t.preventDefault(),VO(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():VO(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(Mm(t=>"closing"===t.state),Tf(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}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._overlayRef.updateSize({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}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function VO(t,e,i){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(i)}const BO=new en("MatDialogData"),HO=new en("mat-dialog-default-options"),zO=new en("mat-dialog-scroll-strategy"),GO={provide:zO,deps:[rk],useFactory:function(t){return()=>t.scrollStrategies.block()}};let UO=(()=>{class t{constructor(t,e,i,n,s,r,o,a,l){this._overlay=t,this._injector=e,this._defaultOptions=i,this._parentDialog=n,this._overlayContainer=s,this._dialogRefConstructor=o,this._dialogContainerType=a,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new k,this._afterOpenedAtThisLevel=new k,this._ariaHiddenElements=new Map,this.afterAllClosed=nS(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(jp(void 0))),this._scrollStrategy=r}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,e){(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new DO)).id&&this.getDialogById(e.id);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),n._initializeWithAttachedContent(),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 zS({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=ko.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:DO,useValue:e}]}),n=new xS(this._dialogContainerType,e.viewContainerRef,i,e.componentFactoryResolver);return t.attach(n).instance}_attachDialogContent(t,e,i,n){const s=new this._dialogRefConstructor(i,e,n.id);if(t instanceof jl)e.attachTemplatePortal(new SS(t,null,{$implicit:n.data,dialogRef:s}));else{const i=this._createInjector(n,s,e),r=e.attachComponentPortal(new xS(t,n.viewContainerRef,i));s.componentInstance=r.instance}return s.updateSize(n.width,n.height).updatePosition(n.position),s}_createInjector(t,e,i){const n=t&&t.viewContainerRef&&t.viewContainerRef.injector,s=[{provide:this._dialogContainerType,useValue:i},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return!t.direction||n&&n.get(Xg,null)||s.push({provide:Xg,useValue:{value:t.direction,change:Sp()}}),ko.create({parent:n||this._injector,providers:s})}_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._getAfterAllClosed().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)($o(rk),$o(ko),$o(void 0),$o(void 0),$o(YS),$o(void 0),$o(on),$o(on),$o(en))},t.\u0275dir=ie({type:t}),t})(),jO=(()=>{class t extends UO{constructor(t,e,i,n,s,r,o){super(t,e,n,r,o,s,NO,RO,BO)}}return t.\u0275fac=function(e){return new(e||t)(wn(rk),wn(ko),wn(ld,8),wn(HO,8),wn(zO),wn(t,12),wn(YS))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})(),WO=0,$O=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this._elementRef=e,this._dialog=i,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=XO(this._elementRef,this._dialog.openDialogs))}ngOnChanges(t){const e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)}_onButtonClick(t){VO(this.dialogRef,0===t.screenX&&0===t.screenY?"keyboard":"mouse",this.dialogResult)}}return t.\u0275fac=function(e){return new(e||t)($o(NO,8),$o(hl),$o(jO))},t.\u0275dir=ie({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,e){1&t&&ra("click",function(t){return e._onButtonClick(t)}),2&t&&zo("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:[me]}),t})(),qO=(()=>{class t{constructor(t,e,i){this._dialogRef=t,this._elementRef=e,this._dialog=i,this.id="mat-dialog-title-"+WO++}ngOnInit(){this._dialogRef||(this._dialogRef=XO(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)($o(NO,8),$o(hl),$o(jO))},t.\u0275dir=ie({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&Ua("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),YO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ie({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),QO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ie({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t})();function XO(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 KO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:[jO,GO],imports:[[dk,PS,ax],ax]}),t})();const ZO=Gy({passive:!0});let JO=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return Cp;const e=Ag(t),i=this._monitoredElements.get(e);if(i)return i.subject;const n=new k,s="cdk-text-field-autofilled",r=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",r,ZO),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:n,unlisten:()=>{e.removeEventListener("animationstart",r,ZO)}}),n}stopMonitoring(t){const e=Ag(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)(wn(Ry),wn(mu))},t.\u0275prov=_t({factory:function(){return new t(wn(Ry),wn(mu))},token:t,providedIn:"root"}),t})(),tE=(()=>{class t{constructor(t,e,i,n){this._elementRef=t,this._platform=e,this._ngZone=i,this._destroyed=new k,this._enabled=!0,this._previousMinRows=-1,this._document=n,this._textareaElement=this._elementRef.nativeElement,this._measuringClass=e.FIREFOX?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring"}get minRows(){return this._minRows}set minRows(t){this._minRows=Cg(t),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(t){this._maxRows=Cg(t),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(t){t=wg(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(()=>{Cf(this._getWindow(),"resize").pipe(aS(16),Hp(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(this._measuringClass),e.placeholder="",e.style.height=e.scrollHeight-4+"px",e.classList.remove(this._measuringClass),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(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(t){const{selectionStart:e,selectionEnd:i}=t,n=this._getDocument();this._destroyed.isStopped||n.activeElement!==t||t.setSelectionRange(e,i)}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(Ry),$o(mu),$o(qu,8))},t.\u0275dir=ie({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(t,e){1&t&&ra("input",function(){return e._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"]},exportAs:["cdkTextareaAutosize"]}),t})(),eE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[Ly]]}),t})(),iE=(()=>{class t extends tE{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 nE(e||t)},t.\u0275dir=ie({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:[Oo]}),t})();const nE=Qi(iE),sE=new en("MAT_INPUT_VALUE_ACCESSOR"),rE=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let oE=0;class aE{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const lE=hx(aE);let cE=(()=>{class t extends lE{constructor(t,e,i,n,s,r,o,a,l,c){super(r,n,s,i),this._elementRef=t,this._platform=e,this.ngControl=i,this._autofillMonitor=a,this._formField=c,this._uid="mat-input-"+oE++,this.focused=!1,this.stateChanges=new k,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=>Ny().has(t));const u=this._elementRef.nativeElement,d=u.nodeName.toLowerCase();this._inputValueAccessor=o||u,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"===d,this._isTextarea="textarea"===d,this._isNativeSelect&&(this.controlType=u.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=wg(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=wg(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&Ny().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=wg(t)}ngAfterViewInit(){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(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,e;const i=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(i!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=i,i?t.setAttribute("placeholder",i):t.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){rE.indexOf(this._type)}_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){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(Ry),$o(zb,10),$o(py,8),$o(ky,8),$o(Ox),$o(sE,10),$o(JO),$o(mu),$o(qk,8))},t.\u0275dir=ie({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&ra("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(Ua("disabled",e.disabled)("required",e.required),zo("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.errorState&&!e.empty)("aria-required",e.required),Sa("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[rl([{provide:Ik,useExisting:t}]),Oo,me]}),t})(),uE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:[Ox],imports:[[eE,Qk,ax],eE,Qk]}),t})();const dE=["mat-calendar-body",""];function hE(t,e){if(1&t&&(Qo(0,"tr",2),Qo(1,"td",3),Na(2),Xo(),Xo()),2&t){const t=ua();dr(1),xa("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),zo("colspan",t.numCols),dr(1),Ba(" ",t.label," ")}}function pE(t,e){if(1&t&&(Qo(0,"td",7),Na(1),Xo()),2&t){const t=ua(2);xa("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),zo("colspan",t._firstRowOffset),dr(1),Ba(" ",t._firstRowOffset>=t.labelMinRequiredCells?t.label:""," ")}}function mE(t,e){if(1&t){const t=ea();Qo(0,"td",8),ra("click",function(i){Be(t);const n=e.$implicit;return ua(2)._cellClicked(n,i)}),Qo(1,"div",9),Na(2),Xo(),Ko(3,"div",10),Xo()}if(2&t){const t=e.$implicit,i=e.index,n=ua().index,s=ua();xa("width",s._cellWidth)("padding-top",s._cellPadding)("padding-bottom",s._cellPadding),Sa("mat-calendar-body-disabled",!t.enabled)("mat-calendar-body-active",s._isActiveCell(n,i))("mat-calendar-body-range-start",s._isRangeStart(t.compareValue))("mat-calendar-body-range-end",s._isRangeEnd(t.compareValue))("mat-calendar-body-in-range",s._isInRange(t.compareValue))("mat-calendar-body-comparison-bridge-start",s._isComparisonBridgeStart(t.compareValue,n,i))("mat-calendar-body-comparison-bridge-end",s._isComparisonBridgeEnd(t.compareValue,n,i))("mat-calendar-body-comparison-start",s._isComparisonStart(t.compareValue))("mat-calendar-body-comparison-end",s._isComparisonEnd(t.compareValue))("mat-calendar-body-in-comparison-range",s._isInComparisonRange(t.compareValue))("mat-calendar-body-preview-start",s._isPreviewStart(t.compareValue))("mat-calendar-body-preview-end",s._isPreviewEnd(t.compareValue))("mat-calendar-body-in-preview",s._isInPreview(t.compareValue)),qo("ngClass",t.cssClasses)("tabindex",s._isActiveCell(n,i)?0:-1),zo("data-mat-row",n)("data-mat-col",i)("aria-label",t.ariaLabel)("aria-disabled",!t.enabled||null)("aria-selected",s._isSelected(t.compareValue)),dr(1),Sa("mat-calendar-body-selected",s._isSelected(t.compareValue))("mat-calendar-body-comparison-identical",s._isComparisonIdentical(t.compareValue))("mat-calendar-body-today",s.todayValue===t.compareValue),dr(1),Ba(" ",t.displayValue," ")}}function fE(t,e){if(1&t&&(Qo(0,"tr",4),jo(1,pE,2,6,"td",5),jo(2,mE,4,46,"td",6),Xo()),2&t){const t=e.$implicit,i=e.index,n=ua();dr(1),qo("ngIf",0===i&&n._firstRowOffset),dr(1),qo("ngForOf",t)}}function gE(t,e){if(1&t&&(Qo(0,"th",5),Na(1),Xo()),2&t){const t=e.$implicit;zo("aria-label",t.long),dr(1),Va(t.narrow)}}const _E=["*"];function bE(t,e){}function yE(t,e){if(1&t){const t=ea();Qo(0,"mat-month-view",5),ra("activeDateChange",function(e){return Be(t),ua().activeDate=e})("_userSelection",function(e){return Be(t),ua()._dateSelected(e)}),Xo()}if(2&t){const t=ua();qo("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)("comparisonStart",t.comparisonStart)("comparisonEnd",t.comparisonEnd)}}function vE(t,e){if(1&t){const t=ea();Qo(0,"mat-year-view",6),ra("activeDateChange",function(e){return Be(t),ua().activeDate=e})("monthSelected",function(e){return Be(t),ua()._monthSelectedInYearView(e)})("selectedChange",function(e){return Be(t),ua()._goToDateInView(e,"month")}),Xo()}if(2&t){const t=ua();qo("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}function wE(t,e){if(1&t){const t=ea();Qo(0,"mat-multi-year-view",7),ra("activeDateChange",function(e){return Be(t),ua().activeDate=e})("yearSelected",function(e){return Be(t),ua()._yearSelectedInMultiYearView(e)})("selectedChange",function(e){return Be(t),ua()._goToDateInView(e,"year")}),Xo()}if(2&t){const t=ua();qo("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}function CE(t,e){}const xE=["button"];function SE(t,e){1&t&&(pi(),Qo(0,"svg",3),Ko(1,"path",4),Xo())}const kE=[[["","matDatepickerToggleIcon",""]]],AE=["[matDatepickerToggleIcon]"];let OE=(()=>{class t{constructor(){this.changes=new k,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 20 years",this.nextMultiYearLabel="Next 20 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(t,e){return`${t} \u2013 ${e}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({factory:function(){return new t},token:t,providedIn:"root"}),t})();class EE{constructor(t,e,i,n,s={},r=t,o){this.value=t,this.displayValue=e,this.ariaLabel=i,this.enabled=n,this.cssClasses=s,this.compareValue=r,this.rawValue=o}}let TE=(()=>{class t{constructor(t,e){this._elementRef=t,this._ngZone=e,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new kc,this.previewChange=new kc,this._enterHandler=t=>{if(this._skipNextFocus&&"focus"===t.type)this._skipNextFocus=!1;else if(t.target&&this.isRange){const e=this._getCellFromElement(t.target);e&&this._ngZone.run(()=>this.previewChange.emit({value:e.enabled?e:null,event:t}))}},this._leaveHandler=t=>{null!==this.previewEnd&&this.isRange&&t.target&&PE(t.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:t}))},e.runOutsideAngular(()=>{const e=t.nativeElement;e.addEventListener("mouseenter",this._enterHandler,!0),e.addEventListener("focus",this._enterHandler,!0),e.addEventListener("mouseleave",this._leaveHandler,!0),e.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(t,e){t.enabled&&this.selectedValueChange.emit({value:t.value,event:e})}_isSelected(t){return this.startValue===t||this.endValue===t}ngOnChanges(t){const e=t.numCols,{rows:i,numCols:n}=this;(t.rows||e)&&(this._firstRowOffset=i&&i.length&&i[0].length?n-i[0].length:0),(t.cellAspectRatio||e||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/n+"%"),!e&&this._cellWidth||(this._cellWidth=100/n+"%")}ngOnDestroy(){const t=this._elementRef.nativeElement;t.removeEventListener("mouseenter",this._enterHandler,!0),t.removeEventListener("focus",this._enterHandler,!0),t.removeEventListener("mouseleave",this._leaveHandler,!0),t.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(t,e){let i=t*this.numCols+e;return t&&(i-=this._firstRowOffset),i==this.activeCell}_focusActiveCell(t=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Tf(1)).subscribe(()=>{const e=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");e&&(t||(this._skipNextFocus=!0),e.focus())})})}_isRangeStart(t){return DE(t,this.startValue,this.endValue)}_isRangeEnd(t){return ME(t,this.startValue,this.endValue)}_isInRange(t){return IE(t,this.startValue,this.endValue,this.isRange)}_isComparisonStart(t){return DE(t,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(t,e,i){if(!this._isComparisonStart(t)||this._isRangeStart(t)||!this._isInRange(t))return!1;let n=this.rows[e][i-1];if(!n){const t=this.rows[e-1];n=t&&t[t.length-1]}return n&&!this._isRangeEnd(n.compareValue)}_isComparisonBridgeEnd(t,e,i){if(!this._isComparisonEnd(t)||this._isRangeEnd(t)||!this._isInRange(t))return!1;let n=this.rows[e][i+1];if(!n){const t=this.rows[e+1];n=t&&t[0]}return n&&!this._isRangeStart(n.compareValue)}_isComparisonEnd(t){return ME(t,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(t){return IE(t,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(t){return this.comparisonStart===this.comparisonEnd&&t===this.comparisonStart}_isPreviewStart(t){return DE(t,this.previewStart,this.previewEnd)}_isPreviewEnd(t){return ME(t,this.previewStart,this.previewEnd)}_isInPreview(t){return IE(t,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(t){let e;if(PE(t)?e=t:PE(t.parentNode)&&(e=t.parentNode),e){const t=e.getAttribute("data-mat-row"),i=e.getAttribute("data-mat-col");if(t&&i)return this.rows[parseInt(t)][parseInt(i)]}return null}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(mu))},t.\u0275cmp=Xt({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:["role","grid","aria-readonly","true",1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",previewStart:"previewStart",previewEnd:"previewEnd",label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[me],attrs:dE,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(t,e){1&t&&(jo(0,hE,3,6,"tr",0),jo(1,fE,3,2,"tr",1)),2&t&&(qo("ngIf",e._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n'],encapsulation:2,changeDetection:0}),t})();function PE(t){return"TD"===t.nodeName}function DE(t,e,i){return null!==i&&e!==i&&t=e&&t===i}function IE(t,e,i,n){return n&&null!==e&&null!==i&&e!==i&&t>=e&&t<=i}class RE{constructor(t,e){this.start=t,this.end=e}}let LE=(()=>{class t{constructor(t,e){this.selection=t,this._adapter=e,this._selectionChanged=new k,this.selectionChanged=this._selectionChanged,this.selection=t}updateSelection(t,e){this.selection=t,this._selectionChanged.next({selection:t,source:e})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(t){return this._adapter.isDateInstance(t)&&this._adapter.isValid(t)}clone(){return null}}return t.\u0275fac=function(e){return new(e||t)(wn(void 0),wn(fx))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})(),FE=(()=>{class t extends LE{constructor(t){super(null,t)}add(t){super.updateSelection(t,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const e=new t(this._adapter);return e.updateSelection(this.selection,this),e}}return t.\u0275fac=function(e){return new(e||t)(wn(fx))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();const NE={provide:LE,deps:[[new An,new On,LE],fx],useFactory:function(t,e){return t||new FE(e)}},VE=new en("MAT_DATE_RANGE_SELECTION_STRATEGY");let BE=(()=>{class t{constructor(t,e,i,n,s){this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=i,this._dir=n,this._rangeStrategy=s,this._rerenderSubscription=d.EMPTY,this.selectedChange=new kc,this._userSelection=new kc,this.activeDateChange=new kc,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){const e=this._activeDate,i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._hasSameMonthAndYear(e,this._activeDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof RE?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(jp(null)).subscribe(()=>this._init())}ngOnChanges(t){const e=t.comparisonStart||t.comparisonEnd;e&&!e.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(t){const e=t.value,i=this._dateAdapter.getYear(this.activeDate),n=this._dateAdapter.getMonth(this.activeDate),s=this._dateAdapter.createDate(i,n,e);let r,o;this._selected instanceof RE?(r=this._getDateInCurrentMonth(this._selected.start),o=this._getDateInCurrentMonth(this._selected.end)):r=o=this._getDateInCurrentMonth(this._selected),r===e&&o===e||this.selectedChange.emit(s),this._userSelection.emit({value:s,event:t.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:t}),t.preventDefault()));case 27:return void(null==this._previewEnd||My(t)||(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:t}),t.preventDefault(),t.stopPropagation()));default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(t){this._matCalendarBody._focusActiveCell(t)}_previewChanged({event:t,value:e}){if(this._rangeStrategy){const i=this._rangeStrategy.createPreview(e?e.rawValue:null,this.selected,t);this._previewStart=this._getCellCompareValue(i.start),this._previewEnd=this._getCellCompareValue(i.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const t=this._dateAdapter.getFirstDayOfWeek(),e=this._dateAdapter.getDayOfWeekNames("narrow");let i=this._dateAdapter.getDayOfWeekNames("long").map((t,i)=>({long:t,narrow:e[i]}));this._weekdays=i.slice(t).concat(i.slice(0,t))}_createWeekCells(){const t=this._dateAdapter.getNumDaysInMonth(this.activeDate),e=this._dateAdapter.getDateNames();this._weeks=[[]];for(let i=0,n=this._firstWeekOffset;i=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(t))}_getDateInCurrentMonth(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}_hasSameMonthAndYear(t,e){return!(!t||!e||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(e)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(e))}_getCellCompareValue(t){if(t){const e=this._dateAdapter.getYear(t),i=this._dateAdapter.getMonth(t),n=this._dateAdapter.getDate(t);return new Date(e,i,n).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(t){t instanceof RE?(this._rangeStart=this._getCellCompareValue(t.start),this._rangeEnd=this._getCellCompareValue(t.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(t),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}}return t.\u0275fac=function(e){return new(e||t)($o(Vl),$o(gx,8),$o(fx,8),$o(Xg,8),$o(VE,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-month-view"]],viewQuery:function(t,e){if(1&t&&Vc(TE,1),2&t){let t;Nc(t=Hc())&&(e._matCalendarBody=t.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[me],decls:7,vars:13,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["colspan","7","aria-hidden","true",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keydown"],["scope","col"]],template:function(t,e){1&t&&(Qo(0,"table",0),Qo(1,"thead",1),Qo(2,"tr"),jo(3,gE,2,2,"th",2),Xo(),Qo(4,"tr"),Ko(5,"th",3),Xo(),Xo(),Qo(6,"tbody",4),ra("selectedValueChange",function(t){return e._dateSelected(t)})("previewChange",function(t){return e._previewChanged(t)})("keydown",function(t){return e._handleCalendarBodyKeydown(t)}),Xo(),Xo()),2&t&&(dr(3),qo("ngForOf",e._weekdays),dr(3),qo("label",e._monthLabel)("rows",e._weeks)("todayValue",e._todayDate)("startValue",e._rangeStart)("endValue",e._rangeEnd)("comparisonStart",e._comparisonRangeStart)("comparisonEnd",e._comparisonRangeEnd)("previewStart",e._previewStart)("previewEnd",e._previewEnd)("isRange",e._isRange)("labelMinRequiredCells",3)("activeCell",e._dateAdapter.getDate(e.activeDate)-1))},directives:[Kd,TE],encapsulation:2,changeDetection:0}),t})(),HE=(()=>{class t{constructor(t,e,i){this._changeDetectorRef=t,this._dateAdapter=e,this._dir=i,this._rerenderSubscription=d.EMPTY,this.selectedChange=new kc,this.yearSelected=new kc,this.activeDateChange=new kc,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),zE(this._dateAdapter,e,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof RE?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedYear(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(jp(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const t=this._dateAdapter.getYear(this._activeDate)-GE(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let e=0,i=[];e<24;e++)i.push(t+e),4==i.length&&(this._years.push(i.map(t=>this._createCellForYear(t))),i=[]);this._changeDetectorRef.markForCheck()}_yearSelected(t){const e=t.value;this.yearSelected.emit(this._dateAdapter.createDate(e,0,1));let i=this._dateAdapter.getMonth(this.activeDate),n=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,i,1));this.selectedChange.emit(this._dateAdapter.createDate(e,i,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-GE(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-GE(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?240:24);break;case 13:case 32:this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:t});break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_getActiveCell(){return GE(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(t){const e=this._dateAdapter.createDate(t,0,1),i=this._dateAdapter.getYearName(e),n=this.dateClass?this.dateClass(e,"multi-year"):void 0;return new EE(t,i,i,this._shouldEnableYear(t),n)}_shouldEnableYear(t){if(null==t||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&t{class t{constructor(t,e,i,n){this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=i,this._dir=n,this._rerenderSubscription=d.EMPTY,this.selectedChange=new kc,this.monthSelected=new kc,this.activeDateChange=new kc,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._dateAdapter.getYear(e)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof RE?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedMonth(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(jp(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(t){const e=t.value,i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1);this.monthSelected.emit(i);const n=this._dateAdapter.getNumDaysInMonth(i);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,i?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,i?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10:1);break;case 13:case 32:this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:t});break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let t=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(e=>e.map(e=>this._createCellForMonth(e,t[e]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(t){return t&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(t):null}_createCellForMonth(t,e){const i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),n=this._dateAdapter.format(i,this._dateFormats.display.monthYearA11yLabel),s=this.dateClass?this.dateClass(i,"year"):void 0;return new EE(t,e.toLocaleUpperCase(),n,this._shouldEnableMonth(t),s)}_shouldEnableMonth(t){const e=this._dateAdapter.getYear(this.activeDate);if(null==t||this._isYearAndMonthAfterMaxDate(e,t)||this._isYearAndMonthBeforeMinDate(e,t))return!1;if(!this.dateFilter)return!0;for(let i=this._dateAdapter.createDate(e,t,1);this._dateAdapter.getMonth(i)==t;i=this._dateAdapter.addCalendarDays(i,1))if(this.dateFilter(i))return!0;return!1}_isYearAndMonthAfterMaxDate(t,e){if(this.maxDate){const i=this._dateAdapter.getYear(this.maxDate),n=this._dateAdapter.getMonth(this.maxDate);return t>i||t===i&&e>n}return!1}_isYearAndMonthBeforeMinDate(t,e){if(this.minDate){const i=this._dateAdapter.getYear(this.minDate),n=this._dateAdapter.getMonth(this.minDate);return t{class t{constructor(t,e,i,n,s){this._intl=t,this.calendar=e,this._dateAdapter=i,this._dateFormats=n,this._buttonDescriptionId="mat-calendar-button-"+WE++,this.calendar.stateChanges.subscribe(()=>s.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const t=this._dateAdapter.getYear(this.calendar.activeDate)-GE(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),e=t+24-1,i=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1)),n=this._dateAdapter.getYearName(this._dateAdapter.createDate(e,0,1));return this._intl.formatYearRange(i,n)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(t,e){return"month"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e)&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(e):"year"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e):zE(this._dateAdapter,t,e,this.calendar.minDate,this.calendar.maxDate)}}return t.\u0275fac=function(e){return new(e||t)($o(OE),$o(ut(()=>qE)),$o(fx,8),$o(gx,8),$o(Vl))},t.\u0275cmp=Xt({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:_E,decls:10,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],[1,"mat-calendar-arrow"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(t,e){1&t&&(ha(),Qo(0,"div",0),Qo(1,"div",1),Qo(2,"button",2),ra("click",function(){return e.currentPeriodClicked()}),Qo(3,"span"),Na(4),Xo(),Ko(5,"div",3),Xo(),Ko(6,"div",4),pa(7),Qo(8,"button",5),ra("click",function(){return e.previousClicked()}),Xo(),Qo(9,"button",6),ra("click",function(){return e.nextClicked()}),Xo(),Xo(),Xo()),2&t&&(dr(2),zo("aria-label",e.periodButtonLabel)("aria-describedby",e._buttonDescriptionId),dr(1),zo("id",e._buttonDescriptionId),dr(1),Va(e.periodButtonText),dr(1),Sa("mat-calendar-invert","month"!==e.calendar.currentView),dr(3),qo("disabled",!e.previousEnabled()),zo("aria-label",e.prevButtonLabel),dr(1),qo("disabled",!e.nextEnabled()),zo("aria-label",e.nextButtonLabel))},directives:[TA,fv],encapsulation:2,changeDetection:0}),t})(),qE=(()=>{class t{constructor(t,e,i,n){this._dateAdapter=e,this._dateFormats=i,this._changeDetectorRef=n,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new kc,this.yearSelected=new kc,this.monthSelected=new kc,this.viewChanged=new kc(!0),this._userSelection=new kc,this.stateChanges=new k,this._intlChanges=t.changes.subscribe(()=>{n.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get selected(){return this._selected}set selected(t){this._selected=t instanceof RE?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get activeDate(){return this._clampedActiveDate}set activeDate(t){this._clampedActiveDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(t){const e=this._currentView!==t?t:null;this._currentView=t,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),e&&this.viewChanged.emit(e)}ngAfterContentInit(){this._calendarHeaderPortal=new xS(this.headerComponent||$E),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(t){const e=t.minDate||t.maxDate||t.dateFilter;if(e&&!e.firstChange){const t=this._getCurrentViewComponent();t&&(this._changeDetectorRef.detectChanges(),t._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){const t=this.currentView;let e;e="month"===t?this.monthView:"year"===t?this.yearView:this.multiYearView,e._init()}_dateSelected(t){const e=t.value;(this.selected instanceof RE||e&&!this._dateAdapter.sameDate(e,this.selected))&&this.selectedChange.emit(e),this._userSelection.emit(t)}_yearSelectedInMultiYearView(t){this.yearSelected.emit(t)}_monthSelectedInYearView(t){this.monthSelected.emit(t)}_goToDateInView(t,e){this.activeDate=t,this.currentView=e}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return t.\u0275fac=function(e){return new(e||t)($o(OE),$o(fx,8),$o(gx,8),$o(Vl))},t.\u0275cmp=Xt({type:t,selectors:[["mat-calendar"]],viewQuery:function(t,e){if(1&t&&(Vc(BE,1),Vc(jE,1),Vc(HE,1)),2&t){let t;Nc(t=Hc())&&(e.monthView=t.first),Nc(t=Hc())&&(e.yearView=t.first),Nc(t=Hc())&&(e.multiYearView=t.first)}},hostAttrs:[1,"mat-calendar"],inputs:{startView:"startView",startAt:"startAt",selected:"selected",minDate:"minDate",maxDate:"maxDate",headerComponent:"headerComponent",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[rl([NE]),me],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(t,e){1&t&&(jo(0,bE,0,0,"ng-template",0),Qo(1,"div",1),jo(2,yE,1,8,"mat-month-view",2),jo(3,vE,1,6,"mat-year-view",3),jo(4,wE,1,6,"mat-multi-year-view",4),Xo()),2&t&&(qo("cdkPortalOutlet",e._calendarHeaderPortal),dr(1),qo("ngSwitch",e.currentView),dr(1),qo("ngSwitchCase","month"),dr(1),qo("ngSwitchCase","year"),dr(1),qo("ngSwitchCase","multi-year"))},directives:[TS,Cv,nh,sh,BE,jE,HE],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(33% / 7 - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}\n'],encapsulation:2,changeDetection:0}),t})();const YE={transformPanel:Ov("transformPanel",[Mv("void",Dv({opacity:0,transform:"scale(1, 0.8)"})),Rv("void => enter",Ev("120ms cubic-bezier(0, 0, 0.2, 1)",Dv({opacity:1,transform:"scale(1, 1)"}))),Rv("* => void",Ev("100ms linear",Dv({opacity:0})))]),fadeInCalendar:Ov("fadeInCalendar",[Mv("void",Dv({opacity:0})),Mv("enter",Dv({opacity:1})),Rv("void => *",Ev("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let QE=0;const XE=new en("mat-datepicker-scroll-strategy"),KE={provide:XE,deps:[rk],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class ZE{constructor(t){this._elementRef=t}}const JE=cx(ZE);let tT=(()=>{class t extends JE{constructor(t,e,i,n,s,r){super(t),this._changeDetectorRef=e,this._globalModel=i,this._dateAdapter=n,this._rangeSelectionStrategy=s,this._subscriptions=new d,this._animationState="enter",this._animationDone=new k,this._actionsPortal=null,this._closeButtonText=(null==r?void 0:r.closeCalendarLabel)||"Close calendar"}ngOnInit(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(t){const e=this._model.selection,i=t.value,n=e instanceof RE;if(n&&this._rangeSelectionStrategy){const n=this._rangeSelectionStrategy.selectionFinished(i,e,t.event);this._model.updateSelection(n,this)}else!i||!n&&this._dateAdapter.sameDate(i,e)||this._model.add(i);this._model&&!this._model.isComplete()||this._actionsPortal||this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(Vl),$o(LE),$o(fx),$o(VE,8),$o(OE))},t.\u0275cmp=Xt({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(t,e){if(1&t&&Vc(qE,1),2&t){let t;Nc(t=Hc())&&(e._calendar=t.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,e){1&t&&oa("@transformPanel.done",function(){return e._animationDone.next()}),2&t&&(ja("@transformPanel",e._animationState),Sa("mat-datepicker-content-touch",e.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[Oo],decls:5,vars:20,consts:[["cdkTrapFocus","",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"mat-calendar",1),ra("yearSelected",function(t){return e.datepicker._selectYear(t)})("monthSelected",function(t){return e.datepicker._selectMonth(t)})("viewChanged",function(t){return e.datepicker._viewChanged(t)})("_userSelection",function(t){return e._handleUserSelection(t)}),Xo(),jo(2,CE,0,0,"ng-template",2),Qo(3,"button",3),ra("focus",function(){return e._closeButtonFocused=!0})("blur",function(){return e._closeButtonFocused=!1})("click",function(){return e.datepicker.close()}),Na(4),Xo(),Xo()),2&t&&(Sa("mat-datepicker-content-container-with-actions",e._actionsPortal),dr(1),qo("id",e.datepicker.id)("ngClass",e.datepicker.panelClass)("startAt",e.datepicker.startAt)("startView",e.datepicker.startView)("minDate",e.datepicker._getMinDate())("maxDate",e.datepicker._getMaxDate())("dateFilter",e.datepicker._getDateFilter())("headerComponent",e.datepicker.calendarHeaderComponent)("selected",e._getSelected())("dateClass",e.datepicker.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("@fadeInCalendar","enter"),dr(1),qo("cdkPortalOutlet",e._actionsPortal),dr(1),Sa("cdk-visually-hidden",!e._closeButtonFocused),qo("color",e.color||"primary"),dr(1),Va(e._closeButtonText))},directives:[dv,qE,Qd,TS,TA],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;overflow:auto;margin:-24px}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],encapsulation:2,data:{animation:[YE.transformPanel,YE.fadeInCalendar]},changeDetection:0}),t})(),eT=(()=>{class t{constructor(t,e,i,n,s,r,o,a,l){this._dialog=t,this._overlay=e,this._ngZone=i,this._viewContainerRef=n,this._dateAdapter=r,this._dir=o,this._document=a,this._model=l,this._inputStateChanges=d.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new kc,this.monthSelected=new kc,this.viewChanged=new kc(!0),this.openedStream=new kc,this.closedStream=new kc,this._opened=!1,this.id="mat-datepicker-"+QE++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new k,this._scrollStrategy=s}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(t){this._color=t}get touchUi(){return this._touchUi}set touchUi(t){this._touchUi=wg(t)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(t){const e=wg(t);e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(t){this._restoreFocus=wg(t)}get panelClass(){return this._panelClass}set panelClass(t){this._panelClass=Og(t)}get opened(){return this._opened}set opened(t){wg(t)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(t){const e=t.xPosition||t.yPosition;e&&!e.firstChange&&this._popupRef&&(this._setConnectedPositions(this._popupRef.getConfig().positionStrategy),this.opened&&this._popupRef.updatePosition()),this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyPopup(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(t){this._model.add(t)}_selectYear(t){this.yearSelected.emit(t)}_selectMonth(t){this.monthSelected.emit(t)}_viewChanged(t){this.viewChanged.emit(t)}registerInput(t){return this._inputStateChanges.unsubscribe(),this.datepickerInput=t,this._inputStateChanges=t.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(t){this._actionsPortal=t}removeActions(t){t===this._actionsPortal&&(this._actionsPortal=null)}open(){this._opened||this.disabled||(this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this.touchUi?this._openAsDialog():this._openAsPopup(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._popupComponentRef&&this._popupRef){const t=this._popupComponentRef.instance;t._startExitAnimation(),t._animationDone.pipe(Tf(1)).subscribe(()=>this._destroyPopup())}this._dialogRef&&(this._dialogRef.close(),this._dialogRef=null);const t=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(t)):t()}_applyPendingSelection(){var t,e;const i=(null===(t=this._popupComponentRef)||void 0===t?void 0:t.instance)||(null===(e=this._dialogRef)||void 0===e?void 0:e.componentInstance);null==i||i._applyPendingSelection()}_openAsDialog(){this._dialogRef&&this._dialogRef.close(),this._dialogRef=this._dialog.open(tT,{direction:this._dir?this._dir.value:"ltr",viewContainerRef:this._viewContainerRef,panelClass:"mat-datepicker-dialog",hasBackdrop:!0,disableClose:!1,backdropClass:["cdk-overlay-dark-backdrop",this._backdropHarnessClass],width:"",height:"",minWidth:"",minHeight:"",maxWidth:"80vw",maxHeight:"",position:{},autoFocus:!1,restoreFocus:!1}),this._dialogRef.afterClosed().subscribe(()=>this.close()),this._forwardContentValues(this._dialogRef.componentInstance)}_openAsPopup(){const t=new xS(tT,this._viewContainerRef);this._destroyPopup(),this._createPopup(),this._popupComponentRef=this._popupRef.attach(t),this._forwardContentValues(this._popupComponentRef.instance),this._ngZone.onStable.pipe(Tf(1)).subscribe(()=>{this._popupRef.updatePosition()})}_forwardContentValues(t){t.datepicker=this,t.color=this.color,t._actionsPortal=this._actionsPortal}_createPopup(){const t=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition(),e=new zS({positionStrategy:this._setConnectedPositions(t),hasBackdrop:!0,backdropClass:["mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:this._scrollStrategy(),panelClass:"mat-datepicker-popup"});this._popupRef=this._overlay.create(e),this._popupRef.overlayElement.setAttribute("role","dialog"),Y(this._popupRef.backdropClick(),this._popupRef.detachments(),this._popupRef.keydownEvents().pipe(Mm(t=>27===t.keyCode&&!My(t)||this.datepickerInput&&My(t,"altKey")&&38===t.keyCode))).subscribe(t=>{t&&t.preventDefault(),this.close()})}_destroyPopup(){this._popupRef&&(this._popupRef.dispose(),this._popupRef=this._popupComponentRef=null)}_setConnectedPositions(t){const e="end"===this.xPosition?"end":"start",i="start"===e?"end":"start",n="above"===this.yPosition?"bottom":"top",s="top"===n?"bottom":"top";return t.withPositions([{originX:e,originY:s,overlayX:e,overlayY:n},{originX:e,originY:n,overlayX:e,overlayY:s},{originX:i,originY:s,overlayX:i,overlayY:n},{originX:i,originY:n,overlayX:i,overlayY:s}])}}return t.\u0275fac=function(e){return new(e||t)($o(jO),$o(rk),$o(mu),$o(Kl),$o(XE),$o(fx,8),$o(Xg,8),$o(qu,8),$o(LE))},t.\u0275dir=ie({type:t,inputs:{startView:"startView",xPosition:"xPosition",yPosition:"yPosition",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",restoreFocus:"restoreFocus",panelClass:"panelClass",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[me]}),t})(),iT=(()=>{class t extends eT{}return t.\u0275fac=function(e){return nT(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[rl([NE,{provide:eT,useExisting:t}]),Oo],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),t})();const nT=Qi(iT);class sT{constructor(t,e){this.target=t,this.targetElement=e,this.value=this.target.value}}let rT=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._dateAdapter=e,this._dateFormats=i,this.dateChange=new kc,this.dateInput=new kc,this.stateChanges=new k,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=d.EMPTY,this._localeSubscription=d.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value));return!e||this._matchesFilter(e)?null:{matDatepickerFilter:!0}},this._minValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value)),i=this._getMinDate();return!i||!e||this._dateAdapter.compareDate(i,e)<=0?null:{matDatepickerMin:{min:i,actual:e}}},this._maxValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value)),i=this._getMaxDate();return!i||!e||this._dateAdapter.compareDate(i,e)>=0?null:{matDatepickerMax:{max:i,actual:e}}},this._lastValueValid=!1,this._localeSubscription=e.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(t){this._assignValueProgrammatically(t)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(t){const e=wg(t),i=this._elementRef.nativeElement;this._disabled!==e&&(this._disabled=e,this.stateChanges.next(void 0)),e&&this._isInitialized&&i.blur&&i.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(t){this._model=t,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(t=>{if(this._shouldHandleChangeEvent(t)){const e=this._getValueFromModel(t.selection);this._lastValueValid=this._isValidValue(e),this._cvaOnChange(e),this._onTouched(),this._formatValue(e),this.dateInput.emit(new sT(this,this._elementRef.nativeElement)),this.dateChange.emit(new sT(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(t){(function(t,e){const i=Object.keys(t);for(let n of i){const{previousValue:i,currentValue:s}=t[n];if(!e.isDateInstance(i)||!e.isDateInstance(s))return!0;if(!e.sameDate(i,s))return!0}return!1})(t,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(t){this._validatorOnChange=t}validate(t){return this._validator?this._validator(t):null}writeValue(t){this._assignValueProgrammatically(t)}registerOnChange(t){this._cvaOnChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_onKeydown(t){t.altKey&&40===t.keyCode&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),t.preventDefault())}_onInput(t){const e=this._lastValueValid;let i=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(i),i=this._dateAdapter.getValidDateOrNull(i),this._dateAdapter.sameDate(i,this.value)?(t&&!this.value&&this._cvaOnChange(i),e!==this._lastValueValid&&this._validatorOnChange()):(this._assignValue(i),this._cvaOnChange(i),this.dateInput.emit(new sT(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new sT(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(t){this._elementRef.nativeElement.value=t?this._dateAdapter.format(t,this._dateFormats.display.dateInput):""}_assignValue(t){this._model?(this._assignValueToModel(t),this._pendingValue=null):this._pendingValue=t}_isValidValue(t){return!t||this._dateAdapter.isValid(t)}_parentDisabled(){return!1}_assignValueProgrammatically(t){t=this._dateAdapter.deserialize(t),this._lastValueValid=this._isValidValue(t),t=this._dateAdapter.getValidDateOrNull(t),this._assignValue(t),this._formatValue(t)}_matchesFilter(t){const e=this._getDateFilter();return!e||e(t)}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(fx,8),$o(gx,8))},t.\u0275dir=ie({type:t,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[me]}),t})();const oT={provide:mb,useExisting:ut(()=>lT),multi:!0},aT={provide:vb,useExisting:ut(()=>lT),multi:!0};let lT=(()=>{class t extends rT{constructor(t,e,i,n){super(t,e,i),this._formField=n,this._closedSubscription=d.EMPTY,this._validator=xb.compose(super._getValidators())}set matDatepicker(t){t&&(this._datepicker=t,this._closedSubscription=t.closedStream.subscribe(()=>this._onTouched()),this._registerModel(t.registerInput(this)))}get min(){return this._min}set min(t){const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(e,this._min)||(this._min=e,this._validatorOnChange())}get max(){return this._max}set max(t){const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(e,this._max)||(this._max=e,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(t){const e=this._matchesFilter(this.value);this._dateFilter=t,this._matchesFilter(this.value)!==e&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(t){return t}_assignValueToModel(t){this._model&&this._model.updateSelection(t,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(t){return t.source!==this}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(fx,8),$o(gx,8),$o(qk,8))},t.\u0275dir=ie({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(t,e){1&t&&ra("input",function(t){return e._onInput(t.target.value)})("change",function(){return e._onChange()})("blur",function(){return e._onBlur()})("keydown",function(t){return e._onKeydown(t)}),2&t&&(Ua("disabled",e.disabled),zo("aria-haspopup",e._datepicker?"dialog":null)("aria-owns",(null==e._datepicker?null:e._datepicker.opened)&&e._datepicker.id||null)("min",e.min?e._dateAdapter.toIso8601(e.min):null)("max",e.max?e._dateAdapter.toIso8601(e.max):null)("data-mat-calendar",e._datepicker?e._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[rl([oT,aT,{provide:sE,useExisting:t}]),Oo]}),t})(),cT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ie({type:t,selectors:[["","matDatepickerToggleIcon",""]]}),t})(),uT=(()=>{class t{constructor(t,e,i){this._intl=t,this._changeDetectorRef=e,this._stateChanges=d.EMPTY;const n=Number(i);this.tabIndex=n||0===n?n:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(t){this._disabled=wg(t)}ngOnChanges(t){t.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(t){this.datepicker&&!this.disabled&&(this.datepicker.open(),t.stopPropagation())}_watchStateChanges(){const t=this.datepicker?this.datepicker.stateChanges:Sp(),e=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:Sp(),i=this.datepicker?Y(this.datepicker.openedStream,this.datepicker.closedStream):Sp();this._stateChanges.unsubscribe(),this._stateChanges=Y(this._intl.changes,t,e,i).subscribe(()=>this._changeDetectorRef.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)($o(OE),$o(Vl),Ki("tabindex"))},t.\u0275cmp=Xt({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(t,e,i){if(1&t&&Bc(i,cT,1),2&t){let t;Nc(t=Hc())&&(e._customIcon=t.first)}},viewQuery:function(t,e){if(1&t&&Vc(xE,1),2&t){let t;Nc(t=Hc())&&(e._button=t.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(t,e){1&t&&ra("click",function(t){return e._open(t)}),2&t&&(zo("tabindex",null)("data-mat-calendar",e.datepicker?e.datepicker.id:null),Sa("mat-datepicker-toggle-active",e.datepicker&&e.datepicker.opened)("mat-accent",e.datepicker&&"accent"===e.datepicker.color)("mat-warn",e.datepicker&&"warn"===e.datepicker.color))},inputs:{tabIndex:"tabIndex",disabled:"disabled",datepicker:["for","datepicker"],ariaLabel:["aria-label","ariaLabel"],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[me],ngContentSelectors:AE,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(t,e){1&t&&(ha(kE),Qo(0,"button",0,1),jo(2,SE,2,0,"svg",2),pa(3),Xo()),2&t&&(qo("disabled",e.disabled)("disableRipple",e.disableRipple),zo("aria-haspopup",e.datepicker?"dialog":null)("aria-label",e.ariaLabel||e._intl.openCalendarLabel)("tabindex",e.disabled?-1:e.tabIndex),dr(2),qo("ngIf",!e._customIcon))},directives:[TA,Jd],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),dT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:[OE,KE],imports:[[yh,DA,KO,dk,Sv,PS,ax],vS]}),t})();const hT=new en("CdkAccordion");let pT=0,mT=(()=>{class t{constructor(t,e,i){this.accordion=t,this._changeDetectorRef=e,this._expansionDispatcher=i,this._openCloseAllSubscription=d.EMPTY,this.closed=new kc,this.opened=new kc,this.destroyed=new kc,this.expandedChange=new kc,this.id="cdk-accordion-child-"+pT++,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=wg(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=wg(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)($o(hT,12),$o(Vl),$o(fS))},t.\u0275dir=ie({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[rl([{provide:hT,useValue:void 0}])]}),t})(),fT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({}),t})();const gT=["body"];function _T(t,e){}const bT=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],yT=["mat-expansion-panel-header","*","mat-action-row"];function vT(t,e){1&t&&Ko(0,"span",2),2&t&&qo("@indicatorRotate",ua()._getExpandedState())}const wT=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],CT=["mat-panel-title","mat-panel-description","*"],xT=new en("MAT_ACCORDION"),ST={indicatorRotate:Ov("indicatorRotate",[Mv("collapsed, void",Dv({transform:"rotate(0deg)"})),Mv("expanded",Dv({transform:"rotate(180deg)"})),Rv("expanded <=> collapsed, void => collapsed",Ev("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),bodyExpansion:Ov("bodyExpansion",[Mv("collapsed, void",Dv({height:"0px",visibility:"hidden"})),Mv("expanded",Dv({height:"*",visibility:"visible"})),Rv("expanded <=> collapsed, void => collapsed",Ev("225ms cubic-bezier(0.4,0.0,0.2,1)"))])};let kT=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)($o(jl))},t.\u0275dir=ie({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),AT=0;const OT=new en("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let ET=(()=>{class t extends mT{constructor(t,e,i,n,s,r,o){super(t,e,i),this._viewContainerRef=n,this._animationMode=r,this._hideToggle=!1,this.afterExpand=new kc,this.afterCollapse=new kc,this._inputChanges=new k,this._headerId="mat-expansion-panel-header-"+AT++,this._bodyAnimationDone=new k,this.accordion=t,this._document=s,this._bodyAnimationDone.pipe(Np((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=wg(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(jp(null),Mm(()=>this.expanded&&!this._portal),Tf(1)).subscribe(()=>{this._portal=new SS(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)($o(xT,12),$o(Vl),$o(fS),$o(Kl),$o(qu),$o(QC,8),$o(OT,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,i){if(1&t&&Bc(i,kT,1),2&t){let t;Nc(t=Hc())&&(e._lazyContent=t.first)}},viewQuery:function(t,e){if(1&t&&Vc(gT,1),2&t){let t;Nc(t=Hc())&&(e._body=t.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&Sa("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:[rl([{provide:xT,useValue:void 0}]),Oo,me],ngContentSelectors:yT,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&&(ha(bT),pa(0),Qo(1,"div",0,1),ra("@bodyExpansion.done",function(t){return e._bodyAnimationDone.next(t)}),Qo(3,"div",2),pa(4,1),jo(5,_T,0,0,"ng-template",3),Xo(),pa(6,2),Xo()),2&t&&(dr(1),qo("@bodyExpansion",e._getExpandedState())("id",e.id),zo("aria-labelledby",e._headerId),dr(4),qo("cdkPortalOutlet",e._portal))},directives:[TS],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);position:relative}.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:[ST.bodyExpansion]},changeDetection:0}),t})(),TT=(()=>{class t{constructor(t,e,i,n,s,r){this.panel=t,this._element=e,this._focusMonitor=i,this._changeDetectorRef=n,this._animationMode=r,this._parentChangeSubscription=d.EMPTY;const o=t.accordion?t.accordion._stateChanges.pipe(Mm(t=>!(!t.hideToggle&&!t.togglePosition))):Cp;this._parentChangeSubscription=Y(t.opened,t.closed,o,t._inputChanges.pipe(Mm(t=>!!(t.hideToggle||t.disabled||t.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),t.closed.pipe(Mm(()=>t._containsFocus())).subscribe(()=>i.focusVia(e,"program")),s&&(this.expandedHeight=s.expandedHeight,this.collapsedHeight=s.collapsedHeight)}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}_getHeaderHeight(){const t=this._isExpanded();return t&&this.expandedHeight?this.expandedHeight:!t&&this.collapsedHeight?this.collapsedHeight:null}_keydown(t){switch(t.keyCode){case 32:case 13:My(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}focus(t,e){t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(t=>{t&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return t.\u0275fac=function(e){return new(e||t)($o(ET,1),$o(hl),$o(vv),$o(Vl),$o(OT,8),$o(QC,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&ra("click",function(){return e._toggle()})("keydown",function(t){return e._keydown(t)}),2&t&&(zo("id",e.panel._headerId)("tabindex",e.disabled?-1:0)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),xa("height",e._getHeaderHeight()),Sa("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:CT,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(ha(wT),Qo(0,"span",0),pa(1),pa(2,1),pa(3,2),Xo(),jo(4,vT,1,1,"span",1)),2&t&&(dr(4),qo("ngIf",e._showToggle()))},directives:[Jd],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.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}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}\n'],encapsulation:2,data:{animation:[ST.indicatorRotate]},changeDetection:0}),t})(),PT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[yh,ax,fT,PS]]}),t})(),DT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[Px,ax],Px,ax]}),t})();function MT(t){return function(e){const i=new IT(t),n=e.lift(i);return i.caught=n}}class IT{constructor(t){this.selector=t}call(t,e){return e.subscribe(new RT(t,this.selector,this.caught))}}class RT extends H{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 B(this);this.add(n);const s=z(i,n);s!==n&&this.add(s)}}}function LT(t){return e=>e.lift(new FT(t))}class FT{constructor(t){this.callback=t}call(t,e){return e.subscribe(new NT(t,this.callback))}}class NT extends m{constructor(t,e){super(t),this.add(new d(e))}}const VT=["*"];function BT(t){return Error(`Unable to find icon with the name "${t}"`)}function HT(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function zT(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class GT{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let UT=(()=>{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._resolvers=[],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 GT(i,null,n))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,e,i,n){const s=this._sanitizer.sanitize(hs.HTML,i);if(!s)throw zT(i);return this._addSvgIconConfig(t,e,new GT("",s,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 GT(e,null,i))}addSvgIconSetLiteralInNamespace(t,e,i){const n=this._sanitizer.sanitize(hs.HTML,e);if(!n)throw zT(e);return this._addSvgIconSetConfig(t,new GT("",n,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(hs.RESOURCE_URL,t);if(!e)throw HT(t);const i=this._cachedIconsByUrl.get(e);return i?Sp(jT(i)):this._loadSvgIconFromConfig(new GT(t,null)).pipe(If(t=>this._cachedIconsByUrl.set(e,t)),E(t=>jT(t)))}getNamedSvgIcon(t,e=""){const i=WT(e,t);let n=this._svgIconConfigs.get(i);if(n)return this._getSvgFromConfig(n);if(n=this._getIconConfigFromResolvers(e,t),n)return this._svgIconConfigs.set(i,n),this._getSvgFromConfig(n);const s=this._iconSetConfigs.get(e);return s?this._getSvgFromIconSetConfigs(t,s):kp(BT(i))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?Sp(jT(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(E(t=>jT(t)))}_getSvgFromIconSetConfigs(t,e){const i=this._extractIconWithNameFromAnySet(t,e);return i?Sp(i):db(e.filter(t=>!t.svgText).map(t=>this._loadSvgIconSetFromConfig(t).pipe(MT(e=>{const i=this._sanitizer.sanitize(hs.RESOURCE_URL,t.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${i} failed: ${e.message}`)),Sp(null)})))).pipe(E(()=>{const i=this._extractIconWithNameFromAnySet(t,e);if(!i)throw BT(t);return i}))}_extractIconWithNameFromAnySet(t,e){for(let i=e.length-1;i>=0;i--){const n=e[i];if(n.svgText&&n.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(n),i=this._extractSvgIconFromSet(e,t,n.options);if(i)return i}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(If(e=>t.svgText=e),E(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?Sp(null):this._fetchIcon(t).pipe(If(e=>t.svgText=e))}_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 r=this._svgElementFromString("");return r.appendChild(s),this._setSvgAttributes(r,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(r)),st());return this._inProgressUrlFetches.set(r,a),a}_addSvgIconConfig(t,e,i){return this._svgIconConfigs.set(WT(t,e),i),this}_addSvgIconSetConfig(t,e){const i=this._iconSetConfigs.get(t);return i?i.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){const e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}_getIconConfigFromResolvers(t,e){for(let n=0;ne?e.pathname+e.search:""}}}),XT=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],KT=XT.map(t=>`[${t}]`).join(", "),ZT=/^url\(['"]?#(.*?)['"]?\)$/;let JT=(()=>{class t extends qT{constructor(t,e,i,n,s){super(t),this._iconRegistry=e,this._location=n,this._errorHandler=s,this._inline=!1,this._currentIconFetch=d.EMPTY,i||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=wg(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const e=this._cleanupFontValue(t);e!==this._fontSet&&(this._fontSet=e,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const e=this._cleanupFontValue(t);e!==this._fontIcon&&(this._fontIcon=e,this._updateFontIconClasses())}_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}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let n=0;n{e.forEach(e=>{i.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(KT),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let n=0;n{const s=e[n],r=s.getAttribute(t),o=r?r.match(ZT):null;if(o){let e=i.get(s);e||(e=[],i.set(s,e)),e.push({name:t,value:o[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[e,i]=this._splitIconName(t);e&&(this._svgNamespace=e),i&&(this._svgName=i),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(i,e).pipe(Tf(1)).subscribe(t=>this._setSvgElement(t),t=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${e}:${i}! ${t.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(UT),Ki("aria-hidden"),$o(QT),$o(vs))},t.\u0275cmp=Xt({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(zo("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),Sa("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[Oo],ngContentSelectors:VT,decls:1,vars:0,template:function(t,e){1&t&&(ha(),pa(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})(),tP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[ax],ax]}),t})(),eP=(()=>{class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(t){this._vertical=wg(t)}get inset(){return this._inset}set inset(t){this._inset=wg(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(zo("aria-orientation",e.vertical?"vertical":"horizontal"),Sa("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})(),iP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[ax],ax]}),t})();const nP=["*"],sP='.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}.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;flex:auto;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}.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;flex:auto;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-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.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}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-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',rP=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],oP=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"];class aP{}const lP=lx(ux(aP));class cP{}const uP=ux(cP),dP=new en("MatList"),hP=new en("MatNavList");let pP=(()=>{class t extends lP{constructor(){super(...arguments),this._stateChanges=new k}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return mP(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[rl([{provide:hP,useExisting:t}]),Oo,me],ngContentSelectors:nP,decls:1,vars:0,template:function(t,e){1&t&&(ha(),pa(0))},styles:[sP],encapsulation:2,changeDetection:0}),t})();const mP=Qi(pP);let fP=(()=>{class t extends lP{constructor(t){super(),this._elementRef=t,this._stateChanges=new k,"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)($o(hl))},t.\u0275cmp=Xt({type:t,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[rl([{provide:dP,useExisting:t}]),Oo,me],ngContentSelectors:nP,decls:1,vars:0,template:function(t,e){1&t&&(ha(),pa(0))},styles:[sP],encapsulation:2,changeDetection:0}),t})(),gP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ie({type:t,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),t})(),_P=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ie({type:t,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),t})(),bP=(()=>{class t extends uP{constructor(t,e,i,n){super(),this._element=t,this._isInteractiveList=!1,this._destroyed=new k,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(Hp(this._destroyed)).subscribe(()=>{e.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(t){this._disabled=wg(t)}ngAfterContentInit(){!function(t,e,i="mat"){t.changes.pipe(jp(t)).subscribe(({length:t})=>{Tx(e,`${i}-2-line`,!1),Tx(e,`${i}-3-line`,!1),Tx(e,`${i}-multi-line`,!1),2===t||3===t?Tx(e,`${i}-${t}-line`,!0):t>3&&Tx(e,`${i}-multi-line`,!0)})}(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)($o(hl),$o(Vl),$o(hP,8),$o(dP,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,i){if(1&t&&(Bc(i,gP,1),Bc(i,_P,1),Bc(i,Ex,1)),2&t){let t;Nc(t=Hc())&&(e._avatar=t.first),Nc(t=Hc())&&(e._icon=t.first),Nc(t=Hc())&&(e._lines=t)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&Sa("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:[Oo],ngContentSelectors:oP,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&&(ha(rP),Qo(0,"div",0),Ko(1,"div",1),pa(2),Qo(3,"div",2),pa(4,1),Xo(),pa(5,2),Xo()),2&t&&(dr(1),qo("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[Vx],encapsulation:2,changeDetection:0}),t})(),yP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[Px,Bx,ax,zx,yh],Px,ax,zx,iP]}),t})();const vP=["mat-menu-item",""],wP=["*"];function CP(t,e){if(1&t){const t=ea();Qo(0,"div",0),ra("keydown",function(e){return Be(t),ua()._handleKeydown(e)})("click",function(){return Be(t),ua().closed.emit("click")})("@transformMenu.start",function(e){return Be(t),ua()._onAnimationStart(e)})("@transformMenu.done",function(e){return Be(t),ua()._onAnimationDone(e)}),Qo(1,"div",1),pa(2),Xo(),Xo()}if(2&t){const t=ua();qo("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),zo("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const xP={transformMenu:Ov("transformMenu",[Mv("void",Dv({opacity:0,transform:"scale(0.8)"})),Rv("void => enter",Ev("120ms cubic-bezier(0, 0, 0.2, 1)",Dv({opacity:1,transform:"scale(1)"}))),Rv("* => void",Ev("100ms 25ms linear",Dv({opacity:0})))]),fadeInItems:Ov("fadeInItems",[Mv("showing",Dv({opacity:1})),Rv("void => *",[Dv({opacity:0}),Ev("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},SP=new en("MatMenuContent"),kP=new en("MAT_MENU_PANEL");class AP{}const OP=ux(lx(AP));let EP=(()=>{class t extends OP{constructor(t,e,i,n){super(),this._elementRef=t,this._focusMonitor=i,this._parentMenu=n,this.role="menuitem",this._hovered=new k,this._focused=new k,this._highlighted=!1,this._triggersSubmenu=!1,n&&n.addItem&&n.addItem(this)}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}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(){var t,e;const i=this._elementRef.nativeElement.cloneNode(!0),n=i.querySelectorAll("mat-icon, .material-icons");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 Oc,this._tabSubscription=d.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new k,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new kc,this.close=this.closed,this.panelId="mat-menu-panel-"+PP++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=wg(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=wg(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 rv(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(jp(this._directDescendantItems),Rp(t=>Y(...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(jp(this._directDescendantItems),Rp(t=>Y(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,i=this._keyManager;switch(e){case 27:My(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;default:38!==e&&40!==e||i.setFocusOrigin("keyboard"),i.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.pipe(Tf(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(jp(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)($o(hl),$o(mu),$o(TP))},t.\u0275dir=ie({type:t,contentQueries:function(t,e,i){if(1&t&&(Bc(i,SP,1),Bc(i,EP,1),Bc(i,EP,0)),2&t){let t;Nc(t=Hc())&&(e.lazyContent=t.first),Nc(t=Hc())&&(e._allItems=t),Nc(t=Hc())&&(e.items=t)}},viewQuery:function(t,e){if(1&t&&Vc(jl,1),2&t){let t;Nc(t=Hc())&&(e.templateRef=t.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})(),MP=(()=>{class t extends DP{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(mu),$o(TP))},t.\u0275cmp=Xt({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,e){2&t&&zo("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[rl([{provide:kP,useExisting:t}]),Oo],ngContentSelectors:wP,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&&(ha(),jo(0,CP,3,6,"ng-template"))},directives:[Qd],styles:['mat-menu{display:none}.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{margin-top:1px}.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:[xP.transformMenu,xP.fadeInItems]},changeDetection:0}),t})();const IP=new en("mat-menu-scroll-strategy"),RP={provide:IP,deps:[rk],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},LP=Gy({passive:!0});let FP=(()=>{class t{constructor(t,e,i,n,s,r,o,a){this._overlay=t,this._element=e,this._viewContainerRef=i,this._menuItemInstance=r,this._dir=o,this._focusMonitor=a,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=d.EMPTY,this._hoverSubscription=d.EMPTY,this._menuCloseSubscription=d.EMPTY,this._handleTouchStart=t=>{_v(t)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new kc,this.onMenuOpen=this.menuOpened,this.menuClosed=new kc,this.onMenuClose=this.menuClosed,this._scrollStrategy=n,this._parentMaterialMenu=s instanceof DP?s:void 0,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,LP),r&&(r._triggersSubmenu=this.triggersSubmenu())}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.subscribe(t=>{this._destroyMenu(t),"click"!==t&&"tab"!==t||!this._parentMaterialMenu||this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,LP),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._parentMaterialMenu)}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 DP&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}_destroyMenu(t){if(!this._overlayRef||!this.menuOpen)return;const e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==t&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,e instanceof DP?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe(Mm(t=>"void"===t.toState),Tf(1),Hp(e.lazyContent._attached)).subscribe({next:()=>e.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),e.lazyContent&&e.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}_checkMenu(){}_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 zS({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,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"],[r,o]=[n,s],[a,l]=[e,i],c=0;this.triggersSubmenu()?(l=e="before"===this.menu.xPosition?"start":"end",i=a="end"===e?"start":"end",c="bottom"===n?8:-8):this.menu.overlapTrigger||(r="top"===n?"bottom":"top",o="top"===s?"bottom":"top"),t.withPositions([{originX:e,originY:r,overlayX:a,overlayY:n,offsetY:c},{originX:i,originY:r,overlayX:l,overlayY:n,offsetY:c},{originX:e,originY:o,overlayX:a,overlayY:s,offsetY:-c},{originX:i,originY:o,overlayX:l,overlayY:s,offsetY:-c}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments();return Y(t,this._parentMaterialMenu?this._parentMaterialMenu.closed:Sp(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Mm(t=>t!==this._menuItemInstance),Mm(()=>this._menuOpen)):Sp(),e)}_handleMousedown(t){gv(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;13!==e&&32!==e||(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===e&&"ltr"===this.dir||37===e&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Mm(t=>t===this._menuItemInstance&&!t.disabled),Xk(0,wf)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof DP&&this.menu._isAnimating?this.menu._animationDone.pipe(Tf(1),Xk(0,wf),Hp(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new SS(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)($o(rk),$o(hl),$o(Kl),$o(IP),$o(kP,8),$o(EP,10),$o(Xg,8),$o(vv))},t.\u0275dir=ie({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&ra("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&zo("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})(),NP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:[RP],imports:[ax]}),t})(),VP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:[RP],imports:[[yh,ax,Bx,dk,NP],vS,ax,NP]}),t})();const BP=["trigger"],HP=["panel"];function zP(t,e){if(1&t&&(Qo(0,"span",8),Na(1),Xo()),2&t){const t=ua();dr(1),Va(t.placeholder)}}function GP(t,e){if(1&t&&(Qo(0,"span",12),Na(1),Xo()),2&t){const t=ua(2);dr(1),Va(t.triggerValue)}}function UP(t,e){1&t&&pa(0,0,["*ngSwitchCase","true"])}function jP(t,e){1&t&&(Qo(0,"span",9),jo(1,GP,2,1,"span",10),jo(2,UP,1,0,"ng-content",11),Xo()),2&t&&(qo("ngSwitch",!!ua().customTrigger),dr(2),qo("ngSwitchCase",!0))}function WP(t,e){if(1&t){const t=ea();Qo(0,"div",13),Qo(1,"div",14,15),ra("@transformPanel.done",function(e){return Be(t),ua()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return Be(t),ua()._handleKeydown(e)}),pa(3,1),Xo(),Xo()}if(2&t){const t=ua();qo("@transformPanelWrap",void 0),dr(1),Ga("mat-select-panel ",t._getPanelTheme(),""),xa("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),qo("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing"),zo("id",t.id+"-panel")("aria-multiselectable",t.multiple)("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby())}}const $P=[[["mat-select-trigger"]],"*"],qP=["mat-select-trigger","*"],YP={transformPanelWrap:Ov("transformPanelWrap",[Rv("* => void",Fv("@transformPanel",[Lv()],{optional:!0}))]),transformPanel:Ov("transformPanel",[Mv("void",Dv({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Mv("showing",Dv({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Mv("showing-multiple",Dv({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Rv("void => *",Ev("120ms cubic-bezier(0, 0, 0.2, 1)")),Rv("* => void",Ev("100ms 25ms linear",Dv({opacity:0})))])};let QP=0;const XP=new en("mat-select-scroll-strategy"),KP=new en("MAT_SELECT_CONFIG"),ZP={provide:XP,deps:[rk],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class JP{constructor(t,e){this.source=t,this.value=e}}class tD{constructor(t,e,i,n,s){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=i,this._parentFormGroup=n,this.ngControl=s}}const eD=ux(dx(lx(hx(tD)))),iD=new en("MatSelectTrigger");let nD=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ie({type:t,selectors:[["mat-select-trigger"]],features:[rl([{provide:iD,useExisting:t}])]}),t})(),sD=(()=>{class t extends eD{constructor(t,e,i,n,s,r,o,a,l,c,u,d,h,p){var m,f,g;super(s,n,o,a,c),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=i,this._dir=r,this._parentFormField=l,this.ngControl=c,this._liveAnnouncer=h,this._defaultOptions=p,this._panelOpen=!1,this._compareWith=(t,e)=>t===e,this._uid="mat-select-"+QP++,this._triggerAriaLabelledBy=null,this._destroy=new k,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+QP++,this._panelDoneAnimatingStream=new k,this._overlayPanelClass=(null===(m=this._defaultOptions)||void 0===m?void 0:m.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(g=null===(f=this._defaultOptions)||void 0===f?void 0:f.disableOptionCentering)&&void 0!==g&&g,this.ariaLabel="",this.optionSelectionChanges=nS(()=>{const t=this.options;return t?t.changes.pipe(jp(t),Rp(()=>Y(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.pipe(Tf(1),Rp(()=>this.optionSelectionChanges))}),this.openedChange=new kc,this._openedStream=this.openedChange.pipe(Mm(t=>t),E(()=>{})),this._closedStream=this.openedChange.pipe(Mm(t=>!t),E(()=>{})),this.selectionChange=new kc,this.valueChange=new kc,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==p?void 0:p.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=p.typeaheadDebounceInterval),this._scrollStrategyFactory=d,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(u)||0,this.id=this.id}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=wg(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._multiple=wg(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=wg(t)}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){(t!==this._value||this._multiple&&Array.isArray(t))&&(this.options&&this._setSelectionByValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=Cg(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new mS(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Np(),Hp(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Hp(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(jp(null),Hp(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const t=this._getTriggerAriaLabelledby();if(t!==this._triggerAriaLabelledBy){const e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?e.setAttribute("aria-labelledby",t):e.removeAttribute("aria-labelledby")}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._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(t){this.value=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&&!My(t)||(this.multiple||t.altKey)&&i)t.preventDefault(),this.open();else if(!this.multiple){const e=this.selected;s.onKeydown(t);const i=this.selected;i&&e!==i&&this._liveAnnouncer.announce(i.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,i=t.keyCode,n=40===i||38===i,s=e.isTyping();if(n&&t.altKey)t.preventDefault(),this.close();else if(s||13!==i&&32!==i||!e.activeItem||My(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(Tf(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_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._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(t=>this._selectValue(t)),this._sortValues();else{const e=this._selectValue(t);e?this._keyManager.updateActiveItem(e):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(t){const e=this.options.find(e=>{if(this._selectionModel.isSelected(e))return!1;try{return null!=e.value&&this._compareWith(e.value,t)}catch(i){return!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new sv(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Hp(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Hp(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):this._panelOpen||this.multiple||!this._keyManager.activeItem||this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const t=Y(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Hp(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Y(...this.options.map(t=>t._stateChanges)).pipe(Hp(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_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(),null!=this.value&&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(this._getChangeEvent(e)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var t;return!this._panelOpen&&!this.disabled&&(null===(t=this.options)||void 0===t?void 0:t.length)>0}focus(t){this._elementRef.nativeElement.focus(t)}_getPanelAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();let i=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_panelDoneAnimating(t){this.openedChange.emit(t)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return t.\u0275fac=function(e){return new(e||t)($o(yS),$o(Vl),$o(mu),$o(Ox),$o(hl),$o(Xg,8),$o(py,8),$o(ky,8),$o(qk,8),$o(zb,10),Ki("tabindex"),$o(XP),$o(mv),$o(KP,8))},t.\u0275dir=ie({type:t,viewQuery:function(t,e){if(1&t&&(Vc(BP,1),Vc(HP,1),Vc(ck,1)),2&t){let t;Nc(t=Hc())&&(e.trigger=t.first),Nc(t=Hc())&&(e.panel=t.first),Nc(t=Hc())&&(e.overlayDir=t.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[Oo,me]}),t})(),rD=(()=>{class t extends sD{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(t,e,i){const n=this._getItemHeight();return Math.min(Math.max(0,n*t-e+n/2),i)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Hp(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(Tf(1)).subscribe(()=>{this._triggerFontSize&&this.overlayDir.overlayRef&&this.overlayDir.overlayRef.overlayElement&&(this.overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(t){const e=tS(t,this.options,this.optionGroups),i=this._getItemHeight();this.panel.nativeElement.scrollTop=eS((t+e)*i,i,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(t){this.panelOpen?this._scrollTop=0:(this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(t)}_getChangeEvent(t){return new JP(this,t)}_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 if(this.disableOptionCentering)s=16;else{let t=this._selectionModel.selected[0]||this.options.first;s=t&&t.group?32:16}i||(s*=-1);const r=0-(t.left+s-(i?n:0)),o=t.right+s-e.width+(i?0:n);r>0?s+=r+8:o>0&&(s-=o+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,r=Math.floor(256/n);let o;return this.disableOptionCentering?0:(o=0===this._scrollTop?t*n:this._scrollTop===i?(t-(this._getItemCount()-r))*n+(n-(this._getItemCount()*n-256)%n):e-n/2,Math.round(-1*o-s))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),i=this._viewportRuler.getViewportSize(),n=this._triggerRect.top-8,s=i.height-this._triggerRect.bottom-8,r=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,256)-r-this._triggerRect.height;o>s?this._adjustPanelUp(o,s):r>n?this._adjustPanelDown(r,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")}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),i=Math.min(e*t,256),n=e*t-i;let s;s=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),s+=tS(s,this.options,this.optionGroups);const r=i/2;this._scrollTop=this._calculateOverlayScroll(s,r,n),this._offsetY=this._calculateOverlayOffsetY(s,r,n),this._checkOverlayWithinViewport(n)}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return t.\u0275fac=function(e){return oD(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,i){if(1&t&&(Bc(i,iD,1),Bc(i,Jx,1),Bc(i,qx,1)),2&t){let t;Nc(t=Hc())&&(e.customTrigger=t.first),Nc(t=Hc())&&(e.options=t),Nc(t=Hc())&&(e.optionGroups=t)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&ra("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(zo("id",e.id)("tabindex",e.tabIndex)("aria-controls",e.panelOpen?e.id+"-panel":null)("aria-expanded",e.panelOpen)("aria-label",e.ariaLabel||null)("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),Sa("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty)("mat-select-multiple",e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[rl([{provide:Ik,useExisting:t},{provide:Gx,useExisting:t}]),Oo],ngContentSelectors:qP,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",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,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(ha($P),Qo(0,"div",0,1),ra("click",function(){return e.toggle()}),Qo(3,"div",2),jo(4,zP,2,1,"span",3),jo(5,jP,3,2,"span",4),Xo(),Qo(6,"div",5),Ko(7,"div",6),Xo(),Xo(),jo(8,WP,4,14,"ng-template",7),ra("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){const t=Wo(1);zo("aria-owns",e.panelOpen?e.id+"-panel":null),dr(3),qo("ngSwitch",e.empty),zo("id",e._valueId),dr(1),qo("ngSwitchCase",!0),dr(1),qo("ngSwitchCase",!1),dr(3),qo("cdkConnectedOverlayPanelClass",e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[lk,nh,sh,ck,rh,Qd],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;outline:0}.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}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[YP.transformPanelWrap,YP.transformPanel]},changeDetection:0}),t})();const oD=Qi(rD);let aD=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:[ZP],imports:[[yh,dk,iS,ax],vS,Qk,iS,ax]}),t})();class lD extends m{notifyNext(t,e,i,n,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class cD extends m{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function uD(t,e,i,n,s=new cD(t,i,n)){if(!s.closed)return e instanceof v?e.subscribe(s):F(e)(s)}const dD={};function hD(...t){let e,i;return O(t[t.length-1])&&(i=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&l(t[0])&&(t=t[0]),q(t,i).lift(new pD(e))}class pD{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new mD(t,this.resultSelector))}}class mD extends lD{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(dD),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;i{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):bD}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!fD.has(t))try{gD||(gD=document.createElement("style"),gD.setAttribute("type","text/css"),document.head.appendChild(gD)),gD.sheet&&(gD.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),fD.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(wn(Ry))},t.\u0275prov=_t({factory:function(){return new t(wn(Ry))},token:t,providedIn:"root"}),t})();function bD(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let yD=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new k}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return vD(Sg(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){let e=hD(vD(Sg(t)).map(t=>this._registerQuery(t).observable));return e=Up(e.pipe(Tf(1)),e.pipe(Wp(1),Sf(0))),e.pipe(E(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:i})=>{e.matches=e.matches||t,e.breakpoints[i]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),i={observable:new v(t=>{const i=e=>this._zone.run(()=>t.next(e));return e.addListener(i),()=>{e.removeListener(i)}}).pipe(jp(e),E(({matches:e})=>({query:t,matches:e})),Hp(this._destroySubject)),mql:e};return this._queries.set(t,i),i}}return t.\u0275fac=function(e){return new(e||t)(wn(_D),wn(mu))},t.\u0275prov=_t({factory:function(){return new t(wn(_D),wn(mu))},token:t,providedIn:"root"}),t})();function vD(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const wD={tooltipState:Ov("state",[Mv("initial, void, hidden",Dv({opacity:0,transform:"scale(0)"})),Mv("visible",Dv({transform:"scale(1)"})),Rv("* => visible",Ev("200ms cubic-bezier(0, 0, 0.2, 1)",Iv([Dv({opacity:0,transform:"scale(0)",offset:0}),Dv({opacity:.5,transform:"scale(0.99)",offset:.5}),Dv({opacity:1,transform:"scale(1)",offset:1})]))),Rv("* => hidden",Ev("100ms cubic-bezier(0, 0, 0.2, 1)",Dv({opacity:0})))])},CD=Gy({passive:!0}),xD=new en("mat-tooltip-scroll-strategy"),SD={provide:xD,deps:[rk],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},kD=new en("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let AD=(()=>{class t{constructor(t,e,i,n,s,r,o,a,l,c,u,d){this._overlay=t,this._elementRef=e,this._scrollDispatcher=i,this._viewContainerRef=n,this._ngZone=s,this._platform=r,this._ariaDescriber=o,this._focusMonitor=a,this._dir=c,this._defaultOptions=u,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new k,this._handleKeydown=t=>{this._isTooltipVisible()&&27===t.keyCode&&!My(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=l,u&&(u.position&&(this.position=u.position),u.touchGestures&&(this.touchGestures=u.touchGestures)),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=wg(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Hp(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}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(e,i,CD)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),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 xS(OD,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Hp(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(Hp(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(Hp(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;"above"==e||"below"==e?i={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?i={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(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;"above"==e?i={overlayX:"center",overlayY:"bottom"}:"below"==e?i={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?i={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(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.pipe(Tf(1),Hp(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}}_setupPointerEnterEventsIfNeeded(){!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([t,e])=>{this._elementRef.nativeElement.addEventListener(t,e,CD)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const e=(this._document||document).elementFromPoint(t.clientX,t.clientY),i=this._elementRef.nativeElement;e===i||i.contains(e)||this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const e=this._elementRef.nativeElement,i=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(i.userSelect=i.msUserSelect=i.webkitUserSelect=i.MozUserSelect="none"),"on"!==t&&e.draggable||(i.webkitUserDrag="none"),i.touchAction="none",i.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)($o(rk),$o(hl),$o(_S),$o(Kl),$o(mu),$o(Ry),$o(tv),$o(vv),$o(xD),$o(Xg,8),$o(kD,8),$o(qu))},t.\u0275dir=ie({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],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})(),OD=(()=>{class t{constructor(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new k,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) 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}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)($o(Vl),$o(yD))},t.\u0275cmp=Xt({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&ra("click",function(){return e._handleBodyInteraction()},!1,xs)("auxclick",function(){return e._handleBodyInteraction()},!1,xs),2&t&&xa("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(Qo(0,"div",0),ra("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),vc(1,"async"),Na(2),Xo()),2&t){let t=null;Sa("mat-tooltip-handset",null==(t=wc(1,5,e._isHandset))?null:t.matches),qo("ngClass",e.tooltipClass)("@state",e._visibility),dr(2),Va(e.message)}},directives:[Qd],pipes:[ph],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:[wD.tooltipState]},changeDetection:0}),t})(),ED=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:[SD],imports:[[Sv,yh,dk,ax],ax,vS]}),t})();function TD(t,e){if(1&t&&(Qo(0,"mat-option",19),Na(1),Xo()),2&t){const t=e.$implicit;qo("value",t),dr(1),Ba(" ",t," ")}}function PD(t,e){if(1&t){const t=ea();Qo(0,"mat-form-field",16),Qo(1,"mat-select",17),ra("selectionChange",function(e){return Be(t),ua(2)._changePageSize(e.value)}),jo(2,TD,2,2,"mat-option",18),Xo(),Xo()}if(2&t){const t=ua(2);qo("appearance",t._formFieldAppearance)("color",t.color),dr(1),qo("value",t.pageSize)("disabled",t.disabled)("aria-label",t._intl.itemsPerPageLabel),dr(1),qo("ngForOf",t._displayedPageSizeOptions)}}function DD(t,e){if(1&t&&(Qo(0,"div",20),Na(1),Xo()),2&t){const t=ua(2);dr(1),Va(t.pageSize)}}function MD(t,e){if(1&t&&(Qo(0,"div",12),Qo(1,"div",13),Na(2),Xo(),jo(3,PD,3,6,"mat-form-field",14),jo(4,DD,2,1,"div",15),Xo()),2&t){const t=ua();dr(2),Ba(" ",t._intl.itemsPerPageLabel," "),dr(1),qo("ngIf",t._displayedPageSizeOptions.length>1),dr(1),qo("ngIf",t._displayedPageSizeOptions.length<=1)}}function ID(t,e){if(1&t){const t=ea();Qo(0,"button",21),ra("click",function(){return Be(t),ua().firstPage()}),pi(),Qo(1,"svg",7),Ko(2,"path",22),Xo(),Xo()}if(2&t){const t=ua();qo("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),zo("aria-label",t._intl.firstPageLabel)}}function RD(t,e){if(1&t){const t=ea();pi(),mi(),Qo(0,"button",23),ra("click",function(){return Be(t),ua().lastPage()}),pi(),Qo(1,"svg",7),Ko(2,"path",24),Xo(),Xo()}if(2&t){const t=ua();qo("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),zo("aria-label",t._intl.lastPageLabel)}}let LD=(()=>{class t{constructor(){this.changes=new k,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,e,i)=>{if(0==i||0==e)return`0 of ${i}`;const n=t*e;return`${n+1} \u2013 ${n<(i=Math.max(i,0))?Math.min(n+e,i):n+e} of ${i}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({factory:function(){return new t},token:t,providedIn:"root"}),t})();const FD={provide:LD,deps:[[new An,new On,LD]],useFactory:function(t){return t||new LD}},ND=new en("MAT_PAGINATOR_DEFAULT_OPTIONS");class VD{}const BD=lx(px(VD));let HD=(()=>{class t extends BD{constructor(t,e,i){if(super(),this._intl=t,this._changeDetectorRef=e,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new kc,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),i){const{pageSize:t,pageSizeOptions:e,hidePageSize:n,showFirstLastButtons:s}=i;null!=t&&(this._pageSize=t),null!=e&&(this._pageSizeOptions=e),null!=n&&(this._hidePageSize=n),null!=s&&(this._showFirstLastButtons=s)}}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max(Cg(t),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=Cg(t),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max(Cg(t),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(t=>Cg(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(t){this._hidePageSize=wg(t)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(t){this._showFirstLastButtons=wg(t)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}previousPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}firstPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}lastPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const t=this.getNumberOfPages()-1;return this.pageIndext-e),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return t.\u0275fac=function(e){return new(e||t)($o(LD),$o(Vl),$o(void 0))},t.\u0275dir=ie({type:t,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[Oo]}),t})(),zD=(()=>{class t extends HD{constructor(t,e,i){super(t,e,i),i&&null!=i.formFieldAppearance&&(this._formFieldAppearance=i.formFieldAppearance)}}return t.\u0275fac=function(e){return new(e||t)($o(LD),$o(Vl),$o(ND,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-paginator"]],hostAttrs:[1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[Oo],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"div",1),jo(2,MD,5,3,"div",2),Qo(3,"div",3),Qo(4,"div",4),Na(5),Xo(),jo(6,ID,3,5,"button",5),Qo(7,"button",6),ra("click",function(){return e.previousPage()}),pi(),Qo(8,"svg",7),Ko(9,"path",8),Xo(),Xo(),mi(),Qo(10,"button",9),ra("click",function(){return e.nextPage()}),pi(),Qo(11,"svg",7),Ko(12,"path",10),Xo(),Xo(),jo(13,RD,3,5,"button",11),Xo(),Xo(),Xo()),2&t&&(dr(2),qo("ngIf",!e.hidePageSize),dr(3),Ba(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),dr(1),qo("ngIf",e.showFirstLastButtons),dr(1),qo("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),zo("aria-label",e._intl.previousPageLabel),dr(3),qo("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),zo("aria-label",e._intl.nextPageLabel),dr(3),qo("ngIf",e.showFirstLastButtons))},directives:[Jd,TA,AD,Yk,rD,Kd,Jx],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}\n"],encapsulation:2,changeDetection:0}),t})(),GD=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:[FD],imports:[[yh,DA,aD,ED,ax]]}),t})();const UD=["primaryValueBar"];class jD{constructor(t){this._elementRef=t}}const WD=cx(jD,"primary"),$D=new en("mat-progress-bar-location",{providedIn:"root",factory:function(){const t=Cn(qu),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}});let qD=0,YD=(()=>{class t extends WD{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 kc,this._animationEndSubscription=d.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+qD++;const s=n?n.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${s}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===i}get value(){return this._value}set value(t){this._value=QD(Cg(t)||0)}get bufferValue(){return this._bufferValue}set bufferValue(t){this._bufferValue=QD(t||0)}_primaryTransform(){return{transform:`scale3d(${this.value/100}, 1, 1)`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scale3d(${this.bufferValue/100}, 1, 1)`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const t=this._primaryValueBar.nativeElement;this._animationEndSubscription=Cf(t,"transitionend").pipe(Mm(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)($o(hl),$o(mu),$o(QC,8),$o($D,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-progress-bar"]],viewQuery:function(t,e){if(1&t&&Vc(UD,1),2&t){let t;Nc(t=Hc())&&(e._primaryValueBar=t.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"mat-progress-bar"],hostVars:4,hostBindings:function(t,e){2&t&&(zo("aria-valuenow","indeterminate"===e.mode||"query"===e.mode?null:e.value)("mode",e.mode),Sa("_mat-animation-noopable",e._isNoopAnimation))},inputs:{color:"color",mode:"mode",value:"value",bufferValue:"bufferValue"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[Oo],decls:10,vars:4,consts:[["aria-hidden","true"],["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&&(Qo(0,"div",0),pi(),Qo(1,"svg",1),Qo(2,"defs"),Qo(3,"pattern",2),Ko(4,"circle",3),Xo(),Xo(),Ko(5,"rect",4),Xo(),mi(),Ko(6,"div",5),Ko(7,"div",6,7),Ko(9,"div",8),Xo()),2&t&&(dr(3),qo("id",e.progressbarId),dr(2),zo("fill",e._rectangleFillValue),dr(1),qo("ngStyle",e._bufferTransform()),dr(1),qo("ngStyle",e._primaryTransform()))},directives:[oh],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 QD(t,e=0,i=100){return Math.max(e,Math.min(i,t))}let XD=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[yh,ax],ax]}),t})();function KD(t,e){if(1&t&&(pi(),Ko(0,"circle",3)),2&t){const t=ua();xa("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),zo("r",t._getCircleRadius())}}function ZD(t,e){if(1&t&&(pi(),Ko(0,"circle",3)),2&t){const t=ua();xa("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),zo("r",t._getCircleRadius())}}function JD(t,e){if(1&t&&(pi(),Ko(0,"circle",3)),2&t){const t=ua();xa("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),zo("r",t._getCircleRadius())}}function tM(t,e){if(1&t&&(pi(),Ko(0,"circle",3)),2&t){const t=ua();xa("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),zo("r",t._getCircleRadius())}}const eM=".mat-progress-spinner{display:block;position:relative;overflow:hidden}.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}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{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] svg{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] svg{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";class iM{constructor(t){this._elementRef=t}}const nM=cx(iM,"primary"),sM=new en("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let rM=(()=>{class t extends nM{constructor(e,i,n,s,r){super(e),this._elementRef=e,this._document=n,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const o=t._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),o.has(n.head)||o.set(n.head,new Set([100])),this._fallbackAnimation=i.EDGE||i.TRIDENT,this._noopAnimations="NoopAnimations"===s&&!!r&&!r._forceAnimations,r&&(r.diameter&&(this.diameter=r.diameter),r.strokeWidth&&(this.strokeWidth=r.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=Cg(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=Cg(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,Cg(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=Wy(t)||this._document.head,this._attachStyleNode(),t.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}_getCircleStrokeWidth(){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",this._spinnerAnimationLabel),t.textContent=this._getAnimationText(),e.appendChild(t),s||(s=new Set,n.set(e,s)),s.add(i)}}_getAnimationText(){const t=this._getStrokeCircumference();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*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(Ry),$o(qu,8),$o(QC,8),$o(sM))},t.\u0275cmp=Xt({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(zo("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),xa("width",e.diameter,"px")("height",e.diameter,"px"),Sa("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[Oo],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",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&&(pi(),Qo(0,"svg",0),jo(1,KD,1,9,"circle",1),jo(2,ZD,1,7,"circle",2),Xo()),2&t&&(xa("width",e.diameter,"px")("height",e.diameter,"px"),qo("ngSwitch","indeterminate"===e.mode),zo("viewBox",e._getViewBox()),dr(1),qo("ngSwitchCase",!0),dr(1),qo("ngSwitchCase",!1))},directives:[nh,sh],styles:[eM],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t})(),oM=(()=>{class t extends rM{constructor(t,e,i,n,s){super(t,e,i,n,s),this.mode="indeterminate"}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(Ry),$o(qu,8),$o(QC,8),$o(sM))},t.\u0275cmp=Xt({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(xa("width",e.diameter,"px")("height",e.diameter,"px"),Sa("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[Oo],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",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&&(pi(),Qo(0,"svg",0),jo(1,JD,1,9,"circle",1),jo(2,tM,1,7,"circle",2),Xo()),2&t&&(xa("width",e.diameter,"px")("height",e.diameter,"px"),qo("ngSwitch","indeterminate"===e.mode),zo("viewBox",e._getViewBox()),dr(1),qo("ngSwitchCase",!0),dr(1),qo("ngSwitchCase",!1))},directives:[nh,sh],styles:[eM],encapsulation:2,changeDetection:0}),t})(),aM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[ax,yh],ax]}),t})();const lM=["input"],cM=function(){return{enterDuration:150}},uM=["*"],dM=new en("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}});let hM=0;const pM={provide:mb,useExisting:ut(()=>_M),multi:!0};class mM{constructor(t,e){this.source=t,this.value=e}}const fM=new en("MatRadioGroup");let gM=(()=>{class t{constructor(t){this._changeDetector=t,this._value=null,this._name="mat-radio-group-"+hM++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new kc}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=wg(t),this._markRadiosForCheck()}get required(){return this._required}set required(t){this._required=wg(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 mM(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)($o(Vl))},t.\u0275dir=ie({type:t,inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"}}),t})(),_M=(()=>{class t extends gM{}return t.\u0275fac=function(e){return bM(e||t)},t.\u0275dir=ie({type:t,selectors:[["mat-radio-group"]],contentQueries:function(t,e,i){if(1&t&&Bc(i,CM,1),2&t){let t;Nc(t=Hc())&&(e._radios=t)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[rl([pM,{provide:fM,useExisting:t}]),Oo]}),t})();const bM=Qi(_M);class yM{constructor(t){this._elementRef=t}}const vM=ux(dx(yM));let wM=(()=>{class t extends vM{constructor(t,e,i,n,s,r,o,a){super(e),this._changeDetector=i,this._focusMonitor=n,this._radioDispatcher=s,this._animationMode=r,this._providerOverride=o,this._uniqueId="mat-radio-"+ ++hM,this.id=this._uniqueId,this.change=new kc,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=t,a&&(this.tabIndex=Cg(a,0)),this._removeUniqueSelectionListener=s.listen((t,e)=>{t!==this.id&&e===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(t){const e=wg(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(wg(t))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(t){this._required=wg(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,e){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),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 mM(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)($o(gM),$o(hl),$o(Vl),$o(vv),$o(fS),$o(String),$o(void 0),$o(String))},t.\u0275dir=ie({type:t,viewQuery:function(t,e){if(1&t&&Vc(lM,1),2&t){let t;Nc(t=Hc())&&(e._inputElement=t.first)}},inputs:{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"},features:[Oo]}),t})(),CM=(()=>{class t extends wM{constructor(t,e,i,n,s,r,o,a){super(t,e,i,n,s,r,o,a)}}return t.\u0275fac=function(e){return new(e||t)($o(fM,8),$o(hl),$o(Vl),$o(vv),$o(fS),$o(QC,8),$o(dM,8),Ki("tabindex"))},t.\u0275cmp=Xt({type:t,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(t,e){1&t&&ra("focus",function(){return e._inputElement.nativeElement.focus()}),2&t&&(zo("tabindex",null)("id",e.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),Sa("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"},exportAs:["matRadioButton"],features:[Oo],ngContentSelectors:uM,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&&(ha(),Qo(0,"label",0,1),Qo(2,"span",2),Ko(3,"span",3),Ko(4,"span",4),Qo(5,"input",5,6),ra("change",function(t){return e._onInputChange(t)})("click",function(t){return e._onInputClick(t)}),Xo(),Qo(7,"span",7),Ko(8,"span",8),Xo(),Xo(),Qo(9,"span",9),Qo(10,"span",10),Na(11,"\xa0"),Xo(),pa(12),Xo(),Xo()),2&t){const t=Wo(1);zo("for",e.inputId),dr(5),qo("id",e.inputId)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex)("required",e.required),zo("name",e.name)("value",e.value)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby)("aria-describedby",e.ariaDescribedby),dr(2),qo("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",hc(18,cM)),dr(2),Sa("mat-radio-label-before","before"==e.labelPosition)}},directives:[Vx],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;display:block;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;display:block;height:20px;left:0;position:absolute;top:0;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}._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})(),xM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[Bx,ax],ax]}),t})();function SM(t){return e=>e.lift(new kM(t))}class kM{constructor(t){this.value=t}call(t,e){return e.subscribe(new AM(t,this.value))}}class AM extends m{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}const OM=["*"];function EM(t,e){if(1&t){const t=ea();Qo(0,"div",2),ra("click",function(){return Be(t),ua()._onBackdropClicked()}),Xo()}2&t&&Sa("mat-drawer-shown",ua()._isShowingBackdrop())}function TM(t,e){1&t&&(Qo(0,"mat-drawer-content"),pa(1,2),Xo())}const PM=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],DM=["mat-drawer","mat-drawer-content","*"],MM={transformDrawer:Ov("transform",[Mv("open, open-instant",Dv({transform:"none",visibility:"visible"})),Mv("void",Dv({"box-shadow":"none",visibility:"hidden"})),Rv("void => open-instant",Ev("0ms")),Rv("void <=> open, open-instant => void",Ev("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},IM=new en("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),RM=new en("MAT_DRAWER_CONTAINER");let LM=(()=>{class t extends bS{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)($o(Vl),$o(ut(()=>NM)),$o(hl),$o(_S),$o(mu))},t.\u0275cmp=Xt({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&xa("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[Oo],ngContentSelectors:OM,decls:1,vars:0,template:function(t,e){1&t&&(ha(),pa(0))},encapsulation:2,changeDetection:0}),t})(),FM=(()=>{class t{constructor(t,e,i,n,s,r,o){this._elementRef=t,this._focusTrapFactory=e,this._focusMonitor=i,this._platform=n,this._ngZone=s,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 k,this._animationEnd=new k,this._animationState="void",this.openedChange=new kc(!0),this._openedStream=this.openedChange.pipe(Mm(t=>t),E(()=>{})),this.openedStart=this._animationStarted.pipe(Mm(t=>t.fromState!==t.toState&&0===t.toState.indexOf("open")),SM(void 0)),this._closedStream=this.openedChange.pipe(Mm(t=>!t),E(()=>{})),this.closedStart=this._animationStarted.pipe(Mm(t=>t.fromState!==t.toState&&"void"===t.toState),SM(void 0)),this._destroyed=new k,this.onPositionChanged=new kc,this._modeChanged=new k,this.openedChange.subscribe(t=>{t?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus()}),this._ngZone.runOutsideAngular(()=>{Cf(this._elementRef.nativeElement,"keydown").pipe(Mm(t=>27===t.keyCode&&!this.disableClose&&!My(t)),Hp(this._destroyed)).subscribe(t=>this._ngZone.run(()=>{this.close(),t.stopPropagation(),t.preventDefault()}))}),this._animationEnd.pipe(Np((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=wg(t)}get autoFocus(){const t=this._autoFocus;return null==t?"side"!==this.mode:t}set autoFocus(t){this._autoFocus=wg(t)}get opened(){return this._opened}set opened(t){this.toggle(wg(t))}_takeFocus(){this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(t=>{t||"function"!=typeof this._elementRef.nativeElement.focus||this._elementRef.nativeElement.focus()})}_restoreFocus(){this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null)}_isFocusWithinDrawer(){var t;const e=null===(t=this._doc)||void 0===t?void 0:t.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}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)}_closeViaBackdropClick(){return this._setOpen(!1,!0)}toggle(t=!this.opened,e){return this._setOpen(t,!t&&this._isFocusWithinDrawer(),e)}_setOpen(t,e,i="program"){return this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=i):(this._animationState="void",e&&this._restoreFocus()),this._updateFocusTrapState(),new Promise(t=>{this.openedChange.pipe(Tf(1)).subscribe(e=>t(e?"open":"close"))})}_getWidth(){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)($o(hl),$o(uv),$o(vv),$o(Ry),$o(mu),$o(qu,8),$o(RM,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&oa("@transform.start",function(t){return e._animationStartListener(t)})("@transform.done",function(t){return e._animationDoneListener(t)}),2&t&&(zo("align",null),ja("@transform",e._animationState),Sa("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",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:OM,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(ha(),Qo(0,"div",0),pa(1),Xo())},encapsulation:2,data:{animation:[MM.transformDrawer]},changeDetection:0}),t})(),NM=(()=>{class t{constructor(t,e,i,n,s,r=!1,o){this._dir=t,this._element=e,this._ngZone=i,this._changeDetectorRef=n,this._animationMode=o,this._drawers=new Oc,this.backdropClick=new kc,this._destroyed=new k,this._doCheckSubject=new k,this._contentMargins={left:null,right:null},this._contentMarginChanges=new k,t&&t.change.pipe(Hp(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),s.change().pipe(Hp(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=wg(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:wg(t)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(jp(this._allDrawers),Hp(this._destroyed)).subscribe(t=>{this._drawers.reset(t.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(jp(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._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(Sf(10),Hp(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._getWidth();else if("push"==this._left.mode){const i=this._left._getWidth();t+=i,e-=i}if(this._right&&this._right.opened)if("side"==this._right.mode)e+=this._right._getWidth();else if("push"==this._right.mode){const i=this._right._getWidth();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(Mm(t=>t.fromState!==t.toState),Hp(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(Hp(this._drawers.changes)).subscribe(()=>this._setContainerClass(t.opened))}_watchDrawerPosition(t){t&&t.onPositionChanged.pipe(Hp(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(Tf(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(t){t&&t._modeChanged.pipe(Hp(Y(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?this._end=t: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._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(t=>t&&!t.disableClose&&this._canHaveBackdrop(t)).forEach(t=>t._closeViaBackdropClick())}_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)($o(Xg,8),$o(hl),$o(mu),$o(Vl),$o(yS),$o(IM),$o(QC,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,i){if(1&t&&(Bc(i,LM,1),Bc(i,FM,1)),2&t){let t;Nc(t=Hc())&&(e._content=t.first),Nc(t=Hc())&&(e._allDrawers=t)}},viewQuery:function(t,e){if(1&t&&Vc(LM,1),2&t){let t;Nc(t=Hc())&&(e._userContent=t.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&Sa("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[rl([{provide:RM,useExisting:t}])],ngContentSelectors:DM,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&&(ha(PM),jo(0,EM,1,2,"div",0),pa(1),pa(2,1),jo(3,TM,2,0,"mat-drawer-content",1)),2&t&&(qo("ngIf",e.hasBackdrop),dr(3),qo("ngIf",!e._content))},directives:[Jd,LM],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})(),VM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[yh,ax,Ly,vS],vS,ax]}),t})(),BM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({}),t})(),HM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[BM,Bx,ax,Qy],BM,ax]}),t})();const zM=["mat-sort-header",""];function GM(t,e){if(1&t){const t=ea();Qo(0,"div",3),ra("@arrowPosition.start",function(){return Be(t),ua()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return Be(t),ua()._disableViewStateAnimation=!1}),Ko(1,"div",4),Qo(2,"div",5),Ko(3,"div",6),Ko(4,"div",7),Ko(5,"div",8),Xo(),Xo()}if(2&t){const t=ua();qo("@arrowOpacity",t._getArrowViewState())("@arrowPosition",t._getArrowViewState())("@allowChildren",t._getArrowDirectionState()),dr(2),qo("@indicator",t._getArrowDirectionState()),dr(1),qo("@leftPointer",t._getArrowDirectionState()),dr(1),qo("@rightPointer",t._getArrowDirectionState())}}const UM=["*"],jM=new en("MAT_SORT_DEFAULT_OPTIONS");class WM{}const $M=px(lx(WM));let qM=(()=>{class t extends $M{constructor(t){super(),this._defaultOptions=t,this.sortables=new Map,this._stateChanges=new k,this.start="asc",this._direction="",this.sortChange=new kc}get direction(){return this._direction}set direction(t){this._direction=t}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=wg(t)}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){var e,i,n;if(!t)return"";const s=null!==(i=null!==(e=null==t?void 0:t.disableClear)&&void 0!==e?e:this.disableClear)&&void 0!==i?i:!!(null===(n=this._defaultOptions)||void 0===n?void 0:n.disableClear);let r=function(t,e){let i=["asc","desc"];return"desc"==t&&i.reverse(),e||i.push(""),i}(t.start||this.start,s),o=r.indexOf(this.direction)+1;return o>=r.length&&(o=0),r[o]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)($o(jM,8))},t.\u0275dir=ie({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Oo,me]}),t})();const YM=sx.ENTERING+" "+nx.STANDARD_CURVE,QM={indicator:Ov("indicator",[Mv("active-asc, asc",Dv({transform:"translateY(0px)"})),Mv("active-desc, desc",Dv({transform:"translateY(10px)"})),Rv("active-asc <=> active-desc",Ev(YM))]),leftPointer:Ov("leftPointer",[Mv("active-asc, asc",Dv({transform:"rotate(-45deg)"})),Mv("active-desc, desc",Dv({transform:"rotate(45deg)"})),Rv("active-asc <=> active-desc",Ev(YM))]),rightPointer:Ov("rightPointer",[Mv("active-asc, asc",Dv({transform:"rotate(45deg)"})),Mv("active-desc, desc",Dv({transform:"rotate(-45deg)"})),Rv("active-asc <=> active-desc",Ev(YM))]),arrowOpacity:Ov("arrowOpacity",[Mv("desc-to-active, asc-to-active, active",Dv({opacity:1})),Mv("desc-to-hint, asc-to-hint, hint",Dv({opacity:.54})),Mv("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Dv({opacity:0})),Rv("* => asc, * => desc, * => active, * => hint, * => void",Ev("0ms")),Rv("* <=> *",Ev(YM))]),arrowPosition:Ov("arrowPosition",[Rv("* => desc-to-hint, * => desc-to-active",Ev(YM,Iv([Dv({transform:"translateY(-25%)"}),Dv({transform:"translateY(0)"})]))),Rv("* => hint-to-desc, * => active-to-desc",Ev(YM,Iv([Dv({transform:"translateY(0)"}),Dv({transform:"translateY(25%)"})]))),Rv("* => asc-to-hint, * => asc-to-active",Ev(YM,Iv([Dv({transform:"translateY(25%)"}),Dv({transform:"translateY(0)"})]))),Rv("* => hint-to-asc, * => active-to-asc",Ev(YM,Iv([Dv({transform:"translateY(0)"}),Dv({transform:"translateY(-25%)"})]))),Mv("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Dv({transform:"translateY(0)"})),Mv("hint-to-desc, active-to-desc, desc",Dv({transform:"translateY(-25%)"})),Mv("hint-to-asc, active-to-asc, asc",Dv({transform:"translateY(25%)"}))]),allowChildren:Ov("allowChildren",[Rv("* <=> *",[Fv("@*",Lv(),{optional:!0})])])};let XM=(()=>{class t{constructor(){this.changes=new k,this.sortButtonLabel=t=>`Change sorting for ${t}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({factory:function(){return new t},token:t,providedIn:"root"}),t})();const KM={provide:XM,deps:[[new An,new On,XM]],useFactory:function(t){return t||new XM}};class ZM{}const JM=lx(ZM);let tI=(()=>{class t extends JM{constructor(t,e,i,n,s,r){super(),this._intl=t,this._changeDetectorRef=e,this._sort=i,this._columnDef=n,this._focusMonitor=s,this._elementRef=r,this._showIndicatorHint=!1,this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._handleStateChanges()}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=wg(t)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{const e=!!t;e!==this._showIndicatorHint&&(this._setIndicatorHintVisible(e),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(t){this._viewState=t,this._disableViewStateAnimation&&(this._viewState={toState:t.toState})}_toggleOnInteraction(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(t){this._isDisabled()||32!==t.keyCode&&13!==t.keyCode||(t.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const t=this._viewState.fromState;return(t?`${t}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_handleStateChanges(){this._rerenderSubscription=Y(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)($o(XM),$o(Vl),$o(qM,8),$o("MAT_SORT_HEADER_COLUMN_DEF",8),$o(vv),$o(hl))},t.\u0275cmp=Xt({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&ra("click",function(){return e._handleClick()})("keydown",function(t){return e._handleKeydown(t)})("mouseenter",function(){return e._setIndicatorHintVisible(!0)})("mouseleave",function(){return e._setIndicatorHintVisible(!1)}),2&t&&(zo("aria-sort",e._getAriaSortAttribute()),Sa("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[Oo],attrs:zM,ngContentSelectors:UM,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(t,e){1&t&&(ha(),Qo(0,"div",0),Qo(1,"div",1),pa(2),Xo(),jo(3,GM,6,6,"div",2),Xo()),2&t&&(Sa("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),zo("tabindex",e._isDisabled()?null:0),dr(3),qo("ngIf",e._renderArrow()))},directives:[Jd],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[QM.indicator,QM.leftPointer,QM.rightPointer,QM.arrowOpacity,QM.arrowPosition,QM.allowChildren]},changeDetection:0}),t})(),eI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:[KM],imports:[[yh,ax]]}),t})(),iI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[Kg]]}),t})(),nI=(()=>{class t{constructor(){this.changes=new k,this.optionalLabel="Optional"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({factory:function(){return new t},token:t,providedIn:"root"}),t})();const sI={provide:nI,deps:[[new An,new On,nI]],useFactory:function(t){return t||new nI}};let rI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({providers:[sI,Ox],imports:[[ax,yh,PS,DA,iI,tP,Bx],ax]}),t})();const oI=[[["caption"]],[["colgroup"],["col"]]],aI=["caption","colgroup, col"];function lI(t){return class extends t{constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(t){const e=this._sticky;this._sticky=wg(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const cI=new en("CDK_TABLE");let uI=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)($o(jl))},t.\u0275dir=ie({type:t,selectors:[["","cdkCellDef",""]]}),t})(),dI=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)($o(jl))},t.\u0275dir=ie({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),hI=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)($o(jl))},t.\u0275dir=ie({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class pI{}const mI=lI(pI);let fI=(()=>{class t extends mI{constructor(t){super(),this._table=t,this._stickyEnd=!1}get name(){return this._name}set name(t){this._setNameInput(t)}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){const e=this._stickyEnd;this._stickyEnd=wg(t),this._hasStickyChanged=e!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return t.\u0275fac=function(e){return new(e||t)($o(cI,8))},t.\u0275dir=ie({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,e,i){if(1&t&&(Bc(i,uI,1),Bc(i,dI,1),Bc(i,hI,1)),2&t){let t;Nc(t=Hc())&&(e.cell=t.first),Nc(t=Hc())&&(e.headerCell=t.first),Nc(t=Hc())&&(e.footerCell=t.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[rl([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),Oo]}),t})();class gI{constructor(t,e){const i=e.nativeElement.classList;for(const n of t._columnCssClassName)i.add(n)}}let _I=(()=>{class t extends gI{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)($o(fI),$o(hl))},t.\u0275dir=ie({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[Oo]}),t})(),bI=(()=>{class t extends gI{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)($o(fI),$o(hl))},t.\u0275dir=ie({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[Oo]}),t})();class yI{constructor(){this.tasks=[],this.endTasks=[]}}const vI=new en("_COALESCED_STYLE_SCHEDULER");let wI=(()=>{class t{constructor(t){this._ngZone=t,this._currentSchedule=null,this._destroyed=new k}schedule(t){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(t)}scheduleEnd(t){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(t)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new yI,this._getScheduleObservable().pipe(Hp(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const t=this._currentSchedule;this._currentSchedule=new yI;for(const e of t.tasks)e();for(const e of t.endTasks)e()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?V(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Tf(1))}}return t.\u0275fac=function(e){return new(e||t)(wn(mu))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})(),CI=(()=>{class t{constructor(t,e){this.template=t,this._differs=e}ngOnChanges(t){if(!this._columnsDiffer){const e=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(e).create(),this._columnsDiffer.diff(e)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof kI?t.headerCell.template:this instanceof EI?t.footerCell.template:t.cell.template}}return t.\u0275fac=function(e){return new(e||t)($o(jl),$o(Dl))},t.\u0275dir=ie({type:t,features:[me]}),t})();class xI extends CI{}const SI=lI(xI);let kI=(()=>{class t extends SI{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)($o(jl),$o(Dl),$o(cI,8))},t.\u0275dir=ie({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[Oo,me]}),t})();class AI extends CI{}const OI=lI(AI);let EI=(()=>{class t extends OI{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)($o(jl),$o(Dl),$o(cI,8))},t.\u0275dir=ie({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[Oo,me]}),t})(),TI=(()=>{class t extends CI{constructor(t,e,i){super(t,e),this._table=i}}return t.\u0275fac=function(e){return new(e||t)($o(jl),$o(Dl),$o(cI,8))},t.\u0275dir=ie({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[Oo]}),t})(),PI=(()=>{class t{constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}return t.\u0275fac=function(e){return new(e||t)($o(Kl))},t.\u0275dir=ie({type:t,selectors:[["","cdkCellOutlet",""]]}),t.mostRecentCellOutlet=null,t})(),DI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&ta(0,0)},directives:[PI],encapsulation:2}),t})(),MI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&ta(0,0)},directives:[PI],encapsulation:2}),t})(),II=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)($o(jl))},t.\u0275dir=ie({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),t})();const RI=["top","bottom","left","right"];class LI{constructor(t,e,i,n,s=!0,r=!0,o){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=n,this._isBrowser=s,this._needsPositionStickyOnElement=r,this._positionListener=o,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(t,e){const i=[];for(const n of t)if(n.nodeType===n.ELEMENT_NODE){i.push(n);for(let t=0;t{for(const t of i)this._removeStickyStyle(t,e)})}updateStickyColumns(t,e,i,n=!0){if(!t.length||!this._isBrowser||!e.some(t=>t)&&!i.some(t=>t))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const s=t[0],r=s.children.length,o=this._getCellWidths(s,n),a=this._getStickyStartColumnPositions(o,e),l=this._getStickyEndColumnPositions(o,i),c=e.lastIndexOf(!0),u=i.indexOf(!0);this._scheduleStyleChanges(()=>{const n="rtl"===this.direction,s=n?"right":"left",d=n?"left":"right";for(const o of t)for(let t=0;te[i]?t:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===u?[]:o.slice(u).map((t,e)=>i[e+u]?t:null).reverse()}))})}stickRows(t,e,i){if(!this._isBrowser)return;const n="bottom"===i?t.slice().reverse():t,s="bottom"===i?e.slice().reverse():e,r=[],o=[],a=[];for(let c=0,u=0;c{var t,e;for(let o=0;o{e.some(t=>!t)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1)})}_removeStickyStyle(t,e){for(const i of e)t.style[i]="",t.classList.remove(this._borderCellCss[i]);RI.some(i=>-1===e.indexOf(i)&&t.style[i])?t.style.zIndex=this._getCalculatedZIndex(t):(t.style.zIndex="",this._needsPositionStickyOnElement&&(t.style.position=""),t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,i,n){t.classList.add(this._stickCellCss),n&&t.classList.add(this._borderCellCss[e]),t.style[e]=`${i}px`,t.style.zIndex=this._getCalculatedZIndex(t),this._needsPositionStickyOnElement&&(t.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(t){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const n of RI)t.style[n]&&(i+=e[n]);return i?`${i}`:""}_getCellWidths(t,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],n=t.children;for(let s=0;s0;s--)e[s]&&(i[s]=n,n+=t[s]);return i}_scheduleStyleChanges(t){this._coalescedStyleScheduler?this._coalescedStyleScheduler.schedule(t):t()}}const FI=new en("CDK_SPL");let NI=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)($o(Kl),$o(hl))},t.\u0275dir=ie({type:t,selectors:[["","rowOutlet",""]]}),t})(),VI=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)($o(Kl),$o(hl))},t.\u0275dir=ie({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),BI=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)($o(Kl),$o(hl))},t.\u0275dir=ie({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),HI=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)($o(Kl),$o(hl))},t.\u0275dir=ie({type:t,selectors:[["","noDataRowOutlet",""]]}),t})(),zI=(()=>{class t{constructor(t,e,i,n,s,r,o,a,l,c,u){this._differs=t,this._changeDetectorRef=e,this._elementRef=i,this._dir=s,this._platform=o,this._viewRepeater=a,this._coalescedStyleScheduler=l,this._stickyPositioningListener=c,this._viewportRuler=u,this._onDestroy=new k,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.viewChange=new cp({start:0,end:Number.MAX_VALUE}),n||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=r,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(t){this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=wg(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(t){this._fixedLayout=wg(t),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((t,e)=>this.trackBy?this.trackBy(e.dataIndex,e.data):e),this._viewportRuler&&this._viewportRuler.change().pipe(Hp(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),hS(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const t=this._dataDiffer.diff(this._renderRows);if(!t)return void this._updateNoDataRow();const e=this._rowOutlet.viewContainer;this._viewRepeater?this._viewRepeater.applyChanges(t,e,(t,e,i)=>this._getEmbeddedViewArgs(t.item,i),t=>t.item.data,t=>{1===t.operation&&t.context&&this._renderCellTemplateForItem(t.record.item.rowDef,t.context)}):t.forEachOperation((t,i,n)=>{if(null==t.previousIndex){const e=t.item;this._renderRow(this._rowOutlet,e.rowDef,n,{$implicit:e.data})}else if(null==n)e.remove(i);else{const t=e.get(i);e.move(t,n)}}),this._updateRowIndexContext(),t.forEachIdentityChange(t=>{e.get(t.currentIndex).context.$implicit=t.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}setNoDataRow(t){this._customNoDataRow=t}updateStickyHeaderRowStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");const i=this._headerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,i,"top"),this._headerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyFooterRowStyles(){const t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");const i=this._footerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyColumnStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...t,...e,...i],["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach((t,e)=>{this._addStickyColumnStyles([t],this._headerRowDefs[e])}),this._rowDefs.forEach(t=>{const i=[];for(let n=0;n{this._addStickyColumnStyles([t],this._footerRowDefs[e])}),Array.from(this._columnDefsByName.values()).forEach(t=>t.resetStickyChanged())}_getAllRenderRows(){const t=[],e=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let i=0;i{const s=i&&i.has(n)?i.get(n):[];if(s.length){const t=s.shift();return t.dataIndex=e,t}return{data:t,rowDef:n,dataIndex:e}})}_cacheColumnDefs(){this._columnDefsByName.clear(),GI(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=GI(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=GI(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=GI(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const t=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=t[0]}_renderUpdatedColumns(){const t=(t,e)=>t||!!e.getColumnsDiff(),e=this._rowDefs.reduce(t,!1);e&&this._forceRenderDataRows();const i=this._headerRowDefs.reduce(t,!1);i&&this._forceRenderHeaderRows();const n=this._footerRowDefs.reduce(t,!1);return n&&this._forceRenderFooterRows(),e||i||n}_switchDataSource(t){this._data=[],hS(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t}_observeRenderChanges(){if(!this.dataSource)return;let t;hS(this.dataSource)?t=this.dataSource.connect(this):sS(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=Sp(this.dataSource)),this._renderChangeSubscription=t.pipe(Hp(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,e)=>this._renderRow(this._headerRowOutlet,t,e)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,e)=>this._renderRow(this._footerRowOutlet,t,e)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(t,e){const i=Array.from(e.columns||[]).map(t=>this._columnDefsByName.get(t)),n=i.map(t=>t.sticky),s=i.map(t=>t.stickyEnd);this._stickyStyler.updateStickyColumns(t,n,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(t){const e=[];for(let i=0;i!i.when||i.when(e,t));else{let n=this._rowDefs.find(i=>i.when&&i.when(e,t))||this._defaultRowDef;n&&i.push(n)}return i}_getEmbeddedViewArgs(t,e){return{templateRef:t.rowDef.template,context:{$implicit:t.data},index:e}}_renderRow(t,e,i,n={}){const s=t.viewContainer.createEmbeddedView(e.template,n,i);return this._renderCellTemplateForItem(e,n),s}_renderCellTemplateForItem(t,e){for(let i of this._getCellTemplates(t))PI.mostRecentCellOutlet&&PI.mostRecentCellOutlet._viewContainer.createEmbeddedView(i,e);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const t=this._rowOutlet.viewContainer;for(let e=0,i=t.length;e{const i=this._columnDefsByName.get(e);return t.extractCellTemplate(i)}):[]}_applyNativeTableSections(){const t=this._document.createDocumentFragment(),e=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const i of e){const e=this._document.createElement(i.tag);e.setAttribute("role","rowgroup");for(const t of i.outlets)e.appendChild(t.elementRef.nativeElement);t.appendChild(e)}this._elementRef.nativeElement.appendChild(t)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const t=(t,e)=>t||e.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new LI(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:Sp()).pipe(Hp(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const t=this._customNoDataRow||this._noDataRow;if(t){const e=0===this._rowOutlet.viewContainer.length;if(e!==this._isShowingNoDataRow){const i=this._noDataRowOutlet.viewContainer;e?i.createEmbeddedView(t.templateRef):i.clear(),this._isShowingNoDataRow=e}}}}return t.\u0275fac=function(e){return new(e||t)($o(Dl),$o(Vl),$o(hl),Ki("role"),$o(Xg,8),$o(qu),$o(Ry),$o(gS,8),$o(vI,8),$o(FI,12),$o(yS,8))},t.\u0275cmp=Xt({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,e,i){if(1&t&&(Bc(i,II,1),Bc(i,fI,1),Bc(i,TI,1),Bc(i,kI,1),Bc(i,EI,1)),2&t){let t;Nc(t=Hc())&&(e._noDataRow=t.first),Nc(t=Hc())&&(e._contentColumnDefs=t),Nc(t=Hc())&&(e._contentRowDefs=t),Nc(t=Hc())&&(e._contentHeaderRowDefs=t),Nc(t=Hc())&&(e._contentFooterRowDefs=t)}},viewQuery:function(t,e){if(1&t&&(Vc(NI,3),Vc(VI,3),Vc(BI,3),Vc(HI,3)),2&t){let t;Nc(t=Hc())&&(e._rowOutlet=t.first),Nc(t=Hc())&&(e._headerRowOutlet=t.first),Nc(t=Hc())&&(e._footerRowOutlet=t.first),Nc(t=Hc())&&(e._noDataRowOutlet=t.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,e){2&t&&Sa("cdk-table-fixed-layout",e.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},exportAs:["cdkTable"],features:[rl([{provide:cI,useExisting:t},{provide:gS,useClass:pS},{provide:vI,useClass:wI},{provide:FI,useValue:null}])],ngContentSelectors:aI,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(ha(oI),pa(0),pa(1,1),ta(2,0),ta(3,1),ta(4,2),ta(5,3))},directives:[VI,NI,HI,BI],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),t})();function GI(t,e){return t.concat(Array.from(e))}let UI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[wS]]}),t})();const jI=[[["caption"]],[["colgroup"],["col"]]],WI=["caption","colgroup, col"];let $I=(()=>{class t extends zI{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return t.\u0275fac=function(e){return qI(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(t,e){2&t&&Sa("mat-table-fixed-layout",e.fixedLayout)},exportAs:["matTable"],features:[rl([{provide:gS,useClass:pS},{provide:zI,useExisting:t},{provide:cI,useExisting:t},{provide:vI,useClass:wI}]),Oo],ngContentSelectors:WI,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(ha(jI),pa(0),pa(1,1),ta(2,0),ta(3,1),ta(4,2),ta(5,3))},directives:[VI,NI,HI,BI],styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),t})();const qI=Qi($I);let YI=(()=>{class t extends uI{}return t.\u0275fac=function(e){return QI(e||t)},t.\u0275dir=ie({type:t,selectors:[["","matCellDef",""]],features:[rl([{provide:uI,useExisting:t}]),Oo]}),t})();const QI=Qi(YI);let XI=(()=>{class t extends dI{}return t.\u0275fac=function(e){return KI(e||t)},t.\u0275dir=ie({type:t,selectors:[["","matHeaderCellDef",""]],features:[rl([{provide:dI,useExisting:t}]),Oo]}),t})();const KI=Qi(XI);let ZI=(()=>{class t extends fI{get name(){return this._name}set name(t){this._setNameInput(t)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return t.\u0275fac=function(e){return JI(e||t)},t.\u0275dir=ie({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[rl([{provide:fI,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),Oo]}),t})();const JI=Qi(ZI);let tR=(()=>{class t extends _I{}return t.\u0275fac=function(e){return eR(e||t)},t.\u0275dir=ie({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[Oo]}),t})();const eR=Qi(tR);let iR=(()=>{class t extends bI{}return t.\u0275fac=function(e){return nR(e||t)},t.\u0275dir=ie({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[Oo]}),t})();const nR=Qi(iR);let sR=(()=>{class t extends kI{}return t.\u0275fac=function(e){return rR(e||t)},t.\u0275dir=ie({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[rl([{provide:kI,useExisting:t}]),Oo]}),t})();const rR=Qi(sR);let oR=(()=>{class t extends TI{}return t.\u0275fac=function(e){return aR(e||t)},t.\u0275dir=ie({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[rl([{provide:TI,useExisting:t}]),Oo]}),t})();const aR=Qi(oR);let lR=(()=>{class t extends DI{}return t.\u0275fac=function(e){return cR(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[rl([{provide:DI,useExisting:t}]),Oo],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&ta(0,0)},directives:[PI],encapsulation:2}),t})();const cR=Qi(lR);let uR=(()=>{class t extends MI{}return t.\u0275fac=function(e){return dR(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[rl([{provide:MI,useExisting:t}]),Oo],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&ta(0,0)},directives:[PI],encapsulation:2}),t})();const dR=Qi(uR);let hR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[UI,ax],ax]}),t})();class pR extends dS{constructor(t=[]){super(),this._renderData=new cp([]),this._filter=new cp(""),this._internalPageChanges=new k,this._renderChangesSubscription=null,this.sortingDataAccessor=(t,e)=>{const i=t[e];if(xg(i)){const t=Number(i);return t<9007199254740991?t:i}return i},this.sortData=(t,e)=>{const i=e.active,n=e.direction;return i&&""!=n?t.sort((t,e)=>{let s=this.sortingDataAccessor(t,i),r=this.sortingDataAccessor(e,i);const o=typeof s,a=typeof r;o!==a&&("number"===o&&(s+=""),"number"===a&&(r+=""));let l=0;return null!=s&&null!=r?s>r?l=1:s{const i=Object.keys(t).reduce((e,i)=>e+t[i]+"\u25ec","").toLowerCase(),n=e.trim().toLowerCase();return-1!=i.indexOf(n)},this._data=new cp(t),this._updateChangeSubscription()}get data(){return this._data.value}set data(t){this._data.next(t),this._renderChangesSubscription||this._filterData(t)}get filter(){return this._filter.value}set filter(t){this._filter.next(t),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(t){this._sort=t,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(t){this._paginator=t,this._updateChangeSubscription()}_updateChangeSubscription(){var t;const e=this._sort?Y(this._sort.sortChange,this._sort.initialized):Sp(null),i=this._paginator?Y(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Sp(null),n=hD([this._data,this._filter]).pipe(E(([t])=>this._filterData(t))),s=hD([n,e]).pipe(E(([t])=>this._orderData(t))),r=hD([s,i]).pipe(E(([t])=>this._pageData(t)));null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=r.subscribe(t=>this._renderData.next(t))}_filterData(t){return this.filteredData=null==this.filter||""===this.filter?t:t.filter(t=>this.filterPredicate(t,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(t){return this.sort?this.sortData(t.slice(),this.sort):t}_pageData(t){if(!this.paginator)return t;const e=this.paginator.pageIndex*this.paginator.pageSize;return t.slice(e,e+this.paginator.pageSize)}_updatePaginator(t){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=t,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,i=Math.min(e.pageIndex,t);i!==e.pageIndex&&(e.pageIndex=i,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var t;null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=null}}class mR extends pR{}function fR(t,e){1&t&&pa(0)}const gR=["*"];function _R(t,e){}const bR=function(t){return{animationDuration:t}},yR=function(t,e){return{value:t,params:e}},vR=["tabBodyWrapper"],wR=["tabHeader"];function CR(t,e){}function xR(t,e){1&t&&jo(0,CR,0,0,"ng-template",9),2&t&&qo("cdkPortalOutlet",ua().$implicit.templateLabel)}function SR(t,e){1&t&&Na(0),2&t&&Va(ua().$implicit.textLabel)}function kR(t,e){if(1&t){const t=ea();Qo(0,"div",6),ra("click",function(){Be(t);const i=e.$implicit,n=e.index,s=ua(),r=Wo(1);return s._handleClick(i,r,n)})("cdkFocusChange",function(i){Be(t);const n=e.index;return ua()._tabFocusChanged(i,n)}),Qo(1,"div",7),jo(2,xR,1,1,"ng-template",8),jo(3,SR,1,1,"ng-template",8),Xo(),Xo()}if(2&t){const t=e.$implicit,i=e.index,n=ua();Sa("mat-tab-label-active",n.selectedIndex==i),qo("id",n._getTabLabelId(i))("disabled",t.disabled)("matRippleDisabled",t.disabled||n.disableRipple),zo("tabIndex",n._getTabIndex(t,i))("aria-posinset",i+1)("aria-setsize",n._tabs.length)("aria-controls",n._getTabContentId(i))("aria-selected",n.selectedIndex==i)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),dr(2),qo("ngIf",t.templateLabel),dr(1),qo("ngIf",!t.templateLabel)}}function AR(t,e){if(1&t){const t=ea();Qo(0,"mat-tab-body",10),ra("_onCentered",function(){return Be(t),ua()._removeTabBodyWrapperHeight()})("_onCentering",function(e){return Be(t),ua()._setTabBodyWrapperHeight(e)}),Xo()}if(2&t){const t=e.$implicit,i=e.index,n=ua();Sa("mat-tab-body-active",n.selectedIndex==i),qo("id",n._getTabContentId(i))("content",t.content)("position",t.position)("origin",t.origin)("animationDuration",n.animationDuration),zo("aria-labelledby",n._getTabLabelId(i))}}const OR=["tabListContainer"],ER=["tabList"],TR=["nextPaginator"],PR=["previousPaginator"],DR=["mat-tab-nav-bar",""],MR=new en("MatInkBarPositioner",{providedIn:"root",factory:function(){return t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})}});let IR=(()=>{class t{constructor(t,e,i,n){this._elementRef=t,this._ngZone=e,this._inkBarPositioner=i,this._animationMode=n}alignToElement(t){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(t))}):this._setStyles(t)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(t){const e=this._inkBarPositioner(t),i=this._elementRef.nativeElement;i.style.left=e.left,i.style.width=e.width}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(mu),$o(MR),$o(QC,8))},t.\u0275dir=ie({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&Sa("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t})();const RR=new en("MatTabContent"),LR=new en("MatTabLabel");let FR=(()=>{class t extends ES{}return t.\u0275fac=function(e){return NR(e||t)},t.\u0275dir=ie({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[rl([{provide:LR,useExisting:t}]),Oo]}),t})();const NR=Qi(FR);class VR{}const BR=lx(VR),HR=new en("MAT_TAB_GROUP");let zR=(()=>{class t extends BR{constructor(t,e){super(),this._viewContainerRef=t,this._closestTabGroup=e,this.textLabel="",this._contentPortal=null,this._stateChanges=new k,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(t){this._setTemplateLabelInput(t)}get content(){return this._contentPortal}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new SS(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(t){t&&(this._templateLabel=t)}}return t.\u0275fac=function(e){return new(e||t)($o(Kl),$o(HR))},t.\u0275cmp=Xt({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,i){if(1&t&&(Bc(i,LR,1),Bc(i,RR,3,jl)),2&t){let t;Nc(t=Hc())&&(e.templateLabel=t.first),Nc(t=Hc())&&(e._explicitContent=t.first)}},viewQuery:function(t,e){if(1&t&&Vc(jl,3),2&t){let t;Nc(t=Hc())&&(e._implicitContent=t.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[Oo,me],ngContentSelectors:gR,decls:1,vars:0,template:function(t,e){1&t&&(ha(),jo(0,fR,1,0,"ng-template"))},encapsulation:2}),t})();const GR={translateTab:Ov("translateTab",[Mv("center, void, left-origin-center, right-origin-center",Dv({transform:"none"})),Mv("left",Dv({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),Mv("right",Dv({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),Rv("* => left, * => right, left => center, right => center",Ev("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Rv("void => left-origin-center",[Dv({transform:"translate3d(-100%, 0, 0)"}),Ev("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Rv("void => right-origin-center",[Dv({transform:"translate3d(100%, 0, 0)"}),Ev("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let UR=(()=>{class t extends TS{constructor(t,e,i,n){super(t,e,n),this._host=i,this._centeringSub=d.EMPTY,this._leavingSub=d.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(jp(this._host._isCenterPosition(this._host._position))).subscribe(t=>{t&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)($o(ll),$o(Kl),$o(ut(()=>WR)),$o(qu))},t.\u0275dir=ie({type:t,selectors:[["","matTabBodyHost",""]],features:[Oo]}),t})(),jR=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._dir=e,this._dirChangeSubscription=d.EMPTY,this._translateTabComplete=new k,this._onCentering=new kc,this._beforeCentering=new kc,this._afterLeavingCenter=new kc,this._onCentered=new kc(!0),this.animationDuration="500ms",e&&(this._dirChangeSubscription=e.change.subscribe(t=>{this._computePositionAnimationState(t),i.markForCheck()})),this._translateTabComplete.pipe(Np((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{this._isCenterPosition(t.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(t.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(t){this._positionIndex=t,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(t){const e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}_computePositionAnimationState(t=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}_computePositionFromOrigin(t){const e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(Xg,8),$o(Vl))},t.\u0275dir=ie({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t})(),WR=(()=>{class t extends jR{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(Xg,8),$o(Vl))},t.\u0275cmp=Xt({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){if(1&t&&Vc(TS,1),2&t){let t;Nc(t=Hc())&&(e._portalHost=t.first)}},hostAttrs:[1,"mat-tab-body"],features:[Oo],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(Qo(0,"div",0,1),ra("@translateTab.start",function(t){return e._onTranslateTabStarted(t)})("@translateTab.done",function(t){return e._translateTabComplete.next(t)}),jo(2,_R,0,0,"ng-template",2),Xo()),2&t&&qo("@translateTab",mc(3,yR,e._position,pc(1,bR,e.animationDuration)))},directives:[UR],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[GR.translateTab]}}),t})();const $R=new en("MAT_TABS_CONFIG");let qR=0;class YR{}class QR{constructor(t){this._elementRef=t}}const XR=cx(ux(QR),"primary");let KR=(()=>{class t extends XR{constructor(t,e,i,n){super(t),this._changeDetectorRef=e,this._animationMode=n,this._tabs=new Oc,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=d.EMPTY,this._tabLabelSubscription=d.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new kc,this.focusChange=new kc,this.animationDone=new kc,this.selectedTabChange=new kc(!0),this._groupId=qR++,this.animationDuration=i&&i.animationDuration?i.animationDuration:"500ms",this.disablePagination=!(!i||null==i.disablePagination)&&i.disablePagination,this.dynamicHeight=!(!i||null==i.dynamicHeight)&&i.dynamicHeight}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(t){this._dynamicHeight=wg(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=Cg(t,null)}get animationDuration(){return this._animationDuration}set animationDuration(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement;e.classList.remove(`mat-background-${this.backgroundColor}`),t&&e.classList.add(`mat-background-${t}`),this._backgroundColor=t}ngAfterContentChecked(){const t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){const e=null==this._selectedIndex;e||this.selectedTabChange.emit(this._createChangeEvent(t)),Promise.resolve().then(()=>{this._tabs.forEach((e,i)=>e.isActive=i===t),e||this.selectedIndexChange.emit(t)})}this._tabs.forEach((e,i)=>{e.position=i-t,null==this._selectedIndex||0!=e.position||e.origin||(e.origin=t-this._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const t=this._tabs.toArray();for(let e=0;e{this._tabs.reset(t.filter(t=>t._closestTabGroup===this)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}_focusChanged(t){this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){const e=new YR;return e.index=t,this._tabs&&this._tabs.length&&(e.tab=this._tabs.toArray()[t]),e}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Y(...this._tabs.map(t=>t._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}_getTabLabelId(t){return`mat-tab-label-${this._groupId}-${t}`}_getTabContentId(t){return`mat-tab-content-${this._groupId}-${t}`}_setTabBodyWrapperHeight(t){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const e=this._tabBodyWrapper.nativeElement;e.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(e.style.height=t+"px")}_removeTabBodyWrapperHeight(){const t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()}_handleClick(t,e,i){t.disabled||(this.selectedIndex=e.focusIndex=i)}_getTabIndex(t,e){return t.disabled?null:this.selectedIndex===e?0:-1}_tabFocusChanged(t,e){t&&(this._tabHeader.focusIndex=e)}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(Vl),$o($R,8),$o(QC,8))},t.\u0275dir=ie({type:t,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[Oo]}),t})(),ZR=(()=>{class t extends KR{constructor(t,e,i,n){super(t,e,i,n)}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(Vl),$o($R,8),$o(QC,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-tab-group"]],contentQueries:function(t,e,i){if(1&t&&Bc(i,zR,1),2&t){let t;Nc(t=Hc())&&(e._allTabs=t)}},viewQuery:function(t,e){if(1&t&&(Vc(vR,1),Vc(wR,1)),2&t){let t;Nc(t=Hc())&&(e._tabBodyWrapper=t.first),Nc(t=Hc())&&(e._tabHeader=t.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(t,e){2&t&&Sa("mat-tab-group-dynamic-height",e.dynamicHeight)("mat-tab-group-inverted-header","below"===e.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[rl([{provide:HR,useExisting:t}]),Oo],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(t,e){1&t&&(Qo(0,"mat-tab-header",0,1),ra("indexFocused",function(t){return e._focusChanged(t)})("selectFocusedIndex",function(t){return e.selectedIndex=t}),jo(2,kR,4,14,"div",2),Xo(),Qo(3,"div",3,4),jo(5,AR,1,8,"mat-tab-body",5),Xo()),2&t&&(qo("selectedIndex",e.selectedIndex||0)("disableRipple",e.disableRipple)("disablePagination",e.disablePagination),dr(2),qo("ngForOf",e._tabs),dr(1),Sa("_mat-animation-noopable","NoopAnimations"===e._animationMode),dr(2),qo("ngForOf",e._tabs))},directives:function(){return[rL,Kd,eL,Vx,Cv,Jd,TS,WR]},styles:[".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),t})();class JR{}const tL=lx(JR);let eL=(()=>{class t extends tL{constructor(t){super(),this.elementRef=t}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return t.\u0275fac=function(e){return new(e||t)($o(hl))},t.\u0275dir=ie({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(zo("aria-disabled",!!e.disabled),Sa("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[Oo]}),t})();const iL=Gy({passive:!0});let nL=(()=>{class t{constructor(t,e,i,n,s,r,o){this._elementRef=t,this._changeDetectorRef=e,this._viewportRuler=i,this._dir=n,this._ngZone=s,this._platform=r,this._animationMode=o,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new k,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new k,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new kc,this.indexFocused=new kc,s.runOutsideAngular(()=>{Cf(t.nativeElement,"mouseleave").pipe(Hp(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){t=Cg(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}ngAfterViewInit(){Cf(this._previousPaginator.nativeElement,"touchstart",iL).pipe(Hp(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Cf(this._nextPaginator.nativeElement,"touchstart",iL).pipe(Hp(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const t=this._dir?this._dir.change:Sp(null),e=this._viewportRuler.change(150),i=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new rv(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),Y(t,e,this._items.changes).pipe(Hp(this._destroyed)).subscribe(()=>{Promise.resolve().then(i),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(Hp(this._destroyed)).subscribe(t=>{this.indexFocused.emit(t),this._setTabFocus(t)})}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(t){if(!My(t))switch(t.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}}_onContentChanges(){const t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}_isValidIndex(t){if(!this._items)return!0;const e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();const e=this._tabListContainer.nativeElement,i=this._getLayoutDirection();e.scrollLeft="ltr"==i?0:e.scrollWidth-e.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const t=this.scrollDistance,e="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(e)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;const e=this._items?this._items.toArray()[t]:null;if(!e)return;const i=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:n,offsetWidth:s}=e.elementRef.nativeElement;let r,o;"ltr"==this._getLayoutDirection()?(r=n,o=r+s):(o=this._tabList.nativeElement.offsetWidth-n,r=o-s);const a=this.scrollDistance,l=this.scrollDistance+i;rl&&(this.scrollDistance+=o-l+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,e){e&&null!=e.button&&0!==e.button||(this._stopInterval(),gp(650,100).pipe(Hp(Y(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:e,distance:i}=this._scrollHeader(t);(0===i||i>=e)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(Vl),$o(yS),$o(Xg,8),$o(mu),$o(Ry),$o(QC,8))},t.\u0275dir=ie({type:t,inputs:{disablePagination:"disablePagination"}}),t})(),sL=(()=>{class t extends nL{constructor(t,e,i,n,s,r,o){super(t,e,i,n,s,r,o),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=wg(t)}_itemSelected(t){t.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(Vl),$o(yS),$o(Xg,8),$o(mu),$o(Ry),$o(QC,8))},t.\u0275dir=ie({type:t,inputs:{disableRipple:"disableRipple"},features:[Oo]}),t})(),rL=(()=>{class t extends sL{constructor(t,e,i,n,s,r,o){super(t,e,i,n,s,r,o)}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(Vl),$o(yS),$o(Xg,8),$o(mu),$o(Ry),$o(QC,8))},t.\u0275cmp=Xt({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,i){if(1&t&&Bc(i,eL,0),2&t){let t;Nc(t=Hc())&&(e._items=t)}},viewQuery:function(t,e){if(1&t&&(Vc(IR,3),Vc(OR,3),Vc(ER,3),Vc(TR,1),Vc(PR,1)),2&t){let t;Nc(t=Hc())&&(e._inkBar=t.first),Nc(t=Hc())&&(e._tabListContainer=t.first),Nc(t=Hc())&&(e._tabList=t.first),Nc(t=Hc())&&(e._nextPaginator=t.first),Nc(t=Hc())&&(e._previousPaginator=t.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&Sa("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[Oo],ngContentSelectors:gR,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(ha(),Qo(0,"div",0,1),ra("click",function(){return e._handlePaginatorClick("before")})("mousedown",function(t){return e._handlePaginatorPress("before",t)})("touchend",function(){return e._stopInterval()}),Ko(2,"div",2),Xo(),Qo(3,"div",3,4),ra("keydown",function(t){return e._handleKeydown(t)}),Qo(5,"div",5,6),ra("cdkObserveContent",function(){return e._onContentChanges()}),Qo(7,"div",7),pa(8),Xo(),Ko(9,"mat-ink-bar"),Xo(),Xo(),Qo(10,"div",8,9),ra("mousedown",function(t){return e._handlePaginatorPress("after",t)})("click",function(){return e._handlePaginatorClick("after")})("touchend",function(){return e._stopInterval()}),Ko(12,"div",2),Xo()),2&t&&(Sa("mat-tab-header-pagination-disabled",e._disableScrollBefore),qo("matRippleDisabled",e._disableScrollBefore||e.disableRipple),dr(5),Sa("_mat-animation-noopable","NoopAnimations"===e._animationMode),dr(5),Sa("mat-tab-header-pagination-disabled",e._disableScrollAfter),qo("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[Vx,Yy,IR],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),t})(),oL=(()=>{class t extends nL{constructor(t,e,i,n,s,r,o){super(t,n,s,e,i,r,o),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement.classList;e.remove(`mat-background-${this.backgroundColor}`),t&&e.add(`mat-background-${t}`),this._backgroundColor=t}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=wg(t)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe(jp(null),Hp(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const t=this._items.toArray();for(let e=0;e{class t extends oL{constructor(t,e,i,n,s,r,o){super(t,e,i,n,s,r,o)}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(Xg,8),$o(mu),$o(Vl),$o(yS),$o(Ry),$o(QC,8))},t.\u0275cmp=Xt({type:t,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(t,e,i){if(1&t&&Bc(i,dL,1),2&t){let t;Nc(t=Hc())&&(e._items=t)}},viewQuery:function(t,e){if(1&t&&(Vc(IR,3),Vc(OR,3),Vc(ER,3),Vc(TR,1),Vc(PR,1)),2&t){let t;Nc(t=Hc())&&(e._inkBar=t.first),Nc(t=Hc())&&(e._tabListContainer=t.first),Nc(t=Hc())&&(e._tabList=t.first),Nc(t=Hc())&&(e._nextPaginator=t.first),Nc(t=Hc())&&(e._previousPaginator=t.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:10,hostBindings:function(t,e){2&t&&Sa("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())("mat-primary","warn"!==e.color&&"accent"!==e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color)},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[Oo],attrs:DR,ngContentSelectors:gR,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(ha(),Qo(0,"div",0,1),ra("click",function(){return e._handlePaginatorClick("before")})("mousedown",function(t){return e._handlePaginatorPress("before",t)})("touchend",function(){return e._stopInterval()}),Ko(2,"div",2),Xo(),Qo(3,"div",3,4),ra("keydown",function(t){return e._handleKeydown(t)}),Qo(5,"div",5,6),ra("cdkObserveContent",function(){return e._onContentChanges()}),Qo(7,"div",7),pa(8),Xo(),Ko(9,"mat-ink-bar"),Xo(),Xo(),Qo(10,"div",8,9),ra("mousedown",function(t){return e._handlePaginatorPress("after",t)})("click",function(){return e._handlePaginatorClick("after")})("touchend",function(){return e._stopInterval()}),Ko(12,"div",2),Xo()),2&t&&(Sa("mat-tab-header-pagination-disabled",e._disableScrollBefore),qo("matRippleDisabled",e._disableScrollBefore||e.disableRipple),dr(5),Sa("_mat-animation-noopable","NoopAnimations"===e._animationMode),dr(5),Sa("mat-tab-header-pagination-disabled",e._disableScrollAfter),qo("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[Vx,Yy,IR],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n'],encapsulation:2}),t})();class lL{}const cL=dx(ux(lx(lL)));let uL=(()=>{class t extends cL{constructor(t,e,i,n,s,r){super(),this._tabNavBar=t,this.elementRef=e,this._focusMonitor=s,this._isActive=!1,this.rippleConfig=i||{},this.tabIndex=parseInt(n)||0,"NoopAnimations"===r&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(t){wg(t)!==this._isActive&&(this._isActive=t,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}}return t.\u0275fac=function(e){return new(e||t)($o(oL),$o(hl),$o(Nx,8),Ki("tabindex"),$o(vv),$o(QC,8))},t.\u0275dir=ie({type:t,inputs:{active:"active"},features:[Oo]}),t})(),dL=(()=>{class t extends uL{constructor(t,e,i,n,s,r,o,a){super(t,e,s,r,o,a),this._tabLinkRipple=new Fx(this,i,e,n),this._tabLinkRipple.setupTriggerEvents(e.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return t.\u0275fac=function(e){return new(e||t)($o(aL),$o(hl),$o(mu),$o(Ry),$o(Nx,8),Ki("tabindex"),$o(vv),$o(QC,8))},t.\u0275dir=ie({type:t,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:7,hostBindings:function(t,e){2&t&&(zo("aria-current",e.active?"page":null)("aria-disabled",e.disabled)("tabIndex",e.tabIndex),Sa("mat-tab-disabled",e.disabled)("mat-tab-label-active",e.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[Oo]}),t})(),hL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[yh,ax,PS,Bx,Qy,Sv],ax]}),t})();const pL=["*",[["mat-toolbar-row"]]],mL=["*","mat-toolbar-row"];class fL{constructor(t){this._elementRef=t}}const gL=cx(fL);let _L=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ie({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),bL=(()=>{class t extends gL{constructor(t,e,i){super(t),this._platform=e,this._document=i}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(Ry),$o(qu))},t.\u0275cmp=Xt({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,i){if(1&t&&Bc(i,_L,1),2&t){let t;Nc(t=Hc())&&(e._toolbarRows=t)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&Sa("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[Oo],ngContentSelectors:mL,decls:2,vars:0,template:function(t,e){1&t&&(ha(pL),pa(0),pa(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%}\n"],encapsulation:2,changeDetection:0}),t})(),yL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[ax],ax]}),t})();class vL extends class{constructor(){this.expansionModel=new mS(!0)}toggle(t){this.expansionModel.toggle(this._trackByValue(t))}expand(t){this.expansionModel.select(this._trackByValue(t))}collapse(t){this.expansionModel.deselect(this._trackByValue(t))}isExpanded(t){return this.expansionModel.isSelected(this._trackByValue(t))}toggleDescendants(t){this.expansionModel.isSelected(this._trackByValue(t))?this.collapseDescendants(t):this.expandDescendants(t)}collapseAll(){this.expansionModel.clear()}expandDescendants(t){let e=[t];e.push(...this.getDescendants(t)),this.expansionModel.select(...e.map(t=>this._trackByValue(t)))}collapseDescendants(t){let e=[t];e.push(...this.getDescendants(t)),this.expansionModel.deselect(...e.map(t=>this._trackByValue(t)))}_trackByValue(t){return this.trackBy?this.trackBy(t):t}}{constructor(t,e){super(),this.getChildren=t,this.options=e,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const t=this.dataNodes.reduce((t,e)=>[...t,...this.getDescendants(e),e],[]);this.expansionModel.select(...t.map(t=>this._trackByValue(t)))}getDescendants(t){const e=[];return this._getDescendants(e,t),e.splice(1)}_getDescendants(t,e){t.push(e);const i=this.getChildren(e);Array.isArray(i)?i.forEach(e=>this._getDescendants(t,e)):sS(i)&&i.pipe(Tf(1),Mm(Boolean)).subscribe(e=>{for(const i of e)this._getDescendants(t,i)})}}const wL=new en("CDK_TREE_NODE_OUTLET_NODE");let CL=(()=>{class t{constructor(t,e){this.viewContainer=t,this._node=e}}return t.\u0275fac=function(e){return new(e||t)($o(Kl),$o(wL,8))},t.\u0275dir=ie({type:t,selectors:[["","cdkTreeNodeOutlet",""]]}),t})();class xL{constructor(t){this.$implicit=t}}let SL=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)($o(jl))},t.\u0275dir=ie({type:t,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),t})(),kL=(()=>{class t{constructor(t,e){this._differs=t,this._changeDetectorRef=e,this._onDestroy=new k,this._levels=new Map,this.viewChange=new cp({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}ngAfterContentChecked(){const t=this._nodeDefs.filter(t=>!t.when);this._defaultNodeDef=t[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(t){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),t||this._nodeOutlet.viewContainer.clear(),this._dataSource=t,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let t;hS(this._dataSource)?t=this._dataSource.connect(this):sS(this._dataSource)?t=this._dataSource:Array.isArray(this._dataSource)&&(t=Sp(this._dataSource)),t&&(this._dataSubscription=t.pipe(Hp(this._onDestroy)).subscribe(t=>this.renderNodeChanges(t)))}renderNodeChanges(t,e=this._dataDiffer,i=this._nodeOutlet.viewContainer,n){const s=e.diff(t);s&&(s.forEachOperation((e,s,r)=>{if(null==e.previousIndex)this.insertNode(t[r],r,i,n);else if(null==r)i.remove(s),this._levels.delete(e.item);else{const t=i.get(s);i.move(t,r)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(t,e){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(i=>i.when&&i.when(e,t))||this._defaultNodeDef}insertNode(t,e,i,n){const s=this._getNodeDef(t,e),r=new xL(t);r.level=this.treeControl.getLevel?this.treeControl.getLevel(t):void 0!==n&&this._levels.has(n)?this._levels.get(n)+1:0,this._levels.set(t,r.level),(i||this._nodeOutlet.viewContainer).createEmbeddedView(s.template,r,e),AL.mostRecentTreeNode&&(AL.mostRecentTreeNode.data=t)}}return t.\u0275fac=function(e){return new(e||t)($o(Dl),$o(Vl))},t.\u0275cmp=Xt({type:t,selectors:[["cdk-tree"]],contentQueries:function(t,e,i){if(1&t&&Bc(i,SL,1),2&t){let t;Nc(t=Hc())&&(e._nodeDefs=t)}},viewQuery:function(t,e){if(1&t&&Vc(CL,3),2&t){let t;Nc(t=Hc())&&(e._nodeOutlet=t.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(t,e){1&t&&ta(0,0)},directives:[CL],encapsulation:2}),t})(),AL=(()=>{class t{constructor(e,i){this._elementRef=e,this._tree=i,this._destroyed=new k,this._dataChanges=new k,t.mostRecentTreeNode=this,this._elementRef.nativeElement.classList.add("cdk-tree-node"),this.role="treeitem"}get role(){return"treeitem"}set role(t){this._elementRef.nativeElement.setAttribute("role",t)}get data(){return this._data}set data(t){t!==this._data&&(this._data=t,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}_setExpanded(t){this._isAriaExpanded=t,this._elementRef.nativeElement.setAttribute("aria-expanded",`${t}`)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}ngOnInit(){this._parentNodeAriaLevel=function(t){let e=t.parentElement;for(;e&&!OL(e);)e=e.parentElement;return e?e.classList.contains("cdk-nested-tree-node")?Cg(e.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngDoCheck(){this.isExpanded!=this._isAriaExpanded&&this._setExpanded(this.isExpanded)}ngOnDestroy(){t.mostRecentTreeNode===this&&(t.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(kL))},t.\u0275dir=ie({type:t,selectors:[["cdk-tree-node"]],inputs:{role:"role"},exportAs:["cdkTreeNode"]}),t.mostRecentTreeNode=null,t})();function OL(t){const e=t.classList;return!(!(null==e?void 0:e.contains("cdk-nested-tree-node"))&&!(null==e?void 0:e.contains("cdk-tree")))}let EL=(()=>{class t extends AL{constructor(t,e,i){super(t,e),this._elementRef=t,this._tree=e,this._differs=i,this._elementRef.nativeElement.classList.add("cdk-nested-tree-node")}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const t=this._tree.treeControl.getChildren(this.data);Array.isArray(t)?this.updateChildrenNodes(t):sS(t)&&t.pipe(Hp(this._destroyed)).subscribe(t=>this.updateChildrenNodes(t)),this.nodeOutlet.changes.pipe(Hp(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngDoCheck(){super.ngDoCheck()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(t){const e=this._getNodeOutlet();t&&(this._children=t),e&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,e.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const t=this._getNodeOutlet();t&&(t.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const t=this.nodeOutlet;return t&&t.find(t=>!t._node||t._node===this)}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(kL),$o(Dl))},t.\u0275dir=ie({type:t,selectors:[["cdk-nested-tree-node"]],contentQueries:function(t,e,i){if(1&t&&Bc(i,CL,1),2&t){let t;Nc(t=Hc())&&(e.nodeOutlet=t)}},inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[rl([{provide:AL,useExisting:t},{provide:wL,useExisting:t}]),Oo]}),t})();const TL=/([A-Za-z%]+)$/;let PL=(()=>{class t{constructor(t,e,i,n){this._treeNode=t,this._tree=e,this._element=i,this._dir=n,this._destroyed=new k,this.indentUnits="px",this._indent=40,this._setPadding(),n&&n.change.pipe(Hp(this._destroyed)).subscribe(()=>this._setPadding(!0)),t._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(t){this._setLevelInput(t)}get indent(){return this._indent}set indent(t){this._setIndentInput(t)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const t=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,e=null==this._level?t:this._level;return"number"==typeof e?`${e*this._indent}${this.indentUnits}`:null}_setPadding(t=!1){const e=this._paddingIndent();if(e!==this._currentPadding||t){const t=this._element.nativeElement,i=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",n="paddingLeft"===i?"paddingRight":"paddingLeft";t.style[i]=e||"",t.style[n]="",this._currentPadding=e}}_setLevelInput(t){this._level=Cg(t,null),this._setPadding()}_setIndentInput(t){let e=t,i="px";if("string"==typeof t){const n=t.split(TL);e=n[0],i=n[1]||i}this.indentUnits=i,this._indent=Cg(e),this._setPadding()}}return t.\u0275fac=function(e){return new(e||t)($o(AL),$o(kL),$o(hl),$o(Xg,8))},t.\u0275dir=ie({type:t,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),t})(),DL=(()=>{class t{constructor(t,e){this._tree=t,this._treeNode=e,this._recursive=!1}get recursive(){return this._recursive}set recursive(t){this._recursive=wg(t)}_toggle(t){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),t.stopPropagation()}}return t.\u0275fac=function(e){return new(e||t)($o(kL),$o(AL))},t.\u0275dir=ie({type:t,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(t,e){1&t&&ra("click",function(t){return e._toggle(t)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),t})(),ML=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({}),t})();const IL=dx(lx(AL));let RL=(()=>{class t extends IL{constructor(t,e,i){super(t,e),this._elementRef=t,this._tree=e,this.tabIndex=Number(i)||0,this._elementRef.nativeElement.classList.add("mat-tree-node")}ngOnInit(){super.ngOnInit()}ngDoCheck(){super.ngDoCheck()}ngOnDestroy(){super.ngOnDestroy()}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(kL),Ki("tabindex"))},t.\u0275dir=ie({type:t,selectors:[["mat-tree-node"]],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[rl([{provide:AL,useExisting:t}]),Oo]}),t})(),LL=(()=>{class t extends SL{}return t.\u0275fac=function(e){return FL(e||t)},t.\u0275dir=ie({type:t,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[rl([{provide:SL,useExisting:t}]),Oo]}),t})();const FL=Qi(LL);let NL=(()=>{class t extends EL{constructor(t,e,i,n){super(t,e,i),this._elementRef=t,this._tree=e,this._differs=i,this._disabled=!1,this.tabIndex=Number(n)||0,this._elementRef.nativeElement.classList.add("mat-nested-tree-node")}get disabled(){return this._disabled}set disabled(t){this._disabled=wg(t)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?t:0}ngOnInit(){super.ngOnInit()}ngDoCheck(){super.ngDoCheck()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return t.\u0275fac=function(e){return new(e||t)($o(hl),$o(kL),$o(Dl),Ki("tabindex"))},t.\u0275dir=ie({type:t,selectors:[["mat-nested-tree-node"]],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[rl([{provide:EL,useExisting:t},{provide:AL,useExisting:t},{provide:wL,useExisting:t}]),Oo]}),t})(),VL=(()=>{class t extends PL{get level(){return this._level}set level(t){this._setLevelInput(t)}get indent(){return this._indent}set indent(t){this._setIndentInput(t)}}return t.\u0275fac=function(e){return BL(e||t)},t.\u0275dir=ie({type:t,selectors:[["","matTreeNodePadding",""]],inputs:{level:["matTreeNodePadding","level"],indent:["matTreeNodePaddingIndent","indent"]},features:[rl([{provide:PL,useExisting:t}]),Oo]}),t})();const BL=Qi(VL);let HL=(()=>{class t{constructor(t,e){this.viewContainer=t,this._node=e}}return t.\u0275fac=function(e){return new(e||t)($o(Kl),$o(wL,8))},t.\u0275dir=ie({type:t,selectors:[["","matTreeNodeOutlet",""]],features:[rl([{provide:CL,useExisting:t}])]}),t})(),zL=(()=>{class t extends kL{}return t.\u0275fac=function(e){return GL(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["mat-tree"]],viewQuery:function(t,e){if(1&t&&Vc(HL,3),2&t){let t;Nc(t=Hc())&&(e._nodeOutlet=t.first)}},hostAttrs:["role","tree",1,"mat-tree","cdk-tree"],exportAs:["matTree"],features:[rl([{provide:kL,useExisting:t}]),Oo],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(t,e){1&t&&ta(0,0)},directives:[HL],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}\n"],encapsulation:2}),t})();const GL=Qi(zL);let UL=(()=>{class t extends DL{get recursive(){return this._recursive}set recursive(t){this._recursive=wg(t)}}return t.\u0275fac=function(e){return jL(e||t)},t.\u0275dir=ie({type:t,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[rl([{provide:DL,useExisting:t}]),Oo]}),t})();const jL=Qi(UL);let WL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[ML,ax],ax]}),t})();class $L extends dS{constructor(){super(...arguments),this._data=new cp([])}get data(){return this._data.value}set data(t){this._data.next(t)}connect(t){return Y(t.viewChange,this._data).pipe(E(()=>this.data))}disconnect(){}}function qL(...t){return e=>{let i;return"function"==typeof t[t.length-1]&&(i=t.pop()),e.lift(new YL(t,i))}}class YL{constructor(t,e){this.observables=t,this.project=e}call(t,e){return e.subscribe(new QL(t,this.observables,this.project))}}class QL extends lD{constructor(t,e,i){super(t),this.observables=e,this.project=i,this.toRespond=[];const n=e.length;this.values=new Array(n);for(let s=0;s0){const t=n.indexOf(i);-1!==t&&n.splice(t,1)}}notifyComplete(){}_next(t){if(0===this.toRespond.length){const e=[t,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(t){let e;try{e=this.project.apply(this,t)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}function XL(t,e){let i=!1;return arguments.length>=2&&(i=!0),function(n){return n.lift(new KL(t,e,i))}}class KL{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new ZL(t,this.accumulator,this.seed,this.hasSeed))}}class ZL extends m{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)}}class JL{constructor(t){this.predicate=t}call(t,e){return e.subscribe(new tF(t,this.predicate))}}class tF extends m{constructor(t,e){super(t),this.predicate=e,this.skipping=!0,this.index=0}_next(t){const e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)}tryCallPredicate(t){try{const e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(e){this.destination.error(e)}}}const eF=["youtubeContainer"];let iF=(()=>{class t{constructor(t,e){this._ngZone=t,this._youtubeContainer=new k,this._destroyed=new k,this._playerChanges=new cp(void 0),this._videoId=new cp(void 0),this._height=new cp(390),this._width=new cp(640),this._startSeconds=new cp(void 0),this._endSeconds=new cp(void 0),this._suggestedQuality=new cp(void 0),this._playerVars=new cp(void 0),this.ready=this._getLazyEmitter("onReady"),this.stateChange=this._getLazyEmitter("onStateChange"),this.error=this._getLazyEmitter("onError"),this.apiChange=this._getLazyEmitter("onApiChange"),this.playbackQualityChange=this._getLazyEmitter("onPlaybackQualityChange"),this.playbackRateChange=this._getLazyEmitter("onPlaybackRateChange"),this._isBrowser=vh(e)}get videoId(){return this._videoId.value}set videoId(t){this._videoId.next(t)}get height(){return this._height.value}set height(t){this._height.next(t||390)}get width(){return this._width.value}set width(t){this._width.next(t||640)}set startSeconds(t){this._startSeconds.next(t)}set endSeconds(t){this._endSeconds.next(t)}set suggestedQuality(t){this._suggestedQuality.next(t)}get playerVars(){return this._playerVars.value}set playerVars(t){this._playerVars.next(t)}ngOnInit(){if(!this._isBrowser)return;let t=Sp(!0);if(!window.YT||!window.YT.Player){const e=new k;this._existingApiReadyCallback=window.onYouTubeIframeAPIReady,window.onYouTubeIframeAPIReady=()=>{this._existingApiReadyCallback&&this._existingApiReadyCallback(),this._ngZone.run(()=>e.next(!0))},t=e.pipe(Tf(1),jp(!1))}const e=function(t,e,i,n,s,r,o){const a=hD([e,r]).pipe(qL(hD([n,s])),E(([t,e])=>{const[i,n]=t,[s,r]=e;return i?{videoId:i,playerVars:n,width:s,height:r}:void 0}));return hD([t,a,Sp(o)]).pipe(b(function(...t){let e=null;return"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&l(t[0])&&(t=t[0].slice()),i=>i.lift.call(V([i,...t]),new pD(e))}(i),(c=([t,e])=>!e,t=>t.lift(new JL(c))),E(([t])=>t)),XL(nF,void 0),Np());var c}(this._youtubeContainer,this._videoId,t,this._width,this._height,this._playerVars,this._ngZone).pipe(If(t=>{this._playerChanges.next(t)}),(i=t=>{sF(t)||t.destroy()},W(t=>t?sF(t)?Sp(t):new v(e=>{let n=!1,s=!1;const r=t=>{s=!0,n||(t.target.removeEventListener("onReady",r),e.next(t.target))};return t.addEventListener("onReady",r),()=>{n=!0,s||i(t)}}).pipe(Tf(1),jp(void 0)):Sp(void 0))),Hp(this._destroyed),et(new k));var i;e.subscribe(t=>{this._player=t,t&&this._pendingPlayerState&&this._initializePlayer(t,this._pendingPlayerState),this._pendingPlayerState=void 0}),function(t,e,i){hD([t,e,i]).subscribe(([t,e,i])=>t&&t.setSize(e,i))}(e,this._width,this._height),function(t,e){hD([t,e]).subscribe(([t,e])=>t&&e&&t.setPlaybackQuality(e))}(e,this._suggestedQuality),function(t,e,i,n,s,r){const o=hD([i,n]).pipe(E(([t,e])=>({startSeconds:t,endSeconds:e}))),a=o.pipe(rF(t,t=>!!t&&!function(t){const e=t.getPlayerState();return-1!==e&&5!==e}(t))),l=e.pipe(rF(t,(t,e)=>!!t&&t.videoId!==e));Y(t.pipe(rF(hD([e,o]),([t,e],i)=>!(!i||t==i.videoId&&!e.startSeconds&&!e.endSeconds))),l,a).pipe(qL(hD([t,e,o,s])),E(([t,e])=>e),Hp(r)).subscribe(([t,e,i,n])=>{e&&t&&(t.videoId=e,t.cueVideoById(Object.assign({videoId:e,suggestedQuality:n},i)))})}(e,this._videoId,this._startSeconds,this._endSeconds,this._suggestedQuality,this._destroyed),e.connect()}createEventsBoundInZone(){return{}}ngAfterViewInit(){this._youtubeContainer.next(this.youtubeContainer.nativeElement)}ngOnDestroy(){this._player&&(this._player.destroy(),window.onYouTubeIframeAPIReady=this._existingApiReadyCallback),this._playerChanges.complete(),this._videoId.complete(),this._height.complete(),this._width.complete(),this._startSeconds.complete(),this._endSeconds.complete(),this._suggestedQuality.complete(),this._youtubeContainer.complete(),this._playerVars.complete(),this._destroyed.next(),this._destroyed.complete()}playVideo(){this._player?this._player.playVideo():this._getPendingState().playbackState=1}pauseVideo(){this._player?this._player.pauseVideo():this._getPendingState().playbackState=2}stopVideo(){this._player?this._player.stopVideo():this._getPendingState().playbackState=5}seekTo(t,e){this._player?this._player.seekTo(t,e):this._getPendingState().seek={seconds:t,allowSeekAhead:e}}mute(){this._player?this._player.mute():this._getPendingState().muted=!0}unMute(){this._player?this._player.unMute():this._getPendingState().muted=!1}isMuted(){return this._player?this._player.isMuted():!!this._pendingPlayerState&&!!this._pendingPlayerState.muted}setVolume(t){this._player?this._player.setVolume(t):this._getPendingState().volume=t}getVolume(){return this._player?this._player.getVolume():this._pendingPlayerState&&null!=this._pendingPlayerState.volume?this._pendingPlayerState.volume:0}setPlaybackRate(t){if(this._player)return this._player.setPlaybackRate(t);this._getPendingState().playbackRate=t}getPlaybackRate(){return this._player?this._player.getPlaybackRate():this._pendingPlayerState&&null!=this._pendingPlayerState.playbackRate?this._pendingPlayerState.playbackRate:0}getAvailablePlaybackRates(){return this._player?this._player.getAvailablePlaybackRates():[]}getVideoLoadedFraction(){return this._player?this._player.getVideoLoadedFraction():0}getPlayerState(){if(this._isBrowser&&window.YT)return this._player?this._player.getPlayerState():this._pendingPlayerState&&null!=this._pendingPlayerState.playbackState?this._pendingPlayerState.playbackState:-1}getCurrentTime(){return this._player?this._player.getCurrentTime():this._pendingPlayerState&&this._pendingPlayerState.seek?this._pendingPlayerState.seek.seconds:0}getPlaybackQuality(){return this._player?this._player.getPlaybackQuality():"default"}getAvailableQualityLevels(){return this._player?this._player.getAvailableQualityLevels():[]}getDuration(){return this._player?this._player.getDuration():0}getVideoUrl(){return this._player?this._player.getVideoUrl():""}getVideoEmbedCode(){return this._player?this._player.getVideoEmbedCode():""}_getPendingState(){return this._pendingPlayerState||(this._pendingPlayerState={}),this._pendingPlayerState}_initializePlayer(t,e){const{playbackState:i,playbackRate:n,volume:s,muted:r,seek:o}=e;switch(i){case 1:t.playVideo();break;case 2:t.pauseVideo();break;case 5:t.stopVideo()}null!=n&&t.setPlaybackRate(n),null!=s&&t.setVolume(s),null!=r&&(r?t.mute():t.unMute()),null!=o&&t.seekTo(o.seconds,o.allowSeekAhead)}_getLazyEmitter(t){return this._playerChanges.pipe(Rp(e=>e?bp(i=>{e.addEventListener(t,i)},i=>{try{e.removeEventListener&&e.removeEventListener(t,i)}catch(i2){}}):Sp()),t=>new v(e=>t.subscribe({next:t=>this._ngZone.run(()=>e.next(t)),error:t=>e.error(t),complete:()=>e.complete()})),Hp(this._destroyed))}}return t.\u0275fac=function(e){return new(e||t)($o(mu),$o(Jc))},t.\u0275cmp=Xt({type:t,selectors:[["youtube-player"]],viewQuery:function(t,e){if(1&t&&Vc(eF,1),2&t){let t;Nc(t=Hc())&&(e.youtubeContainer=t.first)}},inputs:{videoId:"videoId",height:"height",width:"width",startSeconds:"startSeconds",endSeconds:"endSeconds",suggestedQuality:"suggestedQuality",playerVars:"playerVars",showBeforeIframeApiLoads:"showBeforeIframeApiLoads"},outputs:{ready:"ready",stateChange:"stateChange",error:"error",apiChange:"apiChange",playbackQualityChange:"playbackQualityChange",playbackRateChange:"playbackRateChange"},decls:2,vars:0,consts:[["youtubeContainer",""]],template:function(t,e){1&t&&Ko(0,"div",null,0)},encapsulation:2,changeDetection:0}),t})();function nF(t,[e,i,n]){if(t&&i&&t.playerVars!==i.playerVars)t.destroy();else{if(!i)return void(t&&t.destroy());if(t)return t}const s=n.runOutsideAngular(()=>new YT.Player(e,i));return s.videoId=i.videoId,s.playerVars=i.playerVars,s}function sF(t){return"getPlayerStatus"in t}function rF(t,e){return b(qL(t),Mm(([t,i])=>e(i,t)),E(([t])=>t))}let oF=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({}),t})();const aF=["content"];function lF(t,e){if(1&t&&Ko(0,"formly-field",2),2&t){const t=e.$implicit;qo("form",t.form)("options",t.options)("model",t.model)("field",t)}}const cF=["*"],uF=["container"];function dF(t,e){}const hF=["fieldComponent"];function pF(t,e){1&t&&Ko(0,"formly-field",1),2&t&&qo("field",e.$implicit)}function mF(t,e,i){if(e.id)return e.id;let n=e.type;return!n&&e.template&&(n="template"),[t,n,e.key,i].join("_")}function fF(t){if(!t.key)return[];if(!t._keyPath||t._keyPath.key!==t.key){let e=[];if("string"==typeof t.key){const i=-1===t.key.indexOf("[")?t.key:t.key.replace(/\[(\w+)\]/g,".$1");e=-1!==i.indexOf(".")?i.split("."):[i]}else e=Array.isArray(t.key)?t.key.slice(0):[`${t.key}`];t._keyPath={key:t.key,path:e}}return t._keyPath.path.slice(0)}const gF=["required","pattern","minLength","maxLength","min","max"];function _F(t,e){let i=fF(t);if(0===i.length)return;let n=t;for(;n.parent;)n=n.parent,i=[...fF(n),...i];if(void 0===e&&t.resetOnHide){const t=i.pop();delete i.reduce((t,e)=>t[e]||{},n.model)[t]}else!function(t,e,i){for(let n=0;n{for(let s in e)vF(t[s])||""===t[s]?t[s]=SF(e[s]):(n=e[s],xF(i=t[s])&&xF(n)&&Object.getPrototypeOf(i)===Object.getPrototypeOf(n)&&!Array.isArray(i)&&!Array.isArray(n)&&yF(t[s],e[s]));var i,n}),t}function vF(t){return null==t}function wF(t){return void 0===t}function CF(t){return"function"==typeof t}function xF(t){return null!=t&&"object"==typeof t}function SF(t){if(!xF(t)||sS(t)||t.changingThisBreaksApplicationSecurity||-1!==["RegExp","FileList","File","Blob"].indexOf(t.constructor.name))return t;if(t._isAMomentObject&&CF(t.clone))return t.clone();if(t instanceof ay)return null;if(t instanceof Date)return new Date(t.getTime());if(Array.isArray(t))return t.slice(0).map(t=>SF(t));const e=Object.getPrototypeOf(t);let i=Object.create(e);return i=Object.setPrototypeOf(i,e),Object.keys(t).reduce((e,i)=>{const n=Object.getOwnPropertyDescriptor(t,i);return n.get?Object.defineProperty(e,i,n):e[i]=SF(t[i]),e},i)}function kF(t,e,i){Object.defineProperty(t,e,{enumerable:!1,writable:!0,configurable:!0}),t[e]=i}function AF(t,e,i){t._observers||kF(t,"_observers",{}),t._observers[e]||(t._observers[e]=[]);let n=t._observers[e];return-1===n.indexOf(i)&&(n.push(i),i({currentValue:t[e],firstChange:!0}),1===n.length&&(kF(t,`___$${e}`,t[e]),Object.defineProperty(t,e,{configurable:!0,get:()=>t[`___$${e}`],set:i=>{if(i!==t[`___$${e}`]){const s=t[`___$${e}`];t[`___$${e}`]=i,n.forEach(t=>t({previousValue:s,currentValue:i,firstChange:!1}))}}}))),()=>n.splice(n.indexOf(i),1)}function OF(t,e){const i=t._updateTreeValidity.bind(t);let n={called:!1,emitEvent:!1};t._updateTreeValidity=({emitEvent:t}={emitEvent:!0})=>n={called:!0,emitEvent:t||n.emitEvent},e(),n.called&&i({emitEvent:n.emitEvent}),t._updateTreeValidity=i}const EF=new en("FORMLY_CONFIG");let TF=(()=>{class t{constructor(){this.types={},this.validators={},this.wrappers={},this.messages={},this.templateManipulators={preWrapper:[],postWrapper:[]},this.extras={checkExpressionOn:"changeDetectionCheck",lazyRender:!1,showError:function(t){return t.formControl&&t.formControl.invalid&&(t.formControl.touched||t.options.parentForm&&t.options.parentForm.submitted||!(!t.field.validation||!t.field.validation.show))}},this.extensions={}}addConfig(t){t.types&&t.types.forEach(t=>this.setType(t)),t.validators&&t.validators.forEach(t=>this.setValidator(t)),t.wrappers&&t.wrappers.forEach(t=>this.setWrapper(t)),t.manipulators&&(console.warn("NgxFormly: passing 'manipulators' config is deprecated, use custom extension instead."),t.manipulators.forEach(t=>this.setManipulator(t))),t.validationMessages&&t.validationMessages.forEach(t=>this.addValidatorMessage(t.name,t.message)),t.extensions&&t.extensions.forEach(t=>this.extensions[t.name]=t.extension),t.extras&&(this.extras=Object.assign({},this.extras,t.extras))}setType(t){Array.isArray(t)?t.forEach(t=>this.setType(t)):(this.types[t.name]||(this.types[t.name]={name:t.name}),["component","extends","defaultOptions","wrappers"].forEach(e=>{t.hasOwnProperty(e)&&(this.types[t.name][e]=t[e])}))}getType(t){if(!this.types[t])throw new Error(`[Formly Error] The type "${t}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.mergeExtendedType(t),this.types[t]}getMergedField(t={}){const e=this.getType(t.type);e.defaultOptions&&yF(t,e.defaultOptions);const i=e.extends&&this.getType(e.extends).defaultOptions;i&&yF(t,i),t&&t.optionsTypes&&t.optionsTypes.forEach(e=>{const i=this.getType(e).defaultOptions;i&&yF(t,i)});const n=this.resolveFieldTypeRef(t);n&&n.instance&&n.instance.defaultOptions&&yF(t,n.instance.defaultOptions),!t.wrappers&&e.wrappers&&(t.wrappers=[...e.wrappers])}resolveFieldTypeRef(t={}){if(!t.type)return null;const e=this.getType(t.type);if(!e.component||e._componentRef)return e._componentRef;const{_resolver:i,_injector:n}=t.parent.options,s=i.resolveComponentFactory(e.component).create(n);return kF(e,"_componentRef",s),s.destroy(),e._componentRef}setWrapper(t){this.wrappers[t.name]=t,t.types&&t.types.forEach(e=>{this.setTypeWrapper(e,t.name)})}getWrapper(t){if(!this.wrappers[t])throw new Error(`[Formly Error] The wrapper "${t}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.wrappers[t]}setTypeWrapper(t,e){this.types[t]||(this.types[t]={}),this.types[t].wrappers||(this.types[t].wrappers=[]),-1===this.types[t].wrappers.indexOf(e)&&this.types[t].wrappers.push(e)}setValidator(t){this.validators[t.name]=t}getValidator(t){if(!this.validators[t])throw new Error(`[Formly Error] The validator "${t}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.validators[t]}addValidatorMessage(t,e){this.messages[t]=e}getValidatorMessage(t){return this.messages[t]}setManipulator(t){(new t.class)[t.method](this)}mergeExtendedType(t){if(!this.types[t].extends)return;const e=this.getType(this.types[t].extends);this.types[t].component||(this.types[t].component=e.component),this.types[t].wrappers||(this.types[t].wrappers=e.wrappers)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"}),t.ngInjectableDef=bt({factory:function(){return new t},token:t,providedIn:"root"}),t})(),PF=(()=>{class t{constructor(t,e,i){this.formlyConfig=t,this.componentFactoryResolver=e,this.injector=i}buildForm(t,e=[],i,n){if(!this.formlyConfig.extensions.core)throw new Error("NgxFormly: missing `forRoot()` call. use `forRoot()` when registering the `FormlyModule`.");const s={fieldGroup:e,model:i,formControl:t,options:this._setOptions(n)};OF(t,()=>this._buildForm(s)),s.options._checkField(s,!0)}_buildForm(t){this.getExtensions().forEach(e=>e.prePopulate&&e.prePopulate(t)),this.getExtensions().forEach(e=>e.onPopulate&&e.onPopulate(t)),t.fieldGroup&&t.fieldGroup.forEach(t=>this._buildForm(t)),this.getExtensions().forEach(e=>e.postPopulate&&e.postPopulate(t))}getExtensions(){return Object.keys(this.formlyConfig.extensions).map(t=>this.formlyConfig.extensions[t])}_setOptions(t){return(t=t||{}).formState=t.formState||{},t.showError||(t.showError=this.formlyConfig.extras.showError),t.fieldChanges||kF(t,"fieldChanges",new k),t._resolver||kF(t,"_resolver",this.componentFactoryResolver),t._injector||kF(t,"_injector",this.injector),t._hiddenFieldsForCheck||(t._hiddenFieldsForCheck=[]),t._markForCheck||(t._markForCheck=e=>{e._componentRefs&&e._componentRefs.forEach(t=>{t.injector.get(Vl).markForCheck()}),e.fieldGroup&&e.fieldGroup.forEach(e=>t._markForCheck(e))}),t._buildField||(t._buildField=t=>(this.buildForm(t.form,t.fieldGroup,t.model,t.options),t)),t}}return t.\u0275fac=function(e){return new(e||t)(wn(TF),wn(ll),wn(ko))},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"}),t.ngInjectableDef=bt({factory:function(){return new t(Cn(TF),Cn(ll),Cn(lo))},token:t,providedIn:"root"}),t})();function DF(t,e=!1){const i=t.formControl.parent;if(!i)return;const n=t.formControl,s={emitEvent:e};if(i instanceof uy){const t=i.controls.findIndex(t=>t===n);-1!==t&&LF(i,s,()=>i.removeAt(t))}else if(i instanceof cy){const e=fF(t),r=e[e.length-1];i.get([r])===n&&LF(i,s,()=>i.removeControl(r))}n.setParent(null)}function MF(t){if(t.formControl)return t.formControl;if(!1===t.shareFormControl)return null;const e=t.parent.formControl;return e?e.get(fF(t)):null}function IF(t,e,i=!1){(e=e||t.formControl)._fields||kF(e,"_fields",[]),-1===e._fields.indexOf(t)&&e._fields.push(t),!t.formControl&&e&&(kF(t,"formControl",e),t.templateOptions.disabled=!!t.templateOptions.disabled,AF(t.templateOptions,"disabled",({firstChange:e,currentValue:i})=>{e||(i?t.formControl.disable():t.formControl.enable())}),e.registerOnDisabledChange&&e.registerOnDisabledChange(e=>{t.templateOptions.___$disabled=e,t.options&&t.options._markForCheck(t)}));let n=t.parent.formControl;if(!n||!t.key)return;const s=fF(t),r=bF(t);vF(e.value)&&vF(r)||e.value===r||!(e instanceof ly)||e.patchValue(r);for(let a=0;an.setControl(t,new cy({}))),n=n.get([t])}const o=s[s.length-1];t._hide||n.get([o])===e||LF(n,{emitEvent:i},()=>n.setControl(o,e))}function RF(t){const e=t.status;t.updateValueAndValidity({emitEvent:!1}),e!==t.status&&t.statusChanges.emit(t.status)}function LF(t,e,i){t instanceof cy&&!t.__patchForEachChild&&(kF(t,"__patchForEachChild",!0),t._forEachChild=e=>{Object.keys(t.controls).forEach(i=>t.controls[i]&&e(t.controls[i],i))});const n=t.updateValueAndValidity.bind(t);!1===e.emitEvent&&(t.updateValueAndValidity=t=>{n(Object.assign({},t||{},{emitEvent:!1}))}),i(),!1===e.emitEvent&&(t.updateValueAndValidity=n)}function FF(t){t._fields&&delete t._fields,t.setValidators(null),t.setAsyncValidators(null),(t instanceof cy||t instanceof uy)&&Object.keys(t.controls).forEach(e=>FF(t.controls[e]))}let NF=(()=>{class t{constructor(t,e,i,n,s){this.formlyBuilder=t,this.formlyConfig=e,this.ngZone=i,this.parentFormGroup=s,this.modelChange=new kc,this.immutable=!1,this._modelChangeValue={},this.modelChangeSubs=[],this.modelChange$=new k,this.modelChangeSub=this.modelChange$.pipe(Rp(()=>this.ngZone.onStable.asObservable().pipe(Tf(1)))).subscribe(()=>this.ngZone.runGuarded(()=>{this.checkExpressionChange(),this.modelChange.emit(this._modelChangeValue=SF(this.model))})),null!==n&&console.warn("NgxFormly: passing 'immutable' attribute to 'formly-form' component is deprecated since v5.5, enable immutable mode through NgModule declaration instead."),this.immutable=null!==n||!!e.extras.immutable}set model(t){this._model=this.immutable?SF(t):t}get model(){return this._model||(this._model={}),this._model}set fields(t){this._fields=this.immutable?SF(t):t}get fields(){return this._fields||[]}set options(t){this._options=this.immutable?SF(t):t}get options(){return this._options}set content(t){if(t){let e=!1,i=t.nativeElement.nextSibling;for(;i&&!e;)(i.nodeType===Node.ELEMENT_NODE||i.nodeType===Node.TEXT_NODE&&i.textContent&&""!==i.textContent.trim())&&(e=!0),i=i.nextSibling;e&&console.warn("NgxFormly: content projection for 'formly-form' component is deprecated since v5.5, you should avoid passing content inside the 'formly-form' tag.")}}ngDoCheck(){"changeDetectionCheck"===this.formlyConfig.extras.checkExpressionOn&&this.checkExpressionChange()}ngOnChanges(t){t.model&&this.field&&(this.field.model=this.model),t.fields&&this.form&&FF(this.form),(t.fields||t.form||t.model&&this._modelChangeValue!==t.model.currentValue)&&(this.form=this.form||new cy({}),this.setOptions(),this.options.updateInitialValue(),this.clearModelSubscriptions(),this.formlyBuilder.buildForm(this.form,this.fields,this.model,this.options),this.trackModelChanges(this.fields))}ngOnDestroy(){this.modelChangeSub.unsubscribe(),this.clearModelSubscriptions()}changeModel({value:t,field:e}){_F(e,t),this.modelChange$.next()}setOptions(){this.options||(this.options={}),this.options.resetModel||(this.options.resetModel=t=>{t=SF(vF(t)?this.options._initialModel:t),this.model&&(Object.keys(this.model).forEach(t=>delete this.model[t]),Object.assign(this.model,t||{})),this.options._buildForm(),this.options.parentForm&&this.options.parentForm.control===this.form?this.options.parentForm.resetForm(this.model):this.form.reset(this.model)}),!this.options.parentForm&&this.parentFormGroup&&(kF(this.options,"parentForm",this.parentFormGroup),AF(this.options.parentForm,"submitted",({firstChange:t})=>{t||(this.checkExpressionChange(),this.options._markForCheck({fieldGroup:this.fields,model:this.model,formControl:this.form,options:this.options}))})),this.options.updateInitialValue||(this.options.updateInitialValue=()=>this.options._initialModel=SF(this.model)),this.options._buildForm||(this.options._buildForm=(t=!1)=>{this.clearModelSubscriptions(),this.formlyBuilder.buildForm(this.form,this.fields,this.model,this.options),this.trackModelChanges(this.fields),t&&this.modelChange.emit(this._modelChangeValue=SF(this.model))})}checkExpressionChange(){this.options&&this.options._checkField&&this.options._checkField({fieldGroup:this.fields,model:this.model,formControl:this.form,options:this.options})}trackModelChanges(t,e=[]){t.forEach(t=>{if(t.key&&!t.fieldGroup){const i=t.formControl;let n=i.valueChanges.pipe(Np((t,e)=>t===e&&!Array.isArray(t)&&!xF(t)));const{updateOn:s,debounce:r}=t.modelOptions;(!s||"change"===s)&&r&&r.default>0&&(n=i.valueChanges.pipe(Sf(r.default))),this.modelChangeSubs.push(n.subscribe(n=>{i instanceof ly&&i._fields&&i._fields.length>1&&i.patchValue(n,{emitEvent:!1,onlySelf:!0}),t.parsers&&t.parsers.length>0&&t.parsers.forEach(t=>n=t(n)),this.changeModel({key:[...e,...fF(t)].join("."),value:n,field:t})}));const o=i.valueChanges.observers;o&&o.length>1&&o.unshift(o.pop())}t.fieldGroup&&t.fieldGroup.length>0&&this.trackModelChanges(t.fieldGroup,t.key?[...e,...fF(t)]:e)})}clearModelSubscriptions(){this.modelChangeSubs.forEach(t=>t.unsubscribe()),this.modelChangeSubs=[]}get field(){return this.fields&&this.fields[0]&&this.fields[0].parent}}return t.\u0275fac=function(e){return new(e||t)($o(PF),$o(TF),$o(mu),Ki("immutable"),$o(ky,8))},t.\u0275cmp=Xt({type:t,selectors:[["formly-form"]],viewQuery:function(t,e){if(1&t&&Vc(aF,1),2&t){let t;Nc(t=Hc())&&(e.content=t.first)}},inputs:{model:"model",fields:"fields",options:"options",form:"form"},outputs:{modelChange:"modelChange"},features:[rl([PF]),me],ngContentSelectors:cF,decls:4,vars:1,consts:[["hide-deprecation","",3,"form","options","model","field",4,"ngFor","ngForOf"],["content",""],["hide-deprecation","",3,"form","options","model","field"]],template:function(t,e){1&t&&(ha(),jo(0,lF,1,4,"formly-field",0),Zo(1,null,1),pa(3),Jo()),2&t&&qo("ngForOf",e.fields)},directives:function(){return[Kd,VF]},encapsulation:2}),t})(),VF=(()=>{class t{constructor(t,e,i,n,s){this.formlyConfig=t,this.renderer=e,this.resolver=i,this.elementRef=n,this.warnDeprecation=!1,this.modelChange=new kc,this.hostObservers=[],this.componentRefs=[],this.hooksObservers=[],this.warnDeprecation=null===s}set model(t){this.warnDeprecation&&console.warn(`NgxFormly: passing 'model' input to '${this.constructor.name}' component is not required anymore, you may remove it!`)}set form(t){this.warnDeprecation&&console.warn(`NgxFormly: passing 'form' input to '${this.constructor.name}' component is not required anymore, you may remove it!`)}set options(t){this.warnDeprecation&&console.warn(`NgxFormly: passing 'options' input to '${this.constructor.name}' component is not required anymore, you may remove it!`)}ngAfterContentInit(){this.triggerHook("afterContentInit")}ngAfterContentChecked(){this.triggerHook("afterContentChecked")}ngAfterViewInit(){this.triggerHook("afterViewInit")}ngAfterViewChecked(){this.triggerHook("afterViewChecked")}ngDoCheck(){this.triggerHook("doCheck")}ngOnInit(){this.triggerHook("onInit")}ngOnChanges(t){this.triggerHook("onChanges",t)}ngOnDestroy(){this.resetRefs(this.field),this.hostObservers.forEach(t=>t()),this.hooksObservers.forEach(t=>t()),this.triggerHook("onDestroy")}renderField(t,e,i=[]){if(this.containerRef===t&&(this.resetRefs(this.field),this.containerRef.clear(),i=this.field?this.field.wrappers:[]),i&&i.length>0){const[n,...s]=i,{component:r}=this.formlyConfig.getWrapper(n),o=t.createComponent(this.resolver.resolveComponentFactory(r));this.attachComponentRef(o,e),AF(o.instance,"fieldComponent",({firstChange:t,previousValue:i,currentValue:n})=>{if(n){const r=i?i.detach():null;r&&!r.destroyed?n.insert(r):this.renderField(n,e,s),!t&&o.changeDetectorRef.detectChanges()}})}else if(e&&e.type){const{component:i}=this.formlyConfig.getType(e.type),n=t.createComponent(this.resolver.resolveComponentFactory(i));this.attachComponentRef(n,e)}}triggerHook(t,e){if(this.field&&this.field.hooks&&this.field.hooks[t]&&(!e||e.field)){const e=this.field.hooks[t](this.field);if(sS(e)&&-1!==["onInit","afterContentInit","afterViewInit"].indexOf(t)){const t=e.subscribe();this.hooksObservers.push(()=>t.unsubscribe())}}this.field&&this.field.lifecycle&&this.field.lifecycle[t]&&this.field.lifecycle[t](this.field.form,this.field,this.field.model,this.field.options),"onChanges"===t&&e.field&&(this.resetRefs(e.field.previousValue),this.render())}attachComponentRef(t,e){this.componentRefs.push(t),e._componentRefs.push(t),Object.assign(t.instance,{field:e})}render(){this.field&&(this.hostObservers.forEach(t=>t()),this.hostObservers=[AF(this.field,"hide",({firstChange:t,currentValue:e})=>{this.formlyConfig.extras.lazyRender?e?this.containerRef.clear():this.renderField(this.containerRef,this.field):(t&&this.renderField(this.containerRef,this.field),(!t||t&&e)&&this.renderer.setStyle(this.elementRef.nativeElement,"display",e?"none":""))}),AF(this.field,"className",({firstChange:t,currentValue:e})=>{(!t||t&&e)&&this.renderer.setAttribute(this.elementRef.nativeElement,"class",e)})])}resetRefs(t){t&&(t._componentRefs?t._componentRefs=t._componentRefs.filter(t=>-1===this.componentRefs.indexOf(t)):kF(this.field,"_componentRefs",[])),this.componentRefs=[]}}return t.\u0275fac=function(e){return new(e||t)($o(TF),$o(fl),$o(ll),$o(hl),Ki("hide-deprecation"))},t.\u0275cmp=Xt({type:t,selectors:[["formly-field"]],viewQuery:function(t,e){if(1&t&&Vc(uF,3,Kl),2&t){let t;Nc(t=Hc())&&(e.containerRef=t.first)}},inputs:{model:"model",form:"form",options:"options",field:"field"},outputs:{modelChange:"modelChange"},features:[me],decls:2,vars:0,consts:[["container",""]],template:function(t,e){1&t&&jo(0,dF,0,0,"ng-template",null,0,jc)},encapsulation:2}),t})(),BF=(()=>{class t{constructor(t,e,i){this.renderer=t,this.elementRef=e,this.uiAttributesCache={},this.uiAttributes=[...gF,"tabindex","placeholder","readonly","disabled","step"],this.uiEvents={listeners:[],events:["click","keyup","keydown","keypress"]},this.document=i}get to(){return this.field.templateOptions||{}}get fieldAttrElements(){return this.field&&this.field._elementRefs||[]}ngOnChanges(t){t.field&&(this.field.name&&this.setAttribute("name",this.field.name),this.uiEvents.listeners.forEach(t=>t()),this.uiEvents.events.forEach(t=>{this.to&&this.to[t]&&this.uiEvents.listeners.push(this.renderer.listen(this.elementRef.nativeElement,t,e=>this.to[t](this.field,e)))}),this.to&&this.to.attributes&&AF(this.to,"attributes",({currentValue:t,previousValue:e})=>{e&&Object.keys(e).forEach(t=>this.removeAttribute(t)),t&&Object.keys(t).forEach(e=>this.setAttribute(e,t[e]))}),this.detachElementRef(t.field.previousValue),this.attachElementRef(t.field.currentValue),1===this.fieldAttrElements.length&&(!this.id&&this.field.id&&this.setAttribute("id",this.field.id),AF(this.field,"focus",({currentValue:t})=>{this.toggleFocus(t)}))),t.id&&this.setAttribute("id",this.id)}ngDoCheck(){this.uiAttributes.forEach(t=>{const e=this.to[t];this.uiAttributesCache[t]!==e&&(this.uiAttributesCache[t]=e,e||0===e?this.setAttribute(t,!0===e?t:`${e}`):this.removeAttribute(t))})}ngOnDestroy(){this.uiEvents.listeners.forEach(t=>t()),this.detachElementRef(this.field)}toggleFocus(t){const e=this.fieldAttrElements?this.fieldAttrElements[0]:null;if(!e||!e.nativeElement.focus)return;const i=!!this.document.activeElement&&this.fieldAttrElements.some(({nativeElement:t})=>this.document.activeElement===t||t.contains(this.document.activeElement));t&&!i?e.nativeElement.focus():!t&&i&&e.nativeElement.blur()}onFocus(t){this.field.___$focus=!0,this.to.focus&&this.to.focus(this.field,t)}onBlur(t){this.field.___$focus=!1,this.to.blur&&this.to.blur(this.field,t)}onChange(t){this.to.change&&this.to.change(this.field,t),this.field.formControl&&this.field.formControl.markAsDirty()}attachElementRef(t){t&&(t._elementRefs&&-1===t._elementRefs.indexOf(this.elementRef)?t._elementRefs.push(this.elementRef):kF(t,"_elementRefs",[this.elementRef]))}detachElementRef(t){const e=t&&t._elementRefs?this.fieldAttrElements.indexOf(this.elementRef):-1;-1!==e&&this.field._elementRefs.splice(e,1)}setAttribute(t,e){this.renderer.setAttribute(this.elementRef.nativeElement,t,e)}removeAttribute(t){this.renderer.removeAttribute(this.elementRef.nativeElement,t)}}return t.\u0275fac=function(e){return new(e||t)($o(fl),$o(hl),$o(qu))},t.\u0275dir=ie({type:t,selectors:[["","formlyAttributes",""]],hostBindings:function(t,e){1&t&&ra("focus",function(t){return e.onFocus(t)})("blur",function(t){return e.onBlur(t)})("change",function(t){return e.onChange(t)})},inputs:{field:["formlyAttributes","field"],id:"id"},features:[me]}),t})(),HF=(()=>{class t{get model(){return this.field.model}set model(t){console.warn(`NgxFormly: passing 'model' input to '${this.constructor.name}' component is not required anymore, you may remove it!`)}get form(){return this.field.parent.formControl}set form(t){console.warn(`NgxFormly: passing 'form' input to '${this.constructor.name}' component is not required anymore, you may remove it!`)}get options(){return this.field.options}set options(t){console.warn(`NgxFormly: passing 'options' input to '${this.constructor.name}' component is not required anymore, you may remove it!`)}get key(){return this.field.key}get formControl(){return this.field.formControl}get to(){return this.field.templateOptions||{}}get showError(){return this.options.showError(this)}get id(){return this.field.id}get formState(){return this.options.formState||{}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ie({type:t,inputs:{model:"model",form:"form",options:"options",field:"field"}}),t})(),zF=(()=>{class t extends HF{constructor(t){super(),this.defaultOptions={defaultValue:[]},t instanceof PF&&console.warn(`NgxFormly: passing 'FormlyFormBuilder' to '${this.constructor.name}' type is not required anymore, you may remove it!`)}get formControl(){return this.field.formControl}onPopulate(t){!t.formControl&&t.key&&IF(t,MF(t)||new uy([],{updateOn:t.modelOptions.updateOn})),t.fieldGroup=t.fieldGroup||[];const e=t.model?t.model.length:0;if(t.fieldGroup.length>e)for(let i=t.fieldGroup.length-1;i>=e;--i)DF(t.fieldGroup[i]),t.fieldGroup.splice(i,1);for(let i=t.fieldGroup.length;it.key=`${e}`),this.options._buildForm(!0),e&&this.formControl.markAsDirty()}}return t.\u0275fac=function(e){return new(e||t)($o(EF,8))},t.\u0275dir=ie({type:t,selectors:[["fieldArray"]],features:[Oo]}),t})(),GF=(()=>{class t extends HF{}return t.\u0275fac=function(e){return UF(e||t)},t.\u0275dir=ie({type:t,viewQuery:function(t,e){if(1&t&&Vc(hF,1,Kl),2&t){let t;Nc(t=Hc())&&(e.fieldComponent=t.first)}},features:[Oo]}),t})();const UF=Qi(GF);let jF=(()=>{class t extends HF{constructor(){super(...arguments),this.defaultOptions={defaultValue:{}}}}return t.\u0275fac=function(e){return WF(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["formly-group"]],hostVars:2,hostBindings:function(t,e){2&t&&ka(e.field.fieldGroupClassName||"")},features:[Oo],ngContentSelectors:cF,decls:2,vars:1,consts:[[3,"field",4,"ngFor","ngForOf"],[3,"field"]],template:function(t,e){1&t&&(ha(),jo(0,pF,1,1,"formly-field",0),pa(1)),2&t&&qo("ngForOf",e.field.fieldGroup)},directives:[Kd,VF],encapsulation:2}),t})();const WF=Qi(jF);let $F=(()=>{class t{constructor(t){this.formlyConfig=t}ngOnChanges(){this.errorMessage$=this.field.formControl.statusChanges.pipe(jp(null),Rp(()=>sS(this.errorMessage)?this.errorMessage:Sp(this.errorMessage)))}get errorMessage(){const t=this.field.formControl;for(let e in t.errors)if(t.errors.hasOwnProperty(e)){let i=this.formlyConfig.getValidatorMessage(e);if(xF(t.errors[e])){if(t.errors[e].errorPath)return;t.errors[e].message&&(i=t.errors[e].message)}return this.field.validation&&this.field.validation.messages&&this.field.validation.messages[e]&&(i=this.field.validation.messages[e]),this.field.validators&&this.field.validators[e]&&this.field.validators[e].message&&(i=this.field.validators[e].message),this.field.asyncValidators&&this.field.asyncValidators[e]&&this.field.asyncValidators[e].message&&(i=this.field.asyncValidators[e].message),"function"==typeof i?i(t.errors[e],this.field):i}}}return t.\u0275fac=function(e){return new(e||t)($o(TF))},t.\u0275cmp=Xt({type:t,selectors:[["formly-validation-message"]],inputs:{field:"field"},features:[me],decls:2,vars:3,template:function(t,e){1&t&&(Na(0),vc(1,"async")),2&t&&Va(wc(1,1,e.errorMessage$))},pipes:[ph],encapsulation:2,changeDetection:0}),t})(),qF=(()=>{class t extends HF{constructor(t){super(),this.sanitizer=t,this.innerHtml={content:null,template:null}}get template(){return this.field&&this.field.template!==this.innerHtml.template&&(this.innerHtml={template:this.field.template,content:this.to.safeHtml?this.sanitizer.bypassSecurityTrustHtml(this.field.template):this.field.template}),this.innerHtml.content}}return t.\u0275fac=function(e){return new(e||t)($o(Xh))},t.\u0275cmp=Xt({type:t,selectors:[["formly-template"]],features:[Oo],decls:1,vars:1,consts:[[3,"innerHtml"]],template:function(t,e){1&t&&Ko(0,"div",0),2&t&&qo("innerHtml",e.template,ps)},encapsulation:2}),t})();function YF(t,e,i){return t instanceof Function?t.apply(e,i):!!t}class QF{prePopulate(t){if(t.parent||t.options._checkField)return;let e=!1;t.options._checkField=(t,i)=>{e||(e=!0,OF(t.formControl,()=>this.checkField(t,i)),e=!1)}}postPopulate(t){if(t.parent&&!t._expressionProperties){if(kF(t,"_expressionProperties",{}),t.expressionProperties)for(const e in t.expressionProperties){const i=t.expressionProperties[e];if("string"==typeof i||CF(i))t._expressionProperties[e]={expression:this._evalExpression(e,i,"templateOptions.disabled"===e&&t.parent.expressionProperties&&t.parent.expressionProperties.hasOwnProperty("templateOptions.disabled")?()=>t.parent.templateOptions.disabled:void 0)},"templateOptions.disabled"===e&&Object.defineProperty(t._expressionProperties[e],"expressionValue",{get:()=>t.templateOptions.disabled,set:()=>{},enumerable:!0,configurable:!0});else if(i instanceof v){const n=()=>i.subscribe(i=>{this.setExprValue(t,e,i),t.options&&t.options._markForCheck&&t.options._markForCheck(t)});let s=n();const r=t.hooks.onInit;t.hooks.onInit=()=>(null===s&&(s=n()),r&&r(t));const o=t.hooks.onDestroy;t.hooks.onDestroy=()=>{o&&o(t),s.unsubscribe(),s=null}}}t.hideExpression?(delete t.hide,t.hideExpression=this._evalExpression("hide",t.hideExpression,()=>{let e=t.parent;for(;e.parent&&!e.hide;)e=e.parent;return e.hide})):AF(t,"hide",({currentValue:e,firstChange:i})=>{t._hide=e,(!i||i&&!0===e)&&t.options._hiddenFieldsForCheck.push(t)})}}_evalExpression(t,e,i){return(n,s,r)=>{try{return"string"==typeof e&&(e=function(t,e){try{return-1!==t.indexOf("this.field")&&console.warn("NgxFormly: using 'this.field' in expressionProperties is deprecated since v5.1, use 'field' instead."),Function("model","formState","field",`return ${t};`)}catch(i){console.error(i)}}(e)),"function"!=typeof e&&(e=()=>!!e),i&&i()||e(n,s,r)}catch(o){throw o.message=`[Formly Error] [Expression "${t}"] ${o.message}`,o}}}checkField(t,e=!1){this._checkField(t,e),t.options._hiddenFieldsForCheck.sort(t=>t.hide?-1:1).forEach(t=>this.toggleFormControl(t,!!t.hide,!e)),t.options._hiddenFieldsForCheck=[]}_checkField(t,e=!1){let i=!1;t.fieldGroup.forEach(n=>{this.checkFieldExpressionChange(n,e)&&(i=!0),this.checkFieldVisibilityChange(n,e)&&(t.options._hiddenFieldsForCheck.push(n),i=!0),n.fieldGroup&&n.fieldGroup.length>0&&this._checkField(n,e)}),i&&t.options&&t.options._markForCheck&&t.options._markForCheck(t)}checkFieldExpressionChange(t,e){if(!t||!t._expressionProperties)return!1;let i=!1;const n=t._expressionProperties;for(const s in n){let r=YF(n[s].expression,{field:t},[t.model,t.options.formState,t]);"templateOptions.disabled"===s&&(r=!!r),!e&&(n[s].expressionValue===r||xF(r)&&JSON.stringify(r)===JSON.stringify(n[s].expressionValue))||(i=!0,n[s].expressionValue=r,this.setExprValue(t,s,r))}return i}checkFieldVisibilityChange(t,e){if(!t||vF(t.hideExpression))return!1;const i=!!YF(t.hideExpression,{field:t},[t.model,t.options.formState,t]);let n=!1;return(i!==t.hide||e)&&(n=!0,t.hide=i,t.templateOptions.hidden=i),n}setDisabledState(t,e){t.fieldGroup&&t.fieldGroup.filter(t=>!t.expressionProperties||!t.expressionProperties.hasOwnProperty("templateOptions.disabled")).forEach(t=>this.setDisabledState(t,e)),t.key&&t.templateOptions.disabled!==e&&(t.templateOptions.disabled=e)}toggleFormControl(t,e,i){if(t.formControl&&t.key){kF(t,"_hide",!(!e&&!t.hide));const n=t.formControl;n._fields.length>1&&RF(n),!0===e&&n._fields.every(t=>!!t._hide)?(DF(t,!0),i&&t.resetOnHide&&(t.formControl.reset({value:void 0,disabled:t.formControl.disabled}),t.fieldGroup&&(_F(t,void 0),t.formControl instanceof uy&&(t.fieldGroup.length=0)))):!1===e&&(t.resetOnHide&&t.parent&&!wF(t.defaultValue)&&wF(bF(t))&&_F(t,t.defaultValue),IF(t,void 0,!0),t.resetOnHide&&t.fieldArray&&(t.fieldGroup||[]).length!==(t.model||[]).length&&t.options._buildForm(!0))}t.fieldGroup&&t.fieldGroup.filter(t=>!t.hideExpression).forEach(t=>this.toggleFormControl(t,e,i)),t.options.fieldChanges&&t.options.fieldChanges.next({field:t,type:"hidden",value:e})}setExprValue(t,e,i){try{let n=t;const s=(-1===e.indexOf("[")?e:e.replace(/\[(\w+)\]/g,".$1")).split("."),r=s.length-1;for(let t=0;tthis.wrapNgValidatorFn(t,e))):i.push(this.wrapNgValidatorFn(t,t[e][n],n));kF(t,"_"+e,i)}getPredefinedFieldValidation(t){let e=[];return gF.forEach(i=>AF(t.templateOptions,i,({currentValue:n,firstChange:s})=>{e=e.filter(t=>t!==i),null!=n&&!1!==n&&e.push(i),!s&&t.formControl&&RF(t.formControl)})),i=>0===e.length?null:xb.compose(e.map(e=>()=>{const n=t.templateOptions[e];switch(e){case"required":return xb.required(i);case"pattern":return xb.pattern(n)(i);case"minLength":return xb.minLength(n)(i);case"maxLength":return xb.maxLength(n)(i);case"min":return xb.min(n)(i);case"max":return xb.max(n)(i)}}))(i)}wrapNgValidatorFn(t,e,i){let n=null;if("string"==typeof e&&(n=SF(this.formlyConfig.getValidator(e))),"object"==typeof e&&e.name&&(n=SF(this.formlyConfig.getValidator(e.name)),e.options&&(n.options=e.options)),"object"==typeof e&&e.expression){const{expression:t}=e,s=sp(e,["expression"]);n={name:i,validation:t,options:Object.keys(s).length>0?s:null}}return"function"==typeof e&&(n={name:i,validation:e}),e=>{const s=n.validation(e,t,n.options);return(r=s)&&"function"==typeof r.then?s.then(e=>this.handleAsyncResult(t,i?!!e:e,n)):sS(s)?s.pipe(E(e=>this.handleAsyncResult(t,i?!!e:e,n))):this.handleResult(t,i?!!s:s,n);var r}}handleAsyncResult(t,e,i){return t.options&&t.options._markForCheck&&t.options._markForCheck(t),this.handleResult(t,e,i)}handleResult(t,e,{name:i,options:n}){"boolean"==typeof e&&(e=e?null:{[i]:n||!0});const s=t.formControl;return s._childrenErrors&&s._childrenErrors[i]&&s._childrenErrors[i](),xF(e)&&Object.keys(e).forEach(i=>{const r=e[i].errorPath?e[i].errorPath:(n||{}).errorPath,o=r?t.formControl.get(r):null;if(o){const t=sp(e[i],["errorPath"]);o.setErrors(Object.assign({},o.errors||{},{[i]:t})),!s._childrenErrors&&kF(s,"_childrenErrors",{}),s._childrenErrors[i]=()=>{const t=sp(o.errors||{},["symbol"==typeof i?i:i+""]);o.setErrors(0===Object.keys(t).length?null:t)}}}),e}}class KF{constructor(t){this.config=t}onPopulate(t){t.parent&&(t.fieldGroup&&!t.key?kF(t,"formControl",t.parent.formControl):this.addFormControl(t))}postPopulate(t){if(t.parent)return;const e=this.setValidators(t);0!==e.length&&(1===e.length?e[0].formControl.updateValueAndValidity():t.formControl._updateTreeValidity())}addFormControl(t){let e=MF(t);if(!e){const i={updateOn:t.modelOptions.updateOn},n=t.key?bF(t):t.defaultValue,s=this.config?this.config.resolveFieldTypeRef(t):null;if(s&&s.componentType&&s.componentType.createControl){const i=s.componentType;console.warn(`NgxFormly: '${i.name}::createControl' is deprecated since v5.0, use 'prePopulate' hook instead.`),e=i.createControl(n,t)}else e=t.fieldGroup?new cy({},i):new ly(n,i)}IF(t,e)}setValidators(t){let e=!1;if(t.key||!t.parent||!t.key&&!t.fieldGroup){const{formControl:i}=t;!!t.templateOptions&&t.templateOptions.disabled&&i.enabled&&(i.disable({emitEvent:!1,onlySelf:!0}),i.parent?e=!0:RF(i)),null!==i.validator&&null!==i.asyncValidator||(i.setValidators(()=>{const e=xb.compose(this.mergeValidators(t,"_validators"));return e?e(i):null}),i.setAsyncValidators(()=>{const e=xb.composeAsync(this.mergeValidators(t,"_asyncValidators"));return e?e(i):Sp(null)}),i.parent?e=!0:RF(i))}const i=e?[t]:[];return(t.fieldGroup||[]).forEach(t=>{const n=this.setValidators(t);e||i.push(...n)}),i}mergeValidators(t,e){const i=[],n=t.formControl;return n&&n._fields&&n._fields.length>1?n._fields.filter(t=>!t._hide).forEach(t=>i.push(...t[e])):i.push(...t[e]),t.fieldGroup&&t.fieldGroup.filter(t=>!t.key&&t.fieldGroup).forEach(t=>i.push(...this.mergeValidators(t,e))),i}}class ZF{constructor(t){this.formlyConfig=t,this.formId=0}prePopulate(t){if(this.getFieldComponentInstance(t).prePopulate(),t.parent)return;const e=t.options&&t.options.fieldTransform||this.formlyConfig.extras.fieldTransform;(Array.isArray(e)?e:[e]).forEach(e=>{if(e&&(console.warn("NgxFormly: fieldTransform is deprecated since v5.0, use custom extension instead."),!e(t.fieldGroup,t.model,t.formControl,t.options)))throw new Error("fieldTransform must return an array of fields")})}onPopulate(t){this.initFieldOptions(t),this.getFieldComponentInstance(t).onPopulate(),t.fieldGroup&&t.fieldGroup.forEach((e,i)=>{Object.defineProperty(e,"parent",{get:()=>t,configurable:!0}),Object.defineProperty(e,"index",{get:()=>i,configurable:!0}),this.formId++})}postPopulate(t){this.getFieldComponentInstance(t).postPopulate()}initFieldOptions(t){const e=t.parent;if(e){if(Object.defineProperty(t,"form",{get:()=>e.formControl,configurable:!0}),Object.defineProperty(t,"options",{get:()=>e.options,configurable:!0}),Object.defineProperty(t,"model",{get:()=>t.key&&t.fieldGroup?bF(t):e.model,configurable:!0}),yF(t,{id:mF(`formly_${this.formId}`,t,t.index),hooks:{},modelOptions:{},templateOptions:t.type&&t.key?{label:"",placeholder:"",focus:!1,disabled:!1}:{}}),this.formlyConfig.extras.resetFieldOnHide&&!1!==t.resetOnHide&&(t.resetOnHide=!0),t.lifecycle&&console.warn("NgxFormly: 'lifecycle' is deprecated since v5.0, use 'hooks' instead."),"formly-template"!==t.type&&(t.template||t.expressionProperties&&t.expressionProperties.template)&&(t.type&&console.warn("NgxFormly: passing 'type' property is not allowed when 'template' is set."),t.type="formly-template"),!t.type&&t.fieldGroup&&(t.type="formly-group"),t.type&&this.formlyConfig.getMergedField(t),t.parent){let e=!wF(t.key)&&!wF(t.defaultValue)&&wF(bF(t))&&(!t.resetOnHide||!(t.hide||t.hideExpression));if(e&&t.resetOnHide){let i=t.parent;for(;i&&!i.hideExpression&&!i.hide;)i=i.parent;e=!i||!(i.hideExpression||i.hide)}e&&_F(t,t.defaultValue)}this.initFieldWrappers(t)}}initFieldWrappers(t){t.wrappers=t.wrappers||[];const e=Object.assign({preWrapper:[],postWrapper:[]},t.templateOptions.templateManipulators||{});t.wrappers=[...this.formlyConfig.templateManipulators.preWrapper.map(e=>e(t)),...e.preWrapper.map(e=>e(t)),...t.wrappers,...this.formlyConfig.templateManipulators.postWrapper.map(e=>e(t)),...e.postWrapper.map(e=>e(t))].filter((t,e,i)=>t&&e===i.indexOf(t))}getFieldComponentInstance(t){const e=this.formlyConfig.resolveFieldTypeRef(t),i=e?e.instance:{};return{prePopulate:()=>i.prePopulate&&i.prePopulate(t),onPopulate:()=>i.onPopulate&&i.onPopulate(t),postPopulate:()=>i.postPopulate&&i.postPopulate(t)}}}function JF(t){return{types:[{name:"formly-group",component:jF},{name:"formly-template",component:qF}],extensions:[{name:"core",extension:new ZF(t)},{name:"field-validation",extension:new XF(t)},{name:"field-form",extension:new KF(t)},{name:"field-expression",extension:new QF}]}}let tN=(()=>{class t{constructor(t,e=[]){e&&e.forEach(e=>t.addConfig(e))}static forRoot(e={}){return{ngModule:t,providers:[{provide:EF,multi:!0,useFactory:JF,deps:[TF]},{provide:EF,useValue:e,multi:!0},{provide:nn,useValue:e,multi:!0},TF,PF]}}static forChild(e={}){return{ngModule:t,providers:[{provide:EF,multi:!0,useFactory:JF,deps:[TF]},{provide:EF,useValue:e,multi:!0},{provide:nn,useValue:e,multi:!0},PF]}}}return t.\u0275fac=function(e){return new(e||t)(wn(TF),wn(EF,8))},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[yh]]}),t})();const eN=["matPrefix"],iN=["matSuffix"],nN=["fieldComponent"];function sN(t,e){1&t&&(Qo(0,"span",8),Na(1,"*"),Xo())}function rN(t,e){if(1&t&&(Qo(0,"mat-label"),Na(1),jo(2,sN,2,0,"span",7),Xo()),2&t){const t=ua();dr(1),Ba(" ",t.to.label," "),dr(1),qo("ngIf",t.to.required&&!0!==t.to.hideRequiredMarker)}}function oN(t,e){1&t&&ta(0)}function aN(t,e){if(1&t&&(Zo(0,9),jo(1,oN,1,0,"ng-container",10),Jo()),2&t){const t=ua();dr(1),qo("ngTemplateOutlet",t.to.prefix?t.to.prefix:t.formlyField._matprefix)}}function lN(t,e){1&t&&ta(0)}function cN(t,e){if(1&t&&(Zo(0,11),jo(1,lN,1,0,"ng-container",10),Jo()),2&t){const t=ua();dr(1),qo("ngTemplateOutlet",t.to.suffix?t.to.suffix:t.formlyField._matsuffix)}}function uN(t,e){if(1&t&&(Qo(0,"mat-hint",12),Na(1),Xo()),2&t){const t=ua();qo("id",null),dr(1),Va(t.to.description)}}class dN{constructor(t){this.field=t}isErrorState(t,e){return this.field&&this.field.showError}}let hN=(()=>{class t extends HF{constructor(){super(...arguments),this.errorStateMatcher=new dN(this),this.stateChanges=new k,this._errorState=!1}get formFieldControl(){return this._control||this}set formFieldControl(t){this._control=t,this.formField&&t!==this.formField._control&&(this.formField._control=t)}ngOnInit(){this.formField&&(this.formField._control=this.formFieldControl)}ngAfterViewInit(){(this.matPrefix||this.matSuffix)&&setTimeout(()=>{kF(this.field,"_matprefix",this.matPrefix),kF(this.field,"_matsuffix",this.matSuffix),this.options._markForCheck(this.field)})}ngOnDestroy(){this.formField&&delete this.formField._control,this.stateChanges.complete()}setDescribedByIds(t){}onContainerClick(t){this.field.focus=!0,this.stateChanges.next()}get errorState(){const t=this.options.showError(this);return t!==this._errorState&&(this._errorState=t,this.stateChanges.next()),t}get controlType(){return this.to.type?this.to.type:this.field.type instanceof on?this.field.type.constructor.name:this.field.type}get focused(){return!!this.field.focus&&!this.disabled}get disabled(){return!!this.to.disabled}get required(){return!!this.to.required}get placeholder(){return this.to.placeholder||""}get shouldPlaceholderFloat(){return this.shouldLabelFloat}get value(){return this.formControl.value}set value(t){this.formControl.patchValue(t)}get ngControl(){return this.formControl}get empty(){return null==this.value||""===this.value}get shouldLabelFloat(){return this.focused||!this.empty}get formField(){return this.field?this.field.__formField__:null}}return t.\u0275fac=function(e){return pN(e||t)},t.\u0275dir=ie({type:t,viewQuery:function(t,e){if(1&t&&(Vc(eN,1),Vc(iN,1)),2&t){let t;Nc(t=Hc())&&(e.matPrefix=t.first),Nc(t=Hc())&&(e.matSuffix=t.first)}},features:[Oo]}),t})();const pN=Qi(hN);let mN=(()=>{class t extends GF{constructor(t,e,i,n){super(),this.config=t,this.renderer=e,this.elementRef=i,this.focusMonitor=n,this.stateChanges=new k,this._errorState=!1,this.initialGapCalculated=!1}ngOnInit(){this.formField._control=this,kF(this.field,"__formField__",this.formField);const t=this.config.resolveFieldTypeRef(this.formlyField);!t||t.instance instanceof hN||console.warn(`Component '${t.componentType.name}' must extend 'FieldType' from '@ngx-formly/material/form-field'.`),this.formlyField.hide&&"outline"===this.formlyField.templateOptions.appearance&&(this.initialGapCalculated=!0),this.focusMonitor.monitor(this.elementRef,!0).subscribe(t=>{!t&&this.field.focus&&(this.field.focus=!1),this.stateChanges.next()})}ngAfterContentChecked(){this.initialGapCalculated&&!this.formlyField.hide&&(this.formField.updateOutlineGap(),this.initialGapCalculated=!0)}ngAfterViewInit(){if("outline"!==this.formField.appearance&&!0===this.to.hideFieldUnderline){const t=this.formField._elementRef.nativeElement.querySelector(".mat-form-field-underline");t&&this.renderer.removeChild(t.parentNode,t)}}ngOnDestroy(){delete this.formlyField.__formField__,this.stateChanges.complete(),this.focusMonitor.stopMonitoring(this.elementRef)}setDescribedByIds(t){}onContainerClick(t){this.formlyField.focus=!0,this.stateChanges.next()}get errorState(){const t=this.options.showError(this);return t!==this._errorState&&(this._errorState=t,this.stateChanges.next()),t}get controlType(){return this.to.type}get focused(){return!!this.formlyField.focus&&!this.disabled}get disabled(){return!!this.to.disabled}get required(){return!!this.to.required}get placeholder(){return this.to.placeholder||""}get shouldPlaceholderFloat(){return this.shouldLabelFloat}get value(){return this.formControl.value}get ngControl(){return this.formControl}get empty(){return!this.formControl.value}get shouldLabelFloat(){return this.focused||!this.empty}get formlyField(){return this.field}}return t.\u0275fac=function(e){return new(e||t)($o(TF),$o(fl),$o(hl),$o(vv))},t.\u0275cmp=Xt({type:t,selectors:[["formly-wrapper-mat-form-field"]],viewQuery:function(t,e){if(1&t&&(Vc(nN,3,Kl),Vc(Yk,3)),2&t){let t;Nc(t=Hc())&&(e.fieldComponent=t.first),Nc(t=Hc())&&(e.formField=t.first)}},features:[rl([{provide:Ik,useExisting:t}]),Oo],decls:9,vars:11,consts:[[3,"hideRequiredMarker","floatLabel","appearance","color"],["fieldComponent",""],[4,"ngIf"],["matPrefix","",4,"ngIf"],["matSuffix","",4,"ngIf"],[3,"field"],[3,"id",4,"ngIf"],["class","mat-form-field-required-marker",4,"ngIf"],[1,"mat-form-field-required-marker"],["matPrefix",""],[4,"ngTemplateOutlet"],["matSuffix",""],[3,"id"]],template:function(t,e){1&t&&(Qo(0,"mat-form-field",0),ta(1,null,1),jo(3,rN,3,2,"mat-label",2),jo(4,aN,2,1,"ng-container",3),jo(5,cN,2,1,"ng-container",4),Qo(6,"mat-error"),Ko(7,"formly-validation-message",5),Xo(),jo(8,uN,2,2,"mat-hint",6),Xo()),2&t&&(xa("width","100%"),qo("hideRequiredMarker",!0)("floatLabel",e.to.floatLabel)("appearance",e.to.appearance)("color",e.to.color),dr(3),qo("ngIf",e.to.label&&!0!==e.to.hideLabel),dr(1),qo("ngIf",e.to.prefix||e.formlyField._matprefix),dr(1),qo("ngIf",e.to.suffix||e.formlyField._matsuffix),dr(2),qo("field",e.field),dr(1),qo("ngIf",e.to.description))},directives:[Yk,Jd,Dk,$F,Nk,Hk,ah,Gk,Fk],encapsulation:2}),t})(),fN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[yh,Dy,Qk,tN.forChild({wrappers:[{name:"form-field",component:mN}]})]]}),t})();function gN(t,e){if(1&t&&Ko(0,"input",2),2&t){const t=ua();qo("id",t.id)("type",t.type||"text")("readonly",t.to.readonly)("required",t.to.required)("errorStateMatcher",t.errorStateMatcher)("formControl",t.formControl)("formlyAttributes",t.field)("tabindex",t.to.tabindex)("placeholder",t.to.placeholder)}}function _N(t,e){if(1&t&&Ko(0,"input",3),2&t){const t=ua();qo("id",t.id)("readonly",t.to.readonly)("required",t.to.required)("errorStateMatcher",t.errorStateMatcher)("formControl",t.formControl)("formlyAttributes",t.field)("tabIndex",t.to.tabindex)("placeholder",t.to.placeholder)}}let bN=(()=>{class t extends hN{get type(){return this.to.type||"text"}}return t.\u0275fac=function(e){return yN(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["formly-field-mat-input"]],viewQuery:function(t,e){if(1&t&&Vc(cE,1),2&t){let t;Nc(t=Hc())&&(e.formFieldControl=t.first)}},features:[Oo],decls:3,vars:2,consts:[["matInput","",3,"id","type","readonly","required","errorStateMatcher","formControl","formlyAttributes","tabindex","placeholder",4,"ngIf","ngIfElse"],["numberTmp",""],["matInput","",3,"id","type","readonly","required","errorStateMatcher","formControl","formlyAttributes","tabindex","placeholder"],["matInput","","type","number",3,"id","readonly","required","errorStateMatcher","formControl","formlyAttributes","tabIndex","placeholder"]],template:function(t,e){if(1&t&&(jo(0,gN,1,9,"input",0),jo(1,_N,1,8,"ng-template",null,1,jc)),2&t){const t=Wo(2);qo("ngIf","number"!==e.type)("ngIfElse",t)}},directives:[Jd,cE,_b,Ey,Ub,xy,BF,yy],encapsulation:2}),t})();const yN=Qi(bN);let vN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[yh,Dy,uE,fN,tN.forChild({types:[{name:"input",component:bN,wrappers:["form-field"]}]})]]}),t})(),wN=(()=>{class t extends hN{constructor(){super(...arguments),this.defaultOptions={templateOptions:{cols:1,rows:1}}}}return t.\u0275fac=function(e){return CN(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["formly-field-mat-textarea"]],viewQuery:function(t,e){if(1&t&&Vc(cE,3),2&t){let t;Nc(t=Hc())&&(e.formFieldControl=t.first)}},features:[rl([{provide:sE,useExisting:t}]),Oo],decls:2,vars:15,consts:[["matInput","",3,"id","readonly","required","formControl","errorStateMatcher","cols","rows","formlyAttributes","placeholder","tabindex","cdkTextareaAutosize","cdkAutosizeMinRows","cdkAutosizeMaxRows"]],template:function(t,e){1&t&&(Qo(0,"textarea",0),Na(1," "),Xo()),2&t&&(Sa("cdk-textarea-autosize",e.to.autosize),qo("id",e.id)("readonly",e.to.readonly)("required",e.to.required)("formControl",e.formControl)("errorStateMatcher",e.errorStateMatcher)("cols",e.to.cols)("rows",e.to.rows)("formlyAttributes",e.field)("placeholder",e.to.placeholder)("tabindex",e.to.tabindex)("cdkTextareaAutosize",e.to.autosize)("cdkAutosizeMinRows",e.to.autosizeMinRows)("cdkAutosizeMaxRows",e.to.autosizeMaxRows))},directives:[cE,_b,tE,Ey,Ub,xy,BF],encapsulation:2}),t})();const CN=Qi(wN);let xN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[yh,Dy,uE,fN,tN.forChild({types:[{name:"textarea",component:wN,wrappers:["form-field"]}]})]]}),t})(),SN=(()=>{class t{transform(t,e){return t instanceof v||(t=Sp(t)),t.pipe(E(t=>this.toOptions(t,e||{})))}toOptions(t,e){const i=[],n={},s=e.templateOptions||{};return s._flatOptions=!0,t.map(t=>{this.getGroupProp(t,s)?(s._flatOptions=!1,n[this.getGroupProp(t,s)]||(n[this.getGroupProp(t,s)]=[],i.push({label:this.getGroupProp(t,s),group:n[this.getGroupProp(t,s)]})),n[this.getGroupProp(t,s)].push(this.toOption(t,s))):i.push(this.toOption(t,s))}),i}toOption(t,e){return{label:this.getLabelProp(t,e),value:this.getValueProp(t,e),disabled:this.getDisabledProp(t,e)||!1}}getLabelProp(t,e){return"function"==typeof e.labelProp?e.labelProp(t):this.shouldUseLegacyOption(t,e)?(console.warn("NgxFormly: legacy select option '{key, value}' is deprecated since v5.5, use '{value, label}' instead."),t.value):t[e.labelProp||"label"]}getValueProp(t,e){return"function"==typeof e.valueProp?e.valueProp(t):this.shouldUseLegacyOption(t,e)?t.key:t[e.valueProp||"value"]}getDisabledProp(t,e){return"function"==typeof e.disabledProp?e.disabledProp(t):t[e.disabledProp||"disabled"]}getGroupProp(t,e){return"function"==typeof e.groupProp?e.groupProp(t):t[e.groupProp||"group"]}shouldUseLegacyOption(t,e){return!e.valueProp&&!e.labelProp&&null!=t&&"object"==typeof t&&"key"in t&&"value"in t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ne({name:"formlySelectOptions",type:t,pure:!0}),t})(),kN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({}),t})();function AN(t,e){if(1&t&&(Qo(0,"mat-radio-button",2),Na(1),Xo()),2&t){const t=e.$implicit,i=e.index,n=ua();qo("id",n.id+"_"+i)("color",n.to.color)("labelPosition",n.to.labelPosition)("disabled",t.disabled)("value",t.value),dr(1),Ba(" ",t.label," ")}}let ON=(()=>{class t extends hN{constructor(){super(...arguments),this.defaultOptions={templateOptions:{hideFieldUnderline:!0,floatLabel:"always",options:[],tabindex:-1}}}ngAfterViewInit(){this.focusObserver=AF(this.field,"focus",({currentValue:t})=>{-1===this.to.tabindex&&t&&this.radioGroup._radios.length>0&&setTimeout(()=>{(this.radioGroup.selected?this.radioGroup.selected:this.radioGroup._radios.first)._elementRef.nativeElement.focus({preventScroll:!0})})})}onContainerClick(){}ngOnDestroy(){this.focusObserver&&this.focusObserver()}}return t.\u0275fac=function(e){return EN(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["formly-field-mat-radio"]],viewQuery:function(t,e){if(1&t&&Vc(_M,1),2&t){let t;Nc(t=Hc())&&(e.radioGroup=t.first)}},features:[Oo],decls:4,vars:10,consts:[[3,"formControl","formlyAttributes","required","tabindex"],[3,"id","color","labelPosition","disabled","value",4,"ngFor","ngForOf"],[3,"id","color","labelPosition","disabled","value"]],template:function(t,e){1&t&&(Qo(0,"mat-radio-group",0),jo(1,AN,2,6,"mat-radio-button",1),vc(2,"async"),vc(3,"formlySelectOptions"),Xo()),2&t&&(qo("formControl",e.formControl)("formlyAttributes",e.field)("required",e.to.required)("tabindex",e.to.tabindex),dr(1),qo("ngForOf",wc(2,5,Cc(3,7,e.to.options,e.field))))},directives:[_M,Ub,xy,BF,Ey,Kd,CM],pipes:[ph,SN],encapsulation:2}),t})();const EN=Qi(ON);let TN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[yh,Dy,xM,fN,kN,tN.forChild({types:[{name:"radio",component:ON,wrappers:["form-field"]}]})]]}),t})();function PN(t,e){1&t&&(Qo(0,"span",2),Na(1,"*"),Xo())}let DN=(()=>{class t extends hN{constructor(t,e){super(),this.renderer=t,this.focusMonitor=e,this.defaultOptions={templateOptions:{hideFieldUnderline:!0,indeterminate:!0,floatLabel:"always",hideLabel:!0,align:"start",color:"accent"}}}onContainerClick(t){this.checkbox.focus(),super.onContainerClick(t)}ngAfterViewInit(){this.focusMonitor.monitor(this.checkbox._inputElement,!0).subscribe(t=>{t?this.to.focus&&this.to.focus(this.field):this.to.blur&&this.to.blur(this.field)})}ngAfterViewChecked(){if(this.required!==this._required&&this.checkbox&&this.checkbox._inputElement){this._required=this.required;const t=this.checkbox._inputElement.nativeElement;this.required?this.renderer.setAttribute(t,"required","required"):this.renderer.removeAttribute(t,"required")}}ngOnDestroy(){this.checkbox&&this.focusMonitor.stopMonitoring(this.checkbox._inputElement)}}return t.\u0275fac=function(e){return new(e||t)($o(fl),$o(vv))},t.\u0275cmp=Xt({type:t,selectors:[["formly-field-mat-checkbox"]],viewQuery:function(t,e){if(1&t&&Vc(hO,1),2&t){let t;Nc(t=Hc())&&(e.checkbox=t.first)}},features:[Oo],decls:3,vars:9,consts:[[3,"formControl","id","formlyAttributes","tabIndex","indeterminate","color","labelPosition"],["class","mat-form-field-required-marker",4,"ngIf"],[1,"mat-form-field-required-marker"]],template:function(t,e){1&t&&(Qo(0,"mat-checkbox",0),Na(1),jo(2,PN,2,0,"span",1),Xo()),2&t&&(qo("formControl",e.formControl)("id",e.id)("formlyAttributes",e.field)("tabIndex",e.to.tabindex)("indeterminate",e.to.indeterminate&&null===e.formControl.value)("color",e.to.color)("labelPosition",e.to.align||e.to.labelPosition),dr(1),Ba(" ",e.to.label," "),dr(1),qo("ngIf",e.to.required&&!0!==e.to.hideRequiredMarker))},directives:[hO,Ub,xy,BF,Jd],encapsulation:2}),t})(),MN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[yh,Dy,mO,fN,tN.forChild({types:[{name:"checkbox",component:DN,wrappers:["form-field"]}]})]]}),t})();function IN(t,e){if(1&t){const t=ea();Zo(0),Qo(1,"mat-checkbox",1),ra("change",function(i){Be(t);const n=e.$implicit;return ua().onChange(n.value,i.checked)}),Na(2),Xo(),Jo()}if(2&t){const t=e.$implicit,i=e.index,n=ua();dr(1),qo("id",n.id+"_"+i)("formlyAttributes",n.field)("tabIndex",n.to.tabindex)("color",n.to.color)("labelPosition",n.to.labelPosition)("checked",n.isChecked(t))("disabled",n.formControl.disabled),dr(1),Ba(" ",t.label," ")}}let RN=(()=>{class t extends hN{constructor(){super(...arguments),this.defaultOptions={templateOptions:{hideFieldUnderline:!0,floatLabel:"always",options:[],color:"accent"}}}onChange(t,e){this.formControl.patchValue("array"===this.to.type?e?[...this.formControl.value||[],t]:[...this.formControl.value||[]].filter(e=>e!==t):Object.assign({},this.formControl.value,{[t]:e})),this.formControl.markAsTouched()}onContainerClick(){}isChecked(t){const e=this.formControl.value;return e&&("array"===this.to.type?-1!==e.indexOf(t.value):e[t.value])}}return t.\u0275fac=function(e){return LN(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["formly-field-mat-multicheckbox"]],viewQuery:function(t,e){if(1&t&&Vc(hO,1),2&t){let t;Nc(t=Hc())&&(e.checkboxes=t)}},features:[Oo],decls:3,vars:6,consts:[[4,"ngFor","ngForOf"],[3,"id","formlyAttributes","tabIndex","color","labelPosition","checked","disabled","change"]],template:function(t,e){1&t&&(jo(0,IN,3,8,"ng-container",0),vc(1,"async"),vc(2,"formlySelectOptions")),2&t&&qo("ngForOf",wc(1,1,Cc(2,3,e.to.options,e.field)))},directives:[Kd,hO,BF],pipes:[ph,SN],encapsulation:2}),t})();const LN=Qi(RN);let FN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[yh,Dy,mO,fN,kN,tN.forChild({types:[{name:"multicheckbox",component:RN,wrappers:["form-field"]}]})]]}),t})();function NN(t,e){if(1&t){const t=ea();Qo(0,"mat-option",3),ra("click",function(){Be(t);const i=e.selectOptions;return ua().toggleSelectAll(i)}),Ko(1,"mat-pseudo-checkbox",4),Na(2),Xo()}if(2&t){const t=e.selectOptions,i=ua();dr(1),qo("state",i.getSelectAllState(t)),dr(1),Ba(" ",i.to.selectAllOption," ")}}const VN=function(t){return{selectOptions:t}};function BN(t,e){if(1&t&&ta(0,7),2&t){const t=ua().ngIf;ua(),qo("ngTemplateOutlet",Wo(1))("ngTemplateOutletContext",pc(2,VN,t))}}function HN(t,e){if(1&t&&(Qo(0,"mat-option",12),Na(1),Xo()),2&t){const t=e.$implicit;qo("value",t.value)("disabled",t.disabled),dr(1),Ba(" ",t.label," ")}}function zN(t,e){if(1&t&&(Qo(0,"mat-optgroup",10),jo(1,HN,2,3,"mat-option",11),Xo()),2&t){const t=ua().$implicit;qo("label",t.label),dr(1),qo("ngForOf",t.group)}}function GN(t,e){if(1&t&&(Qo(0,"mat-option",12),Na(1),Xo()),2&t){const t=ua().$implicit;qo("value",t.value)("disabled",t.disabled),dr(1),Va(t.label)}}function UN(t,e){if(1&t&&(Zo(0),jo(1,zN,2,2,"mat-optgroup",8),jo(2,GN,2,3,"mat-option",9),Jo()),2&t){const t=e.$implicit;dr(1),qo("ngIf",t.group),dr(1),qo("ngIf",!t.group)}}function jN(t,e){if(1&t&&(Zo(0),jo(1,BN,1,4,"ng-container",5),jo(2,UN,3,2,"ng-container",6),Jo()),2&t){const t=e.ngIf,i=ua();dr(1),qo("ngIf",i.to.multiple&&i.to.selectAllOption),dr(1),qo("ngForOf",t)}}let WN=(()=>{class t extends hN{constructor(){super(...arguments),this.defaultOptions={templateOptions:{options:[],compareWith:(t,e)=>t===e}}}getSelectAllState(t){return this.empty||0===this.value.length?"":this.value.length!==this.getSelectAllValue(t).length?"indeterminate":"checked"}toggleSelectAll(t){const e=this.getSelectAllValue(t);this.formControl.setValue(this.value&&this.value.length===e.length?[]:e)}change(t){this.to.change&&this.to.change(this.field,t)}_getAriaLabelledby(){return this.to.attributes&&this.to.attributes["aria-labelledby"]?this.to.attributes["aria-labelledby"]:this.formField&&this.formField._labelId?this.formField._labelId:null}getSelectAllValue(t){if(!this.selectAllValue||t!==this.selectAllValue.options){const e=[];t.forEach(t=>t.group?e.push(...t.group):e.push(t)),this.selectAllValue={options:t,value:e.filter(t=>!t.disabled).map(t=>t.value)}}return this.selectAllValue.value}}return t.\u0275fac=function(e){return $N(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["formly-field-mat-select"]],viewQuery:function(t,e){if(1&t&&Vc(rD,3),2&t){let t;Nc(t=Hc())&&(e.formFieldControl=t.first)}},features:[Oo],decls:6,vars:17,consts:[["selectAll",""],[3,"id","formControl","formlyAttributes","placeholder","tabIndex","required","compareWith","multiple","errorStateMatcher","aria-labelledby","disableOptionCentering","selectionChange"],[4,"ngIf"],[3,"click"],[1,"mat-option-pseudo-checkbox",3,"state"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"label",4,"ngIf"],[3,"value","disabled",4,"ngIf"],[3,"label"],[3,"value","disabled",4,"ngFor","ngForOf"],[3,"value","disabled"]],template:function(t,e){1&t&&(jo(0,NN,3,2,"ng-template",null,0,jc),Qo(2,"mat-select",1),ra("selectionChange",function(t){return e.change(t)}),jo(3,jN,3,2,"ng-container",2),vc(4,"async"),vc(5,"formlySelectOptions"),Xo()),2&t&&(dr(2),qo("id",e.id)("formControl",e.formControl)("formlyAttributes",e.field)("placeholder",e.to.placeholder)("tabIndex",e.to.tabindex)("required",e.to.required)("compareWith",e.to.compareWith)("multiple",e.to.multiple)("errorStateMatcher",e.errorStateMatcher)("aria-labelledby",e._getAriaLabelledby())("disableOptionCentering",e.to.disableOptionCentering),dr(1),qo("ngIf",wc(4,12,Cc(5,14,e.to.options,e.field))))},directives:[rD,Ub,xy,BF,Ey,Jd,Jx,Hx,Kd,ah,Yx],pipes:[ph,SN],encapsulation:2}),t})();const $N=Qi(WN);let qN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[yh,Dy,aD,zx,fN,kN,tN.forChild({types:[{name:"select",component:WN,wrappers:["form-field"]}]})]]}),t})(),YN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[fN,vN,xN,TN,MN,FN,qN]]}),t})();const QN=["datepickerToggle"];function XN(t,e){if(1&t&&Ko(0,"mat-datepicker-toggle",4),2&t){const t=ua(),e=Wo(4);qo("disabled",t.to.disabled)("for",e)}}let KN=(()=>{class t extends hN{constructor(){super(...arguments),this.defaultOptions={templateOptions:{datepickerOptions:{startView:"month",datepickerTogglePosition:"suffix",dateInput:()=>{},dateChange:()=>{},monthSelected:()=>{},yearSelected:()=>{}}}}}ngAfterViewInit(){super.ngAfterViewInit(),this.datepickerInput._formField=this.formField,setTimeout(()=>{kF(this.field,"_mat"+this.to.datepickerOptions.datepickerTogglePosition,this.datepickerToggle),this.options._markForCheck(this.field)})}}return t.\u0275fac=function(e){return ZN(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["formly-field-mat-datepicker"]],viewQuery:function(t,e){if(1&t&&(Vc(cE,3),Vc(lT,1),Vc(QN,1)),2&t){let t;Nc(t=Hc())&&(e.formFieldControl=t.first),Nc(t=Hc())&&(e.datepickerInput=t.first),Nc(t=Hc())&&(e.datepickerToggle=t.first)}},features:[Oo],decls:5,vars:20,consts:[["matInput","",3,"id","errorStateMatcher","formControl","matDatepicker","matDatepickerFilter","max","min","formlyAttributes","placeholder","tabindex","readonly","required","dateInput","dateChange"],["datepickerToggle",""],[3,"color","dateClass","disabled","opened","panelClass","startAt","startView","touchUi","monthSelected","yearSelected"],["picker",""],[3,"disabled","for"]],template:function(t,e){if(1&t){const t=ea();Qo(0,"input",0),ra("dateInput",function(t){return e.to.datepickerOptions.dateInput(e.field,t)})("dateChange",function(t){return e.to.datepickerOptions.dateChange(e.field,t)}),Xo(),jo(1,XN,1,2,"ng-template",null,1,jc),Qo(3,"mat-datepicker",2,3),ra("monthSelected",function(i){Be(t);const n=Wo(4);return e.to.datepickerOptions.monthSelected(e.field,i,n)})("yearSelected",function(i){Be(t);const n=Wo(4);return e.to.datepickerOptions.yearSelected(e.field,i,n)}),Xo()}if(2&t){const t=Wo(4);qo("id",e.id)("errorStateMatcher",e.errorStateMatcher)("formControl",e.formControl)("matDatepicker",t)("matDatepickerFilter",e.to.datepickerOptions.filter)("max",e.to.datepickerOptions.max)("min",e.to.datepickerOptions.min)("formlyAttributes",e.field)("placeholder",e.to.placeholder)("tabindex",e.to.tabindex)("readonly",e.to.readonly)("required",e.to.required),dr(3),qo("color",e.to.color)("dateClass",e.to.datepickerOptions.dateClass)("disabled",e.to.datepickerOptions.disabled)("opened",e.to.datepickerOptions.opened)("panelClass",e.to.datepickerOptions.panelClass)("startAt",e.to.datepickerOptions.startAt)("startView",e.to.datepickerOptions.startView)("touchUi",e.to.datepickerOptions.touchUi)}},directives:[cE,_b,lT,Ub,xy,BF,Ey,iT,uT],encapsulation:2}),t})();const ZN=Qi(KN);let JN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[yh,Dy,uE,dT,fN,tN.forChild({types:[{name:"datepicker",component:KN,wrappers:["form-field"]}]})]]}),t})(),tV=(()=>{class t{transform(t,...e){let i="",n=!1;t||(t=""),e&&e[1]&&"object"==typeof e[1]?(i=e[1].trailingString||"\u2026",n=e[1].countTrailing||!1):(i=e[1]||"\u2026",n=e[2]||!1);let s=this.getStringLength(e[0]||40,i,n);return s<0?(s*=-1,t.length>s?i+t.substring(t.length-s,t.length):t):t.length>s?t.substring(0,s)+i:t}getStringLength(t,e,i=!1){return i?t<0?t+e.length:t-e.length:t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ne({name:"truncate",type:t,pure:!0}),t})(),eV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({}),t})();var iV=["iframe"],nV=function(){function t(){this.onBeforePrint=new kc,this.onAfterPrint=new kc,this.onDocumentLoad=new kc,this.onPageChange=new kc,this.externalWindow=!1,this.showSpinner=!0,this.openFile=!0,this.download=!0,this.viewBookmark=!0,this.print=!0,this.fullScreen=!0,this.find=!0,this.useOnlyCssZoom=!1,this.errorOverride=!1,this.errorAppend=!0,this.diagnosticLogs=!0}return Object.defineProperty(t.prototype,"page",{get:function(){if(this.PDFViewerApplication)return this.PDFViewerApplication.page;this.diagnosticLogs&&console.warn("Document is not loaded yet!!!. Try to retrieve page# after full load.")},set:function(t){this._page=t,this.PDFViewerApplication?this.PDFViewerApplication.page=this._page:this.diagnosticLogs&&console.warn("Document is not loaded yet!!!. Try to set page# after full load. Ignore this warning if you are not setting page# using '.' notation. (E.g. pdfViewer.page = 5;)")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pdfSrc",{get:function(){return this._src},set:function(t){this._src=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"PDFViewerApplicationOptions",{get:function(){var t=null;return this.externalWindow?this.viewerTab&&(t=this.viewerTab.PDFViewerApplicationOptions):this.iframe.nativeElement.contentWindow&&(t=this.iframe.nativeElement.contentWindow.PDFViewerApplicationOptions),t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"PDFViewerApplication",{get:function(){var t=null;return this.externalWindow?this.viewerTab&&(t=this.viewerTab.PDFViewerApplication):this.iframe.nativeElement.contentWindow&&(t=this.iframe.nativeElement.contentWindow.PDFViewerApplication),t},enumerable:!0,configurable:!0}),t.prototype.receiveMessage=function(t){if(t.data&&t.data.viewerId&&t.data.event){var e=t.data.event,i=t.data.param;this.viewerId==t.data.viewerId&&(this.onBeforePrint&&"beforePrint"==e?this.onBeforePrint.emit():this.onAfterPrint&&"afterPrint"==e?this.onAfterPrint.emit():this.onDocumentLoad&&"pagesLoaded"==e?this.onDocumentLoad.emit(i):this.onPageChange&&"pageChange"==e&&this.onPageChange.emit(i))}},t.prototype.ngOnInit=function(){window.addEventListener("message",this.receiveMessage.bind(this),!1),this.externalWindow||this.loadPdf()},t.prototype.refresh=function(){this.loadPdf()},t.prototype.loadPdf=function(){if(this._src){if(this.externalWindow&&(void 0===this.viewerTab||this.viewerTab.closed)){if(this.viewerTab=window.open("","_blank",this.externalWindowOptions||""),null==this.viewerTab)return void(this.diagnosticLogs&&console.error("ng2-pdfjs-viewer: For 'externalWindow = true'. i.e opening in new tab to work, pop-ups should be enabled."));this.showSpinner&&this.viewerTab.document.write('\n \n
    \n ')}var t,e;if(this._src instanceof Blob)t=encodeURIComponent(URL.createObjectURL(this._src));else if(this._src instanceof Uint8Array){var i=new Blob([this._src],{type:"application/pdf"});t=encodeURIComponent(URL.createObjectURL(i))}else t=this._src;e=this.viewerFolder?this.viewerFolder+"/web/viewer.html":"assets/pdfjs/web/viewer.html",e+="?file="+t,void 0!==this.viewerId&&(e+="&viewerId="+this.viewerId),void 0!==this.onBeforePrint&&(e+="&beforePrint=true"),void 0!==this.onAfterPrint&&(e+="&afterPrint=true"),void 0!==this.onDocumentLoad&&(e+="&pagesLoaded=true"),void 0!==this.onPageChange&&(e+="&pageChange=true"),this.downloadFileName&&(this.downloadFileName.endsWith(".pdf")||(this.downloadFileName+=".pdf"),e+="&fileName="+this.downloadFileName),void 0!==this.openFile&&(e+="&openFile="+this.openFile),void 0!==this.download&&(e+="&download="+this.download),this.startDownload&&(e+="&startDownload="+this.startDownload),void 0!==this.viewBookmark&&(e+="&viewBookmark="+this.viewBookmark),void 0!==this.print&&(e+="&print="+this.print),this.startPrint&&(e+="&startPrint="+this.startPrint),void 0!==this.fullScreen&&(e+="&fullScreen="+this.fullScreen),void 0!==this.find&&(e+="&find="+this.find),this.lastPage&&(e+="&lastpage="+this.lastPage),this.rotatecw&&(e+="&rotatecw="+this.rotatecw),this.rotateccw&&(e+="&rotateccw="+this.rotateccw),this.cursor&&(e+="&cursor="+this.cursor),this.scroll&&(e+="&scroll="+this.scroll),this.spread&&(e+="&spread="+this.spread),this.locale&&(e+="&locale="+this.locale),this.useOnlyCssZoom&&(e+="&useOnlyCssZoom="+this.useOnlyCssZoom),(this._page||this.zoom||this.nameddest||this.pagemode)&&(e+="#"),this._page&&(e+="&page="+this._page),this.zoom&&(e+="&zoom="+this.zoom),this.nameddest&&(e+="&nameddest="+this.nameddest),this.pagemode&&(e+="&pagemode="+this.pagemode),(this.errorOverride||this.errorAppend)&&(e+="&errorMessage="+this.errorMessage,this.errorOverride&&(e+="&errorOverride="+this.errorOverride),this.errorAppend&&(e+="&errorAppend="+this.errorAppend)),this.externalWindow?this.viewerTab.location.href=e:this.iframe.nativeElement.src=e}},t.propDecorators={iframe:[{type:rn,args:["iframe",{static:!0}]}],viewerId:[{type:Wc}],onBeforePrint:[{type:$c}],onAfterPrint:[{type:$c}],onDocumentLoad:[{type:$c}],onPageChange:[{type:$c}],viewerFolder:[{type:Wc}],externalWindow:[{type:Wc}],showSpinner:[{type:Wc}],downloadFileName:[{type:Wc}],openFile:[{type:Wc}],download:[{type:Wc}],startDownload:[{type:Wc}],viewBookmark:[{type:Wc}],print:[{type:Wc}],startPrint:[{type:Wc}],fullScreen:[{type:Wc}],find:[{type:Wc}],zoom:[{type:Wc}],nameddest:[{type:Wc}],pagemode:[{type:Wc}],lastPage:[{type:Wc}],rotatecw:[{type:Wc}],rotateccw:[{type:Wc}],cursor:[{type:Wc}],scroll:[{type:Wc}],spread:[{type:Wc}],locale:[{type:Wc}],useOnlyCssZoom:[{type:Wc}],errorOverride:[{type:Wc}],errorAppend:[{type:Wc}],errorMessage:[{type:Wc}],diagnosticLogs:[{type:Wc}],externalWindowOptions:[{type:Wc}],page:[{type:Wc}],pdfSrc:[{type:Wc}]},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["ng2-pdfjs-viewer"]],viewQuery:function(t,e){var i;1&t&&Vc(iV,3),2&t&&Nc(i=Hc())&&(e.iframe=i.first)},inputs:{externalWindow:"externalWindow",showSpinner:"showSpinner",openFile:"openFile",download:"download",viewBookmark:"viewBookmark",print:"print",fullScreen:"fullScreen",find:"find",useOnlyCssZoom:"useOnlyCssZoom",errorOverride:"errorOverride",errorAppend:"errorAppend",diagnosticLogs:"diagnosticLogs",page:"page",pdfSrc:"pdfSrc",viewerId:"viewerId",viewerFolder:"viewerFolder",downloadFileName:"downloadFileName",startDownload:"startDownload",startPrint:"startPrint",zoom:"zoom",nameddest:"nameddest",pagemode:"pagemode",lastPage:"lastPage",rotatecw:"rotatecw",rotateccw:"rotateccw",cursor:"cursor",scroll:"scroll",spread:"spread",locale:"locale",errorMessage:"errorMessage",externalWindowOptions:"externalWindowOptions"},outputs:{onBeforePrint:"onBeforePrint",onAfterPrint:"onAfterPrint",onDocumentLoad:"onDocumentLoad",onPageChange:"onPageChange"},decls:2,vars:1,consts:[["title","ng2-pdfjs-viewer","width","100%","height","100%",3,"hidden"],["iframe",""]],template:function(t,e){1&t&&Ko(0,"iframe",0,1),2&t&&qo("hidden",e.externalWindow||!e.externalWindow&&!e.pdfSrc)},encapsulation:2}),t}(),sV=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[yh]]}),t}();const rV={UKNOWN:"Unknown"},oV={CHROME:"Chrome",FIREFOX:"Firefox",SAFARI:"Safari",OPERA:"Opera",IE:"IE",MS_EDGE:"MS-Edge",MS_EDGE_CHROMIUM:"MS-Edge-Chromium",FB_MESSANGER:"FB-Messanger",SAMSUNG:"Samsung",UCBROWSER:"UC-Browser",UNKNOWN:rV.UKNOWN},aV={HTC:/HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\bEVO\b|T-Mobile G1|Z520m|Android [0-9.]+; Pixel/,NEXUS_PHONE:/Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6/,DELL:/Dell[;]? (Streak|Aero|Venue|Venue Pro|Flash|Smoke|Mini 3iX)|XCD28|XCD35|\b001DL\b|\b101DL\b|\bGS01\b/,MOTOROLA:new RegExp("Motorola|DROIDX|DROID BIONIC|\\bDroid\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|\n A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|\n MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|\n ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|\n WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|\n XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|\n XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\bMoto E\\b|XT1068|XT1092|XT1052"),SAMSUNG:new RegExp("\\bSamsung\\b|SM-G950F|SM-G955F|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|\n GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|\n GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|\n GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|\n GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|\n GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|\n GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|\n GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|\n GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|\n GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|\n GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|\n GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|\n GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|\n GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|\n GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|\n GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|\n GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|\n GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|\n SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|\n SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|\n SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|\n SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|\n SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|\n SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|\n SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|\n SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|\n SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|\n SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|\n SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|\n SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|\n SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|\n SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|\n SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|\n SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|\n SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|\n SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|\n SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|\n SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|\n SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|\n SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|\n SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|\n SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|\n SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|\n SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|\n SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|\n SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|\n SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|\n SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|\n SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|\n GT-N7105|SCH-I535|SM-N900A|SM-N900T|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|\n GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|\n GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|\n SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|\n SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205|SM-G9350|SM-J120F|SM-G920F|SM-G920V|SM-G930F|\n SM-N910C|SM-A310F|GT-I9190|SM-J500FN|SM-G903F|SM-J330F"),LG:new RegExp("\\bLG\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|\n LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|\n C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|\n LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|\n VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802|\n MS323|M257)"),SONY:/SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533/,ASUS:/Asus.*Galaxy|PadFone.*Mobile/,NOKIA_LUMIA:/Lumia [0-9]{3,4}/,MICROMAX:/Micromax.*\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\b/,PALM:/PalmSource|Palm/,VERTU:/Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature/,PANTECH:new RegExp("PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|\n IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|\n IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|\n CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|\n P2000|P7040|P7000|C790"),FLY:/IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250/,WIKO:new RegExp("KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|\n SUNSET|GOA(?!nna)|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLIM|CINK SLIM 2|CINK +|\n CINK KING|CINK PEAX|CINK SLIM|SUBLIM"),I_MOBILE:/i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)/,SIMVALLEY:/\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\b/,WOLFGANG:/AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q/,ALCATEL:/Alcatel/,NINTENDO:/Nintendo (3DS|Switch)/,AMOI:/Amoi/,INQ:/INQ/,VITA:/\bVita\b/,BLACKBERRY:/\bBlackBerry\b|\bBB10\b|rim[0-9]+/,FIREFOX_OS:/\bFirefox-OS\b/,IPHONE:/\biPhone\b/,iPod:/\biPod\b/,ANDROID:/\bAndroid\b/,WINDOWS_PHONE:/\bWindows-Phone\b/,GENERIC_PHONE:new RegExp("Tapatalk|PDA;|SAGEM|\\bmmp\\b|pocket|\\bpsp\\b|symbian|Smartphone|smartfon|treo|up.browser|\n up.link|vodafone|\\bwap\\b|nokia|Nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser")},lV={iPad:/iPad|iPad.*Mobile/,NexusTablet:/Android.*Nexus[\s]+(7|9|10)/,GoogleTablet:/Android.*Pixel C/,SamsungTablet:new RegExp("SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|\n GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|\n SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|\n GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|\n SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|\n GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|\n SHV-E230S|SHW-M180K|SHW-M180L|SM-T290|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|\n SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|\n GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|\n SM-P601|SM-P605|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|\n GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|\n SM-T510|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|\n SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T330|\n SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|\n SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-T116BU|SM-P550|\n SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T815|SM-T360|SM-T533|\n SM-T113|SM-T335|SM-T715|SM-T560|SM-T670|SM-T677|SM-T377|SM-T567|SM-T357T|SM-T555|SM-T561|SM-T713|\n SM-T719|SM-T813|SM-T819|SM-T580|SM-T590|SM-T355Y?|SM-T280|SM-T817A|SM-T820|SM-W700|SM-P580|SM-T587|SM-P350|\n SM-P555M|SM-P355M|SM-T113NU|SM-T815Y|SM-T585|SM-T285|SM-T825|SM-W708|SM-T835|SM-P585Y"),Kindle:new RegExp("Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|\n KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI|KFARWI|KFFOWI|KFGIWI|KFMEWI)\\b|Android.*Silk/[0-9.]+ like Chrome /[0-9.]+ (?!Mobile)"),SurfaceTablet:/Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)/,HPTablet:/HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10/,AsusTablet:new RegExp("^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|\n TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|\n Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|\n ME560CG|ME372CG|ME302KL| K010 | K011 | K017 | K01E |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|\n ME581CL|ME8510C|ME181C|P01Y|PO1MA|P01Z|\\bP027\\b|\\bP024\\b|\\bP00C\\b"),BlackBerryTablet:/PlayBook|RIM Tablet/,HTCtablet:/HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410/,MotorolaTablet:/xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617/,NookTablet:/Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2/,AcerTablet:new RegExp("Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|\n W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b|\n \\bA3-A20\\b|\\bA3-A30"),ToshibaTablet:/Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO/,LGTablet:/\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\b/,FujitsuTablet:/Android.*\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\b/,PrestigioTablet:new RegExp("PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|\n PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|\n PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|\n PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|\n PMT5887|PMT5001|PMT5002"),LenovoTablet:new RegExp("Lenovo TAB|Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|YT3-850M|YT3-X90L|YT3-X90F|\n YT3-X90X|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|\n B8000|B8080)(-|)(FL|F|HV|H|)|TB-X103F|TB-X304F|TB-X304L|TB-X704F|TB-8703F|Tab2A7-10F|TB2-X30L|TB-8504F"),DellTablet:/Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7/,YarvikTablet:new RegExp("Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|\n TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|\n TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|\n TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|\n TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b"),MedionTablet:/Android.*\bOYO\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB/,ArnovaTablet:/97G4|AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2/,IntensoTablet:/INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004/,IRUTablet:/M702pro/,MegafonTablet:/MegaFon V9|\bZTE V9\b|Android.*\bMT7A\b/,EbodaTablet:/E-Boda (Supreme|Impresspeed|Izzycomm|Essential)/,AllViewTablet:/Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)/,ArchosTablet:new RegExp("\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|c|)(G10|\n Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b"),AinolTablet:/NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark/,NokiaLumiaTablet:/Lumia 2520/,SonyTablet:new RegExp("Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|\n SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|\n EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP641|SGP612|SOT31|SGP771|SGP611|\n SGP612|SGP712"),PhilipsTablet:/\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\b/,CubeTablet:/Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT/,CobyTablet:new RegExp("MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|\n MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010"),MIDTablet:new RegExp("M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|\n MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|\n MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733|MID4X10"),MSITablet:new RegExp("MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|\n Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b"),SMiTTablet:/Android.*(\bMID\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)/,RockChipTablet:/Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A/,FlyTablet:/IQ310|Fly Vision/,bqTablet:new RegExp("Android.*(bq)?.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|\n Livingstone|Cervantes|Avant|Aquaris ([E|M]10|M8))|Maxwell.*Lite|Maxwell.*Plus"),HuaweiTablet:new RegExp("MediaPad|MediaPad 7 Youth|MediaPad T3 10|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|\n S7-201|S7-Slim|M2-A01L|BAH-L09|BAH-W09|AGS-W09"),NecTablet:/\bN-06D|\bN-08D/,PantechTablet:/Pantech.*P4100/,BronchoTablet:/Broncho.*(N701|N708|N802|a710)/,VersusTablet:/TOUCHPAD.*[78910]|\bTOUCHTAB\b/,ZyncTablet:/z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900/,PositivoTablet:/TB07STA|TB10STA|TB07FTA|TB10FTA/,NabiTablet:/Android.*\bNabi/,KoboTablet:/Kobo Touch|\bK080\b|\bVox\b Build|\bArc\b Build/,DanewTablet:/DSlide.*\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\b/,TexetTablet:new RegExp("NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|\n TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|\n TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|\n TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|\n TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|\n TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|\n TB-436|TB-416|TB-146SE|TB-126SE"),PlaystationTablet:/Playstation.*(Portable|Vita)/,TrekstorTablet:/ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab/,PyleAudioTablet:/\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\b/,AdvanTablet:new RegExp("Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|\n T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b"),DanyTechTablet:"Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|\n Genius TAB GII|Genius TAB GIII|Genius Tab S1",GalapadTablet:/Android.*\bG1\b(?!\))/,MicromaxTablet:/Funbook|Micromax.*\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\b/,KarbonnTablet:/Android.*\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\b/,AllFineTablet:/Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide/,PROSCANTablet:new RegExp("\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|\n PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|\n PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|\n PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b"),YONESTablet:/BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026/,ChangJiaTablet:new RegExp("TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|\n TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|\n TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|\n TPC10111|TPC10203|TPC10205|TPC10503"),GUTablet:/TX-A1301|TX-M9002|Q702|kf026/,PointOfViewTablet:new RegExp("TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|\n TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|\n TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|\n TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10"),OvermaxTablet:new RegExp("OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|\n MagicTab|Stream|TB-08|TB-09)|Qualcore 1027"),HCLTablet:/HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync/,DPSTablet:/DPS Dream 9|DPS Dual 7/,VistureTablet:/V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10/,CrestaTablet:/CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989/,MediatekTablet:/\bMT8125|MT8389|MT8135|MT8377\b/,ConcordeTablet:/Concorde([ ]+)?Tab|ConCorde ReadMan/,GoCleverTablet:new RegExp("GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|\n TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|\n GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|\n TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|\n TAB R104|TAB R83.3|TAB A1042"),ModecomTablet:new RegExp("FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|\n FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|\n FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003"),VoninoTablet:new RegExp("\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|\n Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|\n Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b"),ECSTablet:/V07OT2|TM105A|S10OT1|TR10CS1/,StorexTablet:/eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab/,VodafoneTablet:/SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7|VF-1497/,EssentielBTablet:/Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2/,RossMoorTablet:/RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711/,iMobileTablet:/i-mobile i-note/,TolinoTablet:/tolino tab [0-9.]+|tolino shine/,AudioSonicTablet:/\bC-22Q|T7-QC|T-17B|T-17P\b/,AMPETablet:/Android.* A78 /,SkkTablet:/Android.* (SKYPAD|PHOENIX|CYCLOPS)/,TecnoTablet:/TECNO P9|TECNO DP8D/,JXDTablet:new RegExp("Android.* \\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|\n S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|\n P1000|P300|S18|S6600|S9100)\\b"),iJoyTablet:new RegExp("Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|\n Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|\n Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|\n Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|\n Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)"),FX2Tablet:/FX2 PAD7|FX2 PAD10/,XoroTablet:new RegExp("KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|\n PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|\n PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|\n TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151"),ViewsonicTablet:/ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a/,VerizonTablet:/QTAQZ3|QTAIR7|QTAQTZ3|QTASUN1|QTASUN2|QTAXIA1/,OdysTablet:/LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\bXELIO\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10/,CaptivaTablet:/CAPTIVA PAD/,IconbitTablet:new RegExp("NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|\n NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S"),TeclastTablet:new RegExp("T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\n \\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\n \\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\n \\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\n \\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\n \\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\n \\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\n \\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\n \\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi"),OndaTablet:new RegExp("\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|\n V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|\n V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|\n Vi40)\\b[s]+|V10 \\b4G\\b"),JaytechTablet:/TPC-PA762/,BlaupunktTablet:/Endeavour 800NG|Endeavour 1010/,DigmaTablet:/\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\b/,EvolioTablet:/ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\bEvotab\b|\bNeura\b/,LavaTablet:/QPAD E704|\bIvoryS\b|E-TAB IVORY|\bE-TAB\b/,AocTablet:/MW0811|MW0812|MW0922|MTK8382|MW1031|MW0831|MW0821|MW0931|MW0712/,MpmanTablet:new RegExp("MP11 OCTA|MP10 OCTA|MPQC1114|MPQC1004|MPQC994|MPQC974|MPQC973|MPQC804|MPQC784|MPQC780|\n \\bMPG7\\b|MPDCG75|MPDCG71|MPDC1006|MP101DC|MPDC9000|MPDC905|MPDC706HD|MPDC706|MPDC705|MPDC110|\n MPDC100|MPDC99|MPDC97|MPDC88|MPDC8|MPDC77|MP709|MID701|MID711|MID170|MPDC703|MPQC1010"),CelkonTablet:/CT695|CT888|CT[\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\bCT-1\b/,WolderTablet:new RegExp("miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|\n POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|\n FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b"),MediacomTablet:"M-MPI10C3G|M-SP10EG|M-SP10EGP|M-SP10HXAH|M-SP7HXAH|M-SP10HXBH|M-SP8HXAH|M-SP8MXA",MiTablet:/\bMI PAD\b|\bHM NOTE 1W\b/,NibiruTablet:/Nibiru M1|Nibiru Jupiter One/,NexoTablet:/NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI/,LeaderTablet:new RegExp("TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|\n TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100"),UbislateTablet:/UbiSlate[\s]?7C/,PocketBookTablet:/Pocketbook/,KocasoTablet:/\b(TB-1207)\b/,HisenseTablet:/\b(F5281|E2371)\b/,Hudl:/Hudl HT7S3|Hudl 2/,TelstraTablet:/T-Hub2/,GenericTablet:new RegExp("Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|\n A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|\n Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bTP750\\b|\\bQTAQZ3\\b|WVT101|TM1088|KT107")},cV={BLACKBERRY:"Blackberry",FIREFOX_OS:"Firefox-OS",CHROME_BOOK:"Chrome-Book",WINDOWS_PHONE:"Windows-Phone",VITA:"Vita",PS4:"PS4",CHROMECAST:"Chromecast",APPLE_TV:"Apple-TV",GOOGLE_TV:"Google-TV",ANDROID:"Android",Tesla:"Tesla",iPad:"iPad",IPHONE:"iPhone",iPod:"iPod",UNKNOWN:rV.UKNOWN,HTC:"HTC",NEXUS_PHONE:"Nexus Phone",NexusTablet:"Nexus Tablet",DELL:"Dell",MOTOROLA:"Motorola",SAMSUNG:"Samsung",LG:"LG",SONY:"Sony",ASUS:"Asus",NOKIA_LUMIA:"Nokia Lumia",MICROMAX:"Micromax",PALM:"Palm",VERTU:"Vertu",PANTECH:"PANTECH",FLY:"Fly",WIKO:"WIKO",I_MOBILE:"i-mobile",SIMVALLEY:"Simvalley",WOLFGANG:"Wolfgang",ALCATEL:"Alcatel",NINTENDO:"Nintendo",AMOI:"Amoi",INQ:"INQ",GENERIC_PHONE:"Generic Phone"},uV={WINDOWS:"Windows",MAC:"Mac",IOS:"iOS",ANDROID:"Android",LINUX:"Linux",UNIX:"Unix",FIREFOX_OS:"Firefox-OS",CHROME_OS:"Chrome-OS",WINDOWS_PHONE:"Windows-Phone",UNKNOWN:rV.UKNOWN},dV={WINDOWS_3_11:"windows-3-11",WINDOWS_95:"windows-95",WINDOWS_ME:"windows-me",WINDOWS_98:"windows-98",WINDOWS_CE:"windows-ce",WINDOWS_2000:"windows-2000",WINDOWS_XP:"windows-xp",WINDOWS_SERVER_2003:"windows-server-2003",WINDOWS_VISTA:"windows-vista",WINDOWS_7:"windows-7",WINDOWS_8_1:"windows-8-1",WINDOWS_8:"windows-8",WINDOWS_10:"windows-10",WINDOWS_PHONE_7_5:"windows-phone-7-5",WINDOWS_PHONE_8_1:"windows-phone-8-1",WINDOWS_PHONE_10:"windows-phone-10",WINDOWS_NT_4_0:"windows-nt-4-0",MACOSX_15:"mac-os-x-15",MACOSX_14:"mac-os-x-14",MACOSX_13:"mac-os-x-13",MACOSX_12:"mac-os-x-12",MACOSX_11:"mac-os-x-11",MACOSX_10:"mac-os-x-10",MACOSX_9:"mac-os-x-9",MACOSX_8:"mac-os-x-8",MACOSX_7:"mac-os-x-7",MACOSX_6:"mac-os-x-6",MACOSX_5:"mac-os-x-5",MACOSX_4:"mac-os-x-4",MACOSX_3:"mac-os-x-3",MACOSX_2:"mac-os-x-2",MACOSX:"mac-os-x",iOS:"iOS",UNKNOWN:rV.UKNOWN.toLowerCase()},hV=Object.assign(Object.assign(Object.assign({},aV),lV),{FIREFOX_OS:{and:[/\bFirefox\b/,/\bMobile\b/]},CHROME_BOOK:/\bCrOS\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,CHROMECAST:/\bCrKey\b/,APPLE_TV:/^iTunes-AppleTV\/4.1$/,GOOGLE_TV:/\bGoogleTV\b/,Tesla:/Tesla\/([0-9]{4}.[0-9]{1,2}.?[0-9]{0,2}.?[0-9]{0,2})-(.{7})/}),pV={WINDOWS_3_11:/Win16/,WINDOWS_95:/(Windows 95|Win95|Windows_95)/,WINDOWS_ME:/(Win 9x 4.90|Windows ME)/,WINDOWS_98:/(Windows 98|Win98)/,WINDOWS_CE:/Windows CE/,WINDOWS_2000:/(Windows NT 5.0|Windows 2000)/,WINDOWS_XP:/(Windows NT 5.1|Windows XP)/,WINDOWS_SERVER_2003:/Windows NT 5.2/,WINDOWS_VISTA:/Windows NT 6.0/,WINDOWS_7:/(Windows 7|Windows NT 6.1)/,WINDOWS_8_1:/(Windows 8.1|Windows NT 6.3)/,WINDOWS_8:/(Windows 8|Windows NT 6.2)/,WINDOWS_10:/(Windows NT 10.0)/,WINDOWS_PHONE_7_5:/(Windows Phone OS 7.5)/,WINDOWS_PHONE_8_1:/(Windows Phone 8.1)/,WINDOWS_PHONE_10:/(Windows Phone 10)/,WINDOWS_NT_4_0:{and:[/(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/,{not:/Windows NT 10.0/}]},MACOSX:/(MAC OS X\s*[^ 0-9])/,MACOSX_3:/(Darwin 10.3|Mac OS X 10.3)/,MACOSX_4:/(Darwin 10.4|Mac OS X 10.4)/,MACOSX_5:/(Mac OS X 10.5)/,MACOSX_6:/(Mac OS X 10.6)/,MACOSX_7:/(Mac OS X 10.7)/,MACOSX_8:/(Mac OS X 10.8)/,MACOSX_9:/(Mac OS X 10.9)/,MACOSX_10:/(Mac OS X 10.10)/,MACOSX_11:/(Mac OS X 10.11)/,MACOSX_12:/(Mac OS X 10.12)/,MACOSX_13:/(Mac OS X 10.13)/,MACOSX_14:/(Mac OS X 10.14)/,MACOSX_15:/(Mac OS X 10.15)/,iOS:/(iPhone OS\s*[0-9_]+)/},mV={CHROME:[/\bChrome\/([\d\.]+)\b/,/\bCriOS\/([\d\.]+)\b/,/\bHeadlessChrome\/([\d\.]+)\b/],FIREFOX:[/\bFirefox\/([\d\.]+)\b/,/\bFxiOS\/([\d\.]+)\b/],SAFARI:[/\bVersion\/([\d\.]+)\b/,/\bSafari\/([\d\.]+)\b/],OPERA:[/\bVersion\/([\d\.]+)\b/,/\bOPR\/([\d\.]+)\b/],IE:[/\bMSIE ([\d\.]+\w?)\b/,/\brv:([\d\.]+\w?)\b/],MS_EDGE:/\bEdg(?:e|A|iOS)\/([\d\.]+)\b/,MS_EDGE_CHROMIUM:/\bEdg\/([\d\.]+)\b/,SAMSUNG:/\bSamsungBrowser\/([\d\.]+)\b/,UCBROWSER:/\bUCBrowser\/([\d\.]+)\b/},fV=(t,e)=>(t[e]=pV[e],t),gV=Object.keys(pV).reduce(fV,{}),_V=(t,e)=>(t[oV[e]]=mV[e],t),bV=Object.keys(mV).reduce(_V,{});var yV=Object.freeze({__proto__:null,GENERAL:rV,BROWSERS:oV,MOBILES_RE:aV,TABLETS_RE:lV,DEVICES:cV,OS:uV,OS_VERSIONS:dV,OS_RE:{WINDOWS:{and:[{or:[/\bWindows|(Win\d\d)\b/,/\bWin 9x\b/]},{not:/\bWindows Phone\b/}]},MAC:{and:[/\bMac OS\b/,{not:{or:[/\biPhone\b/,/\biPad\b/,/\biPod\b/,/\bWindows Phone\b/]}}]},IOS:{and:[{or:[/\biPad\b/,/\biPhone\b/,/\biPod\b/]},{not:/\bWindows Phone\b/}]},ANDROID:{and:[/\bAndroid\b/,{not:/\bWindows Phone\b/}]},LINUX:/\bLinux\b/,UNIX:/\bUNIX\b/,FIREFOX_OS:{and:[/\bFirefox\b/,/Mobile\b/]},CHROME_OS:/\bCrOS\b/,WINDOWS_PHONE:{or:[/\bIEMobile\b/,/\bWindows Phone\b/]},PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/},BROWSERS_RE:{CHROME:{and:[{or:[/\bChrome\b/,/\bCriOS\b/,/\bHeadlessChrome\b/]},{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},FIREFOX:{or:[/\bFirefox\b/,/\bFxiOS\b/]},SAFARI:{and:[/^((?!CriOS).)*\Safari\b.*$/,{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bWindows Phone\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},OPERA:{or:[/Opera\b/,/\bOPR\b/]},IE:{or:[/\bMSIE\b/,/\bTrident\b/,/^Mozilla\/5\.0 \(Windows NT 10\.0; Win64; x64\)$/]},MS_EDGE:{or:[/\bEdg(e|A|iOS)\b/]},MS_EDGE_CHROMIUM:/\bEdg\/\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/,FB_MESSANGER:/\bFBAN\/MessengerForiOS\b/,SAMSUNG:/\bSamsungBrowser\b/,UCBROWSER:/\bUCBrowser\b/},DEVICES_RE:hV,OS_VERSIONS_RE_MAP:pV,BROWSER_VERSIONS_RE_MAP:mV,OS_VERSIONS_RE:gV,BROWSER_VERSIONS_RE:bV,"\u02750":fV,"\u02751":_V});class vV{constructor(){}test(t,e){return"string"==typeof e&&(e=new RegExp(e)),e instanceof RegExp?e.test(t):e&&Array.isArray(e.and)?e.and.every(e=>this.test(t,e)):e&&Array.isArray(e.or)?e.or.some(e=>this.test(t,e)):!(!e||!e.not||this.test(t,e.not))}exec(t,e){return"string"==typeof e&&(e=new RegExp(e)),e instanceof RegExp?e.exec(t):e&&Array.isArray(e)?e.reduce((e,i)=>e||this.exec(t,i),null):null}}var wV=function(t){return t.Mobile="mobile",t.Tablet="tablet",t.Desktop="desktop",t.Unknown="unknown",t}({}),CV=function(t){return t.Portrait="portrait",t.Landscape="landscape",t}({});let xV=(()=>{class t{constructor(t){this.platformId=t,this.ua="",this.userAgent="",this.os="",this.browser="",this.device="",this.os_version="",this.browser_version="",this.reTree=new vV,this.deviceType="",this.orientation="",vh(this.platformId)&&"undefined"!=typeof window&&(this.userAgent=window.navigator.userAgent),this.setDeviceInfo(this.userAgent)}setDeviceInfo(t=this.userAgent){t!==this.userAgent&&(this.userAgent=t);const e=[{const:"OS",prop:"os"},{const:"BROWSERS",prop:"browser"},{const:"DEVICES",prop:"device"},{const:"OS_VERSIONS",prop:"os_version"}];if(e.forEach(e=>{this[e.prop]=Object.keys(yV[e.const]).reduce((i,n)=>"device"===yV[e.const][n]&&vh(this.platformId)&&(this.reTree.test(this.userAgent,lV.iPad)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)?(i[yV[e.const][n]]="iPad",Object):(i[yV[e.const][n]]=this.reTree.test(t,yV[`${e.const}_RE`][n]),i),{})}),e.forEach(t=>{this[t.prop]=Object.keys(yV[t.const]).map(e=>yV[t.const][e]).reduce((e,i)=>"device"===t.prop&&e===yV[t.const].ANDROID?this[t.prop][i]?i:e:e===yV[t.const].UNKNOWN&&this[t.prop][i]?i:e,yV[t.const].UNKNOWN)}),this.browser_version="0",this.browser!==oV.UNKNOWN){const e=this.reTree.exec(t,bV[this.browser]);e&&(this.browser_version=e[1])}this.orientation="undefined"!=typeof window&&window.matchMedia?window.matchMedia("(orientation: landscape)").matches?CV.Landscape:CV.Portrait:rV.UKNOWN,this.deviceType=this.isTablet()?wV.Tablet:this.isMobile(this.userAgent)?wV.Mobile:this.isDesktop(this.userAgent)?wV.Desktop:wV.Unknown}getDeviceInfo(){return{userAgent:this.userAgent,os:this.os,browser:this.browser,device:this.device,os_version:this.os_version,browser_version:this.browser_version,deviceType:this.deviceType,orientation:this.orientation}}isMobile(t=this.userAgent){return!this.isTablet(t)&&!!Object.keys(aV).find(e=>this.reTree.test(t,aV[e]))}isTablet(t=this.userAgent){return!(!vh(this.platformId)||!(this.reTree.test(this.userAgent,lV.iPad)||"undefined"!=typeof navigator&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1))||!!Object.keys(lV).find(e=>!!this.reTree.test(t,lV[e]))}isDesktop(t=this.userAgent){const e=[cV.PS4,cV.CHROME_BOOK,cV.UNKNOWN];return(this.device!==cV.UNKNOWN||!this.isMobile(t)&&!this.isTablet(t))&&e.indexOf(this.device)>-1}}return t.\u0275fac=function(e){return new(e||t)(wn(Jc))},t.\u0275prov=_t({factory:function(){return new t(wn(Jc))},token:t,providedIn:"root"}),t})();var SV=i("DlQD");const kV=(()=>{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 AV(t=null){return e=>e.lift(new OV(t))}class OV{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new EV(t,this.defaultValue))}}class EV extends m{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function TV(t=MV){return e=>e.lift(new PV(t))}class PV{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new DV(t,this.errorFactory))}}class DV extends m{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function MV(){return new kV}function IV(t,e){const i=arguments.length>=2;return n=>n.pipe(t?Mm((e,i)=>t(e,i,n)):_,Tf(1),i?AV(e):TV(()=>new kV))}const RV=["*"];class LV{}const FV=new en("SECURITY_CONTEXT");let NV=(()=>{class t{constructor(t,e,i,n,s){this.platform=t,this.securityContext=e,this.http=i,this.sanitizer=s,this.initialMarkedOptions={renderer:new SV.Renderer},this.options=n}get options(){return this._options}set options(t){this._options=Object.assign(Object.assign({},this.initialMarkedOptions),t)}get renderer(){return this.options.renderer}set renderer(t){this.options.renderer=t}compile(t,e=!1,i=!1,n=this.options){const s=this.trimIndentation(t),r=e?this.decodeHtml(s):s,o=i?this.renderEmoji(r):r,a=Object(SV.parse)(o,n);return this.sanitizer.sanitize(this.securityContext,a)||""}getSource(t){if(!this.http)throw new Error("[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(t,{responseType:"text"}).pipe(E(e=>this.handleExtension(t,e)))}highlight(t){if(vh(this.platform)&&"undefined"!=typeof Prism){t||(t=document);const e=t.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(e,t=>t.classList.add("language-none")),Prism.highlightAllUnder(t)}}renderKatex(t,e){if("undefined"==typeof katex||void 0===katex.renderToString)throw new Error("[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information");return t.replace(/\$([^\s][^$]*?[^\s])\$/gm,(t,i)=>katex.renderToString(i,e))}decodeHtml(t){if(vh(this.platform)){const e=document.createElement("textarea");return e.innerHTML=t,e.value}return t}handleExtension(t,e){const i=t?t.split("?")[0].split(".").splice(-1).join():null;return"md"!==i?"```"+i+"\n"+e+"\n```":e}renderEmoji(t){if("undefined"==typeof joypixels||void 0===joypixels.shortnameToUnicode)throw new Error("[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information");return joypixels.shortnameToUnicode(t)}trimIndentation(t){if(!t)return"";let e;return t.split("\n").map(t=>{let i=e;return t.length>0&&(i=isNaN(i)?t.search(/\S|$/):Math.min(t.search(/\S|$/),i)),isNaN(e)&&(e=i),i?t.substring(i):t}).join("\n")}}return t.\u0275fac=function(e){return new(e||t)(wn(Jc),wn(FV),wn(Km,8),wn(LV,8),wn(Xh))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();var VV=function(t){return t.LineHighlight="line-highlight",t.LineNumbers="line-numbers",t}({});let BV=(()=>{class t{constructor(t,e){this.element=t,this.markdownService=e,this.error=new kc,this.load=new kc,this.ready=new kc,this._emoji=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1}get emoji(){return this._emoji}set emoji(t){this._emoji=this.coerceBooleanProperty(t)}get katex(){return this._katex}set katex(t){this._katex=this.coerceBooleanProperty(t)}get lineHighlight(){return this._lineHighlight}set lineHighlight(t){this._lineHighlight=this.coerceBooleanProperty(t)}get lineNumbers(){return this._lineNumbers}set lineNumbers(t){this._lineNumbers=this.coerceBooleanProperty(t)}ngOnChanges(){null==this.data?null==this.src||this.handleSrc():this.handleData()}ngAfterViewInit(){this.data||this.src||this.handleTransclusion()}render(t,e=!1){let i=this.markdownService.compile(t,e,this.emoji);i=this.katex?this.markdownService.renderKatex(i,this.katexOptions):i,this.element.nativeElement.innerHTML=i,this.handlePlugins(),this.markdownService.highlight(this.element.nativeElement),this.ready.emit()}coerceBooleanProperty(t){return null!=t&&"false"!=`${t}`}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe(t=>{this.render(t),this.load.emit(t)},t=>this.error.emit(t))}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.lineHighlight&&(this.setPluginClass(this.element.nativeElement,VV.LineHighlight),this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset})),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,VV.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(t,e){const i=t.querySelectorAll("pre");for(let n=0;n{const s=e[t];if(s){const e=this.toLispCase(t);i.item(n).setAttribute(e,s.toString())}})}toLispCase(t){const e=t.match(/([A-Z])/g);if(!e)return t;let i=t.toString();for(let n=0,s=e.length;n{class t{static forRoot(e){return{ngModule:t,providers:[NV,e&&e.loader||[],e&&e.markedOptions||[],{provide:FV,useValue:e&&null!=e.sanitize?e.sanitize:hs.HTML}]}}static forChild(){return{ngModule:t}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({}),t})();class zV{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new GV(t,this.durationSelector))}}class GV extends H{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){try{const e=this.durationSelector.call(this,t);e&&this._tryNext(t,e)}catch(e){this.destination.error(e)}}_complete(){this.emitValue(),this.destination.complete()}_tryNext(t,e){let i=this.durationSubscription;this.value=t,this.hasValue=!0,i&&(i.unsubscribe(),this.remove(i)),i=z(e,new B(this)),i&&!i.closed&&this.add(this.durationSubscription=i)}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){if(this.hasValue){const t=this.value,e=this.durationSubscription;e&&(this.durationSubscription=void 0,e.unsubscribe(),this.remove(e)),this.value=void 0,this.hasValue=!1,super._next(t)}}}const UV=new en("ngProgressConfig");let jV=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:UV,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[yh]]}),t})();const WV={production:!0};function $V(t,e){if(1&t&&(Qo(0,"mat-option",4),Na(1),Xo()),2&t){const t=e.$implicit;qo("value",t),dr(1),Ba(" ",t.name," ")}}let qV=(()=>{class t extends hN{ngOnInit(){this.filteredOptions=this.formControl.valueChanges.pipe(jp(""),E(t=>"string"==typeof t?t:t.name),E(t=>this.to.filter(t)))}displayFn(t){return t?t.name:void 0}}return t.\u0275fac=function(e){return YV(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-autocomplete-section"]],features:[Oo],decls:5,vars:9,consts:[["matInput","",3,"matAutocomplete","formControl","formlyAttributes","placeholder","errorStateMatcher"],[3,"displayWith"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(t,e){1&t&&(Ko(0,"input",0),Qo(1,"mat-autocomplete",1,2),jo(3,$V,2,2,"mat-option",3),vc(4,"async"),Xo()),2&t&&(qo("matAutocomplete",Wo(2))("formControl",e.formControl)("formlyAttributes",e.field)("placeholder",e.to.placeholder)("errorStateMatcher",e.errorStateMatcher),dr(1),qo("displayWith",e.displayFn),dr(2),qo("ngForOf",wc(4,7,e.filteredOptions)))},directives:[cE,fA,_b,Ub,xy,BF,cA,Kd,Jx],pipes:[ph],styles:[""]}),t})();const YV=Qi(qV),QV=["fieldComponent"];let XV=(()=>{class t extends GF{}return t.\u0275fac=function(e){return KV(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-card-wrapper"]],viewQuery:function(t,e){if(1&t&&Vc(QV,3,Kl),2&t){let t;Nc(t=Hc())&&(e.fieldComponent=t.first)}},inputs:{to:"to"},features:[Oo],decls:9,vars:2,consts:[["fieldComponent",""]],template:function(t,e){1&t&&(Qo(0,"mat-card"),Qo(1,"mat-card-header"),Qo(2,"mat-card-title"),Na(3),Xo(),Qo(4,"mat-card-subtitle"),Na(5),Xo(),Xo(),Qo(6,"mat-card-content"),ta(7,null,0),Xo(),Xo()),2&t&&(dr(3),Va(e.to.label),dr(2),Va(e.to.description))},directives:[ZA,JA,QA,XA,YA],styles:["mat-card[_ngcontent-%COMP%]{margin-bottom:1em;padding-bottom:2em}mat-card[_ngcontent-%COMP%] .mat-card-header-text{margin-left:0}mat-card[_ngcontent-%COMP%] .mat-card-header-text mat-card-title{font-size:1em;font-weight:600;margin-bottom:10px}"]}),t})();const KV=Qi(XV),ZV=["fieldComponent"];let JV=(()=>{class t extends GF{}return t.\u0275fac=function(e){return tB(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-help-wrapper"]],viewQuery:function(t,e){if(1&t&&Vc(ZV,3,Kl),2&t){let t;Nc(t=Hc())&&(e.fieldComponent=t.first)}},inputs:{to:"to"},features:[Oo],decls:7,vars:2,consts:[[1,"mat-typography","alert","alert-info"],[1,"mat-body-strong"],["fieldComponent",""]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"p",1),Na(2),Xo(),Qo(3,"p"),Na(4),Xo(),ta(5,null,2),Xo()),2&t&&(dr(2),Va(e.to.label),dr(2),Va(e.to.description))},styles:[""]}),t})();const tB=Qi(JV);function eB(t,e){if(1&t){const t=ea();Qo(0,"mat-tree-node",3),Qo(1,"li",4),Ko(2,"button",5),Qo(3,"mat-checkbox",6),ra("change",function(){Be(t);const i=e.$implicit;return ua().toggleNode(i)}),Na(4),Xo(),Xo(),Xo()}if(2&t){const t=e.$implicit,i=ua();dr(3),qo("checked",i.checklistSelection.isSelected(t)),dr(1),Va(t.name)}}function iB(t,e){if(1&t&&(Qo(0,"span",13),Na(1),Xo()),2&t){const t=ua().$implicit;ma("matBadge",ua().numSelectedDescendants(t)),dr(1),Va(t.name)}}function nB(t,e){if(1&t&&(Qo(0,"span"),Na(1),Xo()),2&t){const t=ua().$implicit;dr(1),Va(t.name)}}function sB(t,e){if(1&t&&(Qo(0,"mat-nested-tree-node"),Qo(1,"li"),Qo(2,"div",4),Qo(3,"button",7),Qo(4,"mat-icon",8),Na(5),Xo(),Xo(),Qo(6,"mat-checkbox",9),jo(7,iB,2,2,"span",10),jo(8,nB,2,1,"span",11),Xo(),Xo(),Qo(9,"ul"),ta(10,12),Xo(),Xo(),Xo()),2&t){const t=e.$implicit,i=ua();dr(3),zo("aria-label","toggle "+t.name),dr(2),Ba(" ",i.treeControl.isExpanded(t)?"expand_more":"chevron_right"," "),dr(1),qo("checked",i.checklistSelection.isSelected(t)),dr(1),qo("ngIf",i.numSelectedDescendants(t)),dr(1),qo("ngIf",!i.numSelectedDescendants(t)),dr(1),Sa("tree-select-invisible",!i.treeControl.isExpanded(t))}}let rB=(()=>{class t extends hN{constructor(){super(),this.dataLoaded=!1,this.nodes={},this.checklistSelection=new mS(!0),this.hasNestedChild=(t,e)=>e.children&&e.children.length>0,this.treeControl=new vL(t=>Sp(t.children)),this.dataSource=new $L}ngOnInit(){this.to.options.subscribe(t=>{this.dataSource.data=t,this.updateSelection()})}updateSelection(){this.isReady()&&(this.model.categories&&this.model.categories.forEach(t=>{const e=this.findNode(t.id);e&&this.toggleNode(e),this._updateModelCategories()}),this.dataLoaded=!0)}findNode(t){const e=[];return this.dataSource.data.forEach(t=>{this.treeControl.getDescendants(t).forEach(t=>e.push(t)),e.push(t)}),e.find(e=>e.id===t)}numSelectedDescendants(t){return this.treeControl.getDescendants(t).filter(t=>this.checklistSelection.isSelected(t)).length}toggleNode(t){this.checklistSelection.toggle(t);const e=[];let i=this.findNode(t.parent_id);for(;null!=i;)e.push(i),i=this.findNode(i.parent_id);this.checklistSelection.isSelected(t)?e.forEach(t=>{const e=this.findNode(t.id);this.checklistSelection.select(e)}):e.forEach(t=>{const e=this.findNode(t.id);this.numSelectedDescendants(e)<1&&this.checklistSelection.deselect(e)}),this._updateModelCategories()}isReady(){return!!(this.field&&this.field.form&&this.field.form.controls)}_updateModelCategories(){this.model.categories=[],this.checklistSelection.selected.forEach(t=>this.model.categories[t.id]=!0)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-multiselect-tree"]],inputs:{to:"to"},features:[Oo],decls:3,vars:3,consts:[[1,"tree-select",3,"dataSource","treeControl"],["matTreeNodeToggle","",4,"matTreeNodeDef"],[4,"matTreeNodeDef","matTreeNodeDefWhen"],["matTreeNodeToggle",""],[1,"mat-tree-node"],["disabled","","mat-icon-button",""],[3,"checked","change"],["mat-icon-button","","matTreeNodeToggle","",1,"toggle-node-button"],[1,"mat-icon-rtl-mirror"],["disabled","true",3,"checked"],["matBadgeColor","accent","matBadgeOverlap","false",3,"matBadge",4,"ngIf"],[4,"ngIf"],["matTreeNodeOutlet",""],["matBadgeColor","accent","matBadgeOverlap","false",3,"matBadge"]],template:function(t,e){1&t&&(Qo(0,"mat-tree",0),jo(1,eB,5,2,"mat-tree-node",1),jo(2,sB,11,7,"mat-nested-tree-node",2),Xo()),2&t&&(qo("dataSource",e.dataSource)("treeControl",e.treeControl),dr(2),qo("matTreeNodeDefWhen",e.hasNestedChild))},directives:[zL,LL,RL,UL,TA,hO,NL,JT,Jd,HL,wA],styles:[".tree-select-invisible[_ngcontent-%COMP%]{display:none}.tree-select[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .tree-select[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;margin-left:1rem;list-style-type:none}.tree-select[_ngcontent-%COMP%] li[_ngcontent-%COMP%] button.toggle-node-button[_ngcontent-%COMP%], .tree-select[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] button.toggle-node-button[_ngcontent-%COMP%]{outline:none!important}"]}),t})();const oB=function(t){window.scroll({top:0,left:0,behavior:"smooth"}),"Safari"===t.browser?window.scroll(0,0):window.scroll({behavior:"smooth",top:0})},aB=function(t){const e=document.querySelector("mat-form-field.ng-invalid");e&&("Safari"===t.browser?window.scroll(0,e.offsetTop-200):window.scroll({behavior:"smooth",top:e.offsetTop-200}))},lB=function(t){return null==(e=t)||"object"!=typeof e||t instanceof RegExp||t instanceof v||t.changingThisBreaksApplicationSecurity?t:t instanceof ay?null:t instanceof Date?new Date(t.getTime()):Array.isArray(t)?t.slice(0).map(t=>lB(t)):(t=Object.assign({},t),Object.keys(t).forEach(e=>t[e]=lB(t[e])),t);var e},cB=function(t){return{"repeat-section-dialog-save":!0,disabled:t}},uB=function(){return{"repeat-section-dialog-cancel":!0}};let dB=(()=>{class t{constructor(t,e,i){this.data=t,this.deviceDetectorService=e,this.dialogRef=i}ngAfterContentInit(){this.initialModel=lB(this.data.model),this.updateDisableSave()}updateDisableSave(){this.disableSave=!this.noErrors()}noErrors(){return this.data.fields.every(t=>t.formControl&&t.formControl.valid)}onNoClick(){Object.keys(this.initialModel).forEach(t=>{this.data.model[t]=this.initialModel[t]});const t=0===Object.keys(this.data.model).length&&this.data.model.constructor===Object;this.dialogRef.close(t?void 0:this.data.model)}highlightRequiredFields(t){t.forEach(t=>{t.formControl.updateValueAndValidity(),t.formControl.markAsDirty(),t.fieldGroup&&this.highlightRequiredFields(t.fieldGroup)}),this.updateDisableSave()}onInvalidFields(){this.highlightRequiredFields(this.data.fields),aB(this.deviceDetectorService)}onSubmit(){this.noErrors()&&this.dialogRef.close(this.data)}}return t.\u0275fac=function(e){return new(e||t)($o(BO),$o(xV),$o(NO))},t.\u0275cmp=Xt({type:t,selectors:[["app-repeat-section-dialog"]],decls:14,vars:8,consts:[[1,"mat-typography"],["mat-dialog-content",""],["fxLayout","row","fxLayout.lt-md","column"],["fxFlex",""],["mat-button","","id","highlight-required-fields-in-dialog","color","warn",3,"click"],[3,"fields","model","change"],["mat-dialog-actions",""],["mat-flat-button","","color","primary",3,"ngClass","click"],["mat-button","",3,"ngClass","click"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"div",1),Qo(2,"div",2),Qo(3,"h1"),Na(4),Xo(),Ko(5,"span",3),Qo(6,"button",4),ra("click",function(){return e.highlightRequiredFields(e.data.fields)}),Na(7,"*Required"),Xo(),Xo(),Qo(8,"formly-form",5),ra("change",function(){return e.updateDisableSave()}),Xo(),Xo(),Qo(9,"div",6),Qo(10,"button",7),ra("click",function(){return e.disableSave?e.onInvalidFields():e.onSubmit()}),Na(11,"Save"),Xo(),Qo(12,"button",8),ra("click",function(){return e.onNoClick()}),Na(13,"Cancel"),Xo(),Xo(),Xo()),2&t&&(dr(4),Va(e.data.title),dr(4),qo("fields",e.data.fields)("model",e.data.model),dr(2),qo("ngClass",pc(5,cB,!e.noErrors())),dr(2),qo("ngClass",hc(7,uB)))},directives:[YO,o_,k_,TA,NF,QO,Qd,Pg],styles:["#highlight-required-fields-in-dialog[_ngcontent-%COMP%]{text-align:right}"]}),t})();function hB(t,e){1&t&&Ko(0,"app-form-printout",3),2&t&&qo("field",ua().$implicit)}function pB(t,e){if(1&t&&(Qo(0,"p"),Na(1),Xo()),2&t){const t=ua().$implicit,e=ua();dr(1),Va(e.getModelValue(t.name))}}function mB(t,e){if(1&t&&(Zo(0),jo(1,hB,1,1,"app-form-printout",1),jo(2,pB,2,1,"p",2),Jo()),2&t){const t=e.$implicit,i=ua();dr(1),qo("ngIf",t.fieldGroup&&t.fieldGroup.length>0),dr(1),qo("ngIf",!t.fieldGroup&&i.getModelValue(t.name))}}let fB=(()=>{class t{constructor(){}getModelValue(t){let e=this.field.model[t];if(this.field.fieldGroup){let t;if(this.field.fieldGroup.forEach(i=>{"select"!==i.type&&"multicheckbox"!==i.type&&"radio"!==i.type||i.templateOptions.options.forEach(i=>{this._isOther(i.value)||this._isOther(i.label)||i.value!==e||(t=i.label)})}),t)return t}const i=RegExp(`^${t}`);"string"==typeof e&&i.test(e)&&(e=e.replace(i,""));const n=/_other$|\w+Other$/;if(n.test(t)){const i=t.replace(n,""),s=this.field.model[i];return this._isOther(s)||n.test(s)?e:null}return this._isOther(e)?null:e}_isOther(t){return t&&"string"==typeof t&&"other"===t.toLowerCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-form-printout"]],inputs:{field:"field"},decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[3,"field",4,"ngIf"],[4,"ngIf"],[3,"field"]],template:function(t,e){1&t&&jo(0,mB,3,2,"ng-container",0),2&t&&qo("ngForOf",e.field.fieldGroup)},directives:[Kd,Jd,t],styles:["p[_ngcontent-%COMP%]{margin-bottom:0;margin-top:0}"]}),t})();function gB(t,e){if(1&t){const t=ea();Qo(0,"mat-card",4),Qo(1,"mat-card-content",5),Qo(2,"div",6),Ko(3,"app-form-printout",7),Xo(),Qo(4,"div",8),Qo(5,"button",9),ra("click",function(){Be(t);const i=e.index,n=e.$implicit;return ua().openDialog(i,n)}),Qo(6,"mat-icon"),Na(7,"edit"),Xo(),Xo(),Qo(8,"button",9),ra("click",function(){Be(t);const i=e.index;return ua().remove(i)}),Qo(9,"mat-icon"),Na(10,"close"),Xo(),Xo(),Xo(),Xo(),Xo()}if(2&t){const t=e.$implicit;dr(3),qo("field",t)}}let _B=(()=>{class t extends zF{constructor(t){super(),this.dialog=t}openDialog(t,e){const i=!!e,n=this.field.templateOptions.description;this.dialog.open(dB,{maxWidth:"100vw",maxHeight:"100vh",minWidth:"70vw",data:{title:i?n.replace(/^Add an|^Add a|^Add/,"Edit"):n,fields:[this.field.fieldArray],model:i?this.field.fieldGroup[t].model:{}}}).afterClosed().subscribe(e=>{e&&e.model&&(this.field.fieldGroup.length>t&&super.remove(t),super.add(t,e.model))})}}return t.\u0275fac=function(e){return new(e||t)($o(jO))},t.\u0275cmp=Xt({type:t,selectors:[["app-repeat-section"]],features:[Oo],decls:5,vars:2,consts:[["fxLayout","column","fxLayoutGap","1em",1,"container"],["class","repeat",4,"ngFor","ngForOf"],[1,"repeat-action"],["mat-flat-button","","color","primary","type","button",3,"click"],[1,"repeat"],["fxLayout","row"],["fxFlex","70"],[3,"field"],["fxFlex","30","fxLayout","row","fxLayoutAlign","end start"],["mat-icon-button","","type","button",3,"click"]],template:function(t,e){1&t&&(Qo(0,"div",0),jo(1,gB,11,1,"mat-card",1),Xo(),Qo(2,"div",2),Qo(3,"button",3),ra("click",function(){return e.openDialog(e.field.fieldGroup.length)}),Na(4),Xo(),Xo()),2&t&&(dr(1),qo("ngForOf",e.field.fieldGroup),dr(3),Ba(" ",e.field.templateOptions.description," "))},directives:[o_,p_,Kd,TA,ZA,YA,k_,fB,Z_,JT],styles:["mat-card.repeat[_ngcontent-%COMP%]{background-color:#e4e7f2;border-left:8px solid #232d4b}mat-card.repeat[_ngcontent-%COMP%]:active, mat-card.repeat[_ngcontent-%COMP%]:focus, mat-card.repeat[_ngcontent-%COMP%]:focus-within, mat-card.repeat[_ngcontent-%COMP%]:hover{background:#eee}.container[_ngcontent-%COMP%], .repeat-action[_ngcontent-%COMP%]{padding-top:1em}"]}),t})(),bB=(()=>{class t extends HF{ngOnInit(){}}return t.\u0275fac=function(e){return yB(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-resize-textarea"]],viewQuery:function(t,e){if(1&t&&Vc(cE,1),2&t){let t;Nc(t=Hc())&&(e.formFieldControl=t.first)}},features:[Oo],decls:2,vars:7,consts:[["matInput","",3,"id","formControl","cols","rows","placeholder","formlyAttributes","matTextareaAutosize"]],template:function(t,e){1&t&&(Qo(0,"textarea",0),Na(1," "),Xo()),2&t&&qo("id",e.id)("formControl",e.formControl)("cols",e.to.cols)("rows",e.to.rows)("placeholder",e.to.placeholder)("formlyAttributes",e.field)("matTextareaAutosize",!0)},directives:[cE,_b,iE,Ub,xy,BF],styles:[""]}),t})();const yB=Qi(bB);var vB=/^[a-zA-Z0-9.!#$%&\u2019*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/,wB=/^(\+\d{1,2}\s)?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}$/,CB=new RegExp("^(?:(?:https?|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))\\.?)(?::\\d{2,5})?(?:[/?#]\\S*)?$","i");function xB(t){return!t.value||vB.test(t.value)?null:{email:!0}}function SB(t,e){return`"${e.formControl.value}" is not a valid email address`}function kB(t){const e=t.parent,i=e.get("email"),n=e.get("emailConfirm");return n.value!==i.value&&n.value&&i.value?{emailConfirm:!0}:null}function AB(t,e){return"Email Does Not Match"}function OB(t){return!t.value||CB.test(t.value)?null:{url:!0}}function EB(t,e){return`We cannot save "${e.formControl.value}". Please provide the full path, including http:// or https://`}function TB(t){return!t.value||wB.test(t.value)?null:{phone:!0}}function PB(t,e){return`"${e.formControl.value}" is not a valid phone number`}function DB(t){if(t.value)for(const e in t.value)if(!0===t.value[e])return null;return{required:!0}}function MB(t,e){return"At least one of these checkboxes must be selected."}function IB(t,e){return`This value should be more than ${e.templateOptions.min}`}function RB(t,e){return`This value should be less than ${e.templateOptions.max}`}function LB(t){return t.formControl&&t.formControl.invalid&&(t.formControl.dirty||t.options.parentForm&&t.options.parentForm.submitted||t.field.validation&&t.field.validation.show)}function FB(t){return function(e){return 0===t?xp():e.lift(new NB(t))}}class NB{constructor(t){if(this.total=t,this.total<0)throw new Ef}call(t,e){return e.subscribe(new VB(t,this.total))}}class VB extends m{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;st.length)return null;if("full"===i.pathMatch&&(e.hasChildren()||n.lengthn[e]===t)}return t===e}function lH(t){return Array.prototype.concat.apply([],t)}function cH(t){return t.length>0?t[t.length-1]:null}function uH(t,e){for(const i in t)t.hasOwnProperty(i)&&e(t[i],i)}function dH(t){return sa(t)?t:ia(t)?V(Promise.resolve(t)):Sp(t)}function hH(t,e,i){return i?function(t,e){return oH(t,e)}(t.queryParams,e.queryParams)&&pH(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>aH(t[i],e[i]))}(t.queryParams,e.queryParams)&&mH(t.root,e.root)}function pH(t,e){if(!yH(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(const i in e.children){if(!t.children[i])return!1;if(!pH(t.children[i],e.children[i]))return!1}return!0}function mH(t,e){return fH(t,e,e.segments)}function fH(t,e,i){if(t.segments.length>i.length)return!!yH(t.segments.slice(0,i.length),i)&&!e.hasChildren();if(t.segments.length===i.length){if(!yH(t.segments,i))return!1;for(const i in e.children){if(!t.children[i])return!1;if(!mH(t.children[i],e.children[i]))return!1}return!0}{const n=i.slice(0,t.segments.length),s=i.slice(t.segments.length);return!!yH(t.segments,n)&&!!t.children.primary&&fH(t.children.primary,e,s)}}class gH{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=nH(this.queryParams)),this._queryParamMap}toString(){return CH.serialize(this)}}class _H{constructor(t,e){this.segments=t,this.children=e,this.parent=null,uH(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return xH(this)}}class bH{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=nH(this.parameters)),this._parameterMap}toString(){return PH(this)}}function yH(t,e){return t.length===e.length&&t.every((t,i)=>t.path===e[i].path)}class vH{}class wH{parse(t){const e=new LH(t);return new gH(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`/${SH(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(t=>`${AH(e)}=${AH(t)}`).join("&"):`${AH(e)}=${AH(i)}`});return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const CH=new wH;function xH(t){return t.segments.map(t=>PH(t)).join("/")}function SH(t,e){if(!t.hasChildren())return xH(t);if(e){const e=t.children.primary?SH(t.children.primary,!1):"",i=[];return uH(t.children,(t,e)=>{"primary"!==e&&i.push(`${e}:${SH(t,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function(t,e){let i=[];return uH(t.children,(t,n)=>{"primary"===n&&(i=i.concat(e(t,n)))}),uH(t.children,(t,n)=>{"primary"!==n&&(i=i.concat(e(t,n)))}),i}(t,(e,i)=>"primary"===i?[SH(t.children.primary,!1)]:[`${i}:${SH(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${xH(t)}/${e[0]}`:`${xH(t)}/(${e.join("//")})`}}function kH(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function AH(t){return kH(t).replace(/%3B/gi,";")}function OH(t){return kH(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function EH(t){return decodeURIComponent(t)}function TH(t){return EH(t.replace(/\+/g,"%20"))}function PH(t){return`${OH(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${OH(t)}=${OH(e[t])}`).join("")}`;var e}const DH=/^[^\/()?;=#]+/;function MH(t){const e=t.match(DH);return e?e[0]:""}const IH=/^[^=?&#]+/,RH=/^[^?&#]+/;class LH{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new _H([],{}):new _H([],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 _H(t,e)),i}parseSegment(){const t=MH(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new bH(EH(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=MH(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=MH(this.remaining);t&&(i=t,this.capture(i))}t[EH(e)]=EH(i)}parseQueryParam(t){const e=function(t){const e=t.match(IH);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(RH);return e?e[0]:""}(this.remaining);t&&(i=t,this.capture(i))}const n=TH(e),s=TH(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=MH(this.remaining),n=this.remaining[i.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error(`Cannot parse url '${this.url}'`);let s;i.indexOf(":")>-1?(s=i.substr(0,i.indexOf(":")),this.capture(s),this.capture(":")):t&&(s="primary");const r=this.parseChildren();e[s]=1===Object.keys(r).length?r.primary:new _H([],r),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 FH{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=NH(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=NH(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=VH(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return VH(t,this._root).map(t=>t.value)}}function NH(t,e){if(t===e.value)return e;for(const i of e.children){const e=NH(t,i);if(e)return e}return null}function VH(t,e){if(t===e.value)return[e];for(const i of e.children){const n=VH(t,i);if(n.length)return n.unshift(e),n}return[]}class BH{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function HH(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class zH extends FH{constructor(t,e){super(t),this.snapshot=e,qH(this,t)}toString(){return this.snapshot.toString()}}function GH(t,e){const i=function(t,e){const i=new WH([],{},{},"",{},"primary",e,null,t.root,-1,{});return new $H("",new BH(i,[]))}(t,e),n=new cp([new bH("",{})]),s=new cp({}),r=new cp({}),o=new cp({}),a=new cp(""),l=new UH(n,s,o,a,r,"primary",e,i.root);return l.snapshot=i.root,new zH(new BH(l,[]),i)}class UH{constructor(t,e,i,n,s,r,o,a){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=r,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(E(t=>nH(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(E(t=>nH(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function jH(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 WH{constructor(t,e,i,n,s,r,o,a,l,c,u){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=r,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=nH(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=nH(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class $H extends FH{constructor(t,e){super(e),this.url=t,qH(this,e)}toString(){return YH(this._root)}}function qH(t,e){e.value._routerState=t,e.children.forEach(e=>qH(t,e))}function YH(t){const e=t.children.length>0?` { ${t.children.map(YH).join(", ")} } `:"";return`${t.value}${e}`}function QH(t){if(t.snapshot){const e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,oH(e.queryParams,i.queryParams)||t.queryParams.next(i.queryParams),e.fragment!==i.fragment&&t.fragment.next(i.fragment),oH(e.params,i.params)||t.params.next(i.params),function(t,e){if(t.length!==e.length)return!1;for(let i=0;ioH(t.parameters,n[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||XH(t.parent,e.parent))}function KH(t,e,i){if(i&&t.shouldReuseRoute(e.value,i.value.snapshot)){const n=i.value;n._futureSnapshot=e.value;const s=function(t,e,i){return e.children.map(e=>{for(const n of i.children)if(t.shouldReuseRoute(e.value,n.value.snapshot))return KH(t,e,n);return KH(t,e)})}(t,e,i);return new BH(n,s)}{const i=t.retrieve(e.value);if(i){const t=i.route;return ZH(e,t),t}{const i=new UH(new cp((n=e.value).url),new cp(n.params),new cp(n.queryParams),new cp(n.fragment),new cp(n.data),n.outlet,n.component,n),s=e.children.map(e=>KH(t,e));return new BH(i,s)}}var n}function ZH(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let i=0;i{r[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new gH(i.root===t?e:iz(i.root,t,e),r,s)}function iz(t,e,i){const n={};return uH(t.children,(t,s)=>{n[s]=t===e?i:iz(t,e,i)}),new _H(t.segments,n)}class nz{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&JH(i[0]))throw new Error("Root segment cannot have matrix parameters");const n=i.find(tz);if(n&&n!==cH(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class sz{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function rz(t,e,i){if(t||(t=new _H([],{})),0===t.segments.length&&t.hasChildren())return oz(t,e,i);const n=function(t,e,i){let n=0,s=e;const r={match:!1,pathIndex:0,commandIndex:0};for(;s=i.length)return r;const e=t.segments[s],o=i[n];if(tz(o))break;const a=`${o}`,l=n0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!uz(a,l,e))return r;n+=2}else{if(!uz(a,{},e))return r;n++}s++}return{match:!0,pathIndex:s,commandIndex:n}}(t,e,i),s=i.slice(n.commandIndex);if(n.match&&n.pathIndex{"string"==typeof i&&(i=[i]),null!==i&&(s[n]=rz(t.children[n],e,i))}),uH(t.children,(t,e)=>{void 0===n[e]&&(s[e]=t)}),new _H(t.segments,s)}}function az(t,e,i){const n=t.segments.slice(0,e);let s=0;for(;s{"string"==typeof t&&(t=[t]),null!==t&&(e[i]=az(new _H([],{}),0,t))}),e}function cz(t){const e={};return uH(t,(t,i)=>e[i]=`${t}`),e}function uz(t,e,i){return t==i.path&&oH(e,i.parameters)}class dz{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),QH(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const n=HH(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,n[e],i),delete n[e]}),uH(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),n=i&&t.value.component?i.children:e,s=HH(t);for(const r of Object.keys(s))this.deactivateRouteAndItsChildren(s[r],n);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated())}activateChildRoutes(t,e,i){const n=HH(e);t.children.forEach(t=>{this.activateRoutes(t,n[t.value.outlet],i),this.forwardEvent(new tH(t.value.snapshot))}),t.children.length&&this.forwardEvent(new ZB(t.value.snapshot))}activateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(QH(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),hz(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 hz(t){QH(t.value),t.children.forEach(hz)}class pz{constructor(t,e){this.routes=t,this.module=e}}function mz(t){return"function"==typeof t}function fz(t){return t instanceof gH}const gz=Symbol("INITIAL_VALUE");function _z(){return Rp(t=>hD(t.map(t=>t.pipe(Tf(1),jp(gz)))).pipe(XL((t,e)=>{let i=!1;return e.reduce((t,n,s)=>{if(t!==gz)return t;if(n===gz&&(i=!0),!i){if(!1===n)return n;if(s===e.length-1||fz(n))return n}return t},t)},gz),Mm(t=>t!==gz),E(t=>fz(t)?t:!0===t),Tf(1)))}let bz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&Ko(0,"router-outlet")},directives:function(){return[pG]},encapsulation:2}),t})();function yz(t,e=""){for(let i=0;ixz(t)===e);return i.push(...t.filter(t=>xz(t)!==e)),i}const kz={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Az(t,e,i){var n;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||i.length>0)?Object.assign({},kz):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(e.matcher||rH)(i,t,e);if(!s)return Object.assign({},kz);const r={};uH(s.posParams,(t,e)=>{r[e]=t.path});const o=s.consumed.length>0?Object.assign(Object.assign({},r),s.consumed[s.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:o,positionalParamSegments:null!==(n=s.posParams)&&void 0!==n?n:{}}}function Oz(t,e,i,n,s="corrected"){if(i.length>0&&function(t,e,i){return i.some(i=>Ez(t,e,i)&&"primary"!==xz(i))}(t,i,n)){const s=new _H(e,function(t,e,i,n){const s={};s.primary=n,n._sourceSegment=t,n._segmentIndexShift=e.length;for(const r of i)if(""===r.path&&"primary"!==xz(r)){const i=new _H([],{});i._sourceSegment=t,i._segmentIndexShift=e.length,s[xz(r)]=i}return s}(t,e,n,new _H(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=>Ez(t,e,i))}(t,i,n)){const r=new _H(t.segments,function(t,e,i,n,s,r){const o={};for(const a of n)if(Ez(t,i,a)&&!s[xz(a)]){const i=new _H([],{});i._sourceSegment=t,i._segmentIndexShift="legacy"===r?t.segments.length:e.length,o[xz(a)]=i}return Object.assign(Object.assign({},s),o)}(t,e,i,n,t.children,s));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:i}}const r=new _H(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:i}}function Ez(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path}function Tz(t,e,i,n){return!!(xz(t)===n||"primary"!==n&&Ez(e,i,t))&&("**"===t.path||Az(e,t,i).matched)}function Pz(t,e,i){return 0===e.length&&!t.children[i]}class Dz{constructor(t){this.segmentGroup=t||null}}class Mz{constructor(t){this.urlTree=t}}function Iz(t){return new v(e=>e.error(new Dz(t)))}function Rz(t){return new v(e=>e.error(new Mz(t)))}function Lz(t){return new v(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Fz{constructor(t,e,i,n,s){this.configLoader=e,this.urlSerializer=i,this.urlTree=n,this.config=s,this.allowRedirects=!0,this.ngModule=t.get(Yl)}apply(){const t=Oz(this.urlTree.root,[],[],this.config).segmentGroup,e=new _H(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,"primary").pipe(E(t=>this.createUrlTree(Nz(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe(MT(t=>{if(t instanceof Mz)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Dz)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(E(e=>this.createUrlTree(Nz(e),t.queryParams,t.fragment))).pipe(MT(t=>{if(t instanceof Dz)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 _H([],{primary:t}):t;return new gH(n,e,i)}expandSegmentGroup(t,e,i,n){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(E(t=>new _H([],t))):this.expandSegment(t,i,e,i.segments,n,!0)}expandChildren(t,e,i){const n=[];for(const s of Object.keys(i.children))"primary"===s?n.unshift(s):n.push(s);return V(n).pipe(Dm(n=>{const s=i.children[n],r=Sz(e,n);return this.expandSegmentGroup(t,r,s,n).pipe(E(t=>({segment:t,outlet:n})))}),XL((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const i=arguments.length>=2;return n=>n.pipe(t?Mm((e,i)=>t(e,i,n)):_,FB(1),i?AV(e):TV(()=>new kV))}())}expandSegment(t,e,i,n,s,r){return V(i).pipe(Dm(o=>this.expandSegmentAgainstRoute(t,e,i,o,n,s,r).pipe(MT(t=>{if(t instanceof Dz)return Sp(null);throw t}))),IV(t=>!!t),MT((t,i)=>{if(t instanceof kV||"EmptyError"===t.name){if(Pz(e,n,s))return Sp(new _H([],{}));throw new Dz(e)}throw t}))}expandSegmentAgainstRoute(t,e,i,n,s,r,o){return Tz(n,e,s,r)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,s,r):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,r):Iz(e):Iz(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,r){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,n,r):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,n){const s=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?Rz(s):this.lineralizeSegments(i,s).pipe(G(i=>{const s=new _H(i,{});return this.expandSegment(t,s,e,i,n,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,r){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=Az(e,n,s);if(!o)return Iz(e);const u=this.applyRedirectCommands(a,n.redirectTo,c);return n.redirectTo.startsWith("/")?Rz(u):this.lineralizeSegments(n,u).pipe(G(n=>this.expandSegment(t,e,i,n.concat(s.slice(l)),r,!1)))}matchSegmentAgainstRoute(t,e,i,n,s){if("**"===i.path)return i.loadChildren?(i._loadedConfig?Sp(i._loadedConfig):this.configLoader.load(t.injector,i)).pipe(E(t=>(i._loadedConfig=t,new _H(n,{})))):Sp(new _H(n,{}));const{matched:r,consumedSegments:o,lastChild:a}=Az(e,i,n);if(!r)return Iz(e);const l=n.slice(a);return this.getChildConfig(t,i,n).pipe(G(t=>{const n=t.module,r=t.routes,{segmentGroup:a,slicedSegments:c}=Oz(e,o,l,r),u=new _H(a.segments,a.children);if(0===c.length&&u.hasChildren())return this.expandChildren(n,r,u).pipe(E(t=>new _H(o,t)));if(0===r.length&&0===c.length)return Sp(new _H(o,{}));const d=xz(i)===s;return this.expandSegment(n,u,r,c,d?"primary":s,!0).pipe(E(t=>new _H(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,i){return e.children?Sp(new pz(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Sp(e._loadedConfig):this.runCanLoadGuards(t.injector,e,i).pipe(G(i=>i?this.configLoader.load(t.injector,e).pipe(E(t=>(e._loadedConfig=t,t))):function(t){return new v(e=>e.error(sH(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Sp(new pz([],t))}runCanLoadGuards(t,e,i){const n=e.canLoad;return n&&0!==n.length?Sp(n.map(n=>{const s=t.get(n);let r;if(function(t){return t&&mz(t.canLoad)}(s))r=s.canLoad(e,i);else{if(!mz(s))throw new Error("Invalid CanLoad guard");r=s(e,i)}return dH(r)})).pipe(_z(),If(t=>{if(!fz(t))return;const e=sH(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),E(t=>!0===t)):Sp(!0)}lineralizeSegments(t,e){let i=[],n=e.root;for(;;){if(i=i.concat(n.segments),0===n.numberOfChildren)return Sp(i);if(n.numberOfChildren>1||!n.children.primary)return Lz(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 gH(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return uH(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 r={};return uH(e.children,(e,s)=>{r[s]=this.createSegmentGroup(t,e,i,n)}),new _H(s,r)}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 Nz(t){const e={};for(const i of Object.keys(t.children)){const n=Nz(t.children[i]);(n.segments.length>0||n.hasChildren())&&(e[i]=n)}return function(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new _H(t.segments.concat(e.segments),e.children)}return t}(new _H(t.segments,e))}class Vz{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Bz{constructor(t,e){this.component=t,this.route=e}}function Hz(t,e,i){const n=t._root;return Gz(n,e?e._root:null,i,[n.value])}function zz(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 Gz(t,e,i,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=HH(e);return t.children.forEach(t=>{!function(t,e,i,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,o=e?e.value:null,a=i?i.getContext(t.value.outlet):null;if(o&&r.routeConfig===o.routeConfig){const l=function(t,e,i){if("function"==typeof i)return i(t,e);switch(i){case"pathParamsChange":return!yH(t.url,e.url);case"pathParamsOrQueryParamsChange":return!yH(t.url,e.url)||!oH(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!XH(t,e)||!oH(t.queryParams,e.queryParams);case"paramsChange":default:return!XH(t,e)}}(o,r,r.routeConfig.runGuardsAndResolvers);l?s.canActivateChecks.push(new Vz(n)):(r.data=o.data,r._resolvedData=o._resolvedData),Gz(t,e,r.component?a?a.children:null:i,n,s),l&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new Bz(a.outlet.component,o))}else o&&Uz(e,a,s),s.canActivateChecks.push(new Vz(n)),Gz(t,null,r.component?a?a.children:null:i,n,s)}(t,r[t.value.outlet],i,n.concat([t.value]),s),delete r[t.value.outlet]}),uH(r,(t,e)=>Uz(t,i.getContext(e),s)),s}function Uz(t,e,i){const n=HH(t),s=t.value;uH(n,(t,n)=>{Uz(t,s.component?e?e.children.getContext(n):null:e,i)}),i.canDeactivateChecks.push(new Bz(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}class jz{}function Wz(t){return new v(e=>e.error(t))}class $z{constructor(t,e,i,n,s,r){this.rootComponentType=t,this.config=e,this.urlTree=i,this.url=n,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=r}recognize(){const t=Oz(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary");if(null===e)return null;const i=new WH([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),n=new BH(i,e),s=new $H(this.url,n);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(t){const e=t.value,i=jH(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=[];for(const s of Object.keys(e.children)){const n=e.children[s],r=Sz(t,s),o=this.processSegmentGroup(r,n,s);if(null===o)return null;i.push(...o)}const n=function(t){const e=[];for(const i of t){if(!qz(i)){e.push(i);continue}const t=e.find(t=>i.value.routeConfig===t.value.routeConfig);void 0!==t?t.children.push(...i.children):e.push(i)}return e}(i);return n.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,i,n){for(const s of t){const t=this.processSegmentAgainstRoute(s,e,i,n);if(null!==t)return t}return Pz(e,i,n)?[]:null}processSegmentAgainstRoute(t,e,i,n){if(t.redirectTo||!Tz(t,e,i,n))return null;let s,r=[],o=[];if("**"===t.path){const n=i.length>0?cH(i).parameters:{};s=new WH(i,n,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Xz(t),xz(t),t.component,t,Yz(e),Qz(e)+i.length,Kz(t))}else{const n=Az(e,t,i);if(!n.matched)return null;r=n.consumedSegments,o=i.slice(n.lastChild),s=new WH(r,n.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Xz(t),xz(t),t.component,t,Yz(e),Qz(e)+r.length,Kz(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=Oz(e,r,o,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return null===t?null:[new BH(s,t)]}if(0===a.length&&0===c.length)return[new BH(s,[])];const u=xz(t)===n,d=this.processSegment(a,l,c,u?"primary":n);return null===d?null:[new BH(s,d)]}}function qz(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function Yz(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Qz(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 Xz(t){return t.data||{}}function Kz(t){return t.resolve||{}}function Zz(t){return Rp(e=>{const i=t(e);return i?V(i).pipe(E(()=>e)):Sp(e)})}class Jz extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const tG=new en("ROUTES");class eG{constructor(t,e,i,n){this.loader=t,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=n}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const i=this.loadModuleFactory(e.loadChildren).pipe(E(i=>{this.onLoadEndListener&&this.onLoadEndListener(e);const n=i.create(t);return new pz(lH(n.injector.get(tG,void 0,Ot.Self|Ot.Optional)).map(Cz),n)}),MT(t=>{throw e._loader$=void 0,t}));return e._loader$=new Z(i,()=>new k).pipe(Q()),e._loader$}loadModuleFactory(t){return"string"==typeof t?V(this.loader.load(t)):dH(t()).pipe(G(t=>t instanceof Ql?Sp(t):V(this.compiler.compileModuleAsync(t))))}}class iG{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new nG,this.attachRef=null}}class nG{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 iG,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class sG{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function rG(t){throw t}function oG(t,e,i){return e.parse("/")}function aG(t,e){return Sp(null)}let lG=(()=>{class t{constructor(t,e,i,n,s,r,o,a){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=i,this.location=n,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new k,this.errorHandler=rG,this.malformedUriErrorHandler=oG,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:aG,afterPreactivation:aG},this.urlHandlingStrategy=new sG,this.routeReuseStrategy=new Jz,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=s.get(Yl),this.console=s.get(eu);const l=s.get(mu);this.isNgZoneEnabled=l instanceof mu&&mu.isInAngularZone(),this.resetConfig(a),this.currentUrlTree=new gH(new _H([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new eG(r,o,t=>this.triggerEvent(new QB(t)),t=>this.triggerEvent(new XB(t))),this.routerState=GH(this.currentUrlTree,this.rootComponentType),this.transitions=new cp({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(Mm(t=>0!==t.id),E(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Rp(t=>{let i=!1,n=!1;return Sp(t).pipe(If(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}}),Rp(t=>{const i=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||i)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Sp(t).pipe(Rp(t=>{const i=this.transitions.getValue();return e.next(new HB(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==this.transitions.getValue()?Cp:Promise.resolve(t)}),(n=this.ngModule.injector,s=this.configLoader,r=this.urlSerializer,o=this.config,Rp(t=>function(t,e,i,n,s){return new Fz(t,e,i,n,s).apply()}(n,s,r,t.extractedUrl,o).pipe(E(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e}))))),If(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,i,n,s){return G(r=>function(t,e,i,n,s="emptyOnly",r="legacy"){try{const o=new $z(t,e,i,n,s,r).recognize();return null===o?Wz(new jz):Sp(o)}catch(o){return Wz(o)}}(t,e,r.urlAfterRedirects,i(r.urlAfterRedirects),n,s).pipe(E(t=>Object.assign(Object.assign({},r),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),If(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects);const i=new jB(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(i)}));var n,s,r,o;if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:i,extractedUrl:n,source:s,restoredState:r,extras:o}=t,a=new HB(i,this.serializeUrl(n),s,r);e.next(a);const l=GH(n,this.rootComponentType).snapshot;return Sp(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:n,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),Cp}),Zz(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),If(t=>{const e=new WB(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),E(t=>Object.assign(Object.assign({},t),{guards:Hz(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return G(i=>{const{targetSnapshot:n,currentSnapshot:s,guards:{canActivateChecks:r,canDeactivateChecks:o}}=i;return 0===o.length&&0===r.length?Sp(Object.assign(Object.assign({},i),{guardsResult:!0})):function(t,e,i,n){return V(t).pipe(G(t=>function(t,e,i,n,s){const r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return r&&0!==r.length?Sp(r.map(r=>{const o=zz(r,e,s);let a;if(function(t){return t&&mz(t.canDeactivate)}(o))a=dH(o.canDeactivate(t,e,i,n));else{if(!mz(o))throw new Error("Invalid CanDeactivate guard");a=dH(o(t,e,i,n))}return a.pipe(IV())})).pipe(_z()):Sp(!0)}(t.component,t.route,i,e,n)),IV(t=>!0!==t,!0))}(o,n,s,t).pipe(G(i=>i&&"boolean"==typeof i?function(t,e,i,n){return V(e).pipe(Dm(e=>Up(function(t,e){return null!==t&&e&&e(new KB(t)),Sp(!0)}(e.route.parent,n),function(t,e){return null!==t&&e&&e(new JB(t)),Sp(!0)}(e.route,n),function(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=>nS(()=>Sp(e.guards.map(s=>{const r=zz(s,e.node,i);let o;if(function(t){return t&&mz(t.canActivateChild)}(r))o=dH(r.canActivateChild(n,t));else{if(!mz(r))throw new Error("Invalid CanActivateChild guard");o=dH(r(n,t))}return o.pipe(IV())})).pipe(_z())));return Sp(s).pipe(_z())}(t,e.path,i),function(t,e,i){const n=e.routeConfig?e.routeConfig.canActivate:null;return n&&0!==n.length?Sp(n.map(n=>nS(()=>{const s=zz(n,e,i);let r;if(function(t){return t&&mz(t.canActivate)}(s))r=dH(s.canActivate(e,t));else{if(!mz(s))throw new Error("Invalid CanActivate guard");r=dH(s(e,t))}return r.pipe(IV())}))).pipe(_z()):Sp(!0)}(t,e.route,i))),IV(t=>!0!==t,!0))}(n,r,t,e):Sp(i)),E(t=>Object.assign(Object.assign({},i),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),If(t=>{if(fz(t.guardsResult)){const e=sH(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new $B(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Mm(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const i=new GB(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(i),t.resolve(!1),!1}return!0}),Zz(t=>{if(t.guards.canActivateChecks.length)return Sp(t).pipe(If(t=>{const e=new qB(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Rp(t=>{let i=!1;return Sp(t).pipe((n=this.paramsInheritanceStrategy,s=this.ngModule.injector,G(t=>{const{targetSnapshot:e,guards:{canActivateChecks:i}}=t;if(!i.length)return Sp(t);let r=0;return V(i).pipe(Dm(t=>function(t,e,i,n){return function(t,e,i,n){const s=Object.keys(t);if(0===s.length)return Sp({});const r={};return V(s).pipe(G(s=>function(t,e,i,n){const s=zz(t,e,n);return dH(s.resolve?s.resolve(e,i):s(e,i))}(t[s],e,i,n).pipe(If(t=>{r[s]=t}))),FB(1),G(()=>Object.keys(r).length===s.length?Sp(r):Cp))}(t._resolve,t,e,n).pipe(E(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),jH(t,i).resolve),null)))}(t.route,e,n,s)),If(()=>r++),FB(1),G(e=>r===i.length?Sp(t):Cp))})),If({next:()=>i=!0,complete:()=>{if(!i){const i=new GB(t.id,this.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");e.next(i),t.resolve(!1)}}}));var n,s}),If(t=>{const e=new YB(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),Zz(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),E(t=>{const e=function(t,e,i){const n=KH(t,e._root,i?i._root:void 0);return new zH(n,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),If(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,r=this.routeReuseStrategy,o=t=>this.triggerEvent(t),E(t=>(new dz(r,t.targetRouterState,t.currentRouterState,o).activate(s),t))),If({next(){i=!0},complete(){i=!0}}),LT(()=>{if(!i&&!n){this.resetUrlToCurrentUrlTree();const i=new GB(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}),MT(i=>{if(n=!0,(s=i)&&s.ngNavigationCancelingError){const n=fz(i.url);n||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new GB(t.id,this.serializeUrl(t.extractedUrl),i.message);e.next(s),n?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(i.url,this.rawUrlTree);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 UB(t.id,this.serializeUrl(t.extractedUrl),i);e.next(n);try{t.resolve(this.errorHandler(i))}catch(r){t.reject(r)}}var s;return Cp}));var s,r,o}))}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=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:i,urlTree:n}=e,s={replaceUrl:!0};if(i){const t=Object.assign({},i);delete t.navigationId,0!==Object.keys(t).length&&(s.state=t)}this.scheduleNavigation(n,t,i,s)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const i=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&i&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){yz(t),this.config=t.map(Cz),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,e={}){const{relativeTo:i,queryParams:n,fragment:s,queryParamsHandling:r,preserveFragment:o}=e,a=i||this.routerState.root,l=o?this.currentUrlTree.fragment:s;let c=null;switch(r){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),n);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=n||null}return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,i,n,s){if(0===i.length)return ez(e.root,e.root,e,n,s);const r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new nz(!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 uH(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 nz(i,e,n)}(i);if(r.toRoot())return ez(e.root,new _H([],{}),e,n,s);const o=function(t,e,i){if(t.isAbsolute)return new sz(e.root,!0,0);if(-1===i.snapshot._lastPathIndex){const t=i.snapshot._urlSegment;return new sz(t,t===e.root,0)}const n=JH(t.commands[0])?0:1;return function(t,e,i){let n=t,s=e,r=i;for(;r>s;){if(r-=s,n=n.parent,!n)throw new Error("Invalid number of '../'");s=n.segments.length}return new sz(n,!1,s-r)}(i.snapshot._urlSegment,i.snapshot._lastPathIndex+n,t.numberOfDoubleDots)}(r,e,t),a=o.processChildren?oz(o.segmentGroup,o.index,r.commands):rz(o.segmentGroup,o.index,r.commands);return ez(o.segmentGroup,a,e,n,s)}(a,this.currentUrlTree,t,c,l)}navigateByUrl(t,e={skipLocationChange:!1}){const i=fz(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 zB(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){if(this.disposed)return Promise.resolve(!1);const r=this.getTransition(),o="imperative"!==e&&"imperative"===(null==r?void 0:r.source),a=(this.lastSuccessfulId===r.id||this.currentNavigation?r.rawUrl:r.urlAfterRedirects).toString()===t.toString();if(o&&a)return Promise.resolve(!0);let l,c,u;s?(l=s.resolve,c=s.reject,u=s.promise):u=new Promise((t,e)=>{l=t,c=e});const d=++this.navigationId;return this.setTransition({id:d,source:e,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:n,resolve:l,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.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(e){return new(e||t)(wn(on),wn(vH),wn(nG),wn(ld),wn(ko),wn(Nu),wn(du),wn(void 0))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})(),cG=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.route=e,this.commands=[],this.onChanges=new k,null==i&&n.setAttribute(s.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:dG(this.skipLocationChange),replaceUrl:dG(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:dG(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)($o(lG),$o(UH),Ki("tabindex"),$o(fl),$o(hl))},t.\u0275dir=ie({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&ra("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[me]}),t})(),uG=(()=>{class t{constructor(t,e,i){this.router=t,this.route=e,this.locationStrategy=i,this.commands=[],this.onChanges=new k,this.subscription=t.events.subscribe(t=>{t instanceof zB&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,i,n,s){if(0!==t||e||i||n||s)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const r={skipLocationChange:dG(this.skipLocationChange),replaceUrl:dG(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,r),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:dG(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)($o(lG),$o(UH),$o(nd))},t.\u0275dir=ie({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&ra("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(Ua("href",e.href,ms),zo("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[me]}),t})();function dG(t){return""===t||!!t}let hG=(()=>{class t{constructor(t,e,i,n,s,r){this.router=t,this.element=e,this.renderer=i,this.cdr=n,this.link=s,this.linkWithHref=r,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=t.events.subscribe(t=>{t instanceof zB&&this.update()})}ngAfterContentInit(){Sp(this.links.changes,this.linksWithHrefs.changes,Sp(null)).pipe($()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var t;null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe();const e=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(t=>!!t).map(t=>t.onChanges);this.linkInputChangesSubscription=V(e).pipe($()).subscribe(t=>{this.isActive!==this.isLinkActive(this.router)(t)&&this.update()})}set routerLinkActive(t){const e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(t=>!!t)}ngOnChanges(t){this.update()}ngOnDestroy(){var t;this.routerEventsSubscription.unsubscribe(),null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.cdr.markForCheck(),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)($o(lG),$o(hl),$o(fl),$o(Vl),$o(cG,8),$o(uG,8))},t.\u0275dir=ie({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,i){if(1&t&&(Bc(i,cG,1),Bc(i,uG,1)),2&t){let t;Nc(t=Hc())&&(e.links=t),Nc(t=Hc())&&(e.linksWithHrefs=t)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[me]}),t})(),pG=(()=>{class t{constructor(t,e,i,n,s){this.parentContexts=t,this.location=e,this.resolver=i,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new kc,this.deactivateEvents=new kc,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 mG(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)($o(nG),$o(Kl),$o(ll),Ki("name"),$o(Vl))},t.\u0275dir=ie({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class mG{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===UH?this.route:t===nG?this.childContexts:this.parent.get(t,e)}}class fG{}class gG{preload(t,e){return Sp(null)}}let _G=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.injector=n,this.preloadingStrategy=s,this.loader=new eG(e,i,e=>t.triggerEvent(new QB(e)),e=>t.triggerEvent(new XB(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Mm(t=>t instanceof zB),Dm(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(Yl);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&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 V(i).pipe($(),E(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?Sp(e._loadedConfig):this.loader.load(t.injector,e)).pipe(G(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(wn(lG),wn(Nu),wn(du),wn(ko),wn(fG))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})(),bG=(()=>{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 HB?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof zB&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof eH&&(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 eH(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(e){return new(e||t)(wn(lG),wn(Ch),wn(void 0))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();const yG=new en("ROUTER_CONFIGURATION"),vG=new en("ROUTER_FORROOT_GUARD"),wG=[ld,{provide:vH,useClass:wH},{provide:lG,useFactory:function(t,e,i,n,s,r,o,a={},l,c){const u=new lG(null,t,e,i,n,s,r,lH(o));if(l&&(u.urlHandlingStrategy=l),c&&(u.routeReuseStrategy=c),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,u),a.enableTracing){const t=$u();u.events.subscribe(e=>{t.logGroup(`Router Event: ${e.constructor.name}`),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return u},deps:[vH,nG,ld,ko,Nu,du,tG,yG,[class{},new An],[class{},new An]]},nG,{provide:UH,useFactory:function(t){return t.routerState.root},deps:[lG]},{provide:Nu,useClass:Hu},_G,gG,class{preload(t,e){return e().pipe(MT(()=>Sp(null)))}},{provide:yG,useValue:{enableTracing:!1}}];function CG(){return new Pu("Router",lG)}let xG=(()=>{class t{constructor(t,e){}static forRoot(e,i){return{ngModule:t,providers:[wG,OG(e),{provide:vG,useFactory:AG,deps:[[lG,new An,new On]]},{provide:yG,useValue:i||{}},{provide:nd,useFactory:kG,deps:[Yu,[new kn(rd),new An],yG]},{provide:bG,useFactory:SG,deps:[lG,Ch,yG]},{provide:fG,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:gG},{provide:Pu,multi:!0,useFactory:CG},[EG,{provide:qc,multi:!0,useFactory:TG,deps:[EG]},{provide:DG,useFactory:PG,deps:[EG]},{provide:tu,multi:!0,useExisting:DG}]]}}static forChild(e){return{ngModule:t,providers:[OG(e)]}}}return t.\u0275fac=function(e){return new(e||t)(wn(vG,8),wn(lG,8))},t.\u0275mod=te({type:t}),t.\u0275inj=yt({}),t})();function SG(t,e,i){return i.scrollOffset&&e.setOffset(i.scrollOffset),new bG(t,e,i)}function kG(t,e,i={}){return i.useHash?new ad(t,e):new od(t,e)}function AG(t){return"guarded"}function OG(t){return[{provide:nn,multi:!0,useValue:t},{provide:tG,multi:!0,useValue:t}]}let EG=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new k}appInitializer(){return this.injector.get(Xu,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),i=this.injector.get(lG),n=this.injector.get(yG);return"disabled"===n.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===n.initialNavigation||"enabledBlocking"===n.initialNavigation?(i.hooks.afterPreactivation=()=>this.initNavigation?Sp(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),i.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(yG),i=this.injector.get(_G),n=this.injector.get(bG),s=this.injector.get(lG),r=this.injector.get(Lu);t===r.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||s.initialNavigation(),i.setUpPreloading(),n.init(),s.resetRootComponentType(r.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return t.\u0275fac=function(e){return new(e||t)(wn(ko))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();function TG(t){return t.appInitializer.bind(t)}function PG(t){return t.bootstrapListener.bind(t)}const DG=new en("Router Initializer");let MG=(()=>{class t{fromProperties(t){for(const e in t)t.hasOwnProperty(e)&&(this[e]=t[e])}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),IG=(()=>{class t{constructor(t,e){this.router=t,this.configService=e}event(t,e,i){gtag("event",t,{event_category:e,event_label:i})}errorEvent(t){this.event(t.code,"error_messages",t.message)}accountEvent(t){this.event(t,"account","")}searchEvent(t){t.words&&this.event(t.words,"search","");for(const e of t.ages)this.event(e.toString(),"search_filter","");t.category&&this.event(t.category.name,"search_filter","search_topic"),1===t.types.length&&this.event(t.types[0].toString(),"search_filter",""),this.event(t.sort.field,"search_sort",""),this.event(t.start.toString(),"search_start","")}searchInteractionEvent(t){this.event(t,"search_interaction","")}mapEvent(t){this.event(t,"map_interaction","map_pin_click")}mapResourceEvent(t){this.event(t,"map_interaction","map_pin_resource_click")}studyInquiryEvent(t){this.event(t.id.toString(),"study_inquiry",t.title)}studySurveyEvent(t){this.event(t.id.toString(),"study_survey",t.title)}flowStartEvent(t){this.event(t,"flow_started","")}flowCompleteEvent(t){this.event(t,"flow_completed","")}stepCompleteEvent(t){this.event(t,"step_completed","")}relatedContentEvent(t,e){this.event(t,"related_content",e)}set_user(t){gtag("set",{user_id:t})}init(){this.listenForRouteChanges();try{const t=this.configService.googleAnalyticsKey,e=document.createElement("script");e.async=!0,e.src="https://www.googletagmanager.com/gtag/js?id="+t,document.head.appendChild(e);const i=document.createElement("script");i.innerHTML="\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n gtag('config', '"+t+"', {'send_page_view': false});\n ",document.head.appendChild(i)}catch(t){console.error("Error appending google analytics"),console.error(t)}}listenForRouteChanges(){const t=this.configService.googleAnalyticsKey;this.router.events.subscribe(e=>{e instanceof zB&>ag("config",t,{page_path:e.urlAfterRedirects})})}}return t.\u0275fac=function(e){return new(e||t)(wn(lG),wn(MG))},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),RG=(()=>{class t{constructor(t,e){this.router=t,this.googleAnalyticsService=e,this.isSession=new RegExp(".*/api/session")}logError(t){this.googleAnalyticsService.errorEvent(t)}intercept(t,e){return e.handle(t).pipe(MT(e=>(401!==e.status||this.isSession.test(t.url)||(console.log("Unauthorized Access!!!",t),this.router.navigate(["timedout"])),e.error&&this.logError(e.error),kp(e.error||e.statusText))))}}return t.\u0275fac=function(e){return new(e||t)(wn(lG),wn(IG))},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})();var LG=function(t){return t.SELF_PARTICIPANT="self_participant",t.SELF_GUARDIAN="self_guardian",t.DEPENDENT="dependent",t.SELF_PROFESSIONAL="self_professional",t.SELF_INTERESTED="self_interested",t}({});class FG{constructor(t){this._props=t;for(const e in this._props)this._props.hasOwnProperty(e)&&(this[e]=this._props[e])}getFlowName(){switch(this.relationship){case LG.DEPENDENT:return"dependent_intake";case LG.SELF_GUARDIAN:return"guardian_intake";case LG.SELF_PROFESSIONAL:return"professional_intake";case LG.SELF_INTERESTED:return"interested_intake";case LG.SELF_PARTICIPANT:default:return"self_intake"}}}class NG{constructor(t){for(const e in t)t.hasOwnProperty(e)&&(this[e]=t[e])}}class VG{constructor(t){this._props=t;for(const e in this._props)this._props.hasOwnProperty(e)&&(this[e]=this._props[e]);this.participants&&this.participants.length>0&&(this.participants=this.participants.map(t=>new FG(t))),this.user_meta&&(this.user_meta=new NG(this.user_meta))}isSelf(t){return t.relationship===LG.SELF_GUARDIAN||t.relationship===LG.SELF_PARTICIPANT||t.relationship===LG.SELF_PROFESSIONAL||t.relationship===LG.SELF_INTERESTED}getSelf(){return this.participants.find(t=>this.isSelf(t))}getDependents(){return this.participants.filter(t=>!this.isSelf(t))}getParticipantById(t){for(const e of this.participants)if(e.id===t)return e;throw Error("The user does not have a participant with the given id.")}hasContactInfo(t){return null!=t.contact}checkContact(){return null!=this.participants.find(t=>this.hasContactInfo(t))}}let BG=(()=>{class t{constructor(e,i,n){this.http=e,this.googleAnalyticsService=i,this.configService=n,this.currentUserSubject=new cp(null);const s=localStorage.getItem(t.LOCAL_TOKEN_KEY);this.login_url=`${n.apiUrl}/api/login_password`,this.reset_pass_url=`${n.apiUrl}/api/reset_password`,this.refresh_url=`${n.apiUrl}/api/session`,this.currentUser=this.currentUserSubject.asObservable(),s?(console.log("A token is set. Grabbing the user."),this._refresh().subscribe()):(console.log("No Token. Current user is null."),this.currentUserSubject.next(null))}_handleError(t){let e="Could not complete your request; please try again later.";return e=t.message,kp(e)}loadUser(e){e.token&&localStorage.setItem(t.LOCAL_TOKEN_KEY,e.token);const i=new VG(e);return this.currentUserSubject.next(i),console.log("The current user subject is now set.",i),this.googleAnalyticsService.set_user(i.id),i}login(t,e,i=""){return this.http.post(this.login_url,{email:t,password:e,email_token:i}).pipe(E(t=>this.loadUser(t)),MT(this._handleError))}_refresh(){return this.http.get(this.refresh_url).pipe(E(t=>this.loadUser(t),t=>{this.currentUserSubject.next(null)}))}refresh(){this._refresh().subscribe()}resetPassword(t,e){return this.http.post(this.reset_pass_url,{password:t,email_token:e}).pipe(E(t=>this.loadUser(t)))}logout(){localStorage.removeItem(t.LOCAL_TOKEN_KEY),this.currentUserSubject.next(null),this.googleAnalyticsService.set_user(null)}}return t.LOCAL_TOKEN_KEY="star_token",t.\u0275fac=function(e){return new(e||t)(wn(Km),wn(IG),wn(MG))},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),HG=(()=>{class t{constructor(){this.isS3=new RegExp("^https?://s3.amazonaws.com.*")}intercept(t,e){const i=localStorage.getItem(BG.LOCAL_TOKEN_KEY);return this.isS3.test(t.url)||i&&(t=t.clone({setHeaders:{Authorization:`Bearer ${i}`}})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})(),zG=(()=>{class t{constructor(t,e){this.router=t,this.meta=e,this.meta.updateTag({property:"og:image",content:location.origin+"/assets/about/diversity.jpg"},"property='og:image'"),this.meta.updateTag({property:"og:image:secure_url",content:location.origin+"/assets/about/diversity.jpg"},"property='og:image:secure_url'"),this.meta.updateTag({name:"twitter:image",content:location.origin+"/assets/about/diversity.jpg"},"name='twitter:image'")}ngOnInit(){}goRegister(t){t.preventDefault(),this.router.navigate(["register"])}}return t.\u0275fac=function(e){return new(e||t)($o(lG),$o(ip))},t.\u0275cmp=Xt({type:t,selectors:[["app-about"]],decls:36,vars:0,consts:[["fxHide","","fxShow.gt-sm",""],["id","hero",1,"gradient-overlay","container"],[1,"row","move_up"],[1,"border-box"],["fxHide","","fxShow.lt-md",""],["id","hero",1,"gradient-overlay","container",2,"background-position","50% 0%","background-size","980px"],[1,"row","move_up_mobile"],["fxLayoutAlign","center","fxLayout","column"],[1,"container","about"],["fxLayout","row","fxLayoutGap","4%","fxLayoutAlign","center",1,"row"],["fxFlex","67%"],["href","https://curry.virginia.edu/faculty-research/centers-labs-projects/supporting-transformative-autism-research-star"],["fxLayoutAlign","center center",1,"row"],["mat-flat-button","","color","primary",1,"btn-lg",3,"click"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"div",1),Qo(2,"div",2),Qo(3,"div",3),Qo(4,"h1"),Na(5,"About Autism DRIVE"),Xo(),Xo(),Xo(),Xo(),Xo(),Qo(6,"div",4),Qo(7,"div",5),Qo(8,"div",6),Qo(9,"div",3),Qo(10,"h1"),Na(11,"About Autism DRIVE"),Xo(),Xo(),Xo(),Xo(),Xo(),Qo(12,"div",7),Qo(13,"div",8),Qo(14,"div",9),Qo(15,"div",10),Qo(16,"h2"),Na(17,'About "Autism DRIVE"'),Xo(),Qo(18,"p"),Na(19,"The Autism DRIVE was developed by "),Qo(20,"a",11),Na(21,"University of Virginia STAR initiative"),Xo(),Na(22," to help the autism community, researchers, and resources connect. Through the DRIVE we hope to learn more about autism and develop meaningful solutions to challenges experienced by people with autism and their families. It also provides individualized online access to training and resources focused on autism."),Xo(),Qo(23,"h2"),Na(24,"Why is autism research important?"),Xo(),Qo(25,"p"),Na(26,"Research can help us figure out answers to questions about autism that we don\u2019t yet know. Our goal is to increase autism research in Virginia and nationally."),Xo(),Qo(27,"p"),Na(28,"Through the Autism DRIVE, we aim to find answers in areas that have the greatest potential to improve the lives of people with autism and their families. Our projects focus on understanding the biological, social and cognitive bases of autism, developing effective and personalized interventions, and testing new models to bridge the gap between research and practice through training. Our research ranges from basic neuroscience to applied practice. Our ultimate goal is to empower people with autism, their families, and their communities to achieve positive outcomes."),Xo(),Qo(29,"h2"),Na(30,"What are the benefits of joining?"),Xo(),Qo(31,"p"),Na(32,"By joining the Autism DRIVE, you will be connected with autism researchers at the University of Virginia and will have the opportunity to participate in exciting research studies. Based on the information you provide in the registration process, you can be matched with research opportunities and resources that would be a good fit for you or your family member. Your participation in any research study is voluntary, so although we will match you with studies, you do not have to participate in them unless you or your family member want to. If you want to cancel your account at any time, you can let us know by emailing rn4ee@hscmail.mcc.virginia.edu."),Xo(),Xo(),Xo(),Xo(),Qo(33,"div",12),Qo(34,"button",13),ra("click",function(t){return e.goRegister(t)}),Na(35," Get started now "),Xo(),Xo(),Xo())},directives:[Ng,Z_,o_,p_,k_,TA],styles:[".enroll[_ngcontent-%COMP%]{margin:1em}.move_up[_ngcontent-%COMP%]{position:relative;width:575px;top:-110px}.move_up_mobile[_ngcontent-%COMP%]{position:relative;width:400px;top:-120px}#hero[_ngcontent-%COMP%]{background-position:50% 17%}#feature[_ngcontent-%COMP%], #hero[_ngcontent-%COMP%]{background-image:url(/assets/about/diversity.jpg);height:480px}#feature[_ngcontent-%COMP%]{background-position:100% 20%}#about-cta[_ngcontent-%COMP%]{font-weight:700;font-size:1.25rem;font-style:italic;margin-bottom:1em}"]}),t})();class GG{constructor(t){this.api=t,this.logSubject=new cp([]),this.logs$=this.logSubject.asObservable(),this.countSubject=new cp(0),this.count$=this.countSubject.asObservable(),this.loadingSubject=new cp(!1),this.loading$=this.loadingSubject.asObservable()}connect(t){return this.logSubject.asObservable()}disconnect(t){this.logSubject.complete(),this.loadingSubject.complete(),this.countSubject.complete()}loadLogs(t=0,e=10){this.loadingSubject.next(!0),this.api.getDataTransferLogs(t,e).subscribe(t=>{this.logSubject.next(t.items),this.countSubject.next(t.total),this.loadingSubject.next(!1)},t=>{this.logSubject.next(null),this.countSubject.next(0),this.loadingSubject.next(!1)})}}class UG{constructor(t){this._props=t;for(const e in this._props)this._props.hasOwnProperty(e)&&(this[e]=this._props[e])}isComplete(){return 1===this.percentComplete()}percentComplete(){return this.steps&&this.steps.length>0?this.steps.filter(t=>"COMPLETE"===t.status).length/this.steps.length*100:0}}class jG{constructor(t){this._props=t;for(const e in this._props)this._props.hasOwnProperty(e)&&(this[e]=this._props[e])}getIcon(){switch(this.question_type){case"sensitive":return"vpn_key";case"identifying":return"fingerprint";case"unrestricted":default:return"remove"}}}let WG=(()=>{class t{constructor(t,e){this.httpClient=t,this.configService=e,this.endpoints={adminNote:"/api/admin_note/",adminNoteList:"/api/admin_note",category:"/api/category/",categorybyresource:"/api/resource//category",categorybylocation:"/api/location//category",categorybyevent:"/api/event//category",categorybystudy:"/api/study//category",categorylist:"/api/category",categorynameslist:"/api/category/names_list",chainStepsList:"/api/chain_step",chainStep:"/api/chain_step/",data_transfer_log:"/api/data_transfer_log",event:"/api/event/",eventbycategory:"/api/category//event",eventcategory:"/api/event_category/",eventcategorylist:"/api/event_category",eventlist:"/api/event",favoritesbyuserlist:"/api/user//favorite",favoritesbyuserandtypelist:"/api/user//favorite/",flow:"/api/flow//",flowAnonymous:"/api/flow/",flowlist:"/api/flow",flowquestionnaire:"/api/flow//",flowquestionnairemeta:"/api/flow///meta",forgot_password:"/api/forgot_password",investigatorList:"/api/investigator",investigatorbystudy:"/api/study//investigator",investigator:"/api/investigator/",location:"/api/location/",locationbycategory:"/api/category//location",locationcategory:"/api/location_category/",locationcategorylist:"/api/location_category",locationlist:"/api/location",organization:"/api/organization/",organizationlist:"/api/organization",participant:"/api/participant/",participantAdminList:"/api/participant_admin_list",participantbysession:"/api/session/participant",participantStepLog:"/api/participant/step_log/",password_requirements:"/api/password_requirements/",questionnaire:"/api/q//",questionnaireExport:"/api/q//export",questionnaireInfo:"/api/q",questionnaireList:"/api/q/",questionnaireListMeta:"/api/q//meta",questionnaireUserExport:"/api/q/all/export/user/",questionnairemeta:"/api/flow///meta",resource:"/api/resource/",resourcebycategory:"/api/category//resource",resourcecategory:"/api/resource_category/",resourceChangeLog:"/api/resource//change_log",resourceAdminNoteList:"/api/resource//admin_note",relatedresults:"/api/related",resourcecategorylist:"/api/resource_category",resourcelist:"/api/resource",educationresourcelist:"/api/resource/education",covid19resourcelist:"/api/resource/covid19/",categorytree:"/api/category/root",search:"/api/search",searchstudies:"/api/search/studies",session:"/api/session",sessionparticipants:"/api/session/participant",sessionstatus:"/api/session/status",status:"/api/status",study:"/api/study/",studybycategory:"/api/category//study",studycategory:"/api/study_category/",studycategorylist:"/api/study_category",studyinquiry:"/api/study_inquiry",studylist:"/api/study",studybystatuslist:"/api/study/status/",studybyage:"/api/study/status//",user:"/api/user/",userAdminNoteList:"/api/user//admin_note",userEmailLog:"/api/user/email_log/",emailloglist:"/api/email_log",userfavoritelist:"/api/user_favorite",userfavorite:"/api/user_favorite/",userResourceChangeLog:"/api/user//resource_change_log",userStudyInquiryList:"/api/user//inquiry/study",userlist:"/api/user",userRegistration:"/api/user/registration",userparticipant:"/api/user_participant/",userMeta:"/api/user//usermeta",zip_code_coords:"/api/zip_code_coords/"},this.apiRoot=e.apiUrl}sendResetPasswordEmail(t){const e={email:t};return this.httpClient.post(this._endpointUrl("forgot_password"),e).pipe(MT(this._handleError))}sendStudyInquiryEmail(t,e){const i={user_id:t.id,study_id:e.id};return this.httpClient.post(this._endpointUrl("studyinquiry"),i).pipe(MT(this._handleError))}addUserMeta(t){const e=this._endpointUrl("userMeta").replace("",t.id.toString());return this.httpClient.post(e,t).pipe(E(t=>new NG(t)),MT(this._handleError))}getUserMeta(t){return this.httpClient.get(this._endpointUrl("userMeta").replace("",t.toString())).pipe(MT(this._handleError))}addParticipant(t){const e=this._endpointUrl("participantbysession");return this.httpClient.post(e,t).pipe(E(t=>new FG(t)),MT(this._handleError))}updateParticipant(t){return this.httpClient.put(this._endpointUrl("participant").replace("",t.id.toString()),t).pipe(MT(this._handleError))}getParticipant(t){return this.httpClient.get(this._endpointUrl("participant").replace("",t.toString())).pipe(MT(this._handleError))}getParticipantAdminList(){return this.httpClient.get(this._endpointUrl("participantAdminList")).pipe(MT(this._handleError))}getFlow(t,e){let i="";return i=e?this._endpointUrl("flow").replace("",t).replace("",e.toString()):this._endpointUrl("flowAnonymous").replace("",t),this.httpClient.get(i).pipe(E(t=>new UG(t)),MT(this._handleError))}addStudy(t){return this.httpClient.post(this._endpointUrl("studylist"),t).pipe(MT(this._handleError))}updateStudy(t){return this.httpClient.put(this._endpointUrl("study").replace("",t.id.toString()),t).pipe(MT(this._handleError))}deleteStudy(t){return this.httpClient.delete(this._endpointUrl("study").replace("",t.id.toString())).pipe(MT(this._handleError))}getStudy(t){return this.httpClient.get(this._endpointUrl("study").replace("",t.toString())).pipe(MT(this._handleError))}getStudies(){return this.httpClient.get(this._endpointUrl("studylist")).pipe(MT(this._handleError))}getStudiesByStatus(t){return this.httpClient.get(this._endpointUrl("studybystatuslist").replace("",t)).pipe(MT(this._handleError))}getStudiesByAge(t,e){return this.httpClient.get(this._endpointUrl("studybyage").replace("",t).replace("",e)).pipe(MT(this._handleError))}addAdminNote(t){return this.httpClient.post(this._endpointUrl("adminNoteList"),t).pipe(MT(this._handleError))}updateAdminNote(t){return this.httpClient.put(this._endpointUrl("adminNote").replace("",t.id.toString()),t).pipe(MT(this._handleError))}deleteAdminNote(t){return this.httpClient.delete(this._endpointUrl("adminNote").replace("",t.id.toString())).pipe(MT(this._handleError))}getAdminNote(t){return this.httpClient.get(this._endpointUrl("adminNote").replace("",t.toString())).pipe(MT(this._handleError))}getAdminNotes(){return this.httpClient.get(this._endpointUrl("adminNoteList")).pipe(MT(this._handleError))}getResourceAdminNotes(t){return this.httpClient.get(this._endpointUrl("resourceAdminNoteList").replace("",t.toString())).pipe(MT(this._handleError))}getUserAdminNotes(t){return this.httpClient.get(this._endpointUrl("userAdminNoteList").replace("",t.toString())).pipe(MT(this._handleError))}addEvent(t){return this.httpClient.post(this._endpointUrl("eventlist"),t).pipe(MT(this._handleError))}updateEvent(t){return this.httpClient.put(this._endpointUrl("event").replace("",t.id.toString()),t).pipe(MT(this._handleError))}deleteEvent(t){return this.httpClient.delete(this._endpointUrl("event").replace("",t.id.toString())).pipe(MT(this._handleError))}getEvent(t){return this.httpClient.get(this._endpointUrl("event").replace("",t.toString())).pipe(MT(this._handleError))}getEvents(){return this.httpClient.get(this._endpointUrl("eventlist")).pipe(MT(this._handleError))}addLocation(t){return this.httpClient.post(this._endpointUrl("locationlist"),t).pipe(MT(this._handleError))}updateLocation(t){return this.httpClient.put(this._endpointUrl("location").replace("",t.id.toString()),t).pipe(MT(this._handleError))}deleteLocation(t){return this.httpClient.delete(this._endpointUrl("location").replace("",t.id.toString())).pipe(MT(this._handleError))}getLocation(t){return this.httpClient.get(this._endpointUrl("location").replace("",t.toString())).pipe(MT(this._handleError))}getLocations(){return this.httpClient.get(this._endpointUrl("locationlist")).pipe(MT(this._handleError))}addResource(t){return this.httpClient.post(this._endpointUrl("resourcelist"),t).pipe(MT(this._handleError))}updateResource(t){return this.httpClient.put(this._endpointUrl("resource").replace("",t.id.toString()),t).pipe(MT(this._handleError))}deleteResource(t){return this.httpClient.delete(this._endpointUrl("resource").replace("",t.id.toString())).pipe(MT(this._handleError))}getResource(t){return this.httpClient.get(this._endpointUrl("resource").replace("",t.toString())).pipe(MT(this._handleError))}getResources(){return this.httpClient.get(this._endpointUrl("resourcelist")).pipe(MT(this._handleError))}getEducationResources(){return this.httpClient.get(this._endpointUrl("educationresourcelist")).pipe(MT(this._handleError))}getCovid19ResourcesByCategory(t){return this.httpClient.get(this._endpointUrl("covid19resourcelist").replace("",t)).pipe(MT(this._handleError))}getRelatedResults(t){return this.httpClient.post(this._endpointUrl("relatedresults"),t).pipe(MT(this._handleError))}getResourceCategories(t){const e=this._endpointUrl("categorybyresource").replace("",t.id.toString());return this.httpClient.get(e).pipe(MT(this._handleError))}addResourceCategory(t){return this.httpClient.post(this._endpointUrl("resourcecategorylist"),t).pipe(MT(this._handleError))}updateResourceCategories(t,e){const i=this._endpointUrl("categorybyresource").replace("",t.toString());return this.httpClient.post(i,e).pipe(MT(this._handleError))}updateLocationCategories(t,e){const i=this._endpointUrl("categorybylocation").replace("",t.toString());return this.httpClient.post(i,e).pipe(MT(this._handleError))}updateEventCategories(t,e){const i=this._endpointUrl("categorybyevent").replace("",t.toString());return this.httpClient.post(i,e).pipe(MT(this._handleError))}deleteResourceCategory(t){return this.httpClient.delete(this._endpointUrl("resourcecategory").replace("",t.id.toString())).pipe(MT(this._handleError))}addStudyCategory(t){return this.httpClient.post(this._endpointUrl("studycategorylist"),t).pipe(MT(this._handleError))}updateStudyCategories(t,e){const i=this._endpointUrl("categorybystudy").replace("",t.toString());return this.httpClient.post(i,e).pipe(MT(this._handleError))}deleteStudyCategory(t){return this.httpClient.delete(this._endpointUrl("studycategory").replace("",t.id.toString())).pipe(MT(this._handleError))}getCategoryNamesList(){return this.httpClient.get(this._endpointUrl("categorynameslist")).pipe(MT(this._handleError))}getCategoryTree(){return this.httpClient.get(this._endpointUrl("categorytree")).pipe(MT(this._handleError))}addCategory(t){return this.httpClient.post(this._endpointUrl("categorylist"),t).pipe(MT(this._handleError))}deleteCategory(t){return this.httpClient.delete(this._endpointUrl("category").replace("",t.toString())).pipe(MT(this._handleError))}addInvestigator(t){return this.httpClient.post(this._endpointUrl("investigatorList"),t).pipe(MT(this._handleError))}updateInvestigator(t){return this.httpClient.put(this._endpointUrl("investigator").replace("",t.id.toString()),t).pipe(MT(this._handleError))}getInvestigators(){return this.httpClient.get(this._endpointUrl("investigatorList")).pipe(MT(this._handleError))}updateStudyInvestigators(t,e){const i=this._endpointUrl("investigatorbystudy").replace("",t.toString());return this.httpClient.post(i,e).pipe(MT(this._handleError))}getUser(t){return this.httpClient.get(this._endpointUrl("user").replace("",t.toString())).pipe(MT(this._handleError))}updateUser(t){return this.httpClient.put(this._endpointUrl("user").replace("",t.id.toString()),t).pipe(MT(this._handleError))}addUser(t){return this.httpClient.post(this._endpointUrl("userlist"),t).pipe(E(t=>new VG(t)),MT(this._handleError))}findUsers(t="",e="email",i="asc",n=0,s=3){const r={filter:t,sort:e,sortOrder:i,pageNumber:String(n),pageSize:String(s)};return this.httpClient.get(this._endpointUrl("userlist"),{params:r}).pipe(MT(this._handleError))}getUserStudyInquiries(t){return this.httpClient.get(this._endpointUrl("userStudyInquiryList").replace("",t.toString())).pipe(MT(this._handleError))}getUserEmailLog(t){return this.httpClient.get(this._endpointUrl("userEmailLog").replace("",t.id.toString())).pipe(MT(this._handleError))}getAllEmailLog(){return this.httpClient.get(this._endpointUrl("emailloglist")).pipe(MT(this._handleError))}getResourceChangeLog(t){return this.httpClient.get(this._endpointUrl("resourceChangeLog").replace("",t.toString())).pipe(MT(this._handleError))}getUserResourceChangeLog(t){return this.httpClient.get(this._endpointUrl("userResourceChangeLog").replace("",t.toString())).pipe(MT(this._handleError))}getParticipantStepLog(t){return this.httpClient.get(this._endpointUrl("participantStepLog").replace("",t.id.toString())).pipe(MT(this._handleError))}addUserFavorites(t){return this.httpClient.post(this._endpointUrl("userfavoritelist"),t).pipe(MT(this._handleError))}deleteUserFavorite(t){return this.httpClient.delete(this._endpointUrl("userfavorite").replace("",t.id.toString())).pipe(MT(this._handleError))}getFavoritesByUser(t){return this.httpClient.get(this._endpointUrl("favoritesbyuserlist").replace("",t.id.toString())).pipe(MT(this._handleError))}getFavoritesByUserAndType(t,e){return this.httpClient.get(this._endpointUrl("favoritesbyuserandtypelist").replace("",t.id.toString()).replace("",e)).pipe(MT(this._handleError))}getQuestionnaireInfoList(){const t=this._endpointUrl("questionnaireInfo");return this.httpClient.get(t).pipe(E(t=>t.map(t=>new jG(t))),MT(this._handleError))}getQuestionnaireList(t){const e=this._endpointUrl("questionnaireList").replace("",t);return this.httpClient.get(e).pipe(MT(this._handleError))}getQuestionnaireListMeta(t){const e=this._endpointUrl("questionnaireListMeta").replace("",t);return this.httpClient.get(e).pipe(MT(this._handleError))}exportQuestionnaire(t){const e=this._endpointUrl("questionnaireExport").replace("",t);return this.httpClient.get(e,{observe:"response",responseType:"blob"})}exportUserQuestionnaire(t){const e=this._endpointUrl("questionnaireUserExport").replace("",name).replace("",t);return this.httpClient.get(e,{observe:"response",responseType:"blob"})}getQuestionnaire(t,e){const i=this._endpointUrl("questionnaire").replace("",t).replace("",e.toString());return this.httpClient.get(i).pipe(MT(this._handleError))}updateQuestionnaire(t,e,i){const n=this._endpointUrl("questionnaire").replace("",t).replace("",e.toString());return this.httpClient.put(n,i).pipe(MT(this._handleError))}getQuestionnaireMeta(t,e){const i=this._endpointUrl("questionnairemeta").replace("",t).replace("",e);return this.httpClient.get(i).pipe(MT(this._handleError))}submitQuestionnaire(t,e,i){const n=this._endpointUrl("flowquestionnaire").replace("",t).replace("",e);return this.httpClient.post(n,i).pipe(MT(this._handleError))}submitRegistration(t){const e=this._endpointUrl("userRegistration");return this.httpClient.post(e,t).pipe(MT(this._handleError))}search(t){const e=this._endpointUrl("search");return this.httpClient.post(e,t).pipe(MT(this._handleError))}searchStudies(t){const e=this._endpointUrl("searchstudies");return this.httpClient.post(e,t).pipe(MT(this._handleError))}getDataTransferLogs(t=0,e=10){const i={pageNumber:String(t),pageSize:String(e)};return this.httpClient.get(this._endpointUrl("data_transfer_log"),{params:i}).pipe(MT(this._handleError))}getZipCoords(t){const e=this._endpointUrl("zip_code_coords").replace("",t);return this.httpClient.get(e).pipe(MT(this._handleError))}getPasswordRequirements(t){const e=this._endpointUrl("password_requirements").replace("",t);return this.httpClient.get(e).pipe(MT(this._handleError))}_handleError(t){let e="Could not complete your request; please try again later.";return e=t.message,kp(e)}getChainStepsList(){return this.httpClient.get(this._endpointUrl("chainStepsList")).pipe(MT(this._handleError))}editChainStep(t){const e=this._endpointUrl("chainStep").replace("",t.id.toString());return this.httpClient.put(e,t).pipe(MT(this._handleError))}deleteChainStep(t){const e=this._endpointUrl("chainStep").replace("",t.id.toString());return this.httpClient.delete(e).pipe(MT(this._handleError))}_endpointUrl(t){const e=this.endpoints[t];if(e)return this.apiRoot+e;console.log(`endpoint '${t}' does not exist`)}_qEndpoint(t="",e,i){""!==t&&(t=t.charAt(0).toUpperCase()+t.slice(1));const n=this.endpoints["questionnaire"+t].replace("",e+"_questionnaire").replace("",isFinite(i)?i.toString():"");return this.apiRoot+n}}return t.\u0275fac=function(e){return new(e||t)(wn(Km),wn(MG))},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function $G(t,e){1&t&&(Qo(0,"mat-header-cell",13),Na(1," Table Name "),Xo())}function qG(t,e){if(1&t&&(Qo(0,"mat-cell",13),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.class_name," ")}}function YG(t,e){1&t&&(Qo(0,"mat-header-cell"),Na(1," Successful "),Xo())}function QG(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.successful," ")}}function XG(t,e){1&t&&(Qo(0,"mat-header-cell"),Na(1," Records Processed "),Xo())}function KG(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.success_count," ")}}function ZG(t,e){1&t&&(Qo(0,"mat-header-cell"),Na(1," Failures "),Xo())}function JG(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.failure_count," ")}}function tU(t,e){1&t&&(Qo(0,"mat-header-cell"),Na(1," Error Messages"),Xo())}function eU(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.errors," ")}}function iU(t,e){1&t&&Ko(0,"mat-header-row")}function nU(t,e){1&t&&Ko(0,"mat-row")}let sU=(()=>{class t{constructor(){this.displayedColumns=["class_name","successful","success_count","failure_count","errors"]}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-admin-export-details"]],inputs:{exportDetails:"exportDetails"},decls:21,vars:3,consts:[[1,"details"],[1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","class_name"],["style","flex: 2",4,"matHeaderCellDef"],["style","flex: 2",4,"matCellDef"],["matColumnDef","successful"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","success_count"],["matColumnDef","failure_count"],["matColumnDef","errors"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[2,"flex","2"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"h2"),Na(2,"Details:"),Xo(),Qo(3,"mat-table",1),Zo(4,2),jo(5,$G,2,0,"mat-header-cell",3),jo(6,qG,2,1,"mat-cell",4),Jo(),Zo(7,5),jo(8,YG,2,0,"mat-header-cell",6),jo(9,QG,2,1,"mat-cell",7),Jo(),Zo(10,8),jo(11,XG,2,0,"mat-header-cell",6),jo(12,KG,2,1,"mat-cell",7),Jo(),Zo(13,9),jo(14,ZG,2,0,"mat-header-cell",6),jo(15,JG,2,1,"mat-cell",7),Jo(),Zo(16,10),jo(17,tU,2,0,"mat-header-cell",6),jo(18,eU,2,1,"mat-cell",7),Jo(),jo(19,iU,1,0,"mat-header-row",11),jo(20,nU,1,0,"mat-row",12),Xo(),Xo()),2&t&&(dr(3),qo("dataSource",e.exportDetails),dr(16),qo("matHeaderRowDef",e.displayedColumns),dr(1),qo("matRowDefColumns",e.displayedColumns))},directives:[$I,ZI,XI,YI,sR,oR,tR,iR,lR,uR],styles:[".details[_ngcontent-%COMP%]{display:-ms-flexbox;display:flex;place-content:center;padding:24px;color:#555;font-weight:700;background:rgba(0,0,0,.1)}mat-table[_ngcontent-%COMP%]{width:85%;margin:auto}"]}),t})();const rU=["tableRow"];function oU(t,e){1&t&&(Qo(0,"p"),Na(1," The following is log of IMPORTS coming into this system. "),Xo())}function aU(t,e){1&t&&(Qo(0,"p"),Na(1," The following is log of EXPORTS going out of this system. "),Xo())}function lU(t,e){1&t&&(Qo(0,"p",15),Na(1," WARNING: The latest log is showing alerts. This means that the exporter may be having issues and is not removing sensitive data from the server in a timely manor. An email should have been sent to an administrator to alert them of this issue. "),Xo())}function cU(t,e){1&t&&(Qo(0,"mat-header-cell"),Na(1,"Id"),Xo())}function uU(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.id," ")}}function dU(t,e){1&t&&(Qo(0,"mat-header-cell"),Na(1,"Type"),Xo())}function hU(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.type," ")}}function pU(t,e){1&t&&(Qo(0,"mat-header-cell"),Na(1,"Date Started"),Xo())}function mU(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),vc(2,"date"),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",Cc(2,1,t.date_started,"medium")," ")}}function fU(t,e){1&t&&(Qo(0,"mat-header-cell"),Na(1,"Last Updated"),Xo())}function gU(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),vc(2,"date"),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",Cc(2,1,t.last_updated,"medium")," ")}}function _U(t,e){1&t&&(Qo(0,"mat-header-cell"),Na(1,"# Records"),Xo())}function bU(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.total_records," ")}}function yU(t,e){1&t&&(Qo(0,"mat-header-cell"),Na(1,"alerts_sent"),Xo())}function vU(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.alerts_sent," ")}}function wU(t,e){1&t&&Ko(0,"mat-header-row")}function CU(t,e){if(1&t){const t=ea();Qo(0,"mat-row",16,17),ra("click",function(){Be(t);const i=e.index;return ua().selectRow(i)}),Xo()}if(2&t){const t=e.$implicit;ka(ua().getRowClass(t))}}const xU=function(){return[5,10,20]};let SU=(()=>{class t{constructor(t,e,i,n){this.api=t,this.configService=e,this.router=i,this.resolver=n,this.columns=[],this.default_page_size=10,this.count=0}ngOnInit(){this.mirroring=this.configService.mirroring,this.loadData(),this.loadLatestLog(),Y(this.paginator.page).pipe(If(()=>this.loadData())).subscribe()}loadData(){this.dataTransferDataSource=new GG(this.api),this.columns=["id","type","date_started","last_updated","total_records","alerts_sent"],this.dataTransferDataSource.loadLogs(this.paginator.pageIndex,this.paginator.pageSize),this.dataTransferDataSource.count$.subscribe(t=>{this.count=t})}getRowClass(t){return t.details.filter(t=>!t.successful).length>0?"error":t.alerts_sent>0?"warn":"normal"}loadLatestLog(){this.api.getDataTransferLogs(0,1).subscribe(t=>{t.items.length>0&&(this.latestLog=t.items[0])})}selectRow(t){if(console.log("Row "+t+" Selected"),null!=this.expandedRow&&this.rowContainers.toArray()[this.expandedRow].clear(),this.expandedRow===t)this.expandedRow=null;else{const e=this.rowContainers.toArray()[t],i=this.resolver.resolveComponentFactory(sU),n=e.createComponent(i);this.dataTransferDataSource.logs$.subscribe(e=>{n.instance.exportDetails=e[t].details,this.expandedRow=t})}}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(MG),$o(lG),$o(ll))},t.\u0275cmp=Xt({type:t,selectors:[["app-admin-export"]],viewQuery:function(t,e){if(1&t&&(Vc(zD,3),Vc(rU,1,Kl)),2&t){let t;Nc(t=Hc())&&(e.paginator=t.first),Nc(t=Hc())&&(e.rowContainers=t)}},decls:30,vars:10,consts:[[1,"logs"],[4,"ngIf"],["class","mat-error",4,"ngIf"],[1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","id"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","type"],["matColumnDef","date_started"],["matColumnDef","last_updated"],["matColumnDef","total_records"],["matColumnDef","alerts_sent"],[4,"matHeaderRowDef"],["matRipple","",3,"class","click",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions"],[1,"mat-error"],["matRipple","",3,"click"],["tableRow",""]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"h1"),Na(2,"Transfer Logs"),Xo(),jo(3,oU,2,0,"p",1),jo(4,aU,2,0,"p",1),Qo(5,"p"),Na(6,"Click on a row for additional details."),Xo(),jo(7,lU,2,0,"p",2),Qo(8,"mat-table",3),Zo(9,4),jo(10,cU,2,0,"mat-header-cell",5),jo(11,uU,2,1,"mat-cell",6),Jo(),Zo(12,7),jo(13,dU,2,0,"mat-header-cell",5),jo(14,hU,2,1,"mat-cell",6),Jo(),Zo(15,8),jo(16,pU,2,0,"mat-header-cell",5),jo(17,mU,3,4,"mat-cell",6),Jo(),Zo(18,9),jo(19,fU,2,0,"mat-header-cell",5),jo(20,gU,3,4,"mat-cell",6),Jo(),Zo(21,10),jo(22,_U,2,0,"mat-header-cell",5),jo(23,bU,2,1,"mat-cell",6),Jo(),Zo(24,11),jo(25,yU,2,0,"mat-header-cell",5),jo(26,vU,2,1,"mat-cell",6),Jo(),jo(27,wU,1,0,"mat-header-row",12),jo(28,CU,2,3,"mat-row",13),Xo(),Xo(),Ko(29,"mat-paginator",14)),2&t&&(dr(3),qo("ngIf",e.mirroring),dr(1),qo("ngIf",!e.mirroring),dr(3),qo("ngIf",e.latestLog&&e.latestLog.alerts_sent>0),dr(1),qo("dataSource",e.dataTransferDataSource),dr(19),qo("matHeaderRowDef",e.columns),dr(1),qo("matRowDefColumns",e.columns),dr(1),qo("length",e.count)("pageSize",e.default_page_size)("pageSizeOptions",hc(9,xU)))},directives:[Jd,$I,ZI,XI,YI,sR,oR,zD,tR,iR,lR,uR],pipes:[_h],styles:["div.logs[_ngcontent-%COMP%]{padding:50px 0;margin:50px}table[_ngcontent-%COMP%]{width:100%}mat-card[_ngcontent-%COMP%]{margin-bottom:1em}mat-row.warn[_ngcontent-%COMP%]{background:#ffffe0}mat-row.error[_ngcontent-%COMP%]{background:#ffa07a}"]}),t})();function kU(t,e){if(1&t&&(Qo(0,"a",3,4),Na(2),Xo()),2&t){const t=e.$implicit,i=Wo(1);qo("routerLink",t.path)("active",i.isActive)("id",t.id),dr(2),Ba(" ",t.label," ")}}let AU=(()=>{class t{constructor(){this.navLinks=[{path:"/admin/data-admin",label:"Data Admin",id:"data-admin"},{path:"/admin/user-admin",label:"User Admin",id:"user-admin"},{path:"/admin/participant-admin",label:"Participant Admin",id:"participant-admin"},{path:"/admin/taxonomy-admin",label:"Taxonomy Admin",id:"taxonomy-admin"},{path:"/admin/import-export-status",label:"Import/Export Status",id:"import-export-status"},{path:"/admin/email-log",label:"Email Log",id:"email-log"}]}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-admin-home"]],decls:6,vars:1,consts:[[1,"admin"],["mat-tab-nav-bar",""],["mat-tab-link","","routerLinkActive","",3,"routerLink","active","id",4,"ngFor","ngForOf"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active","id"],["rla","routerLinkActive"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"h1"),Na(2,"Administrative Options"),Xo(),Qo(3,"nav",1),jo(4,kU,3,4,"a",2),Xo(),Ko(5,"router-outlet"),Xo()),2&t&&(dr(4),qo("ngForOf",e.navLinks))},directives:[aL,Kd,pG,uG,dL,hG],styles:[".admin[_ngcontent-%COMP%]{margin:2em}"]}),t})(),OU=(()=>{class t{constructor(t,e){this.name=t,this.label=e}static all(){return[this.LOCATION,this.RESOURCE,this.EVENT,this.STUDY]}static all_resources(){return[this.ALL_RESOURCES,this.LOCATION,this.RESOURCE,this.EVENT]}}return t.labels={location:"Local Services",resource:"Online Information",event:"Events and Training",study:"Research Studies",all:"All Results",all_resources:"All Resources"},t.LOCATION=new t("location",t.labels.location),t.RESOURCE=new t("resource",t.labels.resource),t.EVENT=new t("event",t.labels.event),t.STUDY=new t("study",t.labels.study),t.ALL=new t("all",t.labels.all),t.ALL_RESOURCES=new t("all_resources",t.labels.all_resources),t})(),EU=(()=>{class t{}return t.labels={"pre-k":"Pre-K (0 - 5 years)",school:"School Age (6 - 13 years)",transition:"Transition Age (14 - 22 years)",adult:"Adulthood (23 - 64)",aging:"Aging (65+)"},t})(),TU=(()=>{class t{}return t.labels={english:"English",spanish:"Spanish",chinese:"Chinese",korean:"Korean",vietnamese:"Vietnamese",arabic:"Arabic",tagalog:"Tagalog"},t})(),PU=(()=>{class t{}return t.labels={"COVID-19_for_Autism":"COVID-19 Information: Information explaining COVID-19 for people with ASD, families and professionals",Health_and_Telehealth:"Health and Telehealth: Online supports to help support the community's mental, behavioral, and physical health","Physical Activity":"Physical Activity: Resources focused on promoting physical activity and exercise",Visual_Aids:"Visual Aids: Resources to develop visual schedules, social stories, communication aids explaining COVID-19","Edu-tainment":"Edu-tainment: Fun educational games, experiences, virtual tours, videos, interactive tools, apps, etc",Supports_with_Living:"Daily Living Supports: Supports and information related to daily living needs and supporting daily living needs at home (e.g., with family, group care, residential supports)",Free_educational_resources:"Free Educational Resources: Curriculum based courses, classes, and textbooks; subscriptions"},t})();var DU=i("jIQF");class MU{constructor(t){this._superprops=t;for(const e in this._superprops)this._superprops.hasOwnProperty(e)&&(this[e]=this._superprops[e])}hasCoords(){const t=t=>"number"==typeof t&&isFinite(t);return t(this.latitude)&&t(this.longitude)}milesFrom(t){if(t&&this.hasCoords()){const e={lat:this.latitude,lng:this.longitude},i=Object(DU.getDistance)(e,t);return Object(DU.convertDistance)(i,"mi").toFixed(1)}}}class IU{constructor(t){this._props=t,this.words="",this.start=0,this.size=20,this.types=[],this.ages=[],this.languages=[],this.sort={field:"_score",order:"asc"},this.hits=[],this.type_counts=[],this.age_counts=[],this.language_counts=[],this.map_data_only=!1;const e=JSON.parse(JSON.stringify(this._props));for(const i in e)e.hasOwnProperty(i)&&(this[i]=e[i]);this.hits&&this.hits.length>0&&(this.hits=this.hits.map(t=>new RU(t)))}get hasHits(){return!!(this.hits&&this.hits.length>0)}get hasWords(){return!!(this.words&&this.words.length>0)}get hasTypes(){return!(!this.types||1!==this.types.length&&2!==this.types.length)}get hasAges(){return!!(this.ages&&this.ages.length>0)}get hasLanguages(){return!!(this.languages&&this.languages.length>0)}get hasCategory(){return!(!this.category||!this.category.id)}get hasFilters(){return!!(this.hasWords||this.hasTypes||this.hasLanguages||this.hasAges||this.hasCategory)}get hitTypes(){return OU.all().filter(t=>this.types.includes(t.name))}get hasAgeCounts(){return this.age_counts.filter(t=>t.count>0).length>0}get hasLanguageCounts(){return this.language_counts.filter(t=>t.count>0).length>0}equals(t){let e=!0;return this.category&&t.category&&(e=this.category.id===t.category.id),this.words===t.words&&this.types===t.types&&this.ages===t.ages&&this.languages===t.languages&&e}}class RU extends MU{constructor(t){super(t),this._props=t;for(const e in this._props)this._props.hasOwnProperty(e)&&(this[e]=this._props[e])}}var LU=function(t){return t.currently_enrolling="Currently enrolling",t.study_in_progress="Study in progress",t.results_being_analyzed="Results being analyzed",t.study_results_published="Study results published",t}({});class FU{constructor(t){this._props=t;for(const e in this._props)this._props.hasOwnProperty(e)&&(this[e]=this._props[e])}}const NU=function(t){return{active:t}};function VU(t,e){if(1&t){const t=ea();Qo(0,"div"),Qo(1,"div",1),Qo(2,"button",2),ra("click",function(e){return Be(t),ua().handleClick(e)}),Qo(3,"mat-icon",3),Na(4,"grade"),Xo(),Xo(),Xo(),Xo()}if(2&t){const t=ua();dr(2),ma("matTooltip",t.instructions()),dr(1),qo("ngClass",pc(2,NU,t.userFavorite()))}}let BU=(()=>{class t{constructor(t){this.api=t}ngOnInit(){}userFavorite(){for(const t of this.user.user_favorites)if(t.resource_id===this.resource_id)return!0;return!1}addFavorite(){const t=[new FU({user_id:this.user.id,resource_id:this.resource_id,type:"resource"})];this.api.addUserFavorites(t).subscribe(t=>{this.user.user_favorites.push(t[0])})}deleteFavorite(){for(const t of this.user.user_favorites)t.resource_id===this.resource_id&&(this.favorite=t);this.api.deleteUserFavorite(this.favorite).subscribe(t=>{this.user.user_favorites.splice(this.user.user_favorites.findIndex(t=>t.id===this.favorite.id),1)})}handleClick(t){t.preventDefault(),t.stopPropagation(),this.userFavorite()?this.deleteFavorite():this.addFavorite()}instructions(){return this.userFavorite()?"Remove Resource from Profile":"Save Resource to Profile"}}return t.\u0275fac=function(e){return new(e||t)($o(WG))},t.\u0275cmp=Xt({type:t,selectors:[["app-favorite-resource-button"]],inputs:{resource_id:"resource_id",user:"user"},decls:1,vars:1,consts:[[4,"ngIf"],["fxLayout","row wrap","fxLayout.xs","column","fxLayoutAlign","left","fxLayoutGap","10px","fxLayoutGap.xs","0",1,"container"],["mat-mini-fab","",3,"matTooltip","click"],[3,"ngClass"]],template:function(t,e){1&t&&jo(0,VU,5,4,"div",0),2&t&&qo("ngIf",e.user)},directives:[Jd,o_,Z_,p_,TA,AD,JT,Qd,Pg],styles:["button.mat-mini-fab.mat-accent[_ngcontent-%COMP%]{background-color:rgba(0,0,0,0);box-shadow:none;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)}button.mat-mini-fab.mat-accent[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{-webkit-text-stroke:1px #232d4b;color:#fff;text-shadow:-1px -1px 0 #232d4b,1px -1px 0 #232d4b,-1px 1px 0 #232d4b,1px 1px 0 #232d4b}button.mat-mini-fab.mat-accent[_ngcontent-%COMP%] mat-icon.active[_ngcontent-%COMP%]{color:#232d4b;text-shadow:none}"]}),t})();function HU(t,e){if(1&t&&(Qo(0,"span",4),Na(1),Xo()),2&t){const t=ua(2);dr(1),Va(t.subtitle)}}const zU=function(t){return[t]},GU=function(t,e,i,n){return{hover:t,selected:e,inverted:i,"all-caps":n}};function UU(t,e){if(1&t){const t=ea();Qo(0,"a",2),ra("mouseenter",function(){return Be(t),ua().onMouseOver()})("mouseleave",function(){return Be(t),ua().onMouseOut()}),Ko(1,"i"),Qo(2,"span"),Na(3),jo(4,HU,2,1,"span",3),Xo(),Xo()}if(2&t){const t=ua();qo("routerLink",pc(10,zU,t.url))("ngClass",gc(12,GU,t.hover||t.shouldHover,t.selected,t.inverted,t.allCaps)),dr(1),Ga("icofont-circled-right icofont-",t.size,"x details-link-icon"),dr(1),Ga("details-link-text-",t.size,"x"),dr(1),Ba(" ",t.label," "),dr(1),qo("ngIf",t.subtitle)}}function jU(t,e){if(1&t&&(Qo(0,"span",4),Na(1),Xo()),2&t){const t=ua(2);dr(1),Va(t.subtitle)}}function WU(t,e){if(1&t){const t=ea();Qo(0,"a",5),ra("mouseenter",function(){return Be(t),ua().onMouseOver()})("mouseleave",function(){return Be(t),ua().onMouseOut()}),Ko(1,"i"),Qo(2,"span"),Na(3),jo(4,jU,2,1,"span",3),Xo(),Xo()}if(2&t){const t=ua();qo("href",t.url,ms)("ngClass",gc(10,GU,t.hover||t.shouldHover,t.selected,t.inverted,t.allCaps)),dr(1),Ga("icofont-circled-right icofont-",t.size,"x details-link-icon"),dr(1),Ga("details-link-text-",t.size,"x"),dr(1),Ba(" ",t.label," "),dr(1),qo("ngIf",t.subtitle)}}let $U=(()=>{class t{constructor(){this.label="Details",this.size=1,this.selected=!1,this.subtitle="",this.inverted=!1,this.allCaps=!0,this.externalLink=!1,this.shouldHover=!1}ngOnInit(){}onMouseOver(){void 0===this.hover&&(this.shouldHover=!0)}onMouseOut(){void 0===this.hover&&(this.shouldHover=!1)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-details-link"]],inputs:{url:"url",label:"label",size:"size",hover:"hover",selected:"selected",subtitle:"subtitle",inverted:"inverted",allCaps:"allCaps",externalLink:"externalLink"},decls:2,vars:2,consts:[[3,"routerLink","ngClass","mouseenter","mouseleave",4,"ngIf"],["target","_blank",3,"href","ngClass","mouseenter","mouseleave",4,"ngIf"],[3,"routerLink","ngClass","mouseenter","mouseleave"],["class","muted",4,"ngIf"],[1,"muted"],["target","_blank",3,"href","ngClass","mouseenter","mouseleave"]],template:function(t,e){1&t&&(jo(0,UU,5,17,"a",0),jo(1,WU,5,15,"a",1)),2&t&&(qo("ngIf",!e.externalLink),dr(1),qo("ngIf",e.externalLink))},directives:[Jd,uG,Qd,Pg],styles:["a[_ngcontent-%COMP%]{transition:all .5s;text-decoration:none;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center}a[_ngcontent-%COMP%] [class*=details-link-text][_ngcontent-%COMP%]{font:700 1.5rem/1 franklin-gothic-urw,sans-serif;letter-spacing:normal;font-style:italic;color:#232d4b}a[_ngcontent-%COMP%] .details-link-text-1x[_ngcontent-%COMP%]{font-size:1.125rem;margin-left:.5rem}a[_ngcontent-%COMP%] .details-link-text-2x[_ngcontent-%COMP%]{font-size:1.5rem;margin-left:.75rem}a[_ngcontent-%COMP%] [class*=icofont-][_ngcontent-%COMP%]{color:#e57200;transition:all .5s}a[_ngcontent-%COMP%] .details-link-icon[_ngcontent-%COMP%]{-ms-transform:rotate(0deg);transform:rotate(0deg)}a.selected[_ngcontent-%COMP%] .details-link-icon[_ngcontent-%COMP%]{-ms-transform:rotate(90deg);transform:rotate(90deg)}a.hover[_ngcontent-%COMP%]{-ms-transform:translateX(10px);transform:translateX(10px)}a.hover.selected[_ngcontent-%COMP%]{-ms-transform:translateY(10px);transform:translateY(10px)}.muted[_ngcontent-%COMP%]{color:#4e4e4e}.inverted[_ngcontent-%COMP%], .inverted[_ngcontent-%COMP%] [class*=details-link-text][_ngcontent-%COMP%]{color:#fff}.all-caps[_ngcontent-%COMP%] [class*=details-link-text][_ngcontent-%COMP%]{text-transform:uppercase;letter-spacing:.1em}"]}),t})();function qU(t,e){1&t&&Ko(0,"i"),2&t&&Ga("icofont-search-stock icofont-",ua(2).size,"x")}const YU=function(t,e,i){return{"font-size":t,height:e,width:i}};function QU(t,e){if(1&t&&(Qo(0,"mat-icon",3),Na(1,"important_devices"),Xo()),2&t){const t=ua(2);qo("ngStyle",fc(1,YU,t.pxSize,t.pxSize,t.pxSize))}}function XU(t,e){if(1&t&&(Qo(0,"mat-icon",3),Na(1,"event_available"),Xo()),2&t){const t=ua(2);qo("ngStyle",fc(1,YU,t.pxSize,t.pxSize,t.pxSize))}}function KU(t,e){1&t&&Ko(0,"i"),2&t&&Ga("icofont-ui-map icofont-",ua(2).size,"x")}function ZU(t,e){if(1&t&&(Zo(0),jo(1,qU,1,3,"i",1),jo(2,QU,2,5,"mat-icon",2),jo(3,XU,2,5,"mat-icon",2),jo(4,KU,1,3,"i",1),Jo()),2&t){const t=ua();dr(1),qo("ngIf",t.is(t.iconType,"study")),dr(1),qo("ngIf",t.is(t.iconType,"resource")),dr(1),qo("ngIf",t.is(t.iconType,"event")),dr(1),qo("ngIf",t.is(t.iconType,"location"))}}let JU=(()=>{class t{constructor(){this.iconTypes=OU.all().map(t=>t.name)}ngOnInit(){}is(t,e){return t===e}get pxSize(){return 16*this.size+"px"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-type-icon"]],inputs:{iconType:"iconType",size:"size"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"class",4,"ngIf"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"]],template:function(t,e){1&t&&jo(0,ZU,5,4,"ng-container",0),2&t&&qo("ngIf",e.iconType)},directives:[Jd,JT,oh,Wg],styles:["mat-icon[_ngcontent-%COMP%]{vertical-align:top}"]}),t})(),tj=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-last-updated-date"]],inputs:{lastUpdatedDate:"lastUpdatedDate"},decls:3,vars:4,consts:[[1,"hit-last-updated"]],template:function(t,e){1&t&&(Qo(0,"span",0),Na(1),vc(2,"date"),Xo()),2&t&&(zo("data-iso-date-string",e.lastUpdatedDate),dr(1),Ba(" Updated ",wc(2,2,e.lastUpdatedDate)," -\n"))},pipes:[_h],styles:[".hit-last-updated[_ngcontent-%COMP%]{font-style:italic;font-size:1em;color:#666}"]}),t})();function ej(t,e){if(1&t&&(Qo(0,"span",1),Ko(1,"br"),Qo(2,"mat-icon"),Na(3,"event_available"),Xo(),Na(4),vc(5,"date"),Xo()),2&t){const t=ua();zo("data-iso-date-string",t.eventDate),dr(4),Ba(" Event date: ",wc(5,2,t.eventDate),"\n")}}let ij=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-event-date"]],inputs:{eventDate:"eventDate"},decls:1,vars:1,consts:[["class","hit-event-date","fxLayoutAlign","start center",4,"ngIf"],["fxLayoutAlign","start center",1,"hit-event-date"]],template:function(t,e){1&t&&jo(0,ej,6,4,"span",0),2&t&&qo("ngIf",e.eventDate)},directives:[Jd,Z_,JT],pipes:[_h],styles:[".hit-event-date[_ngcontent-%COMP%]{color:#e57200;font-weight:700}"]}),t})();function nj(t,e){1&t&&(Qo(0,"p"),Na(1,"[DRAFT]"),Xo())}const sj=function(){return["/search"]},rj=function(t){return{Type:t}};function oj(t,e){if(1&t&&(Qo(0,"button",12),Ko(1,"app-type-icon",13),Xo()),2&t){const t=ua(2);ma("matTooltip",t.hit.label),qo("routerLink",hc(6,sj))("queryParams",pc(7,rj,t.hit.label))("disableRipple",!0),dr(1),qo("iconType",t.hit.type.toLowerCase())("size",3)}}function aj(t,e){1&t&&Ko(0,"app-type-icon",13),2&t&&qo("iconType",ua(2).hit.type.toLowerCase())("size",3)}function lj(t,e){if(1&t&&(Zo(0),Qo(1,"em",14),Qo(2,"mat-icon"),Na(3,"timer"),Xo(),Na(4),Xo(),Jo()),2&t){const t=ua(2);dr(1),qo("ngClass","status-badge status-"+t.statusKey()),dr(3),Ba(" ",t.hit.status," ")}}function cj(t,e){1&t&&Ko(0,"app-event-date",18),2&t&&qo("eventDate",ua(3).hit.date)}function uj(t,e){if(1&t&&(Qo(0,"markdown",15),Ko(1,"app-last-updated-date",16),Na(2),jo(3,cj,1,1,"app-event-date",17),Xo()),2&t){const t=ua(2);dr(1),qo("lastUpdatedDate",t.hit.last_updated),dr(1),Ba(" ",t.hit.highlights," "),dr(1),qo("ngIf",t.hit.date)}}function dj(t,e){1&t&&Ko(0,"app-event-date",18),2&t&&qo("eventDate",ua(3).hit.date)}function hj(t,e){if(1&t&&(Qo(0,"p",19),Ko(1,"app-last-updated-date",16),Qo(2,"markdown"),Na(3),Xo(),jo(4,dj,1,1,"app-event-date",17),Xo()),2&t){const t=ua(2);dr(1),qo("lastUpdatedDate",t.hit.last_updated),dr(2),Va(t.isPastEvent?t.hit.post_event_description:t.hit.description),dr(1),qo("ngIf",t.hit.date)}}const pj=function(t,e){return[t,e]};function mj(t,e){if(1&t){const t=ea();Qo(0,"div",1),Qo(1,"div",2),Qo(2,"div",3),jo(3,nj,2,0,"p",4),Qo(4,"a",5),Na(5),Xo(),Ko(6,"app-favorite-resource-button",6),Xo(),jo(7,oj,2,9,"button",7),jo(8,aj,1,2,"app-type-icon",8),Xo(),jo(9,lj,5,2,"ng-container",4),jo(10,uj,4,3,"markdown",9),jo(11,hj,5,3,"p",10),Qo(12,"app-details-link",11),ra("mouseover",function(){return Be(t),ua().hover=!0})("mouseout",function(){return Be(t),ua().hover=!1}),Xo(),Xo()}if(2&t){const t=ua();dr(3),qo("ngIf",!0===t.hit.is_draft),dr(1),qo("routerLink",mc(14,pj,"/"+t.hit.type.toLowerCase(),t.hit.id)),dr(1),Ba(" ",t.hit.title," "),dr(1),qo("resource_id",t.hit.id)("user",t.currentUser),dr(1),qo("ngIf","study"!=t.hit.type),dr(1),qo("ngIf","study"==t.hit.type),dr(1),qo("ngIf",t.hit&&t.hit.status&&t.isEnrolling(t.hit.status)),dr(1),qo("ngIf",t.hit.highlights),dr(1),qo("ngIf",!t.hit.highlights),dr(1),fa("label","View ",t.hit.type," Details"),ma("subtitle",t.mapLoc&&t.hit.hasCoords()?"("+t.hit.milesFrom(t.mapLoc)+"mi)":""),qo("url","/"+t.hit.type.toLowerCase()+"/"+t.hit.id)("hover",t.hover)}}let fj=(()=>{class t{constructor(){this.hover=!1}get isPastEvent(){return!!(this.hit.date&&new Date(this.hit.date){class t{constructor(t,e,i,n){this.api=t,this.route=e,this.router=i,this.authenticationService=n,this.C19Categories=Object.keys(PU.labels).map(t=>({name:t,label:PU.labels[t].split(": ")[0],description:PU.labels[t].split(": ")[1]})),this.route.params.subscribe(t=>{"category"in t?this.selectedCategory=this.C19Categories.find(e=>e.name===t.category):(this.selectedCategory=this.C19Categories[0],this.route.params.category=this.C19Categories[0].name,this.router.navigate(["/covid19-resources/"+this.C19Categories[0].name]))}),this.loadResources(),this.authenticationService.currentUser.subscribe(t=>this.currentUser=t)}ngOnInit(){}loadResources(){this.api.getCovid19ResourcesByCategory(this.selectedCategory.name).subscribe(t=>{this.resourceHits=this._resourcesToHits(t)})}selectCategory(t){this.selectedCategory=t,this.router.navigate(["/covid19-resources/"+t.name]),this.loadResources()}_resourcesToHits(t){return t.map(t=>new RU({id:t.id,type:"resource",ages:t.ages,title:t.title,content:t.description,description:t.description,last_updated:t.last_updated,highlights:null,url:`/resource/${t.id}`,label:"Research Studies",status:this.C19Categories.find(e=>t.covid19_categories.includes(e.name)).label}))}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(UH),$o(lG),$o(BG))},t.\u0275cmp=Xt({type:t,selectors:[["app-covid19-resources"]],decls:19,vars:5,consts:[[1,"covid19-hero"],[1,"h4"],[1,"covid19-resources"],["fxLayout.gt-sm","row","fxLayout.lt-md","column","fxLayoutGap","2em grid"],["fxLayout.gt-sm","column","fxLayout.lt-md","row wrap","fxLayoutAlign","start space-between","fxLayoutGap","1em grid"],[4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutGap","40px","fxFlex.gt-sm","70%"],[1,"covid19-title"],[4,"ngIf"],["class","no-results",4,"ngIf"],["mat-flat-button","",1,"category-buttons",3,"color","id","click"],[3,"hit","currentUser",4,"ngFor","ngForOf"],[3,"hit","currentUser"],[1,"no-results"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"h1"),Na(2,"COVID-19 RESOURCES"),Xo(),Ko(3,"hr"),Qo(4,"p",1),Na(5,"The COVID-19 virus and resulting social distancing, school closures and general panic are taking a unique toll on autism families."),Xo(),Qo(6,"p",1),Na(7,"We have compiled this list of resources and will update it frequently."),Xo(),Xo(),Qo(8,"div",2),Qo(9,"div",3),Qo(10,"div",4),jo(11,gj,3,3,"div",5),Xo(),Qo(12,"div",6),Qo(13,"h2",7),Na(14),Xo(),Qo(15,"p"),Na(16),Xo(),jo(17,bj,2,1,"ng-container",8),jo(18,yj,2,1,"p",9),Xo(),Xo(),Xo()),2&t&&(dr(11),qo("ngForOf",e.C19Categories),dr(3),Va(e.selectedCategory.label),dr(2),Va(e.selectedCategory.description),dr(1),qo("ngIf",e.resourceHits&&e.resourceHits.length>0),dr(1),qo("ngIf",!e.resourceHits||0===e.resourceHits.length))},directives:[o_,p_,Z_,Kd,k_,Jd,TA,fj],styles:[".covid19-resources[_ngcontent-%COMP%]{margin:2em}.category-buttons[_ngcontent-%COMP%]{width:250px}.covid19-hero[_ngcontent-%COMP%]{background:#232d4b;color:#fff;padding:1em;margin-top:0;text-align:center}.covid19-hero[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{color:#fff}.covid19-hero[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border-top-width:4px;margin:1em auto}.covid19-title[_ngcontent-%COMP%]{margin-bottom:0!important}"]}),t})();function wj(t,e){1&t&&(Qo(0,"div",15),Ko(1,"mat-spinner"),Xo())}function Cj(t,e){1&t&&(Qo(0,"mat-header-cell",16),Na(1," ID "),Xo())}function xj(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.id," ")}}function Sj(t,e){1&t&&(Qo(0,"mat-header-cell",16),Na(1," User ID "),Xo())}function kj(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.user_id," ")}}function Aj(t,e){1&t&&(Qo(0,"mat-header-cell",16),Na(1," Type "),Xo())}function Oj(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.type," ")}}function Ej(t,e){1&t&&(Qo(0,"mat-header-cell",16),Na(1," Viewed "),Xo())}function Tj(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.viewed," ")}}function Pj(t,e){1&t&&(Qo(0,"mat-header-cell",16),Na(1," Date Viewed "),Xo())}function Dj(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),vc(2,"date"),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",Cc(2,1,t.date_viewed,"short")," ")}}function Mj(t,e){1&t&&(Qo(0,"mat-header-cell",16),Na(1," Date Sent "),Xo())}function Ij(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),vc(2,"date"),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",Cc(2,1,t.last_updated,"short")," ")}}function Rj(t,e){1&t&&Ko(0,"mat-header-row")}function Lj(t,e){1&t&&Ko(0,"mat-row")}function Fj(t,e){if(1&t){const t=ea();Qo(0,"div",1),jo(1,wj,2,0,"div",2),Qo(2,"div"),Qo(3,"h1"),Na(4,"Email Log:"),Xo(),Qo(5,"mat-form-field"),Qo(6,"mat-label"),Na(7,"Filter"),Xo(),Qo(8,"input",3),ra("keyup",function(e){return Be(t),ua().applyFilter(e)}),Xo(),Xo(),Qo(9,"mat-table",4),Zo(10,5),jo(11,Cj,2,0,"mat-header-cell",6),jo(12,xj,2,1,"mat-cell",7),Jo(),Zo(13,8),jo(14,Sj,2,0,"mat-header-cell",6),jo(15,kj,2,1,"mat-cell",7),Jo(),Zo(16,9),jo(17,Aj,2,0,"mat-header-cell",6),jo(18,Oj,2,1,"mat-cell",7),Jo(),Zo(19,10),jo(20,Ej,2,0,"mat-header-cell",6),jo(21,Tj,2,1,"mat-cell",7),Jo(),Zo(22,11),jo(23,Pj,2,0,"mat-header-cell",6),jo(24,Dj,3,4,"mat-cell",7),Jo(),Zo(25,12),jo(26,Mj,2,0,"mat-header-cell",6),jo(27,Ij,3,4,"mat-cell",7),Jo(),jo(28,Rj,1,0,"mat-header-row",13),jo(29,Lj,1,0,"mat-row",14),Xo(),Xo(),Xo()}if(2&t){const t=ua();dr(1),qo("ngIf",t.loading),dr(8),qo("dataSource",t.dataSource),dr(19),qo("matHeaderRowDef",t.displayedColumns),dr(1),qo("matRowDefColumns",t.displayedColumns)}}let Nj=(()=>{class t{constructor(t,e,i){this.api=t,this.route=e,this.authenticationService=i,this.displayedColumns=["id","user_id","type","viewed","date_viewed","last_updated"],this.loading=!0,this.authenticationService.currentUser.subscribe(t=>this.currentUser=t)}ngOnInit(){this.api.getAllEmailLog().subscribe(t=>{this.dataSource=new mR(t),this.dataSource.sort=this.sort,this.loading=!1})}applyFilter(t){this.dataSource.filter=t.target.value.trim().toLowerCase()}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(UH),$o(BG))},t.\u0275cmp=Xt({type:t,selectors:[["app-email-log-admin"]],viewQuery:function(t,e){if(1&t&&Vc(qM,3),2&t){let t;Nc(t=Hc())&&(e.sort=t.first)}},decls:1,vars:1,consts:[["class","email-log-admin",4,"ngIf"],[1,"email-log-admin"],["class","spinner-container",4,"ngIf"],["matInput","",3,"keyup"],["matSort","","matSortActive","id","matSortDirection","asc",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","id"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","user_id"],["matColumnDef","type"],["matColumnDef","viewed"],["matColumnDef","date_viewed"],["matColumnDef","last_updated"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[1,"spinner-container"],["mat-sort-header",""]],template:function(t,e){1&t&&jo(0,Fj,30,4,"div",0),2&t&&qo("ngIf",e.currentUser&&"admin"==e.currentUser.role)},directives:[Jd,Yk,Nk,cE,$I,qM,ZI,XI,YI,sR,oR,oM,tR,tI,iR,lR,uR],pipes:[_h],styles:[".email-log-admin[_ngcontent-%COMP%]{margin:2em}"]}),t})();function Vj(t,e){if(1&t){const t=ea();Qo(0,"div"),Qo(1,"p"),Na(2,"You have completed all the questions about your role as a Parent/Guardian. Please click the button below to begin entering information about your children or dependent(s)."),Xo(),Qo(3,"div",6),Qo(4,"button",7),ra("click",function(e){return Be(t),ua().enrollDependent(e)}),Na(5,"Create another profile"),Xo(),Xo(),Xo()}}function Bj(t,e){if(1&t){const t=ea();Qo(0,"div"),Qo(1,"p"),Na(2,"You have completed all the questions about your child or dependent. We will use this information to contact you about upcoming studies and emerging resources that will be of interest based on the details you provided. "),Xo(),Qo(3,"p"),Na(4,"If you have another dependent, please click the button below to create a profile for them. Otherwise we recommend you check out our list of active studies, or search through the available services and resources."),Xo(),Qo(5,"div",6),Qo(6,"button",8),ra("click",function(e){return Be(t),ua().enrollDependent(e)}),Na(7,"Create another profile"),Xo(),Xo(),Xo()}}function Hj(t,e){if(1&t){const t=ea();Qo(0,"div"),Qo(1,"h2"),Na(2,"Thank you!"),Xo(),Qo(3,"p"),Na(4,"You have completed all the questions about yourself. We will use this information to contact you about upcoming studies and emerging resources that will be of interest based on the details you provided."),Xo(),Qo(5,"p"),Na(6,"If you have a son, daughter, or dependent you would like to enroll as well, please click the button below to enter information about them. Otherwise we recommend you check out our list of active studies, or search through the available services and resources."),Xo(),Qo(7,"div",6),Qo(8,"button",9),ra("click",function(e){return Be(t),ua().enrollDependent(e)}),Na(9,"Create another profile"),Xo(),Xo(),Xo()}}function zj(t,e){if(1&t){const t=ea();Qo(0,"div"),Qo(1,"p"),Na(2,"Thank you for providing us with your information. If you have a son, daughter, or dependent you would like to enroll as well, please click the button below to enter information about them. Otherwise we recommend you check out our list of active studies, or search through the available services and resources."),Xo(),Qo(3,"div",6),Qo(4,"button",10),ra("click",function(e){return Be(t),ua().enrollDependent(e)}),Na(5,"Create another profile"),Xo(),Xo(),Xo()}}let Gj=(()=>{class t{constructor(t){this.router=t}ngOnInit(){}goProfile(t){t.preventDefault(),this.router.navigate(["profile"])}goStudies(t){t.preventDefault(),this.router.navigate(["studies"])}goResources(t){t.preventDefault(),this.router.navigate(["search"])}enrollDependent(t){t.preventDefault(),this.router.navigate(["terms",LG.DEPENDENT])}}return t.\u0275fac=function(e){return new(e||t)($o(lG))},t.\u0275cmp=Xt({type:t,selectors:[["app-flow-complete"]],inputs:{flow:"flow"},decls:16,vars:4,consts:[[1,"alert","alert-info"],[4,"ngIf"],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutGap","10px","fxLayoutAlign","center center"],["mat-flat-button","","type","button","color","primary","routerLink","/profile"],["mat-flat-button","","type","button","routerLink","/studies"],["mat-flat-button","","type","button","color","accent","routerLink","/search"],["fxLayoutAlign","center center"],["mat-flat-button","","color","primary","id","enroll_first_dependent",3,"click"],["mat-flat-button","","color","primary","id","enroll_another_dependent",3,"click"],["mat-flat-button","","color","primary","id","enroll_self_dependent",3,"click"],["mat-flat-button","","color","primary","id","enroll_professional_dependent",3,"click"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"h1"),Na(2,"Profile complete!"),Xo(),jo(3,Vj,6,0,"div",1),jo(4,Bj,8,0,"div",1),jo(5,Hj,10,0,"div",1),jo(6,zj,6,0,"div",1),Qo(7,"p"),Na(8,"You can continue to edit any unlocked questionnaires by selecting them from the column on the left."),Xo(),Qo(9,"div",2),Qo(10,"button",3),Na(11,"Return to Profile Page"),Xo(),Qo(12,"button",4),Na(13,"View Studies"),Xo(),Qo(14,"button",5),Na(15,"Search Resources"),Xo(),Xo(),Xo()),2&t&&(dr(3),qo("ngIf","guardian_intake"===e.flow.name),dr(1),qo("ngIf","dependent_intake"===e.flow.name),dr(1),qo("ngIf","self_intake"===e.flow.name),dr(1),qo("ngIf","professional_intake"===e.flow.name))},directives:[Jd,o_,p_,Z_,TA,cG],styles:["div[_ngcontent-%COMP%]{text-align:left;margin:auto;max-width:600px}"]}),t})();const Uj=function(t){if(function(t){return t===Object(t)&&!Array.isArray(t)&&"function"!=typeof t}(t)){const e={};return Object.keys(t).forEach(i=>{var n;e[(n=i,n.replace(/([-_][a-z])/gi,t=>t.toUpperCase().replace("-","").replace("_","")))]=Uj(t[i])}),e}return Array.isArray(t)?t.map(t=>Uj(t)):t};let jj=(()=>{class t{}return t.COMPLETE="COMPLETE",t.INCOMPLETE="INCOMPLETE",t})();function Wj(t,e){if(1&t&&(Qo(0,"div",2),Na(1),Ko(2,"mat-spinner",3),Xo()),2&t){const t=ua(2);dr(1),Ba(" ",t.message||""," "),dr(1),qo("diameter",t.diameter)}}function $j(t,e){if(1&t&&(Qo(0,"span"),Na(1),Xo()),2&t){const t=ua(2);dr(1),Va(t.message||"...")}}function qj(t,e){if(1&t&&(Zo(0),jo(1,Wj,3,2,"div",1),jo(2,$j,2,1,"span",0),Jo()),2&t){const t=ua();dr(1),qo("ngIf",t.showSpinner),dr(1),qo("ngIf",!t.showSpinner)}}function Yj(t,e){1&t&&(Qo(0,"mat-form-field"),Qo(1,"mat-label"),Na(2,"Loading..."),Xo(),Qo(3,"mat-select"),Qo(4,"mat-option"),Na(5,"..."),Xo(),Xo(),Xo())}let Qj=(()=>{class t{constructor(){this.showSpinner=!0,this.size="lg",this.baseSize=24,this.isField=!1}get diameter(){switch(this.size){case"xl":return 4*this.baseSize;case"lg":return 3*this.baseSize;case"med":return 2*this.baseSize;case"sm":return this.baseSize;default:return 3*this.baseSize}}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-loading"]],inputs:{showSpinner:"showSpinner",message:"message",size:"size",baseSize:"baseSize",isField:"isField"},decls:2,vars:2,consts:[[4,"ngIf"],["class","loading","fxLayoutAlign","center center",4,"ngIf"],["fxLayoutAlign","center center",1,"loading"],[3,"diameter"]],template:function(t,e){1&t&&(jo(0,qj,3,2,"ng-container",0),jo(1,Yj,6,0,"mat-form-field",0)),2&t&&(qo("ngIf",!e.isField),dr(1),qo("ngIf",e.isField))},directives:[Jd,Z_,oM,Yk,Nk,rD,Jx],styles:[""]}),t})();const Xj=function(){return{visible:!0}};function Kj(t,e){1&t&&(Qo(0,"mat-icon",8),Na(1,"lock"),Xo()),2&t&&qo("ngClass",hc(1,Xj))}const Zj=function(){return{hidden:!0}};function Jj(t,e){1&t&&(Qo(0,"mat-icon",8),Na(1,"lock"),Xo()),2&t&&qo("ngClass",hc(1,Zj))}function tW(t,e){1&t&&(Qo(0,"mat-icon",8),Na(1,"done"),Xo()),2&t&&qo("ngClass",hc(1,Xj))}function eW(t,e){1&t&&(Qo(0,"mat-icon",8),Na(1,"done"),Xo()),2&t&&qo("ngClass",hc(1,Zj))}const iW=function(t){return{active:t,"step-link":!0}};function nW(t,e){if(1&t){const t=ea();Qo(0,"mat-nav-list"),Qo(1,"mat-list-item",2),ra("click",function(){Be(t);const i=e.$implicit;return ua().selectStep(i)}),Qo(2,"span",3),jo(3,Kj,2,2,"mat-icon",4),jo(4,Jj,2,2,"mat-icon",4),Xo(),Qo(5,"span",5),Na(6),Xo(),Ko(7,"span",6),Qo(8,"span",7),jo(9,tW,2,2,"mat-icon",4),jo(10,eW,2,2,"mat-icon",4),Xo(),Xo(),Xo()}if(2&t){const t=e.$implicit,i=e.index,n=ua();dr(1),qo("ngClass",pc(7,iW,n.stepName===t.name))("id","step_link_"+i),dr(2),qo("ngIf","sensitive"===t.type),dr(1),qo("ngIf","sensitive"!==t.type),dr(2),Va(t.label),dr(3),qo("ngIf","COMPLETE"===t.status),dr(1),qo("ngIf","COMPLETE"!==t.status)}}function sW(t,e){1&t&&(Qo(0,"mat-nav-list"),Qo(1,"mat-list-item"),Na(2,"Loading..."),Xo(),Xo())}let rW=(()=>{class t{constructor(t){this.api=t,this.stepSelected=new kc}ngOnChanges(t){this.stepName=this.flow.steps[this.stepIndex].name}ngOnInit(){this.stepName=this.flow.steps[this.stepIndex].name}selectStep(t){this.stepName=t.name,this.stepSelected.emit(t)}}return t.\u0275fac=function(e){return new(e||t)($o(WG))},t.\u0275cmp=Xt({type:t,selectors:[["app-questionnaire-steps-list"]],inputs:{flow:"flow",stepIndex:"stepIndex"},outputs:{stepSelected:"stepSelected"},features:[me],decls:2,vars:2,consts:[[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"ngClass","id","click"],[1,"lock"],[3,"ngClass",4,"ngIf"],[1,"step-link-text"],["fxFlex",""],[1,"done"],[3,"ngClass"]],template:function(t,e){1&t&&(jo(0,nW,11,9,"mat-nav-list",0),jo(1,sW,3,0,"mat-nav-list",1)),2&t&&(qo("ngForOf",e.flow.steps),dr(1),qo("ngIf",0===e.flow.steps.length))},directives:[Kd,Jd,pP,bP,Qd,Pg,k_,JT],styles:["mat-icon[_ngcontent-%COMP%]{font-size:.8em;margin-right:8px}mat-icon.visible[_ngcontent-%COMP%]{opacity:1}mat-icon.hidden[_ngcontent-%COMP%]{opacity:0}"]}),t})();function oW(t,e){1&t&&(Qo(0,"div"),Qo(1,"h1"),Na(2,"Your Information"),Xo(),Qo(3,"p"),Na(4,"In the next few minutes you will be completing a series of questions about yourself and your relationship to autism. Please be as thorough as you can. "),Xo(),Xo())}function aW(t,e){1&t&&(Qo(0,"div"),Qo(1,"h1"),Na(2,"Dependent Information"),Xo(),Qo(3,"p"),Na(4,"In the next few minutes you will be completing a series of questions about your dependent. "),Xo(),Xo())}function lW(t,e){1&t&&(Qo(0,"div"),Qo(1,"h1"),Na(2,"Parent/Guardian Information"),Xo(),Qo(3,"p"),Na(4,"In the next few minutes you will be completing a short series of questions about yourself. When you are finished, we will ask you to complete a separate set of questions about your dependent(s). "),Xo(),Xo())}function cW(t,e){1&t&&(Qo(0,"div"),Qo(1,"h1"),Na(2,"Professional Details"),Xo(),Qo(3,"p"),Na(4,"In the next few minutes you will be completing a series of questions about yourself and your relationship to Autism. "),Xo(),Xo())}const uW=function(){return["/profile"]};let dW=(()=>{class t{constructor(){this.next=new kc}ngOnInit(){}continue(){this.next.emit()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-flow-intro"]],inputs:{flow:"flow"},outputs:{next:"next"},decls:18,vars:6,consts:[[4,"ngIf"],["id","instructions"],[1,"button-row"],["mat-flat-button","","type","button","color","primary","id","next-button",3,"click"],["mat-flat-button","","type","button","id","intro-cancel-button",3,"routerLink"]],template:function(t,e){1&t&&(jo(0,oW,5,0,"div",0),jo(1,aW,5,0,"div",0),jo(2,lW,5,0,"div",0),jo(3,cW,5,0,"div",0),Qo(4,"div",1),Qo(5,"h2"),Na(6,"Instructions"),Xo(),Qo(7,"p"),Na(8,"Please complete your profile by clicking the next button below. If you need to change your information at any time, please re-complete the questionnaires (listed on the left) that you'd like to change and your information will be updated. "),Xo(),Qo(9,"p"),Na(10,' Some of the questionnaires to the left might have "lock" icons because these questionnaires are considered to be asking for sensitive information. To protect your privacy, information you provide on these pages will be immediately saved on a secure server which will only be accessed as needed for study purposes by approved STAR study team members.'),Xo(),Qo(11,"p"),Na(12,'Click the "Next" button below to get started.'),Xo(),Qo(13,"div",2),Qo(14,"button",3),ra("click",function(){return e.continue()}),Na(15,"Next"),Xo(),Qo(16,"button",4),Na(17,"Cancel"),Xo(),Xo(),Xo()),2&t&&(qo("ngIf","self_intake"===e.flow.name),dr(1),qo("ngIf","dependent_intake"===e.flow.name),dr(1),qo("ngIf","guardian_intake"===e.flow.name),dr(1),qo("ngIf","professional_intake"===e.flow.name),dr(13),qo("routerLink",hc(5,uW)))},directives:[Jd,TA,cG],styles:["div[_ngcontent-%COMP%]{padding:20px}.button-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:8px;margin-top:35px}"]}),t})();function hW(t,e){1&t&&Ko(0,"app-loading",5)}function pW(t,e){if(1&t&&(Zo(0),Na(1),Jo()),2&t){const t=ua(3);dr(1),Ba("",t.participant.name,"'s Profile")}}function mW(t,e){if(1&t&&(Zo(0),Na(1),Jo()),2&t){const t=ua(3);dr(1),Ba("",t.user.isSelf(t.participant)?"Your":"Your dependent's"," Profile")}}function fW(t,e){if(1&t){const t=ea();Qo(0,"div"),Qo(1,"div",6),Qo(2,"button",7),ra("click",function(){return Be(t),ua(2).toggleSidenav()}),Qo(3,"mat-icon"),Na(4,"toc"),Xo(),Xo(),Qo(5,"h1",8),jo(6,pW,2,1,"ng-container",3),jo(7,mW,2,1,"ng-container",3),Xo(),Ko(8,"span",9),Qo(9,"div",10),Qo(10,"span",11),Na(11),Xo(),Na(12," of "),Qo(13,"span",12),Na(14),Xo(),Na(15," steps complete "),Xo(),Xo(),Xo()}if(2&t){const t=ua(2);dr(6),qo("ngIf",t.participant&&t.participant.name),dr(1),qo("ngIf",!(t.participant&&t.participant.name)),dr(4),Va(t.numCompletedSteps()),dr(3),Va(t.numTotalSteps())}}function gW(t,e){1&t&&Ko(0,"mat-progress-bar",13),2&t&&qo("value",ua(2).flow.percentComplete())}function _W(t,e){1&t&&Ko(0,"app-flow-complete",20),2&t&&qo("flow",ua(3).flow)}function bW(t,e){if(1&t){const t=ea();Qo(0,"app-flow-intro",21),ra("next",function(){return Be(t),ua(3).goToNextAvailableStep()}),Xo()}2&t&&qo("flow",ua(3).flow)}function yW(t,e){1&t&&(Qo(0,"p",27),Na(1,"In order to protect certain sensitive information about you, this information is no longer accessible via this web site. If you feel that this information should be updated, you may choose to re-complete this form and re-submit it."),Xo())}function vW(t,e){if(1&t){const t=ea();Qo(0,"button",28),ra("click",function(){return Be(t),ua(5).hideForm=!1}),Na(1),Xo()}if(2&t){const t=ua(5);dr(1),Ba("Show ",t.currentStep().label," Form ")}}function wW(t,e){if(1&t&&(Qo(0,"div"),jo(1,yW,2,0,"p",25),jo(2,vW,2,1,"button",26),Xo()),2&t){const t=ua(4);dr(1),qo("ngIf",t.hideForm),dr(1),qo("ngIf",t.hideForm)}}function CW(t,e){1&t&&(Qo(0,"p",27),Na(1,"You are about to re-submit this form. While this will not replace previous records, we will defer to the information you submit now when considering your eligibility to future studies and notifications."),Xo())}function xW(t,e){1&t&&(Qo(0,"p",27),Na(1,"This information is considered sensitive and to protect your privacy is saved on a secure server which will only be accessed as needed by approved STAR study team members for study purposes. You can provide this information again in full at any time if you need to edit what is currently stored on the secure server, which is not accessible by this site."),Xo())}const SW=function(t){return{disabled:t}};function kW(t,e){if(1&t){const t=ea();Qo(0,"button",33),ra("click",function(){Be(t);const e=ua(5);return e.form.valid?e.submit():e.highlightRequiredFields()}),Na(1,"Save & Next "),Xo()}if(2&t){const t=ua(5);qo("ngClass",pc(1,SW,!t.form.valid))}}const AW=function(){return["/profile"]};function OW(t,e){1&t&&(Qo(0,"button",34),Na(1,"Cancel "),Xo()),2&t&&qo("routerLink",hc(1,AW))}function EW(t,e){if(1&t&&(Qo(0,"div"),Ko(1,"formly-form",29),jo(2,CW,2,0,"p",25),jo(3,xW,2,0,"p",25),Qo(4,"div",30),jo(5,kW,2,3,"button",31),jo(6,OW,2,2,"button",32),Xo(),Xo()),2&t){const t=ua(4);dr(1),qo("form",t.form)("model",t.model)("fields",t.fields)("options",t.options),dr(1),qo("ngIf",t.showResubmitMessage),dr(1),qo("ngIf","sensitive"===t.currentStep().type),dr(2),qo("ngIf",t.form),dr(1),qo("ngIf",t.form)}}function TW(t,e){if(1&t){const t=ea();Qo(0,"form",22),Qo(1,"div",23),Qo(2,"h1"),Na(3),Xo(),Ko(4,"span",9),Qo(5,"button",24),ra("click",function(){return Be(t),ua(3).highlightRequiredFields()}),Na(6,"*Required"),Xo(),Xo(),Qo(7,"p"),Na(8),Xo(),jo(9,wW,3,2,"div",3),jo(10,EW,7,8,"div",3),Xo()}if(2&t){const t=ua(3);qo("formGroup",t.form),dr(3),Va(t.currentStep().label),dr(5),Va(t.currentStep().description),dr(1),qo("ngIf",t.showResubmitMessage),dr(1),qo("ngIf",!t.hideForm)}}function PW(t,e){if(1&t){const t=ea();Qo(0,"div"),Qo(1,"mat-drawer-container"),Qo(2,"mat-drawer",14,15),ra("openedChange",function(e){return Be(t),ua(2).sidebarOpen=e}),Qo(4,"app-questionnaire-steps-list",16),ra("stepSelected",function(e){return Be(t),ua(2).goToStep(e)}),Xo(),Xo(),Qo(5,"mat-drawer-content"),jo(6,_W,1,1,"app-flow-complete",17),jo(7,bW,1,1,"app-flow-intro",18),jo(8,TW,11,5,"form",19),Xo(),Xo(),Xo()}if(2&t){const t=ua(2);dr(2),qo("mode",t.mobileQuery.matches?"over":"side")("opened",t.sidebarOpen),dr(2),qo("flow",t.flow)("stepIndex",t.activeStep),dr(2),qo("ngIf",t.state===t.flowState.COMPLETE),dr(1),qo("ngIf",t.state===t.flowState.INTRO),dr(1),qo("ngIf",t.state===t.flowState.SHOW_FORM)}}function DW(t,e){if(1&t&&(Qo(0,"div",1),Qo(1,"div"),jo(2,hW,1,0,"app-loading",2),jo(3,fW,16,4,"div",3),jo(4,gW,1,1,"mat-progress-bar",4),jo(5,PW,9,7,"div",3),Xo(),Xo()),2&t){const t=ua();dr(2),qo("ngIf",t.state===t.flowState.LOADING),dr(1),qo("ngIf",t.state!==t.flowState.LOADING),dr(1),qo("ngIf",t.flow.percentComplete()<100),dr(1),qo("ngIf",t.state!==t.flowState.LOADING)}}var MW=function(t){return t.INTRO="intro",t.LOADING="loading",t.COMPLETE="complete",t.SHOW_FORM="form",t}({});let IW=(()=>{class t{constructor(t,e,i,n,s,r,o,a){this.api=e,this.authenticationService=i,this.changeDetectorRef=n,this.deviceDetectorService=s,this.googleAnalyticsService=r,this.route=o,this.router=a,this.activeStep=0,this.flowState=MW,this.state=MW.LOADING,this.showResubmitMessage=!1,this.hideForm=!1,this.sidebarOpen=!0,this.model={},this.fields=[],this.mobileQuery=t.matchMedia("(max-width: 959px)"),this.mobileQuery.addListener(this._mobileQueryListener),this._mobileQueryListener=()=>this._updateSidenavState(),window.addEventListener("resize",this._mobileQueryListener),this.authenticationService.currentUser.subscribe(t=>{this.user=t,this.route.params.subscribe(t=>{this.participant=this.user.getParticipantById(parseInt(t.participantId,10)),this.loadFlow(t.flowName)})})}set sidenav(t){this.sidenavElement=t,this._updateSidenavState()}ngOnInit(){}ngOnDestroy(){this.mobileQuery.removeListener(this._mobileQueryListener),window.removeEventListener("resize",this._mobileQueryListener)}loadFlow(t){this.api.getFlow(t,this.participant.id).subscribe(t=>{this.flow=new UG(t),0===this.flow.percentComplete()?this.state=this.flowState.INTRO:this.goToNextAvailableStep(),oB(this.deviceDetectorService)})}updateParticipant(t){this.api.getParticipant(t).subscribe(t=>{this.participant=t})}goToNextAvailableStep(){if(this.updateParticipant(this.participant.id),this.flow.percentComplete()<100){let t=this.activeStep;if(this.flow.steps[this.activeStep].status===jj.COMPLETE)for(t++;t!==this.activeStep;){if(this.flow.steps[t]&&this.flow.steps[t].status!==jj.COMPLETE){this.activeStep=t;break}t>=this.flow.steps.length-1?t=0:t++}this.loadActiveStep()}else this.state=MW.COMPLETE,this.googleAnalyticsService.flowCompleteEvent(this.flow.name),oB(this.deviceDetectorService)}goToStep(t){this.updateParticipant(this.participant.id);for(let e=0;e{this.showResubmitMessage=!1,this.hideForm=!1,"sensitive"===t.type&&t.questionnaire_id>0?(this.showResubmitMessage=!0,this.hideForm=!0,this.renderForm(t,e)):t.questionnaire_id>0?this.api.getQuestionnaire(t.name,t.questionnaire_id).subscribe(i=>{this.model=i,this.renderForm(t,e)}):this.renderForm(t,e),oB(this.deviceDetectorService)}),oB(this.deviceDetectorService)}highlightRequiredFields(){for(const t of Object.keys(this.form.controls)){const e=this.form.controls[t];e.updateValueAndValidity(),e.markAsDirty()}aB(this.deviceDetectorService)}submit(){this.model.participant_id=this.participant.id,this.model.time_on_task_ms=performance.now()-this.startTime,this.currentStep().questionnaire_id>0&&"sensitive"!==this.currentStep().type?this.api.updateQuestionnaire(this.currentStep().name,this.currentStep().questionnaire_id,this.model).subscribe(()=>{this.googleAnalyticsService.stepCompleteEvent(this.currentStep().name),this.loadFlow(this.flow.name),oB(this.deviceDetectorService)}):this.api.submitQuestionnaire(this.flow.name,this.currentStep().name,this.model).subscribe(()=>{this.googleAnalyticsService.stepCompleteEvent(this.currentStep().name),this.loadFlow(this.flow.name),oB(this.deviceDetectorService)})}numCompletedSteps(){return this.flow.steps.filter(t=>t.status===jj.COMPLETE).length}numTotalSteps(){return this.flow.steps.length}toggleSidenav(){this.sidebarOpen=!this.sidebarOpen,this.sidenavElement.toggle(this.sidebarOpen,"mouse").then(()=>{oB(this.deviceDetectorService)})}renderForm(t,e){this.startTime=performance.now(),this.fields=this.infoToForm(e),this.form=new cy({}),this.options={formState:{mainModel:this.model,preferredName:this.participant.name}},this.state=this.flowState.SHOW_FORM,oB(this.deviceDetectorService)}infoToForm(t){const e=[];for(const i of t.fields)i.fieldArray&&(i.fieldArray.model=this.model[i.name]),e.push(Uj(i));return e.sort((t,e)=>t.displayOrder-e.displayOrder),e}_updateSidenavState(){this.sidenavElement&&(this.mobileQuery.matches?(this.sidenavElement.close(),this.sidebarOpen=!1):(this.sidenavElement.open(),this.sidenavElement.disableClose=!0,this.sidebarOpen=!0)),this.changeDetectorRef.detectChanges()}}return t.\u0275fac=function(e){return new(e||t)($o(_D),$o(WG),$o(BG),$o(Vl),$o(xV),$o(IG),$o(UH),$o(lG))},t.\u0275cmp=Xt({type:t,selectors:[["app-flow"]],viewQuery:function(t,e){if(1&t&&Vc(FM,1),2&t){let t;Nc(t=Hc())&&(e.sidenav=t.first)}},decls:1,vars:1,consts:[["class","profile mat-typography",4,"ngIf"],[1,"profile","mat-typography"],["message","Loading...",4,"ngIf"],[4,"ngIf"],["mode","determinate",3,"value",4,"ngIf"],["message","Loading..."],["fxLayout","row","fxLayoutGap","10px","fxLayoutAlign","start center"],["mat-icon-button","","fxHide.gt-sm","",3,"click"],[1,"margin-bottom-none"],["fxFlex",""],["fxFlexAlign","end center",1,"mat-small"],["id","num_completed_steps"],["id","num_total_steps"],["mode","determinate",3,"value"],[3,"mode","opened","openedChange"],["sidenav",""],[3,"flow","stepIndex","stepSelected"],[3,"flow",4,"ngIf"],[3,"flow","next",4,"ngIf"],["class","pad-2",3,"formGroup",4,"ngIf"],[3,"flow"],[3,"flow","next"],[1,"pad-2",3,"formGroup"],["fxLayout","row","fxLayout.lt-md","column"],["mat-button","","id","highlight-required-fields","color","warn",3,"click"],["class","alert alert-warn",4,"ngIf"],["mat-flat-button","","type","button","color","primary",3,"click",4,"ngIf"],[1,"alert","alert-warn"],["mat-flat-button","","type","button","color","primary",3,"click"],[3,"form","model","fields","options"],[1,"button-row"],["mat-flat-button","","type","button","color","primary","id","save-next-button",3,"ngClass","click",4,"ngIf"],["mat-flat-button","","type","button","id","flow-cancel-button",3,"routerLink",4,"ngIf"],["mat-flat-button","","type","button","color","primary","id","save-next-button",3,"ngClass","click"],["mat-flat-button","","type","button","id","flow-cancel-button",3,"routerLink"]],template:function(t,e){1&t&&jo(0,DW,6,4,"div",0),2&t&&qo("ngIf",e.user&&e.flow)},directives:[Jd,Qj,o_,p_,Z_,TA,Ng,JT,k_,$_,YD,NM,FM,rW,LM,Gj,dW,_y,jb,ky,NF,Qd,Pg,cG],styles:[".profile[_ngcontent-%COMP%]{margin:2%}.button-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:8px;margin-top:35px}mat-drawer-container[_ngcontent-%COMP%]{min-height:100vh}mat-drawer-container[_ngcontent-%COMP%], mat-drawer-content[_ngcontent-%COMP%]{background-color:#fff}h1[_ngcontent-%COMP%]{position:relative}h1[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{position:absolute;right:0;color:#232d4b}@media (max-width:767px){h1[_ngcontent-%COMP%]{font-size:1.25em}}@media (min-width:768px){h1[_ngcontent-%COMP%]{font-size:2em}}@media (min-width:960px){h1[_ngcontent-%COMP%]{font-size:2.5em}} mat-progress-bar{height:16px;margin-bottom:1em} mat-progress-bar .mat-progress-bar-buffer{background-color:#dadada} mat-progress-bar .mat-progress-bar-background, mat-progress-bar .mat-progress-bar-background pattern{fill:#dadada}#highlight-required-fields[_ngcontent-%COMP%]{text-align:right}"]}),t})();const RW=function(){return["/home"]};let LW=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-logo"]],inputs:{variant:"variant"},decls:5,vars:5,consts:[["id","logo"],[3,"routerLink"],[1,"variant"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"a",1),Qo(2,"span",2),Na(3,"Autism"),Xo(),Na(4,"DRIVE "),Xo(),Xo()),2&t&&(ka(e.variant),dr(1),qo("routerLink",hc(4,RW)))},directives:[uG],styles:["#logo[_ngcontent-%COMP%]{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}#logo.dark-lg[_ngcontent-%COMP%] .variant[_ngcontent-%COMP%], #logo.dark[_ngcontent-%COMP%] .variant[_ngcontent-%COMP%]{color:#232d4b;font-weight:700}#logo.light-lg[_ngcontent-%COMP%] .variant[_ngcontent-%COMP%], #logo.light[_ngcontent-%COMP%] .variant[_ngcontent-%COMP%]{color:#fff;font-weight:700}#logo[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#e57200}#logo.dark-lg[_ngcontent-%COMP%] a[_ngcontent-%COMP%], #logo.light-lg[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font:800 2.25rem/1 franklin-gothic-urw,serif;letter-spacing:normal;font-family:franklin-gothic-urw,serif;text-transform:uppercase;margin-top:4rem;margin-bottom:4rem;font-weight:lighter;font-size:2.5rem}@media (min-width:959px){#logo.dark-lg[_ngcontent-%COMP%] a[_ngcontent-%COMP%], #logo.light-lg[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:3rem}}@media (min-width:960px){#logo.dark-lg[_ngcontent-%COMP%] a[_ngcontent-%COMP%], #logo.light-lg[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:3.5rem}}@media (min-width:1280px){#logo.dark-lg[_ngcontent-%COMP%] a[_ngcontent-%COMP%], #logo.light-lg[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:4rem}}#logo.dark-lg[_ngcontent-%COMP%] img[_ngcontent-%COMP%], #logo.light-lg[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{min-width:120px;max-width:600px;min-height:120px;max-height:240px;width:100%;margin-top:1em;margin-bottom:1em;margin-right:1em}#logo.dark[_ngcontent-%COMP%] a[_ngcontent-%COMP%], #logo.light[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font:800 1.75rem/1 franklin-gothic-urw,serif;letter-spacing:normal;font-family:franklin-gothic-urw,serif;text-transform:uppercase;font-weight:lighter;font-size:2rem}#logo.dark[_ngcontent-%COMP%] img[_ngcontent-%COMP%], #logo.light[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{min-width:40px;max-width:200px;min-height:40px;max-height:80px;width:auto;margin-top:1em;margin-bottom:1em;margin-right:1em}"]}),t})();function FW(t,e){if(1&t&&(Qo(0,"div",13),Na(1),Xo()),2&t){const t=ua(2);dr(1),Va(t.errorMessage)}}function NW(t,e){if(1&t){const t=ea();Qo(0,"footer",8),jo(1,FW,2,1,"div",9),Qo(2,"button",10),Na(3,"Submit"),Xo(),Qo(4,"button",11),ra("click",function(e){return Be(t),ua().goHome(e)}),Na(5,"Cancel"),Xo(),Qo(6,"button",12),ra("click",function(e){return Be(t),ua().goRegister(e)}),Na(7,"Register for an account"),Xo(),Xo()}if(2&t){const t=ua();dr(1),qo("ngIf",t.errorMessage)}}function VW(t,e){1&t&&(Qo(0,"footer"),Ko(1,"app-loading"),Xo())}function BW(t,e){if(1&t){const t=ea();Qo(0,"footer",14),Qo(1,"p"),Na(2,"You should receive a message in a few minutes with a link that will let you reset your password."),Xo(),Qo(3,"button",15),ra("click",function(e){return Be(t),ua().goHome(e)}),Na(4,"Continue"),Xo(),Xo()}}let HW=(()=>{class t{constructor(t,e,i){this.api=t,this.changeDetectorRef=e,this.router=i,this.formStatus="form",this.form=new cy({}),this.model={},this.fields=[{key:"email",type:"input",templateOptions:{type:"email",label:"Email Address:",placeholder:"Enter email",required:!0}}]}ngOnInit(){}submit(){localStorage.removeItem("token_url"),this.form.valid&&(this.formStatus="submitting",this.api.sendResetPasswordEmail(this.model.email).subscribe(t=>{t&&localStorage.setItem("token_url",t),this.formStatus="complete"},t=>{this.errorMessage=t||"We encountered an error resetting your password. Please contact support.",this.formStatus="form",this.changeDetectorRef.detectChanges()}))}goHome(t){t.preventDefault(),this.router.navigate(["home"])}goRegister(t){t.preventDefault(),this.router.navigate(["register"])}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(Vl),$o(lG))},t.\u0275cmp=Xt({type:t,selectors:[["app-forgot-password"]],decls:12,vars:7,consts:[["fxLayout","row","fxLayoutWrap","","fxLayoutGap","10px","fxLayoutAlign","center center",1,"container","mat-typography"],["fxFlex","50%","fxFlex.xs","90%",1,"form"],["variant","dark-lg"],[3,"formGroup","ngSubmit"],[3,"form","fields","model"],["fxLayout","column","fxLayoutGap","2%","fxLayoutAlign","center",4,"ngIf"],[4,"ngIf"],["id","confirmation_message",4,"ngIf"],["fxLayout","column","fxLayoutGap","2%","fxLayoutAlign","center"],["id","error_message","class","display mat-error",4,"ngIf"],["mat-flat-button","","type","submit","color","primary","id","submit"],["mat-flat-button","","color","accent","id","cancel",3,"click"],["mat-button","","id","register",3,"click"],["id","error_message",1,"display","mat-error"],["id","confirmation_message"],["mat-flat-button","","color","accent","id","continue",3,"click"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"div",1),Ko(2,"app-logo",2),Qo(3,"h1"),Na(4,"Forgot your password?"),Xo(),Qo(5,"p"),Na(6,"To reset your password, please enter the email address associated with your Autism DRIVE account."),Xo(),Qo(7,"form",3),ra("ngSubmit",function(){return e.submit()}),Qo(8,"formly-form",4),jo(9,NW,8,1,"footer",5),jo(10,VW,2,0,"footer",6),jo(11,BW,5,0,"footer",7),Xo(),Xo(),Xo(),Xo()),2&t&&(dr(7),qo("formGroup",e.form),dr(1),qo("form",e.form)("fields",e.fields)("model",e.model),dr(1),qo("ngIf","form"===e.formStatus),dr(1),qo("ngIf","submitting"===e.formStatus),dr(1),qo("ngIf","complete"===e.formStatus))},directives:[o_,p_,Z_,k_,LW,_y,jb,ky,NF,Jd,TA,Qj],styles:[".container[_ngcontent-%COMP%]{min-height:100vh}.form[_ngcontent-%COMP%]{border:2px solid #4e4e4e;padding:2%;text-align:center}"]}),t})();function zW(t,e){if(1&t&&Ko(0,"app-type-icon",6),2&t){const t=ua();qo("iconType",t.iconType)("size",t.iconSize)}}function GW(t,e){if(1&t&&(Qo(0,"div"),Na(1),Xo()),2&t){const t=ua();Ga("border-box-tile-label border-box-tile-label-",t.linkSize,"x"),dr(1),Va(t.title)}}function UW(t,e){if(1&t&&(Qo(0,"p",7),Na(1),Xo()),2&t){const t=ua();dr(1),Va(t.subtitle)}}const jW=function(t,e,i){return{"border-box-tile-inner":!0,selected:t,deselected:e,hover:i}};let WW=(()=>{class t{constructor(){this.iconSize=1,this.linkSize=1,this.hover=!1}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-border-box-tile"]],inputs:{iconType:"iconType",isSelected:"isSelected",url:"url",iconSize:"iconSize",title:"title",subtitle:"subtitle",linkLabel:"linkLabel",linkSize:"linkSize"},decls:6,vars:17,consts:[[3,"mouseover","mouseout"],[3,"ngClass"],[3,"iconType","size",4,"ngIf"],[3,"class",4,"ngIf"],["class","intro",4,"ngIf"],[3,"url","label","size","hover","selected"],[3,"iconType","size"],[1,"intro"]],template:function(t,e){var i,n;1&t&&(Qo(0,"div",0),ra("mouseover",function(){return e.hover=!0})("mouseout",function(){return e.hover=!1}),Qo(1,"div",1),jo(2,zW,1,2,"app-type-icon",2),jo(3,GW,2,4,"div",3),jo(4,UW,2,1,"p",4),Ko(5,"app-details-link",5),Xo(),Xo()),2&t&&("border-box-tile border-box-tile-",i=e.linkSize,"x ",n=e.iconType,"",Ea(hn,Aa,Uo(Ne(),"border-box-tile border-box-tile-",i,"x ",n,""),!0),dr(1),qo("ngClass",fc(13,jW,!0===e.isSelected,!1===e.isSelected,e.hover)),dr(1),qo("ngIf",e.iconType),dr(1),qo("ngIf",e.title),dr(1),qo("ngIf",e.subtitle),dr(1),qo("url",e.url)("label",e.linkLabel)("size",e.linkSize)("hover",e.hover)("selected",e.isSelected))},directives:[Qd,Pg,Jd,$U,JU],styles:['.border-box-tile[_ngcontent-%COMP%]{display:grid;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;position:relative;padding:0;margin:0;background-color:hsla(0,0%,100%,.8);text-align:center;color:#232d4b}.border-box-tile.border-box-tile-1x[_ngcontent-%COMP%]{height:226px}.border-box-tile.border-box-tile-2x[_ngcontent-%COMP%]{height:288px}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner.hover[_ngcontent-%COMP%]:before{opacity:0}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner.hover[_ngcontent-%COMP%]:after{opacity:1}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner[_ngcontent-%COMP%]:after, .border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner[_ngcontent-%COMP%]:before{content:"";pointer-events:none;transition:opacity .5s;position:absolute;width:100%;height:100%;top:0;left:0;right:0;bottom:0;margin:0}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner[_ngcontent-%COMP%]:before{border:11px solid #dadada;-o-border-image:linear-gradient(180deg,#dadada 0,#f1f1ef);border-image:linear-gradient(180deg,#dadada 0,#f1f1ef);border-image-slice:1;opacity:1}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner[_ngcontent-%COMP%]:after{border:11px solid #002f6c;-o-border-image:linear-gradient(#232d4b,#e57200);border-image:linear-gradient(#232d4b,#e57200);border-image-slice:1;opacity:0}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner.deselected[_ngcontent-%COMP%]:after{opacity:0}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner.deselected[_ngcontent-%COMP%]:before, .border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner.selected[_ngcontent-%COMP%]:after{opacity:1}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner.selected[_ngcontent-%COMP%]:before{opacity:0}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner[_ngcontent-%COMP%] p.intro[_ngcontent-%COMP%]{padding:0 20px;color:#4e4e4e;font-weight:700}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner[_ngcontent-%COMP%] .border-box-tile-label.border-box-tile-label-1x[_ngcontent-%COMP%]{font:700 1.5rem/1 franklin-gothic-urw,sans-serif;letter-spacing:normal;margin-top:1em;margin-bottom:1em;font-style:italic;text-transform:uppercase;letter-spacing:1.8px}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner[_ngcontent-%COMP%] .border-box-tile-label.border-box-tile-label-2x[_ngcontent-%COMP%]{font:800 1.75rem/1 franklin-gothic-urw,serif;letter-spacing:normal;margin-top:1em;margin-bottom:1em;font-style:italic;text-transform:uppercase}@media (max-width:1023px){.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner[_ngcontent-%COMP%]{padding:1em}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner[_ngcontent-%COMP%] .border-box-tile-label.border-box-tile-label-1x[_ngcontent-%COMP%]{font-size:1em}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner[_ngcontent-%COMP%] .border-box-tile-label.border-box-tile-label-2x[_ngcontent-%COMP%]{font-size:2em}}@media (min-width:1024px){.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner[_ngcontent-%COMP%]{padding:2.4375rem}}']}),t})();const $W=function(t,e){return{"news-item":!0,even:t,odd:e}},qW=function(t){return[t]};let YW=(()=>{class t{constructor(){}ngOnInit(){this.item.label||(this.item.label="Details")}isEven(t){return t%2==0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-news-item"]],inputs:{item:"item",index:"index"},decls:12,vars:16,consts:[[3,"ngClass"],[1,"image"],[3,"routerLink"],[3,"src"],[1,"content"],[1,"item-type"],[1,"item-title",3,"routerLink"],[3,"url","label"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"div",1),Qo(2,"a",2),Ko(3,"img",3),Xo(),Xo(),Qo(4,"div",4),Qo(5,"span",5),Na(6),Xo(),Qo(7,"a",6),Na(8),Xo(),Qo(9,"p"),Na(10),Xo(),Ko(11,"app-details-link",7),Xo(),Xo()),2&t&&(qo("ngClass",mc(9,$W,e.isEven(e.index),!e.isEven(e.index))),dr(2),qo("routerLink",pc(12,qW,e.item.url)),dr(1),ma("src",e.item.img,ms),dr(3),Va(e.item.type.label),dr(1),qo("routerLink",pc(14,qW,e.item.url)),dr(1),Va(e.item.title),dr(2),Va(e.item.description),dr(1),qo("url",e.item.url)("label",e.item.label))},directives:[Qd,Pg,uG,$U],styles:['.news-item[_ngcontent-%COMP%]{display:grid;position:relative}@media screen and (max-width:767px){.news-item[_ngcontent-%COMP%]{grid-template-columns:1fr}}@media screen and (min-width:768px){.news-item[_ngcontent-%COMP%]{grid-template-areas:"leftCol rightCol";grid-template-columns:1fr 1fr}}.news-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{display:grid;-ms-flex-line-pack:center;align-content:center}@media screen and (max-width:767px){.news-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{text-align:center;padding:2em}}@media screen and (min-width:768px){.news-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{padding:4em}}.news-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-image:url(/assets/theme/starburst.svg);background-position:top;background-repeat:no-repeat;background-size:contain;opacity:.1;z-index:-1}.news-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .item-type[_ngcontent-%COMP%]{text-transform:uppercase}.news-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .item-title[_ngcontent-%COMP%]{font:500 1.625rem/1 franklin-gothic-urw,serif;letter-spacing:normal;font-style:italic;color:#232d4b;cursor:pointer;margin-top:.75rem}.news-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .item-title[_ngcontent-%COMP%]:after{content:"";background-color:#e57200;width:6.25rem;height:.125rem;display:block}@media screen and (max-width:767px){.news-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .item-title[_ngcontent-%COMP%]:after{margin-left:auto;margin-right:auto}}@media screen and (min-width:768px){.news-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .item-title[_ngcontent-%COMP%]:after{margin:.45em 0}}.news-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-style:italic;font-size:1.125rem;line-height:1.666}.news-item[_ngcontent-%COMP%] .image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}@media screen and (min-width:768px){.news-item.even[_ngcontent-%COMP%] .image[_ngcontent-%COMP%]{grid-area:leftCol}}@media screen and (min-width:768px){.news-item.even[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{grid-area:rightCol}}.news-item.even[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]:before{left:-50%}@media screen and (min-width:768px){.news-item.odd[_ngcontent-%COMP%] .image[_ngcontent-%COMP%]{grid-area:rightCol}}@media screen and (min-width:768px){.news-item.odd[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{grid-area:leftCol}}.news-item.odd[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]:before{right:-50%}']}),t})();function QW(t,e){if(1&t&&Ko(0,"app-news-item",20),2&t){const t=e.index;qo("item",e.$implicit)("index",t)}}let XW=(()=>{class t{constructor(t,e,i,n){this.api=t,this.router=e,this.configService=i,this.meta=n,this.api.getStudiesByStatus("currently_enrolling").subscribe(t=>{this.currentStudies=t,this.newsItems=this._studiesToNewsItems(t)}),this.configService.mirroring&&e.navigate(["mirrored"]),this.meta.updateTag({property:"og:image",content:location.origin+"/assets/home/hero-family.jpg"},"property='og:image'"),this.meta.updateTag({property:"og:image:secure_url",content:location.origin+"/assets/home/hero-family.jpg"},"property='og:image:secure_url'"),this.meta.updateTag({name:"twitter:image",content:location.origin+"/assets/home/hero-family.jpg"},"name='twitter:image'")}ngOnInit(){}_studiesToNewsItems(t){if(this.currentStudies&&this.currentStudies.length>0)return t.map((t,e)=>({title:t.short_title||t.title,description:t.short_description||t.description,url:`/study/${t.id}`,type:OU.STUDY,img:t.image_url,imgClass:"center-center"}))}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(lG),$o(MG),$o(ip))},t.\u0275cmp=Xt({type:t,selectors:[["app-home"]],decls:30,vars:2,consts:[["id","hero",1,"gradient-overlay","container","with-escaping-tiles"],[1,"hero-content"],[1,"h4"],["fxLayout.lt-sm","column","fxLayout.gt-xs","row wrap","fxLayoutGap","40px","fxLayoutAlign","center auto",1,"row","escaping-tiles-2x"],["fxFlex.gt-sm","calc(33% - 160px)","fxFlex.sm","calc(50% - 120px)","url","/register","title","Join Autism DRIVE","subtitle","Connect to upcoming studies at UVA and resources across the state relevant to you.","linkSize","2","routerLink","/register"],["fxFlex.gt-sm","calc(33% - 160px)","fxFlex.sm","calc(50% - 120px)","url","/search","title","Find Resources","subtitle","Access autism-focused resources available in Virginia and online.","linkSize","2","routerLink","/search"],[1,"container","mat-typography"],["fxLayout","column","fxLayoutAlign","center center",1,"row"],[1,"intro"],[1,"jumbo-section"],[1,"jumbo-section-header"],["role","presentation",1,"watermark"],[1,"line-1"],["fxShow","","fxHide.gt-sm",""],[1,"line-2"],[1,"container"],[1,"row"],[3,"item","index",4,"ngFor","ngForOf"],[1,"more-studies"],["label","View more studies","size","2",3,"url"],[3,"item","index"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"div",1),Qo(2,"h1"),Na(3,"Transform Outcomes. Together."),Xo(),Ko(4,"hr"),Qo(5,"p",2),Na(6," We're bringing together researchers, professionals, and community organizations to improve the lives of individuals with autism and their families. Autism DRIVE gives you access to ground-breaking autism research and innovative models for care, support, and education. "),Xo(),Xo(),Qo(7,"div",3),Ko(8,"app-border-box-tile",4),Ko(9,"app-border-box-tile",5),Xo(),Xo(),Qo(10,"div",6),Qo(11,"div",7),Qo(12,"p",8),Na(13,"The Autism DRIVE enables secure storage and sharing of autism data, helping to monitor progress and outcomes. The system also provides access to resources for families and professionals -- infusing cutting-edge knowledge into community-based practices."),Xo(),Xo(),Xo(),Qo(14,"div",9),Qo(15,"header",10),Qo(16,"span",11),Na(17,"Autism"),Xo(),Qo(18,"h2"),Qo(19,"span",12),Na(20," Transformative "),Ko(21,"br",13),Na(22," Autism Research "),Xo(),Qo(23,"span",14),Na(24,"Current Studies"),Xo(),Xo(),Xo(),Xo(),Qo(25,"div",15),Qo(26,"div",16),jo(27,QW,1,2,"app-news-item",17),Qo(28,"div",18),Ko(29,"app-details-link",19),Xo(),Xo(),Xo()),2&t&&(dr(27),qo("ngForOf",e.newsItems),dr(2),qo("url","/studies"))},directives:[o_,p_,Z_,WW,k_,cG,Ng,Kd,$U,YW],styles:["#hero[_ngcontent-%COMP%]{background-image:url(/assets/home/hero-family.jpg);background-position:50% 33%;padding-top:80px;padding-bottom:80px}#hero[_ngcontent-%COMP%] .hero-content[_ngcontent-%COMP%]{text-align:center}#hero[_ngcontent-%COMP%] .hero-content[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-family:bodoni-urw,serif;text-transform:uppercase}#hero[_ngcontent-%COMP%] .hero-content[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border-top-width:4px;margin:1em auto}.more-studies[_ngcontent-%COMP%]{text-align:center;padding-top:2em}"]}),t})();function KW(t,e){1&t&&Ko(0,"app-loading",13)}const ZW=function(){return["/home"]},JW=function(){return["/register"]},t$=function(){return["/forgot-password"]};let e$=(()=>{class t{constructor(t,e,i,n,s){this.authenticationService=t,this.deviceDetectorService=e,this.googleAnalytics=i,this.route=n,this.router=s,this.loading=!1,this.errorEmitter=new kc,this.form=new cy({}),this.model={},this.fields=[{key:"email",type:"input",templateOptions:{type:"email",label:"Email Address:",placeholder:"Enter email",required:!0}},{key:"password",type:"input",templateOptions:{label:"Password:",type:"password",required:!0}}],this.route.queryParams.subscribe(t=>{t.hasOwnProperty("returnUrl")&&(this.returnUrl=t.returnUrl,this.authenticationService.currentUser.subscribe(t=>this._goToReturnUrl(t)))}),this.route.params.subscribe(t=>{t.hasOwnProperty("email_token")&&(this.emailToken=t.email_token)}),this.authenticationService.currentUser.subscribe(t=>{t&&this._goToReturnUrl(t)})}ngOnInit(){}submit(t){this.loading=!0,this.form.valid?this.authenticationService.login(t.email,t.password,this.emailToken).subscribe(t=>{this._goToReturnUrl(t),this.googleAnalytics.accountEvent("login")},t=>{this.errorEmitter.emit(t||"An unexpected error occurred. Please contact support"),this.loading=!1}):(this.loading=!1,this.errorEmitter.emit("Please enter a valid email address and password."))}_goToReturnUrl(t){t&&this.router.navigateByUrl(this.returnUrl||"/profile").then(t=>oB(this.deviceDetectorService))}}return t.\u0275fac=function(e){return new(e||t)($o(BG),$o(xV),$o(IG),$o(UH),$o(lG))},t.\u0275cmp=Xt({type:t,selectors:[["app-login"]],decls:21,vars:14,consts:[["message","Loading...",4,"ngIf"],["hidden","loading","fxLayout.gt-md","row","fxLayout.lt-lg","column","fxLayoutWrap","","fxLayoutGap","10px","fxLayoutAlign","center center",1,"container","mat-typography"],["fxFlex.gt-md","50%","fxFlex.lt-lg","80%",1,"form"],["variant","dark-lg"],[3,"formGroup","ngSubmit"],[3,"form","fields","model"],["fxLayout","column","fxLayoutGap","2%","fxLayoutAlign","center"],["id","error_message",1,"display","mat-error"],["mat-flat-button","","type","submit","color","primary","id","submit"],["mat-flat-button","","color","accent","id","cancel",3,"routerLink"],["fxLayout","row","fxLayoutAlign","space-between",1,"footer"],["mat-button","","id","register",3,"routerLink"],["mat-button","","id","forgot_password",3,"routerLink"],["message","Loading..."]],template:function(t,e){1&t&&(jo(0,KW,1,0,"app-loading",0),Qo(1,"div",1),Qo(2,"div",2),Ko(3,"app-logo",3),Qo(4,"h1"),Na(5,"Sign in"),Xo(),Qo(6,"form",4),ra("ngSubmit",function(){return e.submit(e.model)}),Qo(7,"formly-form",5),Qo(8,"div",6),Qo(9,"div",7),Na(10),vc(11,"async"),Xo(),Qo(12,"button",8),Na(13,"Submit"),Xo(),Qo(14,"a",9),Na(15,"Cancel"),Xo(),Xo(),Xo(),Xo(),Qo(16,"div",10),Qo(17,"a",11),Na(18,"Join Autism DRIVE"),Xo(),Qo(19,"a",12),Na(20,"Forgot password?"),Xo(),Xo(),Xo(),Xo()),2&t&&(qo("ngIf",e.loading),dr(6),qo("formGroup",e.form),dr(1),qo("form",e.form)("fields",e.fields)("model",e.model),dr(3),Va(wc(11,9,e.errorEmitter)),dr(4),qo("routerLink",hc(11,ZW)),dr(3),qo("routerLink",hc(12,JW)),dr(2),qo("routerLink",hc(13,t$)))},directives:[Jd,o_,p_,Z_,k_,LW,_y,jb,ky,NF,TA,PA,uG,Qj],pipes:[ph],styles:["@media (max-width:959px){.container[_ngcontent-%COMP%]{min-height:60vh}.container[_ngcontent-%COMP%] .mat-form-field-wrapper{padding-bottom:.25em}}@media (min-width:960px){.container[_ngcontent-%COMP%]{min-height:70vh}}@media (min-width:1280px){.container[_ngcontent-%COMP%]{min-height:80vh}}.form[_ngcontent-%COMP%]{padding:2%}"]}),t})();const i$=Dv({opacity:0}),n$=Dv({opacity:1}),s$=[n$,Ev("0.5s ease-in-out",i$)],r$=[i$,Ev("0.5s ease-in-out",n$)],o$={optional:!0};function a$(){return Ov("fadeTransition",[Rv("* <=> *",[Fv(":enter, :leave",n$,o$),Fv(":enter",i$,o$),Pv([Fv(":leave",Lv(),o$),Tv([Fv(":leave",s$,o$),Fv(":enter",r$,o$)]),Fv(":enter",Lv(),o$)])])])}Dv({opacity:1,transform:"translateX(0%) scale(1)"}),Dv({opacity:0,transform:"translateX(0%) scale(0)"}),Dv({opacity:0,transform:"translateX(0%) scale(10)"}),Dv({opacity:0,transform:"translateX(-100%) scale(1)"}),Dv({opacity:0,transform:"translateX(100%) scale(1)"}),Dv({opacity:0,transform:"translateX(0%) scale(1)"});let l$=(()=>{class t{constructor(t,e){this.api=t,this.router=e}ngOnInit(){}goHome(t){t.preventDefault(),this.router.navigate(["home"])}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(lG))},t.\u0275cmp=Xt({type:t,selectors:[["app-logout"]],hostVars:1,hostBindings:function(t,e){2&t&&ja("@fadeTransition",e.title)},decls:7,vars:0,consts:[["fxLayout.gt-md","row","fxLayout.lt-lg","column","fxLayoutWrap","","fxLayoutGap","10px","fxLayoutAlign","center center","id","logout-message",1,"container","mat-typography"],["fxFlex.gt-md","50%","fxFlex.lt-lg","80%",1,"message"],["variant","dark-lg",3,"click"],["id","ok-button","mat-flat-button","","color","primary",3,"click"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"div",1),Qo(2,"app-logo",2),ra("click",function(t){return e.goHome(t)}),Xo(),Qo(3,"h1"),Na(4,"You have been logged out."),Xo(),Qo(5,"button",3),ra("click",function(t){return e.goHome(t)}),Na(6,"Ok"),Xo(),Xo(),Xo())},directives:[o_,p_,Z_,k_,LW,TA],styles:["@media (max-width:959px){.container[_ngcontent-%COMP%]{min-height:70vh}}@media (min-width:960px){.container[_ngcontent-%COMP%]{min-height:80vh}}@media (min-width:1280px){.container[_ngcontent-%COMP%]{min-height:90vh}}div.message[_ngcontent-%COMP%]{text-align:center}"],data:{animation:[a$()]}}),t})(),c$=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-mirror"]],decls:14,vars:0,consts:[["fxLayout","column","fxLayoutAlign","start start",1,"mirror"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"h1"),Na(2,"Mirrored Server"),Xo(),Qo(3,"p"),Na(4,"This server is currently running in a mirrored mode and provides access to de-identified data. It is pulling data from the main/public server on a regular basis. Because this is acting as a mirror of the public facing system this data should not be modified. The following areas of the site are currently disabled:"),Xo(),Qo(5,"ul"),Qo(6,"li"),Qo(7,"b"),Na(8,"Profile Page"),Xo(),Na(9,": Which would allow the creation of new participants. This should be done on the main public facing site."),Xo(),Qo(10,"li"),Qo(11,"b"),Na(12,"Questionnaires / Flow"),Xo(),Na(13,": Which would create additional data that could be overwritten, lost, or contradict information taken from the main system."),Xo(),Xo(),Xo())},directives:[o_,Z_],styles:[".mirror[_ngcontent-%COMP%]{margin:auto;max-width:800px}button[_ngcontent-%COMP%]{margin-bottom:2em}"]}),t})();function u$(t,e){1&t&&(Qo(0,"div",16),Ko(1,"mat-spinner"),Xo())}function d$(t,e){if(1&t&&(Qo(0,"mat-card"),Qo(1,"p"),Na(2,"The filtered totals filter out all participants associated with Admin and Test User Accounts."),Xo(),Qo(3,"p"),Na(4,"The subtotals reflect all guardians, self advocates, and dependents, but not professionals."),Xo(),Ko(5,"mat-divider"),Qo(6,"div",17),Qo(7,"div"),Qo(8,"p"),Qo(9,"i"),Na(10,"Total Self Participants:"),Xo(),Na(11),Xo(),Qo(12,"p"),Qo(13,"i"),Na(14,"Total Self Guardians:"),Xo(),Na(15),Xo(),Qo(16,"p"),Qo(17,"i"),Na(18,"Total Dependents:"),Xo(),Na(19),Xo(),Qo(20,"p"),Qo(21,"b"),Na(22),Xo(),Xo(),Ko(23,"hr"),Qo(24,"p"),Qo(25,"i"),Na(26,"Total Self Professionals:"),Xo(),Na(27),Xo(),Qo(28,"p"),Qo(29,"b"),Na(30),Xo(),Xo(),Xo(),Qo(31,"div"),Qo(32,"p"),Qo(33,"i"),Na(34,"Filtered Self Participants:"),Xo(),Na(35),Xo(),Qo(36,"p"),Qo(37,"i"),Na(38,"Filtered Self Guardians:"),Xo(),Na(39),Xo(),Qo(40,"p"),Qo(41,"i"),Na(42,"Filtered Dependents:"),Xo(),Na(43),Xo(),Qo(44,"p"),Qo(45,"b"),Na(46),Xo(),Xo(),Ko(47,"hr"),Qo(48,"p"),Qo(49,"i"),Na(50,"Filtered Self Professionals:"),Xo(),Na(51),Xo(),Qo(52,"p"),Qo(53,"b"),Na(54),Xo(),Xo(),Xo(),Xo(),Xo()),2&t){const t=ua();dr(11),Ba(" ",t.userParticipantList.num_self_participants,""),dr(4),Ba(" ",t.userParticipantList.num_self_guardians,""),dr(4),Ba(" ",t.userParticipantList.num_dependents,""),dr(3),Ba("SubTotal: ",t.userParticipantList.num_self_participants+t.userParticipantList.num_self_guardians+t.userParticipantList.num_dependents,""),dr(5),Ba(" ",t.userParticipantList.num_self_professionals,""),dr(3),Ba("Total: ",t.userParticipantList.num_self_participants+t.userParticipantList.num_self_professionals+t.userParticipantList.num_self_guardians+t.userParticipantList.num_dependents,""),dr(5),Ba(" ",t.userParticipantList.filtered_self_participants,""),dr(4),Ba(" ",t.userParticipantList.filtered_self_guardians,""),dr(4),Ba(" ",t.userParticipantList.filtered_dependents,""),dr(3),Ba("Filtered SubTotal: ",t.userParticipantList.filtered_self_participants+t.userParticipantList.filtered_self_guardians+t.userParticipantList.filtered_dependents,""),dr(5),Ba(" ",t.userParticipantList.filtered_self_professionals,""),dr(3),Ba("Filtered Total: ",t.userParticipantList.filtered_self_participants+t.userParticipantList.filtered_self_professionals+t.userParticipantList.filtered_self_guardians+t.userParticipantList.filtered_dependents,"")}}function h$(t,e){1&t&&(Qo(0,"mat-header-cell",18),Na(1," Id "),Xo())}function p$(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.id," ")}}function m$(t,e){1&t&&(Qo(0,"mat-header-cell",18),Na(1," Name "),Xo())}function f$(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.name," ")}}function g$(t,e){1&t&&(Qo(0,"mat-header-cell",18),Na(1," User Id "),Xo())}function _$(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.user_id," ")}}function b$(t,e){1&t&&(Qo(0,"mat-header-cell",18),Na(1," Relationship "),Xo())}function y$(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.relationship," ")}}function v$(t,e){1&t&&(Qo(0,"mat-header-cell",18),Na(1," Percent Complete "),Xo())}function w$(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),vc(2,"percent"),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",wc(2,1,t.percent_complete)," ")}}function C$(t,e){1&t&&(Qo(0,"mat-header-cell",18),Na(1," Has Consented "),Xo())}function x$(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.has_consented," ")}}function S$(t,e){1&t&&(Qo(0,"mat-header-cell",18),Na(1," Last Updated "),Xo())}function k$(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.last_updated," ")}}function A$(t,e){1&t&&Ko(0,"mat-header-row")}function O$(t,e){1&t&&Ko(0,"mat-row")}let E$=(()=>{class t{constructor(t){this.api=t,this.participantDataSource=new mR([]),this.displayedColumns=["id","name","user_id","relationship","percent_complete","has_consented","last_updated"],this.loading=!0}ngOnInit(){this.api.getParticipantAdminList().subscribe(t=>{this.userParticipantList=t,this.participantDataSource.data=t.all_participants,this.participantDataSource.sort=this.sort,this.loading=!1})}applyFilter(t){this.participantDataSource.filter=t.target.value.trim().toLowerCase()}}return t.\u0275fac=function(e){return new(e||t)($o(WG))},t.\u0275cmp=Xt({type:t,selectors:[["app-participant-admin"]],viewQuery:function(t,e){if(1&t&&Vc(qM,3),2&t){let t;Nc(t=Hc())&&(e.sort=t.first)}},decls:34,vars:5,consts:[[1,"participant-admin"],["class","spinner-container",4,"ngIf"],[4,"ngIf"],["matInput","",3,"keyup"],["matSort","","matSortActive","id","matSortDirection","asc",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","id"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","name"],["matColumnDef","user_id"],["matColumnDef","relationship"],["matColumnDef","percent_complete"],["matColumnDef","has_consented"],["matColumnDef","last_updated"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[1,"spinner-container"],["fxLayout","row","fxLayout.lt-sm","column","fxLayoutGap","2em"],["mat-sort-header",""]],template:function(t,e){1&t&&(Qo(0,"div",0),jo(1,u$,2,0,"div",1),Qo(2,"div"),Qo(3,"h1"),Na(4,"Participant Admin"),Xo(),jo(5,d$,55,12,"mat-card",2),Qo(6,"mat-form-field"),Qo(7,"mat-label"),Na(8,"Filter"),Xo(),Qo(9,"input",3),ra("keyup",function(t){return e.applyFilter(t)}),Xo(),Xo(),Qo(10,"mat-table",4),Zo(11,5),jo(12,h$,2,0,"mat-header-cell",6),jo(13,p$,2,1,"mat-cell",7),Jo(),Zo(14,8),jo(15,m$,2,0,"mat-header-cell",6),jo(16,f$,2,1,"mat-cell",7),Jo(),Zo(17,9),jo(18,g$,2,0,"mat-header-cell",6),jo(19,_$,2,1,"mat-cell",7),Jo(),Zo(20,10),jo(21,b$,2,0,"mat-header-cell",6),jo(22,y$,2,1,"mat-cell",7),Jo(),Zo(23,11),jo(24,v$,2,0,"mat-header-cell",6),jo(25,w$,3,3,"mat-cell",7),Jo(),Zo(26,12),jo(27,C$,2,0,"mat-header-cell",6),jo(28,x$,2,1,"mat-cell",7),Jo(),Zo(29,13),jo(30,S$,2,0,"mat-header-cell",6),jo(31,k$,2,1,"mat-cell",7),Jo(),jo(32,A$,1,0,"mat-header-row",14),jo(33,O$,1,0,"mat-row",15),Xo(),Xo(),Xo()),2&t&&(dr(1),qo("ngIf",e.loading),dr(4),qo("ngIf",e.userParticipantList),dr(5),qo("dataSource",e.participantDataSource),dr(22),qo("matHeaderRowDef",e.displayedColumns),dr(1),qo("matRowDefColumns",e.displayedColumns))},directives:[Jd,Yk,Nk,cE,$I,qM,ZI,XI,YI,sR,oR,oM,ZA,eP,o_,p_,tR,tI,iR,lR,uR],pipes:[bh],styles:[".participant-admin[_ngcontent-%COMP%]{margin:2em}mat-form-field[_ngcontent-%COMP%]{margin-top:2em}"]}),t})();function T$(t,e){if(1&t&&(Qo(0,"div",13),Na(1),Xo()),2&t){const t=ua();dr(1),Va(t.errorMessage)}}const P$=function(){return["/register"]},D$=function(){return["/forgot-password"]};let M$=(()=>{class t{constructor(t,e,i,n,s,r,o){this.authenticationService=t,this.route=e,this.router=i,this.changeDetectorRef=n,this.apiService=s,this.deviceDetectorService=r,this.googleAnalyticsService=o,this.formState="form",this.errorMessage="",this.form=new cy({}),this.model={},this.fields=[{key:"password",validators:{fieldMatch:{expression:t=>{const e=t.value;return e.passwordConfirm===e.password||!e.passwordConfirm||!e.password},message:"Password Not Matching",errorPath:"passwordConfirm"}},fieldGroup:[{key:"password",type:"input",className:"password",templateOptions:{type:"password",label:"Password",required:!0},validators:{password:{expression:t=>!t.value||this.passwordRegex.test(t.value),message:(t,e)=>this.passwordRequirements.instructions}}},{key:"passwordConfirm",type:"input",className:"passwordConfirm",templateOptions:{type:"password",label:"Confirm Password",placeholder:"Please re-enter your password",required:!0}}]}],this.route.params.subscribe(t=>{this.token=t.email_token,this.role=t.role,this.apiService.getPasswordRequirements(this.role).subscribe(t=>{this.passwordRequirements=t,this.passwordRegex=RegExp(t.regex)})})}ngOnInit(){}goHome(t){t.preventDefault(),this.router.navigate(["home"])}submit(){this.form.valid&&(this.formState="submitting",this.errorMessage="",this.authenticationService.resetPassword(this.model.password.password,this.token).subscribe(t=>{this._goToReturnUrl(t),this.googleAnalyticsService.accountEvent("reset_password")},t=>{this.errorMessage="token_expired"===t.code?"The link for resetting your password has expired.Please return to the password reset page to generate a new email.":"We encountered an error resetting your password. Please contact support.",this.formState="form",this.changeDetectorRef.detectChanges()}))}updateValidationState(){this.form.updateValueAndValidity()}_goToReturnUrl(t){const e=localStorage.getItem("returnUrl");t&&this.router.navigateByUrl(e&&"undefined"!==e?e:"/profile").then(t=>oB(this.deviceDetectorService))}}return t.\u0275fac=function(e){return new(e||t)($o(BG),$o(UH),$o(lG),$o(Vl),$o(WG),$o(xV),$o(IG))},t.\u0275cmp=Xt({type:t,selectors:[["app-password-reset"]],decls:18,vars:9,consts:[["fxLayout","row","fxLayout.xs","column","fxLayoutWrap","","fxLayoutGap","10px","fxLayoutAlign","center center",1,"container","mat-typography"],["fxFlex","50%","fxFlex.xs","90%",1,"form"],["variant","dark-lg",3,"click"],["color","primary",1,"mat-display-1"],[3,"formGroup","ngSubmit"],[3,"form","fields","model","keyup"],["fxLayout","column","fxLayoutGap","2%","fxLayoutAlign","center"],["id","error_message","class","display mat-error",4,"ngIf"],["mat-flat-button","","type","submit","color","primary","id","submit"],["mat-flat-button","","color","accent","id","cancel",3,"click"],["fxLayout","row","fxLayoutAlign","space-between",1,"footer"],["mat-button","","id","register",3,"routerLink"],["mat-button","","id","forgot_password",3,"routerLink"],["id","error_message",1,"display","mat-error"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"div",1),Qo(2,"app-logo",2),ra("click",function(t){return e.goHome(t)}),Xo(),Qo(3,"h1",3),Na(4,"Set your new Autism DRIVE Password"),Xo(),Qo(5,"form",4),ra("ngSubmit",function(){return e.submit()}),Qo(6,"formly-form",5),ra("keyup",function(){return e.updateValidationState()}),Qo(7,"div",6),jo(8,T$,2,1,"div",7),Qo(9,"button",8),Na(10,"Next"),Xo(),Qo(11,"button",9),ra("click",function(t){return e.goHome(t)}),Na(12,"Cancel"),Xo(),Xo(),Xo(),Xo(),Qo(13,"div",10),Qo(14,"a",11),Na(15,"Join Autism DRIVE"),Xo(),Qo(16,"a",12),Na(17,"Forgot password?"),Xo(),Xo(),Xo(),Xo()),2&t&&(dr(5),qo("formGroup",e.form),dr(1),qo("form",e.form)("fields",e.fields)("model",e.model),dr(2),qo("ngIf",e.errorMessage),dr(6),qo("routerLink",hc(7,P$)),dr(2),qo("routerLink",hc(8,D$)))},directives:[o_,p_,Z_,k_,LW,_y,jb,ky,NF,Jd,TA,PA,uG],styles:[".container[_ngcontent-%COMP%]{min-height:100vh}.form[_ngcontent-%COMP%]{border:2px solid #4e4e4e;padding:2%}"]}),t})();function I$(t,e){1&t&&(Qo(0,"p"),Na(1," If you would like to join the research registry, please work with your legal guardian to create a profile for yourself. Your profile information will be used to match you with new study opportunities. "),Xo())}function R$(t,e){if(1&t&&(Qo(0,"div",11),Qo(1,"h1"),Na(2,"Profile complete!"),Xo(),Qo(3,"p"),Na(4," Your account set up is complete! You may now sign up for webinars and search for resources. "),Xo(),jo(5,I$,2,0,"p",6),Xo()),2&t){const t=ua(2);dr(5),qo("ngIf",t.meta.self_participant&&t.meta.self_has_guardian)}}function L$(t,e){1&t&&(Qo(0,"div",12),Qo(1,"h1"),Na(2,"Join the Registry!"),Xo(),Qo(3,"p"),Na(4,"Your account set up is complete! You may now sign up for webinars, search for resources, and join our research registry."),Xo(),Qo(5,"p"),Na(6,"Joining the research registry allows you to get connected with new study opportunities! The joining process involves creating a profile about yourself. Your information will be used to match you with study opportunities."),Xo(),Xo())}function F$(t,e){1&t&&(Qo(0,"div",13),Qo(1,"h1"),Na(2,"Join the Registry as a Parent/Guardian!"),Xo(),Qo(3,"p"),Na(4,"Your account set up is complete! You may now sign up for webinars, search for resources, and join our research registry."),Xo(),Qo(5,"p"),Na(6,"Joining the research registry allows you and your child to get connected with new study opportunities! The joining process involves creating profiles for yourself and your child. Your profile information will be used to match you or your child with relevant study opportunities. "),Xo(),Xo())}function N$(t,e){1&t&&(Qo(0,"div",14),Qo(1,"h1"),Na(2,"Join the Registry as a Professional!"),Xo(),Qo(3,"p"),Na(4,"Your account set up is complete! You may now sign up for webinars, search for resources, and join our research registry."),Xo(),Qo(5,"p"),Na(6,"Joining the research registry allows you to get connected with exciting study opportunities! The joining process involves creating a profile about yourself. Your information will be used to match you with study opportunities. "),Xo(),Xo())}function V$(t,e){1&t&&(Qo(0,"p"),Na(1," If you think your child would be interested in joining, please share information about Autism DRIVE with them so they can sign up directly. "),Xo())}function B$(t,e){if(1&t&&(Qo(0,"div"),Qo(1,"h1"),Na(2,"Join the Registry!"),Xo(),Qo(3,"p"),Na(4,"Your account set up is complete! You may now sign up for webinars, search for resources, and join our research registry."),Xo(),Qo(5,"p"),Na(6,"Joining the research registry allows you to get connected with exciting study opportunities! The joining process involves creating a profile about yourself. Your information will be used to match you with study opportunities. "),Xo(),jo(7,V$,2,0,"p",6),Xo()),2&t){const t=ua(2);dr(7),qo("ngIf",t.meta.guardian&&!t.meta.guardian_has_dependent)}}function H$(t,e){if(1&t){const t=ea();Qo(0,"button",15),ra("click",function(e){return Be(t),ua(2).goFlow(e)}),Na(1," Join the Registry "),Xo()}}function z$(t,e){if(1&t&&(Qo(0,"div",1),jo(1,R$,6,1,"div",2),jo(2,L$,7,0,"div",3),jo(3,F$,7,0,"div",4),jo(4,N$,7,0,"div",5),jo(5,B$,8,1,"div",6),Qo(6,"div",7),jo(7,H$,2,0,"button",8),Qo(8,"button",9),Na(9," Watch Webinars "),Xo(),Qo(10,"button",10),Na(11," Search Resources "),Xo(),Xo(),Xo()),2&t){const t=ua();dr(1),qo("ngIf",null===t.meta.self_relationship),dr(1),qo("ngIf",t.meta.self_relationship===t.relationships.SELF_PARTICIPANT),dr(1),qo("ngIf",t.meta.self_relationship===t.relationships.SELF_GUARDIAN),dr(1),qo("ngIf",t.meta.self_relationship===t.relationships.SELF_PROFESSIONAL),dr(1),qo("ngIf",t.meta.self_relationship===t.relationships.SELF_INTERESTED),dr(2),qo("ngIf",t.meta.self_relationship)}}let G$=(()=>{class t{constructor(t,e,i){this.authenticationService=t,this.api=e,this.router=i,this.relationships=LG}ngOnInit(){}goFlow(t){t.preventDefault(),this.router.navigate(["terms",this.meta.self_relationship])}}return t.\u0275fac=function(e){return new(e||t)($o(BG),$o(WG),$o(lG))},t.\u0275cmp=Xt({type:t,selectors:[["app-profile-meta"]],inputs:{user:"user",meta:"meta"},decls:1,vars:1,consts:[["class","meta_info","fxLayout","row","fxLayout.sm","row","fxLayout.xs","column","fxLayoutGap","10px","fxLayoutAlign","center center","fxFlexOffset","5",4,"ngIf"],["fxLayout","row","fxLayout.sm","row","fxLayout.xs","column","fxLayoutGap","10px","fxLayoutAlign","center center","fxFlexOffset","5",1,"meta_info"],["id","null_relationship",4,"ngIf"],["id","self_participant",4,"ngIf"],["id","self_guardian",4,"ngIf"],["id","self_profressional",4,"ngIf"],[4,"ngIf"],["fxLayout","column","fxLayout.gt-sm","column","fxLayoutGap","10px","fxLayoutAlign","center center","fxFlexOffset","15"],["mat-flat-button","","id","join","type","button","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","type","button","color","primary","routerLink","/uva-education"],["mat-flat-button","","type","button","color","primary","routerLink","/search"],["id","null_relationship"],["id","self_participant"],["id","self_guardian"],["id","self_profressional"],["mat-flat-button","","id","join","type","button","color","accent",3,"click"]],template:function(t,e){1&t&&jo(0,z$,12,6,"div",0),2&t&&qo("ngIf",e.meta)},directives:[Jd,o_,p_,Z_,L_,TA,cG],styles:["div.meta_info[_ngcontent-%COMP%]{margin:20px auto;text-align:left;max-width:800px}"]}),t})();const U$=function(t){return{"avatar-image-active":t}};function j$(t,e){if(1&t){const t=ea();Qo(0,"button",18),ra("click",function(){Be(t);const i=e.$implicit;return ua(2).setImage(i)}),Ko(1,"img",6),Xo()}if(2&t){const t=e.$implicit,i=ua(2);qo("ngClass",pc(2,U$,i.isSelectedImage(t))),dr(1),fa("src","/assets/avatars/",t,".svg",ms)}}const W$=function(t){return{"background-color":t}},$$=function(t){return{"color-swatch-active":t}};function q$(t,e){if(1&t){const t=ea();Qo(0,"button",19),ra("click",function(){Be(t);const i=e.$implicit;return ua(2).setColor(i)}),Na(1,"\xa0 "),Xo()}if(2&t){const t=e.$implicit,i=ua(2);qo("ngStyle",pc(2,W$,t))("ngClass",pc(4,$$,i.isSelectedColor(t)))}}function Y$(t,e){if(1&t){const t=ea();Qo(0,"div",1),Qo(1,"div",2),Qo(2,"h1",3),Na(3),Xo(),Qo(4,"div",4),Qo(5,"div",5),Ko(6,"img",6),Xo(),Xo(),Qo(7,"p"),Na(8,"Pick an image"),Xo(),Qo(9,"div",7),Qo(10,"button",8),ra("click",function(e){return Be(t),ua().scroll(e,"avatar-images","left")}),Qo(11,"mat-icon"),Na(12,"chevron_left"),Xo(),Xo(),Qo(13,"div",9),jo(14,j$,2,4,"button",10),Xo(),Qo(15,"button",11),ra("click",function(e){return Be(t),ua().scroll(e,"avatar-images","right")}),Qo(16,"mat-icon"),Na(17,"chevron_right"),Xo(),Xo(),Xo(),Qo(18,"p"),Na(19,"Pick a color"),Xo(),Qo(20,"div",12),Qo(21,"button",8),ra("click",function(e){return Be(t),ua().scroll(e,"color-swatches","left")}),Qo(22,"mat-icon"),Na(23,"chevron_left"),Xo(),Xo(),Qo(24,"div",13),jo(25,q$,2,6,"button",14),Xo(),Qo(26,"button",11),ra("click",function(e){return Be(t),ua().scroll(e,"color-swatches","right")}),Qo(27,"mat-icon"),Na(28,"chevron_right"),Xo(),Xo(),Xo(),Xo(),Qo(29,"div",15),Qo(30,"button",16),ra("click",function(){return Be(t),ua().onSubmit()}),Na(31,"Save"),Xo(),Qo(32,"button",17),ra("click",function(){return Be(t),ua().onNoClick()}),Na(33,"Cancel"),Xo(),Xo(),Xo()}if(2&t){const t=ua();dr(3),Va(t.getPrompt()),dr(2),qo("ngStyle",pc(5,W$,t.selectedColor||t.data.participant.avatar_color)),dr(1),fa("src","/assets/avatars/",t.selectedIcon||t.data.participant.avatar_icon,".svg",ms),dr(8),qo("ngForOf",t.avatarImages),dr(11),qo("ngForOf",t.avatarColors)}}let Q$=(()=>{class t{constructor(t,e,i){this.api=t,this.dialogRef=e,this.data=i,this.avatarImages=[],this.avatarColors=[];for(let n=0;n<104;n++)this.avatarImages[n]=(n+1).toLocaleString("en",{minimumIntegerDigits:3});for(let n=0;n<16;n++)this.avatarColors[n]=`hsl(${16*n},100%,80%)`;this.selectedIcon=this.data.participant.avatar_icon||"001",this.selectedColor=this.data.participant.avatar_color||"hsl(0, 100%, 80%)",this.dialogRef.afterOpened().subscribe(()=>{const t=document.getElementsByClassName("avatar-image-active")[0],e=document.getElementsByClassName("color-swatch-active")[0];t&&t.parentElement.scrollTo({left:t.offsetLeft-1.25*t.clientWidth-t.parentElement.clientWidth}),e&&e.parentElement.scrollTo({left:e.offsetLeft-3*e.clientWidth-e.parentElement.clientWidth})})}ngOnInit(){}onNoClick(){this.dialogRef.close()}getPrompt(){return`Choose ${this.data.participant.relationship!==LG.DEPENDENT?"your":`${this.data.participant.name||"your child"}'s`} avatar`}setColor(t){this.selectedColor=t}setImage(t){this.selectedIcon=t}isSelectedImage(t){return this.selectedIcon?t===this.selectedIcon:t===this.data.participant.avatar_icon}isSelectedColor(t){return this.selectedColor?t===this.selectedColor:t===this.data.participant.avatar_color}scroll(t,e,i){const n=document.getElementsByClassName(e)[0],s=document.getElementsByClassName(e+"-row")[0];n.scrollBy(s.clientWidth*("left"===i?-1:1),0)}onSubmit(){this.data.participant.avatar_color=this.selectedColor||this.data.participant.avatar_color,this.data.participant.avatar_icon=this.selectedIcon||this.data.participant.avatar_icon,this.api.updateParticipant(this.data.participant).subscribe(()=>this.dialogRef.close())}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(NO),$o(BO))},t.\u0275cmp=Xt({type:t,selectors:[["app-avatar-dialog"]],decls:1,vars:1,consts:[["class","mat-typography",4,"ngIf"],[1,"mat-typography"],["mat-dialog-content",""],["mat-dialog-title",""],["fxLayout","column","fxLayoutAlign","center center"],[1,"avatar",3,"ngStyle"],[3,"src"],[1,"avatar-images-row"],["mat-button","",1,"scroll-left",3,"click"],[1,"avatar-images"],["class","avatar-image",3,"ngClass","click",4,"ngFor","ngForOf"],["mat-button","",1,"scroll-right",3,"click"],[1,"color-swatches-row"],[1,"color-swatches"],["class","color-swatch",3,"ngStyle","ngClass","click",4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-flat-button","","color","primary","id","save_avatar_changes",3,"click"],["mat-button","","id","cancel_avatar_changes",3,"click"],[1,"avatar-image",3,"ngClass","click"],[1,"color-swatch",3,"ngStyle","ngClass","click"]],template:function(t,e){1&t&&jo(0,Y$,34,7,"div",0),2&t&&qo("ngIf",e.data.participant)},directives:[Jd,YO,qO,o_,Z_,oh,Wg,TA,JT,Kd,QO,Qd,Pg],styles:[".avatar[_ngcontent-%COMP%]{border-radius:50%}.avatar[_ngcontent-%COMP%], .avatar[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:192px;width:192px}.avatar-images-row[_ngcontent-%COMP%], .color-swatches-row[_ngcontent-%COMP%]{display:grid;grid-gap:0}@media (min-width:576px){.avatar-images-row[_ngcontent-%COMP%], .color-swatches-row[_ngcontent-%COMP%]{grid-template-columns:1fr 4fr 1fr}}@media (min-width:768px){.avatar-images-row[_ngcontent-%COMP%], .color-swatches-row[_ngcontent-%COMP%]{grid-template-columns:1fr 6fr 1fr}}@media (min-width:992px){.avatar-images-row[_ngcontent-%COMP%], .color-swatches-row[_ngcontent-%COMP%]{grid-template-columns:1fr 8fr 1fr}}@media (min-width:1200px){.avatar-images-row[_ngcontent-%COMP%], .color-swatches-row[_ngcontent-%COMP%]{grid-template-columns:1fr 10fr 1fr}}.avatar-images-row[_ngcontent-%COMP%] .scroll-left[_ngcontent-%COMP%], .avatar-images-row[_ngcontent-%COMP%] .scroll-right[_ngcontent-%COMP%], .color-swatches-row[_ngcontent-%COMP%] .scroll-left[_ngcontent-%COMP%], .color-swatches-row[_ngcontent-%COMP%] .scroll-right[_ngcontent-%COMP%]{height:100%}.avatar-images-row[_ngcontent-%COMP%] .scroll-left[_ngcontent-%COMP%], .avatar-images-row[_ngcontent-%COMP%] .scroll-left[_ngcontent-%COMP%]:active, .avatar-images-row[_ngcontent-%COMP%] .scroll-left[_ngcontent-%COMP%]:focus, .avatar-images-row[_ngcontent-%COMP%] .scroll-left[_ngcontent-%COMP%]:hover, .color-swatches-row[_ngcontent-%COMP%] .scroll-left[_ngcontent-%COMP%], .color-swatches-row[_ngcontent-%COMP%] .scroll-left[_ngcontent-%COMP%]:active, .color-swatches-row[_ngcontent-%COMP%] .scroll-left[_ngcontent-%COMP%]:focus, .color-swatches-row[_ngcontent-%COMP%] .scroll-left[_ngcontent-%COMP%]:hover{background-image:linear-gradient(90deg,#fff,#fff,hsla(0,0%,100%,0))}.avatar-images-row[_ngcontent-%COMP%] .scroll-right[_ngcontent-%COMP%], .avatar-images-row[_ngcontent-%COMP%] .scroll-right[_ngcontent-%COMP%]:active, .avatar-images-row[_ngcontent-%COMP%] .scroll-right[_ngcontent-%COMP%]:focus, .avatar-images-row[_ngcontent-%COMP%] .scroll-right[_ngcontent-%COMP%]:hover, .color-swatches-row[_ngcontent-%COMP%] .scroll-right[_ngcontent-%COMP%], .color-swatches-row[_ngcontent-%COMP%] .scroll-right[_ngcontent-%COMP%]:active, .color-swatches-row[_ngcontent-%COMP%] .scroll-right[_ngcontent-%COMP%]:focus, .color-swatches-row[_ngcontent-%COMP%] .scroll-right[_ngcontent-%COMP%]:hover{background-image:linear-gradient(90deg,hsla(0,0%,100%,0),#fff,#fff)}.avatar-images[_ngcontent-%COMP%], .color-swatches[_ngcontent-%COMP%]{overflow-x:scroll;white-space:nowrap;scroll-behavior:smooth}.avatar-images[_ngcontent-%COMP%]{height:112px}.color-swatches[_ngcontent-%COMP%]{height:80px}.avatar-image[_ngcontent-%COMP%], .color-swatch[_ngcontent-%COMP%]{border:8px solid #fff;display:inline-block;background:rgba(0,0,0,0);outline:none;margin:0 0 0 10px;padding:0;border-radius:50%}.color-swatch[_ngcontent-%COMP%]{width:64px;height:64px}.avatar-image[_ngcontent-%COMP%]{width:112px;height:112px;background:#eee}.avatar-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:96px;height:96px}.avatar-image-active[_ngcontent-%COMP%], .color-swatch-active[_ngcontent-%COMP%]{border-color:#999}"]}),t})();function X$(t,e){if(1&t&&(Qo(0,"div",7),Ko(1,"mat-progress-bar",8),Xo()),2&t){const t=ua();dr(1),qo("mode","determinate")("value",100*t.participant.percent_complete)}}function K$(t,e){1&t&&(Qo(0,"div",7),Na(1," Profile Complete "),Xo())}const Z$=function(t){return{"background-color":t}};let J$=(()=>{class t{constructor(t,e,i){this.api=t,this.router=e,this.dialog=i}ngOnInit(){}goEditEnroll(t){this.participant.relationship===LG.SELF_PARTICIPANT?(t.preventDefault(),this.router.navigate(["flow","self_intake",this.participant.id])):this.participant.relationship===LG.DEPENDENT?(t.preventDefault(),this.router.navigate(["flow","dependent_intake",this.participant.id])):this.participant.relationship===LG.SELF_PROFESSIONAL?(t.preventDefault(),this.router.navigate(["flow","professional_intake",this.participant.id])):this.participant.relationship===LG.SELF_INTERESTED?(t.preventDefault(),this.router.navigate(["flow","interested_intake",this.participant.id])):(t.preventDefault(),this.router.navigate(["flow","guardian_intake",this.participant.id]))}goTerms(t){t.preventDefault(),this.router.navigate(["terms",this.participant.relationship,{preview:!0}])}chooseAvatar(t,e){this.dialog.open(Q$,{maxWidth:"100vw",maxHeight:"100vh",data:{participant:e}}).afterClosed().subscribe(t=>{console.log("The dialog was closed")})}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(lG),$o(jO))},t.\u0275cmp=Xt({type:t,selectors:[["app-participant-profile"]],inputs:{participant:"participant",user:"user"},decls:19,vars:18,consts:[[1,"mat-typography"],["mat-card-avatar","",3,"src","ngStyle","id","click"],[1,"change_text",3,"click"],["class","mat-subheading-2",4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","start center","fxLayoutGap","10px"],["mat-flat-button","","color","accent",3,"id","click"],["mat-stroked-button","",3,"id","click"],[1,"mat-subheading-2"],[3,"mode","value"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"mat-card"),Qo(2,"mat-card-header"),Qo(3,"img",1),ra("click",function(t){return e.chooseAvatar(t,e.participant)}),Xo(),Qo(4,"div",2),ra("click",function(t){return e.chooseAvatar(t,e.participant)}),Na(5,"change icon"),Xo(),Qo(6,"mat-card-title"),Na(7),Xo(),Qo(8,"mat-card-subtitle"),Na(9),vc(10,"titlecase"),jo(11,X$,2,2,"div",3),jo(12,K$,2,0,"div",3),Qo(13,"div",4),Qo(14,"button",5),ra("click",function(t){return e.goEditEnroll(t)}),Na(15),Xo(),Qo(16,"button",6),ra("click",function(t){return e.goTerms(t)}),Na(17,"Terms and Conditions"),Xo(),Xo(),Xo(),Xo(),Ko(18,"mat-card-content"),Xo(),Xo()),2&t&&(dr(1),Sa("mat-elevation-z0",!0),dr(2),fa("src","/assets/avatars/",e.participant.avatar_icon||"001",".svg",ms),fa("id","avatar_",e.participant.id,""),qo("ngStyle",pc(16,Z$,e.participant.avatar_color||"#CCC")),dr(4),Ba(" ",e.participant.name," "),dr(2),Ba(" ",e.user.isSelf(e.participant)?"You":wc(10,14,e.participant.relationship)," "),dr(2),qo("ngIf",e.participant.percent_complete<1),dr(1),qo("ngIf",e.participant.percent_complete>=1),dr(2),ga("id","edit_enroll_",e.participant.relationship,"_",e.participant.id,""),dr(1),Ba("Edit ","self_guardian"===e.participant.relationship?"guardian":"enrollment"," info"),dr(1),ga("id","view_terms_",e.participant.relationship,"_",e.participant.id,""))},directives:[ZA,JA,KA,oh,Wg,QA,XA,Jd,o_,Z_,p_,TA,YA,YD],pipes:[fh],styles:["mat-card{width:100%}mat-card-header[_ngcontent-%COMP%]{position:relative}[mat-card-avatar][_ngcontent-%COMP%]{width:100px;height:100px;cursor:pointer}[mat-card-avatar][_ngcontent-%COMP%]:hover{opacity:.5}.change_text[_ngcontent-%COMP%]{position:absolute;top:105px;left:7px;cursor:pointer}.change_text[_ngcontent-%COMP%]:hover{opacity:.5} .mat-card-header-text{width:100%} mat-progress-bar{height:16px} mat-progress-bar .mat-progress-bar-buffer{background-color:#dadada} mat-progress-bar .mat-progress-bar-background, mat-progress-bar .mat-progress-bar-background pattern{fill:#dadada} mat-card-subtitle button{margin-top:20px} mat-card-subtitle .mat-subheading-2{color:#000}button[_ngcontent-%COMP%]{width:100%}@media (min-width:768px){button[_ngcontent-%COMP%]{width:50%}}"]}),t})();const tq=function(t){return["/resource",t]};function eq(t,e){if(1&t&&(Qo(0,"mat-list-item",2),Qo(1,"a",3),Na(2),Xo(),Qo(3,"p",4),Na(4),Xo(),Xo()),2&t){const t=e.$implicit;dr(1),qo("routerLink",pc(3,tq,t.id)),dr(1),Va(t.title),dr(2),Va(t.description)}}let iq=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-favorite-resources"]],inputs:{favoriteResources:"favoriteResources"},decls:5,vars:1,consts:[["class","pad-2",4,"ngFor","ngForOf"],["mat-flat-button","","type","button","color","primary","routerLink","/search"],[1,"pad-2"],["mat-line","",3,"routerLink"],["mat-line",""]],template:function(t,e){1&t&&(jo(0,eq,5,5,"mat-list-item",0),Qo(1,"p"),Na(2,"To add or remove resources, click on the star button found on the resource pages or on search results"),Xo(),Qo(3,"button",1),Na(4,"Search Resources"),Xo()),2&t&&qo("ngForOf",e.favoriteResources)},directives:[Kd,TA,cG,bP,uG,Ex],styles:[""]}),t})();function nq(t,e){if(1&t){const t=ea();Qo(0,"mat-tree-node",9),Qo(1,"li",10),Ko(2,"button",11),Qo(3,"mat-checkbox",12),ra("change",function(){Be(t);const i=e.$implicit;return ua().toggleNode(i)}),Na(4),Xo(),Xo(),Xo()}if(2&t){const t=e.$implicit,i=ua();dr(3),qo("checked",i.checklistSelection.isSelected(t)),dr(1),Va(t.name)}}function sq(t,e){if(1&t&&(Qo(0,"span",18),Na(1),Xo()),2&t){const t=ua().$implicit;ma("matBadge",ua().numSelectedDescendants(t)),dr(1),Va(t.name)}}function rq(t,e){if(1&t&&(Qo(0,"span"),Na(1),Xo()),2&t){const t=ua().$implicit;dr(1),Va(t.name)}}function oq(t,e){if(1&t){const t=ea();Qo(0,"mat-nested-tree-node"),Qo(1,"li"),Qo(2,"div",10),Qo(3,"button",13),Qo(4,"mat-icon",14),Na(5),Xo(),Xo(),Qo(6,"mat-checkbox",12),ra("change",function(){Be(t);const i=e.$implicit;return ua().toggleNode(i)}),jo(7,sq,2,2,"span",15),jo(8,rq,2,1,"span",16),Xo(),Xo(),Qo(9,"ul"),ta(10,17),Xo(),Xo(),Xo()}if(2&t){const t=e.$implicit,i=ua();dr(3),zo("aria-label","toggle "+t.name),dr(2),Ba(" ",i.treeControl.isExpanded(t)?"expand_more":"chevron_right"," "),dr(1),qo("checked",i.checklistSelection.isSelected(t)),dr(1),qo("ngIf",i.numSelectedDescendants(t)),dr(1),qo("ngIf",!i.numSelectedDescendants(t)),dr(1),Sa("tree-select-invisible",!i.treeControl.isExpanded(t))}}function aq(t,e){if(1&t&&(Qo(0,"mat-option",19),Na(1),Xo()),2&t){const t=e.$implicit;qo("value",t.value),dr(1),Va(t.label)}}function lq(t,e){if(1&t&&(Qo(0,"mat-option",19),Na(1),Xo()),2&t){const t=e.$implicit;qo("value",t.value),dr(1),Va(t.label)}}function cq(t,e){if(1&t&&(Qo(0,"mat-option",19),Na(1),Xo()),2&t){const t=e.$implicit;qo("value",t.value),dr(1),Va(t.label)}}let uq=(()=>{class t{constructor(t,e,i){this.api=t,this.dialogRef=e,this.data=i,this.ageLabels=EU.labels,this.languageLabels=TU.labels,this.covid19Labels=PU.labels,this.ageOptions=this.getOptions(this.ageLabels),this.languageOptions=this.getOptions(this.languageLabels),this.covid19Options=this.getOptions(this.covid19Labels),this.nodes={},this.checklistSelection=new mS(!0),this.hasNestedChild=(t,e)=>e.children&&e.children.length>0,this.treeControl=new vL(t=>Sp(t.children)),this.dataSource=new $L}ngOnInit(){this.api.getCategoryTree().subscribe(t=>{this.dataSource.data=t,this.updateTopicSelection()})}getOptions(t){const e=[];for(const i in t)t.hasOwnProperty(i)&&e.push({value:i,label:t[i]});return e}updateTopicSelection(){this.data.topics&&this.data.topics.forEach(t=>{const e=this.findNode(t.id);e&&this.toggleNode(e),this._updateModelCategories()})}findNode(t){const e=[];return this.dataSource.data.forEach(t=>{this.treeControl.getDescendants(t).forEach(t=>e.push(t)),e.push(t)}),e.find(e=>e.id===t)}toggleNode(t){this.checklistSelection.toggle(t),this._updateModelCategories()}numSelectedDescendants(t){return this.treeControl.getDescendants(t).filter(t=>this.checklistSelection.isSelected(t)).length}_updateModelCategories(){this.data.topics=[],this.checklistSelection.selected.forEach(t=>this.data.topics.push(t))}onNoClick(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(NO),$o(BO))},t.\u0275cmp=Xt({type:t,selectors:[["app-favorite-topics-dialog"]],decls:29,vars:10,consts:[["mat-dialog-title",""],[1,"tree-select",3,"dataSource","treeControl"],["matTreeNodeToggle","",4,"matTreeNodeDef"],[4,"matTreeNodeDef","matTreeNodeDefWhen"],["multiple","",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","",3,"click"],["mat-flat-button","","color","primary","cdkFocusInitial","",3,"mat-dialog-close"],["matTreeNodeToggle",""],[1,"mat-tree-node"],["disabled","","mat-icon-button",""],[3,"checked","change"],["mat-icon-button","","matTreeNodeToggle","",1,"toggle-node-button"],[1,"mat-icon-rtl-mirror"],["matBadgeColor","primary","matBadgeOverlap","false",3,"matBadge",4,"ngIf"],[4,"ngIf"],["matTreeNodeOutlet",""],["matBadgeColor","primary","matBadgeOverlap","false",3,"matBadge"],[3,"value"]],template:function(t,e){1&t&&(Qo(0,"h1",0),Na(1,"Manage My Topics"),Xo(),Qo(2,"p"),Na(3,"Select topics to add them to your favorites. Deselect topics to remove them from your favorites. Click Save to keep your changes or Cancel to discard all changes."),Xo(),Qo(4,"mat-label"),Na(5,"Topics:"),Xo(),Qo(6,"mat-tree",1),jo(7,nq,5,2,"mat-tree-node",2),jo(8,oq,11,7,"mat-nested-tree-node",3),Xo(),Qo(9,"mat-form-field"),Qo(10,"mat-label"),Na(11,"Ages:"),Xo(),Qo(12,"mat-select",4),ra("valueChange",function(t){return e.data.ages=t}),jo(13,aq,2,2,"mat-option",5),Xo(),Xo(),Qo(14,"mat-form-field"),Qo(15,"mat-label"),Na(16,"Languages:"),Xo(),Qo(17,"mat-select",4),ra("valueChange",function(t){return e.data.languages=t}),jo(18,lq,2,2,"mat-option",5),Xo(),Xo(),Qo(19,"mat-form-field"),Qo(20,"mat-label"),Na(21,"Covid19 Topics:"),Xo(),Qo(22,"mat-select",4),ra("valueChange",function(t){return e.data.covid19_categories=t}),jo(23,cq,2,2,"mat-option",5),Xo(),Xo(),Qo(24,"div",6),Qo(25,"button",7),ra("click",function(){return e.onNoClick()}),Na(26,"Cancel"),Xo(),Qo(27,"button",8),Na(28,"Save"),Xo(),Xo()),2&t&&(dr(6),qo("dataSource",e.dataSource)("treeControl",e.treeControl),dr(2),qo("matTreeNodeDefWhen",e.hasNestedChild),dr(4),qo("value",e.data.ages),dr(1),qo("ngForOf",e.ageOptions),dr(4),qo("value",e.data.languages),dr(1),qo("ngForOf",e.languageOptions),dr(4),qo("value",e.data.covid19_categories),dr(1),qo("ngForOf",e.covid19Options),dr(4),qo("mat-dialog-close",e.data))},directives:[qO,Nk,zL,LL,Yk,rD,Kd,QO,TA,$O,RL,UL,hO,NL,JT,Jd,HL,wA,Jx],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}.tree-select-invisible[_ngcontent-%COMP%]{display:none}.tree-select[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .tree-select[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;margin-left:1rem;list-style-type:none}.tree-select[_ngcontent-%COMP%] li[_ngcontent-%COMP%] button.toggle-node-button[_ngcontent-%COMP%], .tree-select[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] button.toggle-node-button[_ngcontent-%COMP%]{outline:none!important}"]}),t})();const dq=function(){return["/search"]},hq=function(t){return{category:t}};function pq(t,e){if(1&t&&(Qo(0,"mat-chip",6),Na(1),Xo()),2&t){const t=e.$implicit;qo("routerLink",hc(3,dq))("queryParams",pc(4,hq,t.id)),dr(1),Va(t.name)}}function mq(t,e){if(1&t&&(Qo(0,"div"),Qo(1,"mat-card-title"),Na(2,"Favorite Topics"),Xo(),Qo(3,"mat-chip-list"),jo(4,pq,2,6,"mat-chip",5),Xo(),Xo()),2&t){const t=ua();dr(4),qo("ngForOf",t.favoriteTopics)}}const fq=function(t){return{ages:t}};function gq(t,e){if(1&t&&(Qo(0,"mat-chip",6),Na(1),Xo()),2&t){const t=e.$implicit,i=ua(2);qo("routerLink",hc(3,dq))("queryParams",pc(4,fq,t)),dr(1),Va(i.ageLabels[t])}}function _q(t,e){if(1&t&&(Qo(0,"div",7),Qo(1,"mat-card-title"),Na(2,"Favorite Age Ranges"),Xo(),Qo(3,"mat-chip-list"),jo(4,gq,2,6,"mat-chip",5),Xo(),Xo()),2&t){const t=ua();dr(4),qo("ngForOf",t.favoriteAges)}}const bq=function(t){return{languages:t}};function yq(t,e){if(1&t&&(Qo(0,"mat-chip",6),Na(1),Xo()),2&t){const t=e.$implicit,i=ua(2);qo("routerLink",hc(3,dq))("queryParams",pc(4,bq,t)),dr(1),Va(i.languageLabels[t])}}function vq(t,e){if(1&t&&(Qo(0,"div",8),Qo(1,"mat-card-title"),Na(2,"Favorite Languages"),Xo(),Qo(3,"mat-chip-list"),jo(4,yq,2,6,"mat-chip",5),Xo(),Xo()),2&t){const t=ua();dr(4),qo("ngForOf",t.favoriteLanguages)}}const wq=function(t){return["/covid19-resources/",t]};function Cq(t,e){if(1&t&&(Qo(0,"mat-chip",11),Na(1),Xo()),2&t){const t=e.$implicit,i=ua(2);qo("routerLink",pc(4,wq,pc(2,hq,t))),dr(1),Va(i.covid19Labels[t].split(": ")[0])}}function xq(t,e){if(1&t&&(Qo(0,"div",9),Qo(1,"mat-card-title"),Na(2,"COVID-19 Topics"),Xo(),Qo(3,"mat-chip-list"),jo(4,Cq,2,6,"mat-chip",10),Xo(),Xo()),2&t){const t=ua();dr(4),qo("ngForOf",t.favoriteCovid19Topics)}}let Sq=(()=>{class t{constructor(t,e){this.api=t,this.dialog=e,this.favoriteTopics=[],this.favoriteAges=[],this.favoriteLanguages=[],this.favoriteCovid19Topics=[],this.ageLabels=EU.labels,this.languageLabels=TU.labels,this.covid19Labels=PU.labels}ngOnInit(){this.loadFavorites()}loadFavorites(){this.api.getFavoritesByUserAndType(this.currentUser,"category").subscribe(t=>{this.favoriteTopics=t.map(t=>t.category)}),this.api.getFavoritesByUserAndType(this.currentUser,"age_range").subscribe(t=>{this.favoriteAges=t.map(t=>t.age_range)}),this.api.getFavoritesByUserAndType(this.currentUser,"language").subscribe(t=>{this.favoriteLanguages=t.map(t=>t.language)}),this.api.getFavoritesByUserAndType(this.currentUser,"covid19_category").subscribe(t=>{this.favoriteCovid19Topics=t.map(t=>t.covid19_category)})}openFavoriteTopicsDialog(){this.dialog.open(uq,{maxWidth:"100vw",maxHeight:"100vh",data:{user:this.currentUser,topics:this.favoriteTopics,ages:this.favoriteAges,languages:this.favoriteLanguages,covid19_categories:this.favoriteCovid19Topics}}).afterClosed().subscribe(t=>{if(t){const e=[];t.topics.forEach(t=>{e.push(new FU({user_id:this.currentUser.id,type:"category",category_id:t.id}))}),t.ages.forEach(t=>{e.push(new FU({user_id:this.currentUser.id,type:"age_range",age_range:t}))}),t.languages.forEach(t=>{e.push(new FU({user_id:this.currentUser.id,type:"language",language:t}))}),t.covid19_categories.forEach(t=>{e.push(new FU({user_id:this.currentUser.id,type:"covid19_category",covid19_category:t}))}),this.api.addUserFavorites(e).subscribe(),this.favoriteTopics=t.topics,this.favoriteAges=t.ages,this.favoriteLanguages=t.languages,this.favoriteCovid19Topics=t.covid19_categories}})}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(jO))},t.\u0275cmp=Xt({type:t,selectors:[["app-favorite-topics"]],inputs:{currentUser:"currentUser"},decls:10,vars:4,consts:[[4,"ngIf"],["id","ages","class","margin-top",4,"ngIf"],["id","languages","class","margin-top",4,"ngIf"],["id","covid19_categories","class","margin-top",4,"ngIf"],["mat-flat-button","",3,"click"],["color","primary","selected","",3,"routerLink","queryParams",4,"ngFor","ngForOf"],["color","primary","selected","",3,"routerLink","queryParams"],["id","ages",1,"margin-top"],["id","languages",1,"margin-top"],["id","covid19_categories",1,"margin-top"],["color","accent","selected","",3,"routerLink",4,"ngFor","ngForOf"],["color","accent","selected","",3,"routerLink"]],template:function(t,e){1&t&&(jo(0,mq,5,1,"div",0),jo(1,_q,5,1,"div",1),jo(2,vq,5,1,"div",2),jo(3,xq,5,1,"div",3),Qo(4,"p"),Na(5,"To add or remove topics, please click Manage My Topics below"),Xo(),Qo(6,"button",4),ra("click",function(){return e.openFavoriteTopicsDialog()}),Qo(7,"mat-icon"),Na(8,"grade"),Xo(),Na(9," Manage My Topics"),Xo()),2&t&&(qo("ngIf",e.favoriteTopics.length>0),dr(1),qo("ngIf",e.favoriteAges&&e.favoriteAges.length>0),dr(1),qo("ngIf",e.favoriteLanguages&&e.favoriteLanguages.length>0),dr(1),qo("ngIf",e.favoriteCovid19Topics&&e.favoriteCovid19Topics.length>0))},directives:[Jd,TA,JT,QA,OO,Kd,wO,cG],styles:["p[_ngcontent-%COMP%]{margin:1em}"]}),t})();function kq(t,e){1&t&&(Qo(0,"div"),Qo(1,"h1"),Na(2,"Please Log in or Create an Account"),Xo(),Qo(3,"p"),Na(4,"You are not currently logged in."),Xo(),Xo())}function Aq(t,e){if(1&t){const t=ea();Qo(0,"div"),Qo(1,"div",3),Qo(2,"div",4),Qo(3,"h2"),Na(4,"Welcome!"),Xo(),Qo(5,"p"),Na(6,"Thank you for creating an account on Autism DRIVE. We would like to learn a little more about you, so we can connect you with the best possible resources. To create your profile, please select all the items below that describe you. If appropriate, you will have additional opportunities to create profiles for your children or dependents after completing your own profile. Once we have this information we can connect you to current and future research studies, and together, find ways to improve the lives of people living with autism."),Xo(),Qo(7,"form",5),Ko(8,"formly-form",6),Qo(9,"button",7),ra("click",function(){return Be(t),ua(2).createMeta()}),Na(10,"Submit"),Xo(),Xo(),Xo(),Xo(),Xo()}if(2&t){const t=ua(2);dr(7),qo("formGroup",t.form),dr(1),qo("model",t.model)("fields",t.fields)("options",t.options)("form",t.form)}}function Oq(t,e){if(1&t&&(Qo(0,"div"),Ko(1,"app-profile-meta",8),Xo()),2&t){const t=ua(2);dr(1),qo("user",t.user)("meta",t.userMeta)}}function Eq(t,e){1&t&&(Qo(0,"p"),Na(1," You indicated that you are a professional working in Autism research and treatment. Once your profile is complete we will be able to notify you about important updates. "),Xo())}function Tq(t,e){1&t&&(Qo(0,"p"),Na(1," Once your profile is complete we will be able to notify you about important updates. "),Xo())}function Pq(t,e){1&t&&(Qo(0,"p"),Na(1," Once your profile is complete, you\u2019ll be able to enroll in any relevant currently-running studies. "),Xo())}function Dq(t,e){1&t&&(Qo(0,"p"),Na(1," Once your complete your profile and the profiles of your dependents, you\u2019ll be able to enroll them in any relevant currently-running studies. "),Xo())}function Mq(t,e){1&t&&Ko(0,"app-loading",11)}function Iq(t,e){if(1&t&&Ko(0,"app-participant-profile",14),2&t){const t=e.$implicit,i=ua(4);fa("id","dependent_participant_",t.id,""),qo("participant",t)("user",i.user)}}function Rq(t,e){1&t&&(Qo(0,"p"),Na(1,"In order to add a dependent you must complete your own profile first"),Xo())}function Lq(t,e){if(1&t){const t=ea();Qo(0,"button",26),ra("click",function(e){return Be(t),ua(5).enrollDependent(e)}),Na(1,"Create another profile "),Xo()}2&t&&qo("disabled",ua(5).selfPercentComplete<100)}function Fq(t,e){if(1&t&&(Qo(0,"div",24),jo(1,Rq,2,0,"p",2),jo(2,Lq,2,1,"button",25),Xo()),2&t){const t=ua(4);dr(1),qo("ngIf",t.selfPercentComplete<100),dr(1),qo("ngIf",t.user.getSelf())}}function Nq(t,e){if(1&t&&(Qo(0,"mat-list-item"),Qo(1,"a",29),Na(2),Xo(),Qo(3,"p",30),Na(4),Xo(),Xo()),2&t){const t=e.$implicit;dr(1),fa("href","/#/study/",t.study.id,"",ms),dr(1),Va(t.study.short_title),dr(2),Va(t.study.short_description)}}function Vq(t,e){if(1&t&&(Qo(0,"div",27),Qo(1,"mat-card-subtitle"),Na(2,"Studies about which you have inquired"),Xo(),jo(3,Nq,5,3,"mat-list-item",28),Xo()),2&t){const t=ua(4);dr(3),qo("ngForOf",t.studyInquiries)}}function Bq(t,e){if(1&t&&(Qo(0,"mat-list-item"),Qo(1,"a",29),Na(2),Xo(),Qo(3,"p",30),Na(4),Xo(),Xo()),2&t){const t=e.$implicit;dr(1),fa("href","/#/study/",t.id,"",ms),dr(1),Va(t.short_title),dr(2),Va(t.short_description)}}function Hq(t,e){if(1&t&&(Qo(0,"div",31),Qo(1,"mat-card-subtitle"),Na(2,"All currently-enrolling studies"),Xo(),jo(3,Bq,5,3,"mat-list-item",28),Xo()),2&t){const t=ua(4);dr(3),qo("ngForOf",t.currentStudies)}}function zq(t,e){if(1&t&&(Qo(0,"div",12),Qo(1,"div",12),Qo(2,"div",13),Ko(3,"app-participant-profile",14),jo(4,Iq,1,3,"app-participant-profile",15),Xo(),jo(5,Fq,3,2,"div",16),Xo(),Qo(6,"div"),Qo(7,"mat-card"),Qo(8,"mat-tab-group"),Qo(9,"mat-tab",17),Qo(10,"mat-card-title"),Na(11,"Research Studies"),Xo(),Qo(12,"mat-card-content"),Qo(13,"mat-list"),jo(14,Vq,4,1,"div",18),jo(15,Hq,4,1,"div",19),Xo(),Xo(),Xo(),Qo(16,"mat-tab",20),Ko(17,"app-favorite-resources",21),Xo(),Qo(18,"mat-tab",22),Ko(19,"app-favorite-topics",23),Xo(),Xo(),Xo(),Xo(),Xo()),2&t){const t=ua(3);dr(3),fa("id","self_participant_",t.self.id,""),qo("participant",t.self)("user",t.user),dr(1),qo("ngForOf",t.dependents),dr(1),qo("ngIf",t.user.getSelf().relationship!==t.relationships.SELF_INTERESTED),dr(9),qo("ngIf",t.studyInquiries&&t.studyInquiries.length>0),dr(1),qo("ngIf",t.currentStudies&&t.currentStudies.length>0),dr(2),qo("favoriteResources",t.favoriteResources),dr(2),qo("currentUser",t.user)}}function Gq(t,e){if(1&t&&(Qo(0,"div"),Qo(1,"h1"),Na(2,"Manage Your Profiles"),Xo(),Qo(3,"div"),jo(4,Eq,2,0,"p",2),jo(5,Tq,2,0,"p",2),jo(6,Pq,2,0,"p",2),jo(7,Dq,2,0,"p",2),jo(8,Mq,1,0,"app-loading",9),jo(9,zq,20,9,"div",10),Xo(),Xo()),2&t){const t=ua(2);dr(4),qo("ngIf",t.user.getSelf().relationship===t.relationships.SELF_PROFESSIONAL),dr(1),qo("ngIf",t.user.getSelf().relationship===t.relationships.SELF_INTERESTED),dr(1),qo("ngIf",t.user.getSelf().relationship===t.relationships.SELF_PARTICIPANT),dr(1),qo("ngIf",t.user.getSelf().relationship===t.relationships.SELF_GUARDIAN),dr(1),qo("ngIf",t.loading),dr(1),qo("ngIf",!t.loading)}}function Uq(t,e){if(1&t&&(Qo(0,"div",1),jo(1,kq,5,0,"div",2),jo(2,Aq,11,5,"div",2),jo(3,Oq,2,2,"div",2),jo(4,Gq,10,6,"div",2),Xo()),2&t){const t=ua();dr(1),qo("ngIf",t.getState()===t.possibleStates.NEEDS_USER),dr(1),qo("ngIf",t.getState()===t.possibleStates.NEEDS_META),dr(1),qo("ngIf",t.getState()===t.possibleStates.NEEDS_PARTICIPANT),dr(1),qo("ngIf",t.getState()===t.possibleStates.HAS_PARTICIPANT)}}var jq=function(t){return t.NEEDS_USER="NEEDS_USER",t.NEEDS_META="NEEDS_META",t.NEEDS_PARTICIPANT="NEEDS_PARTICIPANT",t.HAS_PARTICIPANT="PARTICIPANT",t}({});let Wq=(()=>{class t{constructor(t,e,i,n){this.authenticationService=t,this.api=e,this.router=i,this.route=n,this.possibleStates=jq,this.forceMetaFormState=!1,this.relationships=LG,this.loading=!0,this.form=new cy({}),this.model=new NG({}),this.options={},this.fields=[{validators:{fieldMatch:{expression:t=>{const{self_participant:e,guardian:i,professional:n,interested:s}=t.value;return!!(e||i||n||s)},message:"Please select at least one option."}},wrappers:["group-validation"],fieldGroup:[{key:"self_participant",type:"checkbox",templateOptions:{label:"I am autistic/I have autism",indeterminate:!1,class:"self_participant"}},{key:"self_has_guardian",type:"radio",templateOptions:{label:"Do you have a legal guardian?",options:[{value:!0,label:"Yes",id:"1"},{value:!1,label:"No",id:"2"}]},expressionProperties:{"templateOptions.required":"model.self_participant"},hideExpression:"!model.self_participant"},{key:"guardian",type:"checkbox",className:"guardian",templateOptions:{label:"I am the parent/legal guardian of someone with autism",indeterminate:!1}},{key:"guardian_has_dependent",type:"radio",className:"guardian_has_dependent",templateOptions:{label:"Are you their legal guardian?",options:[{value:!0,label:"Yes",id:"3"},{value:!1,label:"No",id:"4"}]},expressionProperties:{"templateOptions.required":"model.guardian"},hideExpression:"!model.guardian"},{key:"professional",type:"checkbox",templateOptions:{label:"I am a professional who works with the autism community",indeterminate:!1}},{key:"interested",type:"checkbox",templateOptions:{label:"None of the above, but I am interested in autism research and resources",indeterminate:!1}}]}],this.route.queryParams.subscribe(t=>{console.log("Params",t),t.hasOwnProperty("meta")&&(this.forceMetaFormState=!0)}),this.authenticationService.currentUser.subscribe(t=>{this.user=t,console.log(t),this.self=t.getSelf(),this.dependents=t.getDependents(),this.api.getUserMeta(t.id).subscribe(t=>{console.log("UserMeta",t),this.userMeta=t,this.loading=!1},t=>{console.error(t),this.loading=!1})},t=>{console.error(t),this.user=null,this.loading=!1})}ngOnInit(){this.refreshParticipants(),this.api.getUserStudyInquiries(this.user.id).subscribe(t=>this.studyInquiries=t),this.api.getStudies().subscribe(t=>{this.currentStudies=t.filter(t=>"currently_enrolling"===t.status)}),this.favoriteResources=this.user.user_favorites.filter(t=>"resource"===t.type).map(t=>t.resource).sort(t=>t.id)}refreshParticipants(){this.user&&this.api.getUser(this.user.id).subscribe(t=>{const e=new VG(t);this.self=e.getSelf(),this.dependents=e.getDependents(),e.getSelf()&&this.api.getFlow(e.getSelf().getFlowName(),e.getSelf().id).subscribe(t=>{this.selfPercentComplete=t.percentComplete(),console.log("selfPercentComplete",this.selfPercentComplete)})})}getState(){return this.user?void 0===this.userMeta||this.forceMetaFormState?jq.NEEDS_META:void 0===this.user.getSelf()?jq.NEEDS_PARTICIPANT:jq.HAS_PARTICIPANT:jq.NEEDS_USER}enrollDependent(t){t.preventDefault(),this.router.navigate(["terms",LG.DEPENDENT])}createMeta(){this.form.valid&&(this.model.id=this.user.id,this.api.addUserMeta(this.model).subscribe(t=>{this.userMeta=t,this.forceMetaFormState=!1}))}}return t.\u0275fac=function(e){return new(e||t)($o(BG),$o(WG),$o(lG),$o(UH))},t.\u0275cmp=Xt({type:t,selectors:[["app-profile"]],decls:1,vars:1,consts:[["class","profile mat-typography",4,"ngIf"],[1,"profile","mat-typography"],[4,"ngIf"],["fxLayout","row","fxLayout.lt-lg","column","fxLayoutGap","2em",1,"meta-form"],["fxFlex","100%"],["id","meta-form",3,"formGroup"],[3,"model","fields","options","form"],["id","submit_meta","mat-flat-button","","type","submit","color","accent",3,"click"],[3,"user","meta"],["message","Loading...",4,"ngIf"],["fxLayout","column","fxLayoutGap","40px grid",4,"ngIf"],["message","Loading..."],["fxLayout","column","fxLayoutGap","40px grid"],["fxLayout","row wrap","fxLayoutGap","40px grid"],[3,"participant","user","id"],[3,"participant","user","id",4,"ngFor","ngForOf"],["fxFlex","60%",4,"ngIf"],["label","My Studies"],["id","study-inquiries",4,"ngIf"],["id","current-studies",4,"ngIf"],["label","My Resources"],[3,"favoriteResources"],["label","My Topics"],[3,"currentUser"],["fxFlex","60%"],["mat-flat-button","","color","primary","id","enroll_dependent",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","primary","id","enroll_dependent",3,"disabled","click"],["id","study-inquiries"],[4,"ngFor","ngForOf"],["mat-line","",3,"href"],["mat-line",""],["id","current-studies"]],template:function(t,e){1&t&&jo(0,Uq,5,4,"div",0),2&t&&qo("ngIf",e.user)},directives:[Jd,o_,p_,k_,_y,jb,ky,NF,TA,G$,Qj,J$,Kd,ZA,ZR,zR,QA,YA,fP,iq,Sq,XA,bP,Ex],styles:[".profile[_ngcontent-%COMP%]{margin:2%}mat-card-subtitle[_ngcontent-%COMP%]{font-weight:700;font-size:large}button[_ngcontent-%COMP%]{white-space:pre-wrap!important}.tiles[_ngcontent-%COMP%]{margin:4em 0;text-align:center}.meta-form[_ngcontent-%COMP%]{max-width:80%;margin:auto} .mat-checkbox-label{white-space:normal;margin-top:-1em} .mat-checkbox-layout{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:start;align-items:flex-start;-ms-flex-pack:start;justify-content:flex-start;vertical-align:top} .mat-checkbox-inner-container{margin-top:-.7em!important}"]}),t})();const $q=function(t){return t.replace(/([-_][a-z]|^[a-z])/gi,t=>t.toUpperCase().replace("-"," ").replace("_"," "))};class qq{constructor(t){this.api=t,this.stepSubject=new cp([]),this.countSubject=new cp(0),this.loadingSubject=new cp(!1)}connect(t){return this.stepSubject.asObservable()}disconnect(t){this.stepSubject.complete(),this.loadingSubject.complete(),this.countSubject.complete()}loadQuestionnaires(t){this.loadingSubject.next(!0),this.api.getQuestionnaireList(t).subscribe(t=>{this.stepSubject.next(t)})}}const Yq=function(t){return{selected:t}};function Qq(t,e){if(1&t){const t=ea();Qo(0,"span"),Qo(1,"button",6),ra("click",function(){Be(t);const i=e.$implicit;return ua(2).changeTable(i)}),Na(2),Xo(),Xo()}if(2&t){const t=e.$implicit,i=ua(2);dr(1),qo("ngClass",pc(2,Yq,i.selected_info==t)),dr(1),Ba(" ",t.display_name," ")}}function Xq(t,e){if(1&t){const t=ea();Qo(0,"div"),Qo(1,"h3"),Na(2,"Related Tables"),Xo(),Qo(3,"p"),Na(4,"This questionnaire contains some related tables that contain additional details. Use these buttons to change the view and look at sub-tables."),Xo(),Qo(5,"button",6),ra("click",function(){Be(t);const e=ua();return e.changeTable(e.questionnaire_info)}),Na(6),Xo(),jo(7,Qq,3,4,"span",3),Xo()}if(2&t){const t=ua();dr(5),qo("ngClass",pc(3,Yq,t.selected_info==t.questionnaire_info)),dr(1),Ba(" ",t.questionnaire_info.display_name," "),dr(1),qo("ngForOf",t.questionnaire_info.sub_tables)}}function Kq(t,e){if(1&t&&(Qo(0,"th",10),Na(1),Xo()),2&t){const t=ua().$implicit,e=ua();dr(1),Ba(" ",e.snakeToUpperCase(t.name)," ")}}function Zq(t,e){if(1&t&&(Qo(0,"td",11),Na(1),Xo()),2&t){const t=e.$implicit,i=ua().$implicit,n=ua();dr(1),Ba(" ",n.format_element(t,i),"")}}function Jq(t,e){if(1&t&&(Qo(0,"div"),Zo(1,7),jo(2,Kq,2,1,"th",8),jo(3,Zq,2,1,"td",9),Jo(),Xo()),2&t){const t=e.$implicit;dr(1),ma("matColumnDef",t.name)}}function tY(t,e){1&t&&Ko(0,"tr",12)}function eY(t,e){1&t&&Ko(0,"tr",13)}let iY=(()=>{class t{constructor(t){this.api=t,this.displayedColumns=[],this.columnNames=[]}get snakeToUpperCase(){return $q}ngOnChanges(){this.selected_info=this.questionnaire_info,this.changeTable(this.selected_info)}changeTable(t){this.selected_info=t,this.dataSource=new qq(this.api),this.dataSource.loadQuestionnaires(this.selected_info.table_name),this.load_columns()}load_columns(){this.displayedColumns=[],this.columnNames=[],this.api.getQuestionnaireListMeta(this.selected_info.table_name).subscribe(t=>{for(const e of t.fields)this.displayedColumns.includes(e.name)||this.displayedColumns.push({name:e.name,type:e.type}),this.columnNames.includes(e.name)||this.columnNames.push(e.name)})}format_element(t,e){return"DATETIME"===e.type?new Date(t[e.name]).toUTCString():t[e.name]}exportQ(t){this.api.exportQuestionnaire(t.table_name).subscribe(t=>{console.log("data",t);const e=t.headers.get("x-filename"),i=new Blob([t.body],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),n=URL.createObjectURL(i),s=document.createElement("a");s.href=n,s.download=e,window.document.body.appendChild(s),s.click(),window.document.body.removeChild(s),URL.revokeObjectURL(n)})}}return t.\u0275fac=function(e){return new(e||t)($o(WG))},t.\u0275cmp=Xt({type:t,selectors:[["app-questionnaire-data-table"]],inputs:{questionnaire_info:"questionnaire_info"},features:[me],decls:9,vars:7,consts:[["mat-flat-button","","color","accent",3,"click"],[4,"ngIf"],[3,"dataSource"],[4,"ngFor","ngForOf"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-flat-button","","color","accent",3,"ngClass","click"],[3,"matColumnDef"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(t,e){1&t&&(Qo(0,"h2"),Na(1),Xo(),Qo(2,"button",0),ra("click",function(){return e.exportQ(e.questionnaire_info)}),Na(3),Xo(),jo(4,Xq,8,5,"div",1),Qo(5,"mat-table",2),jo(6,Jq,4,1,"div",3),jo(7,tY,1,0,"tr",4),jo(8,eY,1,0,"tr",5),Xo()),2&t&&(dr(1),Va(e.questionnaire_info.display_name),dr(2),Ba(" Export ",e.questionnaire_info.display_name," Data\n"),dr(1),qo("ngIf",e.questionnaire_info.sub_tables.length>0),dr(1),qo("dataSource",e.dataSource),dr(1),qo("ngForOf",e.displayedColumns),dr(1),qo("matHeaderRowDef",e.columnNames),dr(1),qo("matRowDefColumns",e.columnNames))},directives:[TA,Jd,$I,Kd,sR,oR,Qd,Pg,ZI,XI,YI,tR,iR,lR,uR],styles:["td.mat-cell[_ngcontent-%COMP%], th.mat-header-cell[_ngcontent-%COMP%]{padding-right:1em}button[_ngcontent-%COMP%]{margin-bottom:2em;margin-left:2em}button.mat-flat-button.mat-accent.selected[_ngcontent-%COMP%]{background:#232d4b}"]}),t})();function nY(t,e){if(1&t){const t=ea();Qo(0,"mat-list",8),Qo(1,"mat-list-item"),Qo(2,"mat-icon",9),Na(3),Xo(),Na(4),Qo(5,"button",10),ra("click",function(){Be(t);const i=e.$implicit;return ua().selectQuestionnaire(i)}),Na(6),Xo(),Xo(),Xo()}if(2&t){const t=e.$implicit;dr(3),Va(t.getIcon()),dr(1),Ba(" (",t.size,") "),dr(1),qo("disabled",0==t.size),dr(1),Va(t.display_name)}}function sY(t,e){if(1&t&&(Qo(0,"mat-drawer-content",11),Ko(1,"app-questionnaire-data-table",12),Xo()),2&t){const t=ua();dr(1),qo("questionnaire_info",t.currentQuestionnaire)}}let rY=(()=>{class t{constructor(t,e,i){this.api=t,this.sidebarOpen=!0,this.mobileQuery=i.matchMedia("(max-width: 600px)"),this._mobileQueryListener=()=>e.detectChanges(),this.mobileQuery.addListener(this._mobileQueryListener),window.addEventListener("resize",this._mobileQueryListener)}get snakeToUpperCase(){return $q}ngOnInit(){this.api.getQuestionnaireInfoList().subscribe(t=>{this.questionnaire_info=t})}ngOnDestroy(){this.mobileQuery.removeListener(this._mobileQueryListener),window.removeEventListener("resize",this._mobileQueryListener)}selectQuestionnaire(t){return this.currentQuestionnaire=t,this.sidebarOpen=!1,this.currentQuestionnaire}exportAll(){console.log("clicking the button for export all"),this.api.exportQuestionnaire("all").subscribe(t=>{console.log("data",t);const e=t.headers.get("x-filename"),i=new Blob([t.body],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),n=URL.createObjectURL(i),s=document.createElement("a");s.href=n,s.download=e,window.document.body.appendChild(s),s.click(),window.document.body.removeChild(s),URL.revokeObjectURL(n)})}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(Vl),$o(_D))},t.\u0275cmp=Xt({type:t,selectors:[["app-questionnaire-data-view"]],decls:14,vars:4,consts:[[1,"mat-typography"],["fxLayout","row","fxLayoutAlign","auto center"],["mat-fab","","color","primary",3,"click"],["mat-flat-button","","color","accent",3,"click"],[3,"mode","opened","openedChange"],["sidenav",""],["class","data-list","dense","",4,"ngFor","ngForOf"],["class","pad-2",4,"ngIf"],["dense","",1,"data-list"],["matListIcon",""],["mat-button","",3,"disabled","click"],[1,"pad-2"],[3,"questionnaire_info"]],template:function(t,e){if(1&t){const t=ea();Qo(0,"div",0),Qo(1,"div"),Qo(2,"div",1),Qo(3,"h1"),Qo(4,"button",2),ra("click",function(){return Be(t),Wo(11).toggle()}),Qo(5,"mat-icon"),Na(6,"menu"),Xo(),Xo(),Xo(),Qo(7,"button",3),ra("click",function(){return e.exportAll()}),Na(8," Export All "),Xo(),Xo(),Qo(9,"mat-drawer-container"),Qo(10,"mat-drawer",4,5),ra("openedChange",function(t){return e.sidebarOpen=t}),jo(12,nY,7,4,"mat-list",6),Xo(),jo(13,sY,2,1,"mat-drawer-content",7),Xo(),Xo(),Xo()}2&t&&(dr(10),qo("mode","over")("opened",e.sidebarOpen),dr(2),qo("ngForOf",e.questionnaire_info),dr(1),qo("ngIf",e.currentQuestionnaire))},directives:[o_,Z_,TA,JT,NM,FM,Kd,Jd,fP,bP,_P,LM,iY],styles:["mat-drawer-container[_ngcontent-%COMP%]{min-height:100vh}mat-drawer-container[_ngcontent-%COMP%], mat-drawer-content[_ngcontent-%COMP%]{background-color:#fff}.pad-2[_ngcontent-%COMP%]{padding:2em}button[_ngcontent-%COMP%]{margin:2em}"]}),t})();function oY(t,e){if(1&t&&(Qo(0,"div",16),Na(1),Xo()),2&t){const t=ua(2);dr(1),Va(t.errorMessage)}}function aY(t,e){if(1&t){const t=ea();Qo(0,"footer",17),Qo(1,"button",18),Na(2,"Next"),Xo(),Qo(3,"button",19),ra("click",function(e){return Be(t),ua(2).goHome(e)}),Na(4,"Cancel"),Xo(),Xo()}}function lY(t,e){1&t&&(Qo(0,"footer"),Ko(1,"app-loading"),Xo())}function cY(t,e){if(1&t&&(Qo(0,"formly-form",12),jo(1,oY,2,1,"div",13),jo(2,aY,5,0,"footer",14),jo(3,lY,2,0,"footer",15),Xo()),2&t){const t=ua();qo("form",t.form)("fields",t.fields)("model",t.model),dr(1),qo("ngIf",t.errorMessage),dr(1),qo("ngIf","form"===t.registerStateValue),dr(1),qo("ngIf","submitting"===t.registerStateValue)}}function uY(t,e){if(1&t){const t=ea();Qo(0,"footer",20),Qo(1,"h2"),Na(2,"Account Created!"),Xo(),Qo(3,"p"),Na(4,"Please check your email to complete the signin process."),Xo(),Qo(5,"button",21),ra("click",function(e){return Be(t),ua().goHome(e)}),Na(6," Continue to browse "),Xo(),Xo()}}let dY=(()=>{class t{constructor(t,e,i,n,s,r){this.api=t,this.changeDetectorRef=e,this.router=i,this.route=n,this.googleAnalytics=s,this.meta=r,this.errorMessage="",this.form=new cy({}),this.model={},this.fields=[{key:"email",type:"input",templateOptions:{type:"email",label:"Email Address:",placeholder:"Enter email",required:!0},validators:{validation:["email"]}}],this._stateSubject=new cp("form"),this.registerState=this._stateSubject.asObservable(),this.user=new VG({id:null,email:this.model.email,role:"User"}),this.meta.updateTag({property:"og:image",content:location.origin+"/assets/join/hero.jpg"},"property='og:image'"),this.meta.updateTag({property:"og:image:secure_url",content:location.origin+"/assets/join/hero.jpg"},"property='og:image:secure_url'"),this.meta.updateTag({name:"twitter:image",content:location.origin+"/assets/join/hero.jpg"},"name='twitter:image'")}ngOnInit(){}submit(){localStorage.removeItem("token_url"),localStorage.setItem("returnUrl",this.route.snapshot.queryParams.returnUrl),this.form.valid&&(this._stateSubject.next("submitting"),this.registerState=this._stateSubject.asObservable(),this.errorMessage="",this.user.email=this.model.email,this.api.addUser(this.user).subscribe(t=>{this.user=t,t.hasOwnProperty("token_url")&&localStorage.setItem("token_url",t.token_url),this.googleAnalytics.accountEvent("register"),this._stateSubject.next("wait_for_email"),this.registerState=this._stateSubject.asObservable(),this.changeDetectorRef.detectChanges()},t=>{this._stateSubject.next("form"),this.registerState=this._stateSubject.asObservable(),this.errorMessage=t,this.changeDetectorRef.detectChanges()}))}goHome(t){t.preventDefault(),this.router.navigate(["home"])}get registerStateValue(){return this._stateSubject.value}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(Vl),$o(lG),$o(UH),$o(IG),$o(ip))},t.\u0275cmp=Xt({type:t,selectors:[["app-register"]],decls:33,vars:3,consts:[["id","hero",1,"gradient-overlay","container","with-escaping-tiles"],["fxLayoutAlign","center","id","TopOfJoin",1,"row","escaping-tiles-2x"],[1,"form","border-box"],[3,"formGroup","ngSubmit"],[3,"form","fields","model",4,"ngIf"],["id","confirmation_message",4,"ngIf"],[1,"register-container"],["fxLayout","column","fxLayoutGap","10px","fxFlex.gt-md","80%",1,"row","mat-typography"],[1,"bold-title"],["href","/#/studies"],["href","/#/uva-education"],["href","/#/search"],[3,"form","fields","model"],["id","error_message","class","display mat-error",4,"ngIf"],["fxLayout","column","fxLayoutGap","2%","fxLayoutAlign","center",4,"ngIf"],[4,"ngIf"],["id","error_message",1,"display","mat-error"],["fxLayout","column","fxLayoutGap","2%","fxLayoutAlign","center"],["mat-flat-button","","type","submit","color","primary","id","submit"],["mat-flat-button","","color","accent","id","cancel",3,"click"],["id","confirmation_message"],["color","primary","mat-flat-button","","id","continue",3,"click"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"div",1),Qo(2,"div",2),Qo(3,"h1"),Na(4,"Join Autism DRIVE"),Xo(),Qo(5,"form",3),ra("ngSubmit",function(){return e.submit()}),jo(6,cY,4,6,"formly-form",4),jo(7,uY,7,0,"footer",5),Xo(),Xo(),Xo(),Xo(),Qo(8,"div",6),Qo(9,"div",7),Qo(10,"div"),Qo(11,"h1",8),Na(12,"The more people take part in autism research, the faster we can promote positive outcomes"),Xo(),Qo(13,"p"),Na(14,"We are seeking adults with autism, children with autism and their families, and professionals to join us! If you complete our short registration process, you can be connected with researchers about study opportunities that "),Qo(15,"i"),Na(16,"are relevant to you."),Xo(),Xo(),Xo(),Qo(17,"div"),Qo(18,"h2"),Na(19,"Many studies involve incentives like gift cards, testing reports, or access to interventions for free."),Xo(),Qo(20,"p"),Na(21,"Visit our "),Qo(22,"a",9),Na(23,"studies page"),Xo(),Na(24," and contact the study teams to learn more about what each study offers. Creating an account also gives you free access to content of our "),Qo(25,"a",10),Na(26,"education"),Xo(),Na(27," page and the opportunity to save your favorite resources from our "),Qo(28,"a",11),Na(29,"statewide resources directory."),Xo(),Xo(),Xo(),Qo(30,"div"),Qo(31,"h2"),Na(32,"We can\u2019t make a difference without you. Let\u2019s transform outcomes. Together."),Xo(),Xo(),Xo(),Xo()),2&t&&(dr(5),qo("formGroup",e.form),dr(1),qo("ngIf","wait_for_email"!==e.registerStateValue),dr(1),qo("ngIf","wait_for_email"===e.registerStateValue))},directives:[Z_,_y,jb,ky,Jd,o_,p_,k_,NF,TA,Qj],styles:["#hero[_ngcontent-%COMP%]{background-image:url(/assets/join/hero.jpg);background-position:0 18%;padding-top:8rem;padding-bottom:8rem;background-size:100% auto}@media (max-width:768px){#hero[_ngcontent-%COMP%]{background-position:0 0}}#hero[_ngcontent-%COMP%] .hero-content[_ngcontent-%COMP%]{display:grid}@media (min-width:768px){#hero[_ngcontent-%COMP%] .hero-content[_ngcontent-%COMP%]{grid-template-columns:2fr 1fr}}@media (min-width:992px){#hero[_ngcontent-%COMP%] .hero-content[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr}}@media (min-width:1200px){#hero[_ngcontent-%COMP%] .hero-content[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr}}#hero[_ngcontent-%COMP%] .form.border-box[_ngcontent-%COMP%]{max-width:100%;background-color:#fff;color:#000;padding:2em}#hero[_ngcontent-%COMP%] .form.border-box[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .bold-title[_ngcontent-%COMP%]{text-transform:uppercase}.bold-title[_ngcontent-%COMP%]{font-size:1.8em;font-weight:700}.register-container[_ngcontent-%COMP%]{margin:1em}"]}),t})();class hY extends MU{constructor(t){super(t),this._props=t;for(const e in this._props)this._props.hasOwnProperty(e)&&(this[e]=this._props[e])}}function pY(t,e){if(1&t){const t=ea();Qo(0,"mat-chip",5),ra("click",function(){Be(t);const i=e.$implicit;return ua(2).goFilter(["/search"],"related_topic",{queryParams:{category:i.category.id}})}),Na(1),Xo()}if(2&t){const t=e.$implicit;dr(1),Va(t.category.name)}}function mY(t,e){if(1&t&&(Qo(0,"div"),Qo(1,"mat-card-title"),Na(2,"Related Topics"),Xo(),Qo(3,"mat-chip-list"),jo(4,pY,2,1,"mat-chip",4),Xo(),Xo()),2&t){const t=ua();dr(4),qo("ngForOf",t.categories)}}function fY(t,e){if(1&t){const t=ea();Qo(0,"mat-chip",5),ra("click",function(){Be(t);const i=e.$implicit;return ua(2).goFilter(["/search"],"related_age",{queryParams:{ages:i}})}),Na(1),Xo()}if(2&t){const t=e.$implicit,i=ua(2);dr(1),Va(i.ageLabels[t])}}function gY(t,e){if(1&t&&(Qo(0,"div",6),Qo(1,"mat-card-title"),Na(2,"Related Age Ranges"),Xo(),Qo(3,"mat-chip-list"),jo(4,fY,2,1,"mat-chip",4),Xo(),Xo()),2&t){const t=ua();dr(4),qo("ngForOf",t.ages)}}function _Y(t,e){if(1&t){const t=ea();Qo(0,"mat-chip",5),ra("click",function(){Be(t);const i=e.$implicit;return ua(2).goFilter(["/search"],"related_language",{queryParams:{languages:i}})}),Na(1),Xo()}if(2&t){const t=e.$implicit,i=ua(2);dr(1),Va(i.languageLabels[t])}}function bY(t,e){if(1&t&&(Qo(0,"div",7),Qo(1,"mat-card-title"),Na(2,"Related Languages"),Xo(),Qo(3,"mat-chip-list"),jo(4,_Y,2,1,"mat-chip",4),Xo(),Xo()),2&t){const t=ua();dr(4),qo("ngForOf",t.languages)}}function yY(t,e){if(1&t){const t=ea();Qo(0,"mat-chip",10),ra("click",function(){Be(t);const i=e.$implicit;return ua(2).goFilter(["/covid19-resources/",{category:i}],"related_covid19_topic",{queryParams:{covid19_categories:i}})}),Na(1),Xo()}if(2&t){const t=e.$implicit,i=ua(2);dr(1),Va(i.covid19Labels[t].split(": ")[0])}}function vY(t,e){if(1&t&&(Qo(0,"div",8),Qo(1,"mat-card-title"),Na(2,"COVID-19 Topics"),Xo(),Qo(3,"mat-chip-list"),jo(4,yY,2,1,"mat-chip",9),Xo(),Xo()),2&t){const t=ua();dr(4),qo("ngForOf",t.covid19_categories)}}let wY=(()=>{class t{constructor(t,e){this.router=t,this.googleAnalytics=e,this.categories=[],this.ages=[],this.languages=[],this.covid19_categories=[],this.ageLabels=EU.labels,this.languageLabels=TU.labels,this.covid19Labels=PU.labels}ngOnInit(){}goFilter(t,e,i){this.googleAnalytics.relatedContentEvent(e,this.parentComponent),this.router.navigate(t,i)}}return t.\u0275fac=function(e){return new(e||t)($o(lG),$o(IG))},t.\u0275cmp=Xt({type:t,selectors:[["app-filter-chips"]],inputs:{categories:"categories",ages:"ages",languages:"languages",covid19_categories:"covid19_categories",parentComponent:"parentComponent"},decls:5,vars:4,consts:[[4,"ngIf"],["id","ages","class","margin-top",4,"ngIf"],["id","languages","class","margin-top",4,"ngIf"],["id","covid19_categories","class","margin-top",4,"ngIf"],["color","primary","selected","",3,"click",4,"ngFor","ngForOf"],["color","primary","selected","",3,"click"],["id","ages",1,"margin-top"],["id","languages",1,"margin-top"],["id","covid19_categories",1,"margin-top"],["color","accent","selected","",3,"click",4,"ngFor","ngForOf"],["color","accent","selected","",3,"click"]],template:function(t,e){1&t&&(Qo(0,"mat-card"),jo(1,mY,5,1,"div",0),jo(2,gY,5,1,"div",1),jo(3,bY,5,1,"div",2),jo(4,vY,5,1,"div",3),Xo()),2&t&&(dr(1),qo("ngIf",e.categories.length>0),dr(1),qo("ngIf",e.ages&&e.ages.length>0),dr(1),qo("ngIf",e.languages&&e.languages.length>0),dr(1),qo("ngIf",e.covid19_categories&&e.covid19_categories.length>0))},directives:[ZA,Jd,QA,OO,Kd,wO],styles:["mat-chip[_ngcontent-%COMP%]{cursor:pointer}.margin-top[_ngcontent-%COMP%]{margin-top:1em}"]}),t})();function CY(t,e){if(1&t){const t=ea();Qo(0,"div"),Qo(1,"button",1),ra("click",function(){return Be(t),ua().openEdit()}),Qo(2,"mat-icon"),Na(3,"edit"),Xo(),Xo(),Xo()}if(2&t){const t=ua();dr(1),ma("matTooltip",t.editLabel)}}let xY=(()=>{class t{constructor(t){this.router=t}ngOnInit(){}openEdit(){this.router.navigateByUrl(this.editLink)}}return t.\u0275fac=function(e){return new(e||t)($o(lG))},t.\u0275cmp=Xt({type:t,selectors:[["app-edit-button"]],inputs:{currentUser:"currentUser",editLabel:"editLabel",editLink:"editLink"},decls:1,vars:1,consts:[[4,"ngIf"],["mat-mini-fab","","color","accent","aria-label","Edit",3,"matTooltip","click"]],template:function(t,e){1&t&&jo(0,CY,4,1,"div",0),2&t&&qo("ngIf",e.currentUser&&e.currentUser.permissions.includes("edit_resource"))},directives:[Jd,TA,AD,JT],styles:[""]}),t})();function SY(t,e){if(1&t&&(Qo(0,"div",6),Na(1),Xo()),2&t){const t=ua(2);dr(1),Va(t.errorMessage)}}function kY(t,e){if(1&t&&(Qo(0,"footer",7),Qo(1,"button",8),Na(2,"Register"),Xo(),Qo(3,"button",9),Na(4,"Cancel"),Xo(),Xo()),2&t){const t=ua(2);dr(3),qo("mat-dialog-close",t.data.registered)}}function AY(t,e){1&t&&(Qo(0,"footer"),Ko(1,"app-loading"),Xo())}function OY(t,e){if(1&t&&(Qo(0,"formly-form",2),jo(1,SY,2,1,"div",3),jo(2,kY,5,1,"footer",4),jo(3,AY,2,0,"footer",5),Xo()),2&t){const t=ua();qo("form",t.form)("fields",t.fields)("model",t.model),dr(1),qo("ngIf",t.errorMessage),dr(1),qo("ngIf","form"===t.registerStateValue),dr(1),qo("ngIf","submitting"===t.registerStateValue)}}let EY=(()=>{class t{constructor(t,e,i,n,s,r,o){this.api=t,this.changeDetectorRef=e,this.route=i,this.googleAnalytics=n,this.authenticationService=s,this.dialogRef=r,this.data=o,this.errorMessage="",this.form=new cy({}),this.model={},this.fields=[{key:"first_name",type:"input",templateOptions:{label:"First Name:",required:!0}},{key:"last_name",type:"input",templateOptions:{label:"Last Name:",required:!0}},{key:"email",type:"input",templateOptions:{type:"email",label:"Email Address:",placeholder:"Enter email",required:!0},validators:{validation:["email"]}},{key:"emailConfirm",type:"input",templateOptions:{type:"email",label:"Confirm Email",placeholder:"Please re-enter your email",required:!0},validators:{validation:["emailConfirm"]}},{key:"zip_code",type:"input",templateOptions:{type:"number",label:"Zip Code:",max:99999,min:0,pattern:"\\d{5}",required:!0}},{key:"relationship_to_autism",type:"multicheckbox",templateOptions:{label:"Relationship to Autism:",description:"(select all that apply)",type:"array",options:[{value:"friend_colleague",label:"Friend/Colleague"},{value:"family_member",label:"Parent/Family Member"},{value:"self_advocate",label:"Individual With Autism"},{value:"professional",label:"Professional"},{value:"other",label:"Other"}],required:!0}},{key:"relationship_other",type:"input",templateOptions:{label:"How else are you related to Autism"},hideExpression:'!(model.relationship_to_autism && model.relationship_to_autism.includes("other"))'},{key:"marketing_channel",type:"multicheckbox",templateOptions:{label:"How did you find about the virtual event?:",description:"(select all that apply)",type:"array",options:[{value:"star_newsletter",label:"STAR e-newsletter"},{value:"facebook",label:"Facebook"},{value:"drive",label:"Autism DRIVE"},{value:"family_member",label:"Parent/Family Member"},{value:"friend_colleague",label:"Friend/Colleague"},{value:"other",label:"Other"}],required:!0}},{key:"marketing_other",type:"input",templateOptions:{label:"What other ways did you find out about this event"},hideExpression:'!(model.marketing_channel && model.marketing_channel.includes("other"))'},{key:"newsletter_consent",type:"checkbox",defaultValue:!0,templateOptions:{label:"Please sign me up for the STAR E-newsletter",description:"Send me notifications of workshops, information, events, and research opportunities offered by the UVA Supporting Transformative Autism Research Initiative and partnering organizations."}}],this._stateSubject=new cp("form"),this.registerState=this._stateSubject.asObservable(),this.authenticationService.currentUser.subscribe(t=>{t?(this.user=t,this.model.email=t.email,this.model.first_name=t.getSelf().identification.first_name,this.model.last_name=t.getSelf().identification.last_name,this.model.zip_code=t.getSelf().contact.zip):this.user=new VG({id:null,email:this.model.email,role:"User"})})}ngOnInit(){}submit(){localStorage.removeItem("token_url"),this.form.valid&&(this.model.event_id=this.data.event_id,null===this.user.id?(this._stateSubject.next("submitting"),this.registerState=this._stateSubject.asObservable(),this.errorMessage="",this.user.email=this.model.email,this.api.addUser(this.user).subscribe(t=>{this.user=t,this.model.user_id=this.user.id,this.api.submitRegistration(this.model).subscribe(),t.hasOwnProperty("token_url")&&localStorage.setItem("token_url",t.token_url),this.googleAnalytics.accountEvent("register"),this._stateSubject.next("wait_for_email"),this.registerState=this._stateSubject.asObservable(),this.changeDetectorRef.detectChanges(),this.data.registered=!0,this.dialogRef.close()},t=>{this._stateSubject.next("form"),this.registerState=this._stateSubject.asObservable(),this.errorMessage=t,this.changeDetectorRef.detectChanges()}),this.dialogRef.close()):(this.model.participant_id=this.user.getSelf().id,this.api.submitQuestionnaire("registration","registration_questionnaire",this.model).subscribe(()=>{this.googleAnalytics.stepCompleteEvent("registration_questionnaire"),console.log("submitting questionnaire",this.model),this.dialogRef.close()})))}get registerStateValue(){return this._stateSubject.value}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(Vl),$o(UH),$o(IG),$o(BG),$o(NO),$o(BO))},t.\u0275cmp=Xt({type:t,selectors:[["app-event-registration-form"]],decls:5,vars:3,consts:[[3,"formGroup","ngSubmit"],[3,"form","fields","model",4,"ngIf"],[3,"form","fields","model"],["id","error_message","class","display mat-error",4,"ngIf"],["fxLayout","column","fxLayoutGap","2%","fxLayoutAlign","center",4,"ngIf"],[4,"ngIf"],["id","error_message",1,"display","mat-error"],["fxLayout","column","fxLayoutGap","2%","fxLayoutAlign","center"],["mat-flat-button","","type","submit","color","primary","id","submit"],["mat-flat-button","","color","accent","id","cancel",3,"mat-dialog-close"]],template:function(t,e){1&t&&(Qo(0,"mat-dialog-content"),Qo(1,"h1"),Na(2),Xo(),Qo(3,"form",0),ra("ngSubmit",function(){return e.submit()}),jo(4,OY,4,6,"formly-form",1),Xo(),Xo()),2&t&&(dr(2),Va(e.data.title),dr(1),qo("formGroup",e.form),dr(1),qo("ngIf","wait_for_email"!==e.registerStateValue))},directives:[YO,_y,jb,ky,Jd,NF,o_,p_,Z_,TA,$O,Qj],styles:[""]}),t})();function TY(t,e){if(1&t){const t=ea();Qo(0,"div",3),Qo(1,"p"),Na(2,"Joining Autism DRIVE is the first step toward participating in our events. Click below to join and register."),Xo(),Qo(3,"button",4),ra("click",function(){return Be(t),ua().openDialog()}),Na(4,"Join And Register"),Xo(),Qo(5,"p"),Na(6,"Already a user? Sign in to see the link to register."),Xo(),Qo(7,"button",5),ra("click",function(){return Be(t),ua().goLogin()}),Na(8,"Sign In"),Xo(),Xo()}}function PY(t,e){if(1&t){const t=ea();Qo(0,"div"),Qo(1,"button",6),ra("click",function(){return Be(t),ua().openDialog()}),Na(2,"Register Now"),Xo(),Xo()}}let DY=(()=>{class t{constructor(t,e){this.router=t,this.dialog=e,this.hasCurrentUser=!1}ngOnInit(){}goLogin(){this.router.navigate(["/login"],{queryParams:{returnUrl:this.router.url}})}openDialog(){this.dialog.open(EY,{width:`${window.innerWidth}px`,data:{registered:!1,title:"Register for "+this.resource.title,event_id:this.resource.id}}).afterClosed().subscribe(t=>{t&&(this.hasCurrentUser=!0)})}}return t.\u0275fac=function(e){return new(e||t)($o(lG),$o(jO))},t.\u0275cmp=Xt({type:t,selectors:[["app-event-registration"]],inputs:{resource:"resource",hasCurrentUser:"hasCurrentUser"},decls:5,vars:2,consts:[["fxLayout","column","fxLayoutAlign","center center",1,"event-container"],["fxLayout","column","fxLayoutGap","20px",4,"ngIf"],[4,"ngIf"],["fxLayout","column","fxLayoutGap","20px"],["mat-flat-button","","color","primary",3,"click"],["mat-flat-button","","color","accent",3,"click"],["mat-flat-button","","color","accent","id","register-button",1,"btn-xl",3,"click"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"h2"),Na(2,"Interested in Participating?"),Xo(),jo(3,TY,9,0,"div",1),jo(4,PY,3,0,"div",2),Xo()),2&t&&(dr(3),qo("ngIf",!e.hasCurrentUser),dr(1),qo("ngIf",e.hasCurrentUser))},directives:[o_,Z_,Jd,p_,TA],styles:[".event-container[_ngcontent-%COMP%]{margin:1em}"]}),t})();function MY(t,e){if(1&t&&(Qo(0,"p"),Na(1),Xo()),2&t){const t=ua().$implicit;dr(1),Va(t)}}function IY(t,e){if(1&t&&(Zo(0),jo(1,MY,2,1,"p",6),Jo()),2&t){const t=e.$implicit,i=ua(3);dr(1),qo("ngIf",i.isNotEmpty(t))}}function RY(t,e){if(1&t&&(Qo(0,"div",4),jo(1,IY,2,1,"ng-container",5),Xo()),2&t){const t=ua(2);dr(1),qo("ngForOf",t.contactItem.details)}}function LY(t,e){if(1&t&&(Qo(0,"p"),Na(1),Xo()),2&t){const t=ua().$implicit;dr(1),Va(t)}}function FY(t,e){if(1&t&&(Qo(0,"address"),jo(1,LY,2,1,"p",6),Xo()),2&t){const t=e.$implicit,i=ua(3);dr(1),qo("ngIf",i.isNotEmpty(t))}}function NY(t,e){if(1&t&&(Qo(0,"div",4),jo(1,FY,2,1,"address",5),Xo()),2&t){const t=ua(2);dr(1),qo("ngForOf",t.contactItem.details)}}function VY(t,e){if(1&t&&(Qo(0,"a",8),Na(1),Xo()),2&t){const t=ua().$implicit;fa("href","tel://",t,"",ms),dr(1),Va(t)}}function BY(t,e){if(1&t&&(Zo(0),jo(1,VY,2,2,"a",7),Jo()),2&t){const t=e.$implicit,i=ua(3);dr(1),qo("ngIf",i.isNotEmpty(t))}}function HY(t,e){if(1&t&&(Qo(0,"div",4),jo(1,BY,2,1,"ng-container",5),Xo()),2&t){const t=ua(2);dr(1),qo("ngForOf",t.contactItem.details)}}function zY(t,e){if(1&t&&(Qo(0,"p"),Na(1),Xo()),2&t){const t=ua().$implicit;dr(1),Ba("Extension: ",t,"")}}function GY(t,e){if(1&t&&(Zo(0),jo(1,zY,2,1,"p",6),Jo()),2&t){const t=e.$implicit,i=ua(3);dr(1),qo("ngIf",i.isNotEmpty(t))}}function UY(t,e){if(1&t&&(Qo(0,"div",4),jo(1,GY,2,1,"ng-container",5),Xo()),2&t){const t=ua(2);dr(1),qo("ngForOf",t.contactItem.details)}}function jY(t,e){if(1&t&&(Qo(0,"a",10),Na(1),Xo()),2&t){const t=ua().$implicit;ma("href",t,ms),dr(1),Va(t)}}function WY(t,e){if(1&t&&(Zo(0),jo(1,jY,2,2,"a",9),Jo()),2&t){const t=e.$implicit,i=ua(3);dr(1),qo("ngIf",i.isNotEmpty(t))}}function $Y(t,e){if(1&t&&(Qo(0,"div",4),jo(1,WY,2,1,"ng-container",5),Xo()),2&t){const t=ua(2);dr(1),qo("ngForOf",t.contactItem.details)}}function qY(t,e){if(1&t&&(Qo(0,"div",1),Qo(1,"div",2),Qo(2,"mat-icon"),Na(3),Xo(),Xo(),jo(4,RY,2,1,"div",3),jo(5,NY,2,1,"div",3),jo(6,HY,2,1,"div",3),jo(7,UY,2,1,"div",3),jo(8,$Y,2,1,"div",3),Xo()),2&t){const t=ua();dr(3),Va(t.contactItem.icon),dr(1),qo("ngIf",!t.contactItem.type||"p"===t.contactItem.type),dr(1),qo("ngIf",t.contactItem.type&&"address"===t.contactItem.type),dr(1),qo("ngIf",t.contactItem.type&&"phone"===t.contactItem.type),dr(1),qo("ngIf",t.contactItem.type&&"phone_extension"===t.contactItem.type),dr(1),qo("ngIf",t.contactItem.type&&"link"===t.contactItem.type)}}let YY=(()=>{class t{constructor(){}ngOnInit(){}isNotEmpty(t){return""!==(t||"").replace(/\s/g,"")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-contact-item"]],inputs:{contactItem:"contactItem"},decls:1,vars:1,consts:[["class","contact-item","fxLayout","row","fxLayoutGap","8px",4,"ngIf"],["fxLayout","row","fxLayoutGap","8px",1,"contact-item"],[1,"contact-item-icon"],["class","contact-item-detail",4,"ngIf"],[1,"contact-item-detail"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"href",4,"ngIf"],[3,"href"],["target","_blank",3,"href",4,"ngIf"],["target","_blank",3,"href"]],template:function(t,e){1&t&&jo(0,qY,9,6,"div",0),2&t&&qo("ngIf",e.contactItem&&e.contactItem.condition)},directives:[Jd,o_,p_,JT,Kd],styles:[".contact-item[_ngcontent-%COMP%]{margin-bottom:1em}.contact-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-top:-.1em}.contact-item-detail[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;line-height:1.2}"]}),t})(),QY=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}ngOnInit(){}onNoClick(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)($o(NO),$o(BO))},t.\u0275cmp=Xt({type:t,selectors:[["app-admin-note-form"]],decls:10,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["matInput","",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","",3,"click"],["mat-flat-button","","color","primary","cdkFocusInitial","",3,"mat-dialog-close"]],template:function(t,e){1&t&&(Qo(0,"h1",0),Na(1,"Please add a note"),Xo(),Qo(2,"div",1),Qo(3,"mat-form-field"),Qo(4,"textarea",2),ra("ngModelChange",function(t){return e.data.adminNote.note=t}),Xo(),Xo(),Xo(),Qo(5,"div",3),Qo(6,"button",4),ra("click",function(){return e.onNoClick()}),Na(7,"Cancel"),Xo(),Qo(8,"button",5),Na(9,"Save"),Xo(),Xo()),2&t&&(dr(4),qo("ngModel",e.data.adminNote.note),dr(4),qo("mat-dialog-close",e.data.adminNote.note))},directives:[qO,YO,Yk,cE,_b,Ub,gy,QO,TA,$O],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t})();function XY(t,e){if(1&t){const t=ea();Qo(0,"div",5),Qo(1,"div",6),Qo(2,"p",7),Qo(3,"a",8),Qo(4,"b"),Na(5),Xo(),Xo(),Qo(6,"i"),Na(7),vc(8,"date"),Xo(),Xo(),Qo(9,"p",7),Na(10),Xo(),Xo(),Qo(11,"div",9),Qo(12,"button",10),ra("click",function(){Be(t);const i=e.$implicit;return ua(3).openDialog(i)}),Qo(13,"mat-icon"),Na(14,"edit"),Xo(),Xo(),Qo(15,"button",11),ra("click",function(){Be(t);const i=e.$implicit;return ua(3).deleteNote(i)}),Qo(16,"mat-icon"),Na(17,"close"),Xo(),Xo(),Xo(),Xo()}if(2&t){const t=e.$implicit;dr(3),qo("href","/#/admin/user/"+t.user_id,ms),dr(2),Ha("User #",t.user_id," - ",t.user.email,""),dr(2),Ba(" - last updated: ",Cc(8,5,t.last_updated,"short"),""),dr(3),Va(t.note)}}function KY(t,e){if(1&t&&(Qo(0,"div"),jo(1,XY,18,8,"div",4),Xo()),2&t){const t=ua(2);dr(1),qo("ngForOf",t.notes)}}function ZY(t,e){if(1&t){const t=ea();Qo(0,"div",1),Qo(1,"mat-card"),Qo(2,"mat-card-title"),Na(3,"Admin Notes"),Xo(),Qo(4,"mat-card-content"),jo(5,KY,2,1,"div",2),Qo(6,"button",3),ra("click",function(){return Be(t),ua().openDialog()}),Na(7," Add Note "),Xo(),Xo(),Xo(),Xo()}if(2&t){const t=ua();dr(5),qo("ngIf",t.notes&&t.notes.length>0)}}let JY=(()=>{class t{constructor(t,e){this.api=t,this.dialog=e}ngOnInit(){this.getNotes()}getNotes(){this.api.getResourceAdminNotes(this.currentResource.id).subscribe(t=>{this.notes=t})}openDialog(t){this.dialog.open(QY,{width:`${window.innerWidth}px`,data:{adminNote:t||{user_id:this.currentUser.id,resource_id:this.currentResource.id,note:""}}}).afterClosed().subscribe(e=>{t?(t.note=e,this.api.updateAdminNote(t).subscribe(t=>{this.getNotes()})):e&&!t&&this.api.addAdminNote({user_id:this.currentUser.id,resource_id:this.currentResource.id,note:e}).subscribe(t=>{this.getNotes()})})}deleteNote(t){this.api.deleteAdminNote(t).subscribe(t=>{this.getNotes()})}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(jO))},t.\u0275cmp=Xt({type:t,selectors:[["app-admin-note-display"]],inputs:{currentUser:"currentUser",currentResource:"currentResource"},decls:1,vars:1,consts:[["id","admin_notes",4,"ngIf"],["id","admin_notes"],[4,"ngIf"],["mat-flat-button","","color","primary","type","button",3,"click"],["fxLayout","row","fxLayoutAlign","space-between",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","space-between"],["fxFlex","70%"],["mat-line",""],[3,"href"],["fxFlex","20%"],["mat-mini-fab","","type","button","color","primary","matTooltip","Edit Note",3,"click"],["mat-mini-fab","","type","button","color","accent","matTooltip","Delete Note",3,"click"]],template:function(t,e){1&t&&jo(0,ZY,8,1,"div",0),2&t&&qo("ngIf",e.currentUser&&"admin"==e.currentUser.role)},directives:[Jd,ZA,QA,YA,TA,Kd,o_,Z_,k_,Ex,AD,JT],pipes:[_h],styles:["button.mat-mini-fab[_ngcontent-%COMP%]{margin:.5em}"]}),t})();function tQ(t,e){if(1&t){const t=ea();Qo(0,"div"),Qo(1,"mat-list-item"),Qo(2,"a",4),ra("click",function(){Be(t);const i=e.$implicit;return ua(2).goStudy(i.id)}),Ko(3,"app-type-icon",5),Qo(4,"span",6),Na(5),Xo(),Xo(),Qo(6,"p",7),Na(7),Xo(),Xo(),Xo()}if(2&t){const t=e.$implicit;dr(3),qo("iconType","study"),dr(2),Va(t.short_title||t.title),dr(2),Va(t.short_description||t.description)}}const eQ=function(){return{"related-items":!0}};function iQ(t,e){if(1&t&&(Qo(0,"mat-card",2),Qo(1,"mat-card-title"),Na(2,"Related Research Studies"),Xo(),Qo(3,"mat-card-content"),Qo(4,"mat-list"),jo(5,tQ,8,3,"div",3),Xo(),Xo(),Xo()),2&t){const t=ua();qo("ngClass",hc(2,eQ)),dr(5),qo("ngForOf",t.relatedStudies)}}function nQ(t,e){if(1&t){const t=ea();Qo(0,"div"),Qo(1,"mat-list-item"),Qo(2,"a",4),ra("click",function(){Be(t);const i=e.$implicit;return ua(2).goResource(i.id)}),Ko(3,"app-type-icon",5),Qo(4,"span",8),Na(5),Xo(),Xo(),Qo(6,"p",7),Na(7),vc(8,"truncate"),Xo(),Xo(),Xo()}if(2&t){const t=e.$implicit;dr(3),qo("iconType",t.type),dr(2),Va(t.title),dr(2),Va(Cc(8,3,t.description,140))}}function sQ(t,e){if(1&t&&(Qo(0,"mat-card",2),Qo(1,"mat-card-title"),Na(2,"Related Resources"),Xo(),Qo(3,"mat-card-content"),Qo(4,"mat-list"),jo(5,nQ,9,6,"div",3),Xo(),Xo(),Xo()),2&t){const t=ua();qo("ngClass",hc(2,eQ)),dr(5),qo("ngForOf",t.relatedResources)}}let rQ=(()=>{class t{constructor(t,e,i){this.api=t,this.router=e,this.googleAnalytics=i,this.relatedResources=[],this.relatedStudies=[]}ngOnInit(){(this.resource||this.study)&&this.api.getRelatedResults({resource_id:this.resource?this.resource.id:void 0,study_id:this.study?this.study.id:void 0}).subscribe(t=>{this.relatedResources=t.resources,this.relatedStudies=t.studies})}goResource(t){this.googleAnalytics.relatedContentEvent("related_resource",this.parentComponent),this.router.navigate(["/resource",t])}goStudy(t){this.googleAnalytics.relatedContentEvent("related_study",this.parentComponent),this.router.navigate(["/study",t])}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(lG),$o(IG))},t.\u0275cmp=Xt({type:t,selectors:[["app-related-items"]],inputs:{resource:"resource",study:"study",loading:"loading",parentComponent:"parentComponent"},decls:3,vars:2,consts:[["fxLayout","column","fxLayoutGap","2em"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[4,"ngFor","ngForOf"],["mat-line","","fxLayout","row","fxLayoutAlign","start start","fxLayoutGap","8px",3,"click"],[3,"iconType"],[1,"study-title"],["mat-line",""],[1,"resource-title"]],template:function(t,e){1&t&&(Qo(0,"div",0),jo(1,iQ,6,3,"mat-card",1),jo(2,sQ,6,3,"mat-card",1),Xo()),2&t&&(dr(1),qo("ngIf",!e.loading&&e.relatedStudies.length>0),dr(1),qo("ngIf",!e.loading&&e.relatedResources.length>0))},directives:[o_,p_,Jd,ZA,Qd,Pg,QA,YA,fP,Kd,bP,Ex,Z_,JU],pipes:[tV],styles:[".related-items[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{max-width:100vw}.related-items[_ngcontent-%COMP%] .mat-list .mat-list-item .mat-line{word-wrap:break-word;white-space:pre-wrap}.related-items[_ngcontent-%COMP%] .mat-list .mat-list-item{height:auto;margin-bottom:1rem}"]}),t})();function oQ(t,e){1&t&&(Qo(0,"p"),Na(1,"[DRAFT]"),Xo())}function aQ(t,e){if(1&t&&Ko(0,"app-edit-button",23),2&t){const t=ua(2);qo("currentUser",t.currentUser)("editLink",t.resource.type+"/"+t.resource.id+"/edit")("editLabel","Edit "+t.resource.type)}}function lQ(t,e){1&t&&(Qo(0,"p"),Na(1,"This resource is being edited and is under review. Please check back for more up-to-date information soon."),Xo())}function cQ(t,e){if(1&t&&(Qo(0,"p"),Qo(1,"a",24),Ko(2,"img",25),Xo(),Xo()),2&t){const t=ua(2);dr(1),qo("href",t.resource.website,ms),dr(1),ma("src",t.resource.image_url,ms)}}function uQ(t,e){if(1&t&&(Zo(0),Qo(1,"markdown"),Na(2),Xo(),Jo()),2&t){const t=ua(2);dr(2),Va(t.resource.description)}}function dQ(t,e){if(1&t&&(Zo(0),Qo(1,"markdown"),Na(2),Xo(),Jo()),2&t){const t=ua(2);dr(2),Va(t.isPastEvent?t.resource.post_event_description:t.resource.description)}}function hQ(t,e){if(1&t&&Ko(0,"app-event-registration",29),2&t){const t=ua(3);qo("hasCurrentUser",!!t.currentUser)("resource",t.resource)}}function pQ(t,e){if(1&t&&(Qo(0,"a",30),Na(1,"Register Now"),Xo()),2&t){const t=ua(3);qo("href",t.resource.registration_url||"mailto:"+t.resource.contact_email+"?subject=Registration+for+"+t.resource.title,ms)}}function mQ(t,e){if(1&t&&(Qo(0,"div",26),jo(1,hQ,1,2,"app-event-registration",27),jo(2,pQ,2,1,"a",28),Xo()),2&t){const t=ua(2);dr(1),qo("ngIf",t.resource.includes_registration),dr(1),qo("ngIf",!t.resource.includes_registration&&(t.resource.registration_url||t.resource.contact_email))}}function fQ(t,e){if(1&t&&(Qo(0,"p"),Na(1),Xo()),2&t){const t=ua(2);dr(1),Ba("Insurance accepted: ",t.resource.insurance,"")}}function gQ(t,e){if(1&t&&(Qo(0,"div"),Ko(1,"iframe",31),Xo()),2&t){const t=ua(3);dr(1),qo("src",t.safeVideoLink,fs)}}const _Q=function(){return["/register"]},bQ=function(t){return{returnUrl:t}},yQ=function(){return["/login"]};function vQ(t,e){if(1&t&&(Qo(0,"div"),Qo(1,"h2"),Na(2,"Interested in watching this video?"),Xo(),Qo(3,"div",32),Qo(4,"div",33),Ko(5,"img",25),Xo(),Qo(6,"div",34),Qo(7,"button",35),Na(8,"Join Autism DRIVE"),Xo(),Qo(9,"button",35),Na(10,"Log In"),Xo(),Xo(),Xo(),Xo()),2&t){const t=ua(3);dr(5),qo("src","https://img.youtube.com/vi/"+t.resource.video_code+"/hqdefault.jpg",ms),dr(2),qo("routerLink",hc(5,_Q))("queryParams",pc(6,bQ,t.router.url)),dr(2),qo("routerLink",hc(8,yQ))("queryParams",pc(9,bQ,t.router.url))}}function wQ(t,e){if(1&t&&(Qo(0,"div"),jo(1,gQ,2,1,"div",7),jo(2,vQ,11,11,"div",7),Xo()),2&t){const t=ua(2);dr(1),qo("ngIf",t.currentUser),dr(1),qo("ngIf",!t.currentUser)}}function CQ(t,e){if(1&t&&(Qo(0,"p",36),Na(1),Xo()),2&t){const t=ua(2);dr(1),za(" ","location"===t.resource.type?"In-home therapy service.":""," Contact ",t.resource.organization_name," for specific ","location"===t.resource.type?"service area":"location",". ")}}function xQ(t,e){1&t&&Ko(0,"app-contact-item",37),2&t&&qo("contactItem",e.$implicit)}function SQ(t,e){if(1&t){const t=ea();Qo(0,"button",38),ra("click",function(e){return Be(t),ua(2).goPhone(e)}),Na(1),Xo()}if(2&t){const t=ua(2);dr(1),Ba("Call ",t.resource.phone,"")}}function kQ(t,e){if(1&t){const t=ea();Qo(0,"button",39),ra("click",function(e){return Be(t),ua(2).goWebsite(e)}),Na(1,"Visit website"),Xo()}}function AQ(t,e){if(1&t&&(Qo(0,"div"),Qo(1,"p",43),Qo(2,"a",44),Qo(3,"b"),Na(4),Xo(),Xo(),Na(5),vc(6,"uppercase"),vc(7,"date"),Xo(),Xo()),2&t){const t=e.$implicit;dr(2),qo("href","/#/admin/user/"+t.user_id,ms),dr(2),Ha("User #",t.user_id," - ",t.user_email,""),dr(1),Ha(" - Edit Type: ",wc(6,5,t.type)," - Update Date: ",Cc(7,7,t.last_updated,"long")," ")}}function OQ(t,e){if(1&t&&(Qo(0,"div"),jo(1,AQ,8,10,"div",42),Xo()),2&t){const t=ua(3);dr(1),qo("ngForOf",t.changeLog)}}function EQ(t,e){if(1&t&&(Qo(0,"div",40),Qo(1,"mat-card"),Qo(2,"mat-card-title"),Na(3,"Edit Log"),Xo(),jo(4,OQ,2,1,"div",7),Xo(),Ko(5,"app-admin-note-display",41),Xo()),2&t){const t=ua(2);dr(4),qo("ngIf",t.changeLog),dr(1),qo("currentUser",t.currentUser)("currentResource",t.resource)}}function TQ(t,e){if(1&t){const t=ea();Qo(0,"agm-circle",49),ra("circleClick",function(e){return Be(t),ua(3).toggleInfoWindow(e)}),Xo()}if(2&t){const t=ua(3);qo("latitude",t.resource.latitude)("longitude",t.resource.longitude)("radius",32186.9)("fillColor","location"===t.resource.type.toLowerCase()?"#6c799c":"#E57200")("clickable",!0)}}function PQ(t,e){if(1&t&&(Zo(0),Qo(1,"p"),Na(2),Xo(),Qo(3,"a",52),Na(4,"Driving directions"),Xo(),Jo()),2&t){const t=ua(4);dr(2),Ba("About ",t.resource.milesFrom(t.mapLoc)," miles away"),dr(1),ma("href",t.getGoogleMapsUrl(),ms)}}function DQ(t,e){if(1&t&&(Qo(0,"p",36),Na(1),Xo()),2&t){const t=ua(5);dr(1),za(" ","location"===t.resource.type?"In-home therapy service.":""," Contact ",t.resource.organization_name," for specific ","location"===t.resource.type?"service area":"location",". ")}}function MQ(t,e){if(1&t&&(Qo(0,"a",52),Na(1),Xo()),2&t){const t=ua(5);fa("href","tel://",t.resource.phone,"",ms),dr(1),Ba("Call ",t.resource.phone,"")}}function IQ(t,e){1&t&&(Qo(0,"a",52),Na(1," Visit website "),Xo()),2&t&&ma("href",ua(5).resource.website,ms)}function RQ(t,e){if(1&t&&(Zo(0),jo(1,DQ,2,3,"p",12),jo(2,MQ,2,2,"a",53),jo(3,IQ,2,1,"a",53),Jo()),2&t){const t=ua(4);dr(1),qo("ngIf",t.mapLoc&&!t.resource.street_address1),dr(1),qo("ngIf",t.resource.phone),dr(1),qo("ngIf",!t.resource.phone&&t.resource.website)}}const LQ=function(){return{x:24,y:24}},FQ=function(t,e){return{url:t,anchor:e}};function NQ(t,e){if(1&t){const t=ea();Qo(0,"agm-marker",50),ra("markerClick",function(e){return Be(t),ua(3).toggleInfoWindow(e)}),Qo(1,"agm-info-window",51),Qo(2,"h5"),Na(3),Xo(),jo(4,PQ,5,2,"ng-container",7),jo(5,RQ,4,3,"ng-container",7),Xo(),Xo()}if(2&t){const t=ua(3);qo("latitude",t.resource.latitude)("longitude",t.resource.longitude)("iconUrl",mc(10,FQ,"/assets/map/"+t.resource.type+(t.resource.street_address1?"":"-no-address")+".svg",hc(9,LQ))),dr(1),qo("isOpen",t.showInfoWindow)("latitude",t.resource.latitude)("latitude",t.resource.longitude),dr(2),Va(t.resource.title),dr(1),qo("ngIf",t.resource.street_address1),dr(1),qo("ngIf",!t.resource.street_address1)}}function VQ(t,e){if(1&t&&(Qo(0,"div",45),Qo(1,"agm-map",46),jo(2,TQ,1,5,"agm-circle",47),jo(3,NQ,6,13,"agm-marker",48),Xo(),Xo()),2&t){const t=ua(2);dr(1),qo("latitude",t.resource.latitude)("longitude",t.resource.longitude)("streetViewControl",!1)("zoom",7)("scrollwheel",null),dr(1),qo("ngIf",t.resource.hasCoords()&&!t.resource.street_address1),dr(1),qo("ngIf",t.resource.hasCoords())}}function BQ(t,e){if(1&t&&(Qo(0,"div",54),Ko(1,"app-related-items",55),Xo()),2&t){const t=ua(2);dr(1),qo("resource",t.resource)("loading",t.loading)("parentComponent","resource-detail")}}function HQ(t,e){if(1&t&&(Qo(0,"div",2),Qo(1,"div",3),Qo(2,"div",4),Qo(3,"div",5),Ko(4,"app-type-icon",6),Qo(5,"h1"),Na(6),Xo(),Xo(),jo(7,oQ,2,0,"p",7),jo(8,aQ,1,3,"app-edit-button",8),Ko(9,"app-favorite-resource-button",9),Qo(10,"p"),Na(11),vc(12,"date"),Xo(),Qo(13,"h2"),Na(14,"About this resource"),Xo(),jo(15,lQ,2,0,"p",7),jo(16,cQ,3,2,"p",7),jo(17,uQ,3,1,"ng-container",7),jo(18,dQ,3,1,"ng-container",7),jo(19,mQ,3,2,"div",10),jo(20,fQ,2,1,"p",7),jo(21,wQ,3,2,"div",7),Qo(22,"mat-card",11),Qo(23,"mat-card-title"),Qo(24,"h4"),Na(25,"Contact"),Xo(),Xo(),Qo(26,"mat-card-content"),jo(27,CQ,2,3,"p",12),jo(28,xQ,1,1,"app-contact-item",13),Xo(),Xo(),Qo(29,"div",14),jo(30,SQ,2,1,"button",15),jo(31,kQ,2,0,"button",16),Xo(),jo(32,EQ,6,3,"div",17),Xo(),Qo(33,"div",18),jo(34,VQ,4,7,"div",19),Qo(35,"div",20),Ko(36,"app-filter-chips",21),Xo(),jo(37,BQ,2,3,"div",22),Xo(),Xo(),Xo()),2&t){const t=ua();dr(4),qo("iconType",t.resource.type.toLowerCase())("size",3),dr(2),Va(t.resource.title),dr(1),qo("ngIf",t.resourceIsDraft),dr(1),qo("ngIf",t.userCanEdit),dr(1),qo("resource_id",t.resource.id)("user",t.currentUser),dr(2),Ba("Last Updated: ",Cc(12,27,t.resource.last_updated,"longDate"),""),dr(4),qo("ngIf",t.resourceIsDraft&&!t.userCanEdit),dr(1),qo("ngIf","event"===t.resource.type&&t.resource.image_url),dr(1),qo("ngIf","event"!==t.resource.type),dr(1),qo("ngIf","event"===t.resource.type),dr(1),qo("ngIf","event"===t.resource.type),dr(1),qo("ngIf",t.resource.insurance),dr(1),qo("ngIf",t.safeVideoLink),dr(6),qo("ngIf",t.mapLoc&&!t.resource.street_address1),dr(1),qo("ngForOf",t.contactItems),dr(2),qo("ngIf",t.resource.phone),dr(1),qo("ngIf",t.resource.website),dr(1),qo("ngIf",t.currentUser&&t.currentUser.permissions.includes("edit_resource")),dr(2),qo("ngIf",t.resource&&t.resource.hasCoords()),dr(2),qo("categories",t.resource.resource_categories)("ages",t.resource.ages)("languages",t.resource.languages)("covid19_categories",t.resource.covid19_categories)("parentComponent","resource_detail"),dr(1),qo("ngIf",!t.resource.should_hide_related_resources)}}function zQ(t,e){1&t&&Ko(0,"app-loading",56)}let GQ=(()=>{class t{constructor(t,e,i,n,s){this.api=t,this.route=e,this.router=i,this.authenticationService=n,this._sanitizer=s,this.loading=!0,this.showInfoWindow=!1,this.authenticationService.currentUser.subscribe(t=>this.currentUser=t),this.route.params.subscribe(t=>{this.loading=!0,this.safeVideoLink=null;const e=t.resourceId?parseInt(t.resourceId,10):null;if("number"==typeof e&&isFinite(e)){const t=this.route.snapshot.url[0].path,i=t.charAt(0).toUpperCase()+t.slice(1);this.api[`get${i}`](e).subscribe(t=>{this.resource=new hY(t),console.log("resource = ",this.resource),this.initializeContactItems(),this.loadMapLocation(),this.loading=!1,this.resource.video_code&&(this.safeVideoLink=this._sanitizer.bypassSecurityTrustResourceUrl("https://www.youtube.com/embed/"+this.resource.video_code)),this.currentUser&&this.currentUser.permissions.includes("edit_resource")&&this.api.getResourceChangeLog(this.resource.id).subscribe(t=>{this.changeLog=t})})}})}get isPastEvent(){const t=new Date(this.resource.date),e=new Date;return console.log("eventDate",t),!!(this.resource&&"event"===this.resource.type&&t{this.mapLoc={lat:t.coords.latitude,lng:t.coords.longitude}})}goPhone(t){t.preventDefault(),this.resource&&this.resource.phone&&(location.href=`tel://${this.resource.phone}`)}goWebsite(t){t.preventDefault(),this.resource&&this.resource.website&&window.open(this.resource.website,"_blank")}getGoogleMapsUrl(){if(this.mapLoc&&this.resource.hasCoords())return`https://www.google.com/maps/dir/${this.mapLoc.lat},${this.mapLoc.lng}/${encodeURIComponent(`\n ${this.resource.street_address1},\n ${this.resource.street_address2},\n ${this.resource.city},\n ${this.resource.state}\n ${this.resource.zip}\n `)}`}initializeContactItems(){const t=this.resource;this.contactItems=[{condition:!!t.primary_contact,icon:"person_pin",details:[t.primary_contact]},{condition:!!t.organization_name,icon:"business",details:[t.organization_name]},{condition:!!t.date,icon:"access_time",details:[t.date&&`${Pd(t.date,"longDate","en-US","-0")}: ${t.time}`]},{condition:!!(t.location_name||t.street_address1||t.street_address2||t.city||t.state||t.zip),icon:"location_on",details:[t.location_name,t.street_address1,t.street_address2,`${t.city?t.city+",":t.city} ${t.state} ${t.zip}`],type:"address"},{condition:!!t.ticket_cost,icon:"monetization_on",details:[t.ticket_cost]},{condition:!!t.phone,icon:"phone",details:[t.phone],type:"phone"},{condition:!!t.phone_extension,icon:"dialpad",details:[t.phone_extension],type:"phone_extension"},{condition:!!t.website,icon:"link",details:[t.website],type:"link"}]}toggleInfoWindow(t){this.showInfoWindow=!this.showInfoWindow}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(UH),$o(lG),$o(BG),$o(Xh))},t.\u0275cmp=Xt({type:t,selectors:[["app-resource-detail"]],decls:2,vars:2,consts:[["class","container","id","resource",4,"ngIf"],["message","Loading...",4,"ngIf"],["id","resource",1,"container"],["fxLayout","row","fxLayout.lt-lg","column","fxLayoutGap","40px",1,"row"],["id","resource-details","fxFlex.gt-md","60%","fxLayout","column","fxLayoutGap","40px"],["fxLayout","row","fxLayoutAlign","start start","fxLayoutGap","1em"],[3,"iconType","size"],[4,"ngIf"],[3,"currentUser","editLink","editLabel",4,"ngIf"],[3,"resource_id","user"],["fxLayout","column","fxLayoutAlign","center center",4,"ngIf"],["id","resource-contact"],["class","no-address-message",4,"ngIf"],[3,"contactItem",4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutGap","20px"],["mat-flat-button","","color","primary",3,"click",4,"ngIf"],["mat-stroked-button","","color","primary",3,"click",4,"ngIf"],["fxLayout","column","fxLayoutGap","2em",4,"ngIf"],["id","resource-meta","fxFlex.gt-md","40%","fxLayout","column","fxLayoutGap","20px"],["id","resource-map",4,"ngIf"],["id","resource-categories"],[3,"categories","ages","languages","covid19_categories","parentComponent"],["id","resource-related",4,"ngIf"],[3,"currentUser","editLink","editLabel"],["target","_blank",3,"href"],[3,"src"],["fxLayout","column","fxLayoutAlign","center center"],["id","star_event_registration",3,"hasCurrentUser","resource",4,"ngIf"],["mat-flat-button","","class","btn btn-xl","color","accent","target","_blank",3,"href",4,"ngIf"],["id","star_event_registration",3,"hasCurrentUser","resource"],["mat-flat-button","","color","accent","target","_blank",1,"btn","btn-xl",3,"href"],["fxFlex","100%","height","500px","frameborder","0","allowfullscreen","",3,"src"],[1,"video-image-box"],[1,"gradient-overlay","image"],["fxLayout","column","fxLayoutGap","20px",1,"button-overlay"],["mat-flat-button","","color","accent",3,"routerLink","queryParams"],[1,"no-address-message"],[3,"contactItem"],["mat-flat-button","","color","primary",3,"click"],["mat-stroked-button","","color","primary",3,"click"],["fxLayout","column","fxLayoutGap","2em"],[3,"currentUser","currentResource"],[4,"ngFor","ngForOf"],["mat-line",""],[3,"href"],["id","resource-map"],["mapTypeId","roadmap",3,"latitude","longitude","streetViewControl","zoom","scrollwheel"],["fillOpacity","0.1",3,"latitude","longitude","radius","fillColor","clickable","circleClick",4,"ngIf"],[3,"latitude","longitude","iconUrl","markerClick",4,"ngIf"],["fillOpacity","0.1",3,"latitude","longitude","radius","fillColor","clickable","circleClick"],[3,"latitude","longitude","iconUrl","markerClick"],[3,"isOpen","latitude"],["target","_blank",1,"chevron-link",3,"href"],["class","chevron-link","target","_blank",3,"href",4,"ngIf"],["id","resource-related"],[3,"resource","loading","parentComponent"],["message","Loading..."]],template:function(t,e){1&t&&(jo(0,HQ,38,30,"div",0),jo(1,zQ,1,0,"app-loading",1)),2&t&&(qo("ngIf",!e.loading&&e.resource),dr(1),qo("ngIf",!e.resource))},directives:[Jd,o_,p_,k_,Z_,JU,BU,ZA,QA,YA,Kd,wY,xY,BV,DY,PA,TA,cG,YY,JY,Ex,gm,tm,ym,lm,rQ,Qj],pipes:[_h,gh],styles:["agm-map[_ngcontent-%COMP%]{height:50vh;width:100%} .gm-style-iw-d, .gm-style-iw.gm-style-iw-c{max-height:50vh!important}@media (max-width:575px){ .gm-style-iw-d, .gm-style-iw.gm-style-iw-c{max-width:90vw!important}}@media (min-width:576px){ .gm-style-iw-d, .gm-style-iw.gm-style-iw-c{max-width:80vw!important}}@media (min-width:768px){ .gm-style-iw-d, .gm-style-iw.gm-style-iw-c{max-width:50vw!important}}@media (min-width:960px){ .gm-style-iw-d, .gm-style-iw.gm-style-iw-c{max-width:40vw!important}}@media (min-width:1200px){ .gm-style-iw-d, .gm-style-iw.gm-style-iw-c{max-width:30vw!important}}.no-address-message[_ngcontent-%COMP%]{font-weight:700;color:#e57200}.button-overlay[_ngcontent-%COMP%]{position:absolute;top:20%;left:10%;width:60%;z-index:3}.video-image-box[_ngcontent-%COMP%]{position:relative}.video-image-box[_ngcontent-%COMP%] .image[_ngcontent-%COMP%]{width:80%}.video-image-box[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}#resource-details[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;padding-bottom:0}"]}),t})();function UQ(t,e){1&t&&Ko(0,"app-loading",3)}function jQ(t,e){if(1&t){const t=ea();Qo(0,"button",12),ra("click",function(){return Be(t),ua(2).saveDraft()}),Na(1,"Save As Draft"),Xo()}}function WQ(t,e){if(1&t){const t=ea();Qo(0,"button",14),ra("click",function(){return Be(t),ua(3).savePublish()}),Na(1,"Save & Publish"),Xo()}}function $Q(t,e){if(1&t&&(Qo(0,"div"),jo(1,WQ,2,0,"button",13),Xo()),2&t){const t=ua(2);dr(1),qo("ngIf",t.form)}}function qQ(t,e){if(1&t){const t=ea();Qo(0,"button",15),ra("click",function(){return Be(t),ua(2).onCancel()}),Na(1,"Cancel"),Xo()}}function YQ(t,e){if(1&t){const t=ea();Qo(0,"button",16),ra("click",function(){return Be(t),ua(2).showDelete()}),Na(1,"Delete"),Xo()}}function QQ(t,e){if(1&t){const t=ea();Qo(0,"button",17),ra("click",function(){return Be(t),ua(2).onDelete()}),Na(1,"Permanently Delete This Resource!!! "),Xo()}}function XQ(t,e){if(1&t&&(Qo(0,"form",4),Qo(1,"h1"),Na(2,"Resource Details"),Xo(),Ko(3,"formly-form",5),Qo(4,"div",6),jo(5,jQ,2,0,"button",7),jo(6,$Q,2,1,"div",8),jo(7,qQ,2,0,"button",9),jo(8,YQ,2,0,"button",10),jo(9,QQ,2,0,"button",11),Xo(),Xo()),2&t){const t=ua();qo("formGroup",t.form),dr(3),qo("form",t.form)("model",t.model)("fields",t.fields)("options",t.options),dr(2),qo("ngIf",t.form),dr(1),qo("ngIf",t.currentUser&&t.currentUser.permissions.includes("publish_resource")),dr(1),qo("ngIf",t.form),dr(1),qo("ngIf",!t.showConfirmDelete&&!t.createNew),dr(1),qo("ngIf",t.showConfirmDelete)}}var KQ=function(t){return t.LOADING="loading",t.SHOW_FORM="form",t}({});let ZQ=(()=>{class t{constructor(t,e,i,n,s){this.api=t,this.authenticationService=e,this.deviceDetectorService=i,this.route=n,this.router=s,this.pageState=KQ,this.state=KQ.LOADING,this.showConfirmDelete=!1,this.model={},this.fields=[{key:"type",type:"select",templateOptions:{label:"Type",options:[{value:"resource",label:"Online Information"},{value:"location",label:"Local Services"},{value:"event",label:"Events and Training"}],required:!0},hideExpression:"!model.createNew"},{key:"title",type:"input",templateOptions:{label:"Title",placeholder:"Please enter the title",required:!0},expressionProperties:{"templateOptions.placeholder":'"Please enter the title of your " + (model.type || "resource")'},hideExpression:"!model.type"},{key:"description",type:"textarea",templateOptions:{label:"Description",placeholder:"Please enter a description",description:"You may use Markdown syntax to insert simple formatting, text links, and images",required:!0},expressionProperties:{"templateOptions.placeholder":'"Please enter a description of your " + (model.type || "resource")'},hideExpression:"!model.type"},{key:"post_event_description",type:"textarea",templateOptions:{label:"Post-Event Description",placeholder:"Description to display after event has occurred",description:"You may use Markdown syntax to insert simple formatting, text links, and images"},hideExpression:'model.type != "event"'},{key:"insurance",type:"textarea",templateOptions:{label:"Insurance",placeholder:"Please enter the type of insurance if applicable (e.g., private, medicaid, Tricare)"},hideExpression:"!model.type"},{key:"includes_registration",type:"radio",defaultValue:!1,templateOptions:{label:"Use Autism DRIVE or an external system for registration?",description:"Should users be able to register for this event through Autism DRIVE?",options:[{value:!0,label:"Autism DRIVE"},{value:!1,label:"External system"}]},expressionProperties:{"templateOptions.required":'model.type === "event"'},hideExpression:'model.type != "event"'},{key:"registration_url",type:"input",templateOptions:{label:"Registration Link",description:"If this is left blank, the contact email address will be used for registration.",placeholder:"https://link.to/external/website",type:"url"},hideExpression:'!(model.type === "event" && !model.includes_registration)'},{key:"image_url",type:"input",templateOptions:{label:"Feature Image",placeholder:"https://link.to/external/website/file.jpg",type:"url"},hideExpression:'model.type != "event"'},{key:"date",type:"datepicker",templateOptions:{label:"Event Date"},expressionProperties:{"templateOptions.required":'model.type === "event"'},hideExpression:'model.type != "event"'},{key:"time",type:"input",templateOptions:{label:"Event Time",placeholder:"Please enter the start time or time-frame for your event"},expressionProperties:{"templateOptions.required":'model.type === "event"'},hideExpression:'model.type != "event"'},{key:"ticket_cost",type:"input",templateOptions:{label:"Event Ticket Cost",placeholder:"Please enter the ticket cost for your event"},hideExpression:'model.type != "event"'},{key:"webinar_link",type:"input",templateOptions:{label:"Webinar Link",placeholder:"Please enter the link to attend the webinar"},hideExpression:'model.type != "event"',validators:{validation:["url"]}},{key:"post_survey_link",type:"input",templateOptions:{label:"Survey Link",placeholder:"Please enter the link to the post-event survey"},hideExpression:'model.type != "event"',validators:{validation:["url"]}},{key:"max_users",type:"input",templateOptions:{label:"Maximum attendees",placeholder:"Please enter the maximum number of users allowed to register",type:"number"},hideExpression:'model.type != "event"'},{key:"organization_name",type:"input",templateOptions:{label:"Organization Name",placeholder:"Please enter the name of the organization for your resource"},hideExpression:"!model.type"},{key:"primary_contact",type:"input",templateOptions:{label:"Primary Contact",placeholder:"Please enter the primary contact for your location or event"},hideExpression:'!model.type || model.type == "resource"'},{key:"contact_email",type:"input",templateOptions:{label:"Contact Email"},validators:{validation:["email"]},hideExpression:"!model.type",expressionProperties:{"templateOptions.description":(t,e,i)=>"event"!==t.type||t.includes_registration||t.registration_link?"This contact email will not be displayed on the site and is intended for admin use only":"This contact email will be used for attendees to request information about registering for this event."}},{key:"location_name",type:"input",templateOptions:{label:"Location Name",placeholder:"Please enter the name for your event venue"},hideExpression:'model.type != "event"'},{key:"street_address1",type:"input",templateOptions:{label:"Street Address",placeholder:"Please enter the street address"},hideExpression:'!model.type || model.type == "resource"'},{key:"street_address2",type:"input",templateOptions:{label:"Street Address Details",placeholder:"Please enter any additional details for the street address"},hideExpression:'!model.type || model.type == "resource"'},{key:"city",type:"input",templateOptions:{label:"City",placeholder:"Please enter the city"},hideExpression:'!model.type || model.type == "resource"'},{key:"state",type:"input",templateOptions:{label:"State",placeholder:"Please enter the state"},hideExpression:'!model.type || model.type == "resource"'},{key:"zip",type:"input",templateOptions:{label:"Zip Code",placeholder:"Please enter the zip code"},hideExpression:'!model.type || model.type == "resource"'},{key:"phone",type:"input",templateOptions:{label:"Phone Number",placeholder:"Please enter the phone number"},hideExpression:"!model.type",validators:{validation:["phone"]}},{key:"phone_extension",type:"input",templateOptions:{label:"Phone Number Extension",placeholder:"Please enter any extension to the phone number"},hideExpression:"!model.type"},{key:"website",type:"input",templateOptions:{label:"Website",placeholder:"Please enter the website"},hideExpression:"!model.type",validators:{validation:["url"]}},{key:"video_code",type:"input",templateOptions:{label:"Video Code",placeholder:"Please enter the YouTube code for a video of this content"},hideExpression:"!model.type"},{key:"is_uva_education_content",type:"radio",defaultValue:!1,templateOptions:{label:"UVA Education Content",description:"Should this resource be displayed on the UVA Education page?",options:[{value:!0,label:"Yes"},{value:!1,label:"No"}]},hideExpression:"!model.type"},{key:"categories",type:"multiselecttree",templateOptions:{label:"Topics",description:"This field is required",options:this.api.getCategoryTree(),valueProp:"id",labelProp:"name"},hideExpression:"!model.type"},{key:"ages",type:"multicheckbox",templateOptions:{label:"Age Ranges",type:"array",options:this.getOptions(EU.labels)},hideExpression:"!model.type"},{key:"languages",type:"multicheckbox",templateOptions:{label:"Languages",type:"array",options:this.getOptions(TU.labels)},hideExpression:"!model.type"},{key:"should_hide_related_resources",type:"radio",defaultValue:!1,templateOptions:{label:"Hide Related Resources",description:"Should related resources be displayed alongside this resource on the details page?",options:[{value:!0,label:"Yes"},{value:!1,label:"No"}]},hideExpression:"!model.type"}],this.createNew=!1,this.authenticationService.currentUser.subscribe(t=>this.currentUser=t)}ngOnInit(){this.model.createNew=!1,this.loadData()}getOptions(t){const e=[];for(const i in t)t.hasOwnProperty(i)&&e.push({value:i,label:t[i]});return e}loadData(){this.route.params.subscribe(t=>{if(t.resourceId&&t.resourceType){const e=t.resourceId,i=t.resourceType.charAt(0).toUpperCase()+t.resourceType.slice(1);this.createNew=!1,this.model.createNew=!1,this.api[`get${i}`](e).subscribe(t=>{this.resource=new hY(t),this.model=this.resource,this.loadResourceCategories(t,()=>this.loadForm())})}else this.createNew=!0,this.model.createNew=!0,this.model.categories=[],this.resource=new hY({type:"",title:"",description:"",phone:"",website:""}),this.loadForm()})}loadResourceCategories(t,e){if(this.model.categories=[],t.resource_categories.length>0)for(const i of t.resource_categories)this.model.categories.push(i.category),e();else e()}loadForm(){this.form=new cy({}),this.options={formState:{mainModel:this.model}},this.state=this.pageState.SHOW_FORM}updateResourceCategories(t){const e=this.model.type.charAt(0).toUpperCase()+this.model.type.slice(1),i=[];return this.model.categories.forEach((e,n)=>{!0===e&&i.push({resource_id:t,category_id:n,type:this.model.type})}),this.api[`update${e}Categories`](t,i)}submit(){const t=this.model.type.charAt(0).toUpperCase()+this.model.type.slice(1);this.form.valid&&this.updateAndClose(this.createNew&&!this.model.id?this.api[`add${t}`](this.model):this.api[`update${t}`](this.model))}updateAndClose(t){this.setDateTime(),t.subscribe(t=>{this.updatedResource=t,this.model.id=t.id,this.updateResourceCategories(t.id).subscribe(()=>this.close())})}setDateTime(){this.model.date&&(this.model.date instanceof Date||(this.model.date=new Date(this.model.date)),this.model.date.setHours(12))}showDelete(){this.showConfirmDelete=!0}onDelete(){this.api.deleteResource(this.resource).subscribe(t=>{this.router.navigate(["search"])})}close(){this.router.navigate(this.updatedResource&&this.updatedResource.id?[this.updatedResource.type,this.updatedResource.id]:["search"])}onCancel(){this.close()}saveDraft(){this.model.is_draft=!0,this.form.valid?this.submit():this.highlightRequiredFields()}savePublish(){this.model.is_draft=!1,this.form.valid?this.submit():this.highlightRequiredFields()}highlightRequiredFields(){for(const t of Object.keys(this.form.controls)){const e=this.form.controls[t];e.updateValueAndValidity(),e.markAsDirty()}aB(this.deviceDetectorService)}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(BG),$o(xV),$o(UH),$o(lG))},t.\u0275cmp=Xt({type:t,selectors:[["app-resource-form"]],decls:3,vars:2,consts:[[1,"resource-detail","mat-typography"],["message","Loading...",4,"ngIf"],["class","pad-2",3,"formGroup",4,"ngIf"],["message","Loading..."],[1,"pad-2",3,"formGroup"],[3,"form","model","fields","options"],["fxLayout","row","fxLayoutGap","2em",1,"button-row"],["mat-flat-button","","type","button","color","primary","id","save-draft-button",3,"click",4,"ngIf"],[4,"ngIf"],["mat-flat-button","","type","button","color","accent","id","cancel-button",3,"click",4,"ngIf"],["type","button","mat-flat-button","","color","warn","id","delete-button",3,"click",4,"ngIf"],["id","confirm_delete","type","button","mat-flat-button","","color","warn","id","permanently-delete-button",3,"click",4,"ngIf"],["mat-flat-button","","type","button","color","primary","id","save-draft-button",3,"click"],["mat-flat-button","","type","button","color","primary","id","save-publish-button",3,"click",4,"ngIf"],["mat-flat-button","","type","button","color","primary","id","save-publish-button",3,"click"],["mat-flat-button","","type","button","color","accent","id","cancel-button",3,"click"],["type","button","mat-flat-button","","color","warn","id","delete-button",3,"click"],["id","confirm_delete","type","button","mat-flat-button","","color","warn","id","permanently-delete-button",3,"click"]],template:function(t,e){1&t&&(Qo(0,"div",0),jo(1,UQ,1,0,"app-loading",1),jo(2,XQ,10,10,"form",2),Xo()),2&t&&(dr(1),qo("ngIf",e.state===e.pageState.LOADING),dr(1),qo("ngIf",e.state===e.pageState.SHOW_FORM))},directives:[Jd,Qj,_y,jb,ky,NF,o_,p_,TA],styles:[".resource-detail[_ngcontent-%COMP%]{margin:2em}"]}),t})();var JQ=i("AFAK"),tX=i.n(JQ);const eX={leading:!0,trailing:!1};function iX(t,e=mp,i=eX){return n=>n.lift(new nX(t,e,i.leading,i.trailing))}class nX{constructor(t,e,i,n){this.duration=t,this.scheduler=e,this.leading=i,this.trailing=n}call(t,e){return e.subscribe(new sX(t,this.duration,this.scheduler,this.leading,this.trailing))}}class sX extends m{constructor(t,e,i,n,s){super(t),this.duration=e,this.scheduler=i,this.leading=n,this.trailing=s,this._hasTrailingValue=!1,this._trailingValue=null}_next(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(rX,this.duration,{subscriber:this})),this.leading?this.destination.next(t):this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)}}function rX(t){const{subscriber:e}=t;e.clearThrottle()}var oX=function(t){return t.Small="sm",t.Medium="md",t.Large="lg",t}({}),aX=function(t){return t.Visible="visible",t.Hidden="hidden",t}({}),lX=function(t){return t.Expanded="expanded",t.Collapsed="collapsed",t}({}),cX=function(t){return t.Up="Up",t.Down="Down",t}({});let uX=(()=>{class t{constructor(t,e){this._http=t,this.config=e,this.query_url="/api/search/resources"}search(t){return this._http.post(this.config.apiUrl+this.query_url,t).pipe(E(t=>this._loadQuery(t)))}mapSearch(t,e){const i=tX()({circles:!0})(t);return i.geo_box=e,i.map_data_only=!0,i.size=300,this.search(i)}_loadQuery(t){if(t&&t.hits)return new IU(t)}}return t.\u0275fac=function(e){return new(e||t)(wn(Km),wn(MG))},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),dX=(()=>{class t{constructor(t){this.api=t,this.categoriesByDisplayOrder={},this.categoriesById={},this.updated=new kc,this.api.getCategoryTree().subscribe(t=>{this.categoryTree=t,this._populateCategoryIndices(this.categoryTree),this.categoryList=Object.entries(this.categoriesByDisplayOrder).sort((t,e)=>t[0].toLowerCase()t[1]),this._populateCategoryParents(),this.categoryList.forEach(t=>{t.indentedString=this._indentedString(t)}),this.updated.emit(!0)})}_indentedString(t){let e=t.parent;const i=[];for(;e;)i.unshift(e),e=e.parent;return i.map(t=>t.name).concat([t.name]).join(" > ")}_populateCategoryIndices(t,e=[]){t.forEach(t=>{const i=e.concat([null!=t.display_order?t.display_order:t.id]),n=i.join(".");this.categoriesByDisplayOrder[n]||(this.categoriesByDisplayOrder[n]=t),this.categoriesById[t.id]||(this.categoriesById[t.id]=t),t.children&&t.children.length>0&&this._populateCategoryIndices(t.children,i)})}_populateCategoryParents(){this.categoryList.forEach(t=>{null!==t.parent_id&&(t.parent=this.categoriesById[t.parent_id],this.categoriesById[t.id].parent=t.parent)})}}return t.\u0275fac=function(e){return new(e||t)(wn(WG))},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const hX=["searchInput"],pX=["autocompletePanel"];function mX(t,e){if(1&t&&(Qo(0,"div",13),Qo(1,"h1",14),Na(2,"Find Autism Resources"),Xo(),Qo(3,"h5",14),Na(4,"Type a search term and/or use filters below"),Xo(),Xo()),2&t){const t=ua();dr(1),qo("fxFlex",t.videoIsVisible?"calc(100% - 66px)":"100%"),dr(2),qo("fxFlex",t.videoIsVisible?"calc(100% - 66px)":"100%")}}function fX(t,e){if(1&t&&(Qo(0,"mat-option",15),Na(1),Xo()),2&t){const t=e.$implicit,i=ua();qo("value",t),dr(1),Va(i.optionText(t))}}const gX=function(t){return{"btn-cancel":!0,hidden:t}},_X=function(){return{"btn-search":!0}};let bX=(()=>{class t{constructor(t,e,i,n,s,r){var o;this.route=t,this.router=e,this.searchService=i,this.api=n,this.categoryService=s,this.changeDetectorRef=r,this.categorySelected=new kc,this.searchUpdated=new kc,this.searchBoxControl=new ly,this.searchUpdate=new k,this.skipUpdate=!1,this.route.queryParams.pipe((o=()=>gp(1e3),t=>t.lift(new zV(o)))).subscribe(t=>this.queryParams=t),this.searchUpdate.pipe(Sf(400),Np()).subscribe(()=>this.updateSearch(!1))}get videoIsVisible(){return"true"===localStorage.getItem("shouldHideTutorialVideo")}set searchInput(t){this.searchInputElement=t}set autocompletePanel(t){this.autocompletePanelElement=t}set autocompletePanelTrigger(t){this.autocompletePanelTriggerElement=t}get hasWords(){return!!(this.searchInputElement&&this.searchInputElement.value&&this.searchInputElement.value.length>0)}ngOnInit(){this.filteredOptions=this.searchBoxControl.valueChanges.pipe(jp(""),E(t=>this._filter(t)))}ngAfterViewInit(){this.searchInputElement.value=this.words}optionText(t){return null==t?void 0:t.indentedString}updateSearch(t){if(this.skipUpdate)return void(this.skipUpdate=!1);t&&(this.words="",this.searchInputElement.value=this.words);const e=JSON.parse(JSON.stringify(this.queryParams));return e.words=t?void 0:this.searchInputElement&&this.searchInputElement.value||"",e.pageStart=0,e.words&&(e.sort="Relevance"),Object.keys(e).length>0?this.router.navigate(["/search"],{relativeTo:this.route,queryParams:e}).finally(()=>{this.searchUpdated.emit(e),this.changeDetectorRef.detectChanges()}):this.router.navigateByUrl("/search").finally(()=>this.searchUpdated.emit(e))}indentedString(t){let e=t.parent;const i=[];for(;e;)i.unshift(e),e=e.parent;return i.map(t=>t.name).concat([t.name]).join(" > ")}selectCategory(t){this.skipUpdate=!0,this.categorySelected.emit(t.option.value)}showVideo(){localStorage.removeItem("shouldHideTutorialVideo")}_filter(t){if(t&&t.length>0){const e=t.replace(/\W+/gi," ").toLowerCase().split(" ").map(t=>`(?=.*${t})`).join(""),i=new RegExp(e,"gi");return this.categoryService.categoryList.filter(t=>t.all_resource_count>0&&i.test(t.indentedString))}return this.categoryService.categoryList}openAutocompletePanel(t){this.autocompletePanelTriggerElement._onChange(""),t.stopPropagation(),this.autocompletePanelTriggerElement.openPanel(),this.autocompletePanelElement.showPanel=!0,this.changeDetectorRef.detectChanges()}}return t.\u0275fac=function(e){return new(e||t)($o(UH),$o(lG),$o(uX),$o(WG),$o(dX),$o(Vl))},t.\u0275cmp=Xt({type:t,selectors:[["app-search-box"]],viewQuery:function(t,e){if(1&t&&(Vc(hX,1,cE),Vc(pX,1,cA),Vc(fA,1)),2&t){let t;Nc(t=Hc())&&(e.searchInput=t.first),Nc(t=Hc())&&(e.autocompletePanel=t.first),Nc(t=Hc())&&(e.autocompletePanelTrigger=t.first)}},inputs:{variant:"variant",words:"words"},outputs:{categorySelected:"categorySelected",searchUpdated:"searchUpdated"},decls:21,vars:17,consts:[["fxLayout","column"],["class","search-bar-header","fxLayout","row wrap","fxLayoutAlign","center center","fxLayoutGap","0px",4,"ngIf"],["fxLayout","row","fxLayoutGap","10px","fxLayoutAlign","center center"],["id","search-field",3,"fxFlex","click"],["matInput","","placeholder","Search for Autism Resources","type","text",3,"formControl","matAutocomplete","keyup.enter","keyup.escape","click"],["searchInput",""],["panelWidth","600px",3,"displayWith","optionSelected"],["auto","matAutocomplete","autocompletePanel",""],[3,"value",4,"ngFor","ngForOf"],["matSuffix","","fxLayout","row"],["mat-icon-button","","matSuffix","","fxHide","",3,"fxShow","ngClass","click"],["mat-icon-button","","matSuffix","",3,"ngClass","click"],["mat-fab","","matTooltip","Watch a video with tips about resources",1,"show-video",3,"fxHide","click"],["fxLayout","row wrap","fxLayoutAlign","center center","fxLayoutGap","0px",1,"search-bar-header"],[3,"fxFlex"],[3,"value"]],template:function(t,e){if(1&t&&(Qo(0,"div",0),jo(1,mX,5,2,"div",1),Qo(2,"div",2),Qo(3,"mat-form-field",3),ra("click",function(t){return e.openAutocompletePanel(t)}),Qo(4,"input",4,5),ra("keyup.enter",function(){return e.updateSearch(!1)})("keyup.escape",function(){return e.updateSearch(!0)})("click",function(t){return e.openAutocompletePanel(t)}),Xo(),Qo(6,"mat-autocomplete",6,7),ra("optionSelected",function(t){return e.selectCategory(t)}),jo(9,fX,2,2,"mat-option",8),vc(10,"async"),Xo(),Qo(11,"div",9),Qo(12,"button",10),ra("click",function(){return e.updateSearch(!0)}),Qo(13,"mat-icon"),Na(14,"cancel"),Xo(),Xo(),Qo(15,"button",11),ra("click",function(){return e.updateSearch(!1)}),Qo(16,"mat-icon"),Na(17,"search"),Xo(),Xo(),Xo(),Xo(),Qo(18,"button",12),ra("click",function(){return e.showVideo()}),Qo(19,"mat-icon"),Na(20,"ondemand_video"),Xo(),Xo(),Xo(),Xo()),2&t){const t=Wo(5),i=Wo(7);ka("search-bar "+e.variant),dr(1),qo("ngIf","Search for Autism Resources"!=t.value),dr(2),qo("fxFlex",e.videoIsVisible?"calc(100% - 66px)":"100%"),dr(1),qo("formControl",e.searchBoxControl)("matAutocomplete",i),dr(2),qo("displayWith",e.optionText),dr(3),qo("ngForOf",wc(10,12,e.filteredOptions)),dr(3),qo("fxShow",e.hasWords)("ngClass",pc(14,gX,!e.hasWords)),dr(3),qo("ngClass",hc(16,_X)),dr(3),qo("fxHide",!e.videoIsVisible)}},directives:[o_,Jd,p_,Z_,Yk,k_,cE,_b,fA,Ub,xy,cA,Kd,Gk,TA,Ng,Qd,Pg,JT,AD,Jx],pipes:[ph],styles:[".search-bar[_ngcontent-%COMP%]{display:-ms-inline-flexbox;display:inline-flex;width:100%;margin-top:2em}.search-bar.hidden[_ngcontent-%COMP%]{display:block;position:fixed;top:0;left:100%}.search-bar[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .search-bar[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{margin:0;padding:0}.search-bar[_ngcontent-%COMP%] .mat-hint[_ngcontent-%COMP%]{font-size:1em} .search-bar mat-form-field .mat-icon{margin-top:6px;margin-bottom:-6px} .search-bar mat-form-field .mat-form-field-wrapper{padding:10px 0 0} .search-bar mat-form-field .mat-form-field-infix{padding-top:10px;padding-bottom:10px;border-top-width:0} .search-bar mat-form-field .mat-icon-button.hidden{display:none} .search-bar.dark-bg .mat-form-field-appearance-outline .mat-form-field-outline, .search-bar.dark-bg .mat-form-field-label, .search-bar.dark-bg .mat-hint, .search-bar.dark-bg input{color:#fff} .search-bar.dark-bg mat-form-field ::-moz-placeholder{color:hsla(0,0%,100%,.7)} .search-bar.dark-bg mat-form-field :-ms-input-placeholder{color:hsla(0,0%,100%,.7)} .search-bar.dark-bg mat-form-field ::placeholder{color:hsla(0,0%,100%,.7)} .search-bar.light-bg .mat-form-field-appearance-outline .mat-form-field-outline, .search-bar.light-bg .mat-form-field-label, .search-bar.light-bg .mat-hint, .search-bar.light-bg input{color:#000} .search-bar.light-bg mat-form-field ::-moz-placeholder{color:#666} .search-bar.light-bg mat-form-field :-ms-input-placeholder{color:#666} .search-bar.light-bg mat-form-field ::placeholder{color:#666} #search-field .mat-form-field-outline{background-color:#fff;border-radius:5px} .mat-option-text{font-size:16px;overflow:visible!important;text-overflow:unset!important}.search-bar-header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .search-bar-header[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{padding:0;margin:0}.btn-cancel[_ngcontent-%COMP%], .btn-search[_ngcontent-%COMP%]{margin-top:4px;margin-bottom:-4px}"]}),t})();function yX(t,e){if(1&t&&(Qo(0,"span",3),Na(1),Xo()),2&t){const t=ua();dr(1),Va(t.selectedSort.label)}}function vX(t,e){if(1&t){const t=ea();Qo(0,"mat-option",4),ra("click",function(){Be(t);const i=e.$implicit;return ua().sortMethodSelected.emit(i)}),Qo(1,"span",5),Na(2),Xo(),Xo()}if(2&t){const t=e.$implicit;qo("value",t)("ngClass","sort-by-"+t.name.toLowerCase()),dr(2),Va(t.label)}}let wX=(()=>{class t{constructor(){this.sortMethodSelected=new kc}ngOnInit(){}get sortMethodsList(){return Object.values(this.sortMethods)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-search-sort"]],inputs:{selectedSort:"selectedSort",sortMethods:"sortMethods"},outputs:{sortMethodSelected:"sortMethodSelected"},decls:7,vars:3,consts:[[3,"value","valueChange"],["class","selected-sort-label",4,"ngIf"],[3,"value","ngClass","click",4,"ngFor","ngForOf"],[1,"selected-sort-label"],[3,"value","ngClass","click"],[1,"sort-label"]],template:function(t,e){1&t&&(Qo(0,"mat-form-field"),Qo(1,"mat-label"),Na(2,"Sort By:"),Xo(),Qo(3,"mat-select",0),ra("valueChange",function(t){return e.selectedSort=t}),Qo(4,"mat-select-trigger"),jo(5,yX,2,1,"span",1),Xo(),jo(6,vX,3,3,"mat-option",2),Xo(),Xo()),2&t&&(dr(3),qo("value",e.selectedSort),dr(2),qo("ngIf",e.selectedSort),dr(1),qo("ngForOf",e.sortMethodsList))},directives:[Yk,Nk,rD,nD,Jd,Kd,Jx,Qd,Pg],styles:[".mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t})();function CX(t,e){if(1&t&&Ko(0,"app-details-link",3),2&t){const t=e.$implicit;qo("url",t.url)("label",t.label)("inverted",!0)("allCaps",!1)("size",1)("externalLink",!0)}}let xX=(()=>{class t{constructor(){this.playerVars={cc_load_policy:1,modestbranding:1,rel:0,showinfo:0}}get windowWidthFactor(){const t=window.innerWidth;return t<600?.7:t>=600&&t<960?.8:t>=960&&t<1280?.9:t>=1280?1:void 0}get videoWidthFactor(){switch(this.videoSize){case"large":return 1;case"medium":return.75;case"small":return.5}}get videoWidth(){return Math.floor(560*this.videoWidthFactor*this.windowWidthFactor)}get videoHeight(){return Math.floor(315*this.videoWidthFactor*this.windowWidthFactor)}ngOnInit(){}hideVideo(){localStorage.setItem("shouldHideTutorialVideo","true")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-tutorial-video"]],inputs:{videoSize:"videoSize",videoId:"videoId",instructions:"instructions",links:"links"},decls:8,vars:9,consts:[["mat-mini-fab","",1,"hide-video",3,"click"],[3,"width","height","videoId","playerVars"],["class","video-link",3,"url","label","inverted","allCaps","size","externalLink",4,"ngFor","ngForOf"],[1,"video-link",3,"url","label","inverted","allCaps","size","externalLink"]],template:function(t,e){1&t&&(Qo(0,"div"),Qo(1,"button",0),ra("click",function(){return e.hideVideo()}),Qo(2,"mat-icon"),Na(3,"close"),Xo(),Xo(),Ko(4,"youtube-player",1),Qo(5,"markdown"),Na(6),Xo(),jo(7,CX,1,6,"app-details-link",2),Xo()),2&t&&(Ga("video-preview ",e.videoSize,""),dr(4),qo("width",e.videoWidth)("height",e.videoHeight)("videoId",e.videoId)("playerVars",e.playerVars),dr(2),Va(e.instructions),dr(1),qo("ngForOf",e.links))},directives:[TA,JT,iF,BV,Kd,$U],styles:[".video-preview[_ngcontent-%COMP%]{position:relative;display:block;margin:2em;padding:24px;background-color:#232d4b;color:#fff}.video-preview[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;text-align:center;padding:.5em}.video-preview.large[_ngcontent-%COMP%]{width:440px}@media (min-width:600px){.video-preview.large[_ngcontent-%COMP%]{width:496px}}@media (min-width:960px){.video-preview.large[_ngcontent-%COMP%]{width:552px}}@media (min-width:1280px){.video-preview.large[_ngcontent-%COMP%]{width:608px}}.video-preview.medium[_ngcontent-%COMP%]{width:342px}@media (min-width:600px){.video-preview.medium[_ngcontent-%COMP%]{width:384px}}@media (min-width:960px){.video-preview.medium[_ngcontent-%COMP%]{width:426px}}@media (min-width:1280px){.video-preview.medium[_ngcontent-%COMP%]{width:468px}}.video-preview.small[_ngcontent-%COMP%]{width:244px}@media (min-width:600px){.video-preview.small[_ngcontent-%COMP%]{width:272px}}@media (min-width:960px){.video-preview.small[_ngcontent-%COMP%]{width:300px}}@media (min-width:1280px){.video-preview.small[_ngcontent-%COMP%]{width:328px}}.hide-video[_ngcontent-%COMP%]{position:absolute;top:-12px;right:-12px}.video-link[_ngcontent-%COMP%]{display:block;margin-top:1em;color:#e57200}"]}),t})();function SX(t,e){if(1&t){const t=ea();Qo(0,"div"),Qo(1,"button",1),ra("click",function(){return Be(t),ua().openAdd()}),Qo(2,"mat-icon"),Na(3,"add"),Xo(),Xo(),Xo()}if(2&t){const t=ua();dr(1),ma("matTooltip",t.addLabel)}}let kX=(()=>{class t{constructor(t){this.router=t}ngOnInit(){}openAdd(){this.router.navigateByUrl(this.addLink)}}return t.\u0275fac=function(e){return new(e||t)($o(lG))},t.\u0275cmp=Xt({type:t,selectors:[["app-add-button"]],inputs:{currentUser:"currentUser",addLink:"addLink",addLabel:"addLabel"},decls:1,vars:1,consts:[[4,"ngIf"],["mat-mini-fab","","color","primary","aria-label","Add",1,"add-button",3,"matTooltip","click"]],template:function(t,e){1&t&&jo(0,SX,4,1,"div",0),2&t&&qo("ngIf",e.currentUser&&e.currentUser.permissions.includes("create_resource"))},directives:[Jd,TA,AD,JT],styles:[""]}),t})();function AX(t,e){if(1&t){const t=ea();Zo(0),Qo(1,"mat-list-item",5),ra("click",function(){Be(t);const i=e.$implicit;return ua(2).selectCategory(i)}),Qo(2,"mat-icon"),Na(3,"chevron_left"),Xo(),Qo(4,"span",6),Na(5),Xo(),Xo(),Jo()}if(2&t){const t=e.$implicit;dr(5),Ba(" ",t.name," ")}}function OX(t,e){if(1&t&&(Qo(0,"mat-list",3),jo(1,AX,6,1,"ng-container",4),Xo()),2&t){const t=ua();dr(1),qo("ngForOf",t.parentList())}}function EX(t,e){if(1&t&&(Qo(0,"span",13),Na(1),Xo()),2&t){const t=ua().$implicit;dr(1),Ha("",t.name," - ",t.hit_count," result")}}function TX(t,e){if(1&t&&(Qo(0,"span",13),Na(1),Xo()),2&t){const t=ua().$implicit;dr(1),Ha("",t.name," - ",t.hit_count," results")}}function PX(t,e){1&t&&(Qo(0,"mat-icon",14),Na(1,"arrow_right "),Xo())}function DX(t,e){if(1&t){const t=ea();Qo(0,"button",10),ra("click",function(){Be(t);const i=e.$implicit;return ua(2).selectCategory(i)}),jo(1,EX,2,2,"span",11),jo(2,TX,2,2,"span",11),jo(3,PX,2,0,"mat-icon",12),Xo()}if(2&t){const t=e.$implicit,i=ua(2);dr(1),qo("ngIf",1==t.hit_count),dr(1),qo("ngIf",1!=t.hit_count),dr(1),qo("ngIf",i.hasChildren(t))}}function MX(t,e){if(1&t&&(Zo(0),Qo(1,"button",7),Qo(2,"mat-icon"),Na(3,"topic"),Xo(),Na(4),Qo(5,"mat-icon"),Na(6,"arrow_drop_down"),Xo(),Xo(),Qo(7,"mat-menu",null,8),jo(9,DX,4,3,"button",9),Xo(),Jo()),2&t){const t=Wo(8),e=ua();dr(1),qo("matMenuTriggerFor",t)("ngClass.gt-sm","select-topic"),dr(3),Ba(" Filter by ",e.category.level<=0?"Topic":"Subtopic"," "),dr(5),qo("ngForOf",e.categories)}}function IX(t,e){1&t&&Ko(0,"div",15)}let RX=(()=>{class t{constructor(t,e){this.categoriesService=t,this.changeDetectorRef=e,this.categorySelected=new kc,this.categoriesById={},this.loading=!0,this.categoriesService.categoriesById&&(this.categoriesById=this.categoriesService.categoriesById,this.loading=!1),this.categoriesService.updated.subscribe(()=>{this.categoriesById=this.categoriesService.categoriesById,this.loading=!1,this.changeDetectorRef.detectChanges()})}get categories(){return this.getChildrenWithHits(this.category)}selectCategory(t){this.categorySelected.emit(t)}parentList(t=this.category,e=[]){return t.parent?(e.unshift(t.parent),this.parentList(t.parent,e)):e}hasChildren(t){const e=null===t.id?t:this.categoriesById[t.id];return e&&e.children&&e.children.length>0}getChildrenWithHits(t){return this.hasChildren(t)?t.children.filter(t=>t.hit_count>0):[]}}return t.\u0275fac=function(e){return new(e||t)($o(dX),$o(Vl))},t.\u0275cmp=Xt({type:t,selectors:[["app-search-topics"]],inputs:{category:"category"},outputs:{categorySelected:"categorySelected"},decls:4,vars:3,consts:[["class","parent-topics","dense","",4,"ngIf"],[4,"ngIf","ngIfElse"],["loadingMessage",""],["dense","",1,"parent-topics"],[4,"ngFor","ngForOf"],[1,"show-all",3,"click"],[1,"filter-facet-label"],["mat-button","",3,"matMenuTriggerFor","ngClass.gt-sm"],["topicMenu",""],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"],["class","child-label",4,"ngIf"],["matTooltip","Subtopics",4,"ngIf"],[1,"child-label"],["matTooltip","Subtopics"],[1,"placeholder"]],template:function(t,e){if(1&t&&(jo(0,OX,2,1,"mat-list",0),jo(1,MX,10,4,"ng-container",1),jo(2,IX,1,0,"ng-template",null,2,jc)),2&t){const t=Wo(3);qo("ngIf",e.category&&e.parentList().length>0),dr(1),qo("ngIf",!e.loading&&e.category&&e.category.children&&e.category.children.length>0)("ngIfElse",t)}},directives:[Jd,fP,Kd,bP,JT,TA,FP,Pg,MP,EP,AD],styles:[".mat-hint{display:block;color:#e57200;font-size:1rem;padding-top:.5rem}.mat-menu-trigger[_ngcontent-%COMP%]{min-width:100%;min-height:36px}div.current-facet-label[_ngcontent-%COMP%]{cursor:pointer;font-weight:700;color:#4e4e4e;padding:5px 0}.show-all[_ngcontent-%COMP%]{cursor:pointer}button[_ngcontent-%COMP%]{width:100%;text-align:left} .mat-menu-panel{max-width:400px!important;width:400px} .mat-menu-panel .mat-menu-content{width:auto} .mat-menu-panel .mat-menu-content .mat-menu-item{text-overflow:unset}.parent-topics[_ngcontent-%COMP%], .placeholder[_ngcontent-%COMP%], .select-topic[_ngcontent-%COMP%], .parent-topics mat-list-item{min-width:100%;min-height:36px}"]}),t})();function LX(t,e){if(1&t){const t=ea();Qo(0,"button",4),ra("click",function(){Be(t);const i=e.$implicit;return ua(2).select(i.value)}),Na(1),Xo()}if(2&t){const t=e.$implicit,i=ua(2);dr(1),za(" ",i.label_map[t.value]," - ",t.count," result",1===t.count?"":"s"," ")}}function FX(t,e){if(1&t&&(Qo(0,"mat-hint"),Na(1),Xo()),2&t){const t=ua(2);dr(1),Va(t.notApplicableMessage)}}function NX(t,e){if(1&t){const t=ea();Zo(0),Qo(1,"button",2),Qo(2,"mat-icon"),Na(3),Xo(),Na(4),Qo(5,"mat-icon"),Na(6,"arrow_drop_down"),Xo(),Xo(),Qo(7,"mat-menu",null,3),Qo(9,"button",4),ra("click",function(){return Be(t),ua().select()}),Na(10),Xo(),jo(11,LX,2,3,"button",5),Xo(),jo(12,FX,2,1,"mat-hint",6),Jo()}if(2&t){const t=Wo(8),e=ua();dr(1),qo("matMenuTriggerFor",t),dr(2),Va(e.label_icon),dr(1),Ba(" ",e.hasSelection()?e.label_map[e.selectedAgg().value]:e.label_title," "),dr(6),Va(e.label_any),dr(1),qo("ngForOf",e.aggregations),dr(1),qo("ngIf",e.isNotApplicable)}}function VX(t,e){1&t&&Ko(0,"app-loading",7),2&t&&qo("isField",!0)}let BX=(()=>{class t{constructor(){this.filterSelected=new kc}ngOnInit(){}select(t){this.filterSelected.emit(t)}hasSelection(){return 1===this.aggregations.filter(t=>t.is_selected).length}selectedAgg(){return this.hasSelection()?this.aggregations.filter(t=>t.is_selected)[0]:{value:null,count:0,is_selected:!0}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-search-filter"]],inputs:{label_title:"label_title",label_icon:"label_icon",label_any:"label_any",label_map:"label_map",aggregations:"aggregations",isNotApplicable:"isNotApplicable",notApplicableMessage:"notApplicableMessage"},outputs:{filterSelected:"filterSelected"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["loadingMessage",""],["mat-button","",3,"matMenuTriggerFor"],["menuItems",""],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"isField"]],template:function(t,e){if(1&t&&(jo(0,NX,13,6,"ng-container",0),jo(1,VX,1,1,"ng-template",null,1,jc)),2&t){const t=Wo(2);qo("ngIf",e.aggregations)("ngIfElse",t)}},directives:[Jd,TA,FP,JT,MP,EP,Kd,Fk,Qj],styles:[".mat-hint{display:block;color:#e57200;font-size:1rem;padding-top:.5rem}button[_ngcontent-%COMP%]{width:100%;text-align:left} .mat-menu-panel{max-width:400px!important;width:400px} .mat-menu-panel .mat-menu-content{width:auto} .mat-menu-panel .mat-menu-content .mat-menu-item{text-overflow:unset}.mat-menu-trigger[_ngcontent-%COMP%]{min-width:100%;min-height:36px}"]}),t})();function HX(t,e){if(1&t){const t=ea();Zo(0),Qo(1,"mat-chip",8),ra("click",function(){return Be(t),ua(2).mappedResultsChipClicked.emit(!1)}),Qo(2,"span",9),Na(3,"Mapped results only"),Xo(),Qo(4,"mat-icon"),Na(5,"close"),Xo(),Xo(),Jo()}}function zX(t,e){if(1&t){const t=ea();Zo(0),Qo(1,"mat-chip",10),ra("click",function(){return Be(t),ua(2).keywordChipClicked.emit()}),Qo(2,"span",9),Na(3),Xo(),Qo(4,"mat-icon"),Na(5,"close"),Xo(),Xo(),Jo()}if(2&t){const t=ua(2);dr(3),Ba('"',t.query.words,'"')}}function GX(t,e){if(1&t){const t=ea();Zo(0),Qo(1,"mat-chip",11),ra("click",function(){return Be(t),ua(2).ageRangeChipClicked.emit()}),Qo(2,"span",9),Na(3),Xo(),Qo(4,"mat-icon"),Na(5,"close"),Xo(),Xo(),Jo()}if(2&t){const t=e.$implicit,i=ua(2);dr(3),Va(i.ageLabels[t])}}function UX(t,e){if(1&t){const t=ea();Zo(0),Qo(1,"mat-chip",12),ra("click",function(){return Be(t),ua(2).languageChipClicked.emit()}),Qo(2,"span",9),Na(3),Xo(),Qo(4,"mat-icon"),Na(5,"close"),Xo(),Xo(),Jo()}if(2&t){const t=e.$implicit,i=ua(2);dr(3),Va(i.languageLabels[t])}}function jX(t,e){if(1&t){const t=ea();Qo(0,"div"),Qo(1,"mat-chip",13),ra("click",function(){return Be(t),ua(2).typeChipClicked.emit()}),Qo(2,"span",9),Na(3),Xo(),Qo(4,"mat-icon"),Na(5,"close"),Xo(),Xo(),Xo()}if(2&t){const t=ua(2);dr(3),Va(t.typeLabels[t.query.types[0]])}}function WX(t,e){if(1&t&&(Zo(0),Na(1),Qo(2,"mat-icon"),Na(3,"chevron_right"),Xo(),Jo()),2&t){const t=ua(3);dr(1),Ba(" ",t.query.category.parent.parent.name," ")}}function $X(t,e){if(1&t&&(Zo(0),Na(1),Qo(2,"mat-icon"),Na(3,"chevron_right"),Xo(),Jo()),2&t){const t=ua(3);dr(1),Ba(" ",t.query.category.parent.name," ")}}function qX(t,e){if(1&t){const t=ea();Zo(0),Qo(1,"mat-chip",14),ra("click",function(){return Be(t),ua(2).categoryChipClicked.emit()}),Qo(2,"div",15),jo(3,WX,4,1,"ng-container",5),jo(4,$X,4,1,"ng-container",5),Na(5),Xo(),Qo(6,"mat-icon"),Na(7,"close"),Xo(),Xo(),Jo()}if(2&t){const t=ua(2);dr(3),qo("ngIf",t.query.category.parent&&t.query.category.parent.parent),dr(1),qo("ngIf",t.query.category.parent),dr(1),Ba(" ",t.query.category.name," ")}}function YX(t,e){if(1&t){const t=ea();Qo(0,"a",16),ra("click",function(){return Be(t),ua(2).clearAllClicked.emit()}),Na(1,"Clear All"),Xo()}}function QX(t,e){if(1&t&&(Qo(0,"div",1),Qo(1,"h4",2),Na(2,"Selected Filters:"),Xo(),Qo(3,"mat-chip-list",3,4),jo(5,HX,6,0,"ng-container",5),jo(6,zX,6,1,"ng-container",5),jo(7,GX,6,1,"ng-container",6),jo(8,UX,6,1,"ng-container",6),jo(9,jX,6,1,"div",5),jo(10,qX,8,3,"ng-container",5),Xo(),jo(11,YX,2,0,"a",7),Xo()),2&t){const t=ua();dr(5),qo("ngIf",t.restrictToMappedResults),dr(1),qo("ngIf",t.query.hasWords),dr(1),qo("ngForOf",t.query.ages),dr(1),qo("ngForOf",t.query.languages),dr(1),qo("ngIf",t.query.hasTypes),dr(1),qo("ngIf",t.query.hasCategory),dr(1),qo("ngIf",t.query.hasFilters)}}let XX=(()=>{class t{constructor(){this.mappedResultsChipClicked=new kc,this.keywordChipClicked=new kc,this.ageRangeChipClicked=new kc,this.languageChipClicked=new kc,this.typeChipClicked=new kc,this.categoryChipClicked=new kc,this.clearAllClicked=new kc}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-search-filters-breadcrumbs"]],inputs:{query:"query",restrictToMappedResults:"restrictToMappedResults",ageLabels:"ageLabels",languageLabels:"languageLabels",typeLabels:"typeLabels"},outputs:{mappedResultsChipClicked:"mappedResultsChipClicked",keywordChipClicked:"keywordChipClicked",ageRangeChipClicked:"ageRangeChipClicked",languageChipClicked:"languageChipClicked",typeChipClicked:"typeChipClicked",categoryChipClicked:"categoryChipClicked",clearAllClicked:"clearAllClicked"},decls:1,vars:1,consts:[["fxLayout","row","fxFlex.gt-sm","100%","fxLayoutGap","10px",4,"ngIf"],["fxLayout","row","fxFlex.gt-sm","100%","fxLayoutGap","10px"],["fxShow","","fxHide.lt-md",""],["ngClass.lt-md","applied-filters-small",1,"applied-filters"],["appliedFilters",""],[4,"ngIf"],[4,"ngFor","ngForOf"],["mat-button","","fxShow","","fxHide.lt-md","",3,"click",4,"ngIf"],[1,"applied-filter","applied-filter-mapped",3,"click"],[1,"applied-filter-label"],[1,"applied-filter","applied-filter-keyword",3,"click"],[1,"applied-filter","applied-filter-age",3,"click"],[1,"applied-filter","applied-filter-language",3,"click"],[1,"applied-filter","applied-filter-type",3,"click"],[1,"applied-filter","applied-filter-topic",3,"click"],["fxLayout","row","fxLayoutAlign","center center",1,"applied-filter-label"],["mat-button","","fxShow","","fxHide.lt-md","",3,"click"]],template:function(t,e){1&t&&jo(0,QX,12,7,"div",0),2&t&&qo("ngIf",e.query.hasFilters)},directives:[Jd,o_,k_,p_,Ng,OO,Pg,Kd,wO,JT,Z_,PA],styles:[".applied-filters[_ngcontent-%COMP%]{grid-area:filters;margin-left:0;justify-self:start}.applied-filters[_ngcontent-%COMP%] .mat-chip-list-wrapper{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;overflow-x:auto;padding-bottom:1em}.applied-filters[_ngcontent-%COMP%] .mat-chip-list-wrapper .mat-chip{-ms-flex:0 0 auto;flex:0 0 auto}.applied-filters[_ngcontent-%COMP%] .applied-filter[_ngcontent-%COMP%]{color:#fff;background-color:#e57200}.applied-filters[_ngcontent-%COMP%] .applied-filter[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:.75rem;margin-right:-.25rem;font-size:1.25rem;line-height:1.25}.applied-filters[_ngcontent-%COMP%] .applied-filter[_ngcontent-%COMP%] .applied-filter-label[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:0}.applied-filters.applied-filters-small[_ngcontent-%COMP%] .applied-filter[_ngcontent-%COMP%]{font-size:.75rem}.applied-filters.applied-filters-small[_ngcontent-%COMP%] .applied-filter[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:1rem;line-height:1.5}"]}),t})();const KX=["paginator"],ZX=["mapTemplate"];function JX(t,e){if(1&t&&Ko(0,"app-tutorial-video",61),2&t){const t=ua();qo("videoSize",t.videoSize)("videoId",t.videoId)("instructions",t.videoInstructions)("links",t.videoLinks)}}function tK(t,e){if(1&t&&Ko(0,"app-tutorial-video",62),2&t){const t=ua();qo("videoSize",t.videoSize)("videoId",t.videoId)("instructions",t.videoInstructions)("links",t.videoLinks)}}function eK(t,e){if(1&t&&Ko(0,"app-add-button",63),2&t){const t=ua();qo("addLabel","Add Resource")("addLink","resources/add")("currentUser",t.currentUser)}}function iK(t,e){if(1&t&&Ko(0,"app-type-icon",64),2&t){const t=ua();qo("iconType",t.selectedType&&t.selectedType.name)("size",1)}}function nK(t,e){if(1&t&&(Qo(0,"span",65),Na(1),Xo()),2&t){const t=ua();dr(1),Va(t.selectedType.label)}}function sK(t,e){if(1&t){const t=ea();Qo(0,"mat-option",66),ra("click",function(){Be(t);const i=e.$implicit;return ua().selectType(i.name)}),Ko(1,"app-type-icon",64),Qo(2,"span",65),Na(3),Xo(),Xo()}if(2&t){const t=e.$implicit;qo("value",t),dr(1),qo("iconType",t.name)("size",1),dr(2),Va(t.label)}}function rK(t,e){if(1&t){const t=ea();Qo(0,"app-search-topics",67),ra("categorySelected",function(e){return Be(t),ua().selectCategory(e)}),Xo()}2&t&&qo("category",ua().selectedCategory)("ngClass","filter-by-topic")}function oK(t,e){if(1&t){const t=ea();Qo(0,"div"),Qo(1,"app-search-filter",68),ra("filterSelected",function(e){return Be(t),ua().selectAgeRange(e)}),Xo(),Xo()}if(2&t){const t=ua();dr(1),qo("aggregations",t.query.age_counts)("label_title","Filter by Age")("label_any","Any age")("label_map",t.ageLabels)("label_icon","cake")("ngClass","filter-by-age")("isNotApplicable",!t.loading&&!t.query.hasAgeCounts)("notApplicableMessage","No age restrictions available for these search results.")}}function aK(t,e){if(1&t){const t=ea();Qo(0,"div"),Qo(1,"app-search-filter",68),ra("filterSelected",function(e){return Be(t),ua().selectLanguage(e)}),Xo(),Xo()}if(2&t){const t=ua();dr(1),qo("aggregations",t.query.language_counts)("label_title","Filter by Language")("label_any","Any language")("label_map",t.languageLabels)("label_icon","language")("ngClass","filter-by-language")("isNotApplicable",!t.loading&&!t.query.hasLanguageCounts)("notApplicableMessage","No language restrictions available for these search results.")}}function lK(t,e){if(1&t&&Ko(0,"app-tutorial-video",62),2&t){const t=ua();qo("videoSize",t.videoSize)("videoId",t.videoId)("instructions",t.videoInstructions)("links",t.videoLinks)}}function cK(t,e){if(1&t&&Ko(0,"app-tutorial-video",61),2&t){const t=ua();qo("videoSize",t.videoSize)("videoId",t.videoId)("instructions",t.videoInstructions)("links",t.videoLinks)}}function uK(t,e){1&t&&(Qo(0,"div",69),Na(1,"All Resources"),Xo())}function dK(t,e){if(1&t&&(Qo(0,"div"),Ko(1,"app-type-icon",64),Na(2),Xo()),2&t){const t=ua().$implicit;Ga("type-buttons ",t.name,""),dr(1),qo("iconType",t.name)("size",1),dr(1),Ba(" ",t.label," ")}}function hK(t,e){1&t&&(Qo(0,"mat-tab"),jo(1,dK,3,6,"ng-template",32),Xo())}function pK(t,e){if(1&t&&(Zo(0),Na(1),Jo()),2&t){const t=ua();dr(1),Ba("",t.numTotalResults," results")}}function mK(t,e){if(1&t&&(Zo(0),Na(1),Jo()),2&t){const t=ua();dr(1),Ba("",t.hits.length," mapped results")}}function fK(t,e){1&t&&(Qo(0,"div",74),Qo(1,"h2"),Na(2,"No results currently available."),Xo(),Qo(3,"p"),Na(4,"We could not find any results for your search. Please try removing some of the conditions by clicking on the 'x' in the filter tiles above. This will broaden the search and give you more results."),Xo(),Qo(5,"h3"),Na(6,"Check back soon for more updates!"),Xo(),Xo())}function gK(t,e){if(1&t&&(Qo(0,"h4"),Na(1),Xo()),2&t){const t=ua(4);dr(1),za("Showing ",t.numResultsFrom,"-",t.numResultsTo," of ",t.numTotalResults," results")}}function _K(t,e){if(1&t&&(Qo(0,"h4"),Na(1),Xo()),2&t){const t=ua(4);dr(1),za("Showing ",t.numResultsFrom,"-",t.numResultsTo," of ",t.numTotalResults," mapped results.")}}function bK(t,e){if(1&t&&(Qo(0,"div",77),jo(1,gK,2,3,"h4",24),jo(2,_K,2,3,"h4",24),Xo()),2&t){const t=ua(3);zo("data-num-results",t.restrictToMappedResults?t.hits.length:t.numTotalResults),dr(1),qo("ngIf",!t.restrictToMappedResults),dr(1),qo("ngIf",t.restrictToMappedResults)}}function yK(t,e){if(1&t){const t=ea();Qo(0,"div",75),jo(1,bK,3,3,"div",76),Qo(2,"div",72),Qo(3,"app-search-sort",27),ra("sortMethodSelected",function(e){return Be(t),ua(2).reSort(e.name,!0)}),Xo(),Xo(),Xo()}if(2&t){const t=ua(2);dr(1),qo("ngIf",t.paginatorElement),dr(2),qo("selectedSort",t.selectedSort)("sortMethods",t.sortMethods)}}function vK(t,e){if(1&t){const t=ea();Qo(0,"app-search-filters-breadcrumbs",78),ra("ageRangeChipClicked",function(){return Be(t),ua(2).selectAgeRange()})("categoryChipClicked",function(){return Be(t),ua(2).removeCategory()})("clearAllClicked",function(){return Be(t),ua(2).clearAllFilters()})("keywordChipClicked",function(){return Be(t),ua(2).removeWords()})("languageChipClicked",function(){return Be(t),ua(2).selectLanguage()})("mappedResultsChipClicked",function(e){return Be(t),ua(2).listMapResultsOnly(e)})("typeChipClicked",function(){return Be(t),ua(2).selectType()}),Xo()}if(2&t){const t=ua(2);qo("ageLabels",t.ageLabels)("fxHide",!t.showBreadcrumbs())("fxShow",t.showBreadcrumbs())("languageLabels",t.languageLabels)("query",t.query)("restrictToMappedResults",t.restrictToMappedResults)("typeLabels",t.typeLabels)}}function wK(t,e){if(1&t&&Ko(0,"app-search-result",80),2&t){const t=e.$implicit,i=e.index,n=ua(3);qo("hit",t)("mapLoc",n.loc)("currentUser",n.currentUser)("ngClass","sort-order-"+i)}}function CK(t,e){if(1&t&&(Qo(0,"div"),jo(1,wK,1,4,"app-search-result",79),Xo()),2&t){const t=ua(2);dr(1),qo("ngForOf",t.hits)}}function xK(t,e){if(1&t&&(Zo(0),jo(1,fK,7,0,"div",70),jo(2,yK,4,3,"div",71),Qo(3,"div",72),jo(4,vK,1,7,"app-search-filters-breadcrumbs",73),Xo(),jo(5,CK,2,1,"div",24),Jo()),2&t){const t=ua();dr(1),qo("ngIf",0===(null==t.query?null:t.query.hits.length)),dr(1),qo("ngIf",0!=(null==t.query?null:t.query.total)),dr(2),qo("ngIf",t.query),dr(1),qo("ngIf",t.hits.length>0)}}function SK(t,e){1&t&&(Qo(0,"mat-icon"),Na(1,"check_box_outline_blank"),Xo())}function kK(t,e){1&t&&(Qo(0,"mat-icon"),Na(1,"check_box"),Xo())}function AK(t,e){1&t&&(Zo(0),Na(1,"Set Location"),Jo())}function OK(t,e){if(1&t&&(Zo(0),Na(1),Jo()),2&t){const t=ua(2);dr(1),Ba("Location: ",t.storedZip,"")}}function EK(t,e){1&t&&(Zo(0),Na(1,"Your current location"),Jo())}function TK(t,e){1&t&&(Zo(0),Na(1,"Using Map's Center"),Jo())}function PK(t,e){if(1&t){const t=ea();Qo(0,"button",90),ra("click",function(e){Be(t),ua();const i=Wo(1);return ua().useGPSLocation(e,i)}),Na(1,"Current Location"),Xo()}}function DK(t,e){if(1&t){const t=ea();Qo(0,"mat-expansion-panel",81,82),ra("afterExpand",function(){Be(t);const e=Wo(10);return ua().focusOnInput(e)}),Qo(2,"mat-expansion-panel-header"),jo(3,AK,2,0,"ng-container",24),jo(4,OK,2,1,"ng-container",24),jo(5,EK,2,0,"ng-container",24),jo(6,TK,2,0,"ng-container",24),Xo(),Qo(7,"div",83),Qo(8,"mat-form-field",84),Qo(9,"input",85,86),ra("ngModelChange",function(e){return Be(t),ua().storedZip=e})("keyup.enter",function(e){Be(t);const i=Wo(1);return ua().submitZip(e,i)}),Xo(),Xo(),Qo(11,"div",87),Qo(12,"button",88),ra("click",function(e){Be(t);const i=Wo(1);return ua().submitZip(e,i)}),Na(13,"Save"),Xo(),jo(14,PK,2,0,"button",89),Xo(),Xo(),Xo()}if(2&t){const t=ua();qo("ngClass","zipCodeSetButton mat-elevation-z1")("expanded",t.showLocationWindow()),dr(3),qo("ngIf",t.locationMode===t.locationModes.default),dr(1),qo("ngIf",t.locationMode===t.locationModes.zipcode),dr(1),qo("ngIf",t.locationMode===t.locationModes.gps),dr(1),qo("ngIf",t.locationMode===t.locationModes.map),dr(1),qo("ngClass","zipCodeSet"),dr(2),qo("ngModel",t.storedZip),dr(5),qo("ngIf",t.gpsEnabled)}}const MK=function(){return{x:48,y:48}},IK=function(t){return{url:"/assets/map/your-location.svg",anchor:t}};function RK(t,e){if(1&t&&Ko(0,"agm-marker",95),2&t){const t=ua(2);qo("latitude",t.loc.lat)("longitude",t.loc.lng)("iconUrl",pc(4,IK,hc(3,MK)))}}const LK=function(){return{x:24,y:24}},FK=function(t,e){return{url:t,anchor:e}};function NK(t,e){if(1&t){const t=ea();Zo(0),Qo(1,"agm-circle",96),ra("circleClick",function(){Be(t);const i=e.$implicit;return ua(2).showInfoWindow(i)}),Xo(),Qo(2,"agm-marker",97),ra("markerClick",function(){Be(t);const i=e.$implicit;return ua(2).showInfoWindow(i)}),Xo(),Jo()}if(2&t){const t=e.$implicit,i=ua(2);dr(1),qo("latitude",t.latitude+i.mapJitter(t.id,!0))("longitude",t.longitude+i.mapJitter(t.id,!1))("radius",i.circleRadius)("fillColor","location"===t.type.toLowerCase()?"#6C799C":"#E57200")("clickable",!0)("visible",i.isInfoWindowOpen&&i.selectedMapHit.id==t.id),dr(1),qo("latitude",t.latitude+i.mapJitter(t.id,!0))("longitude",t.longitude+i.mapJitter(t.id,!1))("iconUrl",mc(10,FK,"/assets/map/"+t.type+"-no-address.svg",hc(9,LK)))}}const VK=function(){return{x:16,y:16}};function BK(t,e){if(1&t){const t=ea();Zo(0),Qo(1,"agm-marker",97),ra("markerClick",function(){Be(t);const i=e.$implicit;return ua(2).showInfoWindow(i)}),Xo(),Jo()}if(2&t){const t=e.$implicit;dr(1),qo("latitude",t.latitude)("longitude",t.longitude)("iconUrl",mc(4,FK,"/assets/map/"+t.type+".svg",hc(3,VK)))}}function HK(t,e){if(1&t){const t=ea();Zo(0),Qo(1,"agm-info-window",98),ra("infoWindowClose",function(){return Be(t),ua(2).closeInfoWindow()}),Qo(2,"a",99),ra("click",function(){Be(t);const e=ua(2);return e.goSelectedMapResource(e.selectedMapResource)}),Na(3),Xo(),Qo(4,"a",100),ra("click",function(){Be(t);const e=ua(2);return e.goSelectedMapResource(e.selectedMapResource)}),Na(5),Xo(),Xo(),Jo()}if(2&t){const t=ua(2);dr(1),qo("isOpen",t.isInfoWindowOpen)("latitude",t.selectedMapHit.latitude)("longitude",t.selectedMapHit.longitude),dr(1),ga("href","/#/",t.selectedMapResource.type.toLowerCase(),"/",t.selectedMapResource.id,"",ms),dr(1),Va(t.selectedMapResource.title),dr(2),Ba(" ",t.selectedMapHit.no_address?"In-home therapy":t.selectedMapHit.type," Details")}}function zK(t,e){if(1&t){const t=ea();Qo(0,"agm-map",91,92),ra("mapReady",function(e){return Be(t),ua().mapLoad(e)})("mapClick",function(){return Be(t),ua().closeInfoWindow()})("zoomChange",function(e){return Be(t),ua().updateZoom(e)})("boundsChange",function(e){return Be(t),ua().updateResultsList(e)}),Qo(2,"agm-marker-cluster",93),jo(3,RK,1,6,"agm-marker",94),jo(4,NK,3,13,"ng-container",33),jo(5,BK,2,7,"ng-container",33),Xo(),jo(6,HK,6,7,"ng-container",24),Xo()}if(2&t){const t=ua();qo("latitude",t.loc.lat)("longitude",t.loc.lng)("streetViewControl",!1)("zoom",t.mapZoomLevel?t.mapZoomLevel:t.defaultZoom)("scrollwheel",null),dr(2),qo("imagePath","assets/map/m")("maxZoom",8),dr(1),qo("ngIf",t.loc),dr(1),qo("ngForOf",t.hitsWithNoAddress),dr(1),qo("ngForOf",t.hitsWithAddress),dr(1),qo("ngIf",t.selectedMapResource)}}const GK=function(){return["/studies"]};function UK(t,e){if(1&t&&(Qo(0,"div",101),Qo(1,"mat-card"),Qo(2,"mat-card-content"),Qo(3,"h3"),Na(4,"Highlighted Study: "),Qo(5,"a",102),Na(6),Xo(),Xo(),Qo(7,"p"),Na(8),Xo(),Qo(9,"a",103),Na(10," Explore other studies"),Xo(),Xo(),Xo(),Xo()),2&t){const t=ua();dr(5),fa("href","/#/study/",t.highlightedStudy.id,"",ms),dr(1),Va(t.highlightedStudy.short_title),dr(2),Va(t.highlightedStudy.short_description),dr(1),qo("routerLink",hc(4,GK))}}function jK(t,e){if(1&t&&(Qo(0,"span",104),Qo(1,"a",105),Ko(2,"img",106),Xo(),Xo()),2&t){const t=e.$implicit;dr(1),qo("href",t.url,ms)("title",t.name)("matTooltip",t.shortName+" - "+t.description),dr(1),qo("alt",t.shortName)("src",t.image,ms)}}function WK(t,e){if(1&t){const t=ea();Qo(0,"app-border-box-tile",107),ra("click",function(){return Be(t),ua().submitResource()}),Xo()}2&t&&qo("title","Can't find your resource on drive?")("subtitle","Click Here To Submit")("linkSize",2)}function $K(t,e){1&t&&Ko(0,"app-loading")}const qK=function(t){return{ghost:t}},YK=function(){return{width:"40%"}},QK=function(){return{marginTop:"120vh"}};HTMLDivElement;var XK=function(t){return t.default="default",t.zipcode="zipcode",t.gps="gps",t.map="map",t}({});let KK=(()=>{class t{constructor(t,e,i,n,s,r,o,a,l,c){this.api=t,this.authenticationService=e,this.changeDetectorRef=i,this.googleAnalyticsService=n,this.location=s,this.meta=r,this.renderer=o,this.route=a,this.router=l,this.searchService=c,this.animatePage=!0,this.querySubject=new k,this.mapQuerySubject=new k,this.resourceTypes=OU.all_resources(),this.selectedType=OU.ALL_RESOURCES,this.selectedTypeTabIndex=0,this.ageLabels=EU.labels,this.languageLabels=TU.labels,this.typeLabels=OU.labels,this.ageOptions=[],this.languageOptions=[],this.loading=!0,this.pageSizeOptions=[20,60,100],this.pageSize=this.pageSizeOptions[0],this.gpsEnabled=!0,this.defaultLoc={lat:37.32248,lng:-78.36926},this.loc=tX()()(this.defaultLoc),this.locationModes=XK,this.locationMode=XK.default,this.hitsWithNoAddress=[],this.hitsWithAddress=[],this.defaultZoom=7,this.resourceGatherers=[{name:"Charlottesville Region Autism Action Group",shortName:"CRAAG",description:"\n A parent-run advocacy group, one of three active all-volunteer regional Autism Action Groups\n initiated by Commonwealth Autism. Established in 2010, it serves Charlottesville, Albemarle, Greene,\n Fluvanna, Louisa, and Nelson counties.\n ",image:"/assets/partners/craag.png",url:"https://cahumanservices.org/advocating-change/community-organization-engagement/autism-action-groups/"},{name:"The Faison Center",shortName:"Faison Center",description:"The Faison School provides full-time day school programs for students ages 5 to 22 years.",image:"/assets/partners/faison_center.png",url:"https://www.faisoncenter.org"},{name:"Piedmont Regional Education Program",shortName:"PREP",description:"\n A public regional organization designed to meet the needs of special education students. Provides special\n education programming and related services to nine school districts under an umbrella of a regional program.\n ",image:"/assets/partners/prep.png",url:"http://www.prepivycreek.com/"},{name:"Virginia Institute of Autism",shortName:"VIA",description:"\n The Virginia Institute of Autism is dedicated to helping people overcome the challenges of autism through innovative,\n evidence-based programs in education, outreach and adult services.\n ",image:"/assets/partners/via.png",url:"https://www.viaschool.org/"}],this.searchBgClass="mountain",this.videoPlacement="right",this.videoSize="medium",this.videoId="oURTNCsiq3Y",this.videoInstructions="Watch this video for tips about resources",this.videoLinks=[{label:"Learn scientifically-supported interventions online",url:"https://afirm.fpg.unc.edu/selecting-ebp"},{label:"Read about scientifically-supported interventions",url:"https://www.nationalautismcenter.org/resources/for-families/"},{label:"Contact a Family Navigator for resource help",url:"https://curry.virginia.edu/faculty-research/centers-labs-projects/star/resources/star-family-navigation"}],this.sortMethods={RELEVANCE:{name:"Relevance",label:"Relevance",sortQuery:{field:"_score",order:"desc"}},DISTANCE:{name:"Distance",label:"Distance",sortQuery:{field:"geo_point",latitude:this.loc.lat,longitude:this.loc.lng,order:"asc",unit:"mi"}},UPDATED:{name:"Updated",label:"Recently Updated",sortQuery:{field:"last_updated",order:"desc"}},DATE:{name:"Date",label:"Happening Soon",sortQuery:{field:"date",order:"asc"}},DRAFTS:{name:"Drafts",label:"Drafts",sortQuery:{field:"is_draft",order:"desc"}}},this.selectedSort=this.sortMethods.DISTANCE,this.authenticationService.currentUser.subscribe(t=>this.currentUser=t),this.languageOptions=this.getOptions(TU.labels),this.ageOptions=this.getOptions(EU.labels),this.meta.updateTag({property:"og:image",content:window.location.origin+"/assets/home/hero-parent-child.jpg"},"property='og:image'"),this.meta.updateTag({property:"og:image:secure_url",content:window.location.origin+"/assets/home/hero-parent-child.jpg"},"property='og:image:secure_url'"),this.meta.updateTag({name:"twitter:image",content:window.location.origin+"/assets/home/hero-parent-child.jpg"},"name='twitter:image'")}ngOnInit(){"true"===localStorage.noFirstVisit&&this.hideVideo(),localStorage.noFirstVisit=!0,this.querySubject.pipe(Sf(1e3)).subscribe(t=>{this.loading=!0,this.searchService.search(t).subscribe(t=>{this.prevQuery=tX()()(this.query),this.query=t,this.googleAnalyticsService.searchEvent(this.query),this.updateUrl(),this.loading=!1,this.changeDetectorRef.detectChanges(),this._loadRelatedStudies(),this._updatePaginator()})}),this.mapQuerySubject.pipe(Sf(1e3)).subscribe(t=>{this.loading=!0;const e=this.geoBox();this.searchService.mapSearch(t,e).subscribe(t=>{this.mapQuery=t,this.mapQuery&&this.mapQuery.hits&&this.mapQuery.hits.length>0?(this.hitsWithAddress=this.mapQuery.hits.filter(t=>!t.no_address),this.hitsWithNoAddress=this.mapQuery.hits.filter(t=>t.no_address)):(this.hitsWithAddress=[],this.hitsWithNoAddress=[]),this.loading=!1,this.changeDetectorRef.detectChanges(),this.restrictToMappedResults&&(this.query.geo_box=e,this.querySubject.next(this.query))})}),this.setDefaultMapLocation(()=>{this.route.queryParamMap.subscribe(t=>{this.queryParamMap=t,this.query=this._queryParamsToQuery(t);const e=this.storedZip?10:this.defaultZoom;this.mapZoomLevel=parseInt(t.get("zoom"),10)||e;const i=t.get("lat"),n=t.get("lng");i&&n&&this.setLocation(XK.map,{lat:parseFloat(i),lng:parseFloat(n)});const s=t.get("sort")||"Distance",r=this.prevQuery&&0===this.query.start;r?s&&this.sortMethods[s.toUpperCase()]?this.reSort(s,r):this.reSort(this.query.hasWords?"Relevance":"Distance",r):(this.selectedSort=this.sortMethods[s.toUpperCase()],this.querySubject.next(this.query),this.mapQuerySubject.next(this.query))})})}setLocation(t,e){this.loc=e,this.locationMode=t}setZipLocation(t,e){this.storedZip=t,this.api.getZipCoords(this.storedZip).subscribe(t=>{this.setLocation(XK.zipcode,{lat:t.latitude,lng:t.longitude}),this.mapZoomLevel=10,e&&e()})}setGPSLocation(t){navigator.geolocation?(this.gpsEnabled=!0,navigator.geolocation.getCurrentPosition(e=>{this.setLocation(XK.gps,{lat:e.coords.latitude,lng:e.coords.longitude}),this.mapZoomLevel=10,t&&t()},e=>{this.gpsEnabled=!1,t&&t()})):(this.gpsEnabled=!1,t&&t())}_updateDistanceSort(){const t=this.sortMethods.DISTANCE.sortQuery;t.latitude=this.loc.lat,t.longitude=this.loc.lng,this.query.sort=t}set paginator(t){this.paginatorElement=t}set mapTemplate(t){this.mapTemplateElement=t}get circleRadius(){return 160934/(this.mapZoomLevel||1)}get filtersPanelStyles(){const t={"full-screen":this.showFilters,minimized:!this.showFilters};return t[this.searchBgClass]=!0,t}get hits(){return this.query.hits}get isDistanceSort(){return this.selectedSort&&"Distance"===this.selectedSort.name}get isInfoWindowOpen(){return null!=this.selectedMapResource}get isLastPage(){return!this.paginatorElement||!this.paginatorElement.hasNextPage()}get numResultsFrom(){return this.paginatorElement?this.paginatorElement.pageIndex*this.pageSize+1:0}get numResultsTo(){return this.paginatorElement?this.isLastPage?this.numTotalResults:(this.paginatorElement.pageIndex+1)*this.pageSize:this.numTotalResults}get numTotalResults(){return this.query&&this.query.total?this.query.total:0}get shouldHideVideo(){return!!localStorage.getItem("shouldHideTutorialVideo")}get shouldShowMap(){return this.selectedType&&["event","location"].includes(this.selectedType.name)||this.isDistanceSort}ngAfterViewInit(){this.watchScrollEvents()}ngOnDestroy(){}getOptions(t){const e=[];for(const i in t)t.hasOwnProperty(i)&&e.push({value:i,label:t[i]});return e}removeCategory(t=!1){this.query.category=null,this._goToFirstPage(t)}removeWords(t=!1){this.query.words="",this._goToFirstPage(t)}scrollToTopOfSearch(){document.getElementById("TopOfSearch").scrollIntoView()}setDefaultMapLocation(t){this.storedZip=localStorage.getItem("zipCode"),this.isZipCode(this.storedZip)?this.setZipLocation(this.storedZip,t):(this.setLocation(XK.default,this.defaultLoc),t&&t(),this.setGPSLocation(()=>{this.gpsEnabled&&this.reSort("Distance",!0)}))}reSort(t,e=!1){(this._queryParamsHaveChanged(this.queryParamMap)&&t&&t!==this.selectedSort.name||e)&&(this.selectedSort=this.sortMethods[t.toUpperCase()],this.query.start=0,this.query.sort=this.selectedSort.sortQuery,this.isDistanceSort&&this._updateDistanceSort(),this.mapQuerySubject.next(this.query),this.querySubject.next(this.query))}selectAgeRange(t=null,e=!1){this.query.ages=this.query&&t?[t]:[],this._goToFirstPage(e)}selectLanguage(t=null,e=!1){this.query.languages=t?[t]:[],this._goToFirstPage(e)}selectCategory(t){this.query.category={id:t.id,name:t.name},this._goToFirstPage()}selectType(t=null,e=!1){const i=OU.ALL_RESOURCES.name,n=!(t&&t!==i);n?(this.selectedTypeTabIndex=this.resourceTypes.findIndex(t=>t.name===i),this.selectedType=this.resourceTypes[this.selectedTypeTabIndex],this.query.types=this.resourceTypesFilteredNames(),this.query.date=null,this.selectedSort=this.sortMethods.DISTANCE):(this.selectedTypeTabIndex=this.resourceTypes.findIndex(e=>e.name===t),this.selectedType=this.resourceTypes[this.selectedTypeTabIndex],this.query.types=t===i?this.resourceTypesFilteredNames():[t],this.query.date=t===OU.EVENT.name?new Date:void 0,t===OU.LOCATION.name?this.selectedSort=this.sortMethods.DISTANCE:t===OU.RESOURCE.name?this.selectedSort=this.query.hasWords?this.sortMethods.RELEVANCE:this.sortMethods.UPDATED:t===OU.EVENT.name&&(this.selectedSort=this.sortMethods.DATE),this.query.sort=this.selectedSort.sortQuery),this._goToFirstPage(e),this.reSort(this.selectedSort.name,n)}submitResource(){const t=window.open("https://virginia.az1.qualtrics.com/jfe/form/SV_0JQAQjutv54EwnP","_blank");null!=t&&void 0!==t||alert("Please disable your pop-up blocker and try again. \nYou can also use following link to submit your resource: https://virginia.az1.qualtrics.com/jfe/form/SV_0JQAQjutv54EwnP")}get selectedCategory(){if(this.query)return this.query.category}get resourceTypesFiltered(){return this.resourceTypes.filter(t=>t.name!==OU.ALL_RESOURCES.name)}resourceTypesFilteredNames(){return this.resourceTypesFiltered.map(t=>t.name)}updatePage(t){this.query.size=t.pageSize,this.pageSize=t.pageSize,this.query.start=t.pageIndex*t.pageSize+1,this.query.sort=this.selectedSort.sortQuery,this.scrollToTopOfSearch(),this.querySubject.next(this.query)}mapLoad(t){const e=document.createElement("div"),i=document.createElement("div");i.style.backgroundColor="#fff",i.style.border="2px solid #fff",i.style.borderRadius="3px",i.style.boxShadow="0 2px 6px rgba(0,0,0,.3)",i.style.cursor="pointer",i.style.marginBottom="6px",i.style.marginRight="12px",i.style.textAlign="center",i.title="Your Location",e.appendChild(i);const n=document.createElement("div");n.style.fontSize="16px",n.style.lineHeight="38px",n.style.paddingLeft="5px",n.style.paddingRight="5px",n.innerHTML='',i.appendChild(n),i.addEventListener("click",()=>{console.log("map clicked."),this.mapQuerySubject.next(this.query)}),e.index=1,t.controls[google.maps.ControlPosition.RIGHT_BOTTOM].push(e),t.addListener("dragend",()=>{this.setLocation(XK.map,{lat:this.mapBounds.getCenter().lat(),lng:this.mapBounds.getCenter().lng()}),this.mapQuerySubject.next(this.query),console.log("Map Dragged"),this.isDistanceSort&&(console.log("Map Dragged, re-sorting"),this._updateDistanceSort(),this.querySubject.next(this.query))})}showBreadcrumbs(){return!(!this.query||!this.query.hasFilters)}submitZip(t,e){e.close(),t.stopPropagation(),localStorage.setItem("zipCode",this.storedZip),this.googleAnalyticsService.searchInteractionEvent("set_zip_code_location"),this.isZipCode(this.storedZip)?(this.mapZoomLevel=10,this.setZipLocation(this.storedZip,()=>{this.reSort("Distance",!0)})):this.setLocation(XK.default,this.defaultLoc)}useGPSLocation(t,e){e.close(),t.stopPropagation(),this.googleAnalyticsService.searchInteractionEvent("set_gps_location"),this.setGPSLocation(()=>{this.gpsEnabled&&this.reSort("Distance",!0)})}isZipCode(t){return t&&""!==t&&/^\d{5}$/.test(t)}showInfoWindow(t){this.api.getResource(t.id).subscribe(e=>{this.selectedMapResource=e,this.selectedMapHit=t,this.googleAnalyticsService.mapEvent(t.id.toString())})}closeInfoWindow(){this.selectedMapResource=null,this.selectedMapHit=null}mapJitter(t,e){let i=t%2==0?1:-1;e&&(i*=-1);const n=1e4*Math.sin(t);return(n-Math.floor(n))/100*i}updateZoom(t){this.mapZoomLevel=t,this.mapQuerySubject.next(this.query)}selectTypeTab(t){this.selectType((t.index>0?this.resourceTypesFiltered[t.index-1]:OU.ALL_RESOURCES).name)}updateResultsList(t){this.mapBounds=t}geoBox(){if(this.mapBounds)return{top_left:{lat:this.mapBounds.getNorthEast().lat(),lon:this.mapBounds.getSouthWest().lng()},bottom_right:{lat:this.mapBounds.getSouthWest().lat(),lon:this.mapBounds.getNorthEast().lng()}}}listMapResultsOnly(t,e=!1){console.log("Restricting to mapped results",t),this.restrictToMappedResults=t,t?(this.googleAnalyticsService.searchInteractionEvent("search_as_map_moves"),this.query.geo_box=this.geoBox()):this.query.geo_box=null,e||this.querySubject.next(this.query)}mapDockClass(t,e,i){const n=t.getBoundingClientRect(),s=e.getBoundingClientRect(),r=i.getBoundingClientRect(),o=this.scrollDirection?this.scrollDirection.toLowerCase():"";let a;return a=this._overlaps(n,s)?"align-top":this._overlaps(n,r)?"align-bottom":"docked",a+" "+o}focusOnInput(t){t.focus()}watchScrollEvents(){const t=Cf(window,"scroll").pipe(iX(10),E(t=>window.pageYOffset),lS(),E(([t,e])=>et===cX.Up)).subscribe(()=>{this.scrollDirection=cX.Up}),t.pipe(Mm(t=>t===cX.Down)).subscribe(()=>{this.scrollDirection=cX.Down})}clearAllFilters(){this.listMapResultsOnly(!1,!0),this.removeWords(!0),this.selectAgeRange(null,!0),this.selectLanguage(null,!0),this.selectType(null,!0),this.removeCategory(!0),this.querySubject.next(this.query),this.mapQuerySubject.next(this.query)}toggleShowFilters(){this.showFilters=!this.showFilters,this.shouldShowMap||(this.expandResults=!0)}goSelectedMapResource(t){this.googleAnalyticsService.mapResourceEvent(t.id.toString()),this.router.navigate(["/"+t.type.toLowerCase()+"/"+t.id])}hideVideo(t=!0){t?localStorage.setItem("shouldHideTutorialVideo",`${t}`):localStorage.removeItem("shouldHideTutorialVideo")}showLocationWindow(){return this.locationMode===XK.default}updateUrl(){const t=this._queryToQueryParams(this.query),e=this.router.createUrlTree([],{queryParams:t,queryParamsHandling:"merge",preserveFragment:!0});this.location.replaceState(e.toString())}_queryToQueryParams(t){const e=tX()({circles:!0})(t),i={};return e.hasOwnProperty("words")&&e.words&&(i.words=e.words),i.types=e.types,i.ages=e.ages,i.languages=e.languages,i.sort=i.words?this.sortMethods.RELEVANCE.name:this.selectedSort.name,i.pageStart=e.start||0,i.zoom=this.mapZoomLevel,i.restrictToMap=this.restrictToMappedResults?"y":"n",this.loc&&(i.lat=this.loc.lat,i.lng=this.loc.lng),e.hasOwnProperty("category")&&e.category&&(i.category=e.category.id),i}_queryParamsToQuery(t){const e=new IU({geo_box:void 0,words:"",ages:[],languages:[],sort:this.sortMethods.DISTANCE.sortQuery,start:0,types:this.resourceTypesFilteredNames()});if(e.size=this.pageSize,t&&t.keys)for(const i of t.keys)if(void 0!==t.get(i))switch(i){case"words":e.words=t.get(i),e.sort=this.sortMethods.RELEVANCE.sortQuery;break;case"category":e.category={id:parseInt(t.get(i),10)};break;case"ages":e.ages=t.getAll(i);break;case"languages":e.languages=t.getAll(i);break;case"sort":const n=t.get(i).toUpperCase();this.sortMethods[n]&&(e.sort=this.sortMethods[n].sortQuery);break;case"pageStart":e.start=parseInt(t.get(i),10);break;case"types":e.types=t.getAll(i);break;case"restrictToMap":this.restrictToMappedResults="y"===t.get("restrictToMap")}return e}_goToFirstPage(t=!1){this.query.start=0,this.paginatorElement&&this.paginatorElement.firstPage(),t||(this.querySubject.next(this.query),this.mapQuerySubject.next(this.query))}_overlaps(t,e){return e.topt.top||e.top>t.top&&e.bottomt.bottom}_queryParamsHaveChanged(t){const e=this._queryParamsToQuery(t),i=this._queryParamsToQuery(nH(this._queryToQueryParams(this.query)));return!this.prevQuery||e.equals(i)}_loadRelatedStudies(){const t=tX()()(this.query);t.types=["study"],this.api.searchStudies(t).subscribe(t=>{t.hits.length>0?this.api.getStudy(t.hits[0].id).subscribe(t=>{this.highlightedStudy=t,this.changeDetectorRef.detectChanges()}):this.api.getStudiesByStatus("currently_enrolling").subscribe(t=>{this.highlightedStudy=t[Math.floor(Math.random()*Math.floor(t.length))],this.changeDetectorRef.detectChanges()})})}_updatePaginator(){const t=this.query&&this.query.start-1,e=parseInt(this.queryParamMap.get("pageStart"),10)-1,i=this.queryParamMap.has("pageStart")?e:t;this.paginatorElement.pageIndex=i/this.pageSize,this.expandResults=!0,this.changeDetectorRef.detectChanges()}}var e;return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(BG),$o(Vl),$o(IG),$o(ld),$o(ip),$o(fl),$o(UH),$o(lG),$o(uX))},t.\u0275cmp=Xt({type:t,selectors:[["app-search"]],viewQuery:function(t,e){if(1&t&&(Vc(KX,1),Vc(ZX,1)),2&t){let t;Nc(t=Hc())&&(e.paginator=t.first),Nc(t=Hc())&&(e.mapTemplate=t.first)}},hostVars:1,hostBindings:function(t,e){2&t&&ja("@pageAnimations",e.animatePage)},decls:87,vars:58,consts:[["id","hero","fxLayout","column"],["searchHeader",""],["fxFlexAlign","center",3,"videoSize","videoId","instructions","links",4,"ngIf"],["fxLayout","row","fxLayout.lt-md","column","fxLayoutAlign","center center"],[3,"videoSize","videoId","instructions","links",4,"ngIf"],["fxLayout","column"],["variant","light-bg",3,"words","searchUpdated","categorySelected"],[3,"addLabel","addLink","currentUser",4,"ngIf"],["id","show-filters-button","mat-flat-button","","color","primary","fxHide","","fxShow.lt-md","",3,"click"],["fxLayout","column","fxLayoutAlign","center center","id","filters-container"],["id","filters","fxFlex.gt-sm","60%",3,"ngClass.lt-md"],["fxHide","","fxShow.lt-md",""],["fxLayoutAlign","end end"],["mat-button","",1,"done-button",3,"click"],["id","TopOfSearch","fxLayout","row","fxLayout.lt-md","column","fxLayoutGap","2em",1,"filters-row"],["fxLayout","row","fxLayout.lt-lg","column","fxLayoutGap","2em","fxLayoutGap.lt-lg","1em","fxShow","",1,"filter-select"],["fxHide","","fxShow.lt-md","","id","type-filter"],[3,"value","valueChange"],[3,"iconType","size",4,"ngIf"],["class","type-label",4,"ngIf"],[3,"value","click",4,"ngFor","ngForOf"],["id","topic-filter","fxFlex.lt-lg","100%",3,"ngClass.lt-md"],[3,"category","ngClass","categorySelected",4,"ngIf"],["id","age-filter","fxFlex.lt-lg","100%",3,"ngClass.lt-md"],[4,"ngIf"],["id","language-filter","fxFlex.lt-lg","100%",3,"ngClass.lt-md"],["fxHide","","fxShow.lt-md","",1,"sort-order-small"],[3,"selectedSort","sortMethods","sortMethodSelected"],["fxHide","","fxShow.lt-md","","fxLayoutAlign","center center"],["mat-flat-button","","color","accent",3,"click"],["fxShow","","fxHide.lt-md","","fxLayout","row","fxLayoutGap","2em","fxLayoutAlign","start end",1,"type-tabs-container"],["mat-align-tabs","start","fxHide.lt-md","","color","accent",3,"ngClass","selectedIndex","selectedTabChange","selectedIndexChange"],["mat-tab-label",""],[4,"ngFor","ngForOf"],["fxHide","","fxShow.lt-md","","id","results-vs-map"],[3,"value","change"],[3,"value"],[3,"value","disabled"],["id","content","fxLayout","row","fxLayoutAlign","start start"],["id","results","fxLayout","column","fxLayoutGap","10px","fxFlex","60%","fxFlex.lt-md","100%","fxShow","","fxHide.lt-md","",1,"search-results",3,"fxShow.lt-md"],[4,"ngIf","ngIfElse"],[3,"length","pageSize","pageSizeOptions","ngClass","page"],["paginator",""],["id","location-and-map","fxFlex","40%","fxFlex.lt-md","100%","fxShow","",3,"fxShow.lt-md","ngClass.gt-sm","ngStyle.gt-sm"],[1,"inset-shadow"],["id","list-mapped-results-button","mat-flat-button","",3,"color","ngClass","ngClass.gt-sm","ngClass.lt-md","fxHide","click"],["id","set-location",3,"ngClass","expanded","afterExpand",4,"ngIf"],["id","map","fxLayout","column","fxLayoutGap","2em"],["mapTypeId","roadmap",3,"latitude","longitude","streetViewControl","zoom","scrollwheel","mapReady","mapClick","zoomChange","boundsChange",4,"ngIf"],["id","studies-highlight",4,"ngIf"],["id","partners","fxLayout","row","fxLayout.lt-md","column","fxLayoutGap","3em","fxLayoutAlign","auto center",3,"ngStyle.lt-md"],["searchFooter",""],["fxLayout","column","fxLayoutAlign","start"],[1,"pad-0"],["fxLayoutAlign.gt-xs","row","fxLayout.lt-sm","row wrap","fxLayoutAlign","space-between center","fxLayoutGap","40px"],["fxFlex.lt-md","40%","fxLayoutAlign","center center",4,"ngFor","ngForOf"],[3,"title","subtitle","linkSize","click",4,"ngIf"],["id","scroll-spy"],["scrollSpy",""],[2,"padding","2em","text-align","center"],["loadingMessage",""],["fxFlexAlign","center",3,"videoSize","videoId","instructions","links"],[3,"videoSize","videoId","instructions","links"],[3,"addLabel","addLink","currentUser"],[3,"iconType","size"],[1,"type-label"],[3,"value","click"],[3,"category","ngClass","categorySelected"],[3,"aggregations","label_title","label_any","label_map","label_icon","ngClass","isNotApplicable","notApplicableMessage","filterSelected"],[1,"type-buttons","all"],["fxLayout","column","fxLayoutGap","20px","fxLayoutAlign","center center","class","pad-4",4,"ngIf"],["id","sort-and-status","fxLayout","row","fxLayout.lt-md","column","fxLayoutAlign","space-between end",4,"ngIf"],["fxShow","","fxHide.lt-md","",1,"sort-order"],[3,"ageLabels","fxHide","fxShow","languageLabels","query","restrictToMappedResults","typeLabels","ageRangeChipClicked","categoryChipClicked","clearAllClicked","keywordChipClicked","languageChipClicked","mappedResultsChipClicked","typeChipClicked",4,"ngIf"],["fxLayout","column","fxLayoutGap","20px","fxLayoutAlign","center center",1,"pad-4"],["id","sort-and-status","fxLayout","row","fxLayout.lt-md","column","fxLayoutAlign","space-between end"],["class","search-result-status","fxShow","","fxHide.lt-md","",4,"ngIf"],["fxShow","","fxHide.lt-md","",1,"search-result-status"],[3,"ageLabels","fxHide","fxShow","languageLabels","query","restrictToMappedResults","typeLabels","ageRangeChipClicked","categoryChipClicked","clearAllClicked","keywordChipClicked","languageChipClicked","mappedResultsChipClicked","typeChipClicked"],[3,"hit","mapLoc","currentUser","ngClass",4,"ngFor","ngForOf"],[3,"hit","mapLoc","currentUser","ngClass"],["id","set-location",3,"ngClass","expanded","afterExpand"],["setLocationExpansionPanel",""],["fxLayout","column",3,"ngClass"],[1,"zipCodeField"],["matInput","","placeholder","Enter ZIP Code",3,"ngModel","ngModelChange","keyup.enter"],["zipCodeInput",""],["fxLayout","row","fxLayoutGap","10px","fxLayoutAlign","start center"],["mat-flat-button","","color","accent","id","btn_save",3,"click"],["mat-flat-button","","id","btn_gps",3,"click",4,"ngIf"],["mat-flat-button","","id","btn_gps",3,"click"],["mapTypeId","roadmap",3,"latitude","longitude","streetViewControl","zoom","scrollwheel","mapReady","mapClick","zoomChange","boundsChange"],["mapTemplate",""],[3,"imagePath","maxZoom"],[3,"latitude","longitude","iconUrl",4,"ngIf"],[3,"latitude","longitude","iconUrl"],["fillOpacity","0.1","zIndex","-1",3,"latitude","longitude","radius","fillColor","clickable","visible","circleClick"],[3,"latitude","longitude","iconUrl","markerClick"],[3,"isOpen","latitude","longitude","infoWindowClose"],[1,"title","mat-h2",3,"href","click"],[1,"chevron-link",3,"click"],["id","studies-highlight"],[3,"href"],["routerLinkActive","router-link-active",1,"chevron-link",3,"routerLink"],["fxFlex.lt-md","40%","fxLayoutAlign","center center"],[1,"resource-gatherer",3,"href","title","matTooltip"],[3,"alt","src"],[3,"title","subtitle","linkSize","click"]],template:function(t,e){if(1&t&&(Qo(0,"div",0,1),jo(2,JX,1,4,"app-tutorial-video",2),Qo(3,"div",3),jo(4,tK,1,4,"app-tutorial-video",4),Qo(5,"div",5),Qo(6,"app-search-box",6),ra("searchUpdated",function(){return e.querySubject.next(e.query)})("categorySelected",function(t){return e.selectCategory(t)}),Xo(),jo(7,eK,1,3,"app-add-button",7),Qo(8,"button",8),ra("click",function(){return e.showFilters=!e.showFilters}),Qo(9,"mat-icon"),Na(10,"filter_alt"),Xo(),Na(11," Filter Search Results "),Xo(),Qo(12,"div",9),Qo(13,"div",10),Qo(14,"div",11),Qo(15,"div",12),Qo(16,"button",13),ra("click",function(){return e.toggleShowFilters()}),Na(17,"Done"),Xo(),Xo(),Qo(18,"h2"),Na(19,"Filter Resources"),Xo(),Xo(),Qo(20,"div",14),Qo(21,"div",15),Qo(22,"div",16),Qo(23,"mat-form-field"),Qo(24,"mat-label"),Na(25,"Resource types"),Xo(),Qo(26,"mat-select",17),ra("valueChange",function(t){return e.selectedType=t}),Qo(27,"mat-select-trigger"),jo(28,iK,1,2,"app-type-icon",18),jo(29,nK,2,1,"span",19),Xo(),jo(30,sK,4,4,"mat-option",20),Xo(),Xo(),Xo(),Qo(31,"div",21),jo(32,rK,1,2,"app-search-topics",22),Xo(),Qo(33,"div",23),jo(34,oK,2,8,"div",24),Xo(),Qo(35,"div",25),jo(36,aK,2,8,"div",24),Xo(),Xo(),Xo(),Qo(37,"div",26),Qo(38,"app-search-sort",27),ra("sortMethodSelected",function(t){return e.reSort(t.name,!0)}),Xo(),Xo(),Qo(39,"div",28),Qo(40,"button",29),ra("click",function(){return e.toggleShowFilters()}),Na(41),Xo(),Xo(),Xo(),Xo(),Xo(),jo(42,lK,1,4,"app-tutorial-video",4),Xo(),jo(43,cK,1,4,"app-tutorial-video",2),Qo(44,"div",30),Qo(45,"mat-tab-group",31),ra("selectedTabChange",function(t){return e.selectTypeTab(t)})("selectedIndexChange",function(t){return e.selectedTypeTabIndex=t}),Qo(46,"mat-tab"),jo(47,uK,2,0,"ng-template",32),Xo(),jo(48,hK,2,0,"mat-tab",33),Xo(),Xo(),Xo(),Qo(49,"div",34),Qo(50,"mat-button-toggle-group",35),ra("change",function(){return e.expandResults=!e.expandResults}),Qo(51,"mat-button-toggle",36),jo(52,pK,2,1,"ng-container",24),jo(53,mK,2,1,"ng-container",24),Xo(),Qo(54,"mat-button-toggle",37),Na(55,"Map"),Xo(),Xo(),Xo(),Qo(56,"div",38),Qo(57,"div",39),jo(58,xK,6,4,"ng-container",40),Qo(59,"mat-paginator",41,42),ra("page",function(t){return e.updatePage(t)}),Xo(),Xo(),Qo(61,"div",43),Ko(62,"span",44),Qo(63,"button",45),ra("click",function(){return e.listMapResultsOnly(!e.restrictToMappedResults)}),jo(64,SK,2,0,"mat-icon",24),jo(65,kK,2,0,"mat-icon",24),Na(66," Limit results to map "),Xo(),jo(67,DK,15,9,"mat-expansion-panel",46),Qo(68,"div",47),jo(69,zK,7,11,"agm-map",48),jo(70,UK,11,5,"div",49),Xo(),Xo(),Xo(),Qo(71,"div",50,51),Qo(73,"div",52),Qo(74,"h1"),Na(75,"Resource partners"),Xo(),Qo(76,"p",53),Na(77,"We are partnering with the following initiatives and organizations to identify resources that will improve outcomes for individuals with autism and their families."),Xo(),Qo(78,"div",54),jo(79,jK,3,5,"span",55),Xo(),Xo(),jo(80,WK,1,3,"app-border-box-tile",56),Xo(),Ko(81,"span",57,58),Qo(83,"p",59),Na(84,"The listings included in the Autism DRIVE Resource Directory are provided for informational purposes only. Most of the resources are not affiliated with the University of Virginia (UVA), and their inclusion does not reflect a recommendation, referral or endorsement of a specific organization or professional. For questions about information or content listed on external sites, contact the external organization directly. The views and opinions expressed by external organizations linked through on our website do not necessarily reflect the views of the UVA Supporting Transformative Research (STAR) Initiative."),Xo(),jo(85,$K,1,0,"ng-template",null,60,jc)),2&t){const t=Wo(1),i=Wo(72),n=Wo(82),s=Wo(86);ka(e.searchBgClass),dr(2),qo("ngIf","above"===e.videoPlacement&&!e.shouldHideVideo),dr(2),qo("ngIf","left"===e.videoPlacement&&!e.shouldHideVideo),dr(2),qo("words",null==e.query?null:e.query.words),dr(1),qo("ngIf",e.currentUser&&e.currentUser.permissions.includes("create_resource")),dr(6),qo("ngClass.lt-md",e.filtersPanelStyles),dr(13),qo("value",e.selectedType),dr(2),qo("ngIf",e.selectedType),dr(1),qo("ngIf",e.selectedType),dr(1),qo("ngForOf",e.resourceTypes),dr(1),qo("ngClass.lt-md","filter-container"),dr(1),qo("ngIf",e.selectedCategory),dr(1),qo("ngClass.lt-md","filter-container"),dr(1),qo("ngIf",e.query),dr(1),qo("ngClass.lt-md","filter-container"),dr(1),qo("ngIf",e.query),dr(2),qo("selectedSort",e.selectedSort)("sortMethods",e.sortMethods),dr(3),Ba("",e.numTotalResults," Results"),dr(1),qo("ngIf","right"===e.videoPlacement&&!e.shouldHideVideo),dr(1),qo("ngIf","below"===e.videoPlacement&&!e.shouldHideVideo),dr(2),qo("ngClass","type-tabs")("selectedIndex",e.selectedTypeTabIndex),dr(3),qo("ngForOf",e.resourceTypesFiltered),dr(2),qo("value",e.expandResults),dr(1),qo("value",!0),dr(1),qo("ngIf",!e.restrictToMappedResults),dr(1),qo("ngIf",e.restrictToMappedResults),dr(1),qo("value",!1)("disabled",!e.shouldShowMap),dr(3),qo("fxShow.lt-md",!!e.expandResults),dr(1),qo("ngIf",!e.loading)("ngIfElse",s),dr(1),qo("length",e.numTotalResults)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("ngClass",pc(54,qK,!e.query||0===e.numTotalResults)),dr(2),qo("fxShow.lt-md",!e.expandResults)("ngClass.gt-sm",e.mapDockClass(n,t,i))("ngStyle.gt-sm",hc(56,YK)),dr(2),qo("color",e.restrictToMappedResults?"accent":"")("ngClass","mat-elevation-z1")("ngClass.gt-sm","gt-sm")("ngClass.lt-md","lt-md")("fxHide",!e.shouldShowMap),dr(1),qo("ngIf",!e.restrictToMappedResults),dr(1),qo("ngIf",e.restrictToMappedResults),dr(2),qo("ngIf",e.shouldShowMap),dr(2),qo("ngIf",e.shouldShowMap),dr(1),qo("ngIf",e.highlightedStudy),dr(1),qo("ngStyle.lt-md",hc(57,QK)),dr(8),qo("ngForOf",e.resourceGatherers),dr(1),qo("ngIf",!e.loading)}},directives:[o_,Jd,Z_,bX,TA,Ng,JT,k_,Pg,p_,Yk,Nk,rD,nD,Kd,wX,ZR,Qd,zR,FR,BA,GA,zD,Wg,xX,$_,kX,JU,Jx,RX,BX,XX,fj,ET,TT,cE,_b,Ub,gy,gm,Tm,ym,tm,lm,ZA,YA,uG,hG,AD,WW,Qj],styles:["#hero[_ngcontent-%COMP%]{background-color:#ededed;padding-top:64px;margin-top:-64px;padding-left:16px;padding-right:16px}#hero[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{color:#232d4b;text-align:start;font-size:2.5rem;margin-bottom:0}#hero[_ngcontent-%COMP%] app-search-box[_ngcontent-%COMP%]{color:#000;width:100%}form.search-box[_ngcontent-%COMP%]{background:rgba(0,0,0,0);border-radius:5px;padding-top:1em;padding-bottom:1em;display:-ms-flexbox;display:flex;transition:padding-top .5s ease-in-out}form.search-box.hidden-results[_ngcontent-%COMP%]{padding-top:100px}form.search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%], form.search-box[_ngcontent-%COMP%] mat-hint[_ngcontent-%COMP%]{-ms-flex:2 0 auto;flex:2 0 auto}#tiles[_ngcontent-%COMP%]{padding-top:1em;padding-left:2em;padding-right:2em}.title[_ngcontent-%COMP%]{margin:0;color:#232d4b;font-weight:800;font-style:italic;text-transform:uppercase;line-height:1;font-size:1.625rem}button[_ngcontent-%COMP%]{-ms-flex:0 0 auto;flex:0 0 auto;border:none}mat-accordion[_ngcontent-%COMP%], mat-expansion-panel[_ngcontent-%COMP%]{width:100%;margin-bottom:1em}.filters[_ngcontent-%COMP%] #reset-filters[_ngcontent-%COMP%]{color:#e57200;font-weight:700;padding-left:0}.filters[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:1.5rem;margin-top:2em;margin-bottom:0}.filters[_ngcontent-%COMP%] .sort-order[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-top:1em}.filters[_ngcontent-%COMP%] h4.mat-subheader[_ngcontent-%COMP%]{font-size:1.25rem;line-height:1.5rem;margin-top:1em;margin-bottom:0;padding-left:0;padding-bottom:0}.filters[_ngcontent-%COMP%] h4.mat-subheader[_ngcontent-%COMP%]:first-of-type{margin-top:0}.filter-facet-item[_ngcontent-%COMP%], .sort-order[_ngcontent-%COMP%]{font-size:1em;line-height:1}app-search-filters-breadcrumbs[_ngcontent-%COMP%]{width:100%;padding-right:0;padding-left:0;margin:2em 1em 1em}.sort-order[_ngcontent-%COMP%]{grid-area:sort;justify-self:end}.sort-order[_ngcontent-%COMP%] mat-radio-button[_ngcontent-%COMP%]{height:36px;margin-top:0;padding:0} mat-paginator.mat-paginator .mat-paginator-page-size-select.mat-form-field-appearance-outline{width:84px} mat-paginator.mat-paginator .mat-paginator-page-size-select.mat-form-field-appearance-outline .mat-form-field-wrapper{padding-bottom:.75em} mat-paginator.mat-paginator .mat-paginator-page-size-select.mat-form-field-appearance-outline .mat-form-field-outline{top:.75em;bottom:-.25em} mat-paginator.mat-paginator .mat-paginator-page-size-select.mat-form-field-appearance-outline .mat-select-arrow-wrapper{-ms-transform:translateY(0);transform:translateY(0)} mat-paginator.mat-paginator .mat-paginator-page-size-select.mat-form-field-appearance-outline .mat-form-field-infix{padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0} .mat-option app-type-icon [class*=icofont-], .mat-select-trigger app-type-icon [class*=icofont-]{margin-right:.5em} .mat-option app-type-icon .mat-icon, .mat-select-trigger app-type-icon .mat-icon{margin-right:.5em;margin-top:-.25em} .mat-option .mat-select-value app-type-icon .mat-icon, .mat-select-trigger .mat-select-value app-type-icon .mat-icon{margin-top:.25em} .gm-style-iw-d, .gm-style-iw.gm-style-iw-c{max-height:50vh!important}@media (max-width:575px){ .gm-style-iw-d, .gm-style-iw.gm-style-iw-c{max-width:90vw!important}}@media (min-width:576px){ .gm-style-iw-d, .gm-style-iw.gm-style-iw-c{max-width:80vw!important}}@media (min-width:768px){ .gm-style-iw-d, .gm-style-iw.gm-style-iw-c{max-width:50vw!important}}@media (min-width:960px){ .gm-style-iw-d, .gm-style-iw.gm-style-iw-c{max-width:40vw!important}}@media (min-width:1200px){ .gm-style-iw-d, .gm-style-iw.gm-style-iw-c{max-width:30vw!important}} .mat-form-field-wrapper{padding-bottom:0} .type-tabs .mat-tab-label{color:#232d4b;margin:5px;opacity:1} .type-tabs .mat-tab-label:focus{outline:none}.type-buttons[_ngcontent-%COMP%]{text-transform:uppercase;margin:.25em 1em}.type-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#e57200;margin:.5em}#filters[_ngcontent-%COMP%], #partners[_ngcontent-%COMP%], #sort-and-status[_ngcontent-%COMP%], #type-buttons[_ngcontent-%COMP%]{margin:.5em 2em}.search-result-status[_ngcontent-%COMP%]{-ms-flex-pack:end;justify-content:flex-end}.type-tabs-container[_ngcontent-%COMP%]{height:74px}#content[_ngcontent-%COMP%]{position:relative}#location-and-map[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;right:0}#location-and-map.above[_ngcontent-%COMP%] #map[_ngcontent-%COMP%], #location-and-map.align-top[_ngcontent-%COMP%] #map[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}#location-and-map.docked.up[_ngcontent-%COMP%] #list-mapped-results-button[_ngcontent-%COMP%], #location-and-map.docked.up[_ngcontent-%COMP%] #set-location[_ngcontent-%COMP%]{top:194px}#location-and-map.docked.down[_ngcontent-%COMP%] #list-mapped-results-button[_ngcontent-%COMP%], #location-and-map.docked.down[_ngcontent-%COMP%] #set-location[_ngcontent-%COMP%]{top:74px}#location-and-map.docked[_ngcontent-%COMP%] #set-location[_ngcontent-%COMP%]{position:fixed;top:74px;left:calc(60% + 10px);width:240px}#location-and-map.docked[_ngcontent-%COMP%] #list-mapped-results-button[_ngcontent-%COMP%]{position:fixed;width:240px;top:74px;right:10px}#location-and-map.docked[_ngcontent-%COMP%] #map[_ngcontent-%COMP%]{position:fixed;top:64px;left:60%;right:0;bottom:0}#location-and-map.align-bottom[_ngcontent-%COMP%] #map[_ngcontent-%COMP%]{position:absolute;top:auto;bottom:0;left:0;right:0}#location-and-map.align-bottom[_ngcontent-%COMP%] #map[_ngcontent-%COMP%] agm-map[_ngcontent-%COMP%]{position:absolute;bottom:0}#location-and-map[_ngcontent-%COMP%] #list-mapped-results-button[_ngcontent-%COMP%]{position:absolute;z-index:1;width:240px;height:48px;transition:top .3s ease-in-out,margin-top .3s ease-in-out}#location-and-map[_ngcontent-%COMP%] #list-mapped-results-button.gt-sm[_ngcontent-%COMP%]{top:10px;right:10px}#location-and-map[_ngcontent-%COMP%] #list-mapped-results-button.lt-md[_ngcontent-%COMP%]{top:calc(100vh - 132px);left:10px}#location-and-map[_ngcontent-%COMP%] mat-expansion-panel#set-location{position:absolute;top:10px;left:10px;z-index:1;background-color:#fff;border-radius:5px;width:240px;transition:top .3s ease-in-out,margin-top .3s ease-in-out}#location-and-map[_ngcontent-%COMP%] mat-expansion-panel#set-location mat-expansion-panel-header{font-size:1em;height:48px!important}#location-and-map[_ngcontent-%COMP%] #map[_ngcontent-%COMP%]{height:100%}#location-and-map[_ngcontent-%COMP%] #map[_ngcontent-%COMP%] agm-map[_ngcontent-%COMP%]{height:calc(100vh - 64px);width:100%;z-index:0}#location-and-map[_ngcontent-%COMP%] .inset-shadow[_ngcontent-%COMP%]{position:absolute;top:0;right:0;bottom:0;left:0;box-shadow:inset 40px 20px 40px -40px rgba(0,0,0,.1);z-index:99;pointer-events:none}#scroll-spy[_ngcontent-%COMP%]{position:fixed;top:64px;bottom:0;left:0;right:0;pointer-events:none;background:rgba(0,0,0,0)}#filters.minimized[_ngcontent-%COMP%]{display:none!important}#filters.full-screen[_ngcontent-%COMP%]{display:block;position:fixed;top:0;right:0;bottom:0;left:0;height:100vh;width:100vw;background-color:#fff;z-index:1000;margin:0;padding:2rem;overflow-y:scroll}.filter-container[_ngcontent-%COMP%]{padding-top:2em;padding-bottom:1em;border-top:1px solid #ededed}#results-vs-map[_ngcontent-%COMP%], #results-vs-map[_ngcontent-%COMP%] .mat-button-toggle-group[_ngcontent-%COMP%], #type-filter[_ngcontent-%COMP%], #type-filter[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:100%}#results-vs-map[_ngcontent-%COMP%] .mat-button-toggle-group[_ngcontent-%COMP%] .mat-button-toggle[_ngcontent-%COMP%]{width:50%}.sort-order-small[_ngcontent-%COMP%]{width:100%}#design-options[_ngcontent-%COMP%]{padding:8px;position:fixed;top:0;left:50%;-ms-transform:translateX(-50%);transform:translateX(-50%);z-index:1000;background-color:#eee;border-radius:0 0 8px 8px}#design-options[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{padding:.2em .5em}#filters.black[_ngcontent-%COMP%] .mat-hint, #filters.gray[_ngcontent-%COMP%] .mat-hint, #filters.mountain[_ngcontent-%COMP%] .mat-hint, #filters.uva-blue[_ngcontent-%COMP%] .mat-hint, #filters.uva-orange[_ngcontent-%COMP%] .mat-hint, #hero.black[_ngcontent-%COMP%] .mat-hint, #hero.energy-burst-dark[_ngcontent-%COMP%] .mat-hint, #hero.energy-burst-light[_ngcontent-%COMP%] .mat-hint, #hero.gray[_ngcontent-%COMP%] .mat-hint, #hero.mountain[_ngcontent-%COMP%] .mat-hint, #hero.uva-blue[_ngcontent-%COMP%] .mat-hint, #hero.uva-orange[_ngcontent-%COMP%] .mat-hint, .black[_ngcontent-%COMP%] .mat-hint, .energy-burst-dark[_ngcontent-%COMP%] .mat-hint, .energy-burst-light[_ngcontent-%COMP%] .mat-hint, .gray[_ngcontent-%COMP%] .mat-hint, .mountain[_ngcontent-%COMP%] .mat-hint, .uva-blue[_ngcontent-%COMP%] .mat-hint, .uva-orange[_ngcontent-%COMP%] .mat-hint{color:#fff!important;font-style:italic}#filters.black[_ngcontent-%COMP%] .done-button, #filters.black[_ngcontent-%COMP%] .mat-form-field-label, #filters.black[_ngcontent-%COMP%] .mat-menu-trigger, #filters.black[_ngcontent-%COMP%] .mat-select-value-text, #filters.black[_ngcontent-%COMP%] .mat-tab-label, #filters.black[_ngcontent-%COMP%] .show-all, #filters.black[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, #filters.black[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, #filters.black[_ngcontent-%COMP%] h1, #filters.black[_ngcontent-%COMP%] h5, #filters.gray[_ngcontent-%COMP%] .done-button, #filters.gray[_ngcontent-%COMP%] .mat-form-field-label, #filters.gray[_ngcontent-%COMP%] .mat-menu-trigger, #filters.gray[_ngcontent-%COMP%] .mat-select-value-text, #filters.gray[_ngcontent-%COMP%] .mat-tab-label, #filters.gray[_ngcontent-%COMP%] .show-all, #filters.gray[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, #filters.gray[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, #filters.gray[_ngcontent-%COMP%] h1, #filters.gray[_ngcontent-%COMP%] h5, #filters.mountain[_ngcontent-%COMP%] .done-button, #filters.mountain[_ngcontent-%COMP%] .mat-form-field-label, #filters.mountain[_ngcontent-%COMP%] .mat-menu-trigger, #filters.mountain[_ngcontent-%COMP%] .mat-select-value-text, #filters.mountain[_ngcontent-%COMP%] .mat-tab-label, #filters.mountain[_ngcontent-%COMP%] .show-all, #filters.mountain[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, #filters.mountain[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, #filters.mountain[_ngcontent-%COMP%] h1, #filters.mountain[_ngcontent-%COMP%] h5, #filters.uva-blue[_ngcontent-%COMP%] .done-button, #filters.uva-blue[_ngcontent-%COMP%] .mat-form-field-label, #filters.uva-blue[_ngcontent-%COMP%] .mat-menu-trigger, #filters.uva-blue[_ngcontent-%COMP%] .mat-select-value-text, #filters.uva-blue[_ngcontent-%COMP%] .mat-tab-label, #filters.uva-blue[_ngcontent-%COMP%] .show-all, #filters.uva-blue[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, #filters.uva-blue[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, #filters.uva-blue[_ngcontent-%COMP%] h1, #filters.uva-blue[_ngcontent-%COMP%] h5, #hero.black[_ngcontent-%COMP%] .done-button, #hero.black[_ngcontent-%COMP%] .mat-form-field-label, #hero.black[_ngcontent-%COMP%] .mat-menu-trigger, #hero.black[_ngcontent-%COMP%] .mat-select-value-text, #hero.black[_ngcontent-%COMP%] .mat-tab-label, #hero.black[_ngcontent-%COMP%] .show-all, #hero.black[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, #hero.black[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, #hero.black[_ngcontent-%COMP%] h1, #hero.black[_ngcontent-%COMP%] h5, #hero.energy-burst-dark[_ngcontent-%COMP%] .done-button, #hero.energy-burst-dark[_ngcontent-%COMP%] .mat-form-field-label, #hero.energy-burst-dark[_ngcontent-%COMP%] .mat-menu-trigger, #hero.energy-burst-dark[_ngcontent-%COMP%] .mat-select-value-text, #hero.energy-burst-dark[_ngcontent-%COMP%] .mat-tab-label, #hero.energy-burst-dark[_ngcontent-%COMP%] .show-all, #hero.energy-burst-dark[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, #hero.energy-burst-dark[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, #hero.energy-burst-dark[_ngcontent-%COMP%] h1, #hero.energy-burst-dark[_ngcontent-%COMP%] h5, #hero.energy-burst-light[_ngcontent-%COMP%] .done-button, #hero.energy-burst-light[_ngcontent-%COMP%] .mat-form-field-label, #hero.energy-burst-light[_ngcontent-%COMP%] .mat-menu-trigger, #hero.energy-burst-light[_ngcontent-%COMP%] .mat-select-value-text, #hero.energy-burst-light[_ngcontent-%COMP%] .mat-tab-label, #hero.energy-burst-light[_ngcontent-%COMP%] .show-all, #hero.energy-burst-light[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, #hero.energy-burst-light[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, #hero.energy-burst-light[_ngcontent-%COMP%] h1, #hero.energy-burst-light[_ngcontent-%COMP%] h5, #hero.gray[_ngcontent-%COMP%] .done-button, #hero.gray[_ngcontent-%COMP%] .mat-form-field-label, #hero.gray[_ngcontent-%COMP%] .mat-menu-trigger, #hero.gray[_ngcontent-%COMP%] .mat-select-value-text, #hero.gray[_ngcontent-%COMP%] .mat-tab-label, #hero.gray[_ngcontent-%COMP%] .show-all, #hero.gray[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, #hero.gray[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, #hero.gray[_ngcontent-%COMP%] h1, #hero.gray[_ngcontent-%COMP%] h5, #hero.mountain[_ngcontent-%COMP%] .done-button, #hero.mountain[_ngcontent-%COMP%] .mat-form-field-label, #hero.mountain[_ngcontent-%COMP%] .mat-menu-trigger, #hero.mountain[_ngcontent-%COMP%] .mat-select-value-text, #hero.mountain[_ngcontent-%COMP%] .mat-tab-label, #hero.mountain[_ngcontent-%COMP%] .show-all, #hero.mountain[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, #hero.mountain[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, #hero.mountain[_ngcontent-%COMP%] h1, #hero.mountain[_ngcontent-%COMP%] h5, #hero.uva-blue[_ngcontent-%COMP%] .done-button, #hero.uva-blue[_ngcontent-%COMP%] .mat-form-field-label, #hero.uva-blue[_ngcontent-%COMP%] .mat-menu-trigger, #hero.uva-blue[_ngcontent-%COMP%] .mat-select-value-text, #hero.uva-blue[_ngcontent-%COMP%] .mat-tab-label, #hero.uva-blue[_ngcontent-%COMP%] .show-all, #hero.uva-blue[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, #hero.uva-blue[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, #hero.uva-blue[_ngcontent-%COMP%] h1, #hero.uva-blue[_ngcontent-%COMP%] h5, .black[_ngcontent-%COMP%] .done-button, .black[_ngcontent-%COMP%] .mat-form-field-label, .black[_ngcontent-%COMP%] .mat-menu-trigger, .black[_ngcontent-%COMP%] .mat-select-value-text, .black[_ngcontent-%COMP%] .mat-tab-label, .black[_ngcontent-%COMP%] .show-all, .black[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, .black[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, .black[_ngcontent-%COMP%] h1, .black[_ngcontent-%COMP%] h5, .energy-burst-dark[_ngcontent-%COMP%] .done-button, .energy-burst-dark[_ngcontent-%COMP%] .mat-form-field-label, .energy-burst-dark[_ngcontent-%COMP%] .mat-menu-trigger, .energy-burst-dark[_ngcontent-%COMP%] .mat-select-value-text, .energy-burst-dark[_ngcontent-%COMP%] .mat-tab-label, .energy-burst-dark[_ngcontent-%COMP%] .show-all, .energy-burst-dark[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, .energy-burst-dark[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, .energy-burst-dark[_ngcontent-%COMP%] h1, .energy-burst-dark[_ngcontent-%COMP%] h5, .energy-burst-light[_ngcontent-%COMP%] .done-button, .energy-burst-light[_ngcontent-%COMP%] .mat-form-field-label, .energy-burst-light[_ngcontent-%COMP%] .mat-menu-trigger, .energy-burst-light[_ngcontent-%COMP%] .mat-select-value-text, .energy-burst-light[_ngcontent-%COMP%] .mat-tab-label, .energy-burst-light[_ngcontent-%COMP%] .show-all, .energy-burst-light[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, .energy-burst-light[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, .energy-burst-light[_ngcontent-%COMP%] h1, .energy-burst-light[_ngcontent-%COMP%] h5, .gray[_ngcontent-%COMP%] .done-button, .gray[_ngcontent-%COMP%] .mat-form-field-label, .gray[_ngcontent-%COMP%] .mat-menu-trigger, .gray[_ngcontent-%COMP%] .mat-select-value-text, .gray[_ngcontent-%COMP%] .mat-tab-label, .gray[_ngcontent-%COMP%] .show-all, .gray[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, .gray[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, .gray[_ngcontent-%COMP%] h1, .gray[_ngcontent-%COMP%] h5, .mountain[_ngcontent-%COMP%] .done-button, .mountain[_ngcontent-%COMP%] .mat-form-field-label, .mountain[_ngcontent-%COMP%] .mat-menu-trigger, .mountain[_ngcontent-%COMP%] .mat-select-value-text, .mountain[_ngcontent-%COMP%] .mat-tab-label, .mountain[_ngcontent-%COMP%] .show-all, .mountain[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, .mountain[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, .mountain[_ngcontent-%COMP%] h1, .mountain[_ngcontent-%COMP%] h5, .uva-blue[_ngcontent-%COMP%] .done-button, .uva-blue[_ngcontent-%COMP%] .mat-form-field-label, .uva-blue[_ngcontent-%COMP%] .mat-menu-trigger, .uva-blue[_ngcontent-%COMP%] .mat-select-value-text, .uva-blue[_ngcontent-%COMP%] .mat-tab-label, .uva-blue[_ngcontent-%COMP%] .show-all, .uva-blue[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, .uva-blue[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, .uva-blue[_ngcontent-%COMP%] h1, .uva-blue[_ngcontent-%COMP%] h5{color:#fff!important}#filters.black[_ngcontent-%COMP%] .mat-menu-trigger, #filters.gray[_ngcontent-%COMP%] .mat-menu-trigger, #filters.mountain[_ngcontent-%COMP%] .mat-menu-trigger, #filters.uva-blue[_ngcontent-%COMP%] .mat-menu-trigger, #hero.black[_ngcontent-%COMP%] .mat-menu-trigger, #hero.energy-burst-dark[_ngcontent-%COMP%] .mat-menu-trigger, #hero.energy-burst-light[_ngcontent-%COMP%] .mat-menu-trigger, #hero.gray[_ngcontent-%COMP%] .mat-menu-trigger, #hero.mountain[_ngcontent-%COMP%] .mat-menu-trigger, #hero.uva-blue[_ngcontent-%COMP%] .mat-menu-trigger, .black[_ngcontent-%COMP%] .mat-menu-trigger, .energy-burst-dark[_ngcontent-%COMP%] .mat-menu-trigger, .energy-burst-light[_ngcontent-%COMP%] .mat-menu-trigger, .gray[_ngcontent-%COMP%] .mat-menu-trigger, .mountain[_ngcontent-%COMP%] .mat-menu-trigger, .uva-blue[_ngcontent-%COMP%] .mat-menu-trigger{background-color:rgba(0,0,0,.2)}#filters.light-gray[_ngcontent-%COMP%], #hero.light-gray[_ngcontent-%COMP%], .light-gray[_ngcontent-%COMP%]{background-color:#eee}#filters.white[_ngcontent-%COMP%], #hero.white[_ngcontent-%COMP%], .white[_ngcontent-%COMP%]{background-color:#fff}#filters.uva-blue[_ngcontent-%COMP%], #hero.uva-blue[_ngcontent-%COMP%], .uva-blue[_ngcontent-%COMP%]{background-color:#002f6c}#filters.uva-orange[_ngcontent-%COMP%], #hero.uva-orange[_ngcontent-%COMP%], .uva-orange[_ngcontent-%COMP%]{background-color:#e57200}#filters.black[_ngcontent-%COMP%], #hero.black[_ngcontent-%COMP%], .black[_ngcontent-%COMP%]{background-color:#000}#filters.gray[_ngcontent-%COMP%], #hero.gray[_ngcontent-%COMP%], .gray[_ngcontent-%COMP%]{background-color:#636466}#filters.mountain[_ngcontent-%COMP%], #hero.mountain[_ngcontent-%COMP%], .mountain[_ngcontent-%COMP%]{background-color:#6f7ea0}#filters.sky[_ngcontent-%COMP%], #hero.sky[_ngcontent-%COMP%], .sky[_ngcontent-%COMP%]{background-color:#e5eef3}#hero.energy-burst-dark[_ngcontent-%COMP%], .energy-burst-dark[_ngcontent-%COMP%]{background-image:url(https://curry.virginia.edu/sites/all/themes/curry/_files/css/i/sunrise-burst.jpg)}#hero.energy-burst-light[_ngcontent-%COMP%], .energy-burst-light[_ngcontent-%COMP%]{background-image:url(https://curry.virginia.edu/sites/all/themes/curry/_files/css/i/sunrise-burst-footer-crop.jpg)}.color-swatch[_ngcontent-%COMP%]{display:inline-block;width:24px;height:24px;outline:1px solid #eee}#show-filters-button[_ngcontent-%COMP%]{margin-bottom:1em}app-border-box-tile[_ngcontent-%COMP%]{transition:position 3s} .mat-tooltip{font-size:15px!important}.mat-progress-bar[_ngcontent-%COMP%]{height:6px}.loc-service[_ngcontent-%COMP%]{margin:2em}"],data:{animation:[Ov("pageAnimations",[Rv(":enter",[Fv("#age-filter, #language-filter, #topic-filter",[Dv({opacity:0,transform:"translateX(-100px)"}),(e=[Ev("500ms cubic-bezier(0.35, 0, 0.25, 1)",Dv({opacity:1,transform:"none"}))],{type:12,timings:-30,animation:e})])])])]}}),t})();function ZK(t,e){if(1&t&&Ko(0,"app-type-icon",20),2&t){const t=ua();qo("iconType",t.selectedStatus&&t.selectedStatus.name)("size",1)}}function JK(t,e){if(1&t&&(Qo(0,"span",21),Na(1),Xo()),2&t){const t=ua();dr(1),Va(t.selectedStatus.label)}}function tZ(t,e){if(1&t){const t=ea();Qo(0,"mat-option",22),ra("click",function(){Be(t);const i=e.$implicit;return ua().selectStatus(i)}),Qo(1,"span",21),Na(2),Xo(),Xo()}if(2&t){const t=e.$implicit;qo("value",t)("ngClass","sort-by-"+t.name.toLowerCase()),dr(2),Va(t.label)}}function eZ(t,e){if(1&t&&(Qo(0,"span",21),Na(1),Xo()),2&t){const t=ua();dr(1),Va(t.selectedAge.label)}}function iZ(t,e){if(1&t){const t=ea();Qo(0,"mat-option",11),ra("click",function(){Be(t);const i=e.$implicit;return ua().selectAge(i)}),Qo(1,"span",21),Na(2),Xo(),Xo()}if(2&t){const t=e.$implicit;qo("value",t),dr(2),Va(t.label)}}function nZ(t,e){if(1&t&&Ko(0,"app-type-icon",20),2&t){const t=ua();qo("iconType",t.selectedStatus&&t.selectedStatus.name)("size",1)}}function sZ(t,e){if(1&t&&(Qo(0,"span",21),Na(1),Xo()),2&t){const t=ua();dr(1),Va(t.selectedStatus.label)}}function rZ(t,e){if(1&t){const t=ea();Qo(0,"mat-option",11),ra("click",function(){Be(t);const i=e.$implicit;return ua().selectStatus(i)}),Qo(1,"span",21),Na(2),Xo(),Xo()}if(2&t){const t=e.$implicit;qo("value",t),dr(2),Va(t.label)}}function oZ(t,e){if(1&t&&(Qo(0,"span",21),Na(1),Xo()),2&t){const t=ua();dr(1),Va(t.selectedAge.label)}}function aZ(t,e){if(1&t){const t=ea();Qo(0,"mat-option",11),ra("click",function(){Be(t);const i=e.$implicit;return ua().selectAge(i)}),Qo(1,"span",21),Na(2),Xo(),Xo()}if(2&t){const t=e.$implicit;qo("value",t),dr(2),Va(t.label)}}function lZ(t,e){if(1&t&&Ko(0,"app-add-button",23),2&t){const t=ua();qo("addLabel","Add Study")("addLink","studies/add")("currentUser",t.currentUser)}}function cZ(t,e){if(1&t&&Ko(0,"app-search-result",25),2&t){const t=e.$implicit,i=ua(2);qo("hit",t),zo("data-study-status",i.selectedStatus.name)}}function uZ(t,e){if(1&t&&(Zo(0),jo(1,cZ,1,2,"app-search-result",24),Jo()),2&t){const t=ua();dr(1),qo("ngForOf",t.studyHits)}}function dZ(t,e){1&t&&(Qo(0,"span"),Na(1,"that are enrolling"),Xo())}function hZ(t,e){1&t&&(Qo(0,"span"),Na(1,"that are in progress"),Xo())}function pZ(t,e){1&t&&(Qo(0,"span"),Na(1,"where results are being analyzed"),Xo())}function mZ(t,e){1&t&&(Qo(0,"span"),Na(1,"where results have been published"),Xo())}function fZ(t,e){if(1&t&&(Qo(0,"p",26),Na(1," We don't have any Autism DRIVE studies "),jo(2,dZ,2,0,"span",18),jo(3,hZ,2,0,"span",18),jo(4,pZ,2,0,"span",18),jo(5,mZ,2,0,"span",18),Na(6," at this time, but we're working on it. Check back soon, as the status of our research is constantly changing! "),Xo()),2&t){const t=ua();zo("data-study-status",t.selectedStatus.name),dr(2),qo("ngIf","currently_enrolling"===t.selectedStatus.name),dr(1),qo("ngIf","study_in_progress"===t.selectedStatus.name),dr(1),qo("ngIf","results_being_analyzed"===t.selectedStatus.name),dr(1),qo("ngIf","study_results_published"===t.selectedStatus.name)}}let gZ=(()=>{class t{constructor(t,e,i,n,s){this.api=t,this.authenticationService=e,this.route=i,this.router=n,this.meta=s,this.authenticationService.currentUser.subscribe(t=>this.currentUser=t),this.meta.updateTag({property:"og:image",content:location.origin+"/assets/studies/hero.jpg"},"property='og:image'"),this.meta.updateTag({property:"og:image:secure_url",content:location.origin+"/assets/studies/hero.jpg"},"property='og:image:secure_url'"),this.meta.updateTag({name:"twitter:image",content:location.origin+"/assets/studies/hero.jpg"},"name='twitter:image'"),this.studyStatuses=Object.keys(LU).map(t=>({name:t,label:LU[t]})),this.Ages=Object.keys(EU.labels).map(t=>({name:t,label:EU.labels[t]})),console.log(this.Ages),this.route.params.subscribe(t=>{"studyStatus"in t?(this.selectedStatus=this.studyStatuses.find(e=>e.name===t.studyStatus),this.selectedAge="age"in t?this.Ages.find(e=>e.name===t.age):void 0):(this.selectedStatus=this.studyStatuses[0],this.route.params.studyStatus=this.studyStatuses[0].name,this.selectedAge=void 0,this.router.navigate(["/studies/"+this.studyStatuses[0].name]))}),this.loadStudies()}ngOnInit(){}loadStudies(){this.selectedAge?this.api.getStudiesByAge(this.selectedStatus.name,this.selectedAge.name).subscribe(t=>{this.studyHits=this._studiesToHits(t)}):this.api.getStudiesByStatus(this.selectedStatus.name).subscribe(t=>{this.studyHits=this._studiesToHits(t)})}selectStatus(t){this.selectedStatus=t,this.router.navigate(["/studies/"+t.name]),this.loadStudies()}selectAge(t){this.selectedAge=t,this.router.navigate(t?["/studies/"+this.selectedStatus.name+"/"+t.name]:["/studies/"+this.selectedStatus.name]),this.loadStudies()}_studiesToHits(t){return t.map(t=>new RU({id:t.id,type:"study",ages:t.ages,title:t.short_title,content:t.description,description:t.short_description,last_updated:t.last_updated,highlights:null,url:`/study/${t.id}`,label:"Research Studies",status:this.studyStatuses.find(e=>e.name===t.status).label}))}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(BG),$o(UH),$o(lG),$o(ip))},t.\u0275cmp=Xt({type:t,selectors:[["app-studies"]],decls:50,vars:20,consts:[["fxLayoutAlign","center","fxLayout","column"],["id","hero","ngClass.lt-md","margin-bottom-none","ngStyle.gt-md","padding-bottom:180px; margin-bottom:10px",1,"center-center","gradient-overlay","container","with-escaping-tiles"],[1,"hero-content"],[1,"desktop"],["fxLayout","row","fxLayoutGap","40px","fxLayoutAlign","left auto","id","TopOfSearch",1,"row","escaping-tiles-1x",2,"padding-left","6em","padding-right","2em","padding-top","2em"],["id","set-status",2,"margin-bottom","-1em"],[3,"value","valueChange"],[3,"iconType","size",4,"ngIf"],["class","type-label",4,"ngIf"],[3,"value","ngClass","click",4,"ngFor","ngForOf"],["placeholder","All Ages",3,"value","valueChange"],[3,"value","click"],[3,"value","click",4,"ngFor","ngForOf"],[1,"mobile_device_480px"],["fxLayout","column","fxLayoutGap","2px","fxLayoutAlign","center auto","id","TopOfSearch",1,"row","escaping-tiles-1x",2,"padding-left","2em","padding-right","2em"],[2,"margin-bottom","-1em"],["fxLayout","column","fxLayoutGap","40px","ngStyle.gt-md","padding-top:10px;",1,"studies"],[3,"addLabel","addLink","currentUser",4,"ngIf"],[4,"ngIf"],["class","no-results",4,"ngIf"],[3,"iconType","size"],[1,"type-label"],[3,"value","ngClass","click"],[3,"addLabel","addLink","currentUser"],[3,"hit",4,"ngFor","ngForOf"],[3,"hit"],[1,"no-results"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"div",1),Qo(2,"div",2),Qo(3,"h1"),Na(4,"Autism Research Studies"),Xo(),Xo(),Xo(),Qo(5,"div",3),Qo(6,"div",4),Qo(7,"mat-form-field",5),Qo(8,"mat-label"),Na(9,"Study Status"),Xo(),Qo(10,"mat-select",6),ra("valueChange",function(t){return e.selectedStatus=t}),Qo(11,"mat-select-trigger"),jo(12,ZK,1,2,"app-type-icon",7),jo(13,JK,2,1,"span",8),Xo(),jo(14,tZ,3,3,"mat-option",9),Xo(),Xo(),Qo(15,"mat-form-field"),Qo(16,"mat-label"),Na(17,"Age Range"),Xo(),Qo(18,"mat-select",10),ra("valueChange",function(t){return e.selectedAge=t}),Qo(19,"mat-select-trigger"),jo(20,eZ,2,1,"span",8),Xo(),Qo(21,"mat-option",11),ra("click",function(){return e.selectAge(void 0)}),Na(22,"All Ages"),Xo(),jo(23,iZ,3,2,"mat-option",12),Xo(),Xo(),Xo(),Xo(),Qo(24,"div",13),Ko(25,"p"),Qo(26,"div",14),Qo(27,"mat-form-field",15),Qo(28,"mat-label"),Na(29,"Study Status"),Xo(),Qo(30,"mat-select",6),ra("valueChange",function(t){return e.selectedStatus=t}),Qo(31,"mat-select-trigger"),jo(32,nZ,1,2,"app-type-icon",7),jo(33,sZ,2,1,"span",8),Xo(),jo(34,rZ,3,2,"mat-option",12),Xo(),Xo(),Qo(35,"mat-form-field"),Qo(36,"mat-label"),Na(37,"Age Range"),Xo(),Qo(38,"mat-select",10),ra("valueChange",function(t){return e.selectedAge=t}),Qo(39,"mat-select-trigger"),jo(40,oZ,2,1,"span",8),Xo(),Qo(41,"mat-option",11),ra("click",function(){return e.selectAge(void 0)}),Na(42,"All Ages"),Xo(),jo(43,aZ,3,2,"mat-option",12),Xo(),Xo(),Xo(),Xo(),Qo(44,"div",16),jo(45,lZ,1,3,"app-add-button",17),Qo(46,"h2"),Na(47),Xo(),jo(48,uZ,2,1,"ng-container",18),jo(49,fZ,7,5,"p",19),Xo(),Xo()),2&t&&(dr(10),qo("value",e.selectedStatus),dr(2),qo("ngIf",e.selectedStatus),dr(1),qo("ngIf",e.selectedStatus),dr(1),qo("ngForOf",e.studyStatuses),dr(4),qo("value",e.selectedAge),dr(2),qo("ngIf",e.selectedAge),dr(1),qo("value",void 0),dr(2),qo("ngForOf",e.Ages),dr(7),qo("value",e.selectedStatus),dr(2),qo("ngIf",e.selectedStatus),dr(1),qo("ngIf",e.selectedStatus),dr(1),qo("ngForOf",e.studyStatuses),dr(4),qo("value",e.selectedAge),dr(2),qo("ngIf",e.selectedAge),dr(1),qo("value",void 0),dr(2),qo("ngForOf",e.Ages),dr(2),qo("ngIf",e.currentUser&&e.currentUser.permissions.includes("create_study")),dr(2),Va(e.selectedStatus.label),dr(1),qo("ngIf",e.studyHits&&e.studyHits.length>0),dr(1),qo("ngIf",!e.studyHits||0===e.studyHits.length))},directives:[Z_,o_,Pg,Wg,p_,Yk,Nk,rD,nD,Jd,Kd,Jx,JU,Qd,kX,fj],styles:['#hero[_ngcontent-%COMP%]{background-image:url(/assets/studies/hero.jpg)}#hero[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{color:#fff}.studies[_ngcontent-%COMP%]{padding:5.5%}.studies[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:2.5rem}.studies[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]:after{content:"";background-color:#e57200;width:6.25rem;height:.125rem;display:block} .mat-form-field-wrapper{margin-bottom:-1.25em}.covid19-alert[_ngcontent-%COMP%]{margin:2%}.covid19-alert[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{max-width:960px}.mobile_device_480px[_ngcontent-%COMP%]{display:none}@media only screen and (max-device-width:480px){.mobile_device_480px[_ngcontent-%COMP%]{display:block}.desktop[_ngcontent-%COMP%]{display:none}}']}),t})(),_Z=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}ngOnInit(){}onNoClick(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)($o(NO),$o(BO))},t.\u0275cmp=Xt({type:t,selectors:[["app-investigator-form"]],decls:24,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["matInput","",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","",3,"click"],["mat-flat-button","","color","primary","cdkFocusInitial","",3,"mat-dialog-close"]],template:function(t,e){1&t&&(Qo(0,"h1",0),Na(1,"Edit Investigator"),Xo(),Qo(2,"div",1),Qo(3,"mat-form-field"),Qo(4,"mat-label"),Na(5,"Name:"),Xo(),Qo(6,"input",2),ra("ngModelChange",function(t){return e.data.si.investigator.name=t}),Xo(),Xo(),Qo(7,"mat-form-field"),Qo(8,"mat-label"),Na(9,"Title:"),Xo(),Qo(10,"input",2),ra("ngModelChange",function(t){return e.data.si.investigator.title=t}),Xo(),Xo(),Qo(11,"mat-form-field"),Qo(12,"mat-label"),Na(13,"Organization Name:"),Xo(),Qo(14,"input",2),ra("ngModelChange",function(t){return e.data.si.investigator.organization_name=t}),Xo(),Xo(),Qo(15,"mat-form-field"),Qo(16,"mat-label"),Na(17,"Bio Link:"),Xo(),Qo(18,"input",2),ra("ngModelChange",function(t){return e.data.si.investigator.bio_link=t}),Xo(),Xo(),Xo(),Qo(19,"div",3),Qo(20,"button",4),ra("click",function(){return e.onNoClick()}),Na(21,"Cancel"),Xo(),Qo(22,"button",5),Na(23,"Save"),Xo(),Xo()),2&t&&(dr(6),qo("ngModel",e.data.si.investigator.name),dr(4),qo("ngModel",e.data.si.investigator.title),dr(4),qo("ngModel",e.data.si.investigator.organization_name),dr(4),qo("ngModel",e.data.si.investigator.bio_link),dr(4),qo("mat-dialog-close",e.data.si.investigator))},directives:[qO,YO,Yk,Nk,cE,_b,Ub,gy,QO,TA,$O],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t})();function bZ(t,e){if(1&t&&(Qo(0,"div",7),Na(1),Xo()),2&t){const t=ua(2);dr(1),Va(t.errorMessage)}}function yZ(t,e){if(1&t&&(Qo(0,"footer",8),Qo(1,"button",9),Na(2,"Next"),Xo(),Qo(3,"button",10),Na(4,"Cancel"),Xo(),Xo()),2&t){const t=ua(2);dr(3),qo("mat-dialog-close",t.data.displaySurvey)}}function vZ(t,e){1&t&&(Qo(0,"footer"),Ko(1,"app-loading"),Xo())}function wZ(t,e){if(1&t&&(Qo(0,"formly-form",3),jo(1,bZ,2,1,"div",4),jo(2,yZ,5,1,"footer",5),jo(3,vZ,2,0,"footer",6),Xo()),2&t){const t=ua();qo("form",t.form)("fields",t.fields)("model",t.model),dr(1),qo("ngIf",t.errorMessage),dr(1),qo("ngIf","form"===t.registerStateValue),dr(1),qo("ngIf","submitting"===t.registerStateValue)}}function CZ(t,e){if(1&t&&(Qo(0,"footer",11),Qo(1,"h2"),Na(2,"Account Created!"),Xo(),Qo(3,"p"),Na(4,"Please check your email to complete the signin process."),Xo(),Qo(5,"button",12),Na(6," Continue to survey "),Xo(),Xo()),2&t){const t=ua();dr(5),qo("mat-dialog-close",t.data.displaySurvey)}}let xZ=(()=>{class t{constructor(t,e,i,n,s,r){this.api=t,this.changeDetectorRef=e,this.route=i,this.googleAnalytics=n,this.dialogRef=s,this.data=r,this.errorMessage="",this.form=new cy({}),this.model={},this.fields=[{key:"email",validators:{fieldMatch:{expression:t=>{const e=t.value;return e.emailConfirm===e.email||!e.emailConfirm||!e.email},message:"Email Does Not Match",errorPath:"emailConfirm"}},fieldGroup:[{key:"email",type:"input",templateOptions:{type:"email",label:"Email Address:",placeholder:"Enter email",required:!0},validators:{validation:["email"]}},{key:"emailConfirm",type:"input",templateOptions:{type:"email",label:"Confirm Email",placeholder:"Please re-enter your email",required:!0}}]}],this._stateSubject=new cp("form"),this.registerState=this._stateSubject.asObservable(),this.user=new VG({id:null,email:this.model.email,role:"User"})}ngOnInit(){}submit(){localStorage.removeItem("token_url"),this.form.valid&&(this._stateSubject.next("submitting"),this.registerState=this._stateSubject.asObservable(),this.errorMessage="",this.user.email=this.model.email.email,this.api.addUser(this.user).subscribe(t=>{this.user=t,t.hasOwnProperty("token_url")&&localStorage.setItem("token_url",t.token_url),this.googleAnalytics.accountEvent("register"),this._stateSubject.next("wait_for_email"),this.registerState=this._stateSubject.asObservable(),this.changeDetectorRef.detectChanges(),this.data.displaySurvey=!0},t=>{this._stateSubject.next("form"),this.registerState=this._stateSubject.asObservable(),this.errorMessage=t,this.changeDetectorRef.detectChanges()}))}get registerStateValue(){return this._stateSubject.value}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(Vl),$o(UH),$o(IG),$o(NO),$o(BO))},t.\u0275cmp=Xt({type:t,selectors:[["app-register-dialog"]],decls:5,vars:3,consts:[[3,"formGroup","ngSubmit"],[3,"form","fields","model",4,"ngIf"],["id","confirmation_message",4,"ngIf"],[3,"form","fields","model"],["id","error_message","class","display mat-error",4,"ngIf"],["fxLayout","column","fxLayoutGap","2%","fxLayoutAlign","center",4,"ngIf"],[4,"ngIf"],["id","error_message",1,"display","mat-error"],["fxLayout","column","fxLayoutGap","2%","fxLayoutAlign","center"],["mat-flat-button","","type","submit","color","primary","id","submit"],["mat-flat-button","","color","accent","id","cancel",3,"mat-dialog-close"],["id","confirmation_message"],["color","primary","mat-flat-button","","id","continue",3,"mat-dialog-close"]],template:function(t,e){1&t&&(Qo(0,"h1"),Na(1,"Join Autism DRIVE"),Xo(),Qo(2,"form",0),ra("ngSubmit",function(){return e.submit()}),jo(3,wZ,4,6,"formly-form",1),jo(4,CZ,7,1,"footer",2),Xo()),2&t&&(dr(2),qo("formGroup",e.form),dr(1),qo("ngIf","wait_for_email"!==e.registerStateValue),dr(1),qo("ngIf","wait_for_email"===e.registerStateValue))},directives:[_y,jb,ky,Jd,NF,o_,p_,Z_,TA,$O,Qj],styles:[""]}),t})();function SZ(t,e){if(1&t){const t=ea();Qo(0,"div",3),Qo(1,"p"),Na(2,"Joining Autism DRIVE is the first step toward participating in our clinical research. Once you join you will be able to see the link to participate."),Xo(),Qo(3,"button",4),ra("click",function(){return Be(t),ua().openDialog()}),Na(4,"Join Autism DRIVE"),Xo(),Qo(5,"p"),Na(6,"Already a user? Sign in to see the link to participate."),Xo(),Qo(7,"button",5),ra("click",function(){return Be(t),ua().goLogin()}),Na(8,"Sign In"),Xo(),Xo()}}function kZ(t,e){if(1&t){const t=ea();Qo(0,"button",7),ra("click",function(){return Be(t),ua(2).goSurvey()}),Na(1,"Start Survey"),Xo()}}function AZ(t,e){if(1&t&&(Qo(0,"div"),jo(1,kZ,2,0,"button",6),Xo()),2&t){const t=ua();dr(1),qo("ngIf",t.surveyLink)}}let OZ=(()=>{class t{constructor(t,e,i,n,s){this.api=t,this.router=e,this.googleAnalytics=i,this.authenticationService=n,this.dialog=s,this.authenticationService.currentUser.subscribe(t=>this.currentUser=t)}ngOnInit(){this.currentUser&&this.api.getUser(this.currentUser.id).subscribe(t=>{this.currentUser=new VG(t)})}goLogin(){this.router.navigate(["/login"],{queryParams:{returnUrl:this.router.url}})}goSurvey(){this.surveyLink&&(this.sendInquiry(),this.googleAnalytics.studySurveyEvent(this.study),window.open(this.surveyLink,"_blank"))}sendInquiry(){this.api.sendStudyInquiryEmail(this.currentUser,this.study).subscribe(),this.googleAnalytics.studyInquiryEvent(this.study)}openDialog(){this.dialog.open(xZ,{width:`${window.innerWidth}px`,data:{displaySurvey:!1}}).afterClosed().subscribe(t=>{t&&(this.currentUser=!0,this.goSurvey())})}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(lG),$o(IG),$o(BG),$o(jO))},t.\u0275cmp=Xt({type:t,selectors:[["app-study-survey-entry"]],inputs:{study:"study",currentUser:"currentUser",surveyLink:"surveyLink"},decls:5,vars:2,consts:[["fxFlex.gt-md","60%"],["fxLayout","column","fxLayoutGap","20px",4,"ngIf"],[4,"ngIf"],["fxLayout","column","fxLayoutGap","20px"],["mat-flat-button","","color","primary",3,"click"],["mat-flat-button","","color","accent",3,"click"],["mat-flat-button","","color","primary","id","survey-button",3,"click",4,"ngIf"],["mat-flat-button","","color","primary","id","survey-button",3,"click"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"h2"),Na(2,"Interested in Participating?"),Xo(),jo(3,SZ,9,0,"div",1),jo(4,AZ,2,1,"div",2),Xo()),2&t&&(dr(3),qo("ngIf",!e.currentUser),dr(1),qo("ngIf",e.currentUser))},directives:[k_,Jd,o_,p_,TA],styles:["#survey-button[_ngcontent-%COMP%]{margin:1em auto}"]}),t})();function EZ(t,e){if(1&t){const t=ea();Qo(0,"div",3),Qo(1,"p"),Na(2,"Joining Autism DRIVE is the first step toward participating in our clinical research."),Xo(),Qo(3,"button",4),ra("click",function(){return Be(t),ua(2).goRegister()}),Na(4,"Join Autism DRIVE"),Xo(),Qo(5,"p"),Na(6,"Already a user? Sign in"),Xo(),Qo(7,"button",5),ra("click",function(){return Be(t),ua(2).goLogin()}),Na(8,"Sign In"),Xo(),Xo()}}function TZ(t,e){if(1&t){const t=ea();Qo(0,"div"),Qo(1,"mat-card"),Qo(2,"mat-card-title"),Na(3),Xo(),Qo(4,"mat-card-subtitle"),Na(5),vc(6,"titlecase"),Xo(),Qo(7,"div",8),Ko(8,"mat-progress-bar",9),Qo(9,"button",10),ra("click",function(i){Be(t);const n=e.$implicit;return ua(4).goEditEnroll(i,n)}),Na(10),Xo(),Xo(),Xo(),Xo()}if(2&t){const t=e.$implicit,i=ua(4);dr(1),Sa("mat-elevation-z0",!0),dr(2),Va(t.name||"No User Name Set"),dr(2),Va(i.currentUser.isSelf(t)?"You":wc(6,9,t.relationship)),dr(3),qo("mode","determinate")("value",100*t.percent_complete),dr(1),ga("id","edit_enroll_",t.relationship,"_",t.id,""),dr(1),Ba("Edit ","self_guardian"===t.relationship?"guardian":"enrollment"," info")}}function PZ(t,e){if(1&t){const t=ea();Qo(0,"div"),Qo(1,"h4"),Na(2,"Send Inquiry"),Xo(),Qo(3,"p"),Na(4,"Select the \u201cLearn More\u201d button for a member of the research team to contact you to learn more."),Xo(),Qo(5,"button",5),ra("click",function(){return Be(t),ua(4).sendInquiry()}),Na(6,"Learn More"),Xo(),Xo()}}function DZ(t,e){if(1&t&&(Qo(0,"div"),Qo(1,"p"),Na(2,"Please make sure that your profile is complete before indicating your interest in this study. The researchers have a much better chance of determining your eligibility if they can see complete details about you and/or your dependant."),Xo(),jo(3,TZ,11,11,"div",7),jo(4,PZ,7,0,"div",6),Xo()),2&t){const t=ua(3);dr(3),qo("ngForOf",t.currentUser.participants),dr(1),qo("ngIf",t.haveUserContact)}}function MZ(t,e){if(1&t){const t=ea();Qo(0,"div"),Qo(1,"p"),Na(2,'This study has an additional screener to complete in order to determine if you are eligible to participate. If you haven\'t already completed that screener, you can click the "Go to screener" button to be directed there.'),Xo(),Qo(3,"button",5),ra("click",function(){return Be(t),ua(4).goEligibility()}),Na(4,"Go to screener"),Xo(),Xo()}}function IZ(t,e){if(1&t&&(Qo(0,"div"),Qo(1,"p"),Na(2,"You have already sent an inquiry about this study. We\u2019ve let the researchers know that you are interested and they will contact you about next steps."),Xo(),jo(3,MZ,5,0,"div",6),Xo()),2&t){const t=ua(3);dr(3),qo("ngIf",t.study.eligibility_url)}}function RZ(t,e){1&t&&(Qo(0,"div"),Qo(1,"p"),Na(2,"Your profile is not currently eligible for enrolling in this Study."),Xo(),Xo())}function LZ(t,e){if(1&t&&(Qo(0,"div",3),jo(1,DZ,5,2,"div",6),jo(2,IZ,4,1,"div",6),jo(3,RZ,3,0,"div",6),Xo()),2&t){const t=ua(2);dr(1),qo("ngIf",!t.alreadyInquired&&!t.nonParticipant),dr(1),qo("ngIf",t.alreadyInquired),dr(1),qo("ngIf",t.nonParticipant)}}function FZ(t,e){if(1&t&&(Qo(0,"div",1),Qo(1,"h2"),Na(2,"Interested in Enrolling?"),Xo(),jo(3,EZ,9,0,"div",2),jo(4,LZ,4,3,"div",2),Xo()),2&t){const t=ua();dr(3),qo("ngIf",!t.currentUser),dr(1),qo("ngIf",t.currentUser)}}function NZ(t,e){if(1&t){const t=ea();Qo(0,"div"),Qo(1,"p"),Na(2,'This study has an additional screener to complete in order to determine if you are eligible to participate. Click the "Go to screener" button to be directed there.'),Xo(),Qo(3,"button",5),ra("click",function(){return Be(t),ua(2).goEligibility()}),Na(4,"Go to screener"),Xo(),Xo()}}function VZ(t,e){if(1&t&&(Qo(0,"div",1),Qo(1,"h2"),Na(2,"Thank You"),Xo(),Qo(3,"p"),Na(4,"We\u2019ve let the researchers know that you are interested in the study."),Xo(),jo(5,NZ,5,0,"div",6),Xo()),2&t){const t=ua();dr(5),qo("ngIf",t.study.eligibility_url)}}let BZ=(()=>{class t{constructor(t,e,i,n){this.api=t,this.authenticationService=e,this.router=i,this.googleAnalytics=n,this.haveUserContact=!1,this.nonParticipant=!0,this.inquirySent=!1,this.alreadyInquired=!1,this.authenticationService.currentUser.subscribe(t=>this.currentUser=t)}ngOnInit(){this.refreshUserAndInquiries()}refreshUserAndInquiries(){this.currentUser&&(this.api.getUser(this.currentUser.id).subscribe(t=>{const e=new VG(t);this.currentUser=e,this.haveUserContact=e.checkContact(),this.nonParticipant=e.getSelf().relationship===LG.SELF_INTERESTED}),this.api.getUserStudyInquiries(this.currentUser.id).subscribe(t=>{t.forEach(t=>{t.study_id===this.study.id&&(this.alreadyInquired=!0)})}))}goLogin(){this.router.navigate(["/login"],{queryParams:{returnUrl:this.router.url}})}goRegister(){this.router.navigateByUrl("/register")}sendInquiry(){this.api.sendStudyInquiryEmail(this.currentUser,this.study).subscribe(),this.googleAnalytics.studyInquiryEvent(this.study),this.inquirySent=!0}goEditEnroll(t,e){e.relationship===LG.SELF_PARTICIPANT?(t.preventDefault(),this.router.navigate(["flow","self_intake",e.id])):e.relationship===LG.DEPENDENT?(t.preventDefault(),this.router.navigate(["flow","dependent_intake",e.id])):e.relationship===LG.SELF_PROFESSIONAL?(t.preventDefault(),this.router.navigate(["flow","professional_intake",e.id])):e.relationship===LG.SELF_GUARDIAN&&(t.preventDefault(),this.router.navigate(["flow","guardian_intake",e.id]))}goEligibility(){this.study&&this.study.eligibility_url&&(window.open(this.study.eligibility_url+"?user_id="+this.currentUser.id,"_blank"),this.sendInquiry())}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(BG),$o(lG),$o(IG))},t.\u0275cmp=Xt({type:t,selectors:[["app-study-inquiry"]],inputs:{study:"study"},decls:2,vars:2,consts:[["fxFlex.gt-md","60%",4,"ngIf"],["fxFlex.gt-md","60%"],["fxLayout","column","fxLayoutGap","20px",4,"ngIf"],["fxLayout","column","fxLayoutGap","20px"],["mat-flat-button","","color","primary",3,"click"],["mat-flat-button","","color","accent",3,"click"],[4,"ngIf"],[4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutGap","1em"],[3,"mode","value"],["mat-flat-button","","color","primary",3,"id","click"]],template:function(t,e){1&t&&(jo(0,FZ,5,2,"div",0),jo(1,VZ,6,1,"div",0)),2&t&&(qo("ngIf",!e.inquirySent),dr(1),qo("ngIf",e.inquirySent))},directives:[Jd,k_,o_,p_,TA,Kd,ZA,QA,XA,YD],pipes:[fh],styles:[""]}),t})();function HZ(t,e){if(1&t&&(Qo(0,"h4"),Na(1),Xo()),2&t){const t=ua(2);dr(1),Va(t.study.organization_name)}}function zZ(t,e){if(1&t&&Ko(0,"app-edit-button",7),2&t){const t=ua(2);qo("editLabel","Edit Study")("editLink","study/edit/"+t.study.id.toString())("currentUser",t.currentUser)}}function GZ(t,e){if(1&t&&(Qo(0,"p"),Qo(1,"b"),Na(2,"Click "),Qo(3,"a",8),Na(4,"here"),Xo(),Na(5," for the results"),Xo(),Xo()),2&t){const t=ua(2);dr(3),ma("href",t.study.results_url,ms)}}function UZ(t,e){if(1&t&&(Qo(0,"div"),Qo(1,"h2"),Na(2,"Who We're Looking For"),Xo(),Qo(3,"markdown"),Na(4),Xo(),Xo()),2&t){const t=ua(2);dr(4),Va(t.study.participant_description)}}function jZ(t,e){if(1&t&&(Qo(0,"div"),Qo(1,"h2"),Na(2,"Why Participate?"),Xo(),Qo(3,"markdown"),Na(4),Xo(),Xo()),2&t){const t=ua(2);dr(4),Va(t.study.benefit_description)}}function WZ(t,e){if(1&t&&(Qo(0,"a",8),Na(1),Xo()),2&t){const t=ua().$implicit;ma("href",t.investigator.bio_link,ms),dr(1),Va(t.investigator.name)}}function $Z(t,e){if(1&t&&(Qo(0,"b"),Na(1),Xo()),2&t){const t=ua().$implicit;dr(1),Va(t.investigator.name)}}function qZ(t,e){if(1&t&&(Qo(0,"span"),Na(1),Xo()),2&t){const t=ua().$implicit;dr(1),Ba(", ",t.investigator.title,"")}}function YZ(t,e){if(1&t&&(Qo(0,"span"),Na(1),Xo()),2&t){const t=ua().$implicit;dr(1),Ba(", ",t.investigator.organization_name,"")}}function QZ(t,e){if(1&t){const t=ea();Qo(0,"button",14),ra("click",function(){Be(t);const e=ua().$implicit;return ua(3).openDialog(e)}),Qo(1,"mat-icon"),Na(2,"edit"),Xo(),Xo()}}function XZ(t,e){if(1&t&&(Qo(0,"div",10),Qo(1,"div",11),Qo(2,"p"),jo(3,WZ,2,2,"a",12),jo(4,$Z,2,1,"b",4),jo(5,qZ,2,1,"span",4),jo(6,YZ,2,1,"span",4),Xo(),Xo(),jo(7,QZ,3,0,"button",13),Xo()),2&t){const t=e.$implicit,i=ua(3);dr(3),qo("ngIf",t.investigator.bio_link),dr(1),qo("ngIf",!t.investigator.bio_link),dr(1),qo("ngIf",t.investigator.title),dr(1),qo("ngIf",t.investigator.organization_name),dr(1),qo("ngIf",i.currentUser&&i.currentUser.permissions.includes("edit_resource"))}}function KZ(t,e){if(1&t&&(Qo(0,"div"),Qo(1,"h2"),Na(2,"About the Researchers"),Xo(),jo(3,XZ,8,5,"div",9),Xo()),2&t){const t=ua(2);dr(3),qo("ngForOf",t.study.study_investigators)}}function ZZ(t,e){1&t&&(Qo(0,"h2"),Na(1,"Where does this study take place?"),Xo())}function JZ(t,e){1&t&&(Qo(0,"h2"),Na(1,"Where did this study take place?"),Xo())}function tJ(t,e){if(1&t&&(Qo(0,"p"),Na(1),Xo()),2&t){const t=ua(3);dr(1),Ba("Number of Visits Required For Participation: ",t.study.num_visits,"")}}function eJ(t,e){if(1&t&&(Qo(0,"div"),jo(1,ZZ,2,0,"h2",4),jo(2,JZ,2,0,"h2",4),Qo(3,"p"),Na(4),Xo(),jo(5,tJ,2,1,"p",4),Xo()),2&t){const t=ua(2);dr(1),qo("ngIf","currently_enrolling"===t.study.status||"study_in_progress"===t.study.status),dr(1),qo("ngIf","results_being_analyzed"===t.study.status||"study_results_published"===t.study.status),dr(2),Va(t.study.location),dr(1),qo("ngIf",t.study.num_visits)}}function iJ(t,e){if(1&t&&(Qo(0,"div"),Ko(1,"app-study-survey-entry",15),Xo()),2&t){const t=ua(2);dr(1),qo("study",t.study)("currentUser",t.currentUser)("surveyLink",t.study.survey_url)}}function nJ(t,e){if(1&t&&(Qo(0,"div"),Ko(1,"app-study-inquiry",16),Xo()),2&t){const t=ua(2);dr(1),qo("study",t.study)}}function sJ(t,e){if(1&t&&(Qo(0,"div",2),Qo(1,"div",3),Qo(2,"h1"),Na(3),Xo(),jo(4,HZ,2,1,"h4",4),jo(5,zZ,1,3,"app-edit-button",5),Qo(6,"p",6),Na(7),Xo(),Qo(8,"markdown"),Na(9),Xo(),jo(10,GZ,6,1,"p",4),jo(11,UZ,5,1,"div",4),jo(12,jZ,5,1,"div",4),jo(13,KZ,4,1,"div",4),jo(14,eJ,6,4,"div",4),jo(15,iJ,2,3,"div",4),jo(16,nJ,2,1,"div",4),Xo(),Xo()),2&t){const t=ua();dr(3),Va(t.study.title),dr(1),qo("ngIf",t.study.organization_name),dr(1),qo("ngIf",t.currentUser&&t.currentUser.permissions.includes("edit_study")),dr(2),Ba("Study Status: ",t.snakeToUpperCase(t.study.status),""),dr(2),Va(t.study.description),dr(1),qo("ngIf",t.study.results_url),dr(1),qo("ngIf","currently_enrolling"===t.study.status&&t.study.participant_description),dr(1),qo("ngIf","currently_enrolling"===t.study.status&&t.study.benefit_description),dr(1),qo("ngIf",t.study.study_investigators.length>0),dr(1),qo("ngIf",t.study.location),dr(1),qo("ngIf","currently_enrolling"===t.study.status&&t.study.survey_url),dr(1),qo("ngIf","currently_enrolling"===t.study.status&&!t.study.survey_url)}}function rJ(t,e){1&t&&Ko(0,"app-loading",17)}let oJ=(()=>{class t{constructor(t,e,i,n,s){this.api=t,this.route=e,this.router=i,this.authenticationService=n,this.dialog=s,this.loading=!0,this.authenticationService.currentUser.subscribe(t=>this.currentUser=t),this.route.params.subscribe(t=>{this.loading=!0;const e=t.studyId?parseInt(t.studyId,10):null;isFinite(e)&&this.api.getStudy(e).subscribe(t=>{this.study=t,this.loading=!1})})}get snakeToUpperCase(){return $q}ngOnInit(){}openDialog(t){this.dialog.open(_Z,{width:`${window.innerWidth}px`,data:{si:t}}).afterClosed().subscribe(e=>{e&&(t.investigator=e,this.api.updateInvestigator(t.investigator).subscribe())})}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(UH),$o(lG),$o(BG),$o(jO))},t.\u0275cmp=Xt({type:t,selectors:[["app-study-detail"]],decls:2,vars:2,consts:[["class","container","id","study",4,"ngIf"],["message","Loading...",4,"ngIf"],["id","study",1,"container"],["id","study-details","fxFlex.gt-md","80%","fxFlex.gt-lg","60%","fxLayout","column","fxLayoutGap","15px",1,"row"],[4,"ngIf"],[3,"editLabel","editLink","currentUser",4,"ngIf"],[1,"status"],[3,"editLabel","editLink","currentUser"],["target","_blank",3,"href"],["fxLayout","row","fxLayoutGap","40px","fxLayoutAlign","start center",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutGap","40px","fxLayoutAlign","start center"],[1,"investigator"],["target","_blank",3,"href",4,"ngIf"],["mat-mini-fab","","type","button","color","primary","matTooltip","Edit Investigator",3,"click",4,"ngIf"],["mat-mini-fab","","type","button","color","primary","matTooltip","Edit Investigator",3,"click"],[3,"study","currentUser","surveyLink"],[3,"study"],["message","Loading..."]],template:function(t,e){1&t&&(jo(0,sJ,17,12,"div",0),jo(1,rJ,1,0,"app-loading",1)),2&t&&(qo("ngIf",!e.loading&&e.study),dr(1),qo("ngIf",!e.study))},directives:[Jd,k_,o_,p_,BV,xY,Kd,Z_,TA,AD,JT,OZ,BZ,Qj],styles:[".mat-flat-button[_ngcontent-%COMP%]{margin-top:1em}.status[_ngcontent-%COMP%]{font-size:1.5em;font-weight:700;margin:1em 0;padding-bottom:1em}.investigator[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:.25em auto}h1[_ngcontent-%COMP%]{margin:1em 0}#study-details[_ngcontent-%COMP%]{margin:2em}"]}),t})();function aJ(t,e){1&t&&Ko(0,"app-loading",3)}function lJ(t,e){if(1&t){const t=ea();Qo(0,"button",11),ra("click",function(){Be(t);const e=ua(2);return e.form.valid?e.submit():e.highlightRequiredFields()}),Na(1,"Save"),Xo()}}function cJ(t,e){if(1&t){const t=ea();Qo(0,"button",12),ra("click",function(){return Be(t),ua(2).onCancel()}),Na(1,"Cancel"),Xo()}}function uJ(t,e){if(1&t){const t=ea();Qo(0,"button",13),ra("click",function(){return Be(t),ua(2).showDelete()}),Na(1,"Delete"),Xo()}}function dJ(t,e){if(1&t){const t=ea();Qo(0,"button",14),ra("click",function(){return Be(t),ua(2).onDelete()}),Na(1,"Permanently Delete This Study!!! "),Xo()}}function hJ(t,e){if(1&t&&(Qo(0,"form",4),Qo(1,"h1"),Na(2,"Study Details"),Xo(),Ko(3,"formly-form",5),Qo(4,"div",6),jo(5,lJ,2,0,"button",7),jo(6,cJ,2,0,"button",8),jo(7,uJ,2,0,"button",9),jo(8,dJ,2,0,"button",10),Xo(),Xo()),2&t){const t=ua();qo("formGroup",t.form),dr(3),qo("form",t.form)("model",t.model)("fields",t.fields)("options",t.options),dr(2),qo("ngIf",t.form),dr(1),qo("ngIf",t.form),dr(1),qo("ngIf",!t.showConfirmDelete&&!t.createNew),dr(1),qo("ngIf",t.showConfirmDelete)}}var pJ=function(t){return t.LOADING="loading",t.SHOW_FORM="form",t}({});let mJ=(()=>{class t{constructor(t,e,i,n){this.api=t,this.route=e,this.router=i,this.deviceDetectorService=n,this.pageState=pJ,this.state=pJ.LOADING,this.showConfirmDelete=!1,this.model={},this.fields=[{key:"status",type:"select",templateOptions:{label:"Study Status",placeholder:"Please select the study status",options:[{value:"currently_enrolling",label:"Currently Enrolling"},{value:"study_in_progress",label:"Study in progress"},{value:"results_being_analyzed",label:"Results being analyzed"},{value:"study_results_published",label:"Study results published"}],required:!0}},{key:"title",type:"input",templateOptions:{label:"Title",placeholder:"Please enter the title of your study",required:!0}},{key:"short_title",type:"input",templateOptions:{label:"Short Title",placeholder:"Please enter the short display title of your study",required:!0,maxLength:55}},{key:"description",type:"textarea-auto-resize",templateOptions:{label:"Description",placeholder:"Please enter the description of your study",required:!0}},{key:"short_description",type:"textarea",templateOptions:{label:"Short Description",placeholder:"Please enter the short display description of your study",required:!0,maxLength:155}},{key:"participant_description",type:"textarea-auto-resize",templateOptions:{label:"Participant Description",placeholder:"Who are you looking for to participate in your study?"},expressionProperties:{"templateOptions.required":'model.status === "currently_enrolling"'}},{key:"benefit_description",type:"textarea",templateOptions:{label:"Benefit Description",placeholder:"How will participants benefit from your study?"},expressionProperties:{"templateOptions.required":'model.status === "currently_enrolling"'}},{key:"investigators",type:"select",templateOptions:{label:"Investigators",options:[],valueProp:"id",labelProp:"name",required:!0,multiple:!0},hooks:{onInit:t=>{t.templateOptions.options=this.api.getInvestigators()}}},{key:"additional_investigators",wrappers:["card"],templateOptions:{label:"Additional Investigator",description:"If your investigator does not appear in the list above, please add them here"},fieldGroup:[{type:"input",key:"name",templateOptions:{label:"Name"}},{type:"input",key:"title",templateOptions:{label:"Title"}},{type:"input",key:"organization_name",templateOptions:{label:"Organization Name"}},{type:"input",key:"bio_link",templateOptions:{label:"Bio Link"}}]},{key:"organization_name",type:"input",templateOptions:{label:"Organization",placeholder:"Please enter the name of the hosting organization"}},{key:"location",type:"input",templateOptions:{label:"Location Name",placeholder:"Please describe where the study will take place"}},{key:"num_visits",type:"input",templateOptions:{label:"Number of Visits",type:"number",placeholder:"Please list the number of visits required for participation in this study"}},{key:"coordinator_email",type:"input",templateOptions:{label:"Coordinator Email",placeholder:"Please enter the email address to which study inquires will be sent"},expressionProperties:{"templateOptions.required":'model.status === "currently_enrolling"'},validators:{validation:["email"]}},{key:"eligibility_url",type:"input",templateOptions:{label:"Eligibility Link",placeholder:"If you have an eligibilty screener, please enter the link"},validators:{validation:["url"]}},{key:"survey_url",type:"input",templateOptions:{label:"Survey Link",placeholder:"If this is an online survey study, please enter the link"},validators:{validation:["url"]}},{key:"results_url",type:"input",templateOptions:{label:"Results Url",placeholder:"Link to published results of the study"},validators:{validation:["url"]}},{key:"image_url",type:"input",templateOptions:{label:"Image Url",placeholder:"This is the link to the image used for current study display",description:"Something like: /assets/home/study7.jpg"}},{key:"categories",type:"multiselecttree",templateOptions:{label:"Topics",options:this.api.getCategoryTree(),valueProp:"id",labelProp:"name"}},{key:"ages",type:"multicheckbox",templateOptions:{label:"Age Ranges",type:"array",options:this.getOptions(EU.labels)}},{key:"languages",type:"multicheckbox",templateOptions:{label:"Languages",type:"array",options:this.getOptions(TU.labels)}}],this.createNew=!1}ngOnInit(){this.model.createNew=!1,this.loadData()}getOptions(t){const e=[];for(const i in t)t.hasOwnProperty(i)&&e.push({value:i,label:t[i]});return e}loadData(){this.route.params.subscribe(t=>{if(t.studyId){const e=t.studyId;this.createNew=!1,this.model.createNew=!1,this.api.getStudy(e).subscribe(t=>{this.study=t,this.model=this.study,this.loadInvestigators(t),this.loadStudyCategories(t,()=>this.loadForm())})}else this.createNew=!0,this.model.createNew=!0,this.study={title:"",description:"",participant_description:"",benefit_description:"",investigators:[],location:"",categories:[],status:""},this.loadForm()})}loadInvestigators(t){this.model.investigators=[],t.study_investigators.length>0&&t.study_investigators.forEach(t=>{this.model.investigators.push(t.investigator.id)})}loadStudyCategories(t,e){if(this.model.categories=[],t.study_categories.length>0)for(const i of t.study_categories)this.model.categories.push(i.category),e();else e()}loadForm(){this.form=new cy({}),this.options={formState:{mainModel:this.model}},this.state=this.pageState.SHOW_FORM}updateStudyCategories(t){const e=[];return this.model.categories.forEach((i,n)=>{!0===i&&e.push({study_id:t,category_id:n})}),this.api.updateStudyCategories(t,e)}addStudyInvestigator(){const t=this.model.additional_investigators;return this.api.addInvestigator({name:t.name,title:t.title,organization_name:t.organization_name,bio_link:t.bio_link})}updateStudyInvestigators(t){const e=[];return this.model.investigators.forEach(i=>{e.push({study_id:t,investigator_id:i})}),this.api.updateStudyInvestigators(t,e)}submit(){this.form.valid&&(this.createNew?(this.createNew=!1,this.updateAndClose(this.api.addStudy(this.model))):this.updateAndClose(this.api.updateStudy(this.model)))}updateAndClose(t){t.subscribe(t=>{this.updatedStudy=t,this.model.id=t.id,this.model.additional_investigators.name?this.addStudyInvestigator().subscribe(e=>{this.model.investigators.push(e.id),this.updateStudyInvestigators(t.id).subscribe(()=>{this.updateStudyCategories(t.id).subscribe(()=>this.close())})}):this.updateStudyInvestigators(t.id).subscribe(()=>{this.updateStudyCategories(t.id).subscribe(()=>this.close())})})}showDelete(){this.showConfirmDelete=!0}onDelete(){this.api.deleteStudy(this.study).subscribe(t=>{this.router.navigate(["studies"])})}close(){this.router.navigate(this.updatedStudy&&this.updatedStudy.id?["study",this.updatedStudy.id]:["studies"])}onCancel(){this.close()}highlightRequiredFields(){for(const t of Object.keys(this.form.controls)){const e=this.form.controls[t];e.updateValueAndValidity(),e.markAsDirty()}aB(this.deviceDetectorService)}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(UH),$o(lG),$o(xV))},t.\u0275cmp=Xt({type:t,selectors:[["app-study-form"]],decls:3,vars:2,consts:[[1,"study-detail","mat-typography"],["message","Loading...",4,"ngIf"],["class","pad-2",3,"formGroup",4,"ngIf"],["message","Loading..."],[1,"pad-2",3,"formGroup"],[3,"form","model","fields","options"],["fxLayoutGap","2em",1,"button-row"],["mat-flat-button","","type","button","color","primary","id","save-next-button",3,"click",4,"ngIf"],["mat-flat-button","","type","button","color","accent","id","cancel-button",3,"click",4,"ngIf"],["type","button","mat-flat-button","","color","warn","id","delete-button",3,"click",4,"ngIf"],["id","confirm_delete","type","button","mat-flat-button","","color","warn","id","permanently-delete-button",3,"click",4,"ngIf"],["mat-flat-button","","type","button","color","primary","id","save-next-button",3,"click"],["mat-flat-button","","type","button","color","accent","id","cancel-button",3,"click"],["type","button","mat-flat-button","","color","warn","id","delete-button",3,"click"],["id","confirm_delete","type","button","mat-flat-button","","color","warn","id","permanently-delete-button",3,"click"]],template:function(t,e){1&t&&(Qo(0,"div",0),jo(1,aJ,1,0,"app-loading",1),jo(2,hJ,9,9,"form",2),Xo()),2&t&&(dr(1),qo("ngIf",e.state===e.pageState.LOADING),dr(1),qo("ngIf",e.state===e.pageState.SHOW_FORM))},directives:[Jd,Qj,_y,jb,ky,NF,p_,TA],styles:[".study-detail[_ngcontent-%COMP%]{margin:2em}"]}),t})();var fJ=function(t,e,i,n){return new(i||(i=Promise))(function(s,r){function o(t){try{l(n.next(t))}catch(e){r(e)}}function a(t){try{l(n.throw(t))}catch(e){r(e)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(o,a)}l((n=n.apply(t,e||[])).next())})};function gJ(t,e){if(1&t){const t=ea();Qo(0,"button",17),ra("click",function(){Be(t);const e=ua().$implicit;return ua(2).showDelete(e)}),Qo(1,"mat-icon"),Na(2,"delete"),Xo(),Xo()}2&t&&qo("matTooltip","Delete "+ua().$implicit.name)}function _J(t,e){if(1&t){const t=ea();Zo(0),Qo(1,"button",18),ra("click",function(){Be(t);const e=ua().$implicit;return ua(2).deleteNode(e)}),Na(2),Xo(),Qo(3,"button",19),ra("click",function(){return Be(t),ua(3).cancelDelete()}),Na(4,"Cancel "),Xo(),Jo()}if(2&t){const t=ua().$implicit;dr(2),Ba("Permanently Delete ",t.name,"!!! ")}}const bJ=function(t){return{"mat-tree-node":!0,"highlight-node":t}},yJ=function(t){return{category:t}},vJ=function(){return["/search"]};function wJ(t,e){if(1&t){const t=ea();Qo(0,"mat-tree-node",8),Qo(1,"li",9),Ko(2,"button",10),Qo(3,"button",11),Na(4),Xo(),Qo(5,"a",12),Na(6),Xo(),Na(7),Qo(8,"button",13),ra("click",function(){Be(t);const i=e.$implicit;return ua(2).moveItem(i,-1)}),Qo(9,"mat-icon"),Na(10,"arrow_upward"),Xo(),Xo(),Qo(11,"button",14),ra("click",function(){Be(t);const i=e.$implicit;return ua(2).moveItem(i,1)}),Qo(12,"mat-icon"),Na(13,"arrow_downward"),Xo(),Xo(),Qo(14,"button",15),ra("click",function(){Be(t);const i=e.$implicit;return ua(2).addNewItem(i)}),Qo(15,"mat-icon"),Na(16,"add_circle"),Xo(),Xo(),jo(17,gJ,3,1,"button",16),jo(18,_J,5,1,"ng-container",0),Xo(),Xo()}if(2&t){const t=e.$implicit,i=ua(2);dr(1),qo("ngClass",pc(11,bJ,t.id===i.highlightedNode)),dr(3),Va(t.name),dr(1),qo("queryParams",pc(13,yJ,t.id))("routerLink",hc(15,vJ)),dr(1),Ba(" ",t.all_resource_count," associated resources "),dr(1),Ba(" & ",t.study_count," associated studies "),dr(1),qo("disabled",t.display_order<=0),dr(3),qo("disabled",t.display_order>=i.getSiblings(t).length-1),dr(3),qo("matTooltip","Add sub-category to "+t.name),dr(3),qo("ngIf",!i.showConfirmDelete),dr(1),qo("ngIf",i.showConfirmDelete&&t.id===i.nodeToDelete.id)}}function CJ(t,e){if(1&t){const t=ea();Qo(0,"mat-tree-node",20),Ko(1,"button",10),Qo(2,"mat-form-field"),Qo(3,"mat-label"),Na(4,"New item..."),Xo(),Ko(5,"input",21,22),Xo(),Qo(7,"button",6),ra("click",function(){Be(t);const i=e.$implicit,n=Wo(6);return ua(2).saveNode(i,n.value)}),Na(8,"Save"),Xo(),Qo(9,"button",7),ra("click",function(){return Be(t),ua(2).cancelAdd()}),Na(10,"Cancel"),Xo(),Xo()}}function xJ(t,e){if(1&t){const t=ea();Qo(0,"mat-nested-tree-node",20),Qo(1,"li"),Qo(2,"div",9),Qo(3,"button",23),Qo(4,"mat-icon",24),Na(5),Xo(),Xo(),Qo(6,"button",11),Na(7),Xo(),Qo(8,"a",12),Na(9),Xo(),Na(10),Qo(11,"button",13),ra("click",function(){Be(t);const i=e.$implicit;return ua(2).moveItem(i,-1)}),Qo(12,"mat-icon"),Na(13,"arrow_upward"),Xo(),Xo(),Qo(14,"button",14),ra("click",function(){Be(t);const i=e.$implicit;return ua(2).moveItem(i,1)}),Qo(15,"mat-icon"),Na(16,"arrow_downward"),Xo(),Xo(),Qo(17,"button",25),ra("click",function(){Be(t);const i=e.$implicit;return ua(2).addNewItem(i)}),Qo(18,"mat-icon"),Na(19,"add_circle"),Xo(),Xo(),Xo(),Qo(20,"ul"),ta(21,26),Xo(),Xo(),Xo()}if(2&t){const t=e.$implicit,i=ua(2);dr(2),qo("ngClass",pc(13,bJ,t.id===i.highlightedNode)),dr(1),zo("aria-label","toggle "+t.name),dr(2),Ba(" ",i.treeControl.isExpanded(t)?"expand_more":"chevron_right"," "),dr(2),Va(t.name),dr(1),qo("queryParams",pc(15,yJ,t.id))("routerLink",hc(17,vJ)),dr(1),Ba(" ",t.all_resource_count," associated resources "),dr(1),Ba(" & ",t.study_count," associated studies "),dr(1),qo("disabled",t.display_order<=0),dr(3),qo("disabled",t.display_order>=i.getSiblings(t).length-1),dr(3),qo("matTooltip","Add sub-category to "+t.name),dr(3),Sa("tree-select-invisible",!i.treeControl.isExpanded(t))}}function SJ(t,e){if(1&t){const t=ea();Qo(0,"div"),Qo(1,"h1"),Na(2,"Topics Taxonomy"),Xo(),Qo(3,"p"),Na(4,"To add a topic, click the plus sign next to the parent topic and fill in the name"),Xo(),Qo(5,"p"),Na(6,"To delete a topic, use the button directly next to the topic; it is only possible to delete one topic at a time and only possible to delete topics with no associated children topics."),Xo(),Qo(7,"mat-tree",1),jo(8,wJ,19,16,"mat-tree-node",2),jo(9,CJ,11,0,"mat-tree-node",3),jo(10,xJ,22,18,"mat-nested-tree-node",3),Xo(),Qo(11,"div",4),Qo(12,"mat-form-field"),Qo(13,"mat-label"),Na(14,"New root item..."),Xo(),Qo(15,"input",5),ra("ngModelChange",function(e){return Be(t),ua().rootValue=e}),Xo(),Xo(),Qo(16,"button",6),ra("click",function(){Be(t);const e=ua();return e.saveNode({name:"",parent_id:null},e.rootValue)}),Na(17,"Save"),Xo(),Qo(18,"button",7),ra("click",function(){return Be(t),ua().rootValue=""}),Na(19,"Cancel"),Xo(),Xo(),Xo()}if(2&t){const t=ua();dr(7),qo("dataSource",t.dataSource)("treeControl",t.treeControl),dr(2),qo("matTreeNodeDefWhen",t.hasNoContent),dr(1),qo("matTreeNodeDefWhen",t.hasNestedChild),dr(5),qo("ngModel",t.rootValue)}}let kJ=(()=>{class t{constructor(t,e){this.api=t,this.authenticationService=e,this.dataLoaded=!1,this.nodes={},this.showConfirmDelete=!1,this.rootValue="",this.checklistSelection=new mS(!0),this.hasNestedChild=(t,e)=>e.children&&e.children.length>0,this.hasNoContent=(t,e)=>{const i=""===e.name&&void 0===e.id;return""===e.name&&console.log({_nodeData:e}),i},this.treeControl=new vL(t=>Sp(t.children)),this.dataSource=new $L,this.authenticationService.currentUser.subscribe(t=>this.currentUser=t),this.getCategoryTree(!0)}ngOnInit(){}getCategoryTree(t=!1,e){this.api.getCategoryTree().subscribe(i=>fJ(this,void 0,void 0,function*(){if(!t||!(yield this.hasMissingDisplayOrder(i)))return yield this.walkTree(i,(t,e)=>(this.nodes[t.id]=t,Sp(!0))).then(()=>{this.dataSource.data=i,e&&e()});yield this.walkTree(i,(t,e)=>(t.display_order=e,this.api.addCategory(t))).then(()=>{this.dataSource.data=i,e&&e()})}))}addNewItem(t){this.dataSource.data=this.insertNewChildNode(t,this.dataSource.data),this.refreshTree(),this.treeControl.expand(t)}saveNode(t,e){t.name=e,this.api.addCategory(t).subscribe(t=>{const e=t.id;this.rootValue="",this.getCategoryTree(!0,()=>{this.refreshTree(),this.expandAncestorNodes(e),this.highlightedNode=e})})}moveItem(t,e){const i=t.id,n=null===t.parent_id?this.dataSource.data:this.nodes[t.parent_id].children,s=t.display_order+e;if(n.length<=1||e<0&&s<0||e>0&&s===n.length)return;const r=n[s];r.display_order=t.display_order,t.display_order=s,this.api.addCategory(r).subscribe(()=>{this.api.addCategory(t).subscribe(()=>{this.rootValue="",this.getCategoryTree(!1,()=>{this.refreshTree(),this.highlightedNode=i,this.expandAncestorNodes(i)})})})}showDelete(t){this.showConfirmDelete=!0,this.nodeToDelete=t}deleteNode(t){this.api.deleteCategory(t.id).subscribe(t=>{this.showConfirmDelete=!1,this.nodeToDelete=null,this.getCategoryTree()})}cancelDelete(){this.showConfirmDelete=!1,this.nodeToDelete=void 0}cancelAdd(){this.dataSource.data=this.removeEmpty(this.dataSource.data),this.refreshTree()}removeEmpty(t){return t&&t.length>0?(t=t.filter(t=>""!==t.name)).map(t=>(t.children=this.removeEmpty(t.children),t)):t}insertNewChildNode(t,e){if(e&&e.length>0){const i=e.findIndex(e=>e.id===t.id);return-1!==i?(e[i].children.push({name:"",parent_id:t.id}),e):e.map(e=>(e.children=this.insertNewChildNode(t,e.children),e))}}refreshTree(){const t=this.dataSource.data;this.dataSource.data=null,this.dataSource.data=t}walkTree(t,e){return fJ(this,void 0,void 0,function*(){return t.map((t,i)=>fJ(this,void 0,void 0,function*(){this.nodes[t.id]=t;const n=e(t,i);if(t.children&&t.children.length>0)return n.subscribe(()=>fJ(this,void 0,void 0,function*(){return yield this.walkTree(t.children,e)}))}))})}hasMissingDisplayOrder(t){return fJ(this,void 0,void 0,function*(){let e=!1;return yield this.walkTree(t,(t,i)=>(null==t.display_order&&(e=!0),Sp(e))),e})}getSiblings(t){if(null===t.parent_id)return this.dataSource.data;{const e=this.nodes[t.parent_id];return e&&e.children&&e.children.length>=0?e.children:[]}}expandAncestorNodes(t){const e=this.nodes[t];if(null!==e.parent_id){const t=this.nodes[e.parent_id];this.treeControl.expand(t),null!==t.parent_id&&this.expandAncestorNodes(t.id)}}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(BG))},t.\u0275cmp=Xt({type:t,selectors:[["app-taxonomy-admin"]],decls:1,vars:1,consts:[[4,"ngIf"],[1,"tree-select","taxonomy-admin",3,"dataSource","treeControl"],["matTreeNodeToggle","","matTreeNodePadding","",4,"matTreeNodeDef"],["matTreeNodePadding","",4,"matTreeNodeDef","matTreeNodeDefWhen"],["fxLayout","row"],["matInput","","placeholder","Ex. Topic Name",3,"ngModel","ngModelChange"],["mat-button","","color","primary",3,"click"],["mat-button","",3,"click"],["matTreeNodeToggle","","matTreeNodePadding",""],[3,"ngClass"],["disabled","","mat-icon-button",""],["matTreeNodeToggle","","mat-button",""],[1,"associated-records",3,"queryParams","routerLink"],["mat-icon-button","","color","primary","matTooltip","Move up",3,"disabled","click"],["mat-icon-button","","color","primary","matTooltip","Move down",3,"disabled","click"],["mat-icon-button","","color","primary",3,"matTooltip","click"],["color","warn","mat-icon-button","","type","button",3,"matTooltip","click",4,"ngIf"],["color","warn","mat-icon-button","","type","button",3,"matTooltip","click"],["color","warn","mat-flat-button","","type","button",3,"click"],["mat-flat-button","","type","button",3,"click"],["matTreeNodePadding",""],["matInput","","placeholder","Ex. Topic Name"],["itemValue",""],["mat-icon-button","","matTreeNodeToggle","",1,"toggle-node-button"],[1,"mat-icon-rtl-mirror"],["mat-icon-button","",3,"matTooltip","click"],["matTreeNodeOutlet",""]],template:function(t,e){1&t&&jo(0,SJ,20,5,"div",0),2&t&&qo("ngIf",e.currentUser&&e.currentUser.permissions.includes("publish_resource"))},directives:[Jd,zL,LL,o_,Yk,Nk,cE,_b,Ub,gy,TA,RL,UL,VL,Qd,Pg,uG,AD,JT,NL,HL],styles:[".tree-select-invisible[_ngcontent-%COMP%]{display:none}.tree-select[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .tree-select[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;margin-left:1rem;list-style-type:none}.tree-select[_ngcontent-%COMP%] li[_ngcontent-%COMP%] button.toggle-node-button[_ngcontent-%COMP%], .tree-select[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] button.toggle-node-button[_ngcontent-%COMP%]{outline:none!important}.associated-records[_ngcontent-%COMP%]{margin-left:.5em;margin-right:.5em}.highlight-node[_ngcontent-%COMP%]{background-color:#e4e7f2;-webkit-animation-name:fade-out;-webkit-animation:fade-out 5s forwards;animation:fade-out 5s forwards}@-webkit-keyframes fade-out{0%{background-color:#e4e7f2}to{background-color:rgba(0,0,0,0)}}@keyframes fade-out{0%{background-color:#e4e7f2}to{background-color:rgba(0,0,0,0)}}"]}),t})();function AJ(t,e){1&t&&(Qo(0,"h3",11),Na(1,"You must read and accept the following Terms & Conditions in order to continue creating an Autism DRIVE account."),Xo())}function OJ(t,e){1&t&&(Qo(0,"div",12),Ko(1,"ng2-pdfjs-viewer",13),Xo())}function EJ(t,e){1&t&&(Qo(0,"div",14),Ko(1,"ng2-pdfjs-viewer",15),Xo())}function TJ(t,e){1&t&&(Qo(0,"div",16),Ko(1,"ng2-pdfjs-viewer",17),Xo())}function PJ(t,e){if(1&t){const t=ea();Qo(0,"button",18),ra("click",function(e){return Be(t),ua().goProfile(e)}),Na(1," Cancel "),Xo()}}function DJ(t,e){if(1&t){const t=ea();Qo(0,"button",19),ra("click",function(){return Be(t),ua().addParticipantAndGoToFlow()}),Na(1," I agree "),Xo()}}function MJ(t,e){if(1&t){const t=ea();Qo(0,"button",20),ra("click",function(e){return Be(t),ua().goProfile(e)}),Na(1," Back to Profile "),Xo()}}let IJ=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.route=e,this.authenticationService=i,this.api=n,this.googleAnalyticsService=s,this.preview=!1,this.route.params.subscribe(t=>{this.relationship=t.relationship,"preview"in t&&(this.preview=t.preview)}),this.authenticationService.currentUser.subscribe(t=>{this.user=t},t=>{console.error(t),this.user=null})}ngOnInit(){}goProfile(t){t.preventDefault(),this.router.navigate(["profile"])}getFlow(t){return t===LG.SELF_PARTICIPANT?"self_intake":t===LG.SELF_GUARDIAN?"guardian_intake":t===LG.DEPENDENT?"dependent_intake":t===LG.SELF_PROFESSIONAL?"professional_intake":t===LG.SELF_INTERESTED?"interested_intake":void 0}addParticipantAndGoToFlow(){const t=new FG({user_id:this.user.id,user:this.user,last_updated:new Date,relationship:this.relationship,has_consented:!0}),e=this.getFlow(this.relationship);this.api.addParticipant(t).subscribe(t=>{this.googleAnalyticsService.flowStartEvent(e),this.user.participants.push(t),console.log("Navigating to flow/",e,"/",t.id),this.router.navigate(["flow",e,t.id])})}}return t.\u0275fac=function(e){return new(e||t)($o(lG),$o(UH),$o(BG),$o(WG),$o(IG))},t.\u0275cmp=Xt({type:t,selectors:[["app-terms"]],decls:13,vars:7,consts:[["fxLayoutAlign","center center",1,"container","mat-typography","terms"],["fxFlex","80%"],["variant","dark-lg",3,"click"],["class","alert alert-warn",4,"ngIf"],["id","guardian-terms",4,"ngIf"],["id","self-terms",4,"ngIf"],["id","dependent-terms",4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutGap","2%","fxLayoutAlign","center center"],["mat-flat-button","","color","accent","class","btn-lg","id","terms-cancel-button",3,"click",4,"ngIf"],["mat-flat-button","","color","primary","class","btn-lg","id","agree-button",3,"click",4,"ngIf"],["mat-flat-button","","color","primary","class","btn-lg","id","profile-button",3,"click",4,"ngIf"],[1,"alert","alert-warn"],["id","guardian-terms"],["pdfSrc","../../../assets/terms/guardian_information_sheet.pdf"],["id","self-terms"],["pdfSrc","../../../assets/terms/adult_information_sheet.pdf"],["id","dependent-terms"],["pdfSrc","../../../assets/terms/child_information_sheet.pdf"],["mat-flat-button","","color","accent","id","terms-cancel-button",1,"btn-lg",3,"click"],["mat-flat-button","","color","primary","id","agree-button",1,"btn-lg",3,"click"],["mat-flat-button","","color","primary","id","profile-button",1,"btn-lg",3,"click"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"div",1),Qo(2,"app-logo",2),ra("click",function(t){return e.goProfile(t)}),Xo(),jo(3,AJ,2,0,"h3",3),Qo(4,"h1"),Na(5,"Terms and Conditions"),Xo(),jo(6,OJ,2,0,"div",4),jo(7,EJ,2,0,"div",5),jo(8,TJ,2,0,"div",6),Qo(9,"div",7),jo(10,PJ,2,0,"button",8),jo(11,DJ,2,0,"button",9),jo(12,MJ,2,0,"button",10),Xo(),Xo(),Xo()),2&t&&(dr(3),qo("ngIf",!e.preview),dr(3),qo("ngIf","self_guardian"==e.relationship),dr(1),qo("ngIf","self_participant"==e.relationship||"self_professional"==e.relationship||"self_interested"==e.relationship),dr(1),qo("ngIf","dependent"==e.relationship),dr(2),qo("ngIf",!e.preview),dr(1),qo("ngIf",!e.preview),dr(1),qo("ngIf",e.preview))},directives:[Z_,k_,LW,Jd,o_,p_,nV,TA],styles:[".container[_ngcontent-%COMP%]{min-height:100vh}#dependent-terms[_ngcontent-%COMP%], #guardian-terms[_ngcontent-%COMP%], #self-terms[_ngcontent-%COMP%]{margin-bottom:2em;height:100vh}"]}),t})(),RJ=(()=>{class t{constructor(t,e){this.router=t,this.authenticationService=e}ngOnInit(){this.authenticationService.logout()}goHome(){this.router.navigate([""])}goLogin(){this.router.navigate(["/login"])}}return t.\u0275fac=function(e){return new(e||t)($o(lG),$o(BG))},t.\u0275cmp=Xt({type:t,selectors:[["app-timedout"]],hostVars:1,hostBindings:function(t,e){2&t&&ja("@fadeTransition",e.title)},decls:9,vars:0,consts:[["fxLayout","row","fxLayout.xs","column","fxLayoutWrap","","fxLayoutGap","10px","fxLayoutAlign","center center",1,"container","mat-typography"],["fxFlex","50%",1,"message"],["variant","dark-lg",3,"click"],["mat-flat-button","","color","accent",3,"click"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"div",1),Qo(2,"app-logo",2),ra("click",function(){return e.goHome()}),Xo(),Qo(3,"h1"),Na(4,"Your Autism DRIVE session has timed out."),Xo(),Qo(5,"p"),Na(6,"You will need to log in again to access your profile."),Xo(),Qo(7,"button",3),ra("click",function(){return e.goLogin()}),Na(8,"Ok"),Xo(),Xo(),Xo())},directives:[o_,p_,Z_,k_,LW,TA],styles:[".container[_ngcontent-%COMP%]{min-height:100vh}div.message[_ngcontent-%COMP%]{text-align:center}"],data:{animation:[a$()]}}),t})();function LJ(t,e){1&t&&(Qo(0,"th",14),Na(1," ID "),Xo())}function FJ(t,e){if(1&t&&(Qo(0,"td",15),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.id," ")}}function NJ(t,e){1&t&&(Qo(0,"th",14),Na(1," Questionnaire Name "),Xo())}function VJ(t,e){if(1&t&&(Qo(0,"td",15),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.questionnaire_name," ")}}function BJ(t,e){1&t&&(Qo(0,"th",14),Na(1," Questionnaire ID "),Xo())}function HJ(t,e){if(1&t&&(Qo(0,"td",15),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.questionnaire_id," ")}}function zJ(t,e){1&t&&(Qo(0,"th",14),Na(1," Flow "),Xo())}function GJ(t,e){if(1&t&&(Qo(0,"td",15),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.flow," ")}}function UJ(t,e){1&t&&(Qo(0,"th",14),Na(1," Participant ID "),Xo())}function jJ(t,e){if(1&t&&(Qo(0,"td",15),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.participant_id," ")}}function WJ(t,e){1&t&&(Qo(0,"th",14),Na(1," User ID "),Xo())}function $J(t,e){if(1&t&&(Qo(0,"td",15),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.user_id," ")}}function qJ(t,e){1&t&&(Qo(0,"th",14),Na(1," Date Completed "),Xo())}function YJ(t,e){if(1&t&&(Qo(0,"td",15),Na(1),vc(2,"date"),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",Cc(2,1,t.date_completed,"short")," ")}}function QJ(t,e){1&t&&(Qo(0,"th",14),Na(1," Time On Task MS "),Xo())}function XJ(t,e){if(1&t&&(Qo(0,"td",15),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.time_on_task_ms," ")}}function KJ(t,e){1&t&&Ko(0,"tr",16)}function ZJ(t,e){1&t&&Ko(0,"tr",17)}function JJ(t,e){if(1&t&&(Qo(0,"div"),Qo(1,"h5"),Na(2,"Step Log:"),Xo(),Qo(3,"table",1),Zo(4,2),jo(5,LJ,2,0,"th",3),jo(6,FJ,2,1,"td",4),Jo(),Zo(7,5),jo(8,NJ,2,0,"th",3),jo(9,VJ,2,1,"td",4),Jo(),Zo(10,6),jo(11,BJ,2,0,"th",3),jo(12,HJ,2,1,"td",4),Jo(),Zo(13,7),jo(14,zJ,2,0,"th",3),jo(15,GJ,2,1,"td",4),Jo(),Zo(16,8),jo(17,UJ,2,0,"th",3),jo(18,jJ,2,1,"td",4),Jo(),Zo(19,9),jo(20,WJ,2,0,"th",3),jo(21,$J,2,1,"td",4),Jo(),Zo(22,10),jo(23,qJ,2,0,"th",3),jo(24,YJ,3,4,"td",4),Jo(),Zo(25,11),jo(26,QJ,2,0,"th",3),jo(27,XJ,2,1,"td",4),Jo(),jo(28,KJ,1,0,"tr",12),jo(29,ZJ,1,0,"tr",13),Xo(),Xo()),2&t){const t=ua();dr(3),qo("dataSource",t.dataSource),dr(25),qo("matHeaderRowDef",t.displayedColumns),dr(1),qo("matRowDefColumns",t.displayedColumns)}}let t0=(()=>{class t{constructor(t){this.api=t,this.displayedColumns=["id","questionnaire_name","questionnaire_id","flow","participant_id","user_id","date_completed","time_on_task_ms"]}ngOnInit(){this.api.getParticipantStepLog(this.participant).subscribe(t=>{this.participant.step_log=t,this.dataSource=new mR(t)})}}return t.\u0275fac=function(e){return new(e||t)($o(WG))},t.\u0275cmp=Xt({type:t,selectors:[["app-participant-detail"]],inputs:{participant:"participant"},decls:14,vars:11,consts:[[4,"ngIf"],["mat-table","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","questionnaire_name"],["matColumnDef","questionnaire_id"],["matColumnDef","flow"],["matColumnDef","participant_id"],["matColumnDef","user_id"],["matColumnDef","date_completed"],["matColumnDef","time_on_task_ms"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(t,e){1&t&&(Qo(0,"p"),Qo(1,"b"),Na(2),Xo(),Xo(),Qo(3,"p"),Na(4),Xo(),Qo(5,"p"),Na(6),Xo(),Qo(7,"p"),Na(8),vc(9,"date"),Xo(),Qo(10,"p"),Na(11),vc(12,"percent"),Xo(),jo(13,JJ,30,3,"div",0)),2&t&&(dr(2),Ba("Participant ID: ",e.participant.id,""),dr(2),Ba("Name: ",e.participant.name||"(None given)",""),dr(2),Ba("Relationship: ",e.participant.relationship,""),dr(2),Ba("Last Updated: ",Cc(9,6,e.participant.last_updated,"short"),""),dr(3),Ba("Percent Complete: ",wc(12,9,e.participant.percent_complete),""),dr(2),qo("ngIf",e.participant.step_log&&e.participant.step_log.length>0))},directives:[Jd,$I,ZI,XI,YI,sR,oR,tR,iR,lR,uR],pipes:[_h,bh],styles:["td.mat-cell[_ngcontent-%COMP%], th.mat-header-cell[_ngcontent-%COMP%]{padding:0 1em}"]}),t})();function e0(t,e){if(1&t){const t=ea();Qo(0,"div",9),Qo(1,"mat-form-field"),Qo(2,"mat-label"),Na(3,"Select an option"),Xo(),Qo(4,"mat-select",10),ra("valueChange",function(e){return Be(t),ua(2).roleSelected=e}),Qo(5,"mat-option",11),Na(6,"Admin"),Xo(),Qo(7,"mat-option",12),Na(8,"Test"),Xo(),Qo(9,"mat-option",13),Na(10,"Researcher"),Xo(),Qo(11,"mat-option",14),Na(12,"Editor"),Xo(),Qo(13,"mat-option",15),Na(14,"User"),Xo(),Xo(),Xo(),Qo(15,"button",3),ra("click",function(){return Be(t),ua(2).saveSelection()}),Na(16," Save Selection "),Xo(),Xo()}if(2&t){const t=ua(2);dr(4),qo("value",t.roleSelected)}}function i0(t,e){1&t&&(Qo(0,"th",28),Na(1," ID "),Xo())}function n0(t,e){if(1&t&&(Qo(0,"td",29),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.id," ")}}function s0(t,e){1&t&&(Qo(0,"th",28),Na(1," User ID "),Xo())}function r0(t,e){if(1&t&&(Qo(0,"td",29),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.user_id," ")}}function o0(t,e){1&t&&(Qo(0,"th",28),Na(1," Type "),Xo())}function a0(t,e){if(1&t&&(Qo(0,"td",29),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.type," ")}}function l0(t,e){1&t&&(Qo(0,"th",28),Na(1," Tracking Code "),Xo())}function c0(t,e){if(1&t&&(Qo(0,"td",29),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.tracking_code," ")}}function u0(t,e){1&t&&(Qo(0,"th",28),Na(1," Viewed "),Xo())}function d0(t,e){if(1&t&&(Qo(0,"td",29),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.viewed," ")}}function h0(t,e){1&t&&(Qo(0,"th",28),Na(1," Date Viewed "),Xo())}function p0(t,e){if(1&t&&(Qo(0,"td",29),Na(1),vc(2,"date"),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",Cc(2,1,t.date_viewed,"short")," ")}}function m0(t,e){1&t&&Ko(0,"tr",30)}function f0(t,e){1&t&&Ko(0,"tr",31)}function g0(t,e){if(1&t&&(Qo(0,"div",16),Qo(1,"h5"),Na(2,"User Email Log:"),Xo(),Qo(3,"table",17),Zo(4,18),jo(5,i0,2,0,"th",19),jo(6,n0,2,1,"td",20),Jo(),Zo(7,21),jo(8,s0,2,0,"th",19),jo(9,r0,2,1,"td",20),Jo(),Zo(10,22),jo(11,o0,2,0,"th",19),jo(12,a0,2,1,"td",20),Jo(),Zo(13,23),jo(14,l0,2,0,"th",19),jo(15,c0,2,1,"td",20),Jo(),Zo(16,24),jo(17,u0,2,0,"th",19),jo(18,d0,2,1,"td",20),Jo(),Zo(19,25),jo(20,h0,2,0,"th",19),jo(21,p0,3,4,"td",20),Jo(),jo(22,m0,1,0,"tr",26),jo(23,f0,1,0,"tr",27),Xo(),Xo()),2&t){const t=ua(2);dr(3),qo("dataSource",t.dataSource),dr(19),qo("matHeaderRowDef",t.displayedColumns),dr(1),qo("matRowDefColumns",t.displayedColumns)}}function _0(t,e){1&t&&(Qo(0,"h2"),Na(1,"Related Participants:"),Xo())}function b0(t,e){if(1&t&&(Qo(0,"div",32),Qo(1,"mat-card"),Ko(2,"app-participant-detail",33),Xo(),Xo()),2&t){const t=e.$implicit;dr(2),qo("participant",t)}}function y0(t,e){if(1&t&&(Qo(0,"div"),Qo(1,"p",35),Qo(2,"a",36),Qo(3,"b"),Na(4),Xo(),Xo(),Na(5),vc(6,"uppercase"),vc(7,"date"),Xo(),Xo()),2&t){const t=e.$implicit;dr(2),qo("href","/#/resource/"+t.resource_id,ms),dr(2),Ha("Resource #",t.resource_id," - ",t.resource_title,""),dr(1),Ha(" - Edit Type: ",wc(6,5,t.type)," - Update Date: ",Cc(7,7,t.last_updated,"long")," ")}}function v0(t,e){if(1&t&&(Qo(0,"mat-card"),Qo(1,"mat-card-title"),Na(2,"Edit Log"),Xo(),jo(3,y0,8,10,"div",34),Xo()),2&t){const t=ua(2);dr(3),qo("ngForOf",t.resourceChangeLog)}}function w0(t,e){if(1&t&&(Qo(0,"div"),Qo(1,"p",35),Qo(2,"a",36),Qo(3,"b"),Na(4),Xo(),Xo(),Qo(5,"i"),Na(6),vc(7,"date"),Xo(),Xo(),Qo(8,"p",35),Na(9),Xo(),Xo()),2&t){const t=e.$implicit;dr(2),qo("href","/#/resource/"+t.resource_id,ms),dr(2),Ha("Resource #",t.resource_id," - ",t.resource.title,""),dr(2),Ba(" - note last updated: ",Cc(7,5,t.last_updated,"short"),""),dr(3),Va(t.note)}}function C0(t,e){if(1&t&&(Qo(0,"mat-card"),Qo(1,"mat-card-title"),Na(2,"Admin Notes"),Xo(),Qo(3,"mat-card-content"),jo(4,w0,10,8,"div",34),Xo(),Xo()),2&t){const t=ua(2);dr(4),qo("ngForOf",t.adminNotes)}}function x0(t,e){if(1&t){const t=ea();Qo(0,"div",1),Qo(1,"h1"),Na(2,"User:"),Xo(),Qo(3,"div",2),Qo(4,"button",3),ra("click",function(){return Be(t),ua().exportUserData()}),Na(5," Export User Data "),Xo(),Xo(),Qo(6,"div",4),Qo(7,"div"),Qo(8,"p"),Qo(9,"b"),Na(10),Xo(),Xo(),Qo(11,"p"),Na(12),Xo(),Qo(13,"p"),Na(14),Xo(),Qo(15,"p"),Na(16),vc(17,"date"),Xo(),Qo(18,"p"),Na(19),vc(20,"date"),Xo(),Qo(21,"p"),Na(22),vc(23,"date"),Xo(),jo(24,e0,17,1,"div",5),Xo(),jo(25,g0,24,3,"div",6),Xo(),jo(26,_0,2,0,"h2",7),jo(27,b0,3,1,"div",8),jo(28,v0,4,1,"mat-card",7),jo(29,C0,5,1,"mat-card",7),Xo()}if(2&t){const t=ua();dr(10),Ba("User ID: ",t.user.id,""),dr(2),Ba("User Email: ",t.user.email,""),dr(2),Ba("User Role: ",t.user.role,""),dr(2),Ba("Last Updated: ",Cc(17,12,t.user.last_updated,"short"),""),dr(3),Ba("Account Creation Date: ",Cc(20,15,t.user.registration_date,"short"),""),dr(3),Ba("Last Login: ",Cc(23,18,t.user.last_login,"short"),""),dr(2),qo("ngIf",t.currentUser&&t.currentUser.permissions.includes("user_roles")),dr(1),qo("ngIf",t.user.email_log&&t.user.email_log.length>0),dr(1),qo("ngIf",t.user.participants.length>0),dr(1),qo("ngForOf",t.user.participants),dr(1),qo("ngIf",t.resourceChangeLog&&t.resourceChangeLog.length>0),dr(1),qo("ngIf",t.adminNotes&&t.adminNotes.length>0)}}let S0=(()=>{class t{constructor(t,e,i){this.api=t,this.route=e,this.authenticationService=i,this.displayedColumns=["id","user_id","type","tracking_code","viewed","date_viewed"],this.authenticationService.currentUser.subscribe(t=>this.currentUser=t),this.route.params.subscribe(t=>{const e=t.userId?parseInt(t.userId,10):null;isFinite(e)&&this.api.getUser(e).subscribe(t=>{this.user=t,this.roleSelected=t.role,this.api.getUserEmailLog(this.user).subscribe(t=>{this.user.email_log=t,this.dataSource=new mR(t)}),this.api.getUserAdminNotes(this.user.id).subscribe(t=>{this.adminNotes=t}),this.api.getUserResourceChangeLog(this.user.id).subscribe(t=>{this.resourceChangeLog=t}),this.user.participants.forEach(t=>{this.api.getParticipantStepLog(t).subscribe(e=>{t.step_log=e})})})})}ngOnInit(){}exportUserData(){console.log("clicking the button for export user data"),this.api.exportUserQuestionnaire(this.user.id.toString()).subscribe(t=>{console.log("data",t);const e=t.headers.get("x-filename"),i=new Blob([t.body],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),n=URL.createObjectURL(i),s=document.createElement("a");s.href=n,s.download=e,window.document.body.appendChild(s),s.click(),window.document.body.removeChild(s),URL.revokeObjectURL(n)})}saveSelection(){this.user.role=this.roleSelected,this.api.updateUser(this.user).subscribe()}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(UH),$o(BG))},t.\u0275cmp=Xt({type:t,selectors:[["app-user-admin-details"]],decls:1,vars:1,consts:[["class","user-admin-details","fxLayout","column",4,"ngIf"],["fxLayout","column",1,"user-admin-details"],["fxFlex","20%","fxLayoutGap","2em"],["mat-flat-button","","color","accent",3,"click"],["fxLayout","row"],["fxLayout","column",4,"ngIf"],["class","email-log",4,"ngIf"],[4,"ngIf"],["id","participants","id","participant-detail","fxFlex","40%","fxLayoutGap","2em",4,"ngFor","ngForOf"],["fxLayout","column"],[3,"value","valueChange"],["value","admin"],["value","test"],["value","researcher"],["value","editor"],["value","user"],[1,"email-log"],["mat-table","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","user_id"],["matColumnDef","type"],["matColumnDef","tracking_code"],["matColumnDef","viewed"],["matColumnDef","date_viewed"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],["id","participants","id","participant-detail","fxFlex","40%","fxLayoutGap","2em"],[3,"participant"],[4,"ngFor","ngForOf"],["mat-line",""],[3,"href"]],template:function(t,e){1&t&&jo(0,x0,30,21,"div",0),2&t&&qo("ngIf",e.user)},directives:[Jd,o_,k_,p_,TA,Kd,Yk,Nk,rD,Jx,$I,ZI,XI,YI,sR,oR,tR,iR,lR,uR,ZA,t0,QA,Ex,YA],pipes:[_h,gh],styles:[".user-admin-details[_ngcontent-%COMP%]{margin:2em}mat-card[_ngcontent-%COMP%]{margin-bottom:1em}td.mat-cell[_ngcontent-%COMP%], th.mat-header-cell[_ngcontent-%COMP%]{padding:0 1em}.email-log[_ngcontent-%COMP%]{margin:0 2em}"]}),t})();class k0{constructor(t){this.api=t,this.userSubject=new cp([]),this.countSubject=new cp(0),this.count$=this.countSubject.asObservable(),this.loadingSubject=new cp(!1),this.loading$=this.loadingSubject.asObservable()}connect(t){return this.userSubject.asObservable()}disconnect(t){this.userSubject.complete(),this.loadingSubject.complete(),this.countSubject.complete()}loadUsers(t="",e="email",i="asc",n=0,s=10){this.loadingSubject.next(!0),this.api.findUsers(t,e,i,n,s).subscribe(t=>{console.log("UserDataSource loadUsers results",t),this.userSubject.next(t.items),this.countSubject.next(t.total),this.loadingSubject.next(!1)},t=>{this.userSubject.next(null),this.countSubject.next(0),this.loadingSubject.next(!1)})}}const A0=["input"];function O0(t,e){1&t&&(Qo(0,"div",24),Ko(1,"mat-spinner"),Xo())}function E0(t,e){1&t&&(Qo(0,"mat-header-cell",25),Na(1,"ID"),Xo())}function T0(t,e){if(1&t&&(Qo(0,"mat-cell",26),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba("",t.id," ")}}function P0(t,e){1&t&&(Qo(0,"mat-header-cell",25),Na(1,"Role"),Xo())}function D0(t,e){if(1&t&&(Qo(0,"mat-cell",27),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba("",t.role," ")}}function M0(t,e){1&t&&(Qo(0,"mat-header-cell",25),Na(1,"Account Creation Date"),Xo())}function I0(t,e){if(1&t&&(Qo(0,"mat-cell",27),Na(1),vc(2,"date"),Xo()),2&t){const t=e.$implicit;dr(1),Ba("",Cc(2,1,t.registration_date,"short")," ")}}function R0(t,e){1&t&&(Qo(0,"mat-header-cell",25),Na(1,"Last Updated"),Xo())}function L0(t,e){if(1&t&&(Qo(0,"mat-cell",27),Na(1),vc(2,"date"),Xo()),2&t){const t=e.$implicit;dr(1),Ba("",Cc(2,1,t.last_updated,"short")," ")}}function F0(t,e){1&t&&(Qo(0,"mat-header-cell",25),Na(1,"Last Login"),Xo())}function N0(t,e){if(1&t&&(Qo(0,"mat-cell",27),Na(1),vc(2,"date"),Xo()),2&t){const t=e.$implicit;dr(1),Ba("",Cc(2,1,t.last_login,"short")," ")}}function V0(t,e){1&t&&(Qo(0,"mat-header-cell",25),Na(1,"Email"),Xo())}function B0(t,e){if(1&t&&(Qo(0,"mat-cell",28),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba("",t.email," ")}}function H0(t,e){1&t&&(Qo(0,"mat-header-cell",25),Na(1,"Number of Participants"),Xo())}function z0(t,e){if(1&t&&(Qo(0,"mat-cell",29),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.participant_count," ")}}function G0(t,e){1&t&&(Qo(0,"mat-header-cell",25),Na(1,"Created Password"),Xo())}function U0(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.created_password," ")}}function j0(t,e){1&t&&(Qo(0,"mat-header-cell",25),Na(1,"Identity"),Xo())}function W0(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",t.identity," ")}}function $0(t,e){1&t&&(Qo(0,"mat-header-cell",25),Na(1,"Percent Self Registration Complete"),Xo())}function q0(t,e){if(1&t&&(Qo(0,"mat-cell"),Na(1),vc(2,"percent"),Xo()),2&t){const t=e.$implicit;dr(1),Ba(" ",wc(2,1,t.percent_self_registration_complete)," ")}}function Y0(t,e){1&t&&Ko(0,"mat-header-row")}function Q0(t,e){if(1&t){const t=ea();Qo(0,"mat-row",30),ra("click",function(){Be(t);const i=e.$implicit;return ua().onRowClicked(i)}),Xo()}2&t&&fa("id","user_row_",e.$implicit.id,"")}const X0=function(){return[5,10,20]};let K0=(()=>{class t{constructor(t,e){this.api=t,this.router=e,this.displayedColumns=["id","role","email","last_updated","registration_date","last_login","participant_count","created_password","identity","percent_self_registration_complete"],this.default_page_size=10,this.dataSource=new k0(this.api)}ngOnInit(){this.dataSource.loadUsers("","email","asc",0,this.default_page_size)}onRowClicked(t){this.router.navigate(["admin/user",t.id])}ngAfterViewInit(){Cf(this.input.nativeElement,"keyup").pipe(Sf(150),Np(),If(()=>{this.paginator.pageIndex=0,this.loadUsers()})).subscribe(),this.sort.sortChange.subscribe(()=>this.paginator.pageIndex=0),Y(this.sort.sortChange,this.paginator.page).pipe(If(()=>this.loadUsers())).subscribe()}loadUsers(){this.dataSource.loadUsers(this.input.nativeElement.value,this.sort.active,this.sort.direction,this.paginator.pageIndex,this.paginator.pageSize)}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(lG))},t.\u0275cmp=Xt({type:t,selectors:[["app-user-admin"]],viewQuery:function(t,e){if(1&t&&(Vc(zD,3),Vc(qM,3),Vc(A0,3)),2&t){let t;Nc(t=Hc())&&(e.paginator=t.first),Nc(t=Hc())&&(e.sort=t.first),Nc(t=Hc())&&(e.input=t.first)}},decls:41,vars:12,consts:[[1,"userList"],["matInput","","placeholder","Search Users"],["input",""],["class","spinner-container",4,"ngIf"],["matSort","","matSortActive","email","matSortDirection","asc","matSortDisableClear","",1,"users-table","mat-elevation-z8",3,"dataSource"],["matColumnDef","id"],["mat-sort-header","",4,"matHeaderCellDef"],["class","id-cell",4,"matCellDef"],["matColumnDef","role"],["class","role-cell",4,"matCellDef"],["matColumnDef","registration_date"],["matColumnDef","last_updated"],["matColumnDef","last_login"],["matColumnDef","email"],["class","email-cell",4,"matCellDef"],["matColumnDef","participant_count"],["class","participants-cell",4,"matCellDef"],["matColumnDef","created_password"],[4,"matCellDef"],["matColumnDef","identity"],["matColumnDef","percent_self_registration_complete"],[4,"matHeaderRowDef"],[3,"id","click",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions"],[1,"spinner-container"],["mat-sort-header",""],[1,"id-cell"],[1,"role-cell"],[1,"email-cell"],[1,"participants-cell"],[3,"id","click"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"mat-form-field"),Ko(2,"input",1,2),Xo(),jo(4,O0,2,0,"div",3),vc(5,"async"),Qo(6,"mat-table",4),Zo(7,5),jo(8,E0,2,0,"mat-header-cell",6),jo(9,T0,2,1,"mat-cell",7),Jo(),Zo(10,8),jo(11,P0,2,0,"mat-header-cell",6),jo(12,D0,2,1,"mat-cell",9),Jo(),Zo(13,10),jo(14,M0,2,0,"mat-header-cell",6),jo(15,I0,3,4,"mat-cell",9),Jo(),Zo(16,11),jo(17,R0,2,0,"mat-header-cell",6),jo(18,L0,3,4,"mat-cell",9),Jo(),Zo(19,12),jo(20,F0,2,0,"mat-header-cell",6),jo(21,N0,3,4,"mat-cell",9),Jo(),Zo(22,13),jo(23,V0,2,0,"mat-header-cell",6),jo(24,B0,2,1,"mat-cell",14),Jo(),Zo(25,15),jo(26,H0,2,0,"mat-header-cell",6),jo(27,z0,2,1,"mat-cell",16),Jo(),Zo(28,17),jo(29,G0,2,0,"mat-header-cell",6),jo(30,U0,2,1,"mat-cell",18),Jo(),Zo(31,19),jo(32,j0,2,0,"mat-header-cell",6),jo(33,W0,2,1,"mat-cell",18),Jo(),Zo(34,20),jo(35,$0,2,0,"mat-header-cell",6),jo(36,q0,3,3,"mat-cell",18),Jo(),jo(37,Y0,1,0,"mat-header-row",21),jo(38,Q0,1,1,"mat-row",22),Xo(),Ko(39,"mat-paginator",23),vc(40,"async"),Xo()),2&t&&(dr(4),qo("ngIf",wc(5,7,e.dataSource.loading$)),dr(2),qo("dataSource",e.dataSource),dr(31),qo("matHeaderRowDef",e.displayedColumns),dr(1),qo("matRowDefColumns",e.displayedColumns),dr(1),qo("length",wc(40,9,e.dataSource.count$))("pageSize",e.default_page_size)("pageSizeOptions",hc(11,X0)))},directives:[Yk,cE,Jd,$I,qM,ZI,XI,YI,sR,oR,zD,oM,tR,tI,iR,lR,uR],pipes:[ph,_h,bh],styles:[".userList[_ngcontent-%COMP%]{text-align:center;margin:2em}.spinner-container[_ngcontent-%COMP%]{height:360px;width:390px;position:fixed}.users-table[_ngcontent-%COMP%]{min-height:360px;margin-top:10px}.spinner-container[_ngcontent-%COMP%] mat-spinner[_ngcontent-%COMP%]{margin:130px auto 0}mat-row[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:#fff1e3}.mat-column-role[_ngcontent-%COMP%]{-ms-flex:0 0 75px;flex:0 0 75px}.mat-column-id[_ngcontent-%COMP%]{-ms-flex:0 0 130px;flex:0 0 130px}"]}),t})();function Z0(t,e){1&t&&(Qo(0,"div",4),Ko(1,"mat-spinner"),Xo())}function J0(t,e){if(1&t&&Ko(0,"app-news-item",10),2&t){const t=e.index;qo("item",e.$implicit)("index",t)}}function t1(t,e){if(1&t&&(Qo(0,"div",8),jo(1,J0,1,2,"app-news-item",9),Xo()),2&t){const t=ua(2);dr(1),qo("ngForOf",t.newsItems)}}function e1(t,e){1&t&&(Qo(0,"div",11),Qo(1,"h4"),Na(2,"Please check back for UVA Education content coming soon."),Xo(),Xo())}function i1(t,e){if(1&t&&(Qo(0,"div"),Qo(1,"div",5),jo(2,t1,2,1,"div",6),jo(3,e1,3,0,"div",7),Xo(),Xo()),2&t){const t=ua();dr(2),qo("ngIf",t.newsItems.length>0),dr(1),qo("ngIf",!t.newsItems||0==t.newsItems.length)}}let n1=(()=>{class t{constructor(t,e,i){this.api=t,this.authenticationService=e,this.meta=i,this.loading=!0,this.authenticationService.currentUser.subscribe(t=>this.currentUser=t),this.meta.updateTag({property:"og:image",content:location.origin+"/assets/education/uva_education.jpg"},"property='og:image'"),this.meta.updateTag({property:"og:image:secure_url",content:location.origin+"/assets/education/uva_education.jpg"},"property='og:image:secure_url'"),this.meta.updateTag({name:"twitter:image",content:location.origin+"/assets/education/uva_education.jpg"},"name='twitter:image'"),this.loadResources()}ngOnInit(){}loadResources(){this.api.getEducationResources().subscribe(t=>{this.edResources=t,this.newsItems=this._resourcesToNewsItems(this.edResources)||[],this.loading=!1})}get_image(t){return t.video_code?"https://img.youtube.com/vi/"+t.video_code+"/hqdefault.jpg":"/assets/about/feature.jpg"}_resourcesToNewsItems(t){if(this.edResources&&this.edResources.length>0)return t.map(t=>{let e;return t.video_code&&(e="Watch this video"),{title:t.title,description:t.description.substr(0,100)+"...",url:`/${t.type.toLowerCase()}/${t.id}`,type:OU.RESOURCE,img:this.get_image(t),imgClass:"center-center",label:e}})}}return t.\u0275fac=function(e){return new(e||t)($o(WG),$o(BG),$o(ip))},t.\u0275cmp=Xt({type:t,selectors:[["app-uva-education"]],decls:6,vars:2,consts:[["id","hero",1,"gradient-overlay","container"],[1,"hero-content"],["class","pad-2","fxLayoutAlign","center center",4,"ngIf"],[4,"ngIf"],["fxLayoutAlign","center center",1,"pad-2"],[1,"container","uva-education"],["class","row","fxFlex","87%",4,"ngIf"],["class","pad-2",4,"ngIf"],["fxFlex","87%",1,"row"],[3,"item","index",4,"ngFor","ngForOf"],[3,"item","index"],[1,"pad-2"]],template:function(t,e){1&t&&(Qo(0,"div",0),Qo(1,"div",1),Qo(2,"h1"),Na(3,"Webinars"),Xo(),Xo(),Xo(),jo(4,Z0,2,0,"div",2),jo(5,i1,4,2,"div",3)),2&t&&(dr(4),qo("ngIf",e.loading),dr(1),qo("ngIf",e.newsItems))},directives:[Jd,Z_,oM,k_,Kd,YW],styles:["#hero[_ngcontent-%COMP%]{background-image:url(/assets/education/uva_education.jpg);background-position:50% 33%;padding:80px 0}#hero[_ngcontent-%COMP%] .hero-content[_ngcontent-%COMP%]{color:#fff;width:50%}"]}),t})(),s1=(()=>{class t{constructor(t,e){this.router=t,this.authenticationService=e,this.authenticationService.currentUser.subscribe(t=>this.currentUser=t)}canActivate(t,e){return!!this.currentUser||(console.log("On AuthGuard, and there is no user, sending to login!"),this.router.navigate(["/login"],{queryParams:{returnUrl:e.url}}),!1)}}return t.\u0275fac=function(e){return new(e||t)(wn(lG),wn(BG))},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),r1=(()=>{class t{constructor(t,e){this.router=t,this.configService=e}canActivate(t,e){return!this.configService||!this.configService.mirroring||(this.router.navigate(["/mirrored"]),!1)}}return t.\u0275fac=function(e){return new(e||t)(wn(lG),wn(MG))},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),o1=(()=>{class t{constructor(t,e){this.router=t,this.authenticationService=e,this.authenticationService.currentUser.subscribe(t=>this.currentUser=t)}canActivate(t,e){return this.currentUser?!!t.data.roles.includes(this.currentUser.role)||(this.router.navigate(["/profile"]),!1):(this.router.navigate(["/login"],{queryParams:{returnUrl:e.url}}),!1)}}return t.\u0275fac=function(e){return new(e||t)(wn(lG),wn(BG))},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const a1=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:XW,data:{title:"Welcome to Autism DRIVE"},canActivate:[r1]},{path:"uva-education",component:n1,data:{title:"Autism DRIVE UVA Education"},canActivate:[r1]},{path:"about",component:zG,data:{title:"About Autism DRIVE"},canActivate:[r1]},{path:"forgot-password",component:HW,data:{title:"Log in to Autism DRIVE",hideHeader:!0}},{path:"login",component:e$,data:{title:"Log in to Autism DRIVE",hideHeader:!0}},{path:"reset_password/:role/:email_token",component:M$,data:{title:"Reset your Autism DRIVE password",hideHeader:!0}},{path:"profile",component:Wq,data:{title:"Your Autism DRIVE Account"},canActivate:[s1,r1]},{path:"flow/complete",component:Gj,data:{title:"Enrollment complete"},canActivate:[s1,r1]},{path:"flow/:flowName/:participantId",component:IW,data:{title:"Your Autism DRIVE Account"},canActivate:[s1,r1]},{path:"register",component:dY,data:{title:"Create an Autism DRIVE Account",hideHeader:!0}},{path:"event/:resourceId",component:GQ,data:{title:"Autism DRIVE Event Details"}},{path:"location/:resourceId",component:GQ,data:{title:"Autism DRIVE Location Details"}},{path:"resource/:resourceId",component:GQ,data:{title:"Autism DRIVE Resource Details"}},{path:":resourceType/:resourceId/edit",component:ZQ,data:{title:"Edit Resource",roles:["admin","editor"]},canActivate:[o1]},{path:"resources/add",component:ZQ,data:{title:"Add Resource",roles:["admin","editor"]},canActivate:[o1]},{path:"covid19-resources",component:vj,data:{title:"Autism DRIVE COVID-19 Resources"}},{path:"covid19-resources/:category",component:vj,data:{title:"Autism DRIVE COVID-19 Resources"}},{path:"studies",component:gZ,data:{title:"Autism DRIVE Studies"}},{path:"studies/add",component:mJ,data:{title:"Create an Autism DRIVE Study",roles:["admin"]},canActivate:[o1]},{path:"studies/:studyStatus",component:gZ,data:{title:"Autism DRIVE Studies"}},{path:"studies/:studyStatus/:age",component:gZ,data:{title:"Autism DRIVE Studies"}},{path:"study/:studyId",component:oJ,data:{title:"Autism DRIVE Study Details"}},{path:"study/edit/:studyId",component:mJ,data:{title:"Edit Study",roles:["admin"]},canActivate:[o1]},{path:"terms/:relationship",component:IJ,data:{title:"Agree to Terms and Conditions for an Autism DRIVE Account",hideHeader:!0}},{path:"logout",component:l$,data:{title:"You have been logged out.",hideHeader:!0}},{path:"timedout",component:RJ,data:{title:"Your session has timed out.",hideHeader:!0}},{path:"search",component:KK,data:{title:"Search Autism DRIVE"}},{path:"search/:query",component:KK,data:{title:"Search Autism DRIVE Resources"}},{path:"admin",component:AU,data:{title:"Autism DRIVE Admin Home",roles:["admin"]},canActivate:[o1],children:[{path:"",redirectTo:"data-admin",pathMatch:"full"},{path:"data-admin",component:rY,data:{title:"Autism DRIVE Data Admin",roles:["admin"]},canActivate:[o1]},{path:"user-admin",component:K0,data:{title:"Autism DRIVE User Admin",roles:["admin"]},canActivate:[o1]},{path:"participant-admin",component:E$,data:{title:"Autism DRIVE Participant Admin",roles:["admin"]},canActivate:[o1]},{path:"taxonomy-admin",component:kJ,data:{title:"Autism DRIVE Taxonomy Admin",roles:["admin"]},canActivate:[o1]},{path:"import-export-status",component:SU,data:{title:"Autism DRIVE Import/Export Admin",roles:["admin"]},canActivate:[o1]},{path:"email-log",component:Nj,data:{title:"Autism DRIVE Email Log Admin",roles:["admin"]},canActivate:[o1]}]},{path:"admin/user/:userId",component:S0,data:{title:"User Admin Details",roles:["admin","researcher"]},canActivate:[o1]},{path:"mirrored",component:c$,data:{title:"Mirrored Server Details"}}];let l1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=te({type:t}),t.\u0275inj=yt({imports:[[xG.forRoot(a1,{useHash:!0,scrollPositionRestoration:"enabled"})],xG]}),t})(),c1=(()=>{class t{constructor(t){this.ngZone=t}setInterval(t,e){this.ngZone.runOutsideAngular(()=>{this.interval=window.setInterval(()=>{this.ngZone.run(t)},e)})}clearInterval(){window.clearInterval(this.interval)}}return t.\u0275fac=function(e){return new(e||t)(wn(mu))},t.\u0275prov=_t({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function u1(t,e){if(1&t&&Ko(0,"div",19),2&t){const t=ua();qo("@toggleBackground",t.onHomeScreen()&&t.headerViewportState)}}function d1(t,e){1&t&&(Qo(0,"div",26),Na(1,"THIS IS A MIRRORED SERVER"),Xo())}function h1(t,e){if(1&t&&(Qo(0,"mat-toolbar-row",20),Qo(1,"div",21),Qo(2,"a",22),Qo(3,"span",23),Na(4,"About UVA STAR"),Xo(),Qo(5,"span",24),Na(6,"Learn about the UVA STAR project"),Xo(),Xo(),Xo(),Ko(7,"span",5),jo(8,d1,2,0,"div",25),Xo()),2&t){const t=ua();qo("@toggleUvaHeader",t.headerExpandedState),dr(8),qo("ngIf",t.config.mirroring)}}const p1=function(){return["/register"]};function m1(t,e){1&t&&(Qo(0,"li"),Qo(1,"a",34),Qo(2,"span",23),Na(3,"Join"),Xo(),Qo(4,"span",24),Na(5,"Join Us"),Xo(),Xo(),Xo()),2&t&&(dr(1),qo("routerLink",hc(1,p1)))}function f1(t,e){if(1&t){const t=ea();Qo(0,"li"),Qo(1,"a",35),ra("click",function(){return Be(t),ua(2).goLogin()}),Na(2," Sign in "),Xo(),Xo()}}const g1=function(){return["/profile"]};function _1(t,e){1&t&&(Qo(0,"li"),Qo(1,"a",36),Qo(2,"mat-icon"),Na(3,"account_circle"),Xo(),Na(4," Profile "),Xo(),Xo()),2&t&&(dr(1),qo("routerLink",hc(1,g1)))}function b1(t,e){if(1&t){const t=ea();Qo(0,"li"),Qo(1,"a",37),ra("click",function(e){return Be(t),ua(2).goLogout(e)}),Qo(2,"mat-icon"),Na(3,"exit_to_app"),Xo(),Na(4," Logout "),Xo(),Xo()}}const y1=function(){return["/admin"]};function v1(t,e){1&t&&(Qo(0,"li"),Qo(1,"a",38),Qo(2,"mat-icon"),Na(3,"build"),Xo(),Na(4," Admin "),Xo(),Xo()),2&t&&(dr(1),qo("routerLink",hc(1,y1)))}const w1=function(){return["/about"]},C1=function(){return["/studies"]},x1=function(){return["/search"]},S1=function(){return["/uva-education"]};function k1(t,e){if(1&t&&(Qo(0,"div",27),Qo(1,"ul"),Qo(2,"li"),Qo(3,"a",28),Qo(4,"span",23),Na(5,"About"),Xo(),Qo(6,"span",24),Na(7,"About Autism DRIVE"),Xo(),Xo(),Xo(),Qo(8,"li"),Qo(9,"a",29),Qo(10,"span",23),Na(11,"Studies"),Xo(),Qo(12,"span",30),Na(13,"Current Studies"),Xo(),Xo(),Xo(),Qo(14,"li"),Qo(15,"a",31),Qo(16,"span",23),Na(17,"Resources"),Xo(),Qo(18,"span",24),Na(19,"Find Resources"),Xo(),Xo(),Xo(),Qo(20,"li"),Qo(21,"a",32),Na(22," Webinars "),Xo(),Xo(),jo(23,m1,6,2,"li",33),jo(24,f1,3,0,"li",33),jo(25,_1,5,2,"li",33),jo(26,b1,5,0,"li",33),jo(27,v1,5,2,"li",33),Xo(),Xo()),2&t){const t=ua();dr(3),qo("routerLink",hc(9,w1)),dr(6),qo("routerLink",hc(10,C1)),dr(6),qo("routerLink",hc(11,x1)),dr(6),qo("routerLink",hc(12,S1)),dr(2),qo("ngIf",!t.currentUser),dr(1),qo("ngIf",!t.currentUser),dr(1),qo("ngIf",t.currentUser),dr(1),qo("ngIf",t.currentUser),dr(1),qo("ngIf",t.currentUser&&"admin"==t.currentUser.role)}}function A1(t,e){1&t&&(Qo(0,"mat-toolbar-row",39),Qo(1,"p",40),Na(2," A centralized system for autism research & resources for individuals, families & professionals. "),Xo(),Qo(3,"p",41),Na(4," Autism research & resources for "),Ko(5,"br",42),Na(6," individuals, families & professionals. "),Xo(),Xo()),2&t&&qo("@toggleTaglineToolbar",ua().taglineToolbarState)}function O1(t,e){if(1&t){const t=ea();Qo(0,"a",43),ra("click",function(){return Be(t),ua().toggleMenu()}),Qo(1,"mat-icon"),Na(2,"person_add"),Xo(),Na(3," Join Us "),Xo()}2&t&&qo("routerLink",hc(1,p1))}const E1=function(){return["/login"]};function T1(t,e){if(1&t){const t=ea();Qo(0,"a",44),ra("click",function(){return Be(t),ua().toggleMenu()}),Qo(1,"mat-icon"),Na(2,"account_circle"),Xo(),Na(3," Sign in "),Xo()}2&t&&qo("routerLink",hc(1,E1))}function P1(t,e){if(1&t){const t=ea();Qo(0,"a",45),ra("click",function(){return Be(t),ua().toggleMenu()}),Qo(1,"mat-icon"),Na(2,"build"),Xo(),Na(3," Admin "),Xo()}2&t&&qo("routerLink",hc(1,y1))}function D1(t,e){if(1&t){const t=ea();Qo(0,"a",46),ra("click",function(){return Be(t),ua().toggleMenu()}),Qo(1,"mat-icon"),Na(2,"account_circle"),Xo(),Na(3," Visit Profile "),Xo()}2&t&&qo("routerLink",hc(1,g1))}function M1(t,e){if(1&t){const t=ea();Qo(0,"a",47),ra("click",function(e){return Be(t),ua().goLogout(e)})("click",function(){return Be(t),ua().toggleMenu()}),Qo(1,"mat-icon"),Na(2,"exit_to_app"),Xo(),Na(3," Logout "),Xo()}}const I1=function(t){return{mirroring:t}},R1=function(){return{}},L1=function(){return{top:0}},F1=function(){return{top:0,minHeight:"64px"}},N1="0px 5px 5px 0px rgba(0, 0, 0, 0.3)",V1=aX.Hidden+"-"+lX.Collapsed,B1=aX.Hidden+"-"+lX.Expanded,H1=aX.Visible+"-"+lX.Collapsed,z1=aX.Visible+"-"+lX.Expanded;let G1=(()=>{class t{constructor(t,e,i,n,s,r){this.authenticationService=e,this.router=i,this.api=n,this.config=s,this.headerExpanded=!0,this.menuVisible=!1,this.mobileQuery=r.matchMedia("(max-width: 959px)"),this.mdMediaQuery=r.matchMedia("(min-width: 960px) and (max-width: 1279px)"),this.lgMediaQuery=r.matchMedia("(min-width: 1280px)"),this._mobileQueryListener=()=>t.detectChanges(),this._mdMediaQueryListener=()=>t.detectChanges(),this._lgMediaQueryListener=()=>t.detectChanges(),this.mobileQuery.addListener(this._mobileQueryListener),this.mdMediaQuery.addListener(this._mdMediaQueryListener),this.lgMediaQuery.addListener(this._lgMediaQueryListener)}get viewportWidth(){return this.mobileQuery.matches?oX.Small:this.mdMediaQuery.matches?oX.Medium:this.lgMediaQuery.matches?oX.Large:void 0}get headerViewportState(){return`${this.headerExpanded?lX.Expanded:lX.Collapsed}-${this.viewportWidth}`}get menuState(){return`${this.menuVisible?aX.Visible:aX.Hidden}-${this.headerExpanded?lX.Expanded:lX.Collapsed}-${this.viewportWidth}`}get headerExpandedState(){return this.headerExpanded?lX.Expanded:lX.Collapsed}get taglineToolbarState(){return`${this.menuVisible?aX.Visible:aX.Hidden}-${this.headerExpanded?lX.Expanded:lX.Collapsed}-${this.viewportWidth}`}ngAfterViewInit(){this.watchScrollEvents()}ngOnDestroy(){this.mobileQuery.removeListener(this._mobileQueryListener),this.mdMediaQuery.removeListener(this._mdMediaQueryListener),this.lgMediaQuery.removeListener(this._lgMediaQueryListener)}goLogout(t){t.preventDefault(),this.authenticationService.logout(),this.router.navigate(["logout"])}goLogin(){const t=/^\/login/.test(this.router.url),e=/^\/logout/.test(this.router.url),i=/^\/home/.test(this.router.url),n=/^\/timedout/.test(this.router.url);i||t||e||n?this.router.navigate(["/login"]):this.router.navigate(["/login"],{queryParams:{returnUrl:this.router.url}})}toggleMenu(){this.menuVisible=!this.menuVisible}onHomeScreen(){return/^\/home/.test(this.router.url)}watchScrollEvents(){const t=Cf(window,"scroll").pipe(iX(10),E(t=>window.pageYOffset),lS(),E(([t,e])=>et===cX.Up)).subscribe(()=>{this.headerExpanded=!0}),t.pipe(Mm(t=>t===cX.Down)).subscribe(()=>{this.menuVisible=!1,this.headerExpanded=!1})}}return t.\u0275fac=function(e){return new(e||t)($o(Vl),$o(BG),$o(lG),$o(WG),$o(MG),$o(_D))},t.\u0275cmp=Xt({type:t,selectors:[["app-header"]],inputs:{currentUser:"currentUser"},decls:25,vars:31,consts:[["id","header-bg",4,"ngIf"],["ngStyle.lt-md","min-height: unset;","id","site-header",3,"ngClass"],["fxHide.lt-md","","fxShow","","fxLayout","row","fxLayoutAlign","center center","id","uva-header",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","id","menu-bar",3,"ngStyle","ngStyle.lt-md"],["variant","light"],["fxFlex",""],["id","primary-nav",4,"ngIf"],["fxHide","","fxShow.lt-md","","mat-button","",3,"color","click"],["fxHide.lt-md","","fxShow","","id","tagline",4,"ngIf"],["fxHide","","fxShow.lt-md","","id","mobile-menu",1,"mat-typography",3,"ngClass"],["id","about-button-mobile","mat-button","","routerLinkActive","selected",3,"routerLink","click"],["id","studies-button-mobile","mat-button","","routerLinkActive","selected",3,"routerLink","click"],["id","resources-button-mobile","mat-button","","routerLinkActive","selected",3,"routerLink","click"],["id","uva-education-button-mobile","mat-button","","routerLinkActive","selected",3,"routerLink","click"],["id","register-button-mobile","mat-button","","routerLinkActive","selected",3,"routerLink","click",4,"ngIf"],["id","login-button-mobile","mat-button","","routerLinkActive","selected",3,"routerLink","click",4,"ngIf"],["id","admin-button-mobile","mat-button","","routerLinkActive","selected",3,"routerLink","click",4,"ngIf"],["id","profile-button-mobile","mat-button","","routerLinkActive","selected",3,"routerLink","click",4,"ngIf"],["id","logout-button-mobile","mat-button","",3,"click",4,"ngIf"],["id","header-bg"],["fxHide.lt-md","","fxShow","","fxLayout","row","fxLayoutAlign","center center","id","uva-header"],["fxFlex","",1,"uva-logo"],["href","https://curry.virginia.edu/faculty-research/centers-labs-projects/supporting-transformative-autism-research-star","target","_blank"],["fxHide","","fxShow.lt-lg",""],["fxHide","","fxShow.gt-lg","","fxShow.lg",""],["class","mirror-message",4,"ngIf"],[1,"mirror-message"],["id","primary-nav"],["id","about-button","mat-button","","routerLinkActive","selected",3,"routerLink"],["id","studies-button","mat-button","","routerLinkActive","selected",3,"routerLink"],["fxHide","","fxShow.gt-md",""],["id","resources-button","mat-button","","routerLinkActive","selected",3,"routerLink"],["id","uva-education-button","mat-button","","routerLinkActive","selected",3,"routerLink"],[4,"ngIf"],["id","register-button","mat-button","","routerLinkActive","selected",3,"routerLink"],["id","login-button","mat-button","","routerLinkActive","selected",3,"click"],["id","profile-button","mat-button","","routerLinkActive","selected",3,"routerLink"],["id","logout-button","mat-button","",3,"click"],["color","accent","fxHide","","fxShow.gt-sm","","id","admin-button","mat-button","","routerLinkActive","selected",3,"routerLink"],["fxHide.lt-md","","fxShow","","id","tagline"],["fxHide.lt-md","","fxShow",""],["fxHide","","fxShow.lt-md",""],["fxHide","","fxShow.xs",""],["id","register-button-mobile","mat-button","","routerLinkActive","selected",3,"routerLink","click"],["id","login-button-mobile","mat-button","","routerLinkActive","selected",3,"routerLink","click"],["id","admin-button-mobile","mat-button","","routerLinkActive","selected",3,"routerLink","click"],["id","profile-button-mobile","mat-button","","routerLinkActive","selected",3,"routerLink","click"],["id","logout-button-mobile","mat-button","",3,"click"]],template:function(t,e){1&t&&(jo(0,u1,1,1,"div",0),Qo(1,"mat-toolbar",1),jo(2,h1,9,2,"mat-toolbar-row",2),Qo(3,"mat-toolbar-row",3),Ko(4,"app-logo",4),Ko(5,"span",5),jo(6,k1,28,13,"div",6),Qo(7,"button",7),ra("click",function(){return e.toggleMenu()}),Qo(8,"mat-icon"),Na(9,"menu"),Xo(),Xo(),Xo(),jo(10,A1,7,1,"mat-toolbar-row",8),Xo(),Qo(11,"div",9),Qo(12,"a",10),ra("click",function(){return e.toggleMenu()}),Na(13,"About Autism DRIVE"),Xo(),Qo(14,"a",11),ra("click",function(){return e.toggleMenu()}),Na(15,"Current studies"),Xo(),Qo(16,"a",12),ra("click",function(){return e.toggleMenu()}),Na(17,"Find Resources"),Xo(),Qo(18,"a",13),ra("click",function(){return e.toggleMenu()}),Na(19,"Webinars"),Xo(),jo(20,O1,4,2,"a",14),jo(21,T1,4,2,"a",15),jo(22,P1,4,2,"a",16),jo(23,D1,4,2,"a",17),jo(24,M1,4,0,"a",18),Xo()),2&t&&(qo("ngIf",e.onHomeScreen()),dr(1),qo("ngClass",pc(20,I1,e.config.mirroring)),dr(1),qo("ngIf",e.onHomeScreen()),dr(1),qo("@toggleMenuBar",e.onHomeScreen()&&e.menuState)("ngStyle",e.onHomeScreen()?hc(22,R1):hc(23,L1))("ngStyle.lt-md",hc(24,F1)),dr(3),qo("ngIf",!e.mobileQuery.matches),dr(1),qo("color",e.menuVisible?"":"accent"),dr(3),qo("ngIf",e.onHomeScreen()),dr(1),qo("@toggleMobileMenu",e.menuState)("ngClass",pc(25,I1,e.config.mirroring)),dr(1),qo("routerLink",hc(27,w1)),dr(2),qo("routerLink",hc(28,C1)),dr(2),qo("routerLink",hc(29,x1)),dr(2),qo("routerLink",hc(30,S1)),dr(2),qo("ngIf",!e.currentUser),dr(1),qo("ngIf",!e.currentUser),dr(1),qo("ngIf",e.currentUser&&"admin"==e.currentUser.role),dr(1),qo("ngIf",e.currentUser),dr(1),qo("ngIf",e.currentUser))},directives:[Jd,bL,Wg,Qd,Pg,_L,o_,Z_,oh,LW,k_,TA,Ng,JT,PA,uG,hG],styles:['#header-bg[_ngcontent-%COMP%]{position:fixed;z-index:98}#header-bg[_ngcontent-%COMP%], #site-header[_ngcontent-%COMP%]{background-color:#4e4e4e;width:100%}#site-header[_ngcontent-%COMP%]{z-index:100}#site-header[_ngcontent-%COMP%] mat-toolbar-row[_ngcontent-%COMP%]{background-color:#232d4b;color:#fff;position:fixed;transition:translate .5s ease-in-out,height .5s ease-in-out,top .5s ease-in-out}#site-header[_ngcontent-%COMP%] mat-toolbar-row#uva-header[_ngcontent-%COMP%]{width:100%;background-color:#fff;z-index:103;padding-left:16px;color:#232d4b}#site-header[_ngcontent-%COMP%] mat-toolbar-row#uva-header[_ngcontent-%COMP%] .uva-logo[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font:500 1rem/1.5 franklin-gothic-urw,sans-serif;letter-spacing:normal;color:#232d4b;text-transform:uppercase}#site-header[_ngcontent-%COMP%] mat-toolbar-row#menu-bar[_ngcontent-%COMP%]{padding-right:0;background-color:#232d4b;z-index:102}#site-header[_ngcontent-%COMP%] mat-toolbar-row#menu-bar[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none;color:inherit}#site-header[_ngcontent-%COMP%] mat-toolbar-row#menu-bar[_ngcontent-%COMP%] #primary-nav[_ngcontent-%COMP%] .mat-button.selected[_ngcontent-%COMP%]{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:4px solid #232d4b}#site-header[_ngcontent-%COMP%] mat-toolbar-row#menu-bar[_ngcontent-%COMP%] #primary-nav[_ngcontent-%COMP%] .mat-button[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}#site-header[_ngcontent-%COMP%] mat-toolbar-row#tagline[_ngcontent-%COMP%]{position:fixed;z-index:100;box-shadow:40px 20px 40px -40px rgba(0,0,0,.1)}#site-header[_ngcontent-%COMP%] mat-toolbar-row#tagline[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-style:italic;margin:0}#site-header[_ngcontent-%COMP%] #primary-nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{list-style:none;-ms-flex-align:center;-ms-flex-line-pack:center;-ms-flex-pack:center;justify-content:center}#site-header[_ngcontent-%COMP%] #primary-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%], #site-header[_ngcontent-%COMP%] #primary-nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:0;display:-ms-flexbox;display:flex;align-items:center;justify-items:center;align-content:center}#site-header[_ngcontent-%COMP%] #primary-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{border-right:1px solid #e57200;height:2em;padding:0 18px;-ms-flex-align:center;-ms-flex-line-pack:center;-ms-flex-pack:stretch;justify-content:stretch}#site-header[_ngcontent-%COMP%] #primary-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:last-child{border-right:none}#site-header[_ngcontent-%COMP%] #primary-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-family:franklin-gothic-urw,sans-serif;font-weight:700;font-style:italic;font-size:1rem;color:#fff;text-transform:uppercase;position:relative;display:-ms-flexbox;display:flex;text-decoration:none}#site-header[_ngcontent-%COMP%] #primary-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after{transition:all .5s ease-in-out;content:"";background-color:rgba(0,0,0,0);width:100%;height:4px;position:absolute;bottom:8px;left:0}#site-header[_ngcontent-%COMP%] #primary-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a.selected[_ngcontent-%COMP%]:after{background-color:#e57200;bottom:0}#site-header[_ngcontent-%COMP%] #primary-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{background-color:#232d4b}#site-header[_ngcontent-%COMP%] #primary-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover a[_ngcontent-%COMP%]{text-decoration:none}#site-header[_ngcontent-%COMP%] #primary-nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover a[_ngcontent-%COMP%]:after{background-color:#e57200;bottom:0} :not(body.is-home) #site-header{min-height:unset}#mobile-menu.mirroring[_ngcontent-%COMP%], #site-header.mirroring[_ngcontent-%COMP%], #site-header[_ngcontent-%COMP%] mat-toolbar.mirroring[_ngcontent-%COMP%]{background-color:#d87286}div.mirror-message[_ngcontent-%COMP%]{padding:20px;font-weight:700;color:#fff}#mobile-menu[_ngcontent-%COMP%]{position:fixed;width:100%;background-color:#232d4b;color:#fff;z-index:97;padding:1em;display:grid;grid-gap:.25em;grid-template-columns:1fr;-ms-flex-pack:stretch;justify-content:stretch}#mobile-menu[_ngcontent-%COMP%] .mat-button[_ngcontent-%COMP%]{text-align:left}'],data:{animation:[Ov("toggleMobileMenu",[Mv(V1+"-"+oX.Small,Dv({top:"-100vh"})),Mv(B1+"-"+oX.Small,Dv({top:"-100vh"})),Mv(H1+"-"+oX.Small,Dv({top:"64px","box-shadow":N1})),Mv(z1+"-"+oX.Small,Dv({top:"64px","box-shadow":N1})),Rv("* => *",Ev("500ms ease-in-out"))]),Ov("toggleUvaHeader",[Mv(lX.Collapsed,Dv({top:"-40px",height:"40px"})),Mv(lX.Expanded,Dv({top:"0px",height:"40px"})),Rv("* => *",Ev("500ms ease-in-out"))]),Ov("toggleMenuBar",[Mv(V1+"-"+oX.Small,Dv({top:"0px",height:"64px","box-shadow":N1})),Mv(B1+"-"+oX.Small,Dv({top:"0px",height:"64px","box-shadow":"none"})),Mv(H1+"-"+oX.Small,Dv({top:"0px",height:"64px","box-shadow":"none"})),Mv(z1+"-"+oX.Small,Dv({top:"0px",height:"64px","box-shadow":"none"})),Mv(V1+"-"+oX.Medium,Dv({top:"0px",height:"64px","box-shadow":N1})),Mv(B1+"-"+oX.Medium,Dv({top:"40px",height:"64px","box-shadow":"none"})),Mv(H1+"-"+oX.Medium,Dv({top:"0px",height:"64px","box-shadow":"none"})),Mv(z1+"-"+oX.Medium,Dv({top:"40px",height:"64px","box-shadow":"none"})),Mv(V1+"-"+oX.Large,Dv({top:"0px",height:"64px","box-shadow":N1})),Mv(B1+"-"+oX.Large,Dv({top:"40px",height:"64px","box-shadow":"none"})),Mv(H1+"-"+oX.Large,Dv({top:"0px",height:"64px","box-shadow":"none"})),Mv(z1+"-"+oX.Large,Dv({top:"40px",height:"64px","box-shadow":"none"})),Rv("* => *",Ev("500ms ease-in-out"))]),Ov("toggleTaglineToolbar",[Mv(V1+"-"+oX.Small,Dv({top:"0px",height:"40px","box-shadow":"none"})),Mv(B1+"-"+oX.Small,Dv({top:"104px",height:"64px","box-shadow":N1})),Mv(V1+"-"+oX.Medium,Dv({top:"0px",height:"40px","box-shadow":"none"})),Mv(B1+"-"+oX.Medium,Dv({top:"104px",height:"40px","box-shadow":N1})),Mv(V1+"-"+oX.Large,Dv({top:"0px",height:"40px","box-shadow":"none"})),Mv(B1+"-"+oX.Large,Dv({top:"104px",height:"40px","box-shadow":N1})),Mv(H1+"-"+oX.Small,Dv({top:"0px",height:"40px","box-shadow":"none"})),Mv(z1+"-"+oX.Small,Dv({top:"104px",height:"64px","box-shadow":"none"})),Mv(H1+"-"+oX.Medium,Dv({top:"0px",height:"40px","box-shadow":"none"})),Mv(z1+"-"+oX.Medium,Dv({top:"104px",height:"40px","box-shadow":"none"})),Mv(H1+"-"+oX.Large,Dv({top:"0px",height:"40px","box-shadow":"none"})),Mv(z1+"-"+oX.Large,Dv({top:"104px",height:"40px","box-shadow":"none"})),Rv("* => *",Ev("500ms ease-in-out"))]),Ov("toggleBackground",[Mv(lX.Collapsed+"-"+oX.Small,Dv({top:"0px",height:"64px"})),Mv(lX.Expanded+"-"+oX.Small,Dv({top:"0px",height:"64px"})),Mv(lX.Collapsed+"-"+oX.Medium,Dv({top:"0px",height:"64px"})),Mv(lX.Expanded+"-"+oX.Medium,Dv({top:"0px",height:"144px"})),Mv(lX.Collapsed+"-"+oX.Large,Dv({top:"0px",height:"64px"})),Mv(lX.Expanded+"-"+oX.Large,Dv({top:"0px",height:"144px"})),Rv("* => *",Ev("500ms ease-out"))])]}}),t})();function U1(t,e){1&t&&(Qo(0,"div"),Na(1,"Currently running in Development Mode."),Xo())}function j1(t,e){1&t&&(Qo(0,"div"),Na(1,"Currently running in Test mode."),Xo())}function W1(t,e){1&t&&(Qo(0,"div"),Na(1,"This is a mirrored server with de-identified data."),Xo())}let $1=(()=>{class t{constructor(t,e){this.config=t,this.router=e}}return t.\u0275fac=function(e){return new(e||t)($o(MG),$o(lG))},t.\u0275cmp=Xt({type:t,selectors:[["app-footer"]],decls:17,vars:3,consts:[[1,"global-footer"],[1,"funded-by"],["href","https://curry.virginia.edu/faculty-research/centers-labs-projects/supporting-transformative-autism-research-star","target","_blank"],["src","/assets/logo/UVA_STAR-logo.svg",1,"footer-logo"],[1,"footer-contact"],[1,"address"],["href","tel:434-297-8178",1,"tel"],["href","mailto:autismdrive@virginia.edu",1,"email"],[4,"ngIf"]],template:function(t,e){1&t&&(Qo(0,"footer",0),Qo(1,"div",1),Na(2,"Funded by"),Xo(),Qo(3,"a",2),Ko(4,"img",3),Xo(),Qo(5,"div",4),Qo(6,"address",5),Na(7,"417 Emmet Street, Charlottesville, VA 22904"),Xo(),Qo(8,"a",6),Na(9,"434-297-8178"),Xo(),Qo(10,"a",7),Na(11,"autismdrive@virginia.edu"),Xo(),Xo(),Qo(12,"p"),Na(13,"\xa9 2019 BY THE RECTOR AND VISITORS OF THE UNIVERSITY OF VIRGINIA"),Xo(),jo(14,U1,2,0,"div",8),jo(15,j1,2,0,"div",8),jo(16,W1,2,0,"div",8),Xo()),2&t&&(dr(14),qo("ngIf",e.config.development),dr(1),qo("ngIf",e.config.testing),dr(1),qo("ngIf",e.config.mirroring))},directives:[Jd],styles:['footer[_ngcontent-%COMP%]{margin:50px 10px 10px;text-align:center;position:relative}footer[_ngcontent-%COMP%]:before{background-image:url(/assets/theme/orange-dotted-border-x.png);background-repeat:repeat-x;width:100%;height:4px;display:block;position:absolute;left:0;content:"";top:-2em}.funded-by[_ngcontent-%COMP%]{text-align:left;margin:1em auto -1em}@media (max-width:959px){.funded-by[_ngcontent-%COMP%]{width:290px}}@media (min-width:960px){.funded-by[_ngcontent-%COMP%]{width:417px}}@media (max-width:959px){.footer-logo[_ngcontent-%COMP%]{width:320px}}@media (min-width:960px){.footer-logo[_ngcontent-%COMP%]{width:457px}}.footer-contact[_ngcontent-%COMP%]{margin:0 auto 1.25rem;max-width:15.625rem}.footer-contact[_ngcontent-%COMP%] .address[_ngcontent-%COMP%], .footer-contact[_ngcontent-%COMP%] .email[_ngcontent-%COMP%], .footer-contact[_ngcontent-%COMP%] .tel[_ngcontent-%COMP%]{color:#4e4e4e;line-height:1.5;font-style:italic;display:inline}.footer-contact[_ngcontent-%COMP%] .address[_ngcontent-%COMP%]:after, .footer-contact[_ngcontent-%COMP%] .tel[_ngcontent-%COMP%]:after{content:"|";display:inline-block;margin:0 .325em 0 .5em}@media screen and (min-width:45em){.footer-contact[_ngcontent-%COMP%]{max-width:none;margin:0 auto .625rem}}']}),t})(),q1=(()=>{class t{constructor(t,e,i,n,s,r,o){this.authenticationService=t,this.api=e,this.router=i,this.googleAnalyticsService=n,this.configService=s,this.meta=r,this.route=o,this.title="star-drive",this.hideHeader=!1,this.googleAnalyticsService.init(),this.router.events.subscribe(t=>{(t instanceof JB||t instanceof tH)&&t.snapshot&&t.snapshot.data&&(this.hideHeader=!!t.snapshot.data.hideHeader)}),this.authenticationService.currentUser.subscribe(t=>this.currentUser=t),this.meta.addTags([{property:"og:url",content:location.origin},{property:"og:image",content:location.origin+"/assets/home/hero-family.jpg"},{property:"og:image:secure_url",content:location.origin+"/assets/home/hero-family.jpg"},{name:"twitter:image",content:location.origin+"/assets/home/hero-family.jpg"}])}ngOnInit(){this.router.events.subscribe(t=>{if(t instanceof zB){const t=this.route.snapshot.firstChild.data.title;document.querySelector("body").classList.toggle("is-home","/home"===this.router.url),t&&(this.meta.updateTag({property:"og:title",content:t},"property='og:title'"),this.meta.updateTag({name:"twitter:text:title",content:t},"name='twitter:text:title'")),this.meta.updateTag({property:"og:url",content:location.href},"property='og:url'")}})}}return t.\u0275fac=function(e){return new(e||t)($o(BG),$o(WG),$o(lG),$o(IG),$o(MG),$o(ip),$o(UH))},t.\u0275cmp=Xt({type:t,selectors:[["app-root"]],decls:5,vars:1,consts:[[3,"currentUser"],[1,"content"]],template:function(t,e){1&t&&(Qo(0,"div"),Ko(1,"app-header",0),Qo(2,"div",1),Ko(3,"router-outlet"),Xo(),Ko(4,"app-footer"),Xo()),2&t&&(dr(1),qo("currentUser",e.currentUser))},directives:[G1,pG,$1],styles:[":not(body.is-home) .content{padding-top:64px}"]}),t})();const Y1=["fieldComponent"];function Q1(t,e){}function X1(t,e){if(1&t&&(Qo(0,"div",2),Ko(1,"formly-validation-message",3),Xo()),2&t){const t=ua();dr(1),qo("field",t.field)}}let K1=(()=>{class t extends GF{}return t.\u0275fac=function(e){return Z1(e||t)},t.\u0275cmp=Xt({type:t,selectors:[["app-group-validation-wrapper"]],viewQuery:function(t,e){if(1&t&&Vc(Y1,3,Kl),2&t){let t;Nc(t=Hc())&&(e.fieldComponent=t.first)}},features:[Oo],decls:3,vars:1,consts:[["fieldComponent",""],["class","mat-error",4,"ngIf"],[1,"mat-error"],[3,"field"]],template:function(t,e){1&t&&(jo(0,Q1,0,0,"ng-template",null,0,jc),jo(2,X1,2,1,"div",1)),2&t&&(dr(2),qo("ngIf",e.showError))},directives:[Jd,$F],styles:[""]}),t})();const Z1=Qi(K1);function J1(t,e){return()=>new Promise(i=>{let n="./api/config";"override_config_url"in WV&&(n=WV.override_config_url),t.get(n).pipe(E(t=>{e.fromProperties(t),i(!0)}),MT((t,e)=>(console.log("Failed to load configuration, unable to find ./api/config"),i(!1),Sp({})))).subscribe()})}let t2=(()=>{class t{}return t.config={extras:{showError:LB},types:[{name:"repeat",component:_B},{name:"multiselecttree",component:rB,wrappers:["card"]},{name:"autocomplete",component:qV,wrappers:["form-field"]},{name:"textarea-auto-resize",component:bB,wrappers:["form-field"]}],validators:[{name:"phone",validation:TB},{name:"email",validation:xB},{name:"url",validation:OB},{name:"multicheckbox",validation:DB},{name:"emailConfirm",validation:kB}],validationMessages:[{name:"phone",message:PB},{name:"email",message:SB},{name:"emailConfirm",message:AB},{name:"url",message:EB},{name:"multicheckbox",message:MB},{name:"required",message:"This field is required."},{name:"min",message:IB},{name:"max",message:RB}],wrappers:[{name:"help",component:JV},{name:"card",component:XV},{name:"group-validation",component:K1}]},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_t({token:t,factory:t.\u0275fac}),t})(),e2=(()=>{class t{constructor(t){t.getContainerElement().classList.add("stardrive-theme")}}return t.\u0275fac=function(e){return new(e||t)(wn(YS))},t.\u0275mod=te({type:t,bootstrap:[q1]}),t.\u0275inj=yt({providers:[WG,dX,_h,xV,IG,c1,uX,{provide:qc,useFactory:J1,deps:[Km,MG],multi:!0},{provide:Jm,useClass:RG,multi:!0},{provide:Jm,useClass:HG,multi:!0},{provide:Sm,useExisting:MG},{provide:$k,useValue:{appearance:"outline"}}],imports:[[Om.forRoot(),Pm,KC,tp,yh,ub,JN,YN,tN.forRoot(t2.config),Py,pf,HV.forRoot(),_A,CA,DA,UA,tO,mO,TO,dT,KO,PT,Qk,DT,tP,uE,yP,VP,Ax,GD,XD,aM,xM,aD,VM,HM,eI,rI,hR,hL,yL,ED,WL,jV,sV,Dy,eV,oF,l1]]}),t})();WV.production&&function(){if(Ou)throw new Error("Cannot enable prod mode after platform setup.");Au=!1}(),Zh().bootstrapModule(e2).catch(t=>console.error(t))},zn8P:function(t,e){function i(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}i.keys=function(){return[]},i.resolve=i,t.exports=i,i.id="zn8P"}},[[0,0]]]); \ No newline at end of file diff --git a/frontend/main-es5.1b2b0dd15096ca03fa2f.js b/frontend/main-es5.4f9294ff07547ed1b9c2.js similarity index 90% rename from frontend/main-es5.1b2b0dd15096ca03fa2f.js rename to frontend/main-es5.4f9294ff07547ed1b9c2.js index 8075a0a..acc8682 100644 --- a/frontend/main-es5.1b2b0dd15096ca03fa2f.js +++ b/frontend/main-es5.4f9294ff07547ed1b9c2.js @@ -1 +1 @@ -!function(){function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(e){return r(e)||o(e)||l(e)||i()}function n(e,t){return r(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);i=!0);}catch(l){r=!0,a=l}finally{try{i||null==s.return||s.return()}finally{if(r)throw a}}return n}(e,t)||l(e,t)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(e){if(Array.isArray(e))return e}function a(e){return function(e){if(Array.isArray(e))return u(e)}(e)||o(e)||l(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function s(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=l(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function l(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:"m",n=i.distanceConversion[t];if(n)return e*n;throw new Error("Invalid unit used for distance conversion.")}},"45h8":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n("wI44")),r=a(n("me/f"));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,n){var a=(0,i.default)(t,e),o=(0,i.default)(e,n),s=(0,i.default)(t,n),l=Math.acos((0,r.default)((a*a+s*s-o*o)/(2*a*s))),u=Math.acos((0,r.default)((o*o+s*s-a*a)/(2*o*s)));return l>Math.PI/2?a:u>Math.PI/2?o:Math.sin(l)*a}},"5hfJ":function(e,t,n){"use strict";function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:"m",n=i.areaConversion[t];if(n)return e*n;throw new Error("Invalid unit used for area conversion.")}},"5vw/":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n("wI44"))&&i.__esModule?i:{default:i};t.default=function(e,t,n){return(0,r.default)(e,t)3&&void 0!==arguments[3]?arguments[3]:6371e3,u=(0,i.default)(e),c=(0,r.default)(e),d=t/l,h=(0,a.default)(n),f=(0,a.default)(u),p=(0,a.default)(c),m=Math.asin(Math.sin(f)*Math.cos(d)+Math.cos(f)*Math.sin(d)*Math.cos(h)),g=p+Math.atan2(Math.sin(h)*Math.sin(d)*Math.cos(f),Math.cos(d)-Math.sin(f)*Math.sin(m)),v=(0,o.default)(g);return(vs.MAXLON)&&(g=(g+3*Math.PI)%(2*Math.PI)-Math.PI,v=(0,o.default)(g)),{latitude:(0,o.default)(m),longitude:v}}},"9Og4":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("jH9d");t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"kmh";switch(t){case"kmh":return e*i.timeConversion.h*i.distanceConversion.km;case"mph":return e*i.timeConversion.h*i.distanceConversion.mi;default:return e}}},AFAK:function(e,t,n){"use strict";function i(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}e.exports=function(e){return(e=e||{}).circles?function(e){var t=[],n=[];return e.proto?function e(a){if("object"!=typeof a||null===a)return a;if(a instanceof Date)return new Date(a);if(Array.isArray(a))return r(a,e);if(a instanceof Map)return new Map(r(Array.from(a),e));if(a instanceof Set)return new Set(r(Array.from(a),e));var o={};for(var s in t.push(a),n.push(o),a){var l=a[s];if("object"!=typeof l||null===l)o[s]=l;else if(l instanceof Date)o[s]=new Date(l);else if(l instanceof Map)o[s]=new Map(r(Array.from(l),e));else if(l instanceof Set)o[s]=new Set(r(Array.from(l),e));else if(ArrayBuffer.isView(l))o[s]=i(l);else{var u=t.indexOf(l);o[s]=-1!==u?n[u]:e(l)}}return t.pop(),n.pop(),o}:function e(a){if("object"!=typeof a||null===a)return a;if(a instanceof Date)return new Date(a);if(Array.isArray(a))return r(a,e);if(a instanceof Map)return new Map(r(Array.from(a),e));if(a instanceof Set)return new Set(r(Array.from(a),e));var o={};for(var s in t.push(a),n.push(o),a)if(!1!==Object.hasOwnProperty.call(a,s)){var l=a[s];if("object"!=typeof l||null===l)o[s]=l;else if(l instanceof Date)o[s]=new Date(l);else if(l instanceof Map)o[s]=new Map(r(Array.from(l),e));else if(l instanceof Set)o[s]=new Set(r(Array.from(l),e));else if(ArrayBuffer.isView(l))o[s]=i(l);else{var u=t.indexOf(l);o[s]=-1!==u?n[u]:e(l)}}return t.pop(),n.pop(),o};function r(e,r){for(var a=Object.keys(e),o=new Array(a.length),s=0;se.length)&&(t=e.length);for(var n=0,i=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(i=e[Symbol.iterator]()).next.bind(i)}var i=function(e){var t={exports:{}};return function(e){e.exports={defaults:{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},getDefaults:function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},changeDefaults:function(t){e.exports.defaults=t}}}(t),t.exports}(),r=/[&<>"']/,a=/[&<>"']/g,o=/[<>"']|&(?!#?\w+;)/,s=/[<>"']|&(?!#?\w+;)/g,l={"&":"&","<":"<",">":">",'"':""","'":"'"},u=function(e){return l[e]},c=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function d(e){return e.replace(c,function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}var h=/(^|[^\[])\^/g,f=/[^\w:]/g,p=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,m={},g=/^[^:]+:\/*[^/]*$/,v=/^([^:]+:)[\s\S]*$/,y=/^([^:]+:\/*[^/]*)[\s\S]*$/;function _(e,t,n){var i=e.length;if(0===i)return"";for(var r=0;r=0&&"\\"===n[r];)i=!i;return i?"|":" |"}).split(/ \|/),i=0;if(n.length>t)n.splice(t);else for(;n.length1?{type:"space",raw:t[0]}:{raw:"\n"}},t.code=function(e,t){var n=this.rules.block.code.exec(e);if(n){var i=t[t.length-1];if(i&&"paragraph"===i.type)return{raw:n[0],text:n[0].trimRight()};var r=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:x(r,"\n")}}},t.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],i=function(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var i=n[1];return t.split("\n").map(function(e){var t=e.match(/^\s+/);return null===t?e:t[0].length>=i.length?e.slice(i.length):e}).join("\n")}(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim():t[2],text:i}}},t.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var n=t[2].trim();if(/#$/.test(n)){var i=x(n,"#");this.options.pedantic?n=i.trim():i&&!/ $/.test(i)||(n=i.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n}}},t.nptable=function(e){var t=this.rules.block.nptable.exec(e);if(t){var n={type:"table",header:S(t[1].replace(/^ *| *\| *$/g,"")),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[],raw:t[0]};if(n.header.length===n.align.length){var i,r=n.align.length;for(i=0;i ?/gm,"");return{type:"blockquote",raw:t[0],text:n}}},t.list=function(e){var t=this.rules.block.list.exec(e);if(t){var n,i,r,a,o,s,l,u,c=t[0],d=t[2],h=d.length>1,f={type:"list",raw:c,ordered:h,start:h?+d.slice(0,-1):"",loose:!1,items:[]},p=t[0].match(this.rules.block.item),m=!1,g=p.length;r=this.rules.block.listItemStart.exec(p[0]);for(var v=0;vr[1].length:a[1].length>r[0].length||a[1].length>3){p.splice(v,2,p[v]+"\n"+p[v+1]),v--,g--;continue}(!this.options.pedantic||this.options.smartLists?a[2][a[2].length-1]!==d[d.length-1]:h===(1===a[2].length))&&(o=p.slice(v+1).join("\n"),f.raw=f.raw.substring(0,f.raw.length-o.length),v=g-1),r=a}i=n.length,~(n=n.replace(/^ *([*+-]|\d+[.)]) ?/,"")).indexOf("\n ")&&(i-=n.length,n=n.replace(this.options.pedantic?/^ {1,4}/gm:new RegExp("^ {1,"+i+"}","gm"),"")),s=m||/\n\n(?!\s*$)/.test(n),v!==g-1&&(m="\n"===n.charAt(n.length-1),s||(s=m)),s&&(f.loose=!0),this.options.gfm&&(u=void 0,(l=/^\[[ xX]\] /.test(n))&&(u=" "!==n[1],n=n.replace(/^\[[ xX]\] +/,""))),f.items.push({type:"list_item",raw:c,task:l,checked:u,loose:s,text:n})}return f}},t.html=function(e){var t=this.rules.block.html.exec(e);if(t)return{type:this.options.sanitize?"paragraph":"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):A(t[0]):t[0]}},t.def=function(e){var t=this.rules.block.def.exec(e);if(t)return t[3]&&(t[3]=t[3].substring(1,t[3].length-1)),{tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}},t.table=function(e){var t=this.rules.block.table.exec(e);if(t){var n={type:"table",header:S(t[1].replace(/^ *| *\| *$/g,"")),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=t[0];var i,r=n.align.length;for(i=0;i/i.test(i[0])&&(t=!1),!n&&/^<(pre|code|kbd|script)(\s|>)/i.test(i[0])?n=!0:n&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(i[0])&&(n=!1),{type:this.options.sanitize?"text":"html",raw:i[0],inLink:t,inRawBlock:n,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):A(i[0]):i[0]}},t.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var n=t[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;var i=x(n.slice(0,-1),"\\");if((n.length-i.length)%2==0)return}else{var r=function(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=e.length,i=0,r=0;r-1){var a=(0===t[0].indexOf("!")?5:4)+t[1].length+r;t[2]=t[2].substring(0,r),t[0]=t[0].substring(0,a).trim(),t[3]=""}}var o=t[2],s="";if(this.options.pedantic){var l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);l&&(o=l[1],s=l[3])}else s=t[3]?t[3].slice(1,-1):"";return o=o.trim(),/^$/.test(n)?o.slice(1):o.slice(1,-1)),O(t,{href:o?o.replace(this.rules.inline._escapes,"$1"):o,title:s?s.replace(this.rules.inline._escapes,"$1"):s},t[0])}},t.reflink=function(e,t){var n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){var i=(n[2]||n[1]).replace(/\s+/g," ");if(!(i=t[i.toLowerCase()])||!i.href){var r=n[0].charAt(0);return{type:"text",raw:r,text:r}}return O(n,i,n[0])}},t.strong=function(e,t,n){void 0===n&&(n="");var i=this.rules.inline.strong.start.exec(e);if(i&&(!i[1]||i[1]&&(""===n||this.rules.inline.punctuation.exec(n)))){t=t.slice(-1*e.length);var r,a="**"===i[0]?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;for(a.lastIndex=0;null!=(i=a.exec(t));)if(r=this.rules.inline.strong.middle.exec(t.slice(0,i.index+3)))return{type:"strong",raw:e.slice(0,r[0].length),text:e.slice(2,r[0].length-2)}}},t.em=function(e,t,n){void 0===n&&(n="");var i=this.rules.inline.em.start.exec(e);if(i&&(!i[1]||i[1]&&(""===n||this.rules.inline.punctuation.exec(n)))){t=t.slice(-1*e.length);var r,a="*"===i[0]?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;for(a.lastIndex=0;null!=(i=a.exec(t));)if(r=this.rules.inline.em.middle.exec(t.slice(0,i.index+2)))return{type:"em",raw:e.slice(0,r[0].length),text:e.slice(1,r[0].length-1)}}},t.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var n=t[2].replace(/\n/g," "),i=/[^ ]/.test(n),r=/^ /.test(n)&&/ $/.test(n);return i&&r&&(n=n.substring(1,n.length-1)),n=A(n,!0),{type:"codespan",raw:t[0],text:n}}},t.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},t.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2]}},t.autolink=function(e,t){var n,i,r=this.rules.inline.autolink.exec(e);if(r)return i="@"===r[2]?"mailto:"+(n=A(this.options.mangle?t(r[1]):r[1])):n=A(r[1]),{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}},t.url=function(e,t){var n;if(n=this.rules.inline.url.exec(e)){var i,r;if("@"===n[2])r="mailto:"+(i=A(this.options.mangle?t(n[0]):n[0]));else{var a;do{a=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(a!==n[0]);i=A(n[0]),r="www."===n[1]?"http://"+i:i}return{type:"link",raw:n[0],text:i,href:r,tokens:[{type:"text",raw:i,text:i}]}}},t.inlineText=function(e,t,n){var i,r=this.rules.inline.text.exec(e);if(r)return i=t?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):A(r[0]):r[0]:A(this.options.smartypants?n(r[0]):r[0]),{type:"text",raw:r[0],text:i}},e}(),T={exec:function(){}},P=function(e,t){e=e.source||e,t=t||"";var n={replace:function(t,i){return i=(i=i.source||i).replace(h,"$1"),e=e.replace(t,i),n},getRegex:function(){return new RegExp(e,t)}};return n},D=w,M={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?! {0,3}bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:T,table:T,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};M.def=P(M.def).replace("label",M._label).replace("title",M._title).getRegex(),M.bullet=/(?:[*+-]|\d{1,9}[.)])/,M.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,M.item=P(M.item,"gm").replace(/bull/g,M.bullet).getRegex(),M.listItemStart=P(/^( *)(bull)/).replace("bull",M.bullet).getRegex(),M.list=P(M.list).replace(/bull/g,M.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+M.def.source+")").getRegex(),M._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",M._comment=/|$)/,M.html=P(M.html,"i").replace("comment",M._comment).replace("tag",M._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),M.paragraph=P(M._paragraph).replace("hr",M.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",M._tag).getRegex(),M.blockquote=P(M.blockquote).replace("paragraph",M.paragraph).getRegex(),M.normal=D({},M),M.gfm=D({},M.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n {0,3}([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n {0,3}\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),M.gfm.nptable=P(M.gfm.nptable).replace("hr",M.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",M._tag).getRegex(),M.gfm.table=P(M.gfm.table).replace("hr",M.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",M._tag).getRegex(),M.pedantic=D({},M.normal,{html:P("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",M._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:T,paragraph:P(M.normal._paragraph).replace("hr",M.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",M.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var I={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:T,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation_\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation*\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation_\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation*\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:T,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~"};I.punctuation=P(I.punctuation).replace(/punctuation/g,I._punctuation).getRegex(),I._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",I._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",I._comment=P(M._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),I.em.start=P(I.em.start).replace(/punctuation/g,I._punctuation).getRegex(),I.em.middle=P(I.em.middle).replace(/punctuation/g,I._punctuation).replace(/overlapSkip/g,I._overlapSkip).getRegex(),I.em.endAst=P(I.em.endAst,"g").replace(/punctuation/g,I._punctuation).getRegex(),I.em.endUnd=P(I.em.endUnd,"g").replace(/punctuation/g,I._punctuation).getRegex(),I.strong.start=P(I.strong.start).replace(/punctuation/g,I._punctuation).getRegex(),I.strong.middle=P(I.strong.middle).replace(/punctuation/g,I._punctuation).replace(/overlapSkip/g,I._overlapSkip).getRegex(),I.strong.endAst=P(I.strong.endAst,"g").replace(/punctuation/g,I._punctuation).getRegex(),I.strong.endUnd=P(I.strong.endUnd,"g").replace(/punctuation/g,I._punctuation).getRegex(),I.blockSkip=P(I._blockSkip,"g").getRegex(),I.overlapSkip=P(I._overlapSkip,"g").getRegex(),I._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,I._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,I._email=/[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])?)+(?![-_])/,I.autolink=P(I.autolink).replace("scheme",I._scheme).replace("email",I._email).getRegex(),I._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,I.tag=P(I.tag).replace("comment",I._comment).replace("attribute",I._attribute).getRegex(),I._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,I._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,I._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,I.link=P(I.link).replace("label",I._label).replace("href",I._href).replace("title",I._title).getRegex(),I.reflink=P(I.reflink).replace("label",I._label).getRegex(),I.reflinkSearch=P(I.reflinkSearch,"g").replace("reflink",I.reflink).replace("nolink",I.nolink).getRegex(),I.normal=D({},I),I.pedantic=D({},I.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:P(/^!?\[(label)\]\((.*?)\)/).replace("label",I._label).getRegex(),reflink:P(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",I._label).getRegex()}),I.gfm=D({},I.normal,{escape:P(I.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\1;)1&t&&(n+=e),t>>=1,e+=e;return n+e};function B(e){return e.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026")}function H(e){var t,n,i="",r=e.length;for(t=0;t.5&&(n="x"+n.toString(16)),i+="&#"+n+";";return i}var z=function(){function t(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||L,this.options.tokenizer=this.options.tokenizer||new E,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var t={block:F.normal,inline:N.normal};this.options.pedantic?(t.block=F.pedantic,t.inline=N.pedantic):this.options.gfm&&(t.block=F.gfm,t.inline=this.options.breaks?N.breaks:N.gfm),this.tokenizer.rules=t}t.lex=function(e,n){return new t(n).lex(e)},t.lexInline=function(e,n){return new t(n).inlineTokens(e)};var n,i,r=t.prototype;return r.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens,!0),this.inline(this.tokens),this.tokens},r.blockTokens=function(e,t,n){var i,r,a,o;for(void 0===t&&(t=[]),void 0===n&&(n=!0),this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(i=this.tokenizer.space(e))e=e.substring(i.raw.length),i.type&&t.push(i);else if(i=this.tokenizer.code(e,t))e=e.substring(i.raw.length),i.type?t.push(i):((o=t[t.length-1]).raw+="\n"+i.raw,o.text+="\n"+i.text);else if(i=this.tokenizer.fences(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.heading(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.nptable(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.hr(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.blockquote(e))e=e.substring(i.raw.length),i.tokens=this.blockTokens(i.text,[],n),t.push(i);else if(i=this.tokenizer.list(e)){for(e=e.substring(i.raw.length),a=i.items.length,r=0;r0)for(;null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(l));)u.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,a.index)+"["+V("a",a[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(a=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,a.index)+"["+V("a",a[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;e;)if(o||(s=""),o=!1,r=this.tokenizer.escape(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.tag(e,n,i))e=e.substring(r.raw.length),n=r.inLink,i=r.inRawBlock,t.push(r);else if(r=this.tokenizer.link(e))e=e.substring(r.raw.length),"link"===r.type&&(r.tokens=this.inlineTokens(r.text,[],!0,i)),t.push(r);else if(r=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(r.raw.length),"link"===r.type&&(r.tokens=this.inlineTokens(r.text,[],!0,i)),t.push(r);else if(r=this.tokenizer.strong(e,l,s))e=e.substring(r.raw.length),r.tokens=this.inlineTokens(r.text,[],n,i),t.push(r);else if(r=this.tokenizer.em(e,l,s))e=e.substring(r.raw.length),r.tokens=this.inlineTokens(r.text,[],n,i),t.push(r);else if(r=this.tokenizer.codespan(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.br(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.del(e))e=e.substring(r.raw.length),r.tokens=this.inlineTokens(r.text,[],n,i),t.push(r);else if(r=this.tokenizer.autolink(e,H))e=e.substring(r.raw.length),t.push(r);else if(n||!(r=this.tokenizer.url(e,H))){if(r=this.tokenizer.inlineText(e,i,B))e=e.substring(r.raw.length),s=r.raw.slice(-1),o=!0,t.push(r);else if(e){var c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}throw new Error(c)}}else e=e.substring(r.raw.length),t.push(r);return t},n=t,(i=[{key:"rules",get:function(){return{block:F,inline:N}}}])&&e(n,i),t}(),G=i.defaults,j=function(e,t,n){if(e){var i;try{i=decodeURIComponent(d(n)).replace(f,"").toLowerCase()}catch(r){return null}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return null}t&&!p.test(n)&&(n=function(e,t){m[" "+e]||(m[" "+e]=g.test(e)?e+"/":_(e,"/",!0));var n=-1===(e=m[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(v,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(y,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(r){return null}return n},U=b,W=function(){function e(e){this.options=e||G}var t=e.prototype;return t.code=function(e,t,n){var i=(t||"").match(/\S*/)[0];if(this.options.highlight){var r=this.options.highlight(e,i);null!=r&&r!==e&&(n=!0,e=r)}return e=e.replace(/\n$/,"")+"\n",i?'
    '+(n?e:U(e,!0))+"
    \n":"
    "+(n?e:U(e,!0))+"
    \n"},t.blockquote=function(e){return"
    \n"+e+"
    \n"},t.html=function(e){return e},t.heading=function(e,t,n,i){return this.options.headerIds?"'+e+"\n":""+e+"\n"},t.hr=function(){return this.options.xhtml?"
    \n":"
    \n"},t.list=function(e,t,n){var i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"},t.listitem=function(e){return"
  • "+e+"
  • \n"},t.checkbox=function(e){return" "},t.paragraph=function(e){return"

    "+e+"

    \n"},t.table=function(e,t){return t&&(t=""+t+""),"\n\n"+e+"\n"+t+"
    \n"},t.tablerow=function(e){return"\n"+e+"\n"},t.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"\n"},t.strong=function(e){return""+e+""},t.em=function(e){return""+e+""},t.codespan=function(e){return""+e+""},t.br=function(){return this.options.xhtml?"
    ":"
    "},t.del=function(e){return""+e+""},t.link=function(e,t,n){if(null===(e=j(this.options.sanitize,this.options.baseUrl,e)))return n;var i='"+n+""},t.image=function(e,t,n){if(null===(e=j(this.options.sanitize,this.options.baseUrl,e)))return n;var i=''+n+'":">")},t.text=function(e){return e},e}(),q=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,n){return""+n},t.image=function(e,t,n){return""+n},t.br=function(){return""},e}(),Y=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var n=e,i=0;if(this.seen.hasOwnProperty(n)){i=this.seen[e];do{n=e+"-"+ ++i}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=i,this.seen[n]=0),n},t.slug=function(e,t){void 0===t&&(t={});var n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)},e}(),Q=i.defaults,X=k,$=function(){function e(e){this.options=e||Q,this.options.renderer=this.options.renderer||new W,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new q,this.slugger=new Y}e.parse=function(t,n){return new e(n).parse(t)},e.parseInline=function(t,n){return new e(n).parseInline(t)};var t=e.prototype;return t.parse=function(e,t){void 0===t&&(t=!0);var n,i,r,a,o,s,l,u,c,d,h,f,p,m,g,v,y,_,b="",k=e.length;for(n=0;n0&&"text"===g.tokens[0].type?(g.tokens[0].text=_+" "+g.tokens[0].text,g.tokens[0].tokens&&g.tokens[0].tokens.length>0&&"text"===g.tokens[0].tokens[0].type&&(g.tokens[0].tokens[0].text=_+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:_}):m+=_),m+=this.parse(g.tokens,p),c+=this.renderer.listitem(m,y,v);b+=this.renderer.list(c,h,f);continue;case"html":b+=this.renderer.html(d.text);continue;case"paragraph":b+=this.renderer.paragraph(this.parseInline(d.tokens));continue;case"text":for(c=d.tokens?this.parseInline(d.tokens):d.text;n+1An error occurred:

    "+J(l.message+"",!0)+"
    ";throw l}}return ie.options=ie.setOptions=function(e){return K(ie.defaults,e),te(ie.defaults),ie},ie.getDefaults=ee,ie.defaults=ne,ie.use=function(e){var t=K({},e);if(e.renderer&&function(){var n=ie.defaults.renderer||new W,i=function(t){var i=n[t];n[t]=function(){for(var r=arguments.length,a=new Array(r),o=0;oAn error occurred:

    "+J(i.message+"",!0)+"
    ";throw i}},ie.Parser=$,ie.parser=$.parse,ie.Renderer=W,ie.TextRenderer=q,ie.Lexer=z,ie.lexer=z.lex,ie.Tokenizer=E,ie.Slugger=Y,ie.parse=ie,ie}()},Fqnj:function(e,t,n){"use strict";function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);nMath.PI&&(n=n>0?-1*(2*Math.PI-n):2*Math.PI+n),((0,o.default)(Math.atan2(n,s))+360)%360}},Nrgg:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n("wI44"))&&i.__esModule?i:{default:i};t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.default,i=n(e,t),a=Number(t.time)-Number(e.time),o=i/a*1e3;return o}},OTo6:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n("JKJh"))&&i.__esModule?i:{default:i};t.default=function(e){var t=(0,r.default)(e),n=t.minLng+(t.maxLng-t.minLng)/2;return{latitude:parseFloat((t.minLat+(t.maxLat-t.minLat)/2).toFixed(6)),longitude:parseFloat(n.toFixed(6))}}},"QTq/":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("jH9d"),r=o(n("M7lk")),a=o(n("KcL1"));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){var n=(0,r.default)(e,i.longitudeKeys);if(null!=n){var o=e[n];return!0===t?o:(0,a.default)(o)}}},"SJ/V":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n("wI44"))&&i.__esModule?i:{default:i};t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.default;return n="function"==typeof n?n:r.default,t.slice().sort(function(t,i){return n(e,t)-n(e,i)})}},ZPc1:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n("SJ/V"))&&i.__esModule?i:{default:i};t.default=function(e,t){return(0,r.default)(e,t)[0]}},Zdlu:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){var t=e.toString().trim();return!isNaN(parseFloat(t))&&parseFloat(t)===Number(t)}},"c+JA":function(e,t){function n(e,t,i){this.extend(n,google.maps.OverlayView),this.map_=e,this.markers_=[],this.clusters_=[],this.sizes=[53,56,66,78,90],this.styles_=[],this.ready_=!1;var r=i||{};this.gridSize_=r.gridSize||60,this.minClusterSize_=r.minimumClusterSize||2,this.maxZoom_=r.maxZoom||null,this.styles_=r.styles||[],this.imagePath_=r.imagePath||this.MARKER_CLUSTER_IMAGE_PATH_,this.imageExtension_=r.imageExtension||this.MARKER_CLUSTER_IMAGE_EXTENSION_,this.zoomOnClick_=!0,null!=r.zoomOnClick&&(this.zoomOnClick_=r.zoomOnClick),this.averageCenter_=!1,null!=r.averageCenter&&(this.averageCenter_=r.averageCenter),this.setupStyles_(),this.setMap(e),this.prevZoom_=this.map_.getZoom();var a=this;google.maps.event.addListener(this.map_,"zoom_changed",function(){var e=a.map_.getZoom();a.prevZoom_!=e&&(a.prevZoom_=e,a.resetViewport())}),google.maps.event.addListener(this.map_,"idle",function(){a.redraw()}),t&&t.length&&this.addMarkers(t,!1)}function i(e){this.markerClusterer_=e,this.map_=e.getMap(),this.gridSize_=e.getGridSize(),this.minClusterSize_=e.getMinClusterSize(),this.averageCenter_=e.isAverageCenter(),this.center_=null,this.markers_=[],this.bounds_=null,this.clusterIcon_=new r(this,e.getStyles(),e.getGridSize())}function r(e,t,n){e.getMarkerClusterer().extend(r,google.maps.OverlayView),this.styles_=t,this.padding_=n||0,this.cluster_=e,this.center_=null,this.map_=e.getMap(),this.div_=null,this.sums_=null,this.visible_=!1,this.setMap(this.map_)}n.prototype.MARKER_CLUSTER_IMAGE_PATH_="http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/images/m",n.prototype.MARKER_CLUSTER_IMAGE_EXTENSION_="png",n.prototype.extend=function(e,t){return(function(e){for(var t in e.prototype)this.prototype[t]=e.prototype[t];return this}).apply(e,[t])},n.prototype.onAdd=function(){this.setReady_(!0)},n.prototype.draw=function(){},n.prototype.setupStyles_=function(){if(!this.styles_.length)for(var e,t=0;e=this.sizes[t];t++)this.styles_.push({url:this.imagePath_+(t+1)+"."+this.imageExtension_,height:e,width:e})},n.prototype.fitMapToMarkers=function(){for(var e,t=this.getMarkers(),n=new google.maps.LatLngBounds,i=0;e=t[i];i++)n.extend(e.getPosition());this.map_.fitBounds(n)},n.prototype.setStyles=function(e){this.styles_=e},n.prototype.getStyles=function(){return this.styles_},n.prototype.isZoomOnClick=function(){return this.zoomOnClick_},n.prototype.isAverageCenter=function(){return this.averageCenter_},n.prototype.getMarkers=function(){return this.markers_},n.prototype.getTotalMarkers=function(){return this.markers_.length},n.prototype.setMaxZoom=function(e){this.maxZoom_=e},n.prototype.getMaxZoom=function(){return this.maxZoom_},n.prototype.calculator_=function(e,t){for(var n=0,i=e.length,r=i;0!==r;)r=parseInt(r/10,10),n++;return{text:i,index:n=Math.min(n,t)}},n.prototype.setCalculator=function(e){this.calculator_=e},n.prototype.getCalculator=function(){return this.calculator_},n.prototype.addMarkers=function(e,t){for(var n,i=0;n=e[i];i++)this.pushMarkerTo_(n);t||this.redraw()},n.prototype.pushMarkerTo_=function(e){if(e.isAdded=!1,e.draggable){var t=this;google.maps.event.addListener(e,"dragend",function(){e.isAdded=!1,t.repaint()})}this.markers_.push(e)},n.prototype.addMarker=function(e,t){this.pushMarkerTo_(e),t||this.redraw()},n.prototype.removeMarker_=function(e){var t=-1;if(this.markers_.indexOf)t=this.markers_.indexOf(e);else for(var n,i=0;n=this.markers_[i];i++)if(n==e){t=i;break}return-1!=t&&(e.setMap(null),this.markers_.splice(t,1),!0)},n.prototype.removeMarker=function(e,t){var n=this.removeMarker_(e);return!(t||!n||(this.resetViewport(),this.redraw(),0))},n.prototype.removeMarkers=function(e,t){for(var n,i=!1,r=0;n=e[r];r++){var a=this.removeMarker_(n);i=i||a}if(!t&&i)return this.resetViewport(),this.redraw(),!0},n.prototype.setReady_=function(e){this.ready_||(this.ready_=e,this.createClusters_())},n.prototype.getTotalClusters=function(){return this.clusters_.length},n.prototype.getMap=function(){return this.map_},n.prototype.setMap=function(e){this.map_=e},n.prototype.getGridSize=function(){return this.gridSize_},n.prototype.setGridSize=function(e){this.gridSize_=e},n.prototype.getMinClusterSize=function(){return this.minClusterSize_},n.prototype.setMinClusterSize=function(e){this.minClusterSize_=e},n.prototype.getExtendedBounds=function(e){var t=this.getProjection(),n=new google.maps.LatLng(e.getNorthEast().lat(),e.getNorthEast().lng()),i=new google.maps.LatLng(e.getSouthWest().lat(),e.getSouthWest().lng()),r=t.fromLatLngToDivPixel(n);r.x+=this.gridSize_,r.y-=this.gridSize_;var a=t.fromLatLngToDivPixel(i);a.x-=this.gridSize_,a.y+=this.gridSize_;var o=t.fromDivPixelToLatLng(r),s=t.fromDivPixelToLatLng(a);return e.extend(o),e.extend(s),e},n.prototype.isMarkerInBounds_=function(e,t){return t.contains(e.getPosition())},n.prototype.clearMarkers=function(){this.resetViewport(!0),this.markers_=[]},n.prototype.resetViewport=function(e){for(var t,n=0;t=this.clusters_[n];n++)t.remove();var i;for(n=0;i=this.markers_[n];n++)i.isAdded=!1,e&&i.setMap(null);this.clusters_=[]},n.prototype.repaint=function(){var e=this.clusters_.slice();this.clusters_.length=0,this.resetViewport(),this.redraw(),window.setTimeout(function(){for(var t,n=0;t=e[n];n++)t.remove()},0)},n.prototype.redraw=function(){this.createClusters_()},n.prototype.distanceBetweenPoints_=function(e,t){if(!e||!t)return 0;var n=(t.lat()-e.lat())*Math.PI/180,i=(t.lng()-e.lng())*Math.PI/180,r=Math.sin(n/2)*Math.sin(n/2)+Math.cos(e.lat()*Math.PI/180)*Math.cos(t.lat()*Math.PI/180)*Math.sin(i/2)*Math.sin(i/2);return 2*Math.atan2(Math.sqrt(r),Math.sqrt(1-r))*6371},n.prototype.addToClosestCluster_=function(e){for(var t,n=4e4,r=null,a=(e.getPosition(),0);t=this.clusters_[a];a++){var o=t.getCenter();if(o){var s=this.distanceBetweenPoints_(o,e.getPosition());s=this.minClusterSize_&&e.setMap(null),this.updateIcon(),!0},i.prototype.getMarkerClusterer=function(){return this.markerClusterer_},i.prototype.getBounds=function(){for(var e,t=new google.maps.LatLngBounds(this.center_,this.center_),n=this.getMarkers(),i=0;e=n[i];i++)t.extend(e.getPosition());return t},i.prototype.remove=function(){this.clusterIcon_.remove(),this.markers_.length=0,delete this.markers_},i.prototype.getSize=function(){return this.markers_.length},i.prototype.getMarkers=function(){return this.markers_},i.prototype.getCenter=function(){return this.center_},i.prototype.calculateBounds_=function(){var e=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(e)},i.prototype.isMarkerInClusterBounds=function(e){return this.bounds_.contains(e.getPosition())},i.prototype.getMap=function(){return this.map_},i.prototype.updateIcon=function(){var e=this.map_.getZoom(),t=this.markerClusterer_.getMaxZoom();if(t&&e>t)for(var n,i=0;n=this.markers_[i];i++)n.setMap(this.map_);else if(this.markers_.length0&&this.anchor_[0]0&&this.anchor_[1]1&&void 0!==arguments[1]?arguments[1]:{longitude:r.longitudeKeys,latitude:r.latitudeKeys,altitude:r.altitudeKeys},n=(0,a.default)(e,t.longitude),i=(0,a.default)(e,t.latitude),o=(0,a.default)(e,t.altitude);return s({latitude:i,longitude:n},o?{altitude:o}:{})}},fCuW:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n("wI44"))&&i.__esModule?i:{default:i};t.default=function(e,t,n){return(0,r.default)(t,e)+(0,r.default)(e,n)===(0,r.default)(t,n)}},fxgB:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=l(n("2o5z")),r=l(n("QTq/")),a=l(n("jDUc")),o=l(n("6D9Q")),s=n("jH9d");function l(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){var n,l,u=(0,i.default)(e),c=(0,r.default)(e),d=(0,a.default)(u),h=(0,a.default)(c),f=t/s.earthRadius,p=d-f,m=d+f,g=(0,a.default)(s.MAXLAT),v=(0,a.default)(s.MINLAT),y=(0,a.default)(s.MAXLON),_=(0,a.default)(s.MINLON);if(p>v&&my&&(l-=2*Math.PI)}else p=Math.max(p,v),m=Math.min(m,g),n=_,l=y;return[{latitude:(0,o.default)(p),longitude:(0,o.default)(n)},{latitude:(0,o.default)(m),longitude:(0,o.default)(l)}]}},i8yS:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n("2o5z")),r=s(n("QTq/")),a=s(n("jDUc")),o=s(n("6D9Q"));function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){if(!1===Array.isArray(e)||0===e.length)return!1;var t=e.length,n=e.reduce(function(e,t){var n=(0,a.default)((0,i.default)(t)),o=(0,a.default)((0,r.default)(t));return{X:e.X+Math.cos(n)*Math.cos(o),Y:e.Y+Math.cos(n)*Math.sin(o),Z:e.Z+Math.sin(n)}},{X:0,Y:0,Z:0}),s=n.X/t,l=n.Y/t,u=n.Z/t;return{longitude:(0,o.default)(Math.atan2(l,s)),latitude:(0,o.default)(Math.atan2(u,Math.sqrt(s*s+l*l)))}}},jDUc:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){return e*Math.PI/180}},jH9d:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.areaConversion=t.timeConversion=t.distanceConversion=t.altitudeKeys=t.latitudeKeys=t.longitudeKeys=t.MAXLON=t.MINLON=t.MAXLAT=t.MINLAT=t.earthRadius=t.sexagesimalPattern=void 0,t.sexagesimalPattern=/^([0-9]{1,3})\xb0\s*([0-9]{1,3}(?:\.(?:[0-9]{1,}))?)['\u2032]\s*(([0-9]{1,3}(\.([0-9]{1,}))?)["\u2033]\s*)?([NEOSW]?)$/,t.earthRadius=6378137,t.MINLAT=-90,t.MAXLAT=90,t.MINLON=-180,t.MAXLON=180,t.longitudeKeys=["lng","lon","longitude",0],t.latitudeKeys=["lat","latitude",1],t.altitudeKeys=["alt","altitude","elevation","elev",2],t.distanceConversion={m:1,km:.001,cm:100,mm:1e3,mi:1/1609.344,sm:1/1852.216,ft:100/30.48,in:100/2.54,yd:1/.9144},t.timeConversion={m:60,h:3600,d:86400};var i={m2:1,km2:1e-6,ha:1e-4,a:.01,ft2:10.763911,yd2:1.19599,in2:1550.0031};t.areaConversion=i,i.sqm=i.m2,i.sqkm=i.km2,i.sqft=i.ft2,i.sqyd=i.yd2,i.sqin=i.in2},jIQF:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={computeDestinationPoint:!0,convertArea:!0,convertDistance:!0,convertSpeed:!0,decimalToSexagesimal:!0,findNearest:!0,getAreaOfPolygon:!0,getBounds:!0,getBoundsOfDistance:!0,getCenter:!0,getCenterOfBounds:!0,getCompassDirection:!0,getCoordinateKey:!0,getCoordinateKeys:!0,getDistance:!0,getDistanceFromLine:!0,getGreatCircleBearing:!0,getLatitude:!0,getLongitude:!0,getPathLength:!0,getPreciseDistance:!0,getRhumbLineBearing:!0,getRoughCompassDirection:!0,getSpeed:!0,isDecimal:!0,isPointInLine:!0,isPointInPolygon:!0,isPointNearLine:!0,isPointWithinRadius:!0,isSexagesimal:!0,isValidCoordinate:!0,isValidLatitude:!0,isValidLongitude:!0,orderByDistance:!0,sexagesimalToDecimal:!0,toDecimal:!0,toRad:!0,toDeg:!0,wktToPolygon:!0};Object.defineProperty(t,"computeDestinationPoint",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"convertArea",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"convertDistance",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"convertSpeed",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"decimalToSexagesimal",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"findNearest",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"getAreaOfPolygon",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"getBounds",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"getBoundsOfDistance",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"getCenter",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"getCenterOfBounds",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"getCompassDirection",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"getCoordinateKey",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"getCoordinateKeys",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"getDistance",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"getDistanceFromLine",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"getGreatCircleBearing",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"getLatitude",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(t,"getLongitude",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"getPathLength",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(t,"getPreciseDistance",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"getRhumbLineBearing",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"getRoughCompassDirection",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(t,"getSpeed",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(t,"isDecimal",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(t,"isPointInLine",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(t,"isPointInPolygon",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(t,"isPointNearLine",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(t,"isPointWithinRadius",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(t,"isSexagesimal",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(t,"isValidCoordinate",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(t,"isValidLatitude",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(t,"isValidLongitude",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(t,"orderByDistance",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(t,"sexagesimalToDecimal",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(t,"toDecimal",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(t,"toRad",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(t,"toDeg",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(t,"wktToPolygon",{enumerable:!0,get:function(){return G.default}});var r=U(n("95co")),a=U(n("5kFF")),o=U(n("3Q5m")),s=U(n("9Og4")),l=U(n("Fqnj")),u=U(n("ZPc1")),c=U(n("t3RW")),d=U(n("JKJh")),h=U(n("fxgB")),f=U(n("i8yS")),p=U(n("OTo6")),m=U(n("mpC8")),g=U(n("M7lk")),v=U(n("eRSq")),y=U(n("wI44")),_=U(n("45h8")),b=U(n("+eSx")),k=U(n("2o5z")),w=U(n("QTq/")),C=U(n("m5sM")),x=U(n("mbFH")),S=U(n("NBE3")),A=U(n("z+Es")),O=U(n("Nrgg")),E=U(n("Zdlu")),T=U(n("fCuW")),P=U(n("HkEB")),D=U(n("G31G")),M=U(n("5vw/")),I=U(n("dkTa")),R=U(n("vONA")),L=U(n("sCiF")),F=U(n("mSAH")),N=U(n("SJ/V")),V=U(n("rT3r")),B=U(n("KcL1")),H=U(n("jDUc")),z=U(n("6D9Q")),G=U(n("5hfJ")),j=n("jH9d");function U(e){return e&&e.__esModule?e:{default:e}}Object.keys(j).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return j[e]}}))})},m5sM:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n("wI44"))&&i.__esModule?i:{default:i};function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.default;return e.reduce(function(e,n){return"object"===a(e)&&null!==e.last&&(e.distance+=t(n,e.last)),e.last=n,e},{last:null,distance:0}).distance}},mSAH:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n("Zdlu")),r=s(n("dkTa")),a=s(n("rT3r")),o=n("jH9d");function s(e){return e&&e.__esModule?e:{default:e}}t.default=function e(t){return(0,i.default)(t)?!(parseFloat(t)>o.MAXLON||t2&&void 0!==arguments[2]?arguments[2]:1;n=void 0===n||isNaN(n)?1:n;var s,l,u,c,d,h,f,p=(0,i.default)(e),m=(0,r.default)(e),g=(0,i.default)(t),v=(0,r.default)(t),y=6356752.314245,_=1/298.257223563,b=(0,a.default)(v-m),k=Math.atan((1-_)*Math.tan((0,a.default)(parseFloat(p)))),w=Math.atan((1-_)*Math.tan((0,a.default)(parseFloat(g)))),C=Math.sin(k),x=Math.cos(k),S=Math.sin(w),A=Math.cos(w),O=b,E=100;do{var T=Math.sin(O),P=Math.cos(O);if(0===(h=Math.sqrt(A*T*(A*T)+(x*S-C*A*P)*(x*S-C*A*P))))return 0;s=C*S+x*A*P,l=Math.atan2(h,s),d=s-2*C*S/(c=1-(u=x*A*T/h)*u),isNaN(d)&&(d=0);var D=_/16*c*(4+_*(4-3*c));f=O,O=b+(1-D)*_*u*(l+D*h*(d+D*s*(2*d*d-1)))}while(Math.abs(O-f)>1e-12&&--E>0);if(0===E)return NaN;var M=c*(o.earthRadius*o.earthRadius-y*y)/(y*y),I=1+M/16384*(4096+M*(M*(320-175*M)-768)),R=M/1024*(256+M*(M*(74-47*M)-128)),L=R*h*(d+R/4*(s*(2*d*d-1)-R/6*d*(4*h*h-3)*(4*d*d-3))),F=y*I*(l-L);return Math.round(F/n)*n}},"me/f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){return e>1?1:e<-1?-1:e}},mpC8:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n("NBE3"))&&i.__esModule?i:{default:i};t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.default,i="function"==typeof n?n(e,t):(0,r.default)(e,t);if(isNaN(i))throw new Error("Could not calculate bearing for given points. Check your bearing function");switch(Math.round(i/22.5)){case 1:return"NNE";case 2:return"NE";case 3:return"ENE";case 4:return"E";case 5:return"ESE";case 6:return"SE";case 7:return"SSE";case 8:return"S";case 9:return"SSW";case 10:return"SW";case 11:return"WSW";case 12:return"W";case 13:return"WNW";case 14:return"NW";case 15:return"NNW";default:return"N"}}},rT3r:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("jH9d");t.default=function(e){var t=new RegExp(i.sexagesimalPattern).exec(e);if(null==t)throw new Error("Given value is not in sexagesimal format");var n=Number(t[2])/60||0,r=Number(t[4])/3600||0,a=parseFloat(t[1])+n+r;return["S","W"].includes(t[7])?-a:a}},sCiF:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n("Zdlu")),r=s(n("dkTa")),a=s(n("rT3r")),o=n("jH9d");function s(e){return e&&e.__esModule?e:{default:e}}t.default=function e(t){return(0,i.default)(t)?!(parseFloat(t)>o.MAXLAT||t2){for(var n,s,l,u=0;u=2)return(0,a.default)(e[0])&&(0,r.default)(e[1]);if(void 0===n||void 0===o)return!1;var s=e[o],l=e[n];return void 0!==l&&void 0!==s&&!1!==(0,r.default)(l)&&!1!==(0,a.default)(s)}},wI44:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=l(n("2o5z")),r=l(n("QTq/")),a=l(n("jDUc")),o=l(n("me/f")),s=n("jH9d");function l(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;n=void 0===n||isNaN(n)?1:n;var l=(0,i.default)(e),u=(0,r.default)(e),c=(0,i.default)(t),d=(0,r.default)(t),h=Math.acos((0,o.default)(Math.sin((0,a.default)(c))*Math.sin((0,a.default)(l))+Math.cos((0,a.default)(c))*Math.cos((0,a.default)(l))*Math.cos((0,a.default)(u)-(0,a.default)(d))))*s.earthRadius;return Math.round(h/n)*n}},"z+Es":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){return/^NNE|NE|NNW|N$/.test(e)?"N":/^ENE|E|ESE|SE$/.test(e)?"E":/^SSE|S|SSW|SW$/.test(e)?"S":/^WSW|W|WNW|NW$/.test(e)?"W":void 0}},zUnb:function(i,r,o){"use strict";function l(e){return"function"==typeof e}o.r(r);var u=!1,p={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){var t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else u&&console.log("RxJS: Back to a better error behavior. Thank you. <3");u=e},get useDeprecatedSynchronousErrorHandling(){return u}};function y(e){setTimeout(function(){throw e},0)}var k={closed:!0,next:function(e){},error:function(e){if(p.useDeprecatedSynchronousErrorHandling)throw e;y(e)},complete:function(){}},C=Array.isArray||function(e){return e&&"number"==typeof e.length};function x(e){return null!==e&&"object"==typeof e}var S,A=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}(),O=((S=function(){function e(t){b(this,e),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return w(e,[{key:"unsubscribe",value:function(){var t;if(!this.closed){var n=this._parentOrParents,i=this._ctorUnsubscribe,r=this._unsubscribe,a=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(var o=0;o2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(i){return i.pipe(ae(function(n,i){return te(e(n,i)).pipe(q(function(e,r){return t(n,e,i,r)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new oe(e,n))})}var oe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;b(this,e),this.project=t,this.concurrent=n}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new se(e,this.project,this.concurrent))}}]),e}(),se=function(e){f(n,e);var t=m(n);function n(e,i){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return b(this,n),(r=t.call(this,e)).project=i,r.concurrent=a,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return w(n,[{key:"_next",value:function(e){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(ie),le=ae;function ue(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return ae(I,e)}function ce(e,t){return t?ee(e,t):new N(X(e))}function de(){for(var e=arguments.length,t=new Array(e),n=0;n1&&"number"==typeof t[t.length-1]&&(i=t.pop())):"number"==typeof a&&(i=t.pop()),null===r&&1===t.length&&t[0]instanceof N?t[0]:ue(i)(ce(t,r))}function he(){return function(e){return e.lift(new pe(e))}}var fe,pe=function(){function e(t){b(this,e),this.connectable=t}return w(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var i=new me(e,n),r=t.subscribe(i);return i.closed||(i.connection=n.connect()),r}}]),e}(),me=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this,e)).connectable=i,r}return w(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null}}]),n}(P),ge=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this)).source=e,r.subjectFactory=i,r._refCount=0,r._isComplete=!1,r}return w(n,[{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 O).add(this.source.subscribe(new ye(this.getSubject(),this))),e.closed&&(this._connection=null,e=O.EMPTY)),e}},{key:"refCount",value:function(){return he()(this)}}]),n}(N),ve={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(fe=ge.prototype)._subscribe},_isComplete:{value:fe._isComplete,writable:!0},getSubject:{value:fe.getSubject},connect:{value:fe.connect},refCount:{value:fe.refCount}},ye=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this,e)).connectable=i,r}return w(n,[{key:"_error",value:function(e){this._unsubscribe(),h(_(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),h(_(n.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()}}}]),n}(G);function _e(e,t){return function(n){var i;if(i="function"==typeof e?e:function(){return e},"function"==typeof t)return n.lift(new be(i,t));var r=Object.create(n,ve);return r.source=n,r.subjectFactory=i,r}}var be=function(){function e(t,n){b(this,e),this.subjectFactory=t,this.selector=n}return w(e,[{key:"call",value:function(e,t){var n=this.selector,i=this.subjectFactory(),r=n(i).subscribe(e);return r.add(t.subscribe(i)),r}}]),e}();function ke(){return new j}function we(){return function(e){return he()(_e(ke)(e))}}function Ce(e){for(var t in e)if(e[t]===Ce)return t;throw Error("Could not find renamed property on target object.")}function xe(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Se(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Se).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return"".concat(e.overriddenName);if(e.name)return"".concat(e.name);var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Ae(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var Oe=Ce({__forward_ref__:Ce});function Ee(e){return e.__forward_ref__=Ee,e.toString=function(){return Se(this())},e}function Te(e){return Pe(e)?e():e}function Pe(e){return"function"==typeof e&&e.hasOwnProperty(Oe)&&e.__forward_ref__===Ee}var De=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this,function(e,t){return"".concat(e?"NG0".concat(e,": "):"").concat(t)}(e,i))).code=e,r}return n}(c(Error));function Me(e){return"string"==typeof e?e:null==e?"":String(e)}function Ie(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Me(e)}function Re(e,t){var n=t?" in ".concat(t):"";throw new De("201","No provider for ".concat(Ie(e)," found").concat(n))}function Le(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}var Fe=Le;function Ne(e){return{providers:e.providers||[],imports:e.imports||[]}}function Ve(e){return Be(e,Ge)||Be(e,Ue)}function Be(e,t){return e.hasOwnProperty(t)?e[t]:null}function He(e){return e&&(e.hasOwnProperty(je)||e.hasOwnProperty(We))?e[je]:null}var ze,Ge=Ce({"\u0275prov":Ce}),je=Ce({"\u0275inj":Ce}),Ue=Ce({ngInjectableDef:Ce}),We=Ce({ngInjectorDef:Ce}),qe=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 Ye(e){var t=ze;return ze=e,t}function Qe(e,t,n){var i=Ve(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&qe.Optional?null:void 0!==t?t:void Re(Se(e),"Injector")}function Xe(e){return{toString:e}.toString()}var $e=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),Ke=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),Ze="undefined"!=typeof globalThis&&globalThis,Je="undefined"!=typeof window&&window,et="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,tt="undefined"!=typeof global&&global,nt=Ze||tt||Je||et,it={},rt=[],at=[],ot=Ce({"\u0275cmp":Ce}),st=Ce({"\u0275dir":Ce}),lt=Ce({"\u0275pipe":Ce}),ut=Ce({"\u0275mod":Ce}),ct=Ce({"\u0275loc":Ce}),dt=Ce({"\u0275fac":Ce}),ht=Ce({__NG_ELEMENT_ID__:Ce}),ft=0;function pt(e){return Xe(function(){var t={},n={type:e.type,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:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===$e.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||at,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Ke.Emulated,id:"c",styles:e.styles||at,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,r=e.features,a=e.pipes;return n.id+=ft++,n.inputs=_t(e.inputs,t),n.outputs=_t(e.outputs),r&&r.forEach(function(e){return e(n)}),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map(mt)}:null,n.pipeDefs=a?function(){return("function"==typeof a?a():a).map(gt)}:null,n})}function mt(e){return wt(e)||function(e){return e[st]||null}(e)}function gt(e){return function(e){return e[lt]||null}(e)}var vt={};function yt(e){var t={type:e.type,bootstrap:e.bootstrap||at,declarations:e.declarations||at,imports:e.imports||at,exports:e.exports||at,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&Xe(function(){vt[e.id]=e.type}),t}function _t(e,t){if(null==e)return it;var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i],a=r;Array.isArray(r)&&(a=r[1],r=r[0]),n[r]=i,t&&(t[r]=a)}return n}var bt=pt;function kt(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function wt(e){return e[ot]||null}function Ct(e,t){var n=e[ut]||null;if(!n&&!0===t)throw new Error("Type ".concat(Se(e)," does not have '\u0275mod' property."));return n}function xt(e){return Array.isArray(e)&&"object"==typeof e[1]}function St(e){return Array.isArray(e)&&!0===e[1]}function At(e){return 0!=(8&e.flags)}function Ot(e){return 2==(2&e.flags)}function Et(e){return 1==(1&e.flags)}function Tt(e){return null!==e.template}function Pt(e,t){return e.hasOwnProperty(dt)?e[dt]:null}var Dt,Mt=function(){function e(t,n,i){b(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=i}return w(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function It(){return Rt}function Rt(e){return e.type.prototype.ngOnChanges&&(e.setInput=Ft),Lt}function Lt(){var e=Nt(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===it)e.previous=t;else for(var i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function Ft(e,t,n,i){var r=Nt(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:it,current:null}),a=r.current||(r.current={}),o=r.previous,s=this.declaredInputs[n],l=o[s];a[s]=new Mt(l&&l.currentValue,t,o===it),e[i]=t}function Nt(e){return e.__ngSimpleChanges__||null}function Vt(){return void 0!==Dt?Dt:"undefined"!=typeof document?document:void 0}function Bt(e){return!!e.listen}It.ngInherit=!0;var Ht={createRenderer:function(e,t){return Vt()}};function zt(e){for(;Array.isArray(e);)e=e[0];return e}function Gt(e,t){return zt(t[e])}function jt(e,t){return zt(t[e.index])}function Ut(e,t){return e.data[t]}function Wt(e,t){return e[t]}function qt(e,t){var n=t[e];return xt(n)?n:n[0]}function Yt(e){var t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Qt(e){return 4==(4&e[2])}function Xt(e){return 128==(128&e[2])}function $t(e,t){return null==t?null:e[t]}function Kt(e){e[18]=0}function Zt(e,t){e[5]+=t;for(var n=e,i=e[3];null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}var Jt={lFrame:xn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function en(){return Jt.bindingsEnabled}function tn(){return Jt.lFrame.lView}function nn(){return Jt.lFrame.tView}function rn(e){Jt.lFrame.contextLView=e}function an(){for(var e=on();null!==e&&64===e.type;)e=e.parent;return e}function on(){return Jt.lFrame.currentTNode}function sn(e,t){var n=Jt.lFrame;n.currentTNode=e,n.isParent=t}function ln(){return Jt.lFrame.isParent}function un(){Jt.lFrame.isParent=!1}function cn(){return Jt.isInCheckNoChangesMode}function dn(e){Jt.isInCheckNoChangesMode=e}function hn(){var e=Jt.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function fn(){return Jt.lFrame.bindingIndex}function pn(){return Jt.lFrame.bindingIndex++}function mn(e){var t=Jt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function gn(e){Jt.lFrame.currentDirectiveIndex=e}function vn(e){var t=Jt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function yn(){return Jt.lFrame.currentQueryIndex}function _n(e){Jt.lFrame.currentQueryIndex=e}function bn(e){var t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function kn(e,t,n){if(n&qe.SkipSelf){for(var i=t,r=e;!(null!==(i=i.parent)||n&qe.Host||(i=bn(r),null===i)||(r=r[15],10&i.type)););if(null===i)return!1;t=i,e=r}var a=Jt.lFrame=Cn();return a.currentTNode=t,a.lView=e,!0}function wn(e){var t=Cn(),n=e[1];Jt.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Cn(){var e=Jt.lFrame,t=null===e?null:e.child;return null===t?xn(e):t}function xn(e){var t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Sn(){var e=Jt.lFrame;return Jt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var An=Sn;function On(){var e=Sn();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function En(){return Jt.lFrame.selectedIndex}function Tn(e){Jt.lFrame.selectedIndex=e}function Pn(){var e=Jt.lFrame;return Ut(e.tView,e.selectedIndex)}function Dn(){Jt.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function Mn(){Jt.lFrame.currentNamespace=null}function In(e,t){for(var n=t.directiveStart,i=t.directiveEnd;n=i)break}else t[s]<0&&(e[18]+=65536),(o>11>16&&(3&e[2])===t&&(e[2]+=2048,a.call(o)):a.call(o)}var Bn=function e(t,n,i){b(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i};function Hn(e,t,n){for(var i=Bt(e),r=0;rt){o=a-1;break}}}for(;a>16,i=t;n>0;)i=i[15],n--;return i}var Qn=!0;function Xn(e){var t=Qn;return Qn=e,t}var $n=0;function Kn(e,t){var n=Jn(e,t);if(-1!==n)return n;var i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,Zn(i.data,e),Zn(t,null),Zn(i.blueprint,null));var r=ei(e,t),a=e.injectorIndex;if(Wn(r))for(var o=qn(r),s=Yn(r,t),l=s[1].data,u=0;u<8;u++)t[a+u]=s[o+u]|l[o+u];return t[a+8]=r,a}function Zn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Jn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function ei(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=0,i=null,r=t;null!==r;){var a=r[1],o=a.type;if(null===(i=2===o?a.declTNode:1===o?r[6]:null))return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function ti(e,t,n){!function(e,t,n){var i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(ht)&&(i=n[ht]),null==i&&(i=n[ht]=$n++);var r=255&i;t.data[e+(r>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:qe.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==e){var a=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(ht)?e[ht]:void 0;return"number"==typeof t?t>=0?255&t:oi:t}(n);if("function"==typeof a){if(!kn(t,e,i))return i&qe.Host?ni(r,n,i):ii(t,n,i,r);try{var o=a();if(null!=o||i&qe.Optional)return o;Re(n)}finally{An()}}else if("number"==typeof a){var s=null,l=Jn(e,t),u=-1,c=i&qe.Host?t[16][6]:null;for((-1===l||i&qe.SkipSelf)&&(-1!==(u=-1===l?ei(e,t):t[l+8])&&di(i,!1)?(s=t[1],l=qn(u),t=Yn(u,t)):l=-1);-1!==l;){var d=t[1];if(ci(a,l,d.data)){var h=si(l,t,n,s,i,c);if(h!==ai)return h}-1!==(u=t[l+8])&&di(i,t[1].data[l+8]===c)&&ci(a,l,t)?(s=d,l=qn(u),t=Yn(u,t)):l=-1}}}return ii(t,n,i,r)}var ai={};function oi(){return new hi(an(),tn())}function si(e,t,n,i,r,a){var o=t[1],s=o.data[e+8],l=li(s,o,n,null==i?Ot(s)&&Qn:i!=o&&0!=(3&s.type),r&qe.Host&&a===s);return null!==l?ui(t,o,l,s):ai}function li(e,t,n,i,r){for(var a=e.providerIndexes,o=t.data,s=1048575&a,l=e.directiveStart,u=a>>20,c=r?s+u:e.directiveEnd,d=i?s:s+u;d=l&&h.type===n)return d}if(r){var f=o[l];if(f&&Tt(f)&&f.type===n)return l}return null}function ui(e,t,n,i){var r=e[n],a=t.data;if(r instanceof Bn){var o=r;o.resolving&&function(e,t){throw new De("200","Circular dependency in DI detected for ".concat(e))}(Ie(a[n]));var s=Xn(o.canSeeViewProviders);o.resolving=!0;var l=o.injectImpl?Ye(o.injectImpl):null;kn(e,i,qe.Default);try{r=e[n]=o.factory(void 0,a,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){var i=t.type.prototype,r=i.ngOnChanges,a=i.ngOnInit,o=i.ngDoCheck;if(r){var s=Rt(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}a&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,a),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,a[n],t)}finally{null!==l&&Ye(l),Xn(s),o.resolving=!1,An()}}return r}function ci(e,t,n){return!!(n[t+(e>>5)]&1<=e.length?e.push(n):e.splice(t,0,n)}function Ai(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Oi(e,t){for(var n=[],i=0;i=0?e[1|i]=n:function(e,t,n,i){var r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i=~i,t,n),i}function Ti(e,t){var n=Pi(e,t);if(n>=0)return e[1|n]}function Pi(e,t){return function(e,t,n){for(var i=0,r=e.length>>1;r!==i;){var a=i+(r-i>>1),o=e[a<<1];if(t===o)return a<<1;o>t?r=a:i=a+1}return~(r<<1)}(e,t)}var Di,Mi={},Ii=/\n/gm,Ri=Ce({provide:String,useValue:Ce});function Li(e){var t=Di;return Di=e,t}function Fi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qe.Default;if(void 0===Di)throw new Error("inject() must be called from an injection context");return null===Di?Qe(e,void 0,t):Di.get(e,t&qe.Optional?null:void 0,t)}function Ni(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qe.Default;return(ze||Fi)(Te(e),t)}var Vi=Ni;function Bi(e){for(var t=[],n=0;n"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();vr.hasOwnProperty(t)&&!fr.hasOwnProperty(t)&&(this.buf.push(""))}},{key:"chars",value:function(e){this.buf.push(Sr(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}(),Cr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,xr=/([^\#-~ |!])/g;function Sr(e){return e.replace(/&/g,"&").replace(Cr,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(xr,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}function Ar(e,t){var n=null;try{hr=hr||function(e){var t=new or(e);return function(){try{return!!(new window.DOMParser).parseFromString(qi(""),"text/html")}catch(e){return!1}}()?new ar(t):t}(e);var i=t?String(t):"";n=hr.getInertBodyElement(i);var r=5,a=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=a,a=n.innerHTML,n=hr.getInertBodyElement(i)}while(i!==a);return qi((new wr).sanitizeChildren(Or(n)||n))}finally{if(n)for(var o=Or(n)||n;o.firstChild;)o.removeChild(o.firstChild)}}function Or(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Er=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function Tr(e){var t=Mr();return t?Qi(t.sanitize(Er.HTML,e)||""):ir(e,"HTML")?Qi(nr(e)):Ar(Vt(),Me(e))}function Pr(e){var t=Mr();return t?t.sanitize(Er.URL,e)||"":ir(e,"URL")?nr(e):ur(Me(e))}function Dr(e){var t=Mr();if(t)return Xi(t.sanitize(Er.RESOURCE_URL,e)||"");if(ir(e,"ResourceURL"))return Xi(nr(e));throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)")}function Mr(){var e=tn();return e&&e[12]}function Ir(e){return e.ngDebugContext}function Rr(e){return e.ngOriginalError}function Lr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i0&&(e[i-1][4]=r[4]);var o=Ai(e,10+t);da(r[1],n=r,n[11],2,null,null),n[0]=null,n[6]=null;var s=o[19];null!==s&&s.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function Kr(e,t){if(!(256&t[2])){var n=t[11];Bt(n)&&n.destroyNode&&da(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return Zr(e[1],e);for(;t;){var n=null;if(xt(t))n=t[13];else{var i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)xt(t)&&Zr(t[1],t),t=t[3];null===t&&(t=e),xt(t)&&Zr(t[1],t),n=t&&t[4]}t=n}}(t)}}function Zr(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 i=0;i=0?i[r=u]():i[r=-u].unsubscribe(),a+=2}else{var c=i[r=n[a+1]];n[a].call(c)}if(null!==i){for(var d=r+1;da?"":r[c+1].toLowerCase();var h=8&i?d:null;if(h&&-1!==ma(h,u,0)||2&i&&u!==d){if(ba(i))return!1;o=!0}}}}else{if(!o&&!ba(i)&&!ba(l))return!1;if(o&&ba(l))continue;o=!1,i=l|1&i}}return ba(i)||o}function ba(e){return 0==(1&e)}function ka(e,t,n,i){if(null===t)return-1;var r=0;if(i||!n){for(var a=!1;r-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],i=0;i0?'="'+s+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""===r||ba(o)||(t+=xa(a,r),r=""),i=o,a=a||!ba(i);n++}return""!==r&&(t+=xa(a,r)),t}var Aa={};function Oa(e){Ea(nn(),tn(),En()+e,cn())}function Ea(e,t,n,i){if(!i)if(3==(3&t[2])){var r=e.preOrderCheckHooks;null!==r&&Rn(t,r,n)}else{var a=e.preOrderHooks;null!==a&&Ln(t,a,0,n)}Tn(n)}function Ta(e,t){return e<<17|t<<2}function Pa(e){return e>>17&32767}function Da(e){return 2|e}function Ma(e){return(131068&e)>>2}function Ia(e,t){return-131069&e|t<<2}function Ra(e){return 1|e}function La(e,t){var n=e.contentQueries;if(null!==n)for(var i=0;i20&&Ea(e,t,20,cn()),n(i,r)}finally{Tn(a)}}function ja(e,t,n){if(At(t))for(var i=t.directiveEnd,r=t.directiveStart;r2&&void 0!==arguments[2]?arguments[2]:jt,i=t.localNames;if(null!==i)for(var r=t.index+1,a=0;a0;){var n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=l&&s.push(l),s.push(i,r,o)}}function Ja(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function eo(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function to(e,t,n){if(n){if(t.exportAs)for(var i=0;i0&&uo(n)}}function uo(e){for(var t=Ur(e);null!==t;t=Wr(t))for(var n=10;n0&&uo(i)}var a=e[1].components;if(null!==a)for(var o=0;o0&&uo(s)}}function co(e,t){var n=qt(t,e),i=n[1];!function(e,t){for(var n=t.length;n1&&void 0!==arguments[1]?arguments[1]:Mi;if(t===Mi){var n=new Error("NullInjectorError: No provider for ".concat(Se(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),Eo=new _i("Set Injector scope."),To={},Po={},Do=[];function Mo(){return void 0===So&&(So=new Oo),So}function Io(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return new Ro(e,n,t||Mo(),i)}var Ro=function(){function e(t,n,i){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;b(this,e),this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var o=[];n&&xi(n,function(e){return r.processProvider(e,t,n)}),xi([t],function(e){return r.processInjectorType(e,[],o)}),this.records.set(Ao,No(void 0,this));var s=this.records.get(Eo);this.scope=null!=s?s.value:null,this.source=a||("object"==typeof t?null:Se(t))}return w(e,[{key:"destroyed",get:function(){return this._destroyed}},{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]:Mi,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:qe.Default;this.assertNotDestroyed();var i,r=Li(this);try{if(!(n&qe.SkipSelf)){var a=this.records.get(e);if(void 0===a){var o=("function"==typeof(i=e)||"object"==typeof i&&i instanceof _i)&&Ve(e);a=o&&this.injectableDefInScope(o)?No(Lo(e),To):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(n&qe.Self?Mo():this.parent).get(e,t=n&qe.Optional&&t===Mi?null:t)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(Se(e)),r)throw s;return function(e,t,n,i){var r=e.ngTempTokenPath;throw t.__source&&r.unshift(t.__source),e.message=function(e,t,n){var i=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 r=Se(t);if(Array.isArray(t))r=t.map(Se).join(" -> ");else if("object"==typeof t){var a=[];for(var o in t)if(t.hasOwnProperty(o)){var s=t[o];a.push(o+":"+("string"==typeof s?JSON.stringify(s):Se(s)))}r="{".concat(a.join(", "),"}")}return"".concat(n).concat(i?"("+i+")":"","[").concat(r,"]: ").concat(e.replace(Ii,"\n "))}("\n"+e.message,r,"R3InjectorError",i),e.ngTokenPath=r,e.ngTempTokenPath=null,e}(s,e,0,this.source)}throw s}finally{Li(r)}}},{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(Se(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 i=this;if(!(e=Te(e)))return!1;var r=He(e),a=null==r&&e.ngModule||void 0,o=void 0===a?e:a,s=-1!==n.indexOf(o);if(void 0!==a&&(r=He(a)),null==r)return!1;if(null!=r.imports&&!s){var l;n.push(o);try{xi(r.imports,function(e){i.processInjectorType(e,t,n)&&(void 0===l&&(l=[]),l.push(e))})}finally{}if(void 0!==l)for(var u=function(e){var t=l[e],n=t.ngModule,r=t.providers;xi(r,function(e){return i.processProvider(e,n,r||Do)})},c=0;c0){var n=Oi(t,"?");throw new Error("Can't resolve all parameters for ".concat(Se(e),": (").concat(n.join(", "),")."))}var i=function(e){var t=e&&(e[Ge]||e[Ue]);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.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "').concat(n,'" class.')),t}return null}(e);return null!==i?function(){return i.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function Fo(e,t,n){var i,r;if(Bo(e)){var o=Te(e);return Pt(o)||Lo(o)}if(Vo(e))i=function(){return Te(e.useValue)};else if((r=e)&&r.useFactory)i=function(){return e.useFactory.apply(e,a(Bi(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))i=function(){return Ni(Te(e.useExisting))};else{var s=Te(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Pt(s)||Lo(s);i=function(){return d(s,a(Bi(e.deps)))}}return i}function No(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function Vo(e){return null!==e&&"object"==typeof e&&Ri in e}function Bo(e){return"function"==typeof e}var Ho=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,i=arguments.length>3?arguments[3]:void 0,r=Io(e,t,n,i);return r._resolveInjectorDefTypes(),r}({name:n},t,e,n)},zo=function(){var e=function(){function e(){b(this,e)}return w(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?Ho(e,t,""):Ho(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=Mi,e.NULL=new Oo,e.\u0275prov=Le({token:e,providedIn:"any",factory:function(){return Ni(Ao)}}),e.__NG_ELEMENT_ID__=-1,e}();function Go(e,t){In(Yt(e)[1],an())}function jo(e){for(var t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0,i=[e];t;){var r=void 0;if(Tt(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){i.push(r);var a=e;a.inputs=Uo(e.inputs),a.declaredInputs=Uo(e.declaredInputs),a.outputs=Uo(e.outputs);var o=r.hostBindings;o&&Yo(e,o);var s=r.viewQuery,l=r.contentQueries;if(s&&Wo(e,s),l&&qo(e,l),xe(e.inputs,r.inputs),xe(e.declaredInputs,r.declaredInputs),xe(e.outputs,r.outputs),Tt(r)&&r.data.animation){var u=e.data;u.animation=(u.animation||[]).concat(r.data.animation)}}var c=r.features;if(c)for(var d=0;d=0;i--){var r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=jn(r.hostAttrs,n=jn(n,r.hostAttrs))}}(i)}function Uo(e){return e===it?{}:e===at?[]:e}function Wo(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,i){t(e,i),n(e,i)}:t}function qo(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,i,r){t(e,i,r),n(e,i,r)}:t}function Yo(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,i){t(e,i),n(e,i)}:t}var Qo=null;function Xo(){if(!Qo){var e=nt.Symbol;if(e&&e.iterator)Qo=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n1&&void 0!==arguments[1]?arguments[1]:qe.Default,n=tn();return null===n?Ni(e,t):ri(an(),n,Te(e),t)}function us(e,t,n){var i=tn();return es(i,pn(),t)&&$a(nn(),Pn(),i,e,t,i[11],n,!1),us}function cs(e,t,n,i,r){var a=r?"class":"style";wo(e,n,t.inputs[a],a,i)}function ds(e,t,n,i){var r=tn(),a=nn(),o=20+e,s=r[11],l=r[o]=Qr(s,t,Jt.lFrame.currentNamespace),u=a.firstCreatePass?function(e,t,n,i,r,a,o){var s=t.consts,l=Na(t,e,2,r,$t(s,a));return Ka(t,n,l,$t(s,o)),null!==l.attrs&&xo(l,l.attrs,!1),null!==l.mergedAttrs&&xo(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(o,a,r,0,t,n,i):a.data[o];sn(u,!0);var c=u.mergedAttrs;null!==c&&Hn(s,l,c);var d=u.classes;null!==d&&pa(s,l,d);var h=u.styles;null!==h&&fa(s,l,h),64!=(64&u.flags)&&oa(a,r,l,u),0===Jt.lFrame.elementDepthCount&&Nr(l,r),Jt.lFrame.elementDepthCount++,Et(u)&&(Ua(a,r,u),ja(a,u,r)),null!==i&&Wa(r,u)}function hs(){var e=an();ln()?un():sn(e=e.parent,!1);var t=e;Jt.lFrame.elementDepthCount--;var n=nn();n.firstCreatePass&&(In(n,e),At(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&cs(n,t,tn(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&cs(n,t,tn(),t.stylesWithoutHost,!1)}function fs(e,t,n,i){ds(e,t,n,i),hs()}function ps(e,t,n){var i=tn(),r=nn(),a=e+20,o=r.firstCreatePass?function(e,t,n,i,r){var a=t.consts,o=$t(a,i),s=Na(t,e,8,"ng-container",o);return null!==o&&xo(s,o,!0),Ka(t,n,s,$t(a,r)),null!==t.queries&&t.queries.elementStart(t,s),s}(a,r,i,t,n):r.data[a];sn(o,!0);var s=i[a]=i[11].createComment("");oa(r,i,s,o),Nr(s,i),Et(o)&&(Ua(r,i,o),ja(r,o,i)),null!=n&&Wa(i,o)}function ms(){var e=an(),t=nn();ln()?un():sn(e=e.parent,!1),t.firstCreatePass&&(In(t,e),At(e)&&t.queries.elementEnd(e))}function gs(e,t,n){ps(e,t,n),ms()}function vs(){return tn()}function ys(e){return!!e&&"function"==typeof e.then}function _s(e){return!!e&&"function"==typeof e.subscribe}var bs=_s;function ks(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=tn(),a=nn(),o=an();return Cs(a,r,r[11],o,e,t,n,i),ks}function ws(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=an(),a=tn(),o=nn();return Cs(o,a,bo(vn(o.data),r,a),r,e,t,n,i),ws}function Cs(e,t,n,i,r,a){var o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,l=Et(i),u=e.firstCreatePass&&_o(e),c=yo(t),d=!0;if(3&i.type){var h=jt(i,t),f=s?s(h):it,p=f.target||h,m=c.length,g=s?function(e){return s(zt(e[i.index])).target}:i.index;if(Bt(n)){var v=null;if(!s&&l&&(v=function(e,t,n,i){var r=e.cleanup;if(null!=r)for(var a=0;al?s[l]:null}"string"==typeof o&&(a+=2)}return null}(e,t,r,i.index)),null!==v)(v.__ngLastListenerFn__||v).__ngNextListenerFn__=a,v.__ngLastListenerFn__=a,d=!1;else{a=Ss(i,t,a,!1);var y=n.listen(f.name||p,r,a);c.push(a,y),u&&u.push(r,g,m,m+1)}}else a=Ss(i,t,a,!0),p.addEventListener(r,a,o),c.push(a),u&&u.push(r,g,m,o)}else a=Ss(i,t,a,!1);var _,b=i.outputs;if(d&&null!==b&&(_=b[r])){var k=_.length;if(k)for(var w=0;w0&&void 0!==arguments[0]?arguments[0]:1;return function(e){return(Jt.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,Jt.lFrame.contextLView))[8]}(e)}function Os(e,t){for(var n=null,i=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),r=0;r1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=tn(),r=nn(),a=Na(r,20+e,16,null,n||null);null===a.projection&&(a.projection=t),un(),64!=(64&a.flags)&&function(e,t,n){ha(t[11],0,t,n,Jr(e,n,t),ra(n.parent||t[6],n,t))}(r,i,a)}function Ps(e,t,n){return Ds(e,"",t,"",n),Ps}function Ds(e,t,n,i,r){var a=tn(),o=rs(a,t,n,i);return o!==Aa&&$a(nn(),Pn(),a,e,o,a[11],r,!1),Ds}function Ms(e,t,n,i,r,a,o){var s=tn(),l=as(s,t,n,i,r,a);return l!==Aa&&$a(nn(),Pn(),s,e,l,s[11],o,!1),Ms}function Is(e,t,n,i,r){for(var a=e[n+1],o=null===t,s=i?Pa(a):Ma(a),l=!1;0!==s&&(!1===l||o);){var u=e[s+1];Rs(e[s],t)&&(l=!0,e[s+1]=i?Ra(u):Da(u)),s=i?Pa(u):Ma(u)}l&&(e[n+1]=i?Da(a):Ra(a))}function Rs(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Pi(e,t)>=0}var Ls={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Fs(e){return e.substring(Ls.key,Ls.keyEnd)}function Ns(e,t){var n=Ls.textEnd;return n===t?-1:(t=Ls.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,Ls.key=t,n),Vs(e,t,n))}function Vs(e,t,n){for(;t=0;n=Ns(t,n))Ei(e,Fs(t),!0)}function js(e,t,n,i){var r=tn(),a=nn(),o=mn(2);a.firstUpdatePass&&qs(a,e,o,i),t!==Aa&&es(r,o,t)&&Xs(a,a.data[En()],r,r[11],e,r[o+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Se(nr(e)))),e}(t,n),i,o)}function Us(e,t,n,i){var r=nn(),a=mn(2);r.firstUpdatePass&&qs(r,null,a,i);var o=tn();if(n!==Aa&&es(o,a,n)){var s=r.data[En()];if(Zs(s,i)&&!Ws(r,a)){var l=i?s.classesWithoutHost:s.stylesWithoutHost;null!==l&&(n=Ae(l,n||"")),cs(r,s,o,n,i)}else!function(e,t,n,i,r,a,o,s){r===Aa&&(r=rt);for(var l=0,u=0,c=0=e.expandoStartIndex}function qs(e,t,n,i){var r=e.data;if(null===r[n+1]){var a=r[En()],o=Ws(e,n);Zs(a,i)&&null===t&&!o&&(t=!1),t=function(e,t,n,i){var r=vn(e),a=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=Qs(n=Ys(null,e,t,n,i),t.attrs,i),a=null);else{var o=t.directiveStylingLast;if(-1===o||e[o]!==r)if(n=Ys(r,e,t,n,i),null===a){var s=function(e,t,n){var i=n?t.classBindings:t.styleBindings;if(0!==Ma(i))return e[Pa(i)]}(e,t,i);void 0!==s&&Array.isArray(s)&&function(e,t,n,i){e[Pa(n?t.classBindings:t.styleBindings)]=i}(e,t,i,s=Qs(s=Ys(null,e,t,s[1],i),t.attrs,i))}else a=function(e,t,n){for(var i,r=t.directiveEnd,a=1+t.directiveStylingLast;a0)&&(c=!0)}else u=n;if(r)if(0!==l){var h=Pa(e[s+1]);e[i+1]=Ta(h,s),0!==h&&(e[h+1]=Ia(e[h+1],i)),e[s+1]=131071&e[s+1]|i<<17}else e[i+1]=Ta(s,0),0!==s&&(e[s+1]=Ia(e[s+1],i)),s=i;else e[i+1]=Ta(l,0),0===s?s=i:e[l+1]=Ia(e[l+1],i),l=i;c&&(e[i+1]=Da(e[i+1])),Is(e,u,i,!0),Is(e,u,i,!1),function(e,t,n,i,r){var a=r?e.residualClasses:e.residualStyles;null!=a&&"string"==typeof t&&Pi(a,t)>=0&&(n[i+1]=Ra(n[i+1]))}(t,u,e,i,a),o=Ta(s,l),a?t.classBindings=o:t.styleBindings=o}(r,a,t,n,o,i)}}function Ys(e,t,n,i,r){var a=null,o=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s0;){var l=e[r],u=Array.isArray(l),c=u?l[1]:l,d=null===c,h=n[r+1];h===Aa&&(h=d?rt:void 0);var f=d?Ti(h,i):c===i?h:void 0;if(u&&!Ks(f)&&(f=Ti(l,i)),Ks(f)&&(o=f,s))return o;var p=e[r+1];r=s?Pa(p):Ma(p)}if(null!==t){var m=a?t.residualClasses:t.residualStyles;null!=m&&(o=Ti(m,i))}return o}function Ks(e){return void 0!==e}function Zs(e,t){return 0!=(e.flags&(t?16:32))}function Js(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=tn(),i=nn(),r=e+20,a=i.firstCreatePass?Na(i,r,1,t,null):i.data[r],o=n[r]=function(e,t){return Bt(e)?e.createText(t):e.createTextNode(t)}(n[11],t);oa(i,n,o,a),sn(a,!1)}function el(e){return tl("",e,""),el}function tl(e,t,n){var i=tn(),r=rs(i,e,t,n);return r!==Aa&&Co(i,En(),r),tl}function nl(e,t,n,i,r){var a=tn(),o=as(a,e,t,n,i,r);return o!==Aa&&Co(a,En(),o),nl}function il(e,t,n,i,r,a,o){var s=tn(),l=function(e,t,n,i,r,a,o,s){var l=ns(e,fn(),n,r,o);return mn(3),l?t+Me(n)+i+Me(r)+a+Me(o)+s:Aa}(s,e,t,n,i,r,a,o);return l!==Aa&&Co(s,En(),l),il}function rl(e,t,n){Us(Ei,Gs,rs(tn(),e,t,n),!0)}function al(e,t,n){var i=tn();return es(i,pn(),t)&&$a(nn(),Pn(),i,e,t,i[11],n,!0),al}function ol(e,t,n){var i=tn();if(es(i,pn(),t)){var r=nn(),a=Pn();$a(r,a,i,e,t,bo(vn(r.data),a,i),n,!0)}return ol}var sl=["en",[["a","p"],["AM","PM"],void 0],[["AM","PM"],void 0,void 0],[["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"]],void 0,[["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"]],void 0,[["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}",void 0,"{1} 'at' {0}",void 0],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],ll={};function ul(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=cl(t);if(n)return n;var i=t.split("-")[0];if(n=cl(i))return n;if("en"===i)return sl;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}function cl(e){return e in ll||(ll[e]=nt.ng&&nt.ng.common&&nt.ng.common.locales&&nt.ng.common.locales[e]),ll[e]}var dl=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({});function hl(e){var t;null==(t=e)&&function(e,t,n,i){throw new Error("ASSERTION ERROR: ".concat("Expected localeId to be defined"," [Expected=> null != ").concat(t," <=Actual]"))}(0,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}function fl(e,t,n,i,r){if(e=Te(e),Array.isArray(e))for(var a=0;a>20;if(Bo(e)||!e.multi){var p=new Bn(u,r,ls),m=gl(l,t,r?d:d+f,h);-1===m?(ti(Kn(c,s),o,l),pl(o,e,t.length),t.push(l),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(p),s.push(p)):(n[m]=p,s[m]=p)}else{var g=gl(l,t,d+f,h),v=gl(l,t,d,d+f),y=g>=0&&n[g],_=v>=0&&n[v];if(r&&!_||!r&&!y){ti(Kn(c,s),o,l);var b=function(e,t,n,i,r){var a=new Bn(e,n,ls);return a.multi=[],a.index=t,a.componentProviders=0,ml(a,r,i&&!n),a}(r?yl:vl,n.length,r,i,u);!r&&_&&(n[v].providerFactory=b),pl(o,e,t.length,0),t.push(l),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(b),s.push(b)}else pl(o,e,g>-1?g:v,ml(n[r?v:g],u,!r&&i));!r&&i&&_&&n[v].componentProviders++}}}function pl(e,t,n,i){var r=Bo(t);if(r||t.useClass){var a=(t.useClass||t).prototype.ngOnDestroy;if(a){var o=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){var s=o.indexOf(n);-1===s?o.push(n,[i,a]):o[s+1].push(i,a)}else o.push(n,a)}}}function ml(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function gl(e,t,n,i){for(var r=n;r1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,i){return function(e,t,n){var i=nn();if(i.firstCreatePass){var r=Tt(e);fl(n,i.data,i.blueprint,r,!0),fl(t,i.data,i.blueprint,r,!1)}}(n,i?i(e):e,t)}}}var kl=function e(){b(this,e)},wl=function(){function e(){b(this,e)}return w(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(Se(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),Cl=function(){var e=function e(){b(this,e)};return e.NULL=new wl,e}();function xl(){}function Sl(e,t){return new Ol(jt(e,t))}var Al=function(){return Sl(an(),tn())},Ol=function(){var e=function e(t){b(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=Al,e}();function El(e){return e instanceof Ol?e.nativeElement:e}var Tl=function e(){b(this,e)},Pl=function(){var e=function e(){b(this,e)};return e.__NG_ELEMENT_ID__=function(){return Dl()},e}(),Dl=function(){var e=tn(),t=qt(an().index,e);return function(e){return e[11]}(xt(t)?t:e)},Ml=function(){var e=function e(){b(this,e)};return e.\u0275prov=Le({token:e,providedIn:"root",factory:function(){return null}}),e}(),Il=function e(t){b(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},Rl=new Il("11.2.8"),Ll=function(){function e(){b(this,e)}return w(e,[{key:"supports",value:function(e){return Ko(e)}},{key:"create",value:function(e){return new Nl(e)}}]),e}(),Fl=function(e,t){return t},Nl=function(){function e(t){b(this,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=t||Fl}return w(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,i=0,r=null;t||n;){var a=!n||t&&t.currentIndex4&&void 0!==arguments[4]&&arguments[4];null!==n;){var o=t[n.index];if(null!==o&&i.push(zt(o)),St(o))for(var s=10;s-1&&($r(e,n),Ai(t,n))}this._attachedToViewContainer=!1}Kr(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){Qa(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){fo(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){po(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){dn(!0);try{po(e,t,n)}finally{dn(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,da(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}]),e}(),Kl=function(e){f(n,e);var t=m(n);function n(e){var i;return b(this,n),(i=t.call(this,e))._view=e,i}return w(n,[{key:"detectChanges",value:function(){mo(this._view)}},{key:"checkNoChanges",value:function(){!function(e){dn(!0);try{mo(e)}finally{dn(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}($l),Zl=eu,Jl=function(){var e=function e(){b(this,e)};return e.__NG_ELEMENT_ID__=Zl,e.__ChangeDetectorRef__=!0,e}();function eu(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(e,t,n){if(!n&&Ot(e)){var i=qt(e.index,t);return new $l(i,i)}return 47&e.type?new $l(t[16],t):null}(an(),tn(),e)}var tu=[new Gl],nu=new ql([new Ll]),iu=new Ql(tu),ru=function(){return su(an(),tn())},au=function(){var e=function e(){b(this,e)};return e.__NG_ELEMENT_ID__=ru,e}(),ou=function(e){f(n,e);var t=m(n);function n(e,i,r){var a;return b(this,n),(a=t.call(this))._declarationLView=e,a._declarationTContainer=i,a.elementRef=r,a}return w(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=Fa(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(t)),Ba(t,n,e),new $l(n)}}]),n}(au);function su(e,t){return 4&e.type?new ou(t,e,Sl(e,t)):null}var lu=function e(){b(this,e)},uu=function e(){b(this,e)},cu=function(){return mu(an(),tn())},du=function(){var e=function e(){b(this,e)};return e.__NG_ELEMENT_ID__=cu,e}(),hu=function(e){f(n,e);var t=m(n);function n(e,i,r){var a;return b(this,n),(a=t.call(this))._lContainer=e,a._hostTNode=i,a._hostLView=r,a}return w(n,[{key:"element",get:function(){return Sl(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new hi(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var e=ei(this._hostTNode,this._hostLView);if(Wn(e)){var t=Yn(e,this._hostLView),n=qn(e);return new hi(t[1].data[n+8],t)}return new hi(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){var t=fu(this._lContainer);return null!==t&&t[e]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(e,t,n){var i=e.createEmbeddedView(t||{});return this.insert(i,n),i}},{key:"createComponent",value:function(e,t,n,i,r){var a=n||this.parentInjector;if(!r&&null==e.ngModule&&a){var o=a.get(lu,null);o&&(r=o)}var s=e.create(a,i,void 0,r);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var i=e._lView,r=i[1];if(St(i[3])){var a=this.indexOf(e);if(-1!==a)this.detach(a);else{var o=i[3],s=new n(o,o[6],o[3]);s.detach(s.indexOf(e))}}var l=this._adjustIndex(t),u=this._lContainer;!function(e,t,n,i){var r=10+i,a=n.length;i>0&&(n[r-1][4]=t),i1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}}]),n}(du);function fu(e){return e[8]}function pu(e){return e[8]||(e[8]=[])}function mu(e,t){var n,i=t[e.index];if(St(i))n=i;else{var r;if(8&e.type)r=zt(i);else{var a=t[11];r=a.createComment("");var o=jt(e,t);ea(a,ia(a,o),r,function(e,t){return Bt(e)?e.nextSibling(t):t.nextSibling}(a,o),!1)}t[e.index]=n=so(i,t,r,e),ho(t,n)}return new hu(n,e,t)}var gu={},vu=function(e){f(n,e);var t=m(n);function n(e){var i;return b(this,n),(i=t.call(this)).ngModule=e,i}return w(n,[{key:"resolveComponentFactory",value:function(e){var t=wt(e);return new bu(t,this.ngModule)}}]),n}(Cl);function yu(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var _u=new _i("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Vr}}),bu=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this)).componentDef=e,r.ngModule=i,r.componentType=e.type,r.selector=e.selectors.map(Sa).join(","),r.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],r.isBoundToModule=!!i,r}return w(n,[{key:"inputs",get:function(){return yu(this.componentDef.inputs)}},{key:"outputs",get:function(){return yu(this.componentDef.outputs)}},{key:"create",value:function(e,t,n,i){var r,a,o=(i=i||this.ngModule)?function(e,t){return{get:function(n,i,r){var a=e.get(n,gu,r);return a!==gu||i===gu?a:t.get(n,i,r)}}}(e,i.injector):e,s=o.get(Tl,Ht),l=o.get(Ml,null),u=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",d=n?function(e,t,n){if(Bt(e))return e.selectRootElement(t,n===Ke.ShadowDom);var i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(u,n,this.componentDef.encapsulation):Qr(s.createRenderer(null,this.componentDef),c,function(e){var t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),h=this.componentDef.onPush?576:528,f={components:[],scheduler:Vr,clean:vo,playerHandler:null,flags:0},p=Ya(0,null,null,1,0,null,null,null,null,null),m=Fa(null,p,f,h,null,null,s,u,l,o);wn(m);try{var g=function(e,t,n,i,r,a){var o=n[1];n[20]=e;var s=Na(o,20,2,"#host",null),l=s.mergedAttrs=t.hostAttrs;null!==l&&(xo(s,l,!0),null!==e&&(Hn(r,e,l),null!==s.classes&&pa(r,e,s.classes),null!==s.styles&&fa(r,e,s.styles)));var u=i.createRenderer(e,t),c=Fa(n,qa(t),null,t.onPush?64:16,n[20],s,i,u,null,null);return o.firstCreatePass&&(ti(Kn(s,n),o,t.type),eo(o,s),no(s,n.length,1)),ho(n,c),n[20]=c}(d,this.componentDef,m,s,u);if(d)if(n)Hn(u,d,["ng-version",Rl.full]);else{var v=function(e){for(var t=[],n=[],i=1,r=2;i0&&pa(u,d,_.join(" "))}if(a=Ut(p,20),void 0!==t)for(var b=a.projection=[],k=0;k1&&void 0!==arguments[1]?arguments[1]:zo.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:qe.Default;return e===zo||e===lu||e===Ao?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)}}]),n}(lu),xu=function(e){f(n,e);var t=m(n);function n(e){var i,r,a;return b(this,n),(i=t.call(this)).moduleType=e,null!==Ct(e)&&(r=e,a=new Set,function e(t){var n=Ct(t,!0),i=n.id;null!==i&&(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(Se(t)," vs ").concat(Se(t.name)))}(i,wu.get(i),t),wu.set(i,t));var r,o=s(Hr(n.imports));try{for(o.s();!(r=o.n()).done;){var l=r.value;a.has(l)||(a.add(l),e(l))}}catch(u){o.e(u)}finally{o.f()}}(r)),i}return w(n,[{key:"create",value:function(e){return new Cu(this.moduleType,e)}}]),n}(uu);function Su(e,t,n){var i=hn()+e,r=tn();return r[i]===Aa?Jo(r,i,n?t.call(n):t()):function(e,t){return e[t]}(r,i)}function Au(e,t,n,i){return Du(tn(),hn(),e,t,n,i)}function Ou(e,t,n,i,r){return Mu(tn(),hn(),e,t,n,i,r)}function Eu(e,t,n,i,r,a){return function(e,t,n,i,r,a,o,s){var l=t+n;return ns(e,l,r,a,o)?Jo(e,l+3,s?i.call(s,r,a,o):i(r,a,o)):Pu(e,l+3)}(tn(),hn(),e,t,n,i,r,a)}function Tu(e,t,n,i,r,a,o){return function(e,t,n,i,r,a,o,s,l){var u=t+n;return function(e,t,n,i,r,a){var o=ts(e,t,n,i);return ts(e,t+2,r,a)||o}(e,u,r,a,o,s)?Jo(e,u+4,l?i.call(l,r,a,o,s):i(r,a,o,s)):Pu(e,u+4)}(tn(),hn(),e,t,n,i,r,a,o)}function Pu(e,t){var n=e[t];return n===Aa?void 0:n}function Du(e,t,n,i,r,a){var o=t+n;return es(e,o,r)?Jo(e,o+1,a?i.call(a,r):i(r)):Pu(e,o+1)}function Mu(e,t,n,i,r,a,o){var s=t+n;return ts(e,s,r,a)?Jo(e,s+2,o?i.call(o,r,a):i(r,a)):Pu(e,s+2)}function Iu(e,t){var n,i=nn(),r=e+20;i.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var i=t[n];if(e===i.name)return i}throw new De("302","The pipe '".concat(e,"' could not be found!"))}(t,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(r,n.onDestroy)):n=i.data[r];var a=n.factory||(n.factory=Pt(n.type)),o=Ye(ls);try{var s=Xn(!1),l=a();return Xn(s),function(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(i,tn(),r,l),l}finally{Ye(o)}}function Ru(e,t,n){var i=e+20,r=tn(),a=Wt(r,i);return Nu(r,Fu(r,i)?Du(r,hn(),t,a.transform,n,a):a.transform(n))}function Lu(e,t,n,i){var r=e+20,a=tn(),o=Wt(a,r);return Nu(a,Fu(a,r)?Mu(a,hn(),t,o.transform,n,i,o):o.transform(n,i))}function Fu(e,t){return e[1].data[t].pure}function Nu(e,t){return $o.isWrapped(t)&&(t=$o.unwrap(t),e[fn()]=Aa),t}var Vu=function(e){f(n,e);var t=m(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return b(this,n),(e=t.call(this)).__isAsync=i,e}return w(n,[{key:"emit",value:function(e){h(_(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,i){var r,a=function(e){return null},o=function(){return null};e&&"object"==typeof e?(r=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(a=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(o=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(r=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},t&&(a=this.__isAsync?function(e){setTimeout(function(){return t(e)})}:function(e){t(e)}),i&&(o=this.__isAsync?function(){setTimeout(function(){return i()})}:function(){i()}));var s=h(_(n.prototype),"subscribe",this).call(this,r,a,o);return e instanceof O&&e.add(s),s}}]),n}(j);function Bu(){return this._results[Xo()]()}var Hu=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];b(this,e),this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var n=Xo(),i=e.prototype;i[n]||(i[n]=Bu)}return w(e,[{key:"changes",get:function(){return this._changes||(this._changes=new Vu)}},{key:"get",value:function(e){return this._results[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,t){this.dirty=!1;var n=Ci(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:[];b(this,e),this.queries=t}return w(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var i=null!==t.contentQueries?t.contentQueries[0]:n.length,r=[],a=0;a2&&void 0!==arguments[2]?arguments[2]:null;b(this,e),this.predicate=t,this.flags=n,this.read=i},Uu=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];b(this,e),this.queries=t}return w(e,[{key:"elementStart",value:function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;b(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return w(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!=(1&this.metadata.flags)){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var n=this.metadata.predicate;if(Array.isArray(n))for(var i=0;i0)i.push(o[s/2]);else{for(var u=a[s+1],c=t[-l],d=10;d0&&(r=setTimeout(function(){i._callbacks=i._callbacks.filter(function(e){return e.timeoutId!==r}),e(i._didWork,i.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,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)(Ni(Oc))},e.\u0275prov=Le({token:e,factory:e.\u0275fac}),e}(),Fc=function(){var e=function(){function e(){b(this,e),this._applications=new Map,Nc.addToWindow(this)}return w(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 Nc.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Le({token:e,factory:e.\u0275fac}),e}(),Nc=new(function(){function e(){b(this,e)}return w(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),Vc=!0,Bc=!1;function Hc(){return Bc=!0,Vc}var zc=new _i("AllowMultipleToken"),Gc=function e(t,n){b(this,e),this.name=t,this.token=n};function jc(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="Platform: ".concat(t),r=new _i(i);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=Uc();if(!a||a.injector.get(zc,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{var o=n.concat(t).concat({provide:r,useValue:!0},{provide:Eo,useValue:"platform"});!function(e){if(Ic&&!Ic.destroyed&&!Ic.injector.get(zc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Ic=e.get(Wc);var t=e.get(dc,null);t&&t.forEach(function(e){return e()})}(zo.create({providers:o,name:i}))}return function(e){var t=Uc();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}(r)}}function Uc(){return Ic&&!Ic.destroyed?Ic:null}var Wc=function(){var e=function(){function e(t){b(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return w(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,i,r=this,a=(n=t?t.ngZone:void 0,i={ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1},"noop"===n?new Rc:("zone.js"===n?void 0:n)||new Oc({enableLongStackTrace:Hc(),shouldCoalesceEventChangeDetection:!!(null==i?void 0:i.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==i?void 0:i.ngZoneRunCoalescing)})),o=[{provide:Oc,useValue:a}];return a.run(function(){var t=zo.create({providers:o,parent:r.injector,name:e.moduleType.name}),n=e.create(t),i=n.injector.get(Fr,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return a.runOutsideAngular(function(){var e=a.onError.subscribe({next:function(e){i.handleError(e)}});n.onDestroy(function(){Xc(r._modules,n),e.unsubscribe()})}),function(e,t,i){try{var a=((o=n.injector.get(sc)).runInitializers(),o.donePromise.then(function(){return hl(n.injector.get(mc,"en-US")||"en-US"),r._moduleDoBootstrap(n),n}));return ys(a)?a.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):a}catch(s){throw t.runOutsideAngular(function(){return e.handleError(s)}),s}var o}(i,a)})}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=qc({},n);return function(e,t,n){var i=new xu(n);return Promise.resolve(i)}(0,0,e).then(function(e){return t.bootstrapModuleFactory(e,i)})}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(Qc);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(Se(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:"injector",get:function(){return this._injector}},{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:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ni(zo))},e.\u0275prov=Le({token:e,factory:e.\u0275fac}),e}();function qc(e,t){return Array.isArray(t)?t.reduce(qc,e):Object.assign(Object.assign({},e),t)}var Yc,Qc=((Yc=function(){function e(t,n,i,r,a){var o=this;b(this,e),this._zone=t,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){o._zone.run(function(){o.tick()})}});var s=new N(function(e){o._stable=o._zone.isStable&&!o._zone.hasPendingMacrotasks&&!o._zone.hasPendingMicrotasks,o._zone.runOutsideAngular(function(){e.next(o._stable),e.complete()})}),l=new N(function(e){var t;o._zone.runOutsideAngular(function(){t=o._zone.onStable.subscribe(function(){Oc.assertNotInAngularZone(),Ac(function(){o._stable||o._zone.hasPendingMacrotasks||o._zone.hasPendingMicrotasks||(o._stable=!0,e.next(!0))})})});var n=o._zone.onUnstable.subscribe(function(){Oc.assertInAngularZone(),o._stable&&(o._stable=!1,o._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=de(s,l.pipe(we()))}return w(e,[{key:"bootstrap",value:function(e,t){var n,i=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 kl?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var r=n.isBoundToModule?void 0:this._injector.get(lu),a=n.create(zo.NULL,[],t||n.selector,r),o=a.location.nativeElement,s=a.injector.get(Lc,null),l=s&&a.injector.get(Fc);return s&&l&&l.registerApplication(o,s),a.onDestroy(function(){i.detachView(a.hostView),Xc(i.components,a),l&&l.unregisterApplication(o)}),this._loadComponent(a),a}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=s(this._views);try{for(n.s();!(t=n.n()).done;)t.value.detectChanges()}catch(i){n.e(i)}finally{n.f()}}catch(r){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(r)})}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;Xc(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(fc,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(e){return e.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),e}()).\u0275fac=function(e){return new(e||Yc)(Ni(Oc),Ni(zo),Ni(Fr),Ni(Cl),Ni(sc))},Yc.\u0275prov=Le({token:Yc,factory:Yc.\u0275fac}),Yc);function Xc(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var $c=function e(){b(this,e)},Kc=function e(){b(this,e)},Zc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Jc=function(){var e=function(){function e(t,n){b(this,e),this._compiler=t,this._config=n||Zc}return w(e,[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var t=this,i=n(e.split("#"),2),r=i[0],a=i[1];return void 0===a&&(a="default"),o("zn8P")(r).then(function(e){return e[a]}).then(function(e){return ed(e,r,a)}).then(function(e){return t._compiler.compileModuleAsync(e)})}},{key:"loadFactory",value:function(e){var t=n(e.split("#"),2),i=t[0],r=t[1],a="NgFactory";return void 0===r&&(r="default",a=""),o("zn8P")(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(function(e){return e[r+a]}).then(function(e){return ed(e,i,r)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ni(xc),Ni(Kc,8))},e.\u0275prov=Le({token:e,factory:e.\u0275fac}),e}();function ed(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var td=jc(null,"core",[{provide:hc,useValue:"unknown"},{provide:Wc,deps:[zo]},{provide:Fc,deps:[]},{provide:pc,deps:[]}]),nd=[{provide:Qc,useClass:Qc,deps:[Oc,zo,Fr,Cl,sc]},{provide:_u,deps:[Oc],useFactory:function(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:sc,useClass:sc,deps:[[new Ui,oc]]},{provide:xc,useClass:xc,deps:[]},uc,{provide:ql,useFactory:function(){return nu},deps:[]},{provide:Ql,useFactory:function(){return iu},deps:[]},{provide:mc,useFactory:function(e){return hl(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new ji(mc),new Ui,new Wi]]},{provide:gc,useValue:"USD"}],id=function(){var e=function e(t){b(this,e)};return e.\u0275fac=function(t){return new(t||e)(Ni(Qc))},e.\u0275mod=yt({type:e}),e.\u0275inj=Ne({providers:nd}),e}(),rd=null;function ad(){return rd}var od,sd=new _i("DocumentToken"),ld=((od=function e(){b(this,e)}).\u0275fac=function(e){return new(e||od)},od.\u0275prov=Le({factory:ud,token:od,providedIn:"platform"}),od);function ud(){return Ni(hd)}var cd,dd=new _i("Location Initialized"),hd=((cd=function(e){f(n,e);var t=m(n);function n(e){var i;return b(this,n),(i=t.call(this))._doc=e,i._init(),i}return w(n,[{key:"_init",value:function(){this.location=ad().getLocation(),this._history=ad().getHistory()}},{key:"getBaseHrefFromDOM",value:function(){return ad().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){ad().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}},{key:"onHashChange",value:function(e){ad().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(e){this.location.pathname=e}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(e,t,n){fd()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){fd()?this._history.replaceState(e,t,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"getState",value:function(){return this._history.state}}]),n}(ld)).\u0275fac=function(e){return new(e||cd)(Ni(sd))},cd.\u0275prov=Le({factory:pd,token:cd,providedIn:"platform"}),cd);function fd(){return!!window.history.pushState}function pd(){return new hd(Ni(sd))}function md(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function gd(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function vd(e){return e&&"?"!==e[0]?"?"+e:e}var yd,_d=((yd=function e(){b(this,e)}).\u0275fac=function(e){return new(e||yd)},yd.\u0275prov=Le({factory:bd,token:yd,providedIn:"root"}),yd);function bd(e){var t=Ni(sd).location;return new Sd(Ni(ld),t&&t.origin||"")}var kd,wd,Cd,xd=new _i("appBaseHref"),Sd=((Cd=function(e){f(n,e);var t=m(n);function n(e,i){var r;if(b(this,n),(r=t.call(this))._platformLocation=e,null==i&&(i=r._platformLocation.getBaseHrefFromDOM()),null==i)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.");return r._baseHref=i,g(r)}return w(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return md(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+vd(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+vd(i));this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+vd(i));this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(_d)).\u0275fac=function(e){return new(e||Cd)(Ni(ld),Ni(xd,8))},Cd.\u0275prov=Le({token:Cd,factory:Cd.\u0275fac}),Cd),Ad=((wd=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this))._platformLocation=e,r._baseHref="",null!=i&&(r._baseHref=i),r}return w(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=md(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+vd(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+vd(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(_d)).\u0275fac=function(e){return new(e||wd)(Ni(ld),Ni(xd,8))},wd.\u0275prov=Le({token:wd,factory:wd.\u0275fac}),wd),Od=((kd=function(){function e(t,n){var i=this;b(this,e),this._subject=new Vu,this._urlChangeListeners=[],this._platformStrategy=t;var r=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=gd(Td(r)),this._platformStrategy.onPopState(function(e){i._subject.emit({url:i.path(!0),pop:!0,state:e.state,type:e.type})})}return w(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+vd(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,Td(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+vd(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+vd(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._urlChangeSubscription||(this._urlChangeSubscription=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}()).\u0275fac=function(e){return new(e||kd)(Ni(_d),Ni(ld))},kd.normalizeQueryParams=vd,kd.joinWithSlash=md,kd.stripTrailingSlash=gd,kd.\u0275prov=Le({factory:Ed,token:kd,providedIn:"root"}),kd);function Ed(){return new Od(Ni(_d),Ni(ld))}function Td(e){return e.replace(/\/index.html$/,"")}var Pd=function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e}({}),Dd=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),Md=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}({}),Id=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}({}),Rd=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}({}),Ld=function(e){return e[e.Decimal=0]="Decimal",e[e.Group=1]="Group",e[e.List=2]="List",e[e.PercentSign=3]="PercentSign",e[e.PlusSign=4]="PlusSign",e[e.MinusSign=5]="MinusSign",e[e.Exponential=6]="Exponential",e[e.SuperscriptingExponent=7]="SuperscriptingExponent",e[e.PerMille=8]="PerMille",e[e[1/0]=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup",e}({});function Fd(e,t){return zd(ul(e)[dl.DateFormat],t)}function Nd(e,t){return zd(ul(e)[dl.TimeFormat],t)}function Vd(e,t){return zd(ul(e)[dl.DateTimeFormat],t)}function Bd(e,t){var n=ul(e),i=n[dl.NumberSymbols][t];if(void 0===i){if(t===Ld.CurrencyDecimal)return n[dl.NumberSymbols][Ld.Decimal];if(t===Ld.CurrencyGroup)return n[dl.NumberSymbols][Ld.Group]}return i}function Hd(e){if(!e[dl.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(e[dl.LocaleId],'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.'))}function zd(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 Gd(e){var t=n(e.split(":"),2);return{hours:+t[0],minutes:+t[1]}}var jd=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ud={},Wd=/((?:[^GyYMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|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]*)/,qd=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}({}),Yd=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}({}),Qd=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}({});function Xd(e,t,i,r){var a=function(e){if(lh(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){var t=n(e.split("-").map(function(e){return+e}),3),i=t[0],r=t[1],a=void 0===r?1:r,o=t[2];return $d(i,a-1,void 0===o?1:o)}var s,l=parseFloat(e);if(!isNaN(e-l))return new Date(l);if(s=e.match(jd))return function(e){var t=new Date(0),n=0,i=0,r=e[8]?t.setUTCFullYear:t.setFullYear,a=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),i=Number(e[9]+e[11])),r.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));var o=Number(e[4]||0)-n,s=Number(e[5]||0)-i,l=Number(e[6]||0),u=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return a.call(t,o,s,l,u),t}(s)}var u=new Date(e);if(!lh(u))throw new Error('Unable to convert "'.concat(e,'" into a date'));return u}(e);t=Kd(i,t)||t;for(var o,s=[];t;){if(!(o=Wd.exec(t))){s.push(t);break}var l=(s=s.concat(o.slice(1))).pop();if(!l)break;t=l}var u=a.getTimezoneOffset();r&&(u=sh(r,u),a=function(e,t,n){var i=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(sh(t,i)-i))}(a,r));var c="";return s.forEach(function(e){var t=function(e){if(oh[e])return oh[e];var t;switch(e){case"G":case"GG":case"GGG":t=th(Qd.Eras,Id.Abbreviated);break;case"GGGG":t=th(Qd.Eras,Id.Wide);break;case"GGGGG":t=th(Qd.Eras,Id.Narrow);break;case"y":t=eh(Yd.FullYear,1,0,!1,!0);break;case"yy":t=eh(Yd.FullYear,2,0,!0,!0);break;case"yyy":t=eh(Yd.FullYear,3,0,!1,!0);break;case"yyyy":t=eh(Yd.FullYear,4,0,!1,!0);break;case"Y":t=ah(1);break;case"YY":t=ah(2,!0);break;case"YYY":t=ah(3);break;case"YYYY":t=ah(4);break;case"M":case"L":t=eh(Yd.Month,1,1);break;case"MM":case"LL":t=eh(Yd.Month,2,1);break;case"MMM":t=th(Qd.Months,Id.Abbreviated);break;case"MMMM":t=th(Qd.Months,Id.Wide);break;case"MMMMM":t=th(Qd.Months,Id.Narrow);break;case"LLL":t=th(Qd.Months,Id.Abbreviated,Md.Standalone);break;case"LLLL":t=th(Qd.Months,Id.Wide,Md.Standalone);break;case"LLLLL":t=th(Qd.Months,Id.Narrow,Md.Standalone);break;case"w":t=rh(1);break;case"ww":t=rh(2);break;case"W":t=rh(1,!0);break;case"d":t=eh(Yd.Date,1);break;case"dd":t=eh(Yd.Date,2);break;case"E":case"EE":case"EEE":t=th(Qd.Days,Id.Abbreviated);break;case"EEEE":t=th(Qd.Days,Id.Wide);break;case"EEEEE":t=th(Qd.Days,Id.Narrow);break;case"EEEEEE":t=th(Qd.Days,Id.Short);break;case"a":case"aa":case"aaa":t=th(Qd.DayPeriods,Id.Abbreviated);break;case"aaaa":t=th(Qd.DayPeriods,Id.Wide);break;case"aaaaa":t=th(Qd.DayPeriods,Id.Narrow);break;case"b":case"bb":case"bbb":t=th(Qd.DayPeriods,Id.Abbreviated,Md.Standalone,!0);break;case"bbbb":t=th(Qd.DayPeriods,Id.Wide,Md.Standalone,!0);break;case"bbbbb":t=th(Qd.DayPeriods,Id.Narrow,Md.Standalone,!0);break;case"B":case"BB":case"BBB":t=th(Qd.DayPeriods,Id.Abbreviated,Md.Format,!0);break;case"BBBB":t=th(Qd.DayPeriods,Id.Wide,Md.Format,!0);break;case"BBBBB":t=th(Qd.DayPeriods,Id.Narrow,Md.Format,!0);break;case"h":t=eh(Yd.Hours,1,-12);break;case"hh":t=eh(Yd.Hours,2,-12);break;case"H":t=eh(Yd.Hours,1);break;case"HH":t=eh(Yd.Hours,2);break;case"m":t=eh(Yd.Minutes,1);break;case"mm":t=eh(Yd.Minutes,2);break;case"s":t=eh(Yd.Seconds,1);break;case"ss":t=eh(Yd.Seconds,2);break;case"S":t=eh(Yd.FractionalSeconds,1);break;case"SS":t=eh(Yd.FractionalSeconds,2);break;case"SSS":t=eh(Yd.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=nh(qd.Short);break;case"ZZZZZ":t=nh(qd.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=nh(qd.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=nh(qd.Long);break;default:return null}return oh[e]=t,t}(e);c+=t?t(a,i,u):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function $d(e,t,n){var i=new Date(0);return i.setFullYear(e,t,n),i.setHours(0,0,0),i}function Kd(e,t){var n=function(e){return ul(e)[dl.LocaleId]}(e);if(Ud[n]=Ud[n]||{},Ud[n][t])return Ud[n][t];var i="";switch(t){case"shortDate":i=Fd(e,Rd.Short);break;case"mediumDate":i=Fd(e,Rd.Medium);break;case"longDate":i=Fd(e,Rd.Long);break;case"fullDate":i=Fd(e,Rd.Full);break;case"shortTime":i=Nd(e,Rd.Short);break;case"mediumTime":i=Nd(e,Rd.Medium);break;case"longTime":i=Nd(e,Rd.Long);break;case"fullTime":i=Nd(e,Rd.Full);break;case"short":var r=Kd(e,"shortTime"),a=Kd(e,"shortDate");i=Zd(Vd(e,Rd.Short),[r,a]);break;case"medium":var o=Kd(e,"mediumTime"),s=Kd(e,"mediumDate");i=Zd(Vd(e,Rd.Medium),[o,s]);break;case"long":var l=Kd(e,"longTime"),u=Kd(e,"longDate");i=Zd(Vd(e,Rd.Long),[l,u]);break;case"full":var c=Kd(e,"fullTime"),d=Kd(e,"fullDate");i=Zd(Vd(e,Rd.Full),[c,d])}return i&&(Ud[n][t]=i),i}function Zd(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(e,n){return null!=t&&n in t?t[n]:e})),e}function Jd(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",i=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,a="";(e<0||r&&e<=0)&&(r?e=1-e:(e=-e,a=n));for(var o=String(e);o.length2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(a,o){var s,l=function(e,t){switch(e){case Yd.FullYear:return t.getFullYear();case Yd.Month:return t.getMonth();case Yd.Date:return t.getDate();case Yd.Hours:return t.getHours();case Yd.Minutes:return t.getMinutes();case Yd.Seconds:return t.getSeconds();case Yd.FractionalSeconds:return t.getMilliseconds();case Yd.Day:return t.getDay();default:throw new Error('Unknown DateType value "'.concat(e,'".'))}}(e,a);if((n>0||l>-n)&&(l+=n),e===Yd.Hours)0===l&&-12===n&&(l=12);else if(e===Yd.FractionalSeconds)return s=t,Jd(l,3).substr(0,s);var u=Bd(o,Ld.MinusSign);return Jd(l,t,u,i,r)}}function th(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Md.Format,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(a,o){return function(e,t,i,r,a,o){switch(i){case Qd.Months:return function(e,t,n){var i=ul(e),r=zd([i[dl.MonthsFormat],i[dl.MonthsStandalone]],t);return zd(r,n)}(t,a,r)[e.getMonth()];case Qd.Days:return function(e,t,n){var i=ul(e),r=zd([i[dl.DaysFormat],i[dl.DaysStandalone]],t);return zd(r,n)}(t,a,r)[e.getDay()];case Qd.DayPeriods:var s=e.getHours(),l=e.getMinutes();if(o){var u=function(e){var t=ul(e);return Hd(t),(t[dl.ExtraData][2]||[]).map(function(e){return"string"==typeof e?Gd(e):[Gd(e[0]),Gd(e[1])]})}(t),c=function(e,t,n){var i=ul(e);Hd(i);var r=zd([i[dl.ExtraData][0],i[dl.ExtraData][1]],t)||[];return zd(r,n)||[]}(t,a,r),d=u.findIndex(function(e){if(Array.isArray(e)){var t=n(e,2),i=t[0],r=t[1],a=s>=i.hours&&l>=i.minutes,o=s0?Math.floor(r/60):Math.ceil(r/60);switch(e){case qd.Short:return(r>=0?"+":"")+Jd(o,2,a)+Jd(Math.abs(r%60),2,a);case qd.ShortGMT:return"GMT"+(r>=0?"+":"")+Jd(o,1,a);case qd.Long:return"GMT"+(r>=0?"+":"")+Jd(o,2,a)+":"+Jd(Math.abs(r%60),2,a);case qd.Extended:return 0===i?"Z":(r>=0?"+":"")+Jd(o,2,a)+":"+Jd(Math.abs(r%60),2,a);default:throw new Error('Unknown zone width "'.concat(e,'"'))}}}function ih(e){return $d(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function rh(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,i){var r,a,o;if(t){var s=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,l=n.getDate();r=1+Math.floor((l+s)/7)}else{var u=ih(n),c=(a=u.getFullYear(),o=$d(a,0,1).getDay(),$d(a,0,1+(o<=4?4:11)-o)),d=u.getTime()-c.getTime();r=1+Math.round(d/6048e5)}return Jd(r,e,Bd(i,Ld.MinusSign))}}function ah(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,i){return Jd(ih(n).getFullYear(),e,Bd(i,Ld.MinusSign),t)}}var oh={};function sh(e,t){e=e.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function lh(e){return e instanceof Date&&!isNaN(e.valueOf())}var uh=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function ch(e){var t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}var dh,hh=function e(){b(this,e)},fh=((dh=function(e){f(n,e);var t=m(n);function n(e){var i;return b(this,n),(i=t.call(this)).locale=e,i}return w(n,[{key:"getPluralCategory",value:function(e,t){switch(function(e){return ul(e)[dl.PluralCase]}(t||this.locale)(e)){case Dd.Zero:return"zero";case Dd.One:return"one";case Dd.Two:return"two";case Dd.Few:return"few";case Dd.Many:return"many";default:return"other"}}}]),n}(hh)).\u0275fac=function(e){return new(e||dh)(Ni(mc))},dh.\u0275prov=Le({token:dh,factory:dh.\u0275fac}),dh);function ph(e,t){t=encodeURIComponent(t);var i,r=s(e.split(";"));try{for(r.s();!(i=r.n()).done;){var a=i.value,o=a.indexOf("="),l=n(-1==o?[a,""]:[a.slice(0,o),a.slice(o+1)],2),u=l[0],c=l[1];if(u.trim()===t)return decodeURIComponent(c)}}catch(d){r.e(d)}finally{r.f()}return null}var mh,gh,vh,yh=((mh=function(){function e(t,n,i,r){b(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=i,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return w(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&&(Ko(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{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(Se(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)})}}]),e}()).\u0275fac=function(e){return new(e||mh)(ls(ql),ls(Ql),ls(Ol),ls(Pl))},mh.\u0275dir=bt({type:mh,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),mh),_h=function(){function e(t,n,i,r){b(this,e),this.$implicit=t,this.ngForOf=n,this.index=i,this.count=r}return w(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}(),bh=((gh=function(){function e(t,n,i){b(this,e),this._viewContainer=t,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return w(e,[{key:"ngForOf",set:function(e){this._ngForOf=e,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"ngForTemplate",set:function(e){e&&(this._template=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(i){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,i,r){if(null==e.previousIndex){var a=t._viewContainer.createEmbeddedView(t._template,new _h(null,t._ngForOf,-1,-1),null===r?void 0:r),o=new kh(e,a);n.push(o)}else if(null==r)t._viewContainer.remove(null===i?void 0:i);else if(null!==i){var s=t._viewContainer.get(i);t._viewContainer.move(s,r);var l=new kh(e,s);n.push(l)}});for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:qe.Default,t=eu(!0);if(null!=t||e&qe.Optional)return t;Re("ChangeDetectorRef")}())},Nh.\u0275pipe=kt({name:"async",type:Nh,pure:!1}),Nh),Yh=/(?:[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,Qh=((Gh=function(){function e(){b(this,e)}return w(e,[{key:"transform",value:function(t){if(null==t)return null;if("string"!=typeof t)throw Fh(e,t);return t.replace(Yh,function(e){return e[0].toUpperCase()+e.substr(1).toLowerCase()})}}]),e}()).\u0275fac=function(e){return new(e||Gh)},Gh.\u0275pipe=kt({name:"titlecase",type:Gh,pure:!0}),Gh),Xh=((zh=function(){function e(){b(this,e)}return w(e,[{key:"transform",value:function(t){if(null==t)return null;if("string"!=typeof t)throw Fh(e,t);return t.toUpperCase()}}]),e}()).\u0275fac=function(e){return new(e||zh)},zh.\u0275pipe=kt({name:"uppercase",type:zh,pure:!0}),zh),$h=((Hh=function(){function e(t){b(this,e),this.locale=t}return w(e,[{key:"transform",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mediumDate",i=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if(null==t||""===t||t!=t)return null;try{return Xd(t,n,r||this.locale,i)}catch(a){throw Fh(e,a.message)}}}]),e}()).\u0275fac=function(e){return new(e||Hh)(ls(mc))},Hh.\u0275pipe=kt({name:"date",type:Hh,pure:!0}),Hh),Kh=((Bh=function(){function e(t){b(this,e),this._locale=t}return w(e,[{key:"transform",value:function(t,n,i){if(!function(e){return!(null==e||""===e||e!=e)}(t))return null;i=i||this._locale;try{return function(e,t,n){return function(e,t,n,i,r,a){var o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s="",l=!1;if(isFinite(e)){var u=function(e){var t,n,i,r,a,o=Math.abs(e)+"",s=0;for((n=o.indexOf("."))>-1&&(o=o.replace(".","")),(i=o.search(/e/i))>0?(n<0&&(n=i),n+=+o.slice(i+1),o=o.substring(0,i)):n<0&&(n=o.length),i=0;"0"===o.charAt(i);i++);if(i===(a=o.length))t=[0],n=1;else{for(a--;"0"===o.charAt(a);)a--;for(n-=i,t=[],r=0;i<=a;i++,r++)t[r]=Number(o.charAt(i))}return n>22&&(t=t.splice(0,21),s=n-1,n=1),{digits:t,exponent:s,integerLen:n}}(e);o&&(u=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}(u));var c=t.minInt,d=t.minFrac,h=t.maxFrac;if(a){var f=a.match(uh);if(null===f)throw new Error("".concat(a," is not a valid digit info"));var p=f[1],m=f[3],g=f[5];null!=p&&(c=ch(p)),null!=m&&(d=ch(m)),null!=g?h=ch(g):null!=m&&d>h&&(h=d)}!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 i=e.digits,r=i.length-e.integerLen,a=Math.min(Math.max(t,r),n),o=a+e.integerLen,s=i[o];if(o>0){i.splice(Math.max(e.integerLen,o));for(var l=o;l=5)if(o-1<0){for(var c=0;c>o;c--)i.unshift(0),e.integerLen++;i.unshift(1),e.integerLen++}else i[o-1]++;for(;r=h?i.pop():d=!1),t>=10?1:0},0);f&&(i.unshift(f),e.integerLen++)}(u,d,h);var v=u.digits,y=u.integerLen,_=u.exponent,b=[];for(l=v.every(function(e){return!e});y0?b=v.splice(y,v.length):(b=v,v=[0]);var k=[];for(v.length>=t.lgSize&&k.unshift(v.splice(-t.lgSize,v.length).join(""));v.length>t.gSize;)k.unshift(v.splice(-t.gSize,v.length).join(""));v.length&&k.unshift(v.join("")),s=k.join(Bd(n,i)),b.length&&(s+=Bd(n,r)+b.join("")),_&&(s+=Bd(n,Ld.Exponential)+"+"+_)}else s=Bd(n,Ld.Infinity);return s=e<0&&!l?t.negPre+s+t.negSuf:t.posPre+s+t.posSuf}(e,function(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},i=e.split(";"),r=i[0],a=i[1],o=-1!==r.indexOf(".")?r.split("."):[r.substring(0,r.lastIndexOf("0")+1),r.substring(r.lastIndexOf("0")+1)],s=o[0],l=o[1]||"";n.posPre=s.substr(0,s.indexOf("#"));for(var u=0;u1&&void 0!==arguments[1])||arguments[1],i=e.findTestabilityInTree(t,n);if(null==i)throw new Error("Could not find testability for element.");return i},nt.getAllAngularTestabilities=function(){return e.getAllTestabilities()},nt.getAllAngularRootElements=function(){return e.getAllRootElements()},nt.frameworkStabilizers||(nt.frameworkStabilizers=[]),nt.frameworkStabilizers.push(function(e){var t=nt.getAllAngularTestabilities(),n=t.length,i=!1,r=function(t){i=i||t,0==--n&&e(i)};t.forEach(function(e){e.whenStable(r)})})}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var i=e.getTestability(t);return null!=i?i:n?ad().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){var t;t=new e,Nc=t}}]),e}(),mf=new _i("EventManagerPlugins"),gf=((sf=function(){function e(t,n){var i=this;b(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(e){return e.manager=i}),this._plugins=t.slice().reverse()}return w(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,i=0;i-1&&(t.splice(n,1),a+=e+".")}),a+=r,0!=t.length||0===r.length)return null;var o={};return o.domEventName=i,o.fullKey=a,o}},{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&&Nf.hasOwnProperty(t)&&(t=Nf[t]))}return Ff[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Lf.forEach(function(i){i!=n&&(0,Vf[i])(e)&&(t+=i+".")}),t+=n}},{key:"eventCallback",value:function(e,t,i){return function(r){n.getEventFullKey(r)===e&&i.runGuarded(function(){return t(r)})}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(vf)).\u0275fac=function(e){return new(e||Ef)(Ni(sd))},Ef.\u0275prov=Le({token:Ef,factory:Ef.\u0275fac}),Ef),Hf=((Of=function e(){b(this,e)}).\u0275fac=function(e){return new(e||Of)},Of.\u0275prov=Le({factory:function(){return Ni(zf)},token:Of,providedIn:"root"}),Of),zf=((Af=function(e){f(n,e);var t=m(n);function n(e){var i;return b(this,n),(i=t.call(this))._doc=e,i}return w(n,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case Er.NONE:return t;case Er.HTML:return ir(t,"HTML")?nr(t):Ar(this._doc,String(t)).toString();case Er.STYLE:return ir(t,"Style")?nr(t):t;case Er.SCRIPT:if(ir(t,"Script"))return nr(t);throw new Error("unsafe value used in a script context");case Er.URL:return rr(t),ir(t,"URL")?nr(t):ur(String(t));case Er.RESOURCE_URL:if(ir(t,"ResourceURL"))return nr(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(e," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return new Ki(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return new Zi(e)}},{key:"bypassSecurityTrustScript",value:function(e){return new Ji(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return new er(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return new tr(e)}}]),n}(Hf)).\u0275fac=function(e){return new(e||Af)(Ni(sd))},Af.\u0275prov=Le({factory:function(){return e=Ni(Ao),new zf(e.get(sd));var e},token:Af,providedIn:"root"}),Af),Gf=jc(td,"browser",[{provide:hc,useValue:"browser"},{provide:dc,useValue:function(){cf.makeCurrent(),pf.init()},multi:!0},{provide:sd,useFactory:function(){return function(e){Dt=e}(document),document},deps:[]}]),jf=[[],{provide:Eo,useValue:"root"},{provide:Fr,useFactory:function(){return new Fr},deps:[]},{provide:mf,useClass:Rf,multi:!0,deps:[sd,Oc,hc]},{provide:mf,useClass:Bf,multi:!0,deps:[sd]},[],{provide:Pf,useClass:Pf,deps:[gf,_f,lc]},{provide:Tl,useExisting:Pf},{provide:yf,useExisting:_f},{provide:_f,useClass:_f,deps:[sd]},{provide:Lc,useClass:Lc,deps:[Oc]},{provide:gf,useClass:gf,deps:[mf,Oc]},[]],Uf=((Tf=function(){function e(t){if(b(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 w(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:lc,useValue:t.appId},{provide:hf,useExisting:lc},ff]}}}]),e}()).\u0275fac=function(e){return new(e||Tf)(Ni(Tf,12))},Tf.\u0275mod=yt({type:Tf}),Tf.\u0275inj=Ne({providers:jf,imports:[Zh,id]}),Tf);function Wf(){return new Yf(Ni(sd))}var qf,Yf=((qf=function(){function e(t){b(this,e),this._doc=t,this._dom=ad()}return w(e,[{key:"addTag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?this._getOrCreateElement(e,t):null}},{key:"addTags",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?e.reduce(function(e,i){return i&&e.push(t._getOrCreateElement(i,n)),e},[]):[]}},{key:"getTag",value:function(e){return e&&this._doc.querySelector("meta[".concat(e,"]"))||null}},{key:"getTags",value:function(e){if(!e)return[];var t=this._doc.querySelectorAll("meta[".concat(e,"]"));return t?[].slice.call(t):[]}},{key:"updateTag",value:function(e,t){if(!e)return null;t=t||this._parseSelector(e);var n=this.getTag(t);return n?this._setMetaElementAttributes(e,n):this._getOrCreateElement(e,!0)}},{key:"removeTag",value:function(e){this.removeTagElement(this.getTag(e))}},{key:"removeTagElement",value:function(e){e&&this._dom.remove(e)}},{key:"_getOrCreateElement",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t){var n=this._parseSelector(e),i=this.getTag(n);if(i&&this._containsAttributes(e,i))return i}var r=this._dom.createElement("meta");return this._setMetaElementAttributes(e,r),this._doc.getElementsByTagName("head")[0].appendChild(r),r}},{key:"_setMetaElementAttributes",value:function(e,t){var n=this;return Object.keys(e).forEach(function(i){return t.setAttribute(n._getMetaKeyMap(i),e[i])}),t}},{key:"_parseSelector",value:function(e){var t=e.name?"name":"property";return"".concat(t,'="').concat(e[t],'"')}},{key:"_containsAttributes",value:function(e,t){var n=this;return Object.keys(e).every(function(i){return t.getAttribute(n._getMetaKeyMap(i))===e[i]})}},{key:"_getMetaKeyMap",value:function(e){return Qf[e]||e}}]),e}()).\u0275fac=function(e){return new(e||qf)(Ni(sd))},qf.\u0275prov=Le({factory:Wf,token:qf,providedIn:"root"}),qf),Qf={httpEquiv:"http-equiv"};function Xf(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r=0;s--)(r=e[s])&&(o=(a<3?r(o):a>3?r(t,n,o):r(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o}function Kf(e,t){return function(n,i){t(n,i,e)}}function Zf(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function Jf(e,t,n,i){return new(n||(n=Promise))(function(r,a){function o(e){try{l(i.next(e))}catch(t){a(t)}}function s(e){try{l(i.throw(e))}catch(t){a(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((i=i.apply(e,t||[])).next())})}"undefined"!=typeof window&&window;var ep=function(e){f(n,e);var t=m(n);function n(e){var i;return b(this,n),(i=t.call(this))._value=e,i}return w(n,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(e){var t=h(_(n.prototype),"_subscribe",this).call(this,e);return t&&!t.closed&&e.next(this._value),t}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new H;return this._value}},{key:"next",value:function(e){h(_(n.prototype),"next",this).call(this,this._value=e)}}]),n}(j),tp=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r.pending=!1,r}return w(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n,i=!1;try{this.work(e)}catch(r){i=!0,n=!!r&&r||new Error(r)}if(i)return this.unsubscribe(),n}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),n}(function(e){f(n,e);var t=m(n);function n(e,i){return b(this,n),t.call(this)}return w(n,[{key:"schedule",value:function(e){return this}}]),n}(O)),np=function(){var e=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;b(this,e),this.SchedulerAction=t,this.now=n}return w(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}]),e}();return e.now=function(){return Date.now()},e}(),ip=function(e){f(n,e);var t=m(n);function n(e){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:np.now;return b(this,n),(i=t.call(this,e,function(){return n.delegate&&n.delegate!==v(i)?n.delegate.now():r()})).actions=[],i.active=!1,i.scheduled=void 0,i}return w(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,t,i):h(_(n.prototype),"schedule",this).call(this,e,t,i)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}]),n}(np),rp=new ip(tp);function ap(e){return!C(e)&&e-parseFloat(e)+1>=0}function op(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=-1;return ap(t)?i=Number(t)<1?1:Number(t):W(t)&&(n=t),W(n)||(n=rp),new N(function(t){var r=ap(e)?e:+e-n.now();return n.schedule(sp,r,{index:0,period:i,subscriber:t})})}function sp(e){var t=e.index,n=e.period,i=e.subscriber;if(i.next(t),!i.closed){if(-1===n)return i.complete();e.index=t+1,this.schedule(e,n)}}function lp(e,t,n){return n?lp(e,t).pipe(q(function(e){return C(e)?n.apply(void 0,a(e)):n(e)})):new N(function(n){var i,r=function(){for(var e=arguments.length,t=new Array(e),i=0;i1&&void 0!==arguments[1]?arguments[1]:0;return t>0?h(_(n.prototype),"schedule",this).call(this,e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}},{key:"execute",value:function(e,t){return t>0||this.closed?h(_(n.prototype),"execute",this).call(this,e,t):this._execute(e,t)}},{key:"requestAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0||null===i&&this.delay>0?h(_(n.prototype),"requestAsyncId",this).call(this,e,t,i):e.flush(this)}}]),n}(tp),cp=new(function(e){f(n,e);var t=m(n);function n(){return b(this,n),t.apply(this,arguments)}return n}(ip))(up),dp=new N(function(e){return e.complete()});function hp(e){return e?function(e){return new N(function(t){return e.schedule(function(){return t.complete()})})}(e):dp}function fp(){for(var e=arguments.length,t=new Array(e),n=0;n2&&void 0!==arguments[2]?arguments[2]:0;return b(this,n),(r=t.call(this,e)).scheduler=i,r.delay=a,r}return w(n,[{key:"scheduleMessage",value:function(e){this.destination.add(this.scheduler.schedule(n.dispatch,this.delay,new _p(e,this.destination)))}},{key:"_next",value:function(e){this.scheduleMessage(vp.createNext(e))}},{key:"_error",value:function(e){this.scheduleMessage(vp.createError(e)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(vp.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()}}]),n}(P),_p=function e(t,n){b(this,e),this.notification=t,this.destination=n},bp=function(e){f(n,e);var t=m(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,a=arguments.length>2?arguments[2]:void 0;return b(this,n),(e=t.call(this)).scheduler=a,e._events=[],e._infiniteTimeWindow=!1,e._bufferSize=i<1?1:i,e._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(e._infiniteTimeWindow=!0,e.next=e.nextInfiniteTimeWindow):e.next=e.nextTimeWindow,e}return w(n,[{key:"nextInfiniteTimeWindow",value:function(e){if(!this.isStopped){var t=this._events;t.push(e),t.length>this._bufferSize&&t.shift()}h(_(n.prototype),"next",this).call(this,e)}},{key:"nextTimeWindow",value:function(e){this.isStopped||(this._events.push(new kp(this._getNow(),e)),this._trimBufferThenGetEvents()),h(_(n.prototype),"next",this).call(this,e)}},{key:"_subscribe",value:function(e){var t,n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,a=i.length;if(this.closed)throw new H;if(this.isStopped||this.hasError?t=O.EMPTY:(this.observers.push(e),t=new z(this,e)),r&&e.add(e=new yp(e,r)),n)for(var o=0;ot&&(a=Math.max(a,r-t)),a>0&&i.splice(0,a),i}}]),n}(j),kp=function e(t,n){b(this,e),this.time=t,this.value=n},wp=function(){function e(t){b(this,e),this.notifier=t}return w(e,[{key:"call",value:function(e,t){var n=new Cp(e),i=t.subscribe(n);return i.add(re(this.notifier,new ne(n))),i}}]),e}(),Cp=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments)).hasValue=!1,e}return w(n,[{key:"_next",value:function(e){this.value=e,this.hasValue=!0}},{key:"notifyNext",value:function(){this.emitValue()}},{key:"notifyComplete",value:function(){this.emitValue()}},{key:"emitValue",value:function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))}}]),n}(ie);function xp(e,t){return"function"==typeof t?function(n){return n.pipe(xp(function(n,i){return te(e(n,i)).pipe(q(function(e,r){return t(n,e,i,r)}))}))}:function(t){return t.lift(new Sp(e))}}var Sp=function(){function e(t){b(this,e),this.project=t}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new Ap(e,this.project))}}]),e}(),Ap=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this,e)).project=i,r.index=0,r}return w(n,[{key:"_next",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=this.innerSubscription;t&&t.unsubscribe();var n=new ne(this),i=this.destination;i.add(n),this.innerSubscription=re(e,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}},{key:"_complete",value:function(){var e=this.innerSubscription;e&&!e.closed||h(_(n.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=void 0}},{key:"notifyComplete",value:function(){this.innerSubscription=void 0,this.isStopped&&h(_(n.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(e){this.destination.next(e)}}]),n}(ie);function Op(e,t){return function(n){return n.lift(new Ep(e,t))}}var Ep=function(){function e(t,n){b(this,e),this.compare=t,this.keySelector=n}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new Tp(e,this.compare,this.keySelector))}}]),e}(),Tp=function(e){f(n,e);var t=m(n);function n(e,i,r){var a;return b(this,n),(a=t.call(this,e)).keySelector=r,a.hasKey=!1,"function"==typeof i&&(a.compare=i),a}return w(n,[{key:"compare",value:function(e,t){return e===t}},{key:"_next",value:function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(r){return this.destination.error(r)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,t)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))}}]),n}(P);function Pp(e){return function(t){return t.lift(new Dp(e))}}var Dp=function(){function e(t){b(this,e),this.notifier=t}return w(e,[{key:"call",value:function(e,t){var n=new Mp(e),i=re(this.notifier,new ne(n));return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n}}]),e}(),Mp=function(e){f(n,e);var t=m(n);function n(e){var i;return b(this,n),(i=t.call(this,e)).seenValue=!1,i}return w(n,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),n}(ie);function Ip(){return ue(1)(fp.apply(void 0,arguments))}function Rp(){for(var e=arguments.length,t=new Array(e),n=0;nthis.total&&this.destination.next(e)}}]),n}(P),Kp=["*"],Zp=((Bp=function e(){b(this,e)}).\u0275fac=function(e){return new(e||Bp)},Bp.\u0275prov=Le({token:Bp,factory:function(e){return Bp.\u0275fac(e)}}),Bp),Jp=((Vp=function(){function e(t,n){var i=this;b(this,e),this._loader=t,this._zone=n,this._map=new Promise(function(e){i._mapResolver=e})}return w(e,[{key:"createMap",value:function(e,t){var n=this;return this._zone.runOutsideAngular(function(){return n._loader.load().then(function(){var i=new google.maps.Map(e,t);n._mapResolver(i)})})}},{key:"setMapOptions",value:function(e){var t=this;return this._zone.runOutsideAngular(function(){t._map.then(function(t){t.setOptions(e)})})}},{key:"createMarker",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this._zone.runOutsideAngular(function(){return e._map.then(function(e){return n&&(t.map=e),new google.maps.Marker(t)})})}},{key:"createInfoWindow",value:function(e){var t=this;return this._zone.runOutsideAngular(function(){return t._map.then(function(){return new google.maps.InfoWindow(e)})})}},{key:"createCircle",value:function(e){var t=this;return this._zone.runOutsideAngular(function(){return t._map.then(function(t){return"string"==typeof e.strokePosition&&(e.strokePosition=google.maps.StrokePosition[e.strokePosition]),e.map=t,new google.maps.Circle(e)})})}},{key:"createRectangle",value:function(e){var t=this;return this._zone.runOutsideAngular(function(){return t._map.then(function(t){return e.map=t,new google.maps.Rectangle(e)})})}},{key:"createPolyline",value:function(e){var t=this;return this._zone.runOutsideAngular(function(){return t.getNativeMap().then(function(t){var n=new google.maps.Polyline(e);return n.setMap(t),n})})}},{key:"createPolygon",value:function(e){var t=this;return this._zone.runOutsideAngular(function(){return t.getNativeMap().then(function(t){var n=new google.maps.Polygon(e);return n.setMap(t),n})})}},{key:"createDataLayer",value:function(e){var t=this;return this._zone.runOutsideAngular(function(){return t._map.then(function(t){var n=new google.maps.Data(e);return n.setMap(t),n})})}},{key:"createTransitLayer",value:function(e){var t=this;return this._zone.runOutsideAngular(function(){return t._map.then(function(t){var n=new google.maps.TransitLayer;return n.setMap(e.visible?t:null),n})})}},{key:"createBicyclingLayer",value:function(e){var t=this;return this._zone.runOutsideAngular(function(){return t._map.then(function(t){var n=new google.maps.BicyclingLayer;return n.setMap(e.visible?t:null),n})})}},{key:"containsLocation",value:function(e,t){return google.maps.geometry.poly.containsLocation(e,t)}},{key:"subscribeToMapEvent",value:function(e){var t=this;return new N(function(n){t._map.then(function(i){i.addListener(e,function(e){t._zone.run(function(){return n.next(e)})})})})}},{key:"clearInstanceListeners",value:function(){var e=this;return this._zone.runOutsideAngular(function(){e._map.then(function(e){google.maps.event.clearInstanceListeners(e)})})}},{key:"setCenter",value:function(e){var t=this;return this._zone.runOutsideAngular(function(){return t._map.then(function(t){return t.setCenter(e)})})}},{key:"getZoom",value:function(){var e=this;return this._zone.runOutsideAngular(function(){return e._map.then(function(e){return e.getZoom()})})}},{key:"getBounds",value:function(){var e=this;return this._zone.runOutsideAngular(function(){return e._map.then(function(e){return e.getBounds()})})}},{key:"getMapTypeId",value:function(){var e=this;return this._zone.runOutsideAngular(function(){return e._map.then(function(e){return e.getMapTypeId()})})}},{key:"setZoom",value:function(e){var t=this;return this._zone.runOutsideAngular(function(){return t._map.then(function(t){return t.setZoom(e)})})}},{key:"getCenter",value:function(){var e=this;return this._zone.runOutsideAngular(function(){return e._map.then(function(e){return e.getCenter()})})}},{key:"panTo",value:function(e){var t=this;return this._zone.runOutsideAngular(function(){return t._map.then(function(t){return t.panTo(e)})})}},{key:"panBy",value:function(e,t){var n=this;return this._zone.runOutsideAngular(function(){return n._map.then(function(n){return n.panBy(e,t)})})}},{key:"fitBounds",value:function(e,t){var n=this;return this._zone.runOutsideAngular(function(){return n._map.then(function(n){return n.fitBounds(e,t)})})}},{key:"panToBounds",value:function(e,t){var n=this;return this._zone.runOutsideAngular(function(){return n._map.then(function(n){return n.panToBounds(e,t)})})}},{key:"getNativeMap",value:function(){return this._map}},{key:"triggerMapEvent",value:function(e){return this._map.then(function(t){return google.maps.event.trigger(t,e)})}}]),e}()).\u0275fac=function(e){return new(e||Vp)(Ni(Zp),Ni(Oc))},Vp.\u0275prov=Le({token:Vp,factory:function(e){return Vp.\u0275fac(e)}}),Vp=$f([Zf("design:paramtypes",[Zp,Oc])],Vp)),em=((Np=function(){function e(t){b(this,e),this._wrapper=t,this._layers=new Map}return w(e,[{key:"addTransitLayer",value:function(e,t){var n=this._wrapper.createTransitLayer(t);this._layers.set(e,n)}},{key:"addBicyclingLayer",value:function(e,t){var n=this._wrapper.createBicyclingLayer(t);this._layers.set(e,n)}},{key:"deleteLayer",value:function(e){var t=this;return this._layers.get(e).then(function(n){n.setMap(null),t._layers.delete(e)})}},{key:"toggleLayerVisibility",value:function(e,t){var n=this;return this._layers.get(e).then(function(e){return t.visible?n._wrapper.getNativeMap().then(function(t){e.setMap(t)}):void e.setMap(null)})}}]),e}()).\u0275fac=function(e){return new(e||Np)(Ni(Jp))},Np.\u0275prov=Le({token:Np,factory:function(e){return Np.\u0275fac(e)}}),Np=$f([Zf("design:paramtypes",[Jp])],Np)),tm=((Fp=function(){function e(t,n){b(this,e),this._apiWrapper=t,this._zone=n,this._circles=new Map}return w(e,[{key:"addCircle",value:function(e){this._circles.set(e,this._apiWrapper.createCircle({center:{lat:e.latitude,lng:e.longitude},clickable:e.clickable,draggable:e.draggable,editable:e.editable,fillColor:e.fillColor,fillOpacity:e.fillOpacity,radius:e.radius,strokeColor:e.strokeColor,strokeOpacity:e.strokeOpacity,strokePosition:e.strokePosition,strokeWeight:e.strokeWeight,visible:e.visible,zIndex:e.zIndex}))}},{key:"removeCircle",value:function(e){var t=this;return this._circles.get(e).then(function(n){n.setMap(null),t._circles.delete(e)})}},{key:"setOptions",value:function(e,t){return this._circles.get(e).then(function(e){"string"==typeof t.strokePosition&&(t.strokePosition=google.maps.StrokePosition[t.strokePosition]),e.setOptions(t)})}},{key:"getBounds",value:function(e){return this._circles.get(e).then(function(e){return e.getBounds()})}},{key:"getCenter",value:function(e){return this._circles.get(e).then(function(e){return e.getCenter()})}},{key:"getRadius",value:function(e){return this._circles.get(e).then(function(e){return e.getRadius()})}},{key:"setCenter",value:function(e){return this._circles.get(e).then(function(t){return t.setCenter({lat:e.latitude,lng:e.longitude})})}},{key:"setEditable",value:function(e){return this._circles.get(e).then(function(t){return t.setEditable(e.editable)})}},{key:"setDraggable",value:function(e){return this._circles.get(e).then(function(t){return t.setDraggable(e.draggable)})}},{key:"setVisible",value:function(e){return this._circles.get(e).then(function(t){return t.setVisible(e.visible)})}},{key:"setRadius",value:function(e){return this._circles.get(e).then(function(t){return t.setRadius(e.radius)})}},{key:"getNativeCircle",value:function(e){return this._circles.get(e)}},{key:"createEventObservable",value:function(e,t){var n=this;return new N(function(i){var r=null;return n._circles.get(t).then(function(t){r=t.addListener(e,function(e){return n._zone.run(function(){return i.next(e)})})}),function(){null!==r&&r.remove()}})}}]),e}()).\u0275fac=function(e){return new(e||Fp)(Ni(Jp),Ni(Oc))},Fp.\u0275prov=Le({token:Fp,factory:function(e){return Fp.\u0275fac(e)}}),Fp=$f([Zf("design:paramtypes",[Jp,Oc])],Fp)),nm=((Gp=Hp=function(){function e(t){b(this,e),this._manager=t,this.clickable=!0,this.draggable=!1,this.editable=!1,this.radius=0,this.strokePosition="CENTER",this.strokeWeight=0,this.visible=!0,this.centerChange=new Vu,this.circleClick=new Vu,this.circleDblClick=new Vu,this.drag=new Vu,this.dragEnd=new Vu,this.dragStart=new Vu,this.mouseDown=new Vu,this.mouseMove=new Vu,this.mouseOut=new Vu,this.mouseOver=new Vu,this.mouseUp=new Vu,this.radiusChange=new Vu,this.rightClick=new Vu,this._circleAddedToManager=!1,this._eventSubscriptions=[]}return w(e,[{key:"ngOnInit",value:function(){this._manager.addCircle(this),this._circleAddedToManager=!0,this._registerEventListeners()}},{key:"ngOnChanges",value:function(e){this._circleAddedToManager&&((e.latitude||e.longitude)&&this._manager.setCenter(this),e.editable&&this._manager.setEditable(this),e.draggable&&this._manager.setDraggable(this),e.visible&&this._manager.setVisible(this),e.radius&&this._manager.setRadius(this),this._updateCircleOptionsChanges(e))}},{key:"_updateCircleOptionsChanges",value:function(e){var t={},n=Object.keys(e).filter(function(e){return-1!==Hp._mapOptions.indexOf(e)});n.forEach(function(n){t[n]=e[n].currentValue}),n.length>0&&this._manager.setOptions(this,t)}},{key:"_registerEventListeners",value:function(){var e=this,t=new Map;t.set("center_changed",this.centerChange),t.set("click",this.circleClick),t.set("dblclick",this.circleDblClick),t.set("drag",this.drag),t.set("dragend",this.dragEnd),t.set("dragstart",this.dragStart),t.set("mousedown",this.mouseDown),t.set("mousemove",this.mouseMove),t.set("mouseout",this.mouseOut),t.set("mouseover",this.mouseOver),t.set("mouseup",this.mouseUp),t.set("radius_changed",this.radiusChange),t.set("rightclick",this.rightClick),t.forEach(function(t,n){e._eventSubscriptions.push(e._manager.createEventObservable(n,e).subscribe(function(i){switch(n){case"radius_changed":e._manager.getRadius(e).then(function(e){return t.emit(e)});break;case"center_changed":e._manager.getCenter(e).then(function(e){return t.emit({lat:e.lat(),lng:e.lng()})});break;default:t.emit({coords:{lat:i.latLng.lat(),lng:i.latLng.lng()}})}}))})}},{key:"ngOnDestroy",value:function(){this._eventSubscriptions.forEach(function(e){e.unsubscribe()}),this._eventSubscriptions=null,this._manager.removeCircle(this)}},{key:"getBounds",value:function(){return this._manager.getBounds(this)}},{key:"getCenter",value:function(){return this._manager.getCenter(this)}}]),e}()).\u0275fac=function(e){return new(e||Gp)(ls(tm))},Gp.\u0275dir=bt({type:Gp,selectors:[["agm-circle"]],inputs:{clickable:"clickable",draggable:["circleDraggable","draggable"],editable:"editable",radius:"radius",strokePosition:"strokePosition",strokeWeight:"strokeWeight",visible:"visible",latitude:"latitude",longitude:"longitude",fillColor:"fillColor",fillOpacity:"fillOpacity",strokeColor:"strokeColor",strokeOpacity:"strokeOpacity",zIndex:"zIndex"},outputs:{centerChange:"centerChange",circleClick:"circleClick",circleDblClick:"circleDblClick",drag:"drag",dragEnd:"dragEnd",dragStart:"dragStart",mouseDown:"mouseDown",mouseMove:"mouseMove",mouseOut:"mouseOut",mouseOver:"mouseOver",mouseUp:"mouseUp",radiusChange:"radiusChange",rightClick:"rightClick"},features:[It]}),Gp._mapOptions=["fillColor","fillOpacity","strokeColor","strokeOpacity","strokePosition","strokeWeight","visible","zIndex","clickable"],Gp=Hp=$f([Zf("design:paramtypes",[tm])],Gp)),im=((zp=function(){function e(t,n){b(this,e),this._wrapper=t,this._zone=n,this._layers=new Map}return w(e,[{key:"addDataLayer",value:function(e){var t=this,n=this._wrapper.createDataLayer({style:e.style}).then(function(n){return e.geoJson&&t.getDataFeatures(n,e.geoJson).then(function(e){return n.features=e}),n});this._layers.set(e,n)}},{key:"deleteDataLayer",value:function(e){var t=this;this._layers.get(e).then(function(n){n.setMap(null),t._layers.delete(e)})}},{key:"updateGeoJson",value:function(e,t){var n=this;this._layers.get(e).then(function(e){e.forEach(function(t){e.remove(t);var n=e.features.indexOf(t,0);n>-1&&e.features.splice(n,1)}),n.getDataFeatures(e,t).then(function(t){return e.features=t})})}},{key:"setDataOptions",value:function(e,t){this._layers.get(e).then(function(e){e.setControlPosition(t.controlPosition),e.setControls(t.controls),e.setDrawingMode(t.drawingMode),e.setStyle(t.style)})}},{key:"createEventObservable",value:function(e,t){var n=this;return new N(function(i){n._layers.get(t).then(function(t){t.addListener(e,function(e){return n._zone.run(function(){return i.next(e)})})})})}},{key:"getDataFeatures",value:function(e,t){return new Promise(function(n,i){if("object"==typeof t)try{n(e.addGeoJson(t))}catch(r){i(r)}else"string"==typeof t?e.loadGeoJson(t,null,n):i("Impossible to extract features from geoJson: wrong argument type")})}}]),e}()).\u0275fac=function(e){return new(e||zp)(Ni(Jp),Ni(Oc))},zp.\u0275prov=Le({token:zp,factory:function(e){return zp.\u0275fac(e)}}),zp=$f([Zf("design:paramtypes",[Jp,Oc])],zp)),rm=function e(){b(this,e)},am=((Wp=function(){function e(t){var n,i,r=this;b(this,e),this._boundsChangeSampleTime$=new ep(200),this._includeInBounds$=new ep(new Map),this.bounds$=te(t.load()).pipe(le(function(){return r._includeInBounds$}),(n=this._boundsChangeSampleTime$.pipe(xp(function(e){return op(0,e)})),function(e){return e.lift(new wp(n))}),q(function(e){return r._generateBounds(e)}),(i={bufferSize:1,windowTime:void 0,refCount:!1,scheduler:void 0},function(e){return e.lift(function(e){var t,n,i=e.bufferSize,r=void 0===i?Number.POSITIVE_INFINITY:i,a=e.windowTime,o=void 0===a?Number.POSITIVE_INFINITY:a,s=e.refCount,l=e.scheduler,u=0,c=!1,d=!1;return function(e){var i;u++,!t||c?(c=!1,t=new bp(r,o,l),i=t.subscribe(this),n=e.subscribe({next:function(e){t.next(e)},error:function(e){c=!0,t.error(e)},complete:function(){d=!0,n=void 0,t.complete()}}),d&&(n=void 0)):i=t.subscribe(this),this.add(function(){u--,i.unsubscribe(),i=void 0,n&&!d&&s&&0===u&&(n.unsubscribe(),n=void 0,t=void 0)})}}(i))}))}return w(e,[{key:"_generateBounds",value:function(e){var t=new google.maps.LatLngBounds;return e.forEach(function(e){return t.extend(e)}),t}},{key:"addToBounds",value:function(e){var t=this._createIdentifier(e);if(!this._includeInBounds$.value.has(t)){var n=this._includeInBounds$.value;n.set(t,e),this._includeInBounds$.next(n)}}},{key:"removeFromBounds",value:function(e){var t=this._includeInBounds$.value;t.delete(this._createIdentifier(e)),this._includeInBounds$.next(t)}},{key:"changeFitBoundsChangeSampleTime",value:function(e){this._boundsChangeSampleTime$.next(e)}},{key:"getBounds$",value:function(){return this.bounds$}},{key:"_createIdentifier",value:function(e){return"".concat(e.lat,"+").concat(e.lng)}}]),e}()).\u0275fac=function(e){return new(e||Wp)(Ni(Zp))},Wp.\u0275prov=Le({token:Wp,factory:function(e){return Wp.\u0275fac(e)}}),Wp=$f([Zf("design:paramtypes",[Zp])],Wp)),om=((Up=function(){function e(t,n){b(this,e),this._mapsWrapper=t,this._zone=n,this._markers=new Map}return w(e,[{key:"convertAnimation",value:function(e){return Jf(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",null===e?null:this._mapsWrapper.getNativeMap().then(function(){return google.maps.Animation[e]}));case 1:case"end":return t.stop()}},t,this)}))}},{key:"deleteMarker",value:function(e){var t=this,n=this._markers.get(e);return null==n?Promise.resolve():n.then(function(n){return t._zone.run(function(){n.setMap(null),t._markers.delete(e)})})}},{key:"updateMarkerPosition",value:function(e){return this._markers.get(e).then(function(t){return t.setPosition({lat:e.latitude,lng:e.longitude})})}},{key:"updateTitle",value:function(e){return this._markers.get(e).then(function(t){return t.setTitle(e.title)})}},{key:"updateLabel",value:function(e){return this._markers.get(e).then(function(t){t.setLabel(e.label)})}},{key:"updateDraggable",value:function(e){return this._markers.get(e).then(function(t){return t.setDraggable(e.draggable)})}},{key:"updateIcon",value:function(e){return this._markers.get(e).then(function(t){return t.setIcon(e.iconUrl)})}},{key:"updateOpacity",value:function(e){return this._markers.get(e).then(function(t){return t.setOpacity(e.opacity)})}},{key:"updateVisible",value:function(e){return this._markers.get(e).then(function(t){return t.setVisible(e.visible)})}},{key:"updateZIndex",value:function(e){return this._markers.get(e).then(function(t){return t.setZIndex(e.zIndex)})}},{key:"updateClickable",value:function(e){return this._markers.get(e).then(function(t){return t.setClickable(e.clickable)})}},{key:"updateAnimation",value:function(e){return Jf(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._markers.get(e);case 2:return t.t0=t.sent,t.next=5,this.convertAnimation(e.animation);case 5:t.t1=t.sent,t.t0.setAnimation.call(t.t0,t.t1);case 7:case"end":return t.stop()}},t,this)}))}},{key:"addMarker",value:function(e){var t=this,n=new Promise(function(n){return Jf(t,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=this._mapsWrapper,t.t1={lat:e.latitude,lng:e.longitude},t.t2=e.label,t.t3=e.draggable,t.t4=e.iconUrl,t.t5=e.opacity,t.t6=e.visible,t.t7=e.zIndex,t.t8=e.title,t.t9=e.clickable,t.next=12,this.convertAnimation(e.animation);case 12:return t.t10=t.sent,t.t11={position:t.t1,label:t.t2,draggable:t.t3,icon:t.t4,opacity:t.t5,visible:t.t6,zIndex:t.t7,title:t.t8,clickable:t.t9,animation:t.t10},t.abrupt("return",t.t0.createMarker.call(t.t0,t.t11).then(n));case 15:case"end":return t.stop()}},t,this)}))});this._markers.set(e,n)}},{key:"getNativeMarker",value:function(e){return this._markers.get(e)}},{key:"createEventObservable",value:function(e,t){var n=this;return new N(function(i){n._markers.get(t).then(function(t){t.addListener(e,function(e){return n._zone.run(function(){return i.next(e)})})})})}}]),e}()).\u0275fac=function(e){return new(e||Up)(Ni(Jp),Ni(Oc))},Up.\u0275prov=Le({token:Up,factory:function(e){return Up.\u0275fac(e)}}),Up=$f([Zf("design:paramtypes",[Jp,Oc])],Up)),sm=((jp=function(){function e(t,n,i){b(this,e),this._mapsWrapper=t,this._zone=n,this._markerManager=i,this._infoWindows=new Map}return w(e,[{key:"deleteInfoWindow",value:function(e){var t=this,n=this._infoWindows.get(e);return null==n?Promise.resolve():n.then(function(n){return t._zone.run(function(){n.close(),t._infoWindows.delete(e)})})}},{key:"setPosition",value:function(e){return this._infoWindows.get(e).then(function(t){return t.setPosition({lat:e.latitude,lng:e.longitude})})}},{key:"setZIndex",value:function(e){return this._infoWindows.get(e).then(function(t){return t.setZIndex(e.zIndex)})}},{key:"open",value:function(e){var t=this;return this._infoWindows.get(e).then(function(n){return null!=e.hostMarker?t._markerManager.getNativeMarker(e.hostMarker).then(function(e){return t._mapsWrapper.getNativeMap().then(function(t){return n.open(t,e)})}):t._mapsWrapper.getNativeMap().then(function(e){return n.open(e)})})}},{key:"close",value:function(e){return this._infoWindows.get(e).then(function(e){return e.close()})}},{key:"setOptions",value:function(e,t){return this._infoWindows.get(e).then(function(e){return e.setOptions(t)})}},{key:"addInfoWindow",value:function(e){var t={content:e.content,maxWidth:e.maxWidth,zIndex:e.zIndex,disableAutoPan:e.disableAutoPan};"number"==typeof e.latitude&&"number"==typeof e.longitude&&(t.position={lat:e.latitude,lng:e.longitude});var n=this._mapsWrapper.createInfoWindow(t);this._infoWindows.set(e,n)}},{key:"createEventObservable",value:function(e,t){var n=this;return new N(function(i){n._infoWindows.get(t).then(function(t){t.addListener(e,function(e){return n._zone.run(function(){return i.next(e)})})})})}}]),e}()).\u0275fac=function(e){return new(e||jp)(Ni(Jp),Ni(Oc),Ni(om))},jp.\u0275prov=Le({token:jp,factory:function(e){return jp.\u0275fac(e)}}),jp=$f([Zf("design:paramtypes",[Jp,Oc,om])],jp)),lm=0,um=((Qp=qp=function(){function e(t,n){b(this,e),this._infoWindowManager=t,this._el=n,this.isOpen=!1,this.infoWindowClose=new Vu,this._infoWindowAddedToManager=!1,this._id=(lm++).toString()}return w(e,[{key:"ngOnInit",value:function(){this.content=this._el.nativeElement.querySelector(".agm-info-window-content"),this._infoWindowManager.addInfoWindow(this),this._infoWindowAddedToManager=!0,this._updateOpenState(),this._registerEventListeners()}},{key:"ngOnChanges",value:function(e){this._infoWindowAddedToManager&&((e.latitude||e.longitude)&&"number"==typeof this.latitude&&"number"==typeof this.longitude&&this._infoWindowManager.setPosition(this),e.zIndex&&this._infoWindowManager.setZIndex(this),e.isOpen&&this._updateOpenState(),this._setInfoWindowOptions(e))}},{key:"_registerEventListeners",value:function(){var e=this;this._infoWindowManager.createEventObservable("closeclick",this).subscribe(function(){e.isOpen=!1,e.infoWindowClose.emit()})}},{key:"_updateOpenState",value:function(){this.isOpen?this.open():this.close()}},{key:"_setInfoWindowOptions",value:function(e){var t={};Object.keys(e).filter(function(e){return-1!==qp._infoWindowOptionsInputs.indexOf(e)}).forEach(function(n){t[n]=e[n].currentValue}),this._infoWindowManager.setOptions(this,t)}},{key:"open",value:function(){return this._infoWindowManager.open(this)}},{key:"close",value:function(){var e=this;return this._infoWindowManager.close(this).then(function(){e.infoWindowClose.emit()})}},{key:"id",value:function(){return this._id}},{key:"toString",value:function(){return"AgmInfoWindow-"+this._id.toString()}},{key:"ngOnDestroy",value:function(){this._infoWindowManager.deleteInfoWindow(this)}}]),e}()).\u0275fac=function(e){return new(e||Qp)(ls(sm),ls(Ol))},Qp.\u0275cmp=pt({type:Qp,selectors:[["agm-info-window"]],inputs:{isOpen:"isOpen",latitude:"latitude",longitude:"longitude",disableAutoPan:"disableAutoPan",zIndex:"zIndex",maxWidth:"maxWidth"},outputs:{infoWindowClose:"infoWindowClose"},features:[It],ngContentSelectors:Kp,decls:2,vars:0,consts:[[1,"agm-info-window-content"]],template:function(e,t){1&e&&(Es(),ds(0,"div",0),Ts(1),hs())},encapsulation:2}),Qp._infoWindowOptionsInputs=["disableAutoPan","maxWidth"],Qp=qp=$f([Zf("design:paramtypes",[sm,Ol])],Qp)),cm=((Yp=function(){function e(t,n){b(this,e),this._wrapper=t,this._zone=n,this._layers=new Map}return w(e,[{key:"addKmlLayer",value:function(e){var t=this._wrapper.getNativeMap().then(function(t){return new google.maps.KmlLayer({clickable:e.clickable,map:t,preserveViewport:e.preserveViewport,screenOverlays:e.screenOverlays,suppressInfoWindows:e.suppressInfoWindows,url:e.url,zIndex:e.zIndex})});this._layers.set(e,t)}},{key:"setOptions",value:function(e,t){this._layers.get(e).then(function(e){return e.setOptions(t)})}},{key:"deleteKmlLayer",value:function(e){var t=this;this._layers.get(e).then(function(n){n.setMap(null),t._layers.delete(e)})}},{key:"createEventObservable",value:function(e,t){var n=this;return new N(function(i){n._layers.get(t).then(function(t){t.addListener(e,function(e){return n._zone.run(function(){return i.next(e)})})})})}}]),e}()).\u0275fac=function(e){return new(e||Yp)(Ni(Jp),Ni(Oc))},Yp.\u0275prov=Le({token:Yp,factory:function(e){return Yp.\u0275fac(e)}}),Yp=$f([Zf("design:paramtypes",[Jp,Oc])],Yp));function dm(e){var t=["insert_at","remove_at","set_at"];return lp(function(n){return t.map(function(t){return e.addListener(t,function(i,r){return n.apply(e,[{newArr:e.getArray(),evName:t,index:i,previous:r}])})})},function(e,t){return t.forEach(function(e){return e.remove()})})}var hm,fm,pm,mm,gm,vm,ym,_m,bm,km,wm,Cm=((hm=function(){function e(t,n){b(this,e),this._mapsWrapper=t,this._zone=n,this._polygons=new Map}return w(e,[{key:"addPolygon",value:function(e){var t=this._mapsWrapper.createPolygon({clickable:e.clickable,draggable:e.draggable,editable:e.editable,fillColor:e.fillColor,fillOpacity:e.fillOpacity,geodesic:e.geodesic,paths:e.paths,strokeColor:e.strokeColor,strokeOpacity:e.strokeOpacity,strokeWeight:e.strokeWeight,visible:e.visible,zIndex:e.zIndex});this._polygons.set(e,t)}},{key:"updatePolygon",value:function(e){var t=this,n=this._polygons.get(e);return null==n?Promise.resolve():n.then(function(n){return t._zone.run(function(){n.setPaths(e.paths)})})}},{key:"setPolygonOptions",value:function(e,t){return this._polygons.get(e).then(function(e){e.setOptions(t)})}},{key:"deletePolygon",value:function(e){var t=this,n=this._polygons.get(e);return null==n?Promise.resolve():n.then(function(n){return t._zone.run(function(){n.setMap(null),t._polygons.delete(e)})})}},{key:"getPath",value:function(e){return this._polygons.get(e).then(function(e){return e.getPath().getArray()})}},{key:"getPaths",value:function(e){return this._polygons.get(e).then(function(e){return e.getPaths().getArray().map(function(e){return e.getArray()})})}},{key:"createEventObservable",value:function(e,t){var n=this;return new N(function(i){n._polygons.get(t).then(function(t){t.addListener(e,function(e){return n._zone.run(function(){return i.next(e)})})})})}},{key:"createPathEventObservable",value:function(e){return Jf(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._polygons.get(e);case 2:return n=t.sent.getPaths(),t.abrupt("return",dm(n).pipe(Rp({newArr:n.getArray()}),xp(function(e){return de.apply(void 0,a(e.newArr.map(function(t,n){return dm(t).pipe(q(function(t){return{parentMVEvent:e,chMVCEvent:t,pathIndex:n}}))}))).pipe(Rp({parentMVEvent:e,chMVCEvent:null,pathIndex:null}))}),Lp(1),q(function(e){var t,n=e.parentMVEvent,i=e.chMVCEvent,r=e.pathIndex;return i?(t={newArr:n.newArr.map(function(e){return e.getArray().map(function(e){return e.toJSON()})}),pathIndex:r,eventName:i.evName,index:i.index},i.previous&&(t.previous=i.previous)):(t={newArr:n.newArr.map(function(e){return e.getArray().map(function(e){return e.toJSON()})}),eventName:n.evName,index:n.index},n.previous&&(t.previous=n.previous.getArray())),t})));case 4:case"end":return t.stop()}},t,this)}))}}]),e}()).\u0275fac=function(e){return new(e||hm)(Ni(Jp),Ni(Oc))},hm.\u0275prov=Le({token:hm,factory:function(e){return hm.\u0275fac(e)}}),hm=$f([Zf("design:paramtypes",[Jp,Oc])],hm)),xm=((mm=fm=function(){function e(t,n){b(this,e),this._mapsWrapper=t,this._zone=n,this._polylines=new Map}return w(e,[{key:"addPolyline",value:function(e){var t=this,i=this._mapsWrapper.getNativeMap().then(function(){return[fm._convertPoints(e),fm._convertIcons(e)]}).then(function(i){var r=n(i,2),a=r[0],o=r[1];return t._mapsWrapper.createPolyline({clickable:e.clickable,draggable:e.draggable,editable:e.editable,geodesic:e.geodesic,strokeColor:e.strokeColor,strokeOpacity:e.strokeOpacity,strokeWeight:e.strokeWeight,visible:e.visible,zIndex:e.zIndex,path:a,icons:o})});this._polylines.set(e,i)}},{key:"updatePolylinePoints",value:function(e){var t=this,n=fm._convertPoints(e),i=this._polylines.get(e);return null==i?Promise.resolve():i.then(function(e){return t._zone.run(function(){e.setPath(n)})})}},{key:"updateIconSequences",value:function(e){return Jf(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n,i,r=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._mapsWrapper.getNativeMap();case 2:if(n=fm._convertIcons(e),null==(i=this._polylines.get(e))){t.next=5;break}return t.abrupt("return",i.then(function(e){return r._zone.run(function(){return e.setOptions({icons:n})})}));case 5:case"end":return t.stop()}},t,this)}))}},{key:"setPolylineOptions",value:function(e,t){return this._polylines.get(e).then(function(e){e.setOptions(t)})}},{key:"deletePolyline",value:function(e){var t=this,n=this._polylines.get(e);return null==n?Promise.resolve():n.then(function(n){return t._zone.run(function(){n.setMap(null),t._polylines.delete(e)})})}},{key:"getMVCPath",value:function(e){return Jf(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._polylines.get(e);case 2:return t.abrupt("return",t.sent.getPath());case 3:case"end":return t.stop()}},t,this)}))}},{key:"getPath",value:function(e){return Jf(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getMVCPath(e);case 2:return t.abrupt("return",t.sent.getArray());case 3:case"end":return t.stop()}},t,this)}))}},{key:"createEventObservable",value:function(e,t){var n=this;return new N(function(i){n._polylines.get(t).then(function(t){t.addListener(e,function(e){return n._zone.run(function(){return i.next(e)})})})})}},{key:"createPathEventObservable",value:function(e){return Jf(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=dm,t.next=3,this.getMVCPath(e);case 3:return t.t1=t.sent,t.abrupt("return",(0,t.t0)(t.t1));case 5:case"end":return t.stop()}},t,this)}))}}],[{key:"_convertPoints",value:function(e){return e._getPoints().map(function(e){return{lat:e.latitude,lng:e.longitude}})}},{key:"_convertPath",value:function(e){var t=google.maps.SymbolPath[e];return"number"==typeof t?t:e}},{key:"_convertIcons",value:function(e){var t=e._getIcons().map(function(e){return{fixedRotation:e.fixedRotation,offset:e.offset,repeat:e.repeat,icon:{anchor:new google.maps.Point(e.anchorX,e.anchorY),fillColor:e.fillColor,fillOpacity:e.fillOpacity,path:fm._convertPath(e.path),rotation:e.rotation,scale:e.scale,strokeColor:e.strokeColor,strokeOpacity:e.strokeOpacity,strokeWeight:e.strokeWeight}}});return t.forEach(function(e){Object.entries(e).forEach(function(t){var i=n(t,2),r=i[0];void 0===i[1]&&delete e[r]}),void 0!==e.icon.anchor.x&&void 0!==e.icon.anchor.y||delete e.icon.anchor}),t}}]),e}()).\u0275fac=function(e){return new(e||mm)(Ni(Jp),Ni(Oc))},mm.\u0275prov=Le({token:mm,factory:function(e){return mm.\u0275fac(e)}}),mm=fm=$f([Zf("design:paramtypes",[Jp,Oc])],mm)),Sm=((pm=function(){function e(t,n){b(this,e),this._apiWrapper=t,this._zone=n,this._rectangles=new Map}return w(e,[{key:"addRectangle",value:function(e){this._rectangles.set(e,this._apiWrapper.createRectangle({bounds:{north:e.north,east:e.east,south:e.south,west:e.west},clickable:e.clickable,draggable:e.draggable,editable:e.editable,fillColor:e.fillColor,fillOpacity:e.fillOpacity,strokeColor:e.strokeColor,strokeOpacity:e.strokeOpacity,strokePosition:e.strokePosition,strokeWeight:e.strokeWeight,visible:e.visible,zIndex:e.zIndex}))}},{key:"removeRectangle",value:function(e){var t=this;return this._rectangles.get(e).then(function(n){n.setMap(null),t._rectangles.delete(e)})}},{key:"setOptions",value:function(e,t){return this._rectangles.get(e).then(function(e){return e.setOptions(t)})}},{key:"getBounds",value:function(e){return this._rectangles.get(e).then(function(e){return e.getBounds()})}},{key:"setBounds",value:function(e){return this._rectangles.get(e).then(function(t){return t.setBounds({north:e.north,east:e.east,south:e.south,west:e.west})})}},{key:"setEditable",value:function(e){return this._rectangles.get(e).then(function(t){return t.setEditable(e.editable)})}},{key:"setDraggable",value:function(e){return this._rectangles.get(e).then(function(t){return t.setDraggable(e.draggable)})}},{key:"setVisible",value:function(e){return this._rectangles.get(e).then(function(t){return t.setVisible(e.visible)})}},{key:"createEventObservable",value:function(e,t){var n=this;return N.create(function(i){var r=null;return n._rectangles.get(t).then(function(t){r=t.addListener(e,function(e){return n._zone.run(function(){return i.next(e)})})}),function(){null!==r&&r.remove()}})}}]),e}()).\u0275fac=function(e){return new(e||pm)(Ni(Jp),Ni(Oc))},pm.\u0275prov=Le({token:pm,factory:function(e){return pm.\u0275fac(e)}}),pm=$f([Zf("design:paramtypes",[Jp,Oc])],pm)),Am=((vm=gm=function(){function e(t,n,i,r,a){b(this,e),this._elem=t,this._mapsWrapper=n,this._platformId=i,this._fitBoundsService=r,this._zone=a,this.longitude=0,this.latitude=0,this.zoom=8,this.draggable=!0,this.disableDoubleClickZoom=!1,this.disableDefaultUI=!1,this.scrollwheel=!0,this.keyboardShortcuts=!0,this.styles=[],this.usePanning=!1,this.fitBounds=!1,this.scaleControl=!1,this.mapTypeControl=!1,this.panControl=!1,this.rotateControl=!1,this.fullscreenControl=!1,this.mapTypeId="roadmap",this.clickableIcons=!0,this.showDefaultInfoWindow=!0,this.gestureHandling="auto",this.tilt=0,this._observableSubscriptions=[],this.mapClick=new Vu,this.mapRightClick=new Vu,this.mapDblClick=new Vu,this.centerChange=new Vu,this.boundsChange=new Vu,this.mapTypeIdChange=new Vu,this.idle=new Vu,this.zoomChange=new Vu,this.mapReady=new Vu,this.tilesLoaded=new Vu}return w(e,[{key:"ngOnInit",value:function(){if(!ef(this._platformId)){var e=this._elem.nativeElement.querySelector(".agm-map-container-inner");this._initMapInstance(e)}}},{key:"_initMapInstance",value:function(e){var t=this;this._mapsWrapper.createMap(e,{center:{lat:this.latitude||0,lng:this.longitude||0},zoom:this.zoom,minZoom:this.minZoom,maxZoom:this.maxZoom,controlSize:this.controlSize,disableDefaultUI:this.disableDefaultUI,disableDoubleClickZoom:this.disableDoubleClickZoom,scrollwheel:this.scrollwheel,backgroundColor:this.backgroundColor,draggable:this.draggable,draggableCursor:this.draggableCursor,draggingCursor:this.draggingCursor,keyboardShortcuts:this.keyboardShortcuts,styles:this.styles,zoomControl:this.zoomControl,zoomControlOptions:this.zoomControlOptions,streetViewControl:this.streetViewControl,streetViewControlOptions:this.streetViewControlOptions,scaleControl:this.scaleControl,scaleControlOptions:this.scaleControlOptions,mapTypeControl:this.mapTypeControl,mapTypeControlOptions:this.mapTypeControlOptions,panControl:this.panControl,panControlOptions:this.panControlOptions,rotateControl:this.rotateControl,rotateControlOptions:this.rotateControlOptions,fullscreenControl:this.fullscreenControl,fullscreenControlOptions:this.fullscreenControlOptions,mapTypeId:this.mapTypeId,clickableIcons:this.clickableIcons,gestureHandling:this.gestureHandling,tilt:this.tilt,restriction:this.restriction}).then(function(){return t._mapsWrapper.getNativeMap()}).then(function(e){return t.mapReady.emit(e)}),this._handleMapCenterChange(),this._handleMapZoomChange(),this._handleMapMouseEvents(),this._handleBoundsChange(),this._handleMapTypeIdChange(),this._handleTilesLoadedEvent(),this._handleIdleEvent()}},{key:"ngOnDestroy",value:function(){this._observableSubscriptions.forEach(function(e){return e.unsubscribe()}),this._mapsWrapper.clearInstanceListeners(),this._fitBoundsSubscription&&this._fitBoundsSubscription.unsubscribe()}},{key:"ngOnChanges",value:function(e){this._updateMapOptionsChanges(e),this._updatePosition(e)}},{key:"_updateMapOptionsChanges",value:function(e){var t={};Object.keys(e).filter(function(e){return-1!==gm._mapOptionsAttributes.indexOf(e)}).forEach(function(n){t[n]=e[n].currentValue}),this._mapsWrapper.setMapOptions(t)}},{key:"triggerResize",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return new Promise(function(n){setTimeout(function(){return e._mapsWrapper.triggerMapEvent("resize").then(function(){t&&(null!=e.fitBounds?e._fitBounds():e._setCenter()),n()})})})}},{key:"_updatePosition",value:function(e){(null!=e.latitude||null!=e.longitude||e.fitBounds)&&("fitBounds"in e?this._fitBounds():"number"==typeof this.latitude&&"number"==typeof this.longitude&&this._setCenter())}},{key:"_setCenter",value:function(){var e={lat:this.latitude,lng:this.longitude};this.usePanning?this._mapsWrapper.panTo(e):this._mapsWrapper.setCenter(e)}},{key:"_fitBounds",value:function(){switch(this.fitBounds){case!0:this._subscribeToFitBoundsUpdates();break;case!1:this._fitBoundsSubscription&&this._fitBoundsSubscription.unsubscribe();break;default:this._updateBounds(this.fitBounds,this.fitBoundsPadding)}}},{key:"_subscribeToFitBoundsUpdates",value:function(){var e=this;this._zone.runOutsideAngular(function(){e._fitBoundsSubscription=e._fitBoundsService.getBounds$().subscribe(function(t){e._zone.run(function(){return e._updateBounds(t,e.fitBoundsPadding)})})})}},{key:"_updateBounds",value:function(e,t){if(e){if(this._isLatLngBoundsLiteral(e)&&"undefined"!=typeof google&&google&&google.maps&&google.maps.LatLngBounds){var n=new google.maps.LatLngBounds;n.union(e),e=n}this.usePanning?this._mapsWrapper.panToBounds(e,t):this._mapsWrapper.fitBounds(e,t)}}},{key:"_isLatLngBoundsLiteral",value:function(e){return null!=e&&void 0===e.extend}},{key:"_handleMapCenterChange",value:function(){var e=this,t=this._mapsWrapper.subscribeToMapEvent("center_changed").subscribe(function(){e._mapsWrapper.getCenter().then(function(t){e.latitude=t.lat(),e.longitude=t.lng(),e.centerChange.emit({lat:e.latitude,lng:e.longitude})})});this._observableSubscriptions.push(t)}},{key:"_handleBoundsChange",value:function(){var e=this,t=this._mapsWrapper.subscribeToMapEvent("bounds_changed").subscribe(function(){e._mapsWrapper.getBounds().then(function(t){e.boundsChange.emit(t)})});this._observableSubscriptions.push(t)}},{key:"_handleMapTypeIdChange",value:function(){var e=this,t=this._mapsWrapper.subscribeToMapEvent("maptypeid_changed").subscribe(function(){e._mapsWrapper.getMapTypeId().then(function(t){e.mapTypeIdChange.emit(t)})});this._observableSubscriptions.push(t)}},{key:"_handleMapZoomChange",value:function(){var e=this,t=this._mapsWrapper.subscribeToMapEvent("zoom_changed").subscribe(function(){e._mapsWrapper.getZoom().then(function(t){e.zoom=t,e.zoomChange.emit(t)})});this._observableSubscriptions.push(t)}},{key:"_handleIdleEvent",value:function(){var e=this,t=this._mapsWrapper.subscribeToMapEvent("idle").subscribe(function(){e.idle.emit(void 0)});this._observableSubscriptions.push(t)}},{key:"_handleTilesLoadedEvent",value:function(){var e=this,t=this._mapsWrapper.subscribeToMapEvent("tilesloaded").subscribe(function(){return e.tilesLoaded.emit(void 0)});this._observableSubscriptions.push(t)}},{key:"_handleMapMouseEvents",value:function(){var e=this;[{name:"click",emitter:this.mapClick},{name:"rightclick",emitter:this.mapRightClick},{name:"dblclick",emitter:this.mapDblClick}].forEach(function(t){var n=e._mapsWrapper.subscribeToMapEvent(t.name).subscribe(function(n){var i={coords:{lat:n.latLng.lat(),lng:n.latLng.lng()},placeId:n.placeId};i.placeId&&!e.showDefaultInfoWindow&&n.stop(),t.emitter.emit(i)});e._observableSubscriptions.push(n)})}}]),e}()).\u0275fac=function(e){return new(e||vm)(ls(Ol),ls(Jp),ls(hc),ls(am),ls(Oc))},vm.\u0275cmp=pt({type:vm,selectors:[["agm-map"]],hostVars:2,hostBindings:function(e,t){2&e&&Hs("sebm-google-map-container",!0)},inputs:{longitude:"longitude",latitude:"latitude",zoom:"zoom",draggable:["mapDraggable","draggable"],disableDoubleClickZoom:"disableDoubleClickZoom",disableDefaultUI:"disableDefaultUI",scrollwheel:"scrollwheel",keyboardShortcuts:"keyboardShortcuts",styles:"styles",usePanning:"usePanning",fitBounds:"fitBounds",scaleControl:"scaleControl",mapTypeControl:"mapTypeControl",panControl:"panControl",rotateControl:"rotateControl",fullscreenControl:"fullscreenControl",mapTypeId:"mapTypeId",clickableIcons:"clickableIcons",showDefaultInfoWindow:"showDefaultInfoWindow",gestureHandling:"gestureHandling",tilt:"tilt",minZoom:"minZoom",maxZoom:"maxZoom",controlSize:"controlSize",backgroundColor:"backgroundColor",draggableCursor:"draggableCursor",draggingCursor:"draggingCursor",zoomControl:"zoomControl",zoomControlOptions:"zoomControlOptions",streetViewControl:"streetViewControl",streetViewControlOptions:"streetViewControlOptions",fitBoundsPadding:"fitBoundsPadding",scaleControlOptions:"scaleControlOptions",mapTypeControlOptions:"mapTypeControlOptions",panControlOptions:"panControlOptions",rotateControlOptions:"rotateControlOptions",fullscreenControlOptions:"fullscreenControlOptions",restriction:"restriction"},outputs:{mapClick:"mapClick",mapRightClick:"mapRightClick",mapDblClick:"mapDblClick",centerChange:"centerChange",boundsChange:"boundsChange",mapTypeIdChange:"mapTypeIdChange",idle:"idle",zoomChange:"zoomChange",mapReady:"mapReady",tilesLoaded:"tilesLoaded"},features:[bl([tm,im,im,am,Jp,sm,cm,em,om,Cm,xm,Sm]),It],ngContentSelectors:Kp,decls:3,vars:0,consts:[[1,"agm-map-container-inner","sebm-google-map-container-inner"],[1,"agm-map-content"]],template:function(e,t){1&e&&(Es(),fs(0,"div",0),ds(1,"div",1),Ts(2),hs())},styles:[".agm-map-container-inner[_ngcontent-%COMP%] {\n width: inherit;\n height: inherit;\n }\n .agm-map-content[_ngcontent-%COMP%] {\n display:none;\n }"]}),vm._mapOptionsAttributes=["disableDoubleClickZoom","scrollwheel","draggable","draggableCursor","draggingCursor","keyboardShortcuts","zoomControl","zoomControlOptions","styles","streetViewControl","streetViewControlOptions","zoom","mapTypeControl","mapTypeControlOptions","minZoom","maxZoom","panControl","panControlOptions","rotateControl","rotateControlOptions","fullscreenControl","fullscreenControlOptions","scaleControl","scaleControlOptions","mapTypeId","clickableIcons","gestureHandling","tilt","restriction"],vm=gm=$f([Kf(2,ji(hc)),Zf("design:paramtypes",[Ol,Jp,Object,am,Oc])],vm)),Om=0,Em=((_m=ym=function(){function e(t){b(this,e),this._markerManager=t,this.draggable=!1,this.visible=!0,this.openInfoWindow=!0,this.opacity=1,this.zIndex=1,this.clickable=!0,this.animationChange=new Vu,this.markerClick=new Vu,this.markerDblClick=new Vu,this.markerRightClick=new Vu,this.dragStart=new Vu,this.drag=new Vu,this.dragEnd=new Vu,this.mouseOver=new Vu,this.mouseOut=new Vu,this.infoWindow=new Hu,this._markerAddedToManger=!1,this._observableSubscriptions=[],this._fitBoundsDetails$=new bp(1),this._id=(Om++).toString()}return w(e,[{key:"ngAfterContentInit",value:function(){var e=this;this.handleInfoWindowUpdate(),this.infoWindow.changes.subscribe(function(){return e.handleInfoWindowUpdate()})}},{key:"handleInfoWindowUpdate",value:function(){var e=this;if(this.infoWindow.length>1)throw new Error("Expected no more than one info window.");this.infoWindow.forEach(function(t){t.hostMarker=e})}},{key:"ngOnChanges",value:function(e){if("string"==typeof this.latitude&&(this.latitude=Number(this.latitude)),"string"==typeof this.longitude&&(this.longitude=Number(this.longitude)),"number"==typeof this.latitude&&"number"==typeof this.longitude){if(!this._markerAddedToManger)return this._markerManager.addMarker(this),this._updateFitBoundsDetails(),this._markerAddedToManger=!0,void this._addEventListeners();(e.latitude||e.longitude)&&(this._markerManager.updateMarkerPosition(this),this._updateFitBoundsDetails()),e.title&&this._markerManager.updateTitle(this),e.label&&this._markerManager.updateLabel(this),e.draggable&&this._markerManager.updateDraggable(this),e.iconUrl&&this._markerManager.updateIcon(this),e.opacity&&this._markerManager.updateOpacity(this),e.visible&&this._markerManager.updateVisible(this),e.zIndex&&this._markerManager.updateZIndex(this),e.clickable&&this._markerManager.updateClickable(this),e.animation&&this._markerManager.updateAnimation(this)}}},{key:"getFitBoundsDetails$",value:function(){return this._fitBoundsDetails$.asObservable()}},{key:"_updateFitBoundsDetails",value:function(){this._fitBoundsDetails$.next({latLng:{lat:this.latitude,lng:this.longitude}})}},{key:"_addEventListeners",value:function(){var e=this,t=this._markerManager.createEventObservable("click",this).subscribe(function(){e.openInfoWindow&&e.infoWindow.forEach(function(e){return e.open()}),e.markerClick.emit(e)});this._observableSubscriptions.push(t);var n=this._markerManager.createEventObservable("dblclick",this).subscribe(function(){e.markerDblClick.emit(null)});this._observableSubscriptions.push(n);var i=this._markerManager.createEventObservable("rightclick",this).subscribe(function(){e.markerRightClick.emit(null)});this._observableSubscriptions.push(i);var r=this._markerManager.createEventObservable("dragstart",this).subscribe(function(t){e.dragStart.emit({coords:{lat:t.latLng.lat(),lng:t.latLng.lng()}})});this._observableSubscriptions.push(r);var a=this._markerManager.createEventObservable("drag",this).subscribe(function(t){e.drag.emit({coords:{lat:t.latLng.lat(),lng:t.latLng.lng()}})});this._observableSubscriptions.push(a);var o=this._markerManager.createEventObservable("dragend",this).subscribe(function(t){e.dragEnd.emit({coords:{lat:t.latLng.lat(),lng:t.latLng.lng()}})});this._observableSubscriptions.push(o);var s=this._markerManager.createEventObservable("mouseover",this).subscribe(function(t){e.mouseOver.emit({coords:{lat:t.latLng.lat(),lng:t.latLng.lng()}})});this._observableSubscriptions.push(s);var l=this._markerManager.createEventObservable("mouseout",this).subscribe(function(t){e.mouseOut.emit({coords:{lat:t.latLng.lat(),lng:t.latLng.lng()}})});this._observableSubscriptions.push(l);var u=this._markerManager.createEventObservable("animation_changed",this).subscribe(function(){e.animationChange.emit(e.animation)});this._observableSubscriptions.push(u)}},{key:"id",value:function(){return this._id}},{key:"toString",value:function(){return"AgmMarker-"+this._id.toString()}},{key:"ngOnDestroy",value:function(){this._markerManager.deleteMarker(this),this._observableSubscriptions.forEach(function(e){return e.unsubscribe()})}}]),e}()).\u0275fac=function(e){return new(e||_m)(ls(om))},_m.\u0275dir=bt({type:_m,selectors:[["agm-marker"]],contentQueries:function(e,t,n){var i;1&e&&Zu(n,um,0),2&e&&$u(i=Ju())&&(t.infoWindow=i)},inputs:{latitude:"latitude",longitude:"longitude",title:"title",label:"label",draggable:["markerDraggable","draggable"],iconUrl:"iconUrl",openInfoWindow:"openInfoWindow",opacity:"opacity",visible:"visible",zIndex:"zIndex",animation:"animation",clickable:["markerClickable","clickable"]},outputs:{markerClick:"markerClick",dragStart:"dragStart",drag:"drag",dragEnd:"dragEnd",mouseOver:"mouseOver",mouseOut:"mouseOut",animationChange:"animationChange",markerDblClick:"markerDblClick",markerRightClick:"markerRightClick"},features:[bl([{provide:rm,useExisting:Ee(function(){return ym})}]),It]}),_m=ym=$f([Zf("design:paramtypes",[om])],_m)),Tm=function(){function e(){b(this,e)}return w(e,[{key:"getNativeWindow",value:function(){return window}}]),e}(),Pm=function(){function e(){b(this,e)}return w(e,[{key:"getNativeDocument",value:function(){return document}}]),e}(),Dm=[Tm,Pm],Mm=function(e){return e[e.HTTP=1]="HTTP",e[e.HTTPS=2]="HTTPS",e[e.AUTO=3]="AUTO",e}({}),Im=new _i("angular-google-maps LAZY_MAPS_API_CONFIG"),Rm=((bm=function(e){f(n,e);var t=m(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;return b(this,n),(e=t.call(this)).localeId=o,e._SCRIPT_ID="agmGoogleMapsApiScript",e.callbackName="agmLazyMapsAPILoader",e._config=i||{},e._windowRef=r,e._documentRef=a,e}return w(n,[{key:"load",value:function(){var e=this._windowRef.getNativeWindow();if(e.google&&e.google.maps)return Promise.resolve();if(this._scriptLoadingPromise)return this._scriptLoadingPromise;var t=this._documentRef.getNativeDocument().getElementById(this._SCRIPT_ID);if(t)return this._assignScriptLoadingPromise(t),this._scriptLoadingPromise;var n=this._documentRef.getNativeDocument().createElement("script");return n.type="text/javascript",n.async=!0,n.defer=!0,n.id=this._SCRIPT_ID,n.src=this._getScriptSrc(this.callbackName),this._assignScriptLoadingPromise(n),this._documentRef.getNativeDocument().body.appendChild(n),this._scriptLoadingPromise}},{key:"_assignScriptLoadingPromise",value:function(e){var t=this;this._scriptLoadingPromise=new Promise(function(n,i){t._windowRef.getNativeWindow()[t.callbackName]=function(){n()},e.onerror=function(e){i(e)}})}},{key:"_getScriptSrc",value:function(e){var t;switch(this._config&&this._config.protocol||Mm.HTTPS){case Mm.AUTO:t="";break;case Mm.HTTP:t="http:";break;case Mm.HTTPS:t="https:"}var n={v:this._config.apiVersion||"quarterly",callback:e,key:this._config.apiKey,client:this._config.clientId,channel:this._config.channel,libraries:this._config.libraries,region:this._config.region,language:this._config.language||"en-US"!==this.localeId?this.localeId:null};return"".concat(t,"//").concat(this._config.hostAndPath||"maps.googleapis.com/maps/api/js","?").concat(Object.keys(n).filter(function(e){return null!=n[e]}).filter(function(e){return!Array.isArray(n[e])||Array.isArray(n[e])&&n[e].length>0}).map(function(e){var t=n[e];return Array.isArray(t)?{key:e,value:t.join(",")}:{key:e,value:n[e]}}).map(function(e){return"".concat(e.key,"=").concat(e.value)}).join("&"))}}]),n}(Zp)).\u0275fac=function(e){return new(e||bm)(Ni(Im,8),Ni(Tm),Ni(Pm),Ni(mc))},bm.\u0275prov=Le({token:bm,factory:function(e){return bm.\u0275fac(e)}}),bm=$f([Kf(0,Ui()),Kf(0,ji(Im)),Kf(3,ji(mc)),Zf("design:paramtypes",[Object,Tm,Pm,String])],bm)),Lm=((wm=km=function(){function e(){b(this,e)}return w(e,null,[{key:"forRoot",value:function(e){return{ngModule:km,providers:[].concat(Dm,[{provide:Zp,useClass:Rm},{provide:Im,useValue:e}])}}}]),e}()).\u0275fac=function(e){return new(e||wm)},wm.\u0275mod=yt({type:wm}),wm.\u0275inj=Ne({}),wm);o("c+JA");var Fm,Nm,Vm,Bm=((Vm=function(e){f(i,e);var t=m(i);function i(e,n){var r;return b(this,i),(r=t.call(this,e,n))._mapsWrapper=e,r._zone=n,r._clustererInstance=new Promise(function(e){r._resolver=e}),r}return w(i,[{key:"init",value:function(e){var t=this;this._mapsWrapper.getNativeMap().then(function(n){var i=new MarkerClusterer(n,[],e);t._resolver(i)})}},{key:"getClustererInstance",value:function(){return this._clustererInstance}},{key:"addMarker",value:function(e){var t=this.getClustererInstance(),i=this._mapsWrapper.createMarker({position:{lat:e.latitude,lng:e.longitude},label:e.label,draggable:e.draggable,icon:e.iconUrl,opacity:e.opacity,visible:e.visible,zIndex:e.zIndex,title:e.title,clickable:e.clickable},!1);Promise.all([t,i]).then(function(e){var t=n(e,2),i=t[0],r=t[1];return i.addMarker(r)}),this._markers.set(e,i)}},{key:"deleteMarker",value:function(e){var t=this,n=this._markers.get(e);return null==n?Promise.resolve():n.then(function(n){t._zone.run(function(){n.setMap(null),t.getClustererInstance().then(function(i){i.removeMarker(n),t._markers.delete(e)})})})}},{key:"clearMarkers",value:function(){return this.getClustererInstance().then(function(e){e.clearMarkers()})}},{key:"setGridSize",value:function(e){this.getClustererInstance().then(function(t){t.setGridSize(e.gridSize)})}},{key:"setMaxZoom",value:function(e){this.getClustererInstance().then(function(t){t.setMaxZoom(e.maxZoom)})}},{key:"setStyles",value:function(e){this.getClustererInstance().then(function(t){t.setStyles(e.styles)})}},{key:"setZoomOnClick",value:function(e){this.getClustererInstance().then(function(t){void 0!==e.zoomOnClick&&(t.zoomOnClick_=e.zoomOnClick)})}},{key:"setAverageCenter",value:function(e){this.getClustererInstance().then(function(t){void 0!==e.averageCenter&&(t.averageCenter_=e.averageCenter)})}},{key:"setImagePath",value:function(e){this.getClustererInstance().then(function(t){void 0!==e.imagePath&&(t.imagePath_=e.imagePath)})}},{key:"setMinimumClusterSize",value:function(e){this.getClustererInstance().then(function(t){void 0!==e.minimumClusterSize&&(t.minimumClusterSize_=e.minimumClusterSize)})}},{key:"setImageExtension",value:function(e){this.getClustererInstance().then(function(t){void 0!==e.imageExtension&&(t.imageExtension_=e.imageExtension)})}},{key:"createClusterEventObservable",value:function(e){var t=this;return N.create(function(n){t._zone.runOutsideAngular(function(){t._clustererInstance.then(function(i){i.addListener(e,function(e){return t._zone.run(function(){return n.next(e)})})})})})}},{key:"setCalculator",value:function(e){this.getClustererInstance().then(function(t){"function"==typeof e.calculator&&t.setCalculator(e.calculator)})}}]),i}(om)).\u0275fac=function(e){return new(e||Vm)(Ni(Jp),Ni(Oc))},Vm.\u0275prov=Le({token:Vm,factory:function(e){return Vm.\u0275fac(e)}}),Vm=$f([Zf("design:paramtypes",[Jp,Oc])],Vm)),Hm=((Nm=function(){function e(t){b(this,e),this._clusterManager=t,this.clusterClick=new Vu,this._observableSubscriptions=[]}return w(e,[{key:"ngOnDestroy",value:function(){this._clusterManager.clearMarkers(),this._observableSubscriptions.forEach(function(e){return e.unsubscribe()})}},{key:"ngOnChanges",value:function(e){e.gridSize&&this._clusterManager.setGridSize(this),e.maxZoom&&this._clusterManager.setMaxZoom(this),e.zoomOnClick&&this._clusterManager.setZoomOnClick(this),e.averageCenter&&this._clusterManager.setAverageCenter(this),e.minimumClusterSize&&this._clusterManager.setMinimumClusterSize(this),e.imagePath&&this._clusterManager.setImagePath(this),e.imageExtension&&this._clusterManager.setImageExtension(this),e.calculator&&this._clusterManager.setCalculator(this),e.styles&&this._clusterManager.setStyles(this)}},{key:"_addEventListeners",value:function(){var e=this;[{name:"clusterclick",handler:function(){return e.clusterClick.emit()}}].forEach(function(t){var n=e._clusterManager.createClusterEventObservable(t.name).subscribe(t.handler);e._observableSubscriptions.push(n)})}},{key:"ngOnInit",value:function(){this._addEventListeners(),this._clusterManager.init({gridSize:this.gridSize,maxZoom:this.maxZoom,zoomOnClick:this.zoomOnClick,averageCenter:this.averageCenter,minimumClusterSize:this.minimumClusterSize,styles:this.styles,imagePath:this.imagePath,imageExtension:this.imageExtension,calculator:this.calculator})}}]),e}()).\u0275fac=function(e){return new(e||Nm)(ls(Bm))},Nm.\u0275dir=bt({type:Nm,selectors:[["agm-marker-cluster"]],inputs:{gridSize:"gridSize",maxZoom:"maxZoom",zoomOnClick:"zoomOnClick",averageCenter:"averageCenter",minimumClusterSize:"minimumClusterSize",styles:"styles",calculator:"calculator",imagePath:"imagePath",imageExtension:"imageExtension"},outputs:{clusterClick:"clusterClick"},features:[bl([Bm,{provide:om,useExisting:Bm},sm]),It]}),Nm=$f([Zf("design:paramtypes",[Bm])],Nm)),zm=((Fm=function e(){b(this,e)}).\u0275fac=function(e){return new(e||Fm)},Fm.\u0275mod=yt({type:Fm}),Fm.\u0275inj=Ne({imports:[[Lm]]}),Fm);function Gm(e,t){return ae(e,t,1)}function jm(e,t){return function(n){return n.lift(new Um(e,t))}}var Um=function(){function e(t,n){b(this,e),this.predicate=t,this.thisArg=n}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new Wm(e,this.predicate,this.thisArg))}}]),e}(),Wm=function(e){f(n,e);var t=m(n);function n(e,i,r){var a;return b(this,n),(a=t.call(this,e)).predicate=i,a.thisArg=r,a.count=0,a}return w(n,[{key:"_next",value:function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}]),n}(P),qm=function e(){b(this,e)},Ym=function e(){b(this,e)},Qm=function(){function e(t){var n=this;b(this,e),this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){n.headers=new Map,t.split("\n").forEach(function(e){var t=e.indexOf(":");if(t>0){var i=e.slice(0,t),r=i.toLowerCase(),a=e.slice(t+1).trim();n.maybeSetNormalizedName(i,r),n.headers.has(r)?n.headers.get(r).push(a):n.headers.set(r,[a])}})}:function(){n.headers=new Map,Object.keys(t).forEach(function(e){var i=t[e],r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(n.headers.set(r,i),n.maybeSetNormalizedName(e,r))})}:this.headers=new Map}return w(e,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,t){return this.clone({name:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({name:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({name:e,value:t,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var i=("a"===e.op?this.headers.get(t):void 0)||[];i.push.apply(i,a(n)),this.headers.set(t,i);break;case"d":var r=e.value;if(r){var o=this.headers.get(t);if(!o)return;0===(o=o.filter(function(e){return-1===r.indexOf(e)})).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}}},{key:"forEach",value:function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})}}]),e}(),Xm=function(){function e(){b(this,e)}return w(e,[{key:"encodeKey",value:function(e){return $m(e)}},{key:"encodeValue",value:function(e){return $m(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}();function $m(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var Km=function(){function e(){var t=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(b(this,e),this.updates=null,this.cloneFrom=null,this.encoder=i.encoder||new Xm,i.fromString){if(i.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){var i=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(function(e){var r=e.indexOf("="),a=n(-1==r?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,r)),t.decodeValue(e.slice(r+1))],2),o=a[0],s=a[1],l=i.get(o)||[];l.push(s),i.set(o,l)}),i}(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(function(e){var n=i.fromObject[e];t.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}return w(e,[{key:"has",value:function(e){return this.init(),this.map.has(e)}},{key:"get",value:function(e){this.init();var t=this.map.get(e);return t?t[0]:null}},{key:"getAll",value:function(e){return this.init(),this.map.get(e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(e,t){return this.clone({param:e,value:t,op:"a"})}},{key:"appendAll",value:function(e){var t=[];return Object.keys(e).forEach(function(n){var i=e[n];Array.isArray(i)?i.forEach(function(e){t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:i,op:"a"})}),this.clone(t)}},{key:"set",value:function(e,t){return this.clone({param:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({param:e,value:t,op:"d"})}},{key:"toString",value:function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).filter(function(e){return""!==e}).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}},{key:"init",value:function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(t.value),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var i=e.map.get(t.param)||[],r=i.indexOf(t.value);-1!==r&&i.splice(r,1),i.length>0?e.map.set(t.param,i):e.map.delete(t.param)}}),this.cloneFrom=this.updates=null)}}]),e}();function Zm(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function Jm(e){return"undefined"!=typeof Blob&&e instanceof Blob}function eg(e){return"undefined"!=typeof FormData&&e instanceof FormData}var tg=function(){function e(t,n,i,r){var a;if(b(this,e),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,a=r):a=i,a&&(this.reportProgress=!!a.reportProgress,this.withCredentials=!!a.withCredentials,a.responseType&&(this.responseType=a.responseType),a.headers&&(this.headers=a.headers),a.params&&(this.params=a.params)),this.headers||(this.headers=new Qm),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=t.method||this.method,i=t.url||this.url,r=t.responseType||this.responseType,a=void 0!==t.body?t.body:this.body,o=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,s=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,l=t.headers||this.headers,u=t.params||this.params;return void 0!==t.setHeaders&&(l=Object.keys(t.setHeaders).reduce(function(e,n){return e.set(n,t.setHeaders[n])},l)),t.setParams&&(u=Object.keys(t.setParams).reduce(function(e,n){return e.set(n,t.setParams[n])},u)),new e(n,i,a,{params:u,headers:l,reportProgress:s,responseType:r,withCredentials:o})}}]),e}(),ng=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({}),ig=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";b(this,e),this.headers=t.headers||new Qm,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300},rg=function(e){f(n,e);var t=m(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return b(this,n),(e=t.call(this,i)).type=ng.ResponseHeader,e}return w(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(ig),ag=function(e){f(n,e);var t=m(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return b(this,n),(e=t.call(this,i)).type=ng.Response,e.body=void 0!==i.body?i.body:null,e}return w(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(ig),og=function(e){f(n,e);var t=m(n);function n(e){var i;return b(this,n),(i=t.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",i.ok=!1,i.message=i.status>=200&&i.status<300?"Http failure during parsing for ".concat(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),i.error=e.error||null,i}return n}(ig);function sg(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var lg,ug,cg,dg,hg,fg,pg,mg,gg,vg=((lg=function(){function e(t){b(this,e),this.handler=t}return w(e,[{key:"request",value:function(e,t){var n,i,r,a=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e instanceof tg?n=e:(i=o.headers instanceof Qm?o.headers:new Qm(o.headers),o.params&&(r=o.params instanceof Km?o.params:new Km({fromObject:o.params})),n=new tg(e,t,void 0!==o.body?o.body:null,{headers:i,params:r,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials}));var s=fp(n).pipe(Gm(function(e){return a.handler.handle(e)}));if(e instanceof tg||"events"===o.observe)return s;var l=s.pipe(jm(function(e){return e instanceof ag}));switch(o.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return l.pipe(q(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return l.pipe(q(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return l.pipe(q(function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return l.pipe(q(function(e){return e.body}))}case"response":return l;default:throw new Error("Unreachable: unhandled observe type ".concat(o.observe,"}"))}}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,t)}},{key:"head",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,t)}},{key:"jsonp",value:function(e,t){return this.request("JSONP",e,{params:(new Km).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,t)}},{key:"patch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,sg(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,sg(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,sg(n,t))}}]),e}()).\u0275fac=function(e){return new(e||lg)(Ni(qm))},lg.\u0275prov=Le({token:lg,factory:lg.\u0275fac}),lg),yg=function(){function e(t,n){b(this,e),this.next=t,this.interceptor=n}return w(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),_g=new _i("HTTP_INTERCEPTORS"),bg=((ug=function(){function e(){b(this,e)}return w(e,[{key:"intercept",value:function(e,t){return t.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||ug)},ug.\u0275prov=Le({token:ug,factory:ug.\u0275fac}),ug),kg=/^\)\]\}',?\n/,wg=function e(){b(this,e)},Cg=((dg=function(){function e(){b(this,e)}return w(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}()).\u0275fac=function(e){return new(e||dg)},dg.\u0275prov=Le({token:dg,factory:dg.\u0275fac}),dg),xg=((cg=function(){function e(t){b(this,e),this.xhrFactory=t}return w(e,[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new N(function(n){var i=t.xhrFactory.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach(function(e,t){return i.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var r=e.detectContentTypeHeader();null!==r&&i.setRequestHeader("Content-Type",r)}if(e.responseType){var a=e.responseType.toLowerCase();i.responseType="json"!==a?a:"text"}var o=e.serializeBody(),s=null,l=function(){if(null!==s)return s;var t=1223===i.status?204:i.status,n=i.statusText||"OK",r=new Qm(i.getAllResponseHeaders()),a=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(i)||e.url;return s=new rg({headers:r,status:t,statusText:n,url:a})},u=function(){var t=l(),r=t.headers,a=t.status,o=t.statusText,s=t.url,u=null;204!==a&&(u=void 0===i.response?i.responseText:i.response),0===a&&(a=u?200:0);var c=a>=200&&a<300;if("json"===e.responseType&&"string"==typeof u){var d=u;u=u.replace(kg,"");try{u=""!==u?JSON.parse(u):null}catch(h){u=d,c&&(c=!1,u={error:h,text:u})}}c?(n.next(new ag({body:u,headers:r,status:a,statusText:o,url:s||void 0})),n.complete()):n.error(new og({error:u,headers:r,status:a,statusText:o,url:s||void 0}))},c=function(e){var t=l().url,r=new og({error:e,status:i.status||0,statusText:i.statusText||"Unknown Error",url:t||void 0});n.error(r)},d=!1,h=function(t){d||(n.next(l()),d=!0);var r={type:ng.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(r.total=t.total),"text"===e.responseType&&i.responseText&&(r.partialText=i.responseText),n.next(r)},f=function(e){var t={type:ng.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return i.addEventListener("load",u),i.addEventListener("error",c),i.addEventListener("timeout",c),i.addEventListener("abort",c),e.reportProgress&&(i.addEventListener("progress",h),null!==o&&i.upload&&i.upload.addEventListener("progress",f)),i.send(o),n.next({type:ng.Sent}),function(){i.removeEventListener("error",c),i.removeEventListener("abort",c),i.removeEventListener("load",u),i.removeEventListener("timeout",c),e.reportProgress&&(i.removeEventListener("progress",h),null!==o&&i.upload&&i.upload.removeEventListener("progress",f)),i.readyState!==i.DONE&&i.abort()}})}}]),e}()).\u0275fac=function(e){return new(e||cg)(Ni(wg))},cg.\u0275prov=Le({token:cg,factory:cg.\u0275fac}),cg),Sg=new _i("XSRF_COOKIE_NAME"),Ag=new _i("XSRF_HEADER_NAME"),Og=function e(){b(this,e)},Eg=((gg=function(){function e(t,n,i){b(this,e),this.doc=t,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return w(e,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=ph(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}()).\u0275fac=function(e){return new(e||gg)(Ni(sd),Ni(hc),Ni(Sg))},gg.\u0275prov=Le({token:gg,factory:gg.\u0275fac}),gg),Tg=((mg=function(){function e(t,n){b(this,e),this.tokenService=t,this.headerName=n}return w(e,[{key:"intercept",value:function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var i=this.tokenService.getToken();return null===i||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,i)})),t.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||mg)(Ni(Og),Ni(Ag))},mg.\u0275prov=Le({token:mg,factory:mg.\u0275fac}),mg),Pg=((pg=function(){function e(t,n){b(this,e),this.backend=t,this.injector=n,this.chain=null}return w(e,[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(_g,[]);this.chain=t.reduceRight(function(e,t){return new yg(e,t)},this.backend)}return this.chain.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||pg)(Ni(Ym),Ni(zo))},pg.\u0275prov=Le({token:pg,factory:pg.\u0275fac}),pg),Dg=((fg=function(){function e(){b(this,e)}return w(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:Tg,useClass:bg}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:Sg,useValue:t.cookieName}:[],t.headerName?{provide:Ag,useValue:t.headerName}:[]]}}}]),e}()).\u0275fac=function(e){return new(e||fg)},fg.\u0275mod=yt({type:fg}),fg.\u0275inj=Ne({providers:[Tg,{provide:_g,useExisting:Tg,multi:!0},{provide:Og,useClass:Eg},{provide:Sg,useValue:"XSRF-TOKEN"},{provide:Ag,useValue:"X-XSRF-TOKEN"}]}),fg),Mg=((hg=function e(){b(this,e)}).\u0275fac=function(e){return new(e||hg)},hg.\u0275mod=yt({type:hg}),hg.\u0275inj=Ne({providers:[vg,{provide:qm,useClass:Pg},xg,{provide:Ym,useExisting:xg},Cg,{provide:wg,useExisting:Cg}],imports:[[Dg.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),hg),Ig=1,Rg=Promise.resolve(),Lg={};function Fg(e){return e in Lg&&(delete Lg[e],!0)}var Ng=function(e){var t=Ig++;return Lg[t]=!0,Rg.then(function(){return Fg(t)&&e()}),t},Vg=function(e){Fg(e)},Bg=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r}return w(n,[{key:"requestAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?h(_(n.prototype),"requestAsyncId",this).call(this,e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=Ng(e.flush.bind(e,null))))}},{key:"recycleAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return h(_(n.prototype),"recycleAsyncId",this).call(this,e,t,i);0===e.actions.length&&(Vg(t),e.scheduled=void 0)}}]),n}(tp),Hg=new(function(e){f(n,e);var t=m(n);function n(){return b(this,n),t.apply(this,arguments)}return w(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i1?Array.prototype.slice.call(arguments):e)},i,n)})}function Gg(e,t,n,i,r){var a;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var o=e;e.addEventListener(t,n,r),a=function(){return o.removeEventListener(t,n,r)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var s=e;e.on(t,n),a=function(){return s.off(t,n)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){var l=e;e.addListener(t,n),a=function(){return l.removeListener(t,n)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var u=0,c=e.length;u1&&void 0!==arguments[1]?arguments[1]:rp;return function(n){return n.lift(new Ug(e,t))}}var Ug=function(){function e(t,n){b(this,e),this.dueTime=t,this.scheduler=n}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new Wg(e,this.dueTime,this.scheduler))}}]),e}(),Wg=function(e){f(n,e);var t=m(n);function n(e,i,r){var a;return b(this,n),(a=t.call(this,e)).dueTime=i,a.scheduler=r,a.debouncedSubscription=null,a.lastValue=null,a.hasValue=!1,a}return w(n,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(qg,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}},{key:"clearDebounce",value:function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}]),n}(P);function qg(e){e.debouncedNext()}var Yg=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}();function Qg(e){return function(t){return 0===e?hp():t.lift(new Xg(e))}}var Xg=function(){function e(t){if(b(this,e),this.total=t,this.total<0)throw new Yg}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new $g(e,this.total))}}]),e}(),$g=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return w(n,[{key:"_next",value:function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}]),n}(P);function Kg(){}function Zg(e,t,n){return function(i){return i.lift(new tv(e,t,n))}}var Jg,ev,tv=function(){function e(t,n,i){b(this,e),this.nextOrObserver=t,this.error=n,this.complete=i}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new nv(e,this.nextOrObserver,this.error,this.complete))}}]),e}(),nv=function(e){f(n,e);var t=m(n);function n(e,i,r,a){var o;return b(this,n),(o=t.call(this,e))._tapNext=Kg,o._tapError=Kg,o._tapComplete=Kg,o._tapError=r||Kg,o._tapComplete=a||Kg,l(i)?(o._context=v(o),o._tapNext=i):i&&(o._context=i,o._tapNext=i.next||Kg,o._tapError=i.error||Kg,o._tapComplete=i.complete||Kg),o}return w(n,[{key:"_next",value:function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}},{key:"_error",value:function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}]),n}(P),iv={provide:fc,useFactory:function(e,t){return function(){if(Jh(t)){var n=Array.from(e.querySelectorAll("[class*=".concat(rv,"]"))),i=/\bflex-layout-.+?\b/g;n.forEach(function(e){e.classList.contains("".concat(rv,"ssr"))&&e.parentNode?e.parentNode.removeChild(e):e.className.replace(i,"")})}}},deps:[sd,hc],multi:!0},rv="flex-layout-",av=((Jg=function e(){b(this,e)}).\u0275fac=function(e){return new(e||Jg)},Jg.\u0275mod=yt({type:Jg}),Jg.\u0275inj=Ne({providers:[iv]}),Jg),ov=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;b(this,e),this.matches=t,this.mediaQuery=n,this.mqAlias=i,this.suffix=r,this.priority=a,this.property=""}return w(e,[{key:"clone",value:function(){return new e(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}]),e}(),sv=((ev=function(){function e(){b(this,e),this.stylesheet=new Map}return w(e,[{key:"addStyleToElement",value:function(e,t,n){var i=this.stylesheet.get(e);i?i.set(t,n):this.stylesheet.set(e,new Map([[t,n]]))}},{key:"clearStyles",value:function(){this.stylesheet.clear()}},{key:"getStyleForElement",value:function(e,t){var n=this.stylesheet.get(e),i="";if(n){var r=n.get(t);"number"!=typeof r&&"string"!=typeof r||(i=r+"")}return i}}]),e}()).\u0275fac=function(e){return new(e||ev)},ev.\u0275prov=Le({factory:function(){return new ev},token:ev,providedIn:"root"}),ev),lv={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},uv=new _i("Flex Layout token, config options for the library",{providedIn:"root",factory:function(){return lv}}),cv=new _i("FlexLayoutServerLoaded",{providedIn:"root",factory:function(){return!1}}),dv=new _i("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:function(){return null}});function hv(e,t){return e=e?e.clone():new ov,t&&(e.mqAlias=t.alias,e.mediaQuery=t.mediaQuery,e.suffix=t.suffix,e.priority=t.priority),e}var fv=["row","column","row-reverse","column-reverse"];function pv(e){if(e)switch(e.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":e="wrap-reverse";break;case"no":case"none":case"nowrap":e="nowrap";break;default:e="wrap"}return e}var mv,gv=((mv=function(){function e(t,n,i,r){b(this,e),this.elementRef=t,this.styleBuilder=n,this.styler=i,this.marshal=r,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new j,this.styleCache=new Map}return w(e,[{key:"parentElement",get:function(){return this.elementRef.nativeElement.parentElement}},{key:"nativeElement",get:function(){return this.elementRef.nativeElement}},{key:"activatedValue",get:function(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)},set:function(e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,this.marshal.activatedAlias)}},{key:"ngOnChanges",value:function(e){var t=this;Object.keys(e).forEach(function(n){if(-1!==t.inputs.indexOf(n)){var i=n.split(".").slice(1).join(".");t.setValue(e[n].currentValue,i)}})}},{key:"ngOnDestroy",value:function(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}},{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),e)}},{key:"addStyles",value:function(e,t){var n=this.styleBuilder,i=n.shouldCache,r=this.styleCache.get(e);r&&i||(r=n.buildStyles(e,t),i&&this.styleCache.set(e,r)),this.mru=Object.assign({},r),this.applyStyleToElement(r),n.sideEffect(e,r,t)}},{key:"clearStyles",value:function(){var e=this;Object.keys(this.mru).forEach(function(t){e.mru[t]=""}),this.applyStyleToElement(this.mru),this.mru={}}},{key:"triggerUpdate",value:function(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}},{key:"getFlexFlowDirection",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e){var i=this.styler.getFlowDirection(e),r=n(i,2),a=r[0],o=r[1];if(!o&&t){var s=function(e){var t=function(e){var t=n((e=e?e.toLowerCase():"").split(" "),3),i=t[0],r=t[1],a=t[2];return fv.find(function(e){return e===i})||(i=fv[0]),"inline"===r&&(r="inline"!==a?a:"",a="inline"),[i,pv(r),!!a]}(e),i=n(t,3);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];return{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":e,"flex-wrap":t||null}}(i[0],i[1],i[2])}(a);this.styler.applyStyleToElements(s,[e])}return a.trim()}return"row"}},{key:"hasWrap",value:function(e){return this.styler.hasWrap(e)}},{key:"applyStyleToElement",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.nativeElement;this.styler.applyStyleToElement(n,e,t)}},{key:"setValue",value:function(e,t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,t)}},{key:"updateWithValue",value:function(e){this.currentValue!==e&&(this.addStyles(e),this.currentValue=e)}}]),e}()).\u0275fac=function(e){!function(){throw new Error("invalid")}()},mv.\u0275dir=bt({type:mv,features:[It]}),mv),vv=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],yv="(orientation: portrait) and (max-width: 599.98px)",_v="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",bv="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",kv="(orientation: portrait) and (min-width: 840px)",wv="(orientation: landscape) and (min-width: 1280px)",Cv={HANDSET:"".concat(yv,", (orientation: landscape) and (max-width: 959.98px)"),TABLET:"".concat(_v," , ").concat(bv),WEB:"".concat(kv,", ").concat(wv," "),HANDSET_PORTRAIT:"".concat(yv),TABLET_PORTRAIT:"".concat(_v," "),WEB_PORTRAIT:"".concat(kv),HANDSET_LANDSCAPE:"(orientation: landscape) and (max-width: 959.98px)",TABLET_LANDSCAPE:"".concat(bv),WEB_LANDSCAPE:"".concat(wv)},xv=[{alias:"handset",priority:2e3,mediaQuery:Cv.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:Cv.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:Cv.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:Cv.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:Cv.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:Cv.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:Cv.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:Cv.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:Cv.WEB_PORTRAIT,overlapping:!0}],Sv=/(\.|-|_)/g;function Av(e){var t=e.length>0?e.charAt(0):"",n=e.length>1?e.slice(1):"";return t.toUpperCase()+n}var Ov=new _i("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:function(){var e=Vi(dv),t=Vi(uv),n=[].concat.apply([],(e||[]).map(function(e){return Array.isArray(e)?e:[e]}));return function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i={};return e.forEach(function(e){i[e.alias]=e}),n.forEach(function(e){i[e.alias]?function(e){if(null==e)throw TypeError("Cannot convert undefined or null to object");for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i1&&void 0!==arguments[1]&&arguments[1];if(e&&e.length){var i=this._observable$.pipe(jm(function(t){return!n||e.indexOf(t.mediaQuery)>-1}));return de(new N(function(n){var i=t.registerQuery(e);if(i.length){var r=i.pop();i.forEach(function(e){n.next(e)}),t.source.next(r)}n.complete()}),i)}return this._observable$}},{key:"registerQuery",value:function(e){var t=this,n=Array.isArray(e)?e:[e],i=[];return function(e,t){var n=e.filter(function(e){return!Lv[e]});if(n.length>0){var i=n.join(", ");try{var r=t.createElement("style");r.setAttribute("type","text/css"),r.styleSheet||r.appendChild(t.createTextNode("\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ".concat(i," {.fx-query-test{ }}\n"))),t.head.appendChild(r),n.forEach(function(e){return Lv[e]=r})}catch(a){console.error(a)}}}(n,this._document),n.forEach(function(e){var n=function(n){t._zone.run(function(){return t.source.next(new ov(n.matches,e))})},r=t.registry.get(e);r||((r=t.buildMQL(e)).addListener(n),t.pendingRemoveListenerFns.push(function(){return r.removeListener(n)}),t.registry.set(e,r)),r.matches&&i.push(new ov(!0,e))}),i}},{key:"ngOnDestroy",value:function(){for(var e;e=this.pendingRemoveListenerFns.pop();)e()}},{key:"buildMQL",value:function(e){return function(e,t){return t&&window.matchMedia("all").addListener?window.matchMedia(e):{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){},onchange:null,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){return!1}}}(e,Jh(this._platformId))}}]),e}()).\u0275fac=function(e){return new(e||Pv)(Ni(Oc),Ni(hc),Ni(sd))},Pv.\u0275prov=Le({factory:function(){return new Pv(Ni(Oc),Ni(hc),Ni(sd))},token:Pv,providedIn:"root"}),Pv),Lv={},Fv={alias:"print",mediaQuery:"print",priority:1e3},Nv=((Mv=function(){function e(t,n,i){b(this,e),this.breakpoints=t,this.layoutConfig=n,this._document=i,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new Vv,this.deactivations=[]}return w(e,[{key:"withPrintQuery",value:function(e){return[].concat(a(e),["print"])}},{key:"isPrintEvent",value:function(e){return e.mediaQuery.startsWith("print")}},{key:"printAlias",get:function(){return this.layoutConfig.printWithBreakpoints||[]}},{key:"printBreakPoints",get:function(){var e=this;return this.printAlias.map(function(t){return e.breakpoints.findByAlias(t)}).filter(function(e){return null!==e})}},{key:"getEventBreakpoints",value:function(e){var t=e.mediaQuery,n=this.breakpoints.findByQuery(t);return(n?[].concat(a(this.printBreakPoints),[n]):this.printBreakPoints).sort(Ev)}},{key:"updateEvent",value:function(e){var t=this.breakpoints.findByQuery(e.mediaQuery);return this.isPrintEvent(e)&&(t=this.getEventBreakpoints(e)[0],e.mediaQuery=t?t.mediaQuery:""),hv(e,t)}},{key:"registerBeforeAfterPrintHooks",value:function(e){var t=this;if(this._document.defaultView&&!this.registeredBeforeAfterPrintHooks){this.registeredBeforeAfterPrintHooks=!0;var n=function(){t.isPrinting||(t.isPrintingBeforeAfterEvent=!0,t.startPrinting(e,t.getEventBreakpoints(new ov(!0,"print"))),e.updateStyles())},i=function(){t.isPrintingBeforeAfterEvent=!1,t.isPrinting&&(t.stopPrinting(e),e.updateStyles())};this._document.defaultView.addEventListener("beforeprint",n),this._document.defaultView.addEventListener("afterprint",i),this.beforePrintEventListeners.push(n),this.afterPrintEventListeners.push(i)}}},{key:"interceptEvents",value:function(e){var t=this;return this.registerBeforeAfterPrintHooks(e),function(n){t.isPrintEvent(n)?n.matches&&!t.isPrinting?(t.startPrinting(e,t.getEventBreakpoints(n)),e.updateStyles()):n.matches||!t.isPrinting||t.isPrintingBeforeAfterEvent||(t.stopPrinting(e),e.updateStyles()):t.collectActivations(n)}}},{key:"blockPropagation",value:function(){var e=this;return function(t){return!(e.isPrinting||e.isPrintEvent(t))}}},{key:"startPrinting",value:function(e,t){this.isPrinting=!0,e.activatedBreakpoints=this.queue.addPrintBreakpoints(t)}},{key:"stopPrinting",value:function(e){e.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}},{key:"collectActivations",value:function(e){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(e.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{var t=this.breakpoints.findByQuery(e.mediaQuery);t&&(this.deactivations.push(t),this.deactivations.sort(Ev))}}},{key:"ngOnDestroy",value:function(){var e=this;this.beforePrintEventListeners.forEach(function(t){return e._document.defaultView.removeEventListener("beforeprint",t)}),this.afterPrintEventListeners.forEach(function(t){return e._document.defaultView.removeEventListener("afterprint",t)})}}]),e}()).\u0275fac=function(e){return new(e||Mv)(Ni(Iv),Ni(uv),Ni(sd))},Mv.\u0275prov=Le({factory:function(){return new Mv(Ni(Iv),Ni(uv),Ni(sd))},token:Mv,providedIn:"root"}),Mv),Vv=function(){function e(){b(this,e),this.printBreakpoints=[]}return w(e,[{key:"addPrintBreakpoints",value:function(e){var t=this;return e.push(Fv),e.sort(Ev),e.forEach(function(e){return t.addBreakpoint(e)}),this.printBreakpoints}},{key:"addBreakpoint",value:function(e){e&&void 0===this.printBreakpoints.find(function(t){return t.mediaQuery===e.mediaQuery})&&(this.printBreakpoints=function(e){return!!e&&e.mediaQuery.startsWith("print")}(e)?[e].concat(a(this.printBreakpoints)):[].concat(a(this.printBreakpoints),[e]))}},{key:"clear",value:function(){this.printBreakpoints=[]}}]),e}();function Bv(e){for(var t in e){var n=e[t]||"";switch(t){case"display":e.display="flex"===n?["-webkit-flex","flex"]:"inline-flex"===n?["-webkit-inline-flex","inline-flex"]:n;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":e["-webkit-"+t]=n;break;case"flex-direction":n=n||"row",e["-webkit-flex-direction"]=n,e["flex-direction"]=n;break;case"order":e.order=e["-webkit-"+t]=isNaN(+n)?"0":n}}return e}var Hv,zv=((Hv=function(){function e(t,n,i,r){b(this,e),this._serverStylesheet=t,this._serverModuleLoaded=n,this._platformId=i,this.layoutConfig=r}return w(e,[{key:"applyStyleToElement",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i={};"string"==typeof t&&(i[t]=n,t=i),i=this.layoutConfig.disableVendorPrefixes?t:Bv(t),this._applyMultiValueStyleToElement(i,e)}},{key:"applyStyleToElements",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=this.layoutConfig.disableVendorPrefixes?e:Bv(e);n.forEach(function(e){t._applyMultiValueStyleToElement(i,e)})}},{key:"getFlowDirection",value:function(e){var t=this.lookupStyle(e,"flex-direction");return[t||"row",this.lookupInlineStyle(e,"flex-direction")||ef(this._platformId)&&this._serverModuleLoaded?t:""]}},{key:"hasWrap",value:function(e){return"wrap"===this.lookupStyle(e,"flex-wrap")}},{key:"lookupAttributeValue",value:function(e,t){return e.getAttribute(t)||""}},{key:"lookupInlineStyle",value:function(e,t){return Jh(this._platformId)?e.style.getPropertyValue(t):this._getServerStyle(e,t)}},{key:"lookupStyle",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i="";return e&&((i=this.lookupInlineStyle(e,t))||(Jh(this._platformId)?n||(i=getComputedStyle(e).getPropertyValue(t)):this._serverModuleLoaded&&(i=this._serverStylesheet.getStyleForElement(e,t)))),i?i.trim():""}},{key:"_applyMultiValueStyleToElement",value:function(e,t){var n=this;Object.keys(e).sort().forEach(function(i){var r=e[i],a=Array.isArray(r)?r:[r];a.sort();var o,l=s(a);try{for(l.s();!(o=l.n()).done;){var u=o.value;u=u?u+"":"",Jh(n._platformId)||!n._serverModuleLoaded?Jh(n._platformId)?t.style.setProperty(i,u):n._setServerStyle(t,i,u):n._serverStylesheet.addStyleToElement(t,i,u)}}catch(c){l.e(c)}finally{l.f()}})}},{key:"_setServerStyle",value:function(e,t,n){t=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();var i=this._readStyleAttribute(e);i[t]=n||"",this._writeStyleAttribute(e,i)}},{key:"_getServerStyle",value:function(e,t){return this._readStyleAttribute(e)[t]||""}},{key:"_readStyleAttribute",value:function(e){var t={},n=e.getAttribute("style");if(n)for(var i=n.split(/;+/g),r=0;r0){var o=a.indexOf(":");if(-1===o)throw new Error("Invalid CSS style: ".concat(a));t[a.substr(0,o).trim()]=a.substr(o+1).trim()}}return t}},{key:"_writeStyleAttribute",value:function(e,t){var n="";for(var i in t)t[i]&&(n+=i+":"+t[i]+";");e.setAttribute("style",n)}}]),e}()).\u0275fac=function(e){return new(e||Hv)(Ni(sv),Ni(cv),Ni(hc),Ni(uv))},Hv.\u0275prov=Le({factory:function(){return new Hv(Ni(sv),Ni(cv),Ni(hc),Ni(uv))},token:Hv,providedIn:"root"}),Hv),Gv=function(){function e(){b(this,e),this.shouldCache=!0}return w(e,[{key:"sideEffect",value:function(e,t,n){}}]),e}();function jv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"1",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"1",i=[t,n,e],r=e.indexOf("calc");if(r>0){i[2]=Uv(e.substring(r).trim());var a=e.substr(0,r).trim().split(" ");2==a.length&&(i[0]=a[0],i[1]=a[1])}else if(0==r)i[2]=Uv(e.trim());else{var o=e.split(" ");i=3===o.length?o:[t,n,e]}return i}function Uv(e){return e.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}var Wv,qv=((Wv=function(){function e(t,n,i){b(this,e),this.matchMedia=t,this.breakpoints=n,this.hook=i,this.activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new j,this.observeActivations()}return w(e,[{key:"activatedAlias",get:function(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}},{key:"onMediaChange",value:function(e){var t=this.findByQuery(e.mediaQuery);t&&((e=hv(e,t)).matches&&-1===this.activatedBreakpoints.indexOf(t)?(this.activatedBreakpoints.push(t),this.activatedBreakpoints.sort(Ev),this.updateStyles()):e.matches||-1===this.activatedBreakpoints.indexOf(t)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(t),1),this.activatedBreakpoints.sort(Ev),this.updateStyles()))}},{key:"init",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];Yv(this.updateMap,e,t,n),Yv(this.clearMap,e,t,i),this.buildElementKeyMap(e,t),this.watchExtraTriggers(e,t,r)}},{key:"getValue",value:function(e,t,n){var i=this.elementMap.get(e);if(i){var r=void 0!==n?i.get(n):this.getActivatedValues(i,t);if(r)return r.get(t)}}},{key:"hasValue",value:function(e,t){var n=this.elementMap.get(e);if(n){var i=this.getActivatedValues(n,t);if(i)return void 0!==i.get(t)||!1}return!1}},{key:"setValue",value:function(e,t,n,i){var r=this.elementMap.get(e);if(r){var a=(r.get(i)||new Map).set(t,n);r.set(i,a),this.elementMap.set(e,r)}else r=(new Map).set(i,(new Map).set(t,n)),this.elementMap.set(e,r);var o=this.getValue(e,t);void 0!==o&&this.updateElement(e,t,o)}},{key:"trackValue",value:function(e,t){return this.subject.asObservable().pipe(jm(function(n){return n.element===e&&n.key===t}))}},{key:"updateStyles",value:function(){var e=this;this.elementMap.forEach(function(t,n){var i=new Set(e.elementKeyMap.get(n)),r=e.getActivatedValues(t);r&&r.forEach(function(t,r){e.updateElement(n,r,t),i.delete(r)}),i.forEach(function(i){if(r=e.getActivatedValues(t,i)){var a=r.get(i);e.updateElement(n,i,a)}else e.clearElement(n,i)})})}},{key:"clearElement",value:function(e,t){var n=this.clearMap.get(e);if(n){var i=n.get(t);i&&(i(),this.subject.next({element:e,key:t,value:""}))}}},{key:"updateElement",value:function(e,t,n){var i=this.updateMap.get(e);if(i){var r=i.get(t);r&&(r(n),this.subject.next({element:e,key:t,value:n}))}}},{key:"releaseElement",value:function(e){var t=this.watcherMap.get(e);t&&(t.forEach(function(e){return e.unsubscribe()}),this.watcherMap.delete(e));var n=this.elementMap.get(e);n&&(n.forEach(function(e,t){return n.delete(t)}),this.elementMap.delete(e))}},{key:"triggerUpdate",value:function(e,t){var n=this,i=this.elementMap.get(e);if(i){var r=this.getActivatedValues(i,t);r&&(t?this.updateElement(e,t,r.get(t)):r.forEach(function(t,i){return n.updateElement(e,i,t)}))}}},{key:"buildElementKeyMap",value:function(e,t){var n=this.elementKeyMap.get(e);n||(n=new Set,this.elementKeyMap.set(e,n)),n.add(t)}},{key:"watchExtraTriggers",value:function(e,t,n){var i=this;if(n&&n.length){var r=this.watcherMap.get(e);if(r||(r=new Map,this.watcherMap.set(e,r)),!r.get(t)){var o=de.apply(void 0,a(n)).subscribe(function(){var n=i.getValue(e,t);i.updateElement(e,t,n)});r.set(t,o)}}}},{key:"findByQuery",value:function(e){return this.breakpoints.findByQuery(e)}},{key:"getActivatedValues",value:function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0;return $v(e)?Number(e):t}function $v(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function Kv(e){return Array.isArray(e)?e:[e]}function Zv(e){return null==e?"":"string"==typeof e?e:"".concat(e,"px")}function Jv(e){return e instanceof Ol?e.nativeElement:e}function ey(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\s+/,n=[];if(null!=e){var i,r=Array.isArray(e)?e:"".concat(e).split(t),a=s(r);try{for(a.s();!(i=a.n()).done;){var o=i.value,l="".concat(o).trim();l&&n.push(l)}}catch(u){a.e(u)}finally{a.f()}}return n}new Map;var ty,ny,iy,ry,ay,oy=((ty=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o,s,l){var u;return b(this,n),(u=t.call(this,e,null,i,r)).ngClassInstance=l,u.DIRECTIVE_KEY="ngClass",u.ngClassInstance||(u.ngClassInstance=new yh(a,o,e,s)),u.init(),u.setValue("",""),u}return w(n,[{key:"klass",set:function(e){this.ngClassInstance.klass=e,this.setValue(e,"")}},{key:"updateWithValue",value:function(e){this.ngClassInstance.ngClass=e,this.ngClassInstance.ngDoCheck()}},{key:"ngDoCheck",value:function(){this.ngClassInstance.ngDoCheck()}}]),n}(gv)).\u0275fac=function(e){return new(e||ty)(ls(Ol),ls(zv),ls(qv),ls(ql),ls(Ql),ls(Pl),ls(yh,10))},ty.\u0275dir=bt({type:ty,inputs:{klass:["class","klass"]},features:[jo]}),ty),sy=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"],ly=((ny=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments)).inputs=sy,e}return n}(oy)).\u0275fac=function(e){return uy(e||ny)},ny.\u0275dir=bt({type:ny,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[jo]}),ny),uy=fi(ly),cy=((iy=function(e){f(n,e);var t=m(n);function n(){return b(this,n),t.apply(this,arguments)}return w(n,[{key:"buildStyles",value:function(e,t){return{display:"true"===e?t.display||(t.isServer?"initial":""):"none"}}}]),n}(Gv)).\u0275fac=function(e){return dy(e||iy)},iy.\u0275prov=Le({factory:function(){return new iy},token:iy,providedIn:"root"}),iy),dy=fi(cy),hy=((ry=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o,s,l){var u;return b(this,n),(u=t.call(this,e,i,r,a)).layoutConfig=o,u.platformId=s,u.serverModuleLoaded=l,u.DIRECTIVE_KEY="show-hide",u.display="",u.hasLayout=!1,u.hasFlexChild=!1,u}return w(n,[{key:"ngAfterViewInit",value:function(){this.trackExtraTriggers();for(var e=Array.from(this.nativeElement.children),t=0;t0&&void 0!==arguments[0])||arguments[0];if(""!==e){var t=ef(this.platformId);this.addStyles(e?"true":"false",{display:this.display,isServer:t}),t&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display",""),this.marshal.triggerUpdate(this.parentElement,"layout-gap")}}}]),n}(gv)).\u0275fac=function(e){return new(e||ry)(ls(Ol),ls(cy),ls(zv),ls(qv),ls(uv),ls(hc),ls(cv))},ry.\u0275dir=bt({type:ry,features:[jo,It]}),ry),fy=new WeakMap,py=["fxShow","fxShow.print","fxShow.xs","fxShow.sm","fxShow.md","fxShow.lg","fxShow.xl","fxShow.lt-sm","fxShow.lt-md","fxShow.lt-lg","fxShow.lt-xl","fxShow.gt-xs","fxShow.gt-sm","fxShow.gt-md","fxShow.gt-lg","fxHide","fxHide.print","fxHide.xs","fxHide.sm","fxHide.md","fxHide.lg","fxHide.xl","fxHide.lt-sm","fxHide.lt-md","fxHide.lt-lg","fxHide.lt-xl","fxHide.gt-xs","fxHide.gt-sm","fxHide.gt-md","fxHide.gt-lg"],my=((ay=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments)).inputs=py,e}return n}(hy)).\u0275fac=function(e){return gy(e||ay)},ay.\u0275dir=bt({type:ay,selectors:[["","fxShow",""],["","fxShow.print",""],["","fxShow.xs",""],["","fxShow.sm",""],["","fxShow.md",""],["","fxShow.lg",""],["","fxShow.xl",""],["","fxShow.lt-sm",""],["","fxShow.lt-md",""],["","fxShow.lt-lg",""],["","fxShow.lt-xl",""],["","fxShow.gt-xs",""],["","fxShow.gt-sm",""],["","fxShow.gt-md",""],["","fxShow.gt-lg",""],["","fxHide",""],["","fxHide.print",""],["","fxHide.xs",""],["","fxHide.sm",""],["","fxHide.md",""],["","fxHide.lg",""],["","fxHide.xl",""],["","fxHide.lt-sm",""],["","fxHide.lt-md",""],["","fxHide.lt-lg",""],["","fxHide.lt-xl",""],["","fxHide.gt-xs",""],["","fxHide.gt-sm",""],["","fxHide.gt-md",""],["","fxHide.gt-lg",""]],inputs:{fxShow:"fxShow","fxShow.print":"fxShow.print","fxShow.xs":"fxShow.xs","fxShow.sm":"fxShow.sm","fxShow.md":"fxShow.md","fxShow.lg":"fxShow.lg","fxShow.xl":"fxShow.xl","fxShow.lt-sm":"fxShow.lt-sm","fxShow.lt-md":"fxShow.lt-md","fxShow.lt-lg":"fxShow.lt-lg","fxShow.lt-xl":"fxShow.lt-xl","fxShow.gt-xs":"fxShow.gt-xs","fxShow.gt-sm":"fxShow.gt-sm","fxShow.gt-md":"fxShow.gt-md","fxShow.gt-lg":"fxShow.gt-lg",fxHide:"fxHide","fxHide.print":"fxHide.print","fxHide.xs":"fxHide.xs","fxHide.sm":"fxHide.sm","fxHide.md":"fxHide.md","fxHide.lg":"fxHide.lg","fxHide.xl":"fxHide.xl","fxHide.lt-sm":"fxHide.lt-sm","fxHide.lt-md":"fxHide.lt-md","fxHide.lt-lg":"fxHide.lt-lg","fxHide.lt-xl":"fxHide.lt-xl","fxHide.gt-xs":"fxHide.gt-xs","fxHide.gt-sm":"fxHide.gt-sm","fxHide.gt-md":"fxHide.gt-md","fxHide.gt-lg":"fxHide.gt-lg"},features:[jo]}),ay),gy=fi(my),vy=function e(t,n){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];b(this,e),this.key=t,this.value=n,this.key=i?t.replace(/['"]/g,"").trim():t.trim(),this.value=i?n.replace(/['"]/g,"").trim():n.trim(),this.value=this.value.replace(/;/,"")};function yy(e){var t=typeof e;return"object"===t?e.constructor===Array?"array":e.constructor===Set?"set":"object":t}function _y(e){var n=t(e.split(":")),i=n[0],r=n.slice(1);return new vy(i,r.join(":"))}function by(e,t){return t.key&&(e[t.key]=t.value),e}var ky,wy,Cy=((ky=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o,s,l,u,c){var d;b(this,n),(d=t.call(this,e,null,i,r)).sanitizer=a,d.ngStyleInstance=l,d.DIRECTIVE_KEY="ngStyle",d.ngStyleInstance||(d.ngStyleInstance=new Rh(e,o,s)),d.init();var h=d.nativeElement.getAttribute("style")||"";return d.fallbackStyles=d.buildStyleMap(h),d.isServer=u&&ef(c),d}return w(n,[{key:"updateWithValue",value:function(e){var t=this.buildStyleMap(e);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),t),this.isServer&&this.applyStyleToElement(t),this.ngStyleInstance.ngDoCheck()}},{key:"clearStyles",value:function(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}},{key:"buildStyleMap",value:function(e){var t,n,i,r=this,a=function(e){return r.sanitizer.sanitize(Er.STYLE,e)||""};if(e)switch(yy(e)){case"string":return Oy(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:";";return String(e).trim().split(t).map(function(e){return e.trim()}).filter(function(e){return""!==e})}(e),a);case"array":return Oy(e,a);case"set":default:return n=a,i=[],"set"===yy(t=e)?t.forEach(function(e){return i.push(e)}):Object.keys(t).forEach(function(e){i.push("".concat(e,":").concat(t[e]))}),function(e,t){return e.map(_y).filter(function(e){return!!e}).map(function(e){return t&&(e.value=t(e.value)),e}).reduce(by,{})}(i,n)}return{}}},{key:"ngDoCheck",value:function(){this.ngStyleInstance.ngDoCheck()}}]),n}(gv)).\u0275fac=function(e){return new(e||ky)(ls(Ol),ls(zv),ls(qv),ls(Hf),ls(Ql),ls(Pl),ls(Rh,10),ls(cv),ls(hc))},ky.\u0275dir=bt({type:ky,features:[jo]}),ky),xy=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"],Sy=((wy=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments)).inputs=xy,e}return n}(Cy)).\u0275fac=function(e){return Ay(e||wy)},wy.\u0275dir=bt({type:wy,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[jo]}),wy),Ay=fi(Sy);function Oy(e,t){return e.map(_y).filter(function(e){return!!e}).map(function(e){return t&&(e.value=t(e.value)),e}).reduce(by,{})}var Ey,Ty,Py,Dy=((Ey=function e(){b(this,e)}).\u0275fac=function(e){return new(e||Ey)},Ey.\u0275mod=yt({type:Ey}),Ey.\u0275inj=Ne({imports:[[av]]}),Ey),My=new _i("cdk-dir-doc",{providedIn:"root",factory:function(){return Vi(sd)}}),Iy=((Py=function(){function e(t){if(b(this,e),this.value="ltr",this.change=new Vu,t){var n=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||n;this.value="ltr"===i||"rtl"===i?i:"ltr"}}return w(e,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),e}()).\u0275fac=function(e){return new(e||Py)(Ni(My,8))},Py.\u0275prov=Le({factory:function(){return new Py(Ni(My,8))},token:Py,providedIn:"root"}),Py),Ry=((Ty=function e(){b(this,e)}).\u0275fac=function(e){return new(e||Ty)},Ty.\u0275mod=yt({type:Ty}),Ty.\u0275inj=Ne({}),Ty),Ly=["row","column","row-reverse","column-reverse"];function Fy(e){var t=n((e=e?e.toLowerCase():"").split(" "),3),i=t[0],r=t[1],a=t[2];return Ly.find(function(e){return e===i})||(i=Ly[0]),"inline"===r&&(r="inline"!==a?a:"",a="inline"),[i,Vy(r),!!a]}function Ny(e){return n(Fy(e),1)[0].indexOf("row")>-1}function Vy(e){if(e)switch(e.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":e="wrap-reverse";break;case"no":case"none":case"nowrap":e="nowrap";break;default:e="wrap"}return e}var By,Hy,zy,Gy,jy,Uy,Wy=((By=function(e){f(i,e);var t=m(i);function i(){return b(this,i),t.apply(this,arguments)}return w(i,[{key:"buildStyles",value:function(e){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];return{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":e,"flex-wrap":t||null}}((t=n(Fy(e),3))[0],t[1],t[2]);var t}}]),i}(Gv)).\u0275fac=function(e){return qy(e||By)},By.\u0275prov=Le({factory:function(){return new By},token:By,providedIn:"root"}),By),qy=fi(Wy),Yy=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"],Qy=((zy=function(e){f(n,e);var t=m(n);function n(e,i,r,a){var o;return b(this,n),(o=t.call(this,e,r,i,a)).DIRECTIVE_KEY="layout",o.styleCache=Ky,o.init(),o}return n}(gv)).\u0275fac=function(e){return new(e||zy)(ls(Ol),ls(zv),ls(Wy),ls(qv))},zy.\u0275dir=bt({type:zy,features:[jo]}),zy),Xy=((Hy=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments)).inputs=Yy,e}return n}(Qy)).\u0275fac=function(e){return $y(e||Hy)},Hy.\u0275dir=bt({type:Hy,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[jo]}),Hy),$y=fi(Xy),Ky=new Map,Zy={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null},Jy=((Gy=function(e){f(i,e);var t=m(i);function i(e){var n;return b(this,i),(n=t.call(this))._styler=e,n}return w(i,[{key:"buildStyles",value:function(e,t){return e.endsWith(l_)?(i=e=e.slice(0,e.indexOf(l_)),r=t.directionality,a=n(i.split(" "),2),o=a[0],l="0px",u=(s=function(e){return"-".concat(e)})(a[1]||o),c="0px","rtl"===r?c=s(o):l=s(o),{margin:"0px ".concat(l," ").concat(u," ").concat(c)}):{};var i,r,a,o,s,l,u,c}},{key:"sideEffect",value:function(e,t,i){var r,a,o,s,l,u,c,d=i.items;if(e.endsWith(l_)){var h=(r=e=e.slice(0,e.indexOf(l_)),a=i.directionality,o=n(r.split(" "),2),s=o[0],l=o[1],u="0px",c="0px","rtl"===a?c=s:u=s,{padding:"0px ".concat(u," ").concat(l||s," ").concat(c)});this._styler.applyStyleToElements(h,i.items)}else{var f=d.pop(),p=function(e,t){var n=u_(t.directionality,t.layout),i=Object.assign({},Zy);return i[n]=e,i}(e,i);this._styler.applyStyleToElements(p,d),this._styler.applyStyleToElements(Zy,[f])}}}]),i}(Gv)).\u0275fac=function(e){return new(e||Gy)(Ni(zv))},Gy.\u0275prov=Le({factory:function(){return new Gy(Ni(zv))},token:Gy,providedIn:"root"}),Gy),e_=["fxLayoutGap","fxLayoutGap.xs","fxLayoutGap.sm","fxLayoutGap.md","fxLayoutGap.lg","fxLayoutGap.xl","fxLayoutGap.lt-sm","fxLayoutGap.lt-md","fxLayoutGap.lt-lg","fxLayoutGap.lt-xl","fxLayoutGap.gt-xs","fxLayoutGap.gt-sm","fxLayoutGap.gt-md","fxLayoutGap.gt-lg"],t_=((Uy=function(t){f(i,t);var n=m(i);function i(e,t,r,a,o,s){var l;b(this,i),(l=n.call(this,e,o,a,s)).zone=t,l.directionality=r,l.styleUtils=a,l.layout="row",l.DIRECTIVE_KEY="layout-gap",l.observerSubject=new j;var u=[l.directionality.change,l.observerSubject.asObservable()];return l.init(u),l.marshal.trackValue(l.nativeElement,"layout").pipe(Pp(l.destroySubject)).subscribe(l.onLayoutChange.bind(v(l))),l}return w(i,[{key:"childrenNodes",get:function(){for(var e=this.nativeElement.children,t=[],n=e.length;n--;)t[n]=e[n];return t}},{key:"ngAfterContentInit",value:function(){this.buildChildObservable(),this.triggerUpdate()}},{key:"ngOnDestroy",value:function(){h(_(i.prototype),"ngOnDestroy",this).call(this),this.observer&&this.observer.disconnect()}},{key:"onLayoutChange",value:function(e){var t=this,n=e.value.split(" ");this.layout=n[0],Ly.find(function(e){return e===t.layout})||(this.layout="row"),this.triggerUpdate()}},{key:"updateWithValue",value:function(e){var t=this,n=this.childrenNodes.filter(function(e){return 1===e.nodeType&&t.willDisplay(e)}).sort(function(e,n){var i=+t.styler.lookupStyle(e,"order"),r=+t.styler.lookupStyle(n,"order");return isNaN(i)||isNaN(r)||i===r?0:i>r?1:-1});if(n.length>0){var i=this.directionality.value,r=this.layout;"row"===r&&"rtl"===i?this.styleCache=r_:"row"===r&&"rtl"!==i?this.styleCache=o_:"column"===r&&"rtl"===i?this.styleCache=a_:"column"===r&&"rtl"!==i&&(this.styleCache=s_),this.addStyles(e,{directionality:i,items:n,layout:r})}}},{key:"clearStyles",value:function(){var t=Object.keys(this.mru).length>0,n=t?"padding":u_(this.directionality.value,this.layout);t&&h(_(i.prototype),"clearStyles",this).call(this),this.styleUtils.applyStyleToElements(e({},n,""),this.childrenNodes)}},{key:"willDisplay",value:function(e){var t=this.marshal.getValue(e,"show-hide");return!0===t||void 0===t&&"none"!==this.styleUtils.lookupStyle(e,"display")}},{key:"buildChildObservable",value:function(){var e=this;this.zone.runOutsideAngular(function(){"undefined"!=typeof MutationObserver&&(e.observer=new MutationObserver(function(t){t.some(function(e){return e.addedNodes&&e.addedNodes.length>0||e.removedNodes&&e.removedNodes.length>0})&&e.observerSubject.next()}),e.observer.observe(e.nativeElement,{childList:!0}))})}}]),i}(gv)).\u0275fac=function(e){return new(e||Uy)(ls(Ol),ls(Oc),ls(Iy),ls(zv),ls(Jy),ls(qv))},Uy.\u0275dir=bt({type:Uy,features:[jo]}),Uy),n_=((jy=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments)).inputs=e_,e}return n}(t_)).\u0275fac=function(e){return i_(e||jy)},jy.\u0275dir=bt({type:jy,selectors:[["","fxLayoutGap",""],["","fxLayoutGap.xs",""],["","fxLayoutGap.sm",""],["","fxLayoutGap.md",""],["","fxLayoutGap.lg",""],["","fxLayoutGap.xl",""],["","fxLayoutGap.lt-sm",""],["","fxLayoutGap.lt-md",""],["","fxLayoutGap.lt-lg",""],["","fxLayoutGap.lt-xl",""],["","fxLayoutGap.gt-xs",""],["","fxLayoutGap.gt-sm",""],["","fxLayoutGap.gt-md",""],["","fxLayoutGap.gt-lg",""]],inputs:{fxLayoutGap:"fxLayoutGap","fxLayoutGap.xs":"fxLayoutGap.xs","fxLayoutGap.sm":"fxLayoutGap.sm","fxLayoutGap.md":"fxLayoutGap.md","fxLayoutGap.lg":"fxLayoutGap.lg","fxLayoutGap.xl":"fxLayoutGap.xl","fxLayoutGap.lt-sm":"fxLayoutGap.lt-sm","fxLayoutGap.lt-md":"fxLayoutGap.lt-md","fxLayoutGap.lt-lg":"fxLayoutGap.lt-lg","fxLayoutGap.lt-xl":"fxLayoutGap.lt-xl","fxLayoutGap.gt-xs":"fxLayoutGap.gt-xs","fxLayoutGap.gt-sm":"fxLayoutGap.gt-sm","fxLayoutGap.gt-md":"fxLayoutGap.gt-md","fxLayoutGap.gt-lg":"fxLayoutGap.gt-lg"},features:[jo]}),jy),i_=fi(n_),r_=new Map,a_=new Map,o_=new Map,s_=new Map,l_=" grid";function u_(e,t){switch(t){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":return"rtl"===e?"margin-left":"margin-right";case"row-reverse":return"rtl"===e?"margin-right":"margin-left";default:return"rtl"===e?"margin-left":"margin-right"}}function c_(e){if(null==e)throw TypeError("Cannot convert undefined or null to object");for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i-1?"column":"row",l=Ny(s)?"max-width":"max-height",u=Ny(s)?"min-width":"min-height",c=String(o).indexOf("calc")>-1,d=c||"auto"===o,h=String(o).indexOf("%")>-1&&!c,f=String(o).indexOf("px")>-1||String(o).indexOf("rem")>-1||String(o).indexOf("em")>-1||String(o).indexOf("vw")>-1||String(o).indexOf("vh")>-1,p=c||f;a="0"==a?0:a;var m=!(r="0"==r?0:r)&&!a,g={},v={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(o||""){case"":var y=!1!==this.layoutConfig.useColumnBasisZero;o="row"===s?"0%":y?"0.000000001px":"auto";break;case"initial":case"nogrow":r=0,o="auto";break;case"grow":o="100%";break;case"noshrink":a=0,o="auto";break;case"auto":break;case"none":r=0,a=0,o="auto";break;default:p||h||isNaN(o)||(o+="%"),"0%"===o&&(p=!0),"0px"===o&&(o="0%"),g=c_(v,c?{"flex-grow":r,"flex-shrink":a,"flex-basis":p?o:"100%"}:{flex:"".concat(r," ").concat(a," ").concat(p?o:"100%")})}return g.flex||g["flex-grow"]||(g=c_(v,c?{"flex-grow":r,"flex-shrink":a,"flex-basis":o}:{flex:"".concat(r," ").concat(a," ").concat(o)})),"0%"!==o&&"0px"!==o&&"0.000000001px"!==o&&"auto"!==o&&(g[u]=m||p&&r?o:null,g[l]=m||!d&&a?o:null),g[u]||g[l]?n.hasWrap&&(g[c?"flex-basis":"flex"]=g[l]?c?g[l]:"".concat(r," ").concat(a," ").concat(g[l]):c?g[u]:"".concat(r," ").concat(a," ").concat(g[u])):g=c_(v,c?{"flex-grow":r,"flex-shrink":a,"flex-basis":o}:{flex:"".concat(r," ").concat(a," ").concat(o)}),c_(g,{"box-sizing":"border-box"})}}]),i}(Gv)).\u0275fac=function(e){return new(e||d_)(Ni(uv))},d_.\u0275prov=Le({factory:function(){return new d_(Ni(uv))},token:d_,providedIn:"root"}),d_),m_=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"],g_=((f_=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o){var s;return b(this,n),(s=t.call(this,e,a,i,o)).layoutConfig=r,s.marshal=o,s.DIRECTIVE_KEY="flex",s.direction=void 0,s.wrap=void 0,s.flexGrow="1",s.flexShrink="1",s.init(),s}return w(n,[{key:"shrink",get:function(){return this.flexShrink},set:function(e){this.flexShrink=e||"1",this.triggerReflow()}},{key:"grow",get:function(){return this.flexGrow},set:function(e){this.flexGrow=e||"1",this.triggerReflow()}},{key:"ngOnInit",value:function(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(Pp(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(Pp(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}},{key:"onLayoutChange",value:function(e){var t=e.value.split(" ");this.direction=t[0],this.wrap=void 0!==t[1]&&"wrap"===t[1],this.triggerUpdate()}},{key:"updateWithValue",value:function(e){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));var t=this.direction,n=t.startsWith("row"),i=this.wrap;n&&i?this.styleCache=k_:n&&!i?this.styleCache=__:!n&&i?this.styleCache=w_:n||i||(this.styleCache=b_);var r=jv(String(e).replace(";",""),this.flexGrow,this.flexShrink);this.addStyles(r.join(" "),{direction:t,hasWrap:i})}},{key:"triggerReflow",value:function(){var e=this.activatedValue;if(void 0!==e){var t=jv(e+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,t.join(" "))}}}]),n}(gv)).\u0275fac=function(e){return new(e||f_)(ls(Ol),ls(zv),ls(uv),ls(p_),ls(qv))},f_.\u0275dir=bt({type:f_,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[jo]}),f_),v_=((h_=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments)).inputs=m_,e}return n}(g_)).\u0275fac=function(e){return y_(e||h_)},h_.\u0275dir=bt({type:h_,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[jo]}),h_),y_=fi(v_),__=new Map,b_=new Map,k_=new Map,w_=new Map;new Map;var C_,x_,S_,A_,O_,E_,T_=((C_=function(t){f(i,t);var n=m(i);function i(){return b(this,i),n.apply(this,arguments)}return w(i,[{key:"buildStyles",value:function(t,n){""===t&&(t="0");var i=String(t).indexOf("%")>-1;String(t).indexOf("px")>-1||i||isNaN(+t)||(t+="%");var r=n.isRtl?"margin-right":"margin-left";return Ny(n.layout)?e({},r,"".concat(t)):{"margin-top":"".concat(t)}}}]),i}(Gv)).\u0275fac=function(e){return P_(e||C_)},C_.\u0275prov=Le({factory:function(){return new C_},token:C_,providedIn:"root"}),C_),P_=fi(T_),D_=["fxFlexOffset","fxFlexOffset.xs","fxFlexOffset.sm","fxFlexOffset.md","fxFlexOffset.lg","fxFlexOffset.xl","fxFlexOffset.lt-sm","fxFlexOffset.lt-md","fxFlexOffset.lt-lg","fxFlexOffset.lt-xl","fxFlexOffset.gt-xs","fxFlexOffset.gt-sm","fxFlexOffset.gt-md","fxFlexOffset.gt-lg"],M_=((S_=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o){var s;return b(this,n),(s=t.call(this,e,r,o,a)).directionality=i,s.DIRECTIVE_KEY="flex-offset",s.init([s.directionality.change]),s.parentElement&&s.marshal.trackValue(s.parentElement,"layout-gap").pipe(Pp(s.destroySubject)).subscribe(s.triggerUpdate.bind(v(s))),s}return w(n,[{key:"updateWithValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.getFlexFlowDirection(this.parentElement,!0),n="rtl"===this.directionality.value;"row"===t&&n?this.styleCache=L_:"row"!==t||n?"column"===t&&n?this.styleCache=F_:"column"!==t||n||(this.styleCache=V_):this.styleCache=N_,this.addStyles(e+"",{layout:t,isRtl:n})}}]),n}(gv)).\u0275fac=function(e){return new(e||S_)(ls(Ol),ls(Iy),ls(T_),ls(qv),ls(zv))},S_.\u0275dir=bt({type:S_,features:[jo]}),S_),I_=((x_=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments)).inputs=D_,e}return n}(M_)).\u0275fac=function(e){return R_(e||x_)},x_.\u0275dir=bt({type:x_,selectors:[["","fxFlexOffset",""],["","fxFlexOffset.xs",""],["","fxFlexOffset.sm",""],["","fxFlexOffset.md",""],["","fxFlexOffset.lg",""],["","fxFlexOffset.xl",""],["","fxFlexOffset.lt-sm",""],["","fxFlexOffset.lt-md",""],["","fxFlexOffset.lt-lg",""],["","fxFlexOffset.lt-xl",""],["","fxFlexOffset.gt-xs",""],["","fxFlexOffset.gt-sm",""],["","fxFlexOffset.gt-md",""],["","fxFlexOffset.gt-lg",""]],inputs:{fxFlexOffset:"fxFlexOffset","fxFlexOffset.xs":"fxFlexOffset.xs","fxFlexOffset.sm":"fxFlexOffset.sm","fxFlexOffset.md":"fxFlexOffset.md","fxFlexOffset.lg":"fxFlexOffset.lg","fxFlexOffset.xl":"fxFlexOffset.xl","fxFlexOffset.lt-sm":"fxFlexOffset.lt-sm","fxFlexOffset.lt-md":"fxFlexOffset.lt-md","fxFlexOffset.lt-lg":"fxFlexOffset.lt-lg","fxFlexOffset.lt-xl":"fxFlexOffset.lt-xl","fxFlexOffset.gt-xs":"fxFlexOffset.gt-xs","fxFlexOffset.gt-sm":"fxFlexOffset.gt-sm","fxFlexOffset.gt-md":"fxFlexOffset.gt-md","fxFlexOffset.gt-lg":"fxFlexOffset.gt-lg"},features:[jo]}),x_),R_=fi(I_),L_=new Map,F_=new Map,N_=new Map,V_=new Map,B_=((A_=function(e){f(n,e);var t=m(n);function n(){return b(this,n),t.apply(this,arguments)}return w(n,[{key:"buildStyles",value:function(e){var t={};switch(e=e||"stretch"){case"start":t["align-self"]="flex-start";break;case"end":t["align-self"]="flex-end";break;default:t["align-self"]=e}return t}}]),n}(Gv)).\u0275fac=function(e){return H_(e||A_)},A_.\u0275prov=Le({factory:function(){return new A_},token:A_,providedIn:"root"}),A_),H_=fi(B_),z_=["fxFlexAlign","fxFlexAlign.xs","fxFlexAlign.sm","fxFlexAlign.md","fxFlexAlign.lg","fxFlexAlign.xl","fxFlexAlign.lt-sm","fxFlexAlign.lt-md","fxFlexAlign.lt-lg","fxFlexAlign.lt-xl","fxFlexAlign.gt-xs","fxFlexAlign.gt-sm","fxFlexAlign.gt-md","fxFlexAlign.gt-lg"],G_=((O_=function(e){f(n,e);var t=m(n);function n(e,i,r,a){var o;return b(this,n),(o=t.call(this,e,r,i,a)).DIRECTIVE_KEY="flex-align",o.styleCache=j_,o.init(),o}return n}(gv)).\u0275fac=function(e){return new(e||O_)(ls(Ol),ls(zv),ls(B_),ls(qv))},O_.\u0275dir=bt({type:O_,features:[jo]}),O_),j_=new Map,U_=((E_=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments)).inputs=z_,e}return n}(G_)).\u0275fac=function(e){return W_(e||E_)},E_.\u0275dir=bt({type:E_,selectors:[["","fxFlexAlign",""],["","fxFlexAlign.xs",""],["","fxFlexAlign.sm",""],["","fxFlexAlign.md",""],["","fxFlexAlign.lg",""],["","fxFlexAlign.xl",""],["","fxFlexAlign.lt-sm",""],["","fxFlexAlign.lt-md",""],["","fxFlexAlign.lt-lg",""],["","fxFlexAlign.lt-xl",""],["","fxFlexAlign.gt-xs",""],["","fxFlexAlign.gt-sm",""],["","fxFlexAlign.gt-md",""],["","fxFlexAlign.gt-lg",""]],inputs:{fxFlexAlign:"fxFlexAlign","fxFlexAlign.xs":"fxFlexAlign.xs","fxFlexAlign.sm":"fxFlexAlign.sm","fxFlexAlign.md":"fxFlexAlign.md","fxFlexAlign.lg":"fxFlexAlign.lg","fxFlexAlign.xl":"fxFlexAlign.xl","fxFlexAlign.lt-sm":"fxFlexAlign.lt-sm","fxFlexAlign.lt-md":"fxFlexAlign.lt-md","fxFlexAlign.lt-lg":"fxFlexAlign.lt-lg","fxFlexAlign.lt-xl":"fxFlexAlign.lt-xl","fxFlexAlign.gt-xs":"fxFlexAlign.gt-xs","fxFlexAlign.gt-sm":"fxFlexAlign.gt-sm","fxFlexAlign.gt-md":"fxFlexAlign.gt-md","fxFlexAlign.gt-lg":"fxFlexAlign.gt-lg"},features:[jo]}),E_),W_=fi(U_);new Map;var q_,Y_,Q_,X_,$_=((q_=function(e){f(i,e);var t=m(i);function i(){return b(this,i),t.apply(this,arguments)}return w(i,[{key:"buildStyles",value:function(e,t){var i={},r=n(e.split(" "),2),a=r[0],o=r[1];switch(a){case"center":i["justify-content"]="center";break;case"space-around":i["justify-content"]="space-around";break;case"space-between":i["justify-content"]="space-between";break;case"space-evenly":i["justify-content"]="space-evenly";break;case"end":case"flex-end":i["justify-content"]="flex-end";break;case"start":case"flex-start":default:i["justify-content"]="flex-start"}switch(o){case"start":case"flex-start":i["align-items"]=i["align-content"]="flex-start";break;case"center":i["align-items"]=i["align-content"]="center";break;case"end":case"flex-end":i["align-items"]=i["align-content"]="flex-end";break;case"space-between":i["align-content"]="space-between",i["align-items"]="stretch";break;case"space-around":i["align-content"]="space-around",i["align-items"]="stretch";break;case"baseline":i["align-content"]="stretch",i["align-items"]="baseline";break;case"stretch":default:i["align-items"]=i["align-content"]="stretch"}return c_(i,{display:t.inline?"inline-flex":"flex","flex-direction":t.layout,"box-sizing":"border-box","max-width":"stretch"===o?Ny(t.layout)?null:"100%":null,"max-height":"stretch"===o&&Ny(t.layout)?"100%":null})}}]),i}(Gv)).\u0275fac=function(e){return K_(e||q_)},q_.\u0275prov=Le({factory:function(){return new q_},token:q_,providedIn:"root"}),q_),K_=fi($_),Z_=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"],J_=((Q_=function(e){f(n,e);var t=m(n);function n(e,i,r,a){var o;return b(this,n),(o=t.call(this,e,r,i,a)).DIRECTIVE_KEY="layout-align",o.layout="row",o.inline=!1,o.init(),o.marshal.trackValue(o.nativeElement,"layout").pipe(Pp(o.destroySubject)).subscribe(o.onLayoutChange.bind(v(o))),o}return w(n,[{key:"updateWithValue",value:function(e){var t=this.layout||"row",n=this.inline;"row"===t&&n?this.styleCache=ob:"row"!==t||n?"row-reverse"===t&&n?this.styleCache=lb:"row-reverse"!==t||n?"column"===t&&n?this.styleCache=sb:"column"!==t||n?"column-reverse"===t&&n?this.styleCache=ub:"column-reverse"!==t||n||(this.styleCache=ab):this.styleCache=ib:this.styleCache=rb:this.styleCache=nb,this.addStyles(e,{layout:t,inline:n})}},{key:"onLayoutChange",value:function(e){var t=this,n=e.value.split(" ");this.layout=n[0],this.inline=e.value.includes("inline"),Ly.find(function(e){return e===t.layout})||(this.layout="row"),this.triggerUpdate()}}]),n}(gv)).\u0275fac=function(e){return new(e||Q_)(ls(Ol),ls(zv),ls($_),ls(qv))},Q_.\u0275dir=bt({type:Q_,features:[jo]}),Q_),eb=((Y_=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments)).inputs=Z_,e}return n}(J_)).\u0275fac=function(e){return tb(e||Y_)},Y_.\u0275dir=bt({type:Y_,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[jo]}),Y_),tb=fi(eb),nb=new Map,ib=new Map,rb=new Map,ab=new Map,ob=new Map,sb=new Map,lb=new Map,ub=new Map,cb=((X_=function e(){b(this,e)}).\u0275fac=function(e){return new(e||X_)},X_.\u0275mod=yt({type:X_}),X_.\u0275inj=Ne({imports:[[av,Ry]]}),X_);new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map;var db,hb=((db=function e(){b(this,e)}).\u0275fac=function(e){return new(e||db)},db.\u0275mod=yt({type:db}),db.\u0275inj=Ne({imports:[[av]]}),db);new Il("11.0.0-beta.33");var fb,pb=((fb=function(){function e(t,n){b(this,e),ef(n)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}return w(e,null,[{key:"withConfig",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{ngModule:e,providers:t.serverLoaded?[{provide:uv,useValue:Object.assign(Object.assign({},lv),t)},{provide:dv,useValue:n,multi:!0},{provide:cv,useValue:!0}]:[{provide:uv,useValue:Object.assign(Object.assign({},lv),t)},{provide:dv,useValue:n,multi:!0}]}}}]),e}()).\u0275fac=function(e){return new(e||fb)(Ni(cv),Ni(hc))},fb.\u0275mod=yt({type:fb}),fb.\u0275inj=Ne({imports:[[cb,Dy,hb],cb,Dy,hb]}),fb);function mb(){for(var e=arguments.length,t=new Array(e),n=0;ne?{max:{max:e,actual:t.value}}:null}}(e)}},{key:"required",value:function(e){return Tb(e)}},{key:"requiredTrue",value:function(e){return function(e){return!0===e.value?null:{required:!0}}(e)}},{key:"email",value:function(e){return function(e){return Cb(e.value)||Ob.test(e.value)?null:{email:!0}}(e)}},{key:"minLength",value:function(e){return function(e){return function(t){return Cb(t.value)||!xb(t.value)?null:t.value.lengthe?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}}(e)}},{key:"pattern",value:function(e){return function(e){return e?("string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),function(e){if(Cb(e.value))return null;var i=e.value;return t.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}):Pb;var t,n}(e)}},{key:"nullValidator",value:function(e){return null}},{key:"compose",value:function(e){return Fb(e)}},{key:"composeAsync",value:function(e){return Vb(e)}}]),e}();function Tb(e){return Cb(e.value)?{required:!0}:null}function Pb(e){return null}function Db(e){return null!=e}function Mb(e){var t=ys(e)?te(e):e;return bs(t),t}function Ib(e){var t={};return e.forEach(function(e){t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function Rb(e,t){return t.map(function(t){return t(e)})}function Lb(e){return e.map(function(e){return function(e){return!e.validate}(e)?e:function(t){return e.validate(t)}})}function Fb(e){if(!e)return null;var t=e.filter(Db);return 0==t.length?null:function(e){return Ib(Rb(e,t))}}function Nb(e){return null!=e?Fb(Lb(e)):null}function Vb(e){if(!e)return null;var t=e.filter(Db);return 0==t.length?null:function(e){return mb(Rb(e,t).map(Mb)).pipe(q(Ib))}}function Bb(e){return null!=e?Vb(Lb(e)):null}function Hb(e,t){return null===e?[t]:Array.isArray(e)?[].concat(a(e),[t]):[e,t]}function zb(e){return e._rawValidators}function Gb(e){return e._rawAsyncValidators}var jb,Ub,Wb,qb,Yb=((Ub=function(){function e(){b(this,e),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return w(e,[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"_setValidators",value:function(e){this._rawValidators=e||[],this._composedValidatorFn=Nb(this._rawValidators)}},{key:"_setAsyncValidators",value:function(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Bb(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(e){this._onDestroyCallbacks.push(e)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(e){return e()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(e){this.control&&this.control.reset(e)}},{key:"hasError",value:function(e,t){return!!this.control&&this.control.hasError(e,t)}},{key:"getError",value:function(e,t){return this.control?this.control.getError(e,t):null}}]),e}()).\u0275fac=function(e){return new(e||Ub)},Ub.\u0275dir=bt({type:Ub}),Ub),Qb=((jb=function(e){f(n,e);var t=m(n);function n(){return b(this,n),t.apply(this,arguments)}return w(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(Yb)).\u0275fac=function(e){return Xb(e||jb)},jb.\u0275dir=bt({type:jb,features:[jo]}),jb),Xb=fi(Qb),$b=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments))._parent=null,e.name=null,e.valueAccessor=null,e}return n}(Yb),Kb=function(){function e(t){b(this,e),this._cd=t}return w(e,[{key:"is",value:function(e){var t,n;return!!(null===(n=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===n?void 0:n[e])}}]),e}(),Zb=((qb=function(e){f(n,e);var t=m(n);function n(e){return b(this,n),t.call(this,e)}return n}(Kb)).\u0275fac=function(e){return new(e||qb)(ls($b,2))},qb.\u0275dir=bt({type:qb,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&Hs("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[jo]}),qb),Jb=((Wb=function(e){f(n,e);var t=m(n);function n(e){return b(this,n),t.call(this,e)}return n}(Kb)).\u0275fac=function(e){return new(e||Wb)(ls(Qb,10))},Wb.\u0275dir=bt({type:Wb,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&Hs("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[jo]}),Wb);function ek(e,t){ik(e,t,!0),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(function(n){e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&ak(e,t)})}(e,t),function(e,t){var n=function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)};e.registerOnChange(n),t._registerOnDestroy(function(){e._unregisterOnChange(n)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&ak(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function(e,t){if(t.valueAccessor.setDisabledState){var n=function(e){t.valueAccessor.setDisabledState(e)};e.registerOnDisabledChange(n),t._registerOnDestroy(function(){e._unregisterOnDisabledChange(n)})}}(e,t)}function tk(e,t){var n=function(){};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),rk(e,t,!0),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(function(){}))}function nk(e,t){e.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function ik(e,t,n){var i=zb(e);null!==t.validator?e.setValidators(Hb(i,t.validator)):"function"==typeof i&&e.setValidators([i]);var r=Gb(e);if(null!==t.asyncValidator?e.setAsyncValidators(Hb(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]),n){var a=function(){return e.updateValueAndValidity()};nk(t._rawValidators,a),nk(t._rawAsyncValidators,a)}}function rk(e,t,n){var i=!1;if(null!==e){if(null!==t.validator){var r=zb(e);if(Array.isArray(r)&&r.length>0){var a=r.filter(function(e){return e!==t.validator});a.length!==r.length&&(i=!0,e.setValidators(a))}}if(null!==t.asyncValidator){var o=Gb(e);if(Array.isArray(o)&&o.length>0){var s=o.filter(function(e){return e!==t.asyncValidator});s.length!==o.length&&(i=!0,e.setAsyncValidators(s))}}}if(n){var l=function(){};nk(t._rawValidators,l),nk(t._rawAsyncValidators,l)}return i}function ak(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function ok(e,t){ik(e,t,!1)}function sk(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}function lk(e,t){e._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function uk(e,t){return t?(Array.isArray(t),t.forEach(function(e){e.constructor===wb?n=e:Object.getPrototypeOf(e.constructor)===yb?i=e:r=e}),r||i||n||null):null;var n,i,r}function ck(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}function dk(e){return(mk(e)?e.validators:e)||null}function hk(e){return Array.isArray(e)?Nb(e):e||null}function fk(e,t){return(mk(t)?t.asyncValidators:e)||null}function pk(e){return Array.isArray(e)?Bb(e):e||null}function mk(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var gk,vk,yk,_k,bk,kk,wk,Ck,xk,Sk,Ak,Ok,Ek=function(){function e(t,n){b(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=hk(this._rawValidators),this._composedAsyncValidatorFn=pk(this._rawAsyncValidators)}return w(e,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(e){this._rawValidators=this._composedValidatorFn=e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}},{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:"setValidators",value:function(e){this._rawValidators=e,this._composedValidatorFn=hk(e)}},{key:"setAsyncValidators",value:function(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=pk(e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(e){return e.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!0)})}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild(function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!1)})}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=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(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.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(e){var t=this;if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;var n=Mb(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){t._hasOwnPendingAsyncValidator=!1,t.setErrors(n,{emitEvent:e})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;var i=e;return t.forEach(function(e){i=i instanceof Pk?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof Dk&&i.at(e)||null}),i}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new Vu,this.statusChanges=new Vu}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls(function(t){return t.status===e})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(e){return e.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(e){return e.touched})}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){mk(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),e}(),Tk=function(e){f(n,e);var t=m(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0;return b(this,n),(e=t.call(this,dk(r),fk(a,r)))._onChange=[],e._applyFormState(i),e._setUpdateStrategy(r),e._initObservables(),e.updateValueAndValidity({onlySelf:!0,emitEvent:!!a}),e}return w(n,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(e){return e(t.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_unregisterOnChange",value:function(e){ck(this._onChange,e)}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_unregisterOnDisabledChange",value:function(e){ck(this._onDisabledChange,e)}},{key:"_forEachChild",value:function(e){}},{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(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),n}(Ek),Pk=function(e){f(n,e);var t=m(n);function n(e,i,r){var a;return b(this,n),(a=t.call(this,dk(i),fk(r,i))).controls=e,a._initObservables(),a._setUpdateStrategy(i),a._setUpControls(),a.updateValueAndValidity({onlySelf:!0,emitEvent:!!r}),a}return w(n,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach(function(i){t._throwIfControlMissing(i),t.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(Object.keys(e).forEach(function(i){t.controls[i]&&t.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof Tk?t.value:t.getRawValue(),e})}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach(function(n){var i=t.controls[n];i&&e(i,n)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,n=Object.keys(this.controls);t0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}]),n}(Ek),Dk=function(e){f(n,e);var t=m(n);function n(e,i,r){var a;return b(this,n),(a=t.call(this,dk(i),fk(r,i))).controls=e,a._initObservables(),a._setUpdateStrategy(i),a._setUpControls(),a.updateValueAndValidity({onlySelf:!0,emitEvent:!!r}),a}return w(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}},{key:"removeAt",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach(function(e,i){t._throwIfControlMissing(i),t.at(i).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(e.forEach(function(e,i){t.at(i)&&t.at(i).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map(function(e){return e instanceof Tk?e.value:e.getRawValue()})}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild(function(e){return e._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index ".concat(e))}},{key:"_forEachChild",value:function(e){this.controls.forEach(function(t,n){e(t,n)})}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})}},{key:"_anyControls",value:function(e){return this.controls.some(function(t){return t.enabled&&e(t)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var e,t=s(this.controls);try{for(t.s();!(e=t.n()).done;){if(e.value.enabled)return!1}}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}]),n}(Ek),Mk={provide:Qb,useExisting:Ee(function(){return Rk})},Ik=Promise.resolve(null),Rk=((gk=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this)).submitted=!1,r._directives=[],r.ngSubmit=new Vu,r.form=new Pk({},Nb(e),Bb(i)),r}return w(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{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}},{key:"addControl",value:function(e){var t=this;Ik.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),ek(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){var t=this;Ik.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),ck(t._directives,e)})}},{key:"addFormGroup",value:function(e){var t=this;Ik.then(function(){var n=t._findContainer(e.path),i=new Pk({});ok(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(e){var t=this;Ik.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){var n=this;Ik.then(function(){n.form.get(e.path).setValue(t)})}},{key:"setValue",value:function(e){this.control.setValue(e)}},{key:"onSubmit",value:function(e){return this.submitted=!0,lk(this.form,this._directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(e){return e.pop(),e.length?this.form.get(e):this.form}}]),n}(Qb)).\u0275fac=function(e){return new(e||gk)(ls(Sb,10),ls(Ab,10))},gk.\u0275dir=bt({type:gk,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&ks("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[bl([Mk]),jo]}),gk),Lk={provide:$b,useExisting:Ee(function(){return Nk})},Fk=Promise.resolve(null),Nk=((yk=function(e){f(n,e);var t=m(n);function n(e,i,r,a){var o;return b(this,n),(o=t.call(this)).control=new Tk,o._registered=!1,o.update=new Vu,o._parent=e,o._setValidators(i),o._setAsyncValidators(r),o.valueAccessor=uk(0,a),o}return w(n,[{key:"ngOnChanges",value:function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),sk(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?function(e,t){return[].concat(a(t.path),[e])}(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{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(){ek(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(e){var t=this;Fk.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(e){var t=this,n=e.isDisabled.currentValue,i=""===n||n&&"false"!==n;Fk.then(function(){i&&!t.control.disabled?t.control.disable():!i&&t.control.disabled&&t.control.enable()})}}]),n}($b)).\u0275fac=function(e){return new(e||yk)(ls(Qb,9),ls(Sb,10),ls(Ab,10),ls(_b,10))},yk.\u0275dir=bt({type:yk,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[bl([Lk]),jo,It]}),yk),Vk=((vk=function e(){b(this,e)}).\u0275fac=function(e){return new(e||vk)},vk.\u0275dir=bt({type:vk,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),vk),Bk={provide:_b,useExisting:Ee(function(){return Hk}),multi:!0},Hk=((bk=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this))._renderer=e,r._elementRef=i,r.onChange=function(e){},r.onTouched=function(){},r}return w(n,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),n}(yb)).\u0275fac=function(e){return new(e||bk)(ls(Pl),ls(Ol))},bk.\u0275dir=bt({type:bk,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&ks("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[bl([Bk]),jo]}),bk),zk=((_k=function e(){b(this,e)}).\u0275fac=function(e){return new(e||_k)},_k.\u0275mod=yt({type:_k}),_k.\u0275inj=Ne({}),_k),Gk=new _i("NgModelWithFormControlWarning"),jk={provide:$b,useExisting:Ee(function(){return Uk})},Uk=((kk=function(e){f(n,e);var t=m(n);function n(e,i,r,a){var o;return b(this,n),(o=t.call(this))._ngModelWarningConfig=a,o.update=new Vu,o._ngModelWarningSent=!1,o._setValidators(e),o._setAsyncValidators(i),o.valueAccessor=uk(0,r),o}return w(n,[{key:"isDisabled",set:function(e){}},{key:"ngOnChanges",value:function(e){if(this._isControlChanged(e)){var t=e.form.previousValue;t&&tk(t,this,!1),ek(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}sk(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.form&&tk(this.form,this,!1)}},{key:"path",get:function(){return[]}},{key:"control",get:function(){return this.form}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_isControlChanged",value:function(e){return e.hasOwnProperty("form")}}]),n}($b)).\u0275fac=function(e){return new(e||kk)(ls(Sb,10),ls(Ab,10),ls(_b,10),ls(Gk,8))},kk.\u0275dir=bt({type:kk,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[bl([jk]),jo,It]}),kk._ngModelWarningSentOnce=!1,kk),Wk={provide:Qb,useExisting:Ee(function(){return qk})},qk=((wk=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this)).validators=e,r.asyncValidators=i,r.submitted=!1,r._onCollectionChange=function(){return r._updateDomValue()},r.directives=[],r.form=null,r.ngSubmit=new Vu,r._setValidators(e),r._setAsyncValidators(i),r}return w(n,[{key:"ngOnChanges",value:function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(rk(this.form,this,!1),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(e){var t=this.form.get(e.path);return ek(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){tk(e.control||null,e,!1),ck(this.directives,e)}},{key:"addFormGroup",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormGroup",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"addFormArray",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormArray",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormArray",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){this.form.get(e.path).setValue(t)}},{key:"onSubmit",value:function(e){return this.submitted=!0,lk(this.form,this.directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_updateDomValue",value:function(){var e=this;this.directives.forEach(function(t){var n=t.control,i=e.form.get(t.path);n!==i&&(tk(n||null,t),i instanceof Tk&&(ek(i,t),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(e){var t=this.form.get(e.path);ok(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(e){if(this.form){var t=this.form.get(e.path);t&&function(e,t){return rk(e,t,!1)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){ik(this.form,this,!1),this._oldForm&&rk(this._oldForm,this,!1)}},{key:"_checkFormPresent",value:function(){}}]),n}(Qb)).\u0275fac=function(e){return new(e||wk)(ls(Sb,10),ls(Ab,10))},wk.\u0275dir=bt({type:wk,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&ks("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[bl([Wk]),jo,It]}),wk),Yk={provide:Sb,useExisting:Ee(function(){return Qk}),multi:!0},Qk=((Ok=function(){function e(){b(this,e),this._required=!1}return w(e,[{key:"required",get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&"false"!="".concat(e),this._onChange&&this._onChange()}},{key:"validate",value:function(e){return this.required?Tb(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}}]),e}()).\u0275fac=function(e){return new(e||Ok)},Ok.\u0275dir=bt({type:Ok,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&is("required",t.required?"":null)},inputs:{required:"required"},features:[bl([Yk])]}),Ok),Xk=((Ak=function e(){b(this,e)}).\u0275fac=function(e){return new(e||Ak)},Ak.\u0275mod=yt({type:Ak}),Ak.\u0275inj=Ne({imports:[[zk]]}),Ak),$k=((Sk=function e(){b(this,e)}).\u0275fac=function(e){return new(e||Sk)},Sk.\u0275mod=yt({type:Sk}),Sk.\u0275inj=Ne({imports:[Xk]}),Sk),Kk=((xk=function(){function e(){b(this,e)}return w(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:[{provide:Gk,useValue:t.warnOnNgModelWithFormControl}]}}}]),e}()).\u0275fac=function(e){return new(e||xk)},xk.\u0275mod=yt({type:xk}),xk.\u0275inj=Ne({imports:[Xk]}),xk);function Zk(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i-1&&t!==n._activeItemIndex&&(n._activeItemIndex=t)}})}return w(e,[{key:"skipPredicate",value:function(e){return this._skipPredicateFn=e,this}},{key:"withWrap",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=e,this}},{key:"withVerticalOrientation",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=e,this}},{key:"withHorizontalOrientation",value:function(e){return this._horizontal=e,this}},{key:"withAllowedModifierKeys",value:function(e){return this._allowedModifierKeys=e,this}},{key:"withTypeAhead",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Zg(function(t){return e._pressedLetters.push(t)}),jg(t),jm(function(){return e._pressedLetters.length>0}),q(function(){return e._pressedLetters.join("")})).subscribe(function(t){for(var n=e._getItemsArray(),i=1;i0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=e,this}},{key:"setActiveItem",value:function(e){var t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(e){var t=this,n=e.keyCode,i=["altKey","ctrlKey","metaKey","shiftKey"].every(function(n){return!e[n]||t._allowedModifierKeys.indexOf(n)>-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;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||Zk(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(n>=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],e.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{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(e){var t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e),i=t[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}},{key:"_setActiveItemByDelta",value:function(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}},{key:"_setActiveInWrapMode",value:function(e){for(var t=this._getItemsArray(),n=1;n<=t.length;n++){var i=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[i]))return void this.setActiveItem(i)}}},{key:"_setActiveInDefaultMode",value:function(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}},{key:"_setActiveItemByIndex",value:function(e,t){var n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}}},{key:"_getItemsArray",value:function(){return this._items instanceof Hu?this._items.toArray():this._items}}]),e}(),Mw=function(e){f(n,e);var t=m(n);function n(){return b(this,n),t.apply(this,arguments)}return w(n,[{key:"setActiveItem",value:function(e){this.activeItem&&this.activeItem.setInactiveStyles(),h(_(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.setActiveStyles()}}]),n}(Dw),Iw=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments))._origin="program",e}return w(n,[{key:"setFocusOrigin",value:function(e){return this._origin=e,this}},{key:"setActiveItem",value:function(e){h(_(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.focus(this._origin)}}]),n}(Dw),Rw=((Pw=function(){function e(t){b(this,e),this._platform=t}return w(e,[{key:"isDisabled",value:function(e){return e.hasAttribute("disabled")}},{key:"isVisible",value:function(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}},{key:"isTabbable",value:function(e){if(!this._platform.isBrowser)return!1;var t,n=function(e){try{return e.frameElement}catch(lte){return null}}((t=e).ownerDocument&&t.ownerDocument.defaultView||window);if(n){if(-1===Fw(n))return!1;if(!this.isVisible(n))return!1}var i=e.nodeName.toLowerCase(),r=Fw(e);return e.hasAttribute("contenteditable")?-1!==r:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(e){var t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&("audio"===i?!!e.hasAttribute("controls")&&-1!==r:"video"===i?-1!==r&&(null!==r||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}},{key:"isFocusable",value:function(e,t){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||Lw(e))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}]),e}()).\u0275fac=function(e){return new(e||Pw)(Ni(ow))},Pw.\u0275prov=Le({factory:function(){return new Pw(Ni(ow))},token:Pw,providedIn:"root"}),Pw);function Lw(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function Fw(e){if(!Lw(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var Nw,Vw,Bw=function(){function e(t,n,i,r){var a=this,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];b(this,e),this._element=t,this._checker=n,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return a.focusLastTabbableElement()},this.endAnchorListener=function(){return a.focusFirstTabbableElement()},this._enabled=!0,o||this.attachAnchors()}return w(e,[{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"destroy",value:function(){var e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var e=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){e._startAnchor||(e._startAnchor=e._createAnchor(),e._startAnchor.addEventListener("focus",e.startAnchorListener)),e._endAnchor||(e._endAnchor=e._createAnchor(),e._endAnchor.addEventListener("focus",e.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 e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusInitialElement())})})}},{key:"focusFirstTabbableElementWhenReady",value:function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusFirstTabbableElement())})})}},{key:"focusLastTabbableElementWhenReady",value:function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusLastTabbableElement())})})}},{key:"_getRegionBoundary",value:function(e){for(var t=this._element.querySelectorAll("[cdk-focus-region-".concat(e,"], [cdkFocusRegion").concat(e,"], [cdk-focus-").concat(e,"]")),n=0;n=0;n--){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(i)return i}return null}},{key:"_createAnchor",value:function(){var e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}},{key:"_toggleAnchorTabIndex",value:function(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"_executeOnStable",value:function(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe(Qg(1)).subscribe(e)}}]),e}(),Hw=((Vw=function(){function e(t,n,i){b(this,e),this._checker=t,this._ngZone=n,this._document=i}return w(e,[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Bw(e,this._checker,this._ngZone,this._document,t)}}]),e}()).\u0275fac=function(e){return new(e||Vw)(Ni(Rw),Ni(Oc),Ni(sd))},Vw.\u0275prov=Le({factory:function(){return new Vw(Ni(Rw),Ni(Oc),Ni(sd))},token:Vw,providedIn:"root"}),Vw),zw=((Nw=function(){function e(t,n,i){b(this,e),this._elementRef=t,this._focusTrapFactory=n,this._previouslyFocusedElement=null,this._document=i,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}return w(e,[{key:"enabled",get:function(){return this.focusTrap.enabled},set:function(e){this.focusTrap.enabled=Qv(e)}},{key:"autoCapture",get:function(){return this._autoCapture},set:function(e){this._autoCapture=Qv(e)}},{key:"ngOnDestroy",value:function(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}},{key:"ngAfterContentInit",value:function(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}},{key:"ngDoCheck",value:function(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}},{key:"ngOnChanges",value:function(e){var t=e.autoCapture;t&&!t.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}},{key:"_captureFocus",value:function(){this._previouslyFocusedElement=this._document.activeElement,this.focusTrap.focusInitialElementWhenReady()}}]),e}()).\u0275fac=function(e){return new(e||Nw)(ls(Ol),ls(Hw),ls(sd))},Nw.\u0275dir=bt({type:Nw,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[It]}),Nw);"undefined"!=typeof Element&∈var Gw,jw,Uw=new _i("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Ww=new _i("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),qw=((jw=function(){function e(t,n,i,r){b(this,e),this._ngZone=n,this._defaultOptions=r,this._document=i,this._liveElement=t||this._createLiveElement()}return w(e,[{key:"announce",value:function(e){for(var t,i,r,a=this,o=this._defaultOptions,s=arguments.length,l=new Array(s>1?s-1:0),u=1;u1&&void 0!==arguments[1]&&arguments[1],n=Jv(e);if(!this._platform.isBrowser||1!==n.nodeType)return fp(null);var i=fw(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return t&&(r.checkChildren=!0),r.subject;var a={checkChildren:t,subject:new j,rootNode:i};return this._elementInfo.set(n,a),this._registerGlobalListeners(a),a.subject}},{key:"stopMonitoring",value:function(e){var t=Jv(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(e,t,i){var r=this,a=Jv(e);a===this._getDocument().activeElement?this._getClosestElementsInfo(a).forEach(function(e){var i=n(e,2),a=i[0],o=i[1];return r._originChanged(a,t,o)}):(this._setOriginForCurrentEventQueue(t),"function"==typeof a.focus&&a.focus(i))}},{key:"ngOnDestroy",value:function(){var e=this;this._elementInfo.forEach(function(t,n){return e.stopMonitoring(n)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(e,t,n){n?e.classList.add(t):e.classList.remove(t)}},{key:"_getFocusOrigin",value:function(e){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"}},{key:"_setClasses",value:function(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)}},{key:"_setOriginForCurrentEventQueue",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){t._origin=e,0===t._detectionMode&&(t._originTimeoutId=setTimeout(function(){return t._origin=null},1))})}},{key:"_wasCausedByTouch",value:function(e){var t=eC(e);return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(e,t){var n=this._elementInfo.get(t);n&&(n.checkChildren||t===eC(e))&&this._originChanged(t,this._getFocusOrigin(e),n)}},{key:"_onBlur",value:function(e,t){var n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(e,t){this._ngZone.run(function(){return e.next(t)})}},{key:"_registerGlobalListeners",value:function(e){var t=this;if(this._platform.isBrowser){var n=e.rootNode,i=this._rootNodeFocusListenerCount.get(n)||0;i||this._ngZone.runOutsideAngular(function(){n.addEventListener("focus",t._rootNodeFocusAndBlurListener,Zw),n.addEventListener("blur",t._rootNodeFocusAndBlurListener,Zw)}),this._rootNodeFocusListenerCount.set(n,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(function(){var e=t._getDocument(),n=t._getWindow();e.addEventListener("keydown",t._documentKeydownListener,Zw),e.addEventListener("mousedown",t._documentMousedownListener,Zw),e.addEventListener("touchstart",t._documentTouchstartListener,Zw),n.addEventListener("focus",t._windowFocusListener)})}}},{key:"_removeGlobalListeners",value:function(e){var t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){var n=this._rootNodeFocusListenerCount.get(t);n>1?this._rootNodeFocusListenerCount.set(t,n-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Zw),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Zw),this._rootNodeFocusListenerCount.delete(t))}if(!--this._monitoredElementCount){var i=this._getDocument(),r=this._getWindow();i.removeEventListener("keydown",this._documentKeydownListener,Zw),i.removeEventListener("mousedown",this._documentMousedownListener,Zw),i.removeEventListener("touchstart",this._documentTouchstartListener,Zw),r.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}},{key:"_originChanged",value:function(e,t,n){this._setClasses(e,t),this._emitOrigin(n.subject,t),this._lastFocusOrigin=t}},{key:"_getClosestElementsInfo",value:function(e){var t=[];return this._elementInfo.forEach(function(n,i){(i===e||n.checkChildren&&i.contains(e))&&t.push([i,n])}),t}}]),e}()).\u0275fac=function(e){return new(e||$w)(Ni(Oc),Ni(ow),Ni(sd,8),Ni(Kw,8))},$w.\u0275prov=Le({factory:function(){return new $w(Ni(Oc),Ni(ow),Ni(sd,8),Ni(Kw,8))},token:$w,providedIn:"root"}),$w);function eC(e){return e.composedPath?e.composedPath()[0]:e.target}var tC,nC,iC,rC=((iC=function(){function e(t,n){b(this,e),this._elementRef=t,this._focusMonitor=n,this.cdkFocusChange=new Vu}return w(e,[{key:"ngAfterViewInit",value:function(){var e=this,t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,1===t.nodeType&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(t){return e.cdkFocusChange.emit(t)})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||iC)(ls(Ol),ls(Jw))},iC.\u0275dir=bt({type:iC,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),iC),aC=((nC=function(){function e(t,n){b(this,e),this._platform=t,this._document=n}return w(e,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);var t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),i){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 e=this._document.body.classList;e.remove("cdk-high-contrast-active"),e.remove("cdk-high-contrast-black-on-white"),e.remove("cdk-high-contrast-white-on-black");var t=this.getHighContrastMode();1===t?(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-black-on-white")):2===t&&(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-white-on-black"))}}}]),e}()).\u0275fac=function(e){return new(e||nC)(Ni(ow),Ni(sd))},nC.\u0275prov=Le({factory:function(){return new nC(Ni(ow),Ni(sd))},token:nC,providedIn:"root"}),nC),oC=((tC=function e(t){b(this,e),t._applyBodyHighContrastModeCssClasses()}).\u0275fac=function(e){return new(e||tC)(Ni(aC))},tC.\u0275mod=yt({type:tC}),tC.\u0275inj=Ne({imports:[[sw,kw]]}),tC),sC=new Il("11.2.7"),lC=function e(){b(this,e)};function uC(e,t){return{type:7,name:e,definitions:t,options:{}}}function cC(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function dC(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:3,steps:e,options:t}}function hC(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function fC(e){return{type:6,styles:e,offset:null}}function pC(e,t,n){return{type:0,name:e,styles:t,options:n}}function mC(e){return{type:5,steps:e}}function gC(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:n}}function vC(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}function yC(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:t,options:n}}function _C(e){Promise.resolve(null).then(e)}var bC=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;b(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+n}return w(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{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 e=this;_C(function(){return e._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(e){return e()}),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(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){}},{key:"setPosition",value:function(e){this._position=this.totalTime?e*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),kC=function(){function e(t){var n=this;b(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var i=0,r=0,a=0,o=this.players.length;0==o?_C(function(){return n._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++i==o&&n._onFinish()}),e.onDestroy(function(){++r==o&&n._onDestroy()}),e.onStart(function(){++a==o&&n._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return w(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(e){return e.init()})}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})}},{key:"pause",value:function(){this.players.forEach(function(e){return e.pause()})}},{key:"restart",value:function(){this.players.forEach(function(e){return e.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}},{key:"getPosition",value:function(){var e=this.players.reduce(function(e,t){return null===e||t.totalTime>e.totalTime?t:e},null);return null!=e?e.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}();function wC(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function CC(e){switch(e.length){case 0:return new bC;case 1:return e[0];default:return new kC(e)}}function xC(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=[],s=[],l=-1,u=null;if(i.forEach(function(e){var n=e.offset,i=n==l,c=i&&u||{};Object.keys(e).forEach(function(n){var i=n,s=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,o),s){case"!":s=r[n];break;case"*":s=a[n];break;default:s=t.normalizeStyleValue(n,i,s,o)}c[i]=s}),i||s.push(c),u=c,l=n}),o.length){var c="\n - ";throw new Error("Unable to animate due to the following errors:".concat(c).concat(o.join(c)))}return s}function SC(e,t,n,i){switch(t){case"start":e.onStart(function(){return i(n&&AC(n,"start",e))});break;case"done":e.onDone(function(){return i(n&&AC(n,"done",e))});break;case"destroy":e.onDestroy(function(){return i(n&&AC(n,"destroy",e))})}}function AC(e,t,n){var i=n.totalTime,r=OC(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==i?e.totalTime:i,!!n.disabled),a=e._data;return null!=a&&(r._data=a),r}function OC(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:t,fromState:n,toState:i,phaseName:r,totalTime:a,disabled:!!o}}function EC(e,t,n){var i;return e instanceof Map?(i=e.get(t))||e.set(t,i=n):(i=e[t])||(i=e[t]=n),i}function TC(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var PC=function(e,t){return!1},DC=function(e,t){return!1},MC=function(e,t,n){return[]},IC=wC();(IC||"undefined"!=typeof Element)&&(PC=function(e,t){return e.contains(t)},DC=function(){if(IC||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,n){return t.apply(e,[n])}:DC}(),MC=function(e,t,n){var i=[];if(n)for(var r=e.querySelectorAll(t),a=0;a1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function QC(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var i in e)n[i]=e[i];else YC(e,n);return n}function XC(e,t,n){return n?t+":"+n+";":""}function $C(e){for(var t="",n=0;n *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t) *"}}(e,n);if("function"==typeof i)return void t.push(i);e=i}var r=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'.concat(e,'" is not supported')),t;var a=r[1],o=r[2],s=r[3];t.push(hx(a,s)),"<"!=o[0]||"*"==a&&"*"==s||t.push(hx(s,a))}(e,r,i)}):r.push(n),r),animation:a,queryCount:t.queryCount,depCount:t.depCount,options:yx(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return lx(n,e,t)}),options:yx(e.options)}}},{key:"visitGroup",value:function(e,t){var n=this,i=t.currentTime,r=0,a=e.steps.map(function(e){t.currentTime=i;var a=lx(n,e,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:3,steps:a,options:yx(e.options)}}},{key:"visitAnimate",value:function(e,t){var n,i=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return _x(qC(e,t).duration,0,"");var i=e;if(i.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var r=_x(0,0,"");return r.dynamic=!0,r.strValue=i,r}return _x((n=n||qC(i,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;var r=e.styles?e.styles:fC({});if(5==r.type)n=this.visitKeyframes(r,t);else{var a=e.styles,o=!1;if(!a){o=!0;var s={};i.easing&&(s.easing=i.easing),a=fC(s)}t.currentTime+=i.duration+i.delay;var l=this.visitStyle(a,t);l.isEmptyStep=o,n=l}return t.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}},{key:"visitStyle",value:function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}},{key:"_makeStyleAst",value:function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?"*"==e?n.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):n.push(e)}):n.push(e.styles);var i=!1,r=null;return n.forEach(function(e){if(vx(e)){var t=e,n=t.easing;if(n&&(r=n,delete t.easing),!i)for(var a in t)if(t[a].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:i,options:null}}},{key:"_validateStyleAst",value:function(e,t){var n=this,i=t.currentAnimateTimings,r=t.currentTime,a=t.currentTime;i&&a>0&&(a-=i.duration+i.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(i){if(n._driver.validateStyleProperty(i)){var o,s,l,u,c,d=t.collectedStyles[t.currentQuerySelector],h=d[i],f=!0;h&&(a!=r&&a>=h.startTime&&r<=h.endTime&&(t.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(h.startTime,'ms" and "').concat(h.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(a,'ms" and "').concat(r,'ms"')),f=!1),a=h.startTime),f&&(d[i]={startTime:a,endTime:r}),t.options&&(o=e[i],s=t.options,l=t.errors,u=s.params||{},(c=tx(o)).length&&c.forEach(function(e){u.hasOwnProperty(e)||l.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))}))}else t.errors.push('The provided animation property "'.concat(i,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(e,t){var n=this,i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),i;var r=0,a=[],o=!1,s=!1,l=0,u=e.steps.map(function(e){var i=n._makeStyleAst(e,t),u=null!=i.offset?i.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(vx(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(vx(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(i.styles),c=0;return null!=u&&(r++,c=i.offset=u),s=s||c<0||c>1,o=o||c0&&r0?r==h?1:d*r:a[r],s=o*m;t.currentTime=f+p.delay+s,p.duration=s,n._validateStyleAst(e,t),e.offset=o,i.styles.push(e)}),i}},{key:"visitReference",value:function(e,t){return{type:8,animation:lx(this,JC(e.animation),t),options:yx(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:yx(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:yx(e.options)}}},{key:"visitQuery",value:function(e,t){var i=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;var a=n(function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace(fx,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(e){return".ng-trigger-"+e.substr(1)}).replace(/:animating/g,".ng-animating"),t]}(e.selector),2),o=a[0],s=a[1];t.currentQuerySelector=i.length?i+" "+o:o,EC(t.collectedStyles,t.currentQuerySelector,{});var l=lx(this,JC(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:l,originalSelector:e.selector,options:yx(e.options)}}},{key:"visitStagger",value:function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:qC(e.timings,t.errors,!0);return{type:12,animation:lx(this,JC(e.animation),t),timings:n,options:null}}}]),e}(),gx=function e(t){b(this,e),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 vx(e){return!Array.isArray(e)&&"object"==typeof e}function yx(e){var t;return e?(e=YC(e)).params&&(e.params=(t=e.params)?YC(t):null):e={},e}function _x(e,t,n){return{duration:e,delay:t,easing:n}}function bx(e,t,n,i,r,a){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:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:r,delay:a,totalTime:r+a,easing:o,subTimeline:s}}var kx=function(){function e(){b(this,e),this._map=new Map}return w(e,[{key:"consume",value:function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t}},{key:"append",value:function(e,t){var n,i=this._map.get(e);i||this._map.set(e,i=[]),(n=i).push.apply(n,a(t))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),wx=new RegExp(":enter","g"),Cx=new RegExp(":leave","g");function xx(e,t,n,i,r){var a=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,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new Sx).buildKeyframes(e,t,n,i,r,a,o,s,l,u)}var Sx=function(){function e(){b(this,e)}return w(e,[{key:"buildKeyframes",value:function(e,t,n,i,r,a,o,s,l){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];l=l||new kx;var c=new Ox(e,t,l,i,r,u,[]);c.options=s,c.currentTimeline.setStyles([a],null,c.errors,s),lx(this,n,c);var d=c.timelines.filter(function(e){return e.containsAnimation()});if(d.length&&Object.keys(o).length){var h=d[d.length-1];h.allowOnlyTimelineStyles()||h.setStyles([o],null,c.errors,s)}return d.length?d.map(function(e){return e.buildKeyframes()}):[bx(t,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,t){}},{key:"visitState",value:function(e,t){}},{key:"visitTransition",value:function(e,t){}},{key:"visitAnimateChild",value:function(e,t){var n=t.subInstructions.consume(t.element);if(n){var i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,a=this._visitSubInstructions(n,i,i.options);r!=a&&t.transformIntoNewTimeline(a)}t.previousNode=e}},{key:"visitAnimateRef",value:function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}},{key:"_visitSubInstructions",value:function(e,t,n){var i=t.currentTimeline.currentTime,r=null!=n.duration?UC(n.duration):null,a=null!=n.delay?UC(n.delay):null;return 0!==r&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,r,a);i=Math.max(i,n.duration+n.delay)}),i}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),lx(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var n=this,i=t.subContextCount,r=t,a=e.options;if(a&&(a.params||a.delay)&&((r=t.createSubContext(a)).transformIntoNewTimeline(),null!=a.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Ax);var o=UC(a.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(function(e){return lx(n,e,r)}),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var n=this,i=[],r=t.currentTimeline.currentTime,a=e.options&&e.options.delay?UC(e.options.delay):0;e.steps.forEach(function(o){var s=t.createSubContext(e.options);a&&s.delayNextStep(a),lx(n,o,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(r),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var n=e.strValue;return qC(t.params?nx(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());var r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var r=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var n=t.currentAnimateTimings,i=t.currentTimeline.duration,r=n.duration,a=t.createSubContext().currentTimeline;a.easing=n.easing,e.styles.forEach(function(e){a.forwardTime((e.offset||0)*r),a.setStyles(e.styles,e.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(i+r),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var n=this,i=t.currentTimeline.currentTime,r=e.options||{},a=r.delay?UC(r.delay):0;a&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Ax);var o=i,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=s.length;var l=null;s.forEach(function(i,r){t.currentQueryIndex=r;var s=t.createSubContext(e.options,i);a&&s.delayNextStep(a),i===t.element&&(l=s.currentTimeline),lx(n,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,s.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var n=t.parentContext,i=t.currentTimeline,r=e.timings,a=Math.abs(r.duration),o=a*(t.currentQueryTotal-1),s=a*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=o-s;break;case"full":s=n.currentStaggerTime}var l=t.currentTimeline;s&&l.delayNextStep(s);var u=l.currentTime;lx(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-u+(i.startTime-n.currentTimeline.startTime)}}]),e}(),Ax={},Ox=function(){function e(t,n,i,r,a,o,s,l){b(this,e),this._driver=t,this.element=n,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=a,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ax,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Ex(this._driver,n,0),s.push(this.currentTimeline)}return w(e,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(e,t){var n=this;if(e){var i=e,r=this.options;null!=i.duration&&(r.duration=UC(i.duration)),null!=i.delay&&(r.delay=UC(i.delay));var a=i.params;if(a){var o=r.params;o||(o=this.options.params={}),Object.keys(a).forEach(function(e){t&&o.hasOwnProperty(e)||(o[e]=nx(a[e],o,n.errors))})}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e}},{key:"createSubContext",value:function(){var t=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,r=n||this.element,a=new e(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return a.previousNode=this.previousNode,a.currentAnimateTimings=this.currentAnimateTimings,a.options=this._copyOptions(),a.updateOptions(t),a.currentQueryIndex=this.currentQueryIndex,a.currentQueryTotal=this.currentQueryTotal,a.parentContext=this,this.subContextCount++,a}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=Ax,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,n){var i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new Tx(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,t,n,i,r,o){var s=[];if(i&&s.push(this.element),e.length>0){e=(e=e.replace(wx,"."+this._enterClassName)).replace(Cx,"."+this._leaveClassName);var l=this._driver.query(this.element,e,1!=n);0!==n&&(l=n<0?l.slice(l.length+n,l.length):l.slice(0,n)),s.push.apply(s,a(l))}return r||0!=s.length||o.push('`query("'.concat(t,'")` returned zero elements. (Use `query("').concat(t,'", { optional: true })` if you wish to allow this.)')),s}}]),e}(),Ex=function(){function e(t,n,i,r){b(this,e),this._driver=t,this.element=n,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return w(e,[{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:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,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(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||"*",t._currentKeyframe[e]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,n,i){var r=this;t&&(this._previousKeyframe.easing=t);var a=i&&i.params||{},o=function(e,t){var n,i={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){i[e]="*"}):QC(e,!1,i)}),i}(e,this._globalTimelineStyles);Object.keys(o).forEach(function(e){var t=nx(o[e],a,n);r._pendingStyles[e]=t,r._localTimelineStyles.hasOwnProperty(e)||(r._backFill[e]=r._globalTimelineStyles.hasOwnProperty(e)?r._globalTimelineStyles[e]:"*"),r._updateStyle(e,t)})}},{key:"applyStylesToKeyframe",value:function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}},{key:"mergeTimelineCollectedStyles",value:function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var i=t._styleSummary[n],r=e._styleSummary[n];(!i||r.time>i.time)&&t._updateStyle(n,r.value)})}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach(function(a,o){var s=QC(a,!0);Object.keys(s).forEach(function(e){var i=s[e];"!"==i?t.add(e):"*"==i&&n.add(e)}),i||(s.offset=o/e.duration),r.push(s)});var a=t.size?ix(t.values()):[],o=n.size?ix(n.values()):[];if(i){var s=r[0],l=YC(s);s.offset=0,l.offset=1,r=[s,l]}return bx(this.element,r,a,o,this.duration,this.startTime,this.easing,!1)}}]),e}(),Tx=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o,s){var l,u=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return b(this,n),(l=t.call(this,e,i,s.delay)).element=i,l.keyframes=r,l.preStyleProps=a,l.postStyleProps=o,l._stretchStartingKeyframe=u,l.timings={duration:s.duration,delay:s.delay,easing:s.easing},l}return w(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var e=this.keyframes,t=this.timings,n=t.delay,i=t.duration,r=t.easing;if(this._stretchStartingKeyframe&&n){var a=[],o=i+n,s=n/o,l=QC(e[0],!1);l.offset=0,a.push(l);var u=QC(e[0],!1);u.offset=Px(s),a.push(u);for(var c=e.length-1,d=1;d<=c;d++){var h=QC(e[d],!1);h.offset=Px((n+h.offset*i)/o),a.push(h)}i=o,n=0,r="",e=a}return bx(this.element,e,this.preStyleProps,this.postStyleProps,i,n,r,!0)}}]),n}(Ex);function Px(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,t-1);return Math.round(e*n)/n}var Dx=function e(){b(this,e)},Mx=function(e){f(n,e);var t=m(n);function n(){return b(this,n),t.apply(this,arguments)}return w(n,[{key:"normalizePropertyName",value:function(e,t){return ax(e)}},{key:"normalizeStyleValue",value:function(e,t,n,i){var r="",a=n.toString().trim();if(Ix[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var o=n.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&0==o[1].length&&i.push("Please provide a CSS unit value for ".concat(e,":").concat(n))}return a+r}}]),n}(Dx),Ix=function(e){var t={};return e.forEach(function(e){return t[e]=!0}),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","));function Rx(e,t,n,i,r,a,o,s,l,u,c,d,h){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:a,toState:i,toStyles:o,timelines:s,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:d,errors:h}}var Lx={},Fx=function(){function e(t,n,i){b(this,e),this._triggerName=t,this.ast=n,this._stateStyles=i}return w(e,[{key:"match",value:function(e,t,n,i){return function(e,t,n,i,r){return e.some(function(e){return e(t,n,i,r)})}(this.ast.matchers,e,t,n,i)}},{key:"buildStyles",value:function(e,t,n){var i=this._stateStyles["*"],r=this._stateStyles[e],a=i?i.buildStyles(t,n):{};return r?r.buildStyles(t,n):a}},{key:"build",value:function(e,t,n,i,r,a,o,s,l,u){var c=[],d=this.ast.options&&this.ast.options.params||Lx,h=this.buildStyles(n,o&&o.params||Lx,c),f=s&&s.params||Lx,p=this.buildStyles(i,f,c),m=new Set,g=new Map,v=new Map,y="void"===i,_={params:Object.assign(Object.assign({},d),f)},b=u?[]:xx(e,t,this.ast.animation,r,a,h,p,_,l,c),k=0;if(b.forEach(function(e){k=Math.max(e.duration+e.delay,k)}),c.length)return Rx(t,this._triggerName,n,i,y,h,p,[],[],g,v,k,c);b.forEach(function(e){var n=e.element,i=EC(g,n,{});e.preStyleProps.forEach(function(e){return i[e]=!0});var r=EC(v,n,{});e.postStyleProps.forEach(function(e){return r[e]=!0}),n!==t&&m.add(n)});var w=ix(m.values());return Rx(t,this._triggerName,n,i,y,h,p,b,w,g,v,k)}}]),e}(),Nx=function(){function e(t,n){b(this,e),this.styles=t,this.defaultParams=n}return w(e,[{key:"buildStyles",value:function(e,t){var n={},i=YC(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(i[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var r=e;Object.keys(r).forEach(function(e){var a=r[e];a.length>1&&(a=nx(a,i,t)),n[e]=a})}}),n}}]),e}(),Vx=function(){function e(t,n){var i=this;b(this,e),this.name=t,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach(function(e){i.states[e.name]=new Nx(e.style,e.options&&e.options.params||{})}),Bx(this.states,"true","1"),Bx(this.states,"false","0"),n.transitions.forEach(function(e){i.transitionFactories.push(new Fx(t,e,i.states))}),this.fallbackTransition=new Fx(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return w(e,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(e,t,n,i){return this.transitionFactories.find(function(r){return r.match(e,t,n,i)})||null}},{key:"matchStyles",value:function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}]),e}();function Bx(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var Hx=new kx,zx=function(){function e(t,n,i){b(this,e),this.bodyNode=t,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}return w(e,[{key:"register",value:function(e,t){var n=[],i=px(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: ".concat(n.join("\n")));this._animations[e]=i}},{key:"_buildPlayer",value:function(e,t,n){var i=e.element,r=xC(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=[],o=this._animations[e],s=new Map;if(o?(n=xx(this._driver,t,o,"ng-enter","ng-leave",{},{},r,Hx,a)).forEach(function(e){var t=EC(s,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(a.push("The requested animation doesn't exist or has already been destroyed"),n=[]),a.length)throw new Error("Unable to create the animation due to the following errors: ".concat(a.join("\n")));s.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=i._driver.computeStyle(t,n,"*")})});var l=CC(n.map(function(e){var t=s.get(e.element);return i._buildPlayer(e,{},t)}));return this._playersById[e]=l,l.onDestroy(function(){return i.destroy(e)}),this.players.push(l),l}},{key:"destroy",value:function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by ".concat(e));return t}},{key:"listen",value:function(e,t,n,i){var r=OC(t,"","","");return SC(this._getPlayer(e),n,r,i),function(){}}},{key:"command",value:function(e,t,n,i){if("register"!=n)if("create"!=n){var r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,i[0]||{});else this.register(e,i[0])}}]),e}(),Gx=[],jx={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ux={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Wx=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";b(this,e),this.namespaceId=n;var i,r=t&&t.hasOwnProperty("value");if(this.value=null!=(i=r?t.value:t)?i:null,r){var a=YC(t);delete a.value,this.options=a}else this.options={};this.options.params||(this.options.params={})}return w(e,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}}}]),e}(),qx=new Wx("void"),Yx=function(){function e(t,n,i){b(this,e),this.id=t,this.hostElement=n,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,eS(n,this._hostClassName)}return w(e,[{key:"listen",value:function(e,t,n,i){var r,a=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(t,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(t,'" because the provided event is undefined!'));if("start"!=(r=n)&&"done"!=r)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(t,'" is not supported!'));var o=EC(this._elementListeners,e,[]),s={name:t,phase:n,callback:i};o.push(s);var l=EC(this._engine.statesByElement,e,{});return l.hasOwnProperty(t)||(eS(e,"ng-trigger"),eS(e,"ng-trigger-"+t),l[t]=qx),function(){a._engine.afterFlush(function(){var e=o.indexOf(s);e>=0&&o.splice(e,1),a._triggers[t]||delete l[t]})}}},{key:"register",value:function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}},{key:"_getTrigger",value:function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return t}},{key:"trigger",value:function(e,t,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=this._getTrigger(t),o=new Xx(this.id,t,e),s=this._engine.statesByElement.get(e);s||(eS(e,"ng-trigger"),eS(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));var l=s[t],u=new Wx(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),s[t]=u,l||(l=qx),"void"===u.value||l.value!==u.value){var c=EC(this._engine.playersByElement,e,[]);c.forEach(function(e){e.namespaceId==i.id&&e.triggerName==t&&e.queued&&e.destroy()});var d=a.matchTransition(l.value,u.value,e,u.params),h=!1;if(!d){if(!r)return;d=a.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:d,fromState:l,toState:u,player:o,isFallbackTransition:h}),h||(eS(e,"ng-animate-queued"),o.onStart(function(){tS(e,"ng-animate-queued")})),o.onDone(function(){var t=i.players.indexOf(o);t>=0&&i.players.splice(t,1);var n=i._engine.playersByElement.get(e);if(n){var r=n.indexOf(o);r>=0&&n.splice(r,1)}}),this.players.push(o),c.push(o),o}if(!function(e,t){var n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(var r=0;r=0){for(var i=!1,r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}},{key:"register",value:function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}},{key:"registerTrigger",value:function(e,t,n){var i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}},{key:"destroy",value:function(e,t){var n=this;if(e){var i=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(i);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return i.destroy(t)})}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var i=Object.keys(n),r=0;r=0&&this.collectedLeaveElements.splice(a,1)}if(e){var o=this._fetchNamespace(e);o&&o.insertNode(t,n)}i&&this.collectEnterElement(t)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),eS(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),tS(e,"ng-animate-disabled"))}},{key:"removeNode",value:function(e,t,n,i){if($x(t)){var r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),n){var a=this.namespacesByHostElement.get(t);a&&a.id!==e&&a.removeNode(t,i)}}else this._onRemovalComplete(t,i)}},{key:"markElementAsRemoved",value:function(e,t,n,i){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,n,i,r){return $x(t)?this._fetchNamespace(e).listen(t,n,i,r):function(){}}},{key:"_buildInstruction",value:function(e,t,n,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,r)}},{key:"destroyInnerAnimations",value:function(e){var t=this,n=this.driver.query(e,".ng-trigger",!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,".ng-animating",!0)).forEach(function(e){return t.finishActiveQueriedAnimationOnElement(e)})}},{key:"destroyActiveAnimationsForElement",value:function(e){var t=this.playersByElement.get(e);t&&t.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach(function(e){return e.finish()})}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise(function(t){if(e.players.length)return CC(e.players).onDone(function(){return t()});t()})}},{key:"processLeaveNode",value:function(e){var t=this,n=e.__ng_removed;if(n&&n.setForRemoval){if(e.__ng_removed=jx,n.namespaceId){this.destroyInnerAnimations(e);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(function(e){t.markElementAsDisabled(e,!1)})}},{key:"flush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i=0;O--)this._namespaceList[O].drainQueuedTransitions(t).forEach(function(e){var t=e.player,a=e.element;if(S.push(t),n.collectedEnterElements.length){var o=a.__ng_removed;if(o&&o.setForMove)return void t.destroy()}var d=!h||!n.driver.containsElement(h,a),f=C.get(a),p=m.get(a),g=n._buildInstruction(e,i,p,f,d);if(g.errors&&g.errors.length)A.push(g);else{if(d)return t.onStart(function(){return ZC(a,g.fromStyles)}),t.onDestroy(function(){return KC(a,g.toStyles)}),void r.push(t);if(e.isFallbackTransition)return t.onStart(function(){return ZC(a,g.fromStyles)}),t.onDestroy(function(){return KC(a,g.toStyles)}),void r.push(t);g.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),i.append(a,g.timelines),s.push({instruction:g,player:t,element:a}),g.queriedElements.forEach(function(e){return EC(l,e,[]).push(t)}),g.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var i=u.get(t);i||u.set(t,i=new Set),n.forEach(function(e){return i.add(e)})}}),g.postStyleProps.forEach(function(e,t){var n=Object.keys(e),i=c.get(t);i||c.set(t,i=new Set),n.forEach(function(e){return i.add(e)})})}});if(A.length){var E=[];A.forEach(function(e){E.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach(function(e){return E.push("- ".concat(e,"\n"))})}),S.forEach(function(e){return e.destroy()}),this.reportError(E)}var T=new Map,P=new Map;s.forEach(function(e){var t=e.element;i.has(t)&&(P.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,T))}),r.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){EC(T,t,[]).push(e),e.destroy()})});var D=v.filter(function(e){return rS(e,u,c)}),M=new Map;Zx(M,this.driver,_,c,"*").forEach(function(e){rS(e,u,c)&&D.push(e)});var I=new Map;p.forEach(function(e,t){Zx(I,n.driver,new Set(e),u,"!")}),D.forEach(function(e){var t=M.get(e),n=I.get(e);M.set(e,Object.assign(Object.assign({},t),n))});var R=[],L=[],F={};s.forEach(function(e){var t=e.element,a=e.player,s=e.instruction;if(i.has(t)){if(d.has(t))return a.onDestroy(function(){return KC(t,s.toStyles)}),a.disabled=!0,a.overrideTotalTime(s.totalTime),void r.push(a);var l=F;if(P.size>1){for(var u=t,c=[];u=u.parentNode;){var h=P.get(u);if(h){l=h;break}c.push(u)}c.forEach(function(e){return P.set(e,l)})}var f=n._buildAnimation(a.namespaceId,s,T,o,I,M);if(a.setRealPlayer(f),l===F)R.push(a);else{var p=n.playersByElement.get(l);p&&p.length&&(a.parentPlayer=CC(p)),r.push(a)}}else ZC(t,s.fromStyles),a.onDestroy(function(){return KC(t,s.toStyles)}),L.push(a),d.has(t)&&r.push(a)}),L.forEach(function(e){var t=o.get(e.element);if(t&&t.length){var n=CC(t);e.setRealPlayer(n)}}),r.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var N=0;N0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new bC(e.duration,e.delay)}}]),e}(),Xx=function(){function e(t,n,i){b(this,e),this.namespaceId=t,this.triggerName=n,this.element=i,this._player=new bC,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return w(e,[{key:"setRealPlayer",value:function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return SC(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})}},{key:"_queueEvent",value:function(e,t){EC(this._queuedCallbacks,e,[]).push(t)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{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(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)}}]),e}();function $x(e){return e&&1===e.nodeType}function Kx(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function Zx(e,t,n,i,r){var a=[];n.forEach(function(e){return a.push(Kx(e))});var o=[];i.forEach(function(n,i){var a={};n.forEach(function(e){var n=a[e]=t.computeStyle(i,e,r);n&&0!=n.length||(i.__ng_removed=Ux,o.push(i))}),e.set(i,a)});var s=0;return n.forEach(function(e){return Kx(e,a[s++])}),o}function Jx(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var i=new Set(t),r=new Map;function a(e){if(!e)return 1;var t=r.get(e);if(t)return t;var o=e.parentNode;return t=n.has(o)?o:i.has(o)?1:a(o),r.set(e,t),t}return t.forEach(function(e){var t=a(e);1!==t&&n.get(t).push(e)}),n}function eS(e,t){if(e.classList)e.classList.add(t);else{var n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function tS(e,t){if(e.classList)e.classList.remove(t);else{var n=e.$$classes;n&&delete n[t]}}function nS(e,t,n){CC(n).onDone(function(){return e.processLeaveNode(t)})}function iS(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),e}();function oS(e,t){var n=null,i=null;return Array.isArray(t)&&t.length?(n=lS(t[0]),t.length>1&&(i=lS(t[t.length-1]))):t&&(n=lS(t)),n||i?new sS(e,n,i):null}var sS=function(){var e=function(){function e(t,n,i){b(this,e),this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;var r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}return w(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&KC(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(KC(this._element,this._initialStyles),this._endStyles&&(KC(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(ZC(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ZC(this._element,this._endStyles),this._endStyles=null),KC(this._element,this._initialStyles),this._state=3)}}]),e}();return e.initialStylesByElement=new WeakMap,e}();function lS(e){for(var t=null,n=Object.keys(e),i=0;i=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),pS(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){var n=gS(e,"").split(","),i=fS(n,t);i>=0&&(n.splice(i,1),mS(e,"",n.join(",")))}(this._element,this._name))}}]),e}();function dS(e,t,n){mS(e,"PlayState",n,hS(e,t))}function hS(e,t){var n=gS(e,"");return n.indexOf(",")>0?fS(n.split(","),t):fS([n],t)}function fS(e,t){for(var n=0;n=0)return n;return-1}function pS(e,t,n){n?e.removeEventListener("animationend",t):e.addEventListener("animationend",t)}function mS(e,t,n,i){var r="animation"+t;if(null!=i){var a=e.style[r];if(a.length){var o=a.split(",");o[i]=n,n=o.join(",")}}e.style[r]=n}function gS(e,t){return e.style["animation"+t]||""}var vS=function(){function e(t,n,i,r,a,o,s,l){b(this,e),this.element=t,this.keyframes=n,this.animationName=i,this._duration=r,this._delay=a,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=r+a,this._buildStyler()}return w(e,[{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{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(e){return e()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(e){return e()}),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(e){this._styler.setPosition(e)}},{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 e=this;this._styler=new cS(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return e.finish()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}},{key:"beforeDestroy",value:function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(i){"offset"!=i&&(t[i]=n?e._finalStyles[i]:ux(e.element,i))})}this.currentSnapshot=t}}]),e}(),yS=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this)).element=e,r._startingStyles={},r.__initialized=!1,r._styles=HC(i),r}return w(n,[{key:"init",value:function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(t){e._startingStyles[t]=e.element.style[t]}),h(_(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(t){return e.element.style.setProperty(t,e._styles[t])}),h(_(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)}),this._startingStyles=null,h(_(n.prototype),"destroy",this).call(this))}}]),n}(bC),_S=function(){function e(){b(this,e),this._count=0,this._head=document.querySelector("head")}return w(e,[{key:"validateStyleProperty",value:function(e){return FC(e)}},{key:"matchesElement",value:function(e,t){return NC(e,t)}},{key:"containsElement",value:function(e,t){return VC(e,t)}},{key:"query",value:function(e,t,n){return BC(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"buildKeyframeElement",value:function(e,t,n){n=n.map(function(e){return HC(e)});var i="@keyframes ".concat(t," {\n"),r="";n.forEach(function(e){r=" ";var t=parseFloat(e.offset);i+="".concat(r).concat(100*t,"% {\n"),r+=" ",Object.keys(e).forEach(function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(i+="".concat(r,"animation-timing-function: ").concat(n,";\n")));default:return void(i+="".concat(r).concat(t,": ").concat(n,";\n"))}}),i+="".concat(r,"}\n")}),i+="}\n";var a=document.createElement("style");return a.textContent=i,a}},{key:"animate",value:function(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=a.filter(function(e){return e instanceof vS}),s={};ox(n,i)&&o.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return s[e]=t[e]})});var l=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach(function(e){Object.keys(e).forEach(function(n){"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=sx(e,t,s));if(0==n)return new yS(e,l);var u="gen_css_kf_"+this._count++,c=this.buildKeyframeElement(e,u,t);document.querySelector("head").appendChild(c);var d=oS(e,t),h=new vS(e,t,u,n,i,r,l,d);return h.onDestroy(function(){var e;(e=c).parentNode.removeChild(e)}),h}}]),e}(),bS=function(){function e(t,n,i,r){b(this,e),this.element=t,this.keyframes=n,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}return w(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(e,t,n){return e.animate(t,n)}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),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(e){return e()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:ux(e.element,n))}),this.currentSnapshot=t}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),kS=function(){function e(){b(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(wS().toString()),this._cssKeyframesDriver=new _S}return w(e,[{key:"validateStyleProperty",value:function(e){return FC(e)}},{key:"matchesElement",value:function(e,t){return NC(e,t)}},{key:"containsElement",value:function(e,t){return VC(e,t)}},{key:"query",value:function(e,t,n){return BC(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"overrideWebAnimationsSupport",value:function(e){this._isNativeImpl=e}},{key:"animate",value:function(e,t,n,i,r){var a=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(e,t,n,i,r,a);var s={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(s.easing=r);var l={},u=a.filter(function(e){return e instanceof bS});ox(n,i)&&u.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return l[e]=t[e]})});var c=oS(e,t=sx(e,t=t.map(function(e){return QC(e,!1)}),l));return new bS(e,t,s,c)}}]),e}();function wS(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var CS,xS=((CS=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this))._nextAnimationId=0,r._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Ke.None,styles:[],data:{animation:[]}}),r}return w(n,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?hC(e):e;return OS(this._renderer,null,t,"register",[n]),new SS(t,this._renderer)}}]),n}(lC)).\u0275fac=function(e){return new(e||CS)(Ni(Tl),Ni(sd))},CS.\u0275prov=Le({token:CS,factory:CS.\u0275fac}),CS),SS=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this))._id=e,r._renderer=i,r}return w(n,[{key:"create",value:function(e,t){return new AS(this._id,e,t||{},this._renderer)}}]),n}(function(){return function e(){b(this,e)}}()),AS=function(){function e(t,n,i,r){b(this,e),this.id=t,this.element=n,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}return w(e,[{key:"_listen",value:function(e,t){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),t)}},{key:"_command",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i=0&&e3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i)}},{key:"removeChild",value:function(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}},{key:"selectRootElement",value:function(e,t){return this.delegate.selectRootElement(e,t)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setAttribute",value:function(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}},{key:"removeAttribute",value:function(e,t,n){this.delegate.removeAttribute(e,t,n)}},{key:"addClass",value:function(e,t){this.delegate.addClass(e,t)}},{key:"removeClass",value:function(e,t){this.delegate.removeClass(e,t)}},{key:"setStyle",value:function(e,t,n,i){this.delegate.setStyle(e,t,n,i)}},{key:"removeStyle",value:function(e,t,n){this.delegate.removeStyle(e,t,n)}},{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)&&"@.disabled"==t?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}},{key:"setValue",value:function(e,t){this.delegate.setValue(e,t)}},{key:"listen",value:function(e,t,n){return this.delegate.listen(e,t,n)}},{key:"disableAnimations",value:function(e,t){this.engine.disableAnimations(e,t)}}]),e}(),IS=function(e){f(i,e);var t=m(i);function i(e,n,r,a){var o;return b(this,i),(o=t.call(this,n,r,a)).factory=e,o.namespaceId=n,o}return w(i,[{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&"@.disabled"==t?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}},{key:"listen",value:function(e,t,i){var r,a,o=this;if("@"==t.charAt(0)){var s,l=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e),u=t.substr(1),c="";return"@"!=u.charAt(0)&&(a=(r=u).indexOf("."),u=(s=n([r.substring(0,a),r.substr(a+1)],2))[0],c=s[1]),this.engine.listen(this.namespaceId,l,u,c,function(e){o.factory.scheduleListenerCallback(e._data||-1,i,e)})}return this.delegate.listen(e,t,i)}}]),i}(MS),RS=((TS=function(e){f(n,e);var t=m(n);function n(e,i,r){return b(this,n),t.call(this,e.body,i,r)}return n}(aS)).\u0275fac=function(e){return new(e||TS)(Ni(sd),Ni(jC),Ni(Dx))},TS.\u0275prov=Le({token:TS,factory:TS.\u0275fac}),TS),LS=new _i("AnimationModuleType"),FS=[{provide:jC,useFactory:function(){return"function"==typeof wS()?new kS:new _S}},{provide:LS,useValue:"BrowserAnimations"},{provide:lC,useClass:xS},{provide:Dx,useFactory:function(){return new Mx}},{provide:aS,useClass:RS},{provide:Tl,useFactory:function(e,t,n){return new DS(e,t,n)},deps:[Pf,aS,Oc]}],NS=((PS=function e(){b(this,e)}).\u0275fac=function(e){return new(e||PS)},PS.\u0275mod=yt({type:PS}),PS.\u0275inj=Ne({providers:FS,imports:[Uf]}),PS),VS=["*",[["mat-option"],["ng-container"]]],BS=["*","mat-option, ng-container"];function HS(e,t){if(1&e&&fs(0,"mat-pseudo-checkbox",4),2&e){var n=As();us("state",n.selected?"checked":"unchecked")("disabled",n.disabled)}}function zS(e,t){if(1&e&&(ds(0,"span",5),Js(1),hs()),2&e){var n=As();Oa(1),tl("(",n.group.label,")")}}var GS,jS=["*"],US=function(){var e=function e(){b(this,e)};return e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",e}(),WS=function(){var e=function e(){b(this,e)};return e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms",e}(),qS=new Il("11.2.7"),YS=new _i("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),QS=((GS=function(){function e(t,n,i){b(this,e),this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=n,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return w(e,[{key:"_getWindow",value:function(){var e=this._document.defaultView||window;return"object"==typeof e&&e?e:null}},{key:"_checksAreEnabled",value:function(){return Hc()&&!this._isTestEnv()}},{key:"_isTestEnv",value:function(){var e=this._getWindow();return e&&(e.__karma__||e.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){if(this._checksAreEnabled()&&!1!==this._sanityChecks&&this._sanityChecks.theme&&this._document.body&&"function"==typeof getComputedStyle){var e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);var t=getComputedStyle(e);t&&"none"!==t.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(e)}}},{key:"_checkCdkVersionMatch",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&qS.full!==sC.full&&console.warn("The Angular Material version ("+qS.full+") does not match the Angular CDK version ("+sC.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),e}()).\u0275fac=function(e){return new(e||GS)(Ni(aC),Ni(YS,8),Ni(sd))},GS.\u0275mod=yt({type:GS}),GS.\u0275inj=Ne({imports:[[Ry],Ry]}),GS);function XS(e){return function(e){f(n,e);var t=m(n);function n(){var e;b(this,n);for(var i=arguments.length,r=new Array(i),a=0;a1&&void 0!==arguments[1]?arguments[1]:0;return function(e){f(i,e);var n=m(i);function i(){var e;b(this,i);for(var r=arguments.length,a=new Array(r),o=0;o0?n:e}}]),e}(),rA=new _i("mat-date-formats");try{tA="undefined"!=typeof Intl}catch(lte){tA=!1}var aA={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"]},oA=uA(31,function(e){return String(e+1)}),sA={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},lA=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function uA(e,t){for(var n=Array(e),i=0;i9999)&&(e=this.clone(e)).setFullYear(Math.max(1,Math.min(9999,e.getFullYear()))),t=Object.assign(Object.assign({},t),{timeZone:"utc"});var n=new Intl.DateTimeFormat(this.locale,t);return this._stripDirectionalityCharacters(this._format(n,e))}return this._stripDirectionalityCharacters(e.toDateString())}},{key:"addCalendarYears",value:function(e,t){return this.addCalendarMonths(e,12*t)}},{key:"addCalendarMonths",value:function(e,t){var n=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(n)!=((this.getMonth(e)+t)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n}},{key:"addCalendarDays",value:function(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}},{key:"toIso8601",value:function(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}},{key:"deserialize",value:function(e){if("string"==typeof e){if(!e)return null;if(lA.test(e)){var t=new Date(e);if(this.isValid(t))return t}}return h(_(n.prototype),"deserialize",this).call(this,e)}},{key:"isDateInstance",value:function(e){return e instanceof Date}},{key:"isValid",value:function(e){return!isNaN(e.getTime())}},{key:"invalid",value:function(){return new Date(NaN)}},{key:"_createDateWithOverflow",value:function(e,t,n){var i=new Date;return i.setFullYear(e,t,n),i.setHours(0,0,0,0),i}},{key:"_2digit",value:function(e){return("00"+e).slice(-2)}},{key:"_stripDirectionalityCharacters",value:function(e){return e.replace(/[\u200e\u200f]/g,"")}},{key:"_format",value:function(e,t){var n=new Date;return n.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(n)}}]),n}(iA)).\u0275fac=function(e){return new(e||dA)(Ni(nA,8),Ni(ow))},dA.\u0275prov=Le({token:dA,factory:dA.\u0275fac}),dA),gA=((cA=function e(){b(this,e)}).\u0275fac=function(e){return new(e||cA)},cA.\u0275mod=yt({type:cA}),cA.\u0275inj=Ne({providers:[{provide:iA,useClass:mA}],imports:[[sw]]}),cA),vA={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"}}},yA=((pA=function e(){b(this,e)}).\u0275fac=function(e){return new(e||pA)},pA.\u0275mod=yt({type:pA}),pA.\u0275inj=Ne({providers:[{provide:rA,useValue:vA}],imports:[[gA]]}),pA),_A=((fA=function(){function e(){b(this,e)}return w(e,[{key:"isErrorState",value:function(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}]),e}()).\u0275fac=function(e){return new(e||fA)},fA.\u0275prov=Le({factory:function(){return new fA},token:fA,providedIn:"root"}),fA),bA=((hA=function e(){b(this,e)}).\u0275fac=function(e){return new(e||hA)},hA.\u0275dir=bt({type:hA,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),hA);function kA(e,t,n){var i=e.nativeElement.classList;n?i.add(t):i.remove(t)}var wA,CA,xA,SA,AA,OA,EA,TA,PA,DA=((wA=function e(){b(this,e)}).\u0275fac=function(e){return new(e||wA)},wA.\u0275mod=yt({type:wA}),wA.\u0275inj=Ne({imports:[[QS],QS]}),wA),MA=function(){function e(t,n,i){b(this,e),this._renderer=t,this.element=n,this.config=i,this.state=3}return w(e,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),e}(),IA={enterDuration:450,exitDuration:400},RA=cw({passive:!0}),LA=["mousedown","touchstart"],FA=["mouseup","mouseleave","touchend","touchcancel"],NA=function(){function e(t,n,i,r){b(this,e),this._target=t,this._ngZone=n,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Jv(i))}return w(e,[{key:"fadeInRipple",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),a=Object.assign(Object.assign({},IA),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);var o=i.radius||function(e,t,n){var i=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),r=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(i*i+r*r)}(e,t,r),s=e-r.left,l=t-r.top,u=a.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=s-o+"px",c.style.top=l-o+"px",c.style.height=2*o+"px",c.style.width=2*o+"px",null!=i.color&&(c.style.backgroundColor=i.color),c.style.transitionDuration="".concat(u,"ms"),this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";var d=new MA(this,c,i);return d.state=0,this._activeRipples.add(d),i.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone(function(){var e=d===n._mostRecentTransientRipple;d.state=1,i.persistent||e&&n._isPointerDown||d.fadeOut()},u),d}},{key:"fadeOutRipple",value:function(e){var t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),t){var n=e.element,i=Object.assign(Object.assign({},IA),e.config.animation);n.style.transitionDuration="".concat(i.exitDuration,"ms"),n.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(function(){e.state=3,n.parentNode.removeChild(n)},i.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(e){return e.fadeOut()})}},{key:"setupTriggerEvents",value:function(e){var t=Jv(e);t&&t!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(LA))}},{key:"handleEvent",value:function(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(FA),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(e){var t=Qw(e),n=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(e,t)})}},{key:"_registerEvents",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){e.forEach(function(e){t._triggerElement.addEventListener(e,t,RA)})})}},{key:"_removeTriggerEvents",value:function(){var e=this;this._triggerElement&&(LA.forEach(function(t){e._triggerElement.removeEventListener(t,e,RA)}),this._pointerUpEventsRegistered&&FA.forEach(function(t){e._triggerElement.removeEventListener(t,e,RA)}))}}]),e}(),VA=new _i("mat-ripple-global-options"),BA=((AA=function(){function e(t,n,i,r,a){b(this,e),this._elementRef=t,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new NA(this,n,t,i)}return w(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}]),e}()).\u0275fac=function(e){return new(e||AA)(ls(Ol),ls(Oc),ls(ow),ls(VA,8),ls(LS,8))},AA.\u0275dir=bt({type:AA,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&Hs("mat-ripple-unbounded",t.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"]}),AA),HA=((SA=function e(){b(this,e)}).\u0275fac=function(e){return new(e||SA)},SA.\u0275mod=yt({type:SA}),SA.\u0275inj=Ne({imports:[[QS,sw],QS]}),SA),zA=((xA=function e(t){b(this,e),this._animationMode=t,this.state="unchecked",this.disabled=!1}).\u0275fac=function(e){return new(e||xA)(ls(LS,8))},xA.\u0275cmp=pt({type:xA,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&Hs("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},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}),xA),GA=((CA=function e(){b(this,e)}).\u0275fac=function(e){return new(e||CA)},CA.\u0275mod=yt({type:CA}),CA.\u0275inj=Ne({imports:[[QS]]}),CA),jA=new _i("MAT_OPTION_PARENT_COMPONENT"),UA=XS(function e(){b(this,e)}),WA=0,qA=((OA=function(e){f(n,e);var t=m(n);function n(e){var i,r;return b(this,n),(i=t.call(this))._labelId="mat-optgroup-label-"+WA++,i._inert=null!==(r=null==e?void 0:e.inertGroups)&&void 0!==r&&r,i}return n}(UA)).\u0275fac=function(e){return new(e||OA)(ls(jA,8))},OA.\u0275dir=bt({type:OA,inputs:{label:"label"},features:[jo]}),OA),YA=new _i("MatOptgroup"),QA=((EA=function(e){f(n,e);var t=m(n);function n(){return b(this,n),t.apply(this,arguments)}return n}(qA)).\u0275fac=function(e){return XA(e||EA)},EA.\u0275cmp=pt({type:EA,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-optgroup"],hostVars:5,hostBindings:function(e,t){2&e&&(is("role",t._inert?null:"group")("aria-disabled",t._inert?null:t.disabled.toString())("aria-labelledby",t._inert?null:t._labelId),Hs("mat-optgroup-disabled",t.disabled))},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[bl([{provide:YA,useExisting:EA}]),jo],ngContentSelectors:BS,decls:4,vars:2,consts:[["aria-hidden","true",1,"mat-optgroup-label",3,"id"]],template:function(e,t){1&e&&(Es(VS),ds(0,"span",0),Js(1),Ts(2),hs(),Ts(3,1)),2&e&&(us("id",t._labelId),Oa(1),tl("",t.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}),EA),XA=fi(QA),$A=0,KA=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];b(this,e),this.source=t,this.isUserInput=n},ZA=((PA=function(){function e(t,n,i,r){b(this,e),this._element=t,this._changeDetectorRef=n,this._parent=i,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+$A++,this.onSelectionChange=new Vu,this._stateChanges=new j}return w(e,[{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(e){this._disabled=Qv(e)}},{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()}},{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(e,t){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(t)}},{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(e){13!==e.keyCode&&32!==e.keyCode||Zk(e)||(this._selectViaInteraction(),e.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 e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new KA(this,e))}}]),e}()).\u0275fac=function(e){return new(e||PA)(ls(Ol),ls(Jl),ls(void 0),ls(qA))},PA.\u0275dir=bt({type:PA,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),PA),JA=((TA=function(e){f(n,e);var t=m(n);function n(e,i,r,a){return b(this,n),t.call(this,e,i,r,a)}return n}(ZA)).\u0275fac=function(e){return new(e||TA)(ls(Ol),ls(Jl),ls(jA,8),ls(YA,8))},TA.\u0275cmp=pt({type:TA,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&ks("click",function(){return t._selectViaInteraction()})("keydown",function(e){return t._handleKeydown(e)}),2&e&&(al("id",t.id),is("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),Hs("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[jo],ngContentSelectors:jS,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,t){1&e&&(Es(),os(0,HS,1,2,"mat-pseudo-checkbox",0),ds(1,"span",1),Ts(2),hs(),os(3,zS,2,1,"span",2),fs(4,"div",3)),2&e&&(us("ngIf",t.multiple),Oa(3),us("ngIf",t.group&&t.group._inert),Oa(1),us("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[wh,BA,zA],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}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.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}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),TA);function eO(e,t,n){if(n.length){for(var i=t.toArray(),r=n.toArray(),a=0,o=0;on+i?Math.max(0,e-i+t):n}var nO,iO=((nO=function e(){b(this,e)}).\u0275fac=function(e){return new(e||nO)},nO.\u0275mod=yt({type:nO}),nO.\u0275inj=Ne({imports:[[HA,Zh,QS,GA]]}),nO);function rO(e){return new N(function(t){var n;try{n=e()}catch(i){return void t.error(i)}return(n?te(n):hp()).subscribe(t)})}function aO(e){return!!e&&(e instanceof N||"function"==typeof e.lift&&"function"==typeof e.subscribe)}var oO=function(){function e(t){b(this,e),this.durationSelector=t}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new sO(e,this.durationSelector))}}]),e}(),sO=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this,e)).durationSelector=i,r.hasValue=!1,r}return w(n,[{key:"_next",value:function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t;try{t=(0,this.durationSelector)(e)}catch(i){return this.destination.error(i)}var n=re(t,new ne(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}},{key:"clearThrottle",value:function(){var e=this.value,t=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}},{key:"notifyNext",value:function(){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),n}(ie);function lO(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rp;return t=function(){return op(e,n)},function(e){return e.lift(new oO(t))}}function uO(){return function(e){return e.lift(new cO)}}var cO=function(){function e(){b(this,e)}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new dO(e))}}]),e}(),dO=function(e){f(n,e);var t=m(n);function n(e){var i;return b(this,n),(i=t.call(this,e)).hasPrev=!1,i}return w(n,[{key:"_next",value:function(e){var t;this.hasPrev?t=[this.prev,e]:this.hasPrev=!0,this.prev=e,t&&this.destination.next(t)}}]),n}(P),hO=function e(){b(this,e)};function fO(e){return e&&"function"==typeof e.connect}var pO,mO,gO,vO,yO,_O,bO,kO,wO,CO=function(){function e(){b(this,e)}return w(e,[{key:"applyChanges",value:function(e,t,n,i,r){e.forEachOperation(function(e,i,a){var o,s;if(null==e.previousIndex){var l=n(e,i,a);o=t.createEmbeddedView(l.templateRef,l.context,l.index),s=1}else null==a?(t.remove(i),s=3):(o=t.get(i),t.move(o,a),s=2);r&&r({context:null==o?void 0:o.context,operation:s,record:e})})}},{key:"detach",value:function(){}}]),e}(),xO=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];b(this,e),this._multiple=n,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new j,i&&i.length&&(n?i.forEach(function(e){return t._markSelected(e)}):this._markSelected(i[0]),this._selectedToEmit.length=0)}return w(e,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new N(function(n){e._globalSubscription||e._addGlobalListener();var i=t>0?e._scrolled.pipe(lO(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){i.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}}):fp()}},{key:"ngOnDestroy",value:function(){var e=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(t,n){return e.deregister(n)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(e,t){var n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(jm(function(e){return!e||n.indexOf(e)>-1}))}},{key:"getAncestorScrollContainers",value:function(e){var t=this,n=[];return this.scrollContainers.forEach(function(i,r){t._scrollableContainsElement(r,e)&&n.push(r)}),n}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(e,t){var n=Jv(t),i=e.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var e=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return zg(e._getWindow().document,"scroll").subscribe(function(){return e._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),e}()).\u0275fac=function(e){return new(e||_O)(Ni(Oc),Ni(ow),Ni(sd,8))},_O.\u0275prov=Le({factory:function(){return new _O(Ni(Oc),Ni(ow),Ni(sd,8))},token:_O,providedIn:"root"}),_O),EO=((yO=function(){function e(t,n,i,r){var a=this;b(this,e),this.elementRef=t,this.scrollDispatcher=n,this.ngZone=i,this.dir=r,this._destroyed=new j,this._elementScrolled=new N(function(e){return a.ngZone.runOutsideAngular(function(){return zg(a.elementRef.nativeElement,"scroll").pipe(Pp(a._destroyed)).subscribe(e)})})}return w(e,[{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(e){var t=this.elementRef.nativeElement,n=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=n?e.end:e.start),null==e.right&&(e.right=n?e.start:e.end),null!=e.bottom&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),n&&0!=hw()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==hw()?e.left=e.right:1==hw()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}},{key:"_applyScrollToOptions",value:function(e){var t=this.elementRef.nativeElement;dw()?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}},{key:"measureScrollOffset",value:function(e){var t=this.elementRef.nativeElement;if("top"==e)return t.scrollTop;if("bottom"==e)return t.scrollHeight-t.clientHeight-t.scrollTop;var n=this.dir&&"rtl"==this.dir.value;return"start"==e?e=n?"right":"left":"end"==e&&(e=n?"left":"right"),n&&2==hw()?"left"==e?t.scrollWidth-t.clientWidth-t.scrollLeft:t.scrollLeft:n&&1==hw()?"left"==e?t.scrollLeft+t.scrollWidth-t.clientWidth:-t.scrollLeft:"left"==e?t.scrollLeft:t.scrollWidth-t.clientWidth-t.scrollLeft}}]),e}()).\u0275fac=function(e){return new(e||yO)(ls(Ol),ls(OO),ls(Oc),ls(Iy,8))},yO.\u0275dir=bt({type:yO,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),yO),TO=((vO=function(){function e(t,n,i){var r=this;b(this,e),this._platform=t,this._change=new j,this._changeListener=function(e){r._change.next(e)},this._document=i,n.runOutsideAngular(function(){if(t.isBrowser){var e=r._getWindow();e.addEventListener("resize",r._changeListener),e.addEventListener("orientationchange",r._changeListener)}r.change().subscribe(function(){return r._updateViewportSize()})})}return w(e,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}},{key:"getViewportRect",value:function(){var e=this.getViewportScrollPosition(),t=this.getViewportSize(),n=t.width,i=t.height;return{top:e.top,left:e.left,bottom:e.top+i,right:e.left+n,height:i,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var e=this._document,t=this._getWindow(),n=e.documentElement,i=n.getBoundingClientRect();return{top:-i.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,left:-i.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return e>0?this._change.pipe(lO(e)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}]),e}()).\u0275fac=function(e){return new(e||vO)(Ni(ow),Ni(Oc),Ni(sd,8))},vO.\u0275prov=Le({factory:function(){return new vO(Ni(ow),Ni(Oc),Ni(sd,8))},token:vO,providedIn:"root"}),vO),PO=((gO=function e(){b(this,e)}).\u0275fac=function(e){return new(e||gO)},gO.\u0275mod=yt({type:gO}),gO.\u0275inj=Ne({}),gO),DO=((mO=function e(){b(this,e)}).\u0275fac=function(e){return new(e||mO)},mO.\u0275mod=yt({type:mO}),mO.\u0275inj=Ne({imports:[[Ry,sw,PO],Ry,PO]}),mO),MO=function(){function e(){b(this,e)}return w(e,[{key:"attach",value:function(e){return this._attachedHost=e,e.attach(this)}},{key:"detach",value:function(){var e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(e){this._attachedHost=e}}]),e}(),IO=function(e){f(n,e);var t=m(n);function n(e,i,r,a){var o;return b(this,n),(o=t.call(this)).component=e,o.viewContainerRef=i,o.injector=r,o.componentFactoryResolver=a,o}return n}(MO),RO=function(e){f(n,e);var t=m(n);function n(e,i,r){var a;return b(this,n),(a=t.call(this)).templateRef=e,a.viewContainerRef=i,a.context=r,a}return w(n,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=t,h(_(n.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(){return this.context=void 0,h(_(n.prototype),"detach",this).call(this)}}]),n}(MO),LO=function(e){f(n,e);var t=m(n);function n(e){var i;return b(this,n),(i=t.call(this)).element=e instanceof Ol?e.nativeElement:e,i}return n}(MO),FO=function(){function e(){b(this,e),this._isDisposed=!1,this.attachDomPortal=null}return w(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(e){return e instanceof IO?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof RO?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof LO?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}},{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(e){this._disposeFn=e}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),e}(),NO=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o){var s,l;return b(this,n),(l=t.call(this)).outletElement=e,l._componentFactoryResolver=i,l._appRef=r,l._defaultInjector=a,l.attachDomPortal=function(e){var t=e.element,i=l._document.createComment("dom-portal");t.parentNode.insertBefore(i,t),l.outletElement.appendChild(t),h((s=v(l),_(n.prototype)),"setDisposeFn",s).call(s,function(){i.parentNode&&i.parentNode.replaceChild(t,i)})},l._document=o,l}return w(n,[{key:"attachComponentPortal",value:function(e){var t,n=this,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);return e.viewContainerRef?(t=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(function(){return t.destroy()})):(t=i.create(e.injector||this._defaultInjector),this._appRef.attachView(t.hostView),this.setDisposeFn(function(){n._appRef.detachView(t.hostView),t.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(t)),t}},{key:"attachTemplatePortal",value:function(e){var t=this,n=e.viewContainerRef,i=n.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach(function(e){return t.outletElement.appendChild(e)}),i.detectChanges(),this.setDisposeFn(function(){var e=n.indexOf(i);-1!==e&&n.remove(e)}),i}},{key:"dispose",value:function(){h(_(n.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(e){return e.hostView.rootNodes[0]}}]),n}(FO),VO=((wO=function(e){f(n,e);var t=m(n);function n(e,i){return b(this,n),t.call(this,e,i)}return n}(RO)).\u0275fac=function(e){return new(e||wO)(ls(au),ls(du))},wO.\u0275dir=bt({type:wO,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[jo]}),wO),BO=((kO=function(e){f(n,e);var t=m(n);function n(e,i,r){var a,o;return b(this,n),(o=t.call(this))._componentFactoryResolver=e,o._viewContainerRef=i,o._isInitialized=!1,o.attached=new Vu,o.attachDomPortal=function(e){var t=e.element,i=o._document.createComment("dom-portal");e.setAttachedHost(v(o)),t.parentNode.insertBefore(i,t),o._getRootNode().appendChild(t),h((a=v(o),_(n.prototype)),"setDisposeFn",a).call(a,function(){i.parentNode&&i.parentNode.replaceChild(t,i)})},o._document=r,o}return w(n,[{key:"portal",get:function(){return this._attachedPortal},set:function(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&h(_(n.prototype),"detach",this).call(this),e&&h(_(n.prototype),"attach",this).call(this,e),this._attachedPortal=e)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){h(_(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(e){e.setAttachedHost(this);var t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),r=t.createComponent(i,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),h(_(n.prototype),"setDisposeFn",this).call(this,function(){return r.destroy()}),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}},{key:"attachTemplatePortal",value:function(e){var t=this;e.setAttachedHost(this);var i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return h(_(n.prototype),"setDisposeFn",this).call(this,function(){return t._viewContainerRef.clear()}),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}},{key:"_getRootNode",value:function(){var e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}]),n}(FO)).\u0275fac=function(e){return new(e||kO)(ls(Cl),ls(du),ls(sd))},kO.\u0275dir=bt({type:kO,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[jo]}),kO),HO=((bO=function e(){b(this,e)}).\u0275fac=function(e){return new(e||bO)},bO.\u0275mod=yt({type:bO}),bO.\u0275inj=Ne({}),bO),zO=function(){function e(t,n){b(this,e),this.predicate=t,this.inclusive=n}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new GO(e,this.predicate,this.inclusive))}}]),e}(),GO=function(e){f(n,e);var t=m(n);function n(e,i,r){var a;return b(this,n),(a=t.call(this,e)).predicate=i,a.inclusive=r,a.index=0,a}return w(n,[{key:"_next",value:function(e){var t,n=this.destination;try{t=this.predicate(e,this.index++)}catch(i){return void n.error(i)}this.nextOrComplete(e,t)}},{key:"nextOrComplete",value:function(e,t){var n=this.destination;Boolean(t)?n.next(e):(this.inclusive&&n.next(e),n.complete())}}]),n}(P),jO=dw(),UO=function(){function e(t,n){b(this,e),this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=n}return w(e,[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=Zv(-this._previousScrollPosition.left),e.style.top=Zv(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var e=this._document.documentElement,t=e.style,n=this._document.body.style,i=t.scrollBehavior||"",r=n.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),jO&&(t.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),jO&&(t.scrollBehavior=i,n.scrollBehavior=r)}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}]),e}(),WO=function(){function e(t,n,i,r){var a=this;b(this,e),this._scrollDispatcher=t,this._ngZone=n,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=function(){a.disable(),a._overlayRef.hasAttached()&&a._ngZone.run(function(){return a._overlayRef.detach()})}}return w(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;if(!this._scrollSubscription){var t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(function(){var t=e._viewportRuler.getViewportScrollPosition().top;Math.abs(t-e._initialScrollPosition)>e._config.threshold?e._detach():e._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),qO=function(){function e(){b(this,e)}return w(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function YO(e,t){return t.some(function(t){return e.bottomt.bottom||e.rightt.right})}function QO(e,t){return t.some(function(t){return e.topt.bottom||e.leftt.right})}var XO,$O,KO,ZO,JO,eE=function(){function e(t,n,i,r){b(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this._config=r,this._scrollSubscription=null}return w(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(e._overlayRef.updatePosition(),e._config&&e._config.autoClose){var t=e._overlayRef.overlayElement.getBoundingClientRect(),n=e._viewportRuler.getViewportSize(),i=n.width,r=n.height;YO(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(e.disable(),e._ngZone.run(function(){return e._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),tE=((XO=function e(t,n,i,r){var a=this;b(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new qO},this.close=function(e){return new WO(a._scrollDispatcher,a._ngZone,a._viewportRuler,e)},this.block=function(){return new UO(a._viewportRuler,a._document)},this.reposition=function(e){return new eE(a._scrollDispatcher,a._viewportRuler,a._ngZone,e)},this._document=r}).\u0275fac=function(e){return new(e||XO)(Ni(OO),Ni(TO),Ni(Oc),Ni(sd))},XO.\u0275prov=Le({factory:function(){return new XO(Ni(OO),Ni(TO),Ni(Oc),Ni(sd))},token:XO,providedIn:"root"}),XO),nE=function e(t){if(b(this,e),this.scrollStrategy=new qO,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t)for(var n=0,i=Object.keys(t);n-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}]),e}()).\u0275fac=function(e){return new(e||ZO)(Ni(sd))},ZO.\u0275prov=Le({factory:function(){return new ZO(Ni(sd))},token:ZO,providedIn:"root"}),ZO),oE=((KO=function(e){f(n,e);var t=m(n);function n(e){var i;return b(this,n),(i=t.call(this,e))._keydownListener=function(e){for(var t=i._attachedOverlays,n=t.length-1;n>-1;n--)if(t[n]._keydownEvents.observers.length>0){t[n]._keydownEvents.next(e);break}},i}return w(n,[{key:"add",value:function(e){h(_(n.prototype),"add",this).call(this,e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),n}(aE)).\u0275fac=function(e){return new(e||KO)(Ni(sd))},KO.\u0275prov=Le({factory:function(){return new KO(Ni(sd))},token:KO,providedIn:"root"}),KO),sE=(($O=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this,e))._platform=i,r._cursorStyleIsSet=!1,r._clickListener=function(e){for(var t=e.composedPath?e.composedPath()[0]:e.target,n=r._attachedOverlays.slice(),i=n.length-1;i>-1;i--){var a=n[i];if(!(a._outsidePointerEvents.observers.length<1)&&a.hasAttached()){if(a.overlayElement.contains(t))break;a._outsidePointerEvents.next(e)}}},r}return w(n,[{key:"add",value:function(e){h(_(n.prototype),"add",this).call(this,e),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._document.body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}]),n}(aE)).\u0275fac=function(e){return new(e||$O)(Ni(sd),Ni(ow))},$O.\u0275prov=Le({factory:function(){return new $O(Ni(sd),Ni(ow))},token:$O,providedIn:"root"}),$O),lE=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),uE=((JO=function(){function e(t,n){b(this,e),this._platform=n,this._document=t}return w(e,[{key:"ngOnDestroy",value:function(){var e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){if(this._platform.isBrowser||lE)for(var e=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]'),t=0;tp&&(p=v,f=g)}}catch(y){m.e(y)}finally{m.f()}return this._isPushed=!1,void this._applyPosition(f.position,f.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(e.position,e.originPoint);this._applyPosition(e.position,e.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&fE(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 e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}},{key:"withScrollableContainers",value:function(e){return this._scrollables=e,this}},{key:"withPositions",value:function(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(e){return this._viewportMargin=e,this}},{key:"withFlexibleDimensions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=e,this}},{key:"withGrowAfterOpen",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=e,this}},{key:"withPush",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=e,this}},{key:"withLockedPosition",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=e,this}},{key:"setOrigin",value:function(e){return this._origin=e,this}},{key:"withDefaultOffsetX",value:function(e){return this._offsetX=e,this}},{key:"withDefaultOffsetY",value:function(e){return this._offsetY=e,this}},{key:"withTransformOriginOn",value:function(e){return this._transformOriginSelector=e,this}},{key:"_getOriginPoint",value:function(e,t){var n;if("center"==t.originX)n=e.left+e.width/2;else{var i=this._isRtl()?e.right:e.left,r=this._isRtl()?e.left:e.right;n="start"==t.originX?i:r}return{x:n,y:"center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom}}},{key:"_getOverlayPoint",value:function(e,t,n){var i,r;return i="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,r="center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height,{x:e.x+i,y:e.y+r}}},{key:"_getOverlayFit",value:function(e,t,n,i){var r=mE(t),a=e.x,o=e.y,s=this._getOffset(i,"x"),l=this._getOffset(i,"y");s&&(a+=s),l&&(o+=l);var u=0-o,c=o+r.height-n.height,d=this._subtractOverflows(r.width,0-a,a+r.width-n.width),h=this._subtractOverflows(r.height,u,c),f=d*h;return{visibleArea:f,isCompletelyWithinViewport:r.width*r.height===f,fitsInViewportVertically:h===r.height,fitsInViewportHorizontally:d==r.width}}},{key:"_canFitWithFlexibleDimensions",value:function(e,t,n){if(this._hasFlexibleDimensions){var i=n.bottom-t.y,r=n.right-t.x,a=pE(this._overlayRef.getConfig().minHeight),o=pE(this._overlayRef.getConfig().minWidth),s=e.fitsInViewportHorizontally||null!=o&&o<=r;return(e.fitsInViewportVertically||null!=a&&a<=i)&&s}return!1}},{key:"_pushOverlayOnScreen",value:function(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};var i,r,a=mE(t),o=this._viewportRect,s=Math.max(e.x+a.width-o.width,0),l=Math.max(e.y+a.height-o.height,0),u=Math.max(o.top-n.top-e.y,0),c=Math.max(o.left-n.left-e.x,0);return i=a.width<=o.width?c||-s:e.xd&&!this._isInitialRender&&!this._growAfterOpen&&(i=e.y-d/2)}if("end"===t.overlayX&&!u||"start"===t.overlayX&&u)s=l.width-e.x+this._viewportMargin,a=e.x-this._viewportMargin;else if("start"===t.overlayX&&!u||"end"===t.overlayX&&u)o=e.x,a=l.right-e.x;else{var h=Math.min(l.right-e.x+l.left,e.x),f=this._lastBoundingBoxSize.width;a=2*h,o=e.x-h,a>f&&!this._isInitialRender&&!this._growAfterOpen&&(o=e.x-f/2)}return{top:i,left:o,bottom:r,right:s,width:a,height:n}}},{key:"_setBoundingBoxStyles",value:function(e,t){var n=this._calculateBoundingBoxRect(e,t);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));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 r=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;i.height=Zv(n.height),i.top=Zv(n.top),i.bottom=Zv(n.bottom),i.width=Zv(n.width),i.left=Zv(n.left),i.right=Zv(n.right),i.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",i.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",r&&(i.maxHeight=Zv(r)),a&&(i.maxWidth=Zv(a))}this._lastBoundingBoxSize=n,fE(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){fE(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){fE(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(e,t){var n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(i){var o=this._viewportRuler.getViewportScrollPosition();fE(n,this._getExactOverlayY(t,e,o)),fE(n,this._getExactOverlayX(t,e,o))}else n.position="static";var s="",l=this._getOffset(t,"x"),u=this._getOffset(t,"y");l&&(s+="translateX(".concat(l,"px) ")),u&&(s+="translateY(".concat(u,"px)")),n.transform=s.trim(),a.maxHeight&&(i?n.maxHeight=Zv(a.maxHeight):r&&(n.maxHeight="")),a.maxWidth&&(i?n.maxWidth=Zv(a.maxWidth):r&&(n.maxWidth="")),fE(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(e,t,n){var i={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));var a=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=a,"bottom"===e.overlayY?i.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":i.top=Zv(r.y),i}},{key:"_getExactOverlayX",value:function(e,t,n){var i={left:"",right:""},r=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),"right"===(this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left")?i.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":i.left=Zv(r.x),i}},{key:"_getScrollVisibility",value:function(){var e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(function(e){return e.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:QO(e,n),isOriginOutsideView:YO(e,n),isOverlayClipped:QO(t,n),isOverlayOutsideView:YO(t,n)}}},{key:"_subtractOverflows",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}},{key:"left",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}},{key:"right",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}},{key:"width",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}},{key:"height",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}},{key:"centerHorizontally",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(e),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(e),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),i=n.width,r=n.height,a=n.maxWidth,o=n.maxHeight,s=!("100%"!==i&&"100vw"!==i||a&&"100%"!==a&&"100vw"!==a),l=!("100%"!==r&&"100vh"!==r||o&&"100%"!==o&&"100vh"!==o);e.position=this._cssPosition,e.marginLeft=s?"0":this._leftOffset,e.marginTop=l?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,s?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=l?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),CE=((vE=function(){function e(t,n,i,r){b(this,e),this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=r}return w(e,[{key:"global",value:function(){return new wE}},{key:"connectedTo",value:function(e,t,n){return new kE(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(e){return new hE(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),e}()).\u0275fac=function(e){return new(e||vE)(Ni(TO),Ni(sd),Ni(ow),Ni(uE))},vE.\u0275prov=Le({factory:function(){return new vE(Ni(TO),Ni(sd),Ni(ow),Ni(uE))},token:vE,providedIn:"root"}),vE),xE=0,SE=((gE=function(){function e(t,n,i,r,a,o,s,l,u,c,d){b(this,e),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=r,this._keyboardDispatcher=a,this._injector=o,this._ngZone=s,this._document=l,this._directionality=u,this._location=c,this._outsideClickDispatcher=d}return w(e,[{key:"create",value:function(e){var t=this._createHostElement(),n=this._createPaneElement(t),i=this._createPortalOutlet(n),r=new nE(e);return r.direction=r.direction||this._directionality.value,new cE(i,t,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(e){var t=this._document.createElement("div");return t.id="cdk-overlay-"+xE++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}},{key:"_createHostElement",value:function(){var e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}},{key:"_createPortalOutlet",value:function(e){return this._appRef||(this._appRef=this._injector.get(Qc)),new NO(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),e}()).\u0275fac=function(e){return new(e||gE)(Ni(tE),Ni(uE),Ni(Cl),Ni(CE),Ni(oE),Ni(zo),Ni(Oc),Ni(sd),Ni(Iy),Ni(Od),Ni(sE))},gE.\u0275prov=Le({token:gE,factory:gE.\u0275fac}),gE),AE=[{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"}],OE=new _i("cdk-connected-overlay-scroll-strategy"),EE=((_E=function e(t){b(this,e),this.elementRef=t}).\u0275fac=function(e){return new(e||_E)(ls(Ol))},_E.\u0275dir=bt({type:_E,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),_E),TE=((yE=function(){function e(t,n,i,r,a){b(this,e),this._overlay=t,this._dir=a,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=O.EMPTY,this._attachSubscription=O.EMPTY,this._detachSubscription=O.EMPTY,this._positionSubscription=O.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new Vu,this.positionChange=new Vu,this.attach=new Vu,this.detach=new Vu,this.overlayKeydown=new Vu,this.overlayOutsideClick=new Vu,this._templatePortal=new RO(n,i),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}return w(e,[{key:"offsetX",get:function(){return this._offsetX},set:function(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=Qv(e)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(e){this._lockPosition=Qv(e)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(e){this._flexibleDimensions=Qv(e)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(e){this._growAfterOpen=Qv(e)}},{key:"push",get:function(){return this._push},set:function(e){this._push=Qv(e)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}},{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var e=this;this.positions&&this.positions.length||(this.positions=AE);var t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(function(){return e.attach.emit()}),this._detachSubscription=t.detachments().subscribe(function(){return e.detach.emit()}),t.keydownEvents().subscribe(function(t){e.overlayKeydown.next(t),27!==t.keyCode||e.disableClose||Zk(t)||(t.preventDefault(),e._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(t){e.overlayOutsideClick.next(t)})}},{key:"_buildConfig",value:function(){var e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new nE({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}},{key:"_updatePositionStrategy",value:function(e){var t=this,n=this.positions.map(function(e){return{originX:e.originX,originY:e.originY,overlayX:e.overlayX,overlayY:e.overlayY,offsetX:e.offsetX||t.offsetX,offsetY:e.offsetY||t.offsetY,panelClass:e.panelClass||void 0}});return e.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 e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e}},{key:"_attachOverlay",value:function(){var e=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(function(t){e.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return n.lift(new zO(e,t))}}(function(){return e.positionChange.observers.length>0})).subscribe(function(t){e.positionChange.emit(t),0===e.positionChange.observers.length&&e._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||yE)(ls(SE),ls(au),ls(du),ls(OE),ls(Iy,8))},yE.\u0275dir=bt({type:yE,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],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",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[It]}),yE),PE={provide:OE,deps:[SE],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},DE=((bE=function e(){b(this,e)}).\u0275fac=function(e){return new(e||bE)},bE.\u0275mod=yt({type:bE}),bE.\u0275inj=Ne({providers:[SE,PE],imports:[[Ry,HO,DO],DO]}),bE),ME=["underline"],IE=["connectionContainer"],RE=["inputContainer"],LE=["label"];function FE(e,t){1&e&&(ps(0),ds(1,"div",14),fs(2,"div",15),fs(3,"div",16),fs(4,"div",17),hs(),ds(5,"div",18),fs(6,"div",15),fs(7,"div",16),fs(8,"div",17),hs(),ms())}function NE(e,t){1&e&&(ds(0,"div",19),Ts(1,1),hs())}function VE(e,t){if(1&e&&(ps(0),Ts(1,2),ds(2,"span"),Js(3),hs(),ms()),2&e){var n=As(2);Oa(3),el(n._control.placeholder)}}function BE(e,t){1&e&&Ts(0,3,["*ngSwitchCase","true"])}function HE(e,t){1&e&&(ds(0,"span",23),Js(1," *"),hs())}function zE(e,t){if(1&e){var n=vs();ds(0,"label",20,21),ks("cdkObserveContent",function(){return rn(n),As().updateOutlineGap()}),os(2,VE,4,1,"ng-container",12),os(3,BE,1,0,"ng-content",12),os(4,HE,2,0,"span",22),hs()}if(2&e){var i=As();Hs("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),us("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),is("for",i._control.id)("aria-owns",i._control.id),Oa(2),us("ngSwitchCase",!1),Oa(1),us("ngSwitchCase",!0),Oa(1),us("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function GE(e,t){1&e&&(ds(0,"div",24),Ts(1,4),hs())}function jE(e,t){if(1&e&&(ds(0,"div",25,26),fs(2,"span",27),hs()),2&e){var n=As();Oa(2),Hs("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function UE(e,t){1&e&&(ds(0,"div"),Ts(1,5),hs()),2&e&&us("@transitionMessages",As()._subscriptAnimationState)}function WE(e,t){if(1&e&&(ds(0,"div",31),Js(1),hs()),2&e){var n=As(2);us("id",n._hintLabelId),Oa(1),el(n.hintLabel)}}function qE(e,t){if(1&e&&(ds(0,"div",28),os(1,WE,2,2,"div",29),Ts(2,6),fs(3,"div",30),Ts(4,7),hs()),2&e){var n=As();us("@transitionMessages",n._subscriptAnimationState),Oa(1),us("ngIf",n.hintLabel)}}var YE,QE,XE,$E,KE,ZE,JE,eT,tT,nT=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],iT=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],rT=0,aT=new _i("MatError"),oT=((YE=function e(){b(this,e),this.id="mat-error-"+rT++}).\u0275fac=function(e){return new(e||YE)},YE.\u0275dir=bt({type:YE,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&is("id",t.id)},inputs:{id:"id"},features:[bl([{provide:aT,useExisting:YE}])]}),YE),sT={transitionMessages:uC("transitionMessages",[pC("enter",fC({opacity:1,transform:"translateY(0%)"})),gC("void => enter",[fC({opacity:0,transform:"translateY(-5px)"}),cC("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},lT=((QE=function e(){b(this,e)}).\u0275fac=function(e){return new(e||QE)},QE.\u0275dir=bt({type:QE}),QE),uT=0,cT=new _i("MatHint"),dT=((KE=function e(){b(this,e),this.align="start",this.id="mat-hint-"+uT++}).\u0275fac=function(e){return new(e||KE)},KE.\u0275dir=bt({type:KE,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(is("id",t.id)("align",null),Hs("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[bl([{provide:cT,useExisting:KE}])]}),KE),hT=(($E=function e(){b(this,e)}).\u0275fac=function(e){return new(e||$E)},$E.\u0275dir=bt({type:$E,selectors:[["mat-label"]]}),$E),fT=((XE=function e(){b(this,e)}).\u0275fac=function(e){return new(e||XE)},XE.\u0275dir=bt({type:XE,selectors:[["mat-placeholder"]]}),XE),pT=new _i("MatPrefix"),mT=((ZE=function e(){b(this,e)}).\u0275fac=function(e){return new(e||ZE)},ZE.\u0275dir=bt({type:ZE,selectors:[["","matPrefix",""]],features:[bl([{provide:pT,useExisting:ZE}])]}),ZE),gT=new _i("MatSuffix"),vT=((JE=function e(){b(this,e)}).\u0275fac=function(e){return new(e||JE)},JE.\u0275dir=bt({type:JE,selectors:[["","matSuffix",""]],features:[bl([{provide:gT,useExisting:JE}])]}),JE),yT=0,_T=$S(function e(t){b(this,e),this._elementRef=t},"primary"),bT=new _i("MAT_FORM_FIELD_DEFAULT_OPTIONS"),kT=new _i("MatFormField"),wT=((tT=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o,s,l,u){var c;return b(this,n),(c=t.call(this,e))._elementRef=e,c._changeDetectorRef=i,c._dir=a,c._defaults=o,c._platform=s,c._ngZone=l,c._outlineGapCalculationNeededImmediately=!1,c._outlineGapCalculationNeededOnStable=!1,c._destroyed=new j,c._showAlwaysAnimate=!1,c._subscriptAnimationState="",c._hintLabel="",c._hintLabelId="mat-hint-"+yT++,c._labelId="mat-form-field-label-"+yT++,c.floatLabel=c._getDefaultFloatLabelState(),c._animationsEnabled="NoopAnimations"!==u,c.appearance=o&&o.appearance?o.appearance:"legacy",c._hideRequiredMarker=!(!o||null==o.hideRequiredMarker)&&o.hideRequiredMarker,c}return w(n,[{key:"appearance",get:function(){return this._appearance},set:function(e){var t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(e){this._hideRequiredMarker=Qv(e)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(e){this._hintLabel=e,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(e){this._explicitFormFieldControl=e}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var e=this;this._validateControlChild();var t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(t.controlType)),t.stateChanges.pipe(Rp(null)).subscribe(function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Pp(this._destroyed)).subscribe(function(){return e._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.pipe(Pp(e._destroyed)).subscribe(function(){e._outlineGapCalculationNeededOnStable&&e.updateOutlineGap()})}),de(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){e._outlineGapCalculationNeededOnStable=!0,e._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Rp(null)).subscribe(function(){e._processHints(),e._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Rp(null)).subscribe(function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Pp(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?e._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return e.updateOutlineGap()})}):e.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(e){var t=this._control?this._control.ngControl:null;return t&&t[e]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&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 e=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,zg(this._label.nativeElement,"transitionend").pipe(Qg(1)).subscribe(function(){e._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push.apply(e,a(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var t=this._hintChildren?this._hintChildren.find(function(e){return"start"===e.align}):null,n=this._hintChildren?this._hintChildren.find(function(e){return"end"===e.align}):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&e.push.apply(e,a(this._errorChildren.map(function(e){return e.id})));this._control.setDescribedByIds(e)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var e=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var t=0,n=0,i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),a=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);for(var s=this._getStartEnd(o),l=e.children,u=this._getStartEnd(l[0].getBoundingClientRect()),c=0,d=0;d0?.75*c+10:0}for(var h=0;h1&&void 0!==arguments[1]?arguments[1]:rp,i=(t=e)instanceof Date&&!isNaN(+t)?+e-n.now():Math.abs(e);return function(e){return e.lift(new ST(i,n))}}var ST=function(){function e(t,n){b(this,e),this.delay=t,this.scheduler=n}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new AT(e,this.delay,this.scheduler))}}]),e}(),AT=function(e){f(n,e);var t=m(n);function n(e,i,r){var a;return b(this,n),(a=t.call(this,e)).delay=i,a.scheduler=r,a.queue=[],a.active=!1,a.errored=!1,a}return w(n,[{key:"_schedule",value:function(e){this.active=!0,this.destination.add(e.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}},{key:"scheduleNotification",value:function(e){if(!0!==this.errored){var t=this.scheduler,n=new OT(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}}},{key:"_next",value:function(e){this.scheduleNotification(vp.createNext(e))}},{key:"_error",value:function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(vp.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){for(var t=e.source,n=t.queue,i=e.scheduler,r=e.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var a=Math.max(0,n[0].time-i.now());this.schedule(e,a)}else this.unsubscribe(),t.active=!1}}]),n}(P),OT=function e(t,n){b(this,e),this.time=t,this.notification=n},ET=["panel"];function TT(e,t){if(1&e&&(ds(0,"div",0,1),Ts(2),hs()),2&e){var n=t.id,i=As();us("id",i.id)("ngClass",i._classList),is("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(n))}}var PT,DT,MT,IT,RT,LT,FT,NT,VT,BT,HT,zT,GT,jT,UT,WT,qT,QT,XT,$T,KT=["*"],ZT=0,JT=function e(t,n){b(this,e),this.source=t,this.option=n},eP=KS(function e(){b(this,e)}),tP=new _i("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}}),nP=((DT=function(e){f(n,e);var t=m(n);function n(e,i,r,a){var o;return b(this,n),(o=t.call(this))._changeDetectorRef=e,o._elementRef=i,o._activeOptionChanges=O.EMPTY,o.showPanel=!1,o._isOpen=!1,o.displayWith=null,o.optionSelected=new Vu,o.opened=new Vu,o.closed=new Vu,o.optionActivated=new Vu,o._classList={},o.id="mat-autocomplete-"+ZT++,o.inertGroups=(null==a?void 0:a.SAFARI)||!1,o._autoActiveFirstOption=!!r.autoActiveFirstOption,o}return w(n,[{key:"isOpen",get:function(){return this._isOpen&&this.showPanel}},{key:"autoActiveFirstOption",get:function(){return this._autoActiveFirstOption},set:function(e){this._autoActiveFirstOption=Qv(e)}},{key:"classList",set:function(e){this._classList=e&&e.length?ey(e).reduce(function(e,t){return e[t]=!0,e},{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}},{key:"ngAfterContentInit",value:function(){var e=this;this._keyManager=new Mw(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(function(t){e.optionActivated.emit({source:e,option:e.options.toArray()[t]||null})}),this._setVisibility()}},{key:"ngOnDestroy",value:function(){this._activeOptionChanges.unsubscribe()}},{key:"_setScrollTop",value:function(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}},{key:"_getScrollTop",value:function(){return this.panel?this.panel.nativeElement.scrollTop:0}},{key:"_setVisibility",value:function(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}},{key:"_emitSelectEvent",value:function(e){var t=new JT(this,e);this.optionSelected.emit(t)}},{key:"_getPanelAriaLabelledby",value:function(e){return this.ariaLabel?null:this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}},{key:"_setVisibilityClasses",value:function(e){e[this._visibleClass]=this.showPanel,e[this._hiddenClass]=!this.showPanel}}]),n}(eP)).\u0275fac=function(e){return new(e||DT)(ls(Jl),ls(Ol),ls(tP),ls(ow))},DT.\u0275dir=bt({type:DT,viewQuery:function(e,t){var n;1&e&&(Ku(au,3),Ku(ET,1)),2&e&&($u(n=Ju())&&(t.template=n.first),$u(n=Ju())&&(t.panel=n.first))},inputs:{displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[jo]}),DT),iP=((PT=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments))._visibleClass="mat-autocomplete-visible",e._hiddenClass="mat-autocomplete-hidden",e}return n}(nP)).\u0275fac=function(e){return rP(e||PT)},PT.\u0275cmp=pt({type:PT,selectors:[["mat-autocomplete"]],contentQueries:function(e,t,n){var i;1&e&&(Zu(n,YA,1),Zu(n,JA,1)),2&e&&($u(i=Ju())&&(t.optionGroups=i),$u(i=Ju())&&(t.options=i))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[bl([{provide:jA,useExisting:PT}]),jo],ngContentSelectors:KT,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(e,t){1&e&&(Es(),os(0,TT,3,4,"ng-template"))},directives:[yh],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}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),PT),rP=fi(iP),aP=new _i("mat-autocomplete-scroll-strategy"),oP={provide:aP,deps:[SE],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},sP={provide:_b,useExisting:Ee(function(){return uP}),multi:!0},lP=((IT=function(){function e(t,n,i,r,o,s,l,u,c,d,h){var f=this;b(this,e),this._element=t,this._overlay=n,this._viewContainerRef=i,this._zone=r,this._changeDetectorRef=o,this._dir=l,this._formField=u,this._document=c,this._viewportRuler=d,this._defaults=h,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=O.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new j,this._windowBlurHandler=function(){f._canOpenOnNextFocus=f._document.activeElement!==f._element.nativeElement||f.panelOpen},this._onChange=function(){},this._onTouched=function(){},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=rO(function(){return f.autocomplete&&f.autocomplete.options?de.apply(void 0,a(f.autocomplete.options.map(function(e){return e.onSelectionChange}))):f._zone.onStable.pipe(Qg(1),xp(function(){return f.optionSelections}))}),this._scrollStrategy=s}return w(e,[{key:"autocompleteDisabled",get:function(){return this._autocompleteDisabled},set:function(e){this._autocompleteDisabled=Qv(e)}},{key:"ngAfterViewInit",value:function(){var e=this,t=this._getWindow();void 0!==t&&this._zone.runOutsideAngular(function(){return t.addEventListener("blur",e._windowBlurHandler)})}},{key:"ngOnChanges",value:function(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}},{key:"ngOnDestroy",value:function(){var e=this._getWindow();void 0!==e&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}},{key:"panelOpen",get:function(){return this._overlayAttached&&this.autocomplete.showPanel}},{key:"openPanel",value:function(){this._attachOverlay(),this._floatLabel()}},{key:"closePanel",value:function(){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())}},{key:"updatePosition",value:function(){this._overlayAttached&&this._overlayRef.updatePosition()}},{key:"panelClosingActions",get:function(){var e=this;return de(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(jm(function(){return e._overlayAttached})),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(jm(function(){return e._overlayAttached})):fp()).pipe(q(function(e){return e instanceof KA?e:null}))}},{key:"activeOption",get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}},{key:"_getOutsideClickStream",value:function(){var e=this;return de(zg(this._document,"click"),zg(this._document,"auxclick"),zg(this._document,"touchend")).pipe(jm(function(t){var n=e._isInsideShadowRoot&&t.composedPath?t.composedPath()[0]:t.target,i=e._formField?e._formField._elementRef.nativeElement:null,r=e.connectedTo?e.connectedTo.elementRef.nativeElement:null;return e._overlayAttached&&n!==e._element.nativeElement&&(!i||!i.contains(n))&&(!r||!r.contains(n))&&!!e._overlayRef&&!e._overlayRef.overlayElement.contains(n)}))}},{key:"writeValue",value:function(e){var t=this;Promise.resolve(null).then(function(){return t._setTriggerValue(e)})}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this._element.nativeElement.disabled=e}},{key:"_handleKeydown",value:function(e){var t=e.keyCode;if(27!==t||Zk(e)||e.preventDefault(),this.activeOption&&13===t&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){var n=this.autocomplete._keyManager.activeItem,i=38===t||40===t;this.panelOpen||9===t?this.autocomplete._keyManager.onKeydown(e):i&&this._canOpen()&&this.openPanel(),(i||this.autocomplete._keyManager.activeItem!==n)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}},{key:"_handleInput",value:function(e){var t=e.target,n=t.value;"number"===t.type&&(n=""==n?null:parseFloat(n)),this._previousValue!==n&&(this._previousValue=n,this._onChange(n),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}},{key:"_handleFocus",value:function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}},{key:"_floatLabel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}},{key:"_resetLabel",value:function(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}},{key:"_subscribeToClosingActions",value:function(){var e=this;return de(this._zone.onStable.pipe(Qg(1)),this.autocomplete.options.changes.pipe(Zg(function(){return e._positionStrategy.reapplyLastPosition()}),xT(0))).pipe(xp(function(){var t=e.panelOpen;return e._resetActiveItem(),e.autocomplete._setVisibility(),e.panelOpen&&(e._overlayRef.updatePosition(),t!==e.panelOpen&&e.autocomplete.opened.emit()),e.panelClosingActions}),Qg(1)).subscribe(function(t){return e._setValueAndClose(t)})}},{key:"_destroyPanel",value:function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}},{key:"_setTriggerValue",value:function(e){var t=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e,n=null!=t?t:"";this._formField?this._formField._control.value=n:this._element.nativeElement.value=n,this._previousValue=n}},{key:"_setValueAndClose",value:function(e){e&&e.source&&(this._clearPreviousSelectedOption(e.source),this._setTriggerValue(e.source.value),this._onChange(e.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(e.source)),this.closePanel()}},{key:"_clearPreviousSelectedOption",value:function(e){this.autocomplete.options.forEach(function(t){t!==e&&t.selected&&t.deselect()})}},{key:"_attachOverlay",value:function(){var e,t=this;null==this._isInsideShadowRoot&&(this._isInsideShadowRoot=!!fw(this._element.nativeElement));var n=this._overlayRef;n?(this._positionStrategy.setOrigin(this._getConnectedElement()),n.updateSize({width:this._getPanelWidth()})):(this._portal=new RO(this.autocomplete.template,this._viewContainerRef,{id:null===(e=this._formField)||void 0===e?void 0:e.getLabelId()}),n=this._overlay.create(this._getOverlayConfig()),this._overlayRef=n,n.keydownEvents().subscribe(function(e){(27===e.keyCode&&!Zk(e)||38===e.keyCode&&Zk(e,"altKey"))&&(t._resetActiveItem(),t._closeKeyEventStream.next(),e.stopPropagation(),e.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(function(){t.panelOpen&&n&&n.updateSize({width:t._getPanelWidth()})})),n&&!n.hasAttached()&&(n.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());var i=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&i!==this.panelOpen&&this.autocomplete.opened.emit()}},{key:"_getOverlayConfig",value:function(){var e;return new nE({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(e=this._defaults)||void 0===e?void 0:e.overlayPanelClass})}},{key:"_getOverlayPosition",value:function(){var e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}},{key:"_setStrategyPositions",value:function(e){var t,n=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],i=this._aboveClass,r=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:i},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:i}];t="above"===this.position?r:"below"===this.position?n:[].concat(n,r),e.withPositions(t)}},{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(){var e=this.autocomplete;e.autoActiveFirstOption?e._keyManager.setFirstItemActive():e._keyManager.setActiveItem(-1)}},{key:"_canOpen",value:function(){var e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this._autocompleteDisabled}},{key:"_getWindow",value:function(){var e;return(null===(e=this._document)||void 0===e?void 0:e.defaultView)||window}},{key:"_scrollToOption",value:function(e){var t=this.autocomplete,n=eO(e,t.options,t.optionGroups);if(0===e&&1===n)t._setScrollTop(0);else{var i=t.options.toArray()[e];if(i){var r=i._getHostElement(),a=tO(r.offsetTop,r.offsetHeight,t._getScrollTop(),t.panel.nativeElement.offsetHeight);t._setScrollTop(a)}}}}]),e}()).\u0275fac=function(e){return new(e||IT)(ls(Ol),ls(SE),ls(du),ls(Oc),ls(Jl),ls(aP),ls(Iy,8),ls(kT,9),ls(sd,8),ls(TO),ls(tP,8))},IT.\u0275dir=bt({type:IT,inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},features:[It]}),IT),uP=((MT=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments))._aboveClass="mat-autocomplete-panel-above",e}return n}(lP)).\u0275fac=function(e){return cP(e||MT)},MT.\u0275dir=bt({type:MT,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(e,t){1&e&&ks("focusin",function(){return t._handleFocus()})("blur",function(){return t._onTouched()})("input",function(e){return t._handleInput(e)})("keydown",function(e){return t._handleKeydown(e)}),2&e&&is("autocomplete",t.autocompleteAttribute)("role",t.autocompleteDisabled?null:"combobox")("aria-autocomplete",t.autocompleteDisabled?null:"list")("aria-activedescendant",t.panelOpen&&t.activeOption?t.activeOption.id:null)("aria-expanded",t.autocompleteDisabled?null:t.panelOpen.toString())("aria-owns",t.autocompleteDisabled||!t.panelOpen||null==t.autocomplete?null:t.autocomplete.id)("aria-haspopup",!t.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[bl([sP]),jo]}),MT),cP=fi(uP),dP=((RT=function e(){b(this,e)}).\u0275fac=function(e){return new(e||RT)},RT.\u0275mod=yt({type:RT}),RT.\u0275inj=Ne({providers:[oP],imports:[[DE,iO,QS,Zh],PO,iO,QS]}),RT),hP=0,fP=XS(function e(){b(this,e)}),pP=((FT=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o){var s;return b(this,n),(s=t.call(this))._ngZone=e,s._elementRef=i,s._ariaDescriber=r,s._renderer=a,s._animationMode=o,s._hasContent=!1,s._color="primary",s._overlap=!0,s.position="above after",s.size="medium",s._id=hP++,s}return w(n,[{key:"color",get:function(){return this._color},set:function(e){this._setColor(e),this._color=e}},{key:"overlap",get:function(){return this._overlap},set:function(e){this._overlap=Qv(e)}},{key:"description",get:function(){return this._description},set:function(e){if(e!==this._description){var t=this._badgeElement;this._updateHostAriaDescription(e,this._description),this._description=e,t&&(e?t.setAttribute("aria-label",e):t.removeAttribute("aria-label"))}}},{key:"hidden",get:function(){return this._hidden},set:function(e){this._hidden=Qv(e)}},{key:"isAbove",value:function(){return-1===this.position.indexOf("below")}},{key:"isAfter",value:function(){return-1===this.position.indexOf("before")}},{key:"ngOnChanges",value:function(e){var t=e.content;if(t){var n=t.currentValue;this._hasContent=null!=n&&"".concat(n).trim().length>0,this._updateTextContent()}}},{key:"ngOnDestroy",value:function(){var e=this._badgeElement;e&&(this.description&&this._ariaDescriber.removeDescription(e,this.description),this._renderer.destroyNode&&this._renderer.destroyNode(e))}},{key:"getBadgeElement",value:function(){return this._badgeElement}},{key:"_updateTextContent",value:function(){return this._badgeElement?this._badgeElement.textContent=this._stringifyContent():this._badgeElement=this._createBadgeElement(),this._badgeElement}},{key:"_createBadgeElement",value:function(){var e=this._renderer.createElement("span");return this._clearExistingBadges("mat-badge-content"),e.setAttribute("id","mat-badge-content-".concat(this._id)),e.classList.add("mat-badge-content"),e.textContent=this._stringifyContent(),"NoopAnimations"===this._animationMode&&e.classList.add("_mat-animation-noopable"),this.description&&e.setAttribute("aria-label",this.description),this._elementRef.nativeElement.appendChild(e),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){e.classList.add("mat-badge-active")})}):e.classList.add("mat-badge-active"),e}},{key:"_updateHostAriaDescription",value:function(e,t){var n=this._updateTextContent();t&&this._ariaDescriber.removeDescription(n,t),e&&this._ariaDescriber.describe(n,e)}},{key:"_setColor",value:function(e){if(e!==this._color){var t=this._elementRef.nativeElement.classList;this._color&&t.remove("mat-badge-".concat(this._color)),e&&t.add("mat-badge-".concat(e))}}},{key:"_clearExistingBadges",value:function(e){for(var t=this._elementRef.nativeElement,n=t.children.length;n--;){var i=t.children[n];i.classList.contains(e)&&t.removeChild(i)}}},{key:"_stringifyContent",value:function(){var e=this.content;return null==e?"":"".concat(e)}}]),n}(fP)).\u0275fac=function(e){return new(e||FT)(ls(Oc),ls(Ol),ls(Ow),ls(Pl),ls(LS,8))},FT.\u0275dir=bt({type:FT,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(e,t){2&e&&Hs("mat-badge-overlap",t.overlap)("mat-badge-above",t.isAbove())("mat-badge-below",!t.isAbove())("mat-badge-before",!t.isAfter())("mat-badge-after",t.isAfter())("mat-badge-small","small"===t.size)("mat-badge-medium","medium"===t.size)("mat-badge-large","large"===t.size)("mat-badge-hidden",t.hidden||!t._hasContent)("mat-badge-disabled",t.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],position:["matBadgePosition","position"],size:["matBadgeSize","size"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],description:["matBadgeDescription","description"],hidden:["matBadgeHidden","hidden"],content:["matBadge","content"]},features:[jo,It]}),FT),mP=((LT=function e(){b(this,e)}).\u0275fac=function(e){return new(e||LT)},LT.\u0275mod=yt({type:LT}),LT.\u0275inj=Ne({imports:[[oC,QS],QS]}),LT),gP=["mat-button",""],vP=["*"],yP=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .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.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-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.mat-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.mat-button-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.mat-button-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}.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:inline-flex;justify-content:center;align-items:center;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}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n",_P=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],bP=$S(XS(KS(function e(t){b(this,e),this._elementRef=t}))),kP=((BT=function(e){f(n,e);var t=m(n);function n(e,i,r){var a;b(this,n),(a=t.call(this,e))._focusMonitor=i,a._animationMode=r,a.isRoundButton=a._hasHostAttributes("mat-fab","mat-mini-fab"),a.isIconButton=a._hasHostAttributes("mat-icon-button");var o,l=s(_P);try{for(l.s();!(o=l.n()).done;){var u=o.value;a._hasHostAttributes(u)&&a._getHostElement().classList.add(u)}}catch(c){l.e(c)}finally{l.f()}return e.nativeElement.classList.add("mat-button-base"),a.isRoundButton&&(a.color="accent"),a}return w(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.multiple||!this.selected||e.checked||(this.selected.checked=!1),this._selectionModel?t?this._selectionModel.select(e):this._selectionModel.deselect(e):r=!0,r?Promise.resolve().then(function(){return n._updateModelValue(i)}):this._updateModelValue(i)}},{key:"_isSelected",value:function(e){return this._selectionModel&&this._selectionModel.isSelected(e)}},{key:"_isPrechecked",value:function(e){return void 0!==this._rawValue&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(function(t){return null!=e.value&&t===e.value}):e.value===this._rawValue)}},{key:"_setSelectionByValue",value:function(e){var t=this;this._rawValue=e,this._buttonToggles&&(this.multiple&&e?(Array.isArray(e),this._clearSelection(),e.forEach(function(e){return t._selectValue(e)})):(this._clearSelection(),this._selectValue(e)))}},{key:"_clearSelection",value:function(){this._selectionModel.clear(),this._buttonToggles.forEach(function(e){return e.checked=!1})}},{key:"_selectValue",value:function(e){var t=this._buttonToggles.find(function(t){return null!=t.value&&t.value===e});t&&(t.checked=!0,this._selectionModel.select(t))}},{key:"_updateModelValue",value:function(e){e&&this._emitChangeEvent(),this.valueChange.emit(this.value)}}]),e}()).\u0275fac=function(e){return new(e||HT)(ls(Jl),ls(AP,8))},HT.\u0275dir=bt({type:HT,selectors:[["mat-button-toggle-group"]],contentQueries:function(e,t,n){var i;1&e&&Zu(n,IP,1),2&e&&$u(i=Ju())&&(t._buttonToggles=i)},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(e,t){2&e&&(is("aria-disabled",t.disabled),Hs("mat-button-toggle-vertical",t.vertical)("mat-button-toggle-group-appearance-standard","standard"===t.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[bl([EP,{provide:OP,useExisting:HT}])]}),HT),MP=KS(function e(){b(this,e)}),IP=((GT=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o,s){var l;b(this,n),(l=t.call(this))._changeDetectorRef=i,l._elementRef=r,l._focusMonitor=a,l._isSingleSelector=!1,l._checked=!1,l.ariaLabelledby=null,l._disabled=!1,l.change=new Vu;var u=Number(o);return l.tabIndex=u||0===u?u:null,l.buttonToggleGroup=e,l.appearance=s&&s.appearance?s.appearance:"standard",l}return w(n,[{key:"buttonId",get:function(){return"".concat(this.id,"-button")}},{key:"appearance",get:function(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance},set:function(e){this._appearance=e}},{key:"checked",get:function(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked},set:function(e){var t=Qv(e);t!==this._checked&&(this._checked=t,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(e){this._disabled=Qv(e)}},{key:"ngOnInit",value:function(){var e=this.buttonToggleGroup;this._isSingleSelector=e&&!e.multiple,this.id=this.id||"mat-button-toggle-"+TP++,this._isSingleSelector&&(this.name=e.name),e&&(e._isPrechecked(this)?this.checked=!0:e._isSelected(this)!==this._checked&&e._syncButtonToggle(this,this._checked))}},{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){var e=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),e&&e._isSelected(this)&&e._syncButtonToggle(this,!1,!1,!0)}},{key:"focus",value:function(e){this._buttonElement.nativeElement.focus(e)}},{key:"_onButtonClick",value:function(){var e=!!this._isSingleSelector||!this._checked;e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new PP(this,this.value))}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),n}(MP)).\u0275fac=function(e){return new(e||GT)(ls(OP,8),ls(Jl),ls(Ol),ls(Jw),mi("tabindex"),ls(AP,8))},GT.\u0275cmp=pt({type:GT,selectors:[["mat-button-toggle"]],viewQuery:function(e,t){var n;1&e&&Ku(xP,1),2&e&&$u(n=Ju())&&(t._buttonElement=n.first)},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(e,t){1&e&&ks("focus",function(){return t.focus()}),2&e&&(is("aria-label",null)("aria-labelledby",null)("id",t.id)("name",null),Hs("mat-button-toggle-standalone",!t.buttonToggleGroup)("mat-button-toggle-checked",t.checked)("mat-button-toggle-disabled",t.disabled)("mat-button-toggle-appearance-standard","standard"===t.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:[jo],ngContentSelectors:SP,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(e,t){if(1&e&&(Es(),ds(0,"button",0,1),ks("click",function(){return t._onButtonClick()}),ds(2,"span",2),Ts(3),hs(),hs(),fs(4,"span",3),fs(5,"span",4)),2&e){var n=ss(1);us("id",t.buttonId)("disabled",t.disabled||null),is("tabindex",t.disabled?-1:t.tabIndex)("aria-pressed",t.checked)("name",t.name||null)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby),Oa(5),us("matRippleTrigger",n)("matRippleDisabled",t.disableRipple||t.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{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 500px}.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}),GT),RP=((zT=function e(){b(this,e)}).\u0275fac=function(e){return new(e||zT)},zT.\u0275mod=yt({type:zT}),zT.\u0275inj=Ne({imports:[[QS,HA],QS]}),zT),LP=["*",[["mat-card-footer"]]],FP=["*","mat-card-footer"],NP=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],VP=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],BP=(($T=function e(){b(this,e)}).\u0275fac=function(e){return new(e||$T)},$T.\u0275dir=bt({type:$T,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),$T),HP=((XT=function e(){b(this,e)}).\u0275fac=function(e){return new(e||XT)},XT.\u0275dir=bt({type:XT,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),XT),zP=((QT=function e(){b(this,e)}).\u0275fac=function(e){return new(e||QT)},QT.\u0275dir=bt({type:QT,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),QT),GP=((qT=function e(){b(this,e)}).\u0275fac=function(e){return new(e||qT)},qT.\u0275dir=bt({type:qT,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),qT),jP=((WT=function e(t){b(this,e),this._animationMode=t}).\u0275fac=function(e){return new(e||WT)(ls(LS,8))},WT.\u0275cmp=pt({type:WT,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(e,t){2&e&&Hs("_mat-animation-noopable","NoopAnimations"===t._animationMode)},exportAs:["matCard"],ngContentSelectors:FP,decls:2,vars:0,template:function(e,t){1&e&&(Es(LP),Ts(0),Ts(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:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-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}),WT),UP=((UT=function e(){b(this,e)}).\u0275fac=function(e){return new(e||UT)},UT.\u0275cmp=pt({type:UT,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:VP,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(e,t){1&e&&(Es(NP),Ts(0),ds(1,"div",0),Ts(2,1),hs(),Ts(3,2))},encapsulation:2,changeDetection:0}),UT),WP=((jT=function e(){b(this,e)}).\u0275fac=function(e){return new(e||jT)},jT.\u0275mod=yt({type:jT}),jT.\u0275inj=Ne({imports:[[QS],QS]}),jT),qP=["input"],YP=function(){return{enterDuration:150}},QP=["*"],XP=new _i("mat-checkbox-default-options",{providedIn:"root",factory:$P});function $P(){return{color:"accent",clickAction:"check-indeterminate"}}var KP,ZP,JP,eD,tD,nD,iD=0,rD={color:"accent",clickAction:"check-indeterminate"},aD={provide:_b,useExisting:Ee(function(){return lD}),multi:!0},oD=function e(){b(this,e)},sD=ZS($S(KS(XS(function e(t){b(this,e),this._elementRef=t})))),lD=((JP=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o,s,l){var u;return b(this,n),(u=t.call(this,e))._changeDetectorRef=i,u._focusMonitor=r,u._ngZone=a,u._animationMode=s,u._options=l,u.ariaLabel="",u.ariaLabelledby=null,u._uniqueId="mat-checkbox-"+ ++iD,u.id=u._uniqueId,u.labelPosition="after",u.name=null,u.change=new Vu,u.indeterminateChange=new Vu,u._onTouched=function(){},u._currentAnimationClass="",u._currentCheckState=0,u._controlValueAccessorChangeFn=function(){},u._checked=!1,u._disabled=!1,u._indeterminate=!1,u._options=u._options||rD,u.color=u.defaultColor=u._options.color||rD.color,u.tabIndex=parseInt(o)||0,u}return w(n,[{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"required",get:function(){return this._required},set:function(e){this._required=Qv(e)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(t){t||Promise.resolve().then(function(){e._onTouched(),e._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}},{key:"ngAfterViewChecked",value:function(){}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"checked",get:function(){return this._checked},set:function(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(e){var t=Qv(e);t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}},{key:"indeterminate",get:function(){return this._indeterminate},set:function(e){var t=e!=this._indeterminate;this._indeterminate=Qv(e),t&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"writeValue",value:function(e){this.checked=!!e}},{key:"registerOnChange",value:function(e){this._controlValueAccessorChangeFn=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e}},{key:"_getAriaChecked",value:function(){return this.checked?"true":this.indeterminate?"mixed":"false"}},{key:"_transitionCheckState",value:function(e){var t=this._currentCheckState,n=this._elementRef.nativeElement;if(t!==e&&(this._currentAnimationClass.length>0&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,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 e=new oD;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}},{key:"toggle",value:function(){this.checked=!this.checked}},{key:"_onInputClick",value:function(e){var t,n=this,i=null===(t=this._options)||void 0===t?void 0:t.clickAction;e.stopPropagation(),this.disabled||"noop"===i?this.disabled||"noop"!==i||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==i&&Promise.resolve().then(function(){n._indeterminate=!1,n.indeterminateChange.emit(n._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}},{key:"_onInteractionEvent",value:function(e){e.stopPropagation()}},{key:"_getAnimationClassForCheckStateTransition",value:function(e,t){if("NoopAnimations"===this._animationMode)return"";var n="";switch(e){case 0:if(1===t)n="unchecked-checked";else{if(3!=t)return"";n="unchecked-indeterminate"}break;case 2:n=1===t?"unchecked-checked":"unchecked-indeterminate";break;case 1:n=2===t?"checked-unchecked":"checked-indeterminate";break;case 3:n=1===t?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-".concat(n)}},{key:"_syncIndeterminate",value:function(e){var t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}}]),n}(sD)).\u0275fac=function(e){return new(e||JP)(ls(Ol),ls(Jl),ls(Jw),ls(Oc),mi("tabindex"),ls(LS,8),ls(XP,8))},JP.\u0275cmp=pt({type:JP,selectors:[["mat-checkbox"]],viewQuery:function(e,t){var n;1&e&&(Ku(qP,1),Ku(BA,1)),2&e&&($u(n=Ju())&&(t._inputElement=n.first),$u(n=Ju())&&(t.ripple=n.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(e,t){2&e&&(al("id",t.id),is("tabindex",null),Hs("mat-checkbox-indeterminate",t.indeterminate)("mat-checkbox-checked",t.checked)("mat-checkbox-disabled",t.disabled)("mat-checkbox-label-before","before"==t.labelPosition)("_mat-animation-noopable","NoopAnimations"===t._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",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[bl([aD]),jo],ngContentSelectors:QP,decls:17,vars:20,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(e,t){if(1&e&&(Es(),ds(0,"label",0,1),ds(2,"span",2),ds(3,"input",3,4),ks("change",function(e){return t._onInteractionEvent(e)})("click",function(e){return t._onInputClick(e)}),hs(),ds(5,"span",5),fs(6,"span",6),hs(),fs(7,"span",7),ds(8,"span",8),Dn(),ds(9,"svg",9),fs(10,"path",10),hs(),Mn(),fs(11,"span",11),hs(),hs(),ds(12,"span",12,13),ks("cdkObserveContent",function(){return t._onLabelTextChange()}),ds(14,"span",14),Js(15,"\xa0"),hs(),Ts(16),hs(),hs()),2&e){var n=ss(1),i=ss(13);is("for",t.inputId),Oa(2),Hs("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),Oa(1),us("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),is("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked())("aria-describedby",t.ariaDescribedby),Oa(2),us("matRippleTrigger",n)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",Su(19,YP))}},directives:[BA,bw],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{display:inline-block;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}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .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);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;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}),JP),uD=((ZP=function e(){b(this,e)}).\u0275fac=function(e){return new(e||ZP)},ZP.\u0275mod=yt({type:ZP}),ZP.\u0275inj=Ne({}),ZP),cD=((KP=function e(){b(this,e)}).\u0275fac=function(e){return new(e||KP)},KP.\u0275mod=yt({type:KP}),KP.\u0275inj=Ne({imports:[[HA,QS,kw,uD],QS,uD]}),KP),dD=["*"],hD=new _i("MatChipRemove"),fD=new _i("MatChipAvatar"),pD=new _i("MatChipTrailingIcon"),mD=ZS($S(KS(function e(t){b(this,e),this._elementRef=t}),"primary"),-1),gD=((eD=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o,s,l,u){var c;return b(this,n),(c=t.call(this,e))._elementRef=e,c._ngZone=i,c._changeDetectorRef=o,c._hasFocus=!1,c.chipListSelectable=!0,c._chipListMultiple=!1,c._chipListDisabled=!1,c._selected=!1,c._selectable=!0,c._disabled=!1,c._removable=!0,c._onFocus=new j,c._onBlur=new j,c.selectionChange=new Vu,c.destroyed=new Vu,c.removed=new Vu,c._addHostClassName(),c._chipRippleTarget=s.createElement("div"),c._chipRippleTarget.classList.add("mat-chip-ripple"),c._elementRef.nativeElement.appendChild(c._chipRippleTarget),c._chipRipple=new NA(v(c),i,c._chipRippleTarget,r),c._chipRipple.setupTriggerEvents(e),c.rippleConfig=a||{},c._animationsDisabled="NoopAnimations"===l,c.tabIndex=null!=u&&parseInt(u)||-1,c}return w(n,[{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}},{key:"selected",get:function(){return this._selected},set:function(e){var t=Qv(e);t!==this._selected&&(this._selected=t,this._dispatchSelectionChange())}},{key:"value",get:function(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent},set:function(e){this._value=e}},{key:"selectable",get:function(){return this._selectable&&this.chipListSelectable},set:function(e){this._selectable=Qv(e)}},{key:"disabled",get:function(){return this._chipListDisabled||this._disabled},set:function(e){this._disabled=Qv(e)}},{key:"removable",get:function(){return this._removable},set:function(e){this._removable=Qv(e)}},{key:"ariaSelected",get:function(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}},{key:"_addHostClassName",value:function(){var e=this._elementRef.nativeElement;e.hasAttribute("mat-basic-chip")||"mat-basic-chip"===e.tagName.toLowerCase()?e.classList.add("mat-basic-chip"):e.classList.add("mat-standard-chip")}},{key:"ngOnDestroy",value:function(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"selectViaInteraction",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}},{key:"toggleSelected",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._selected=!this.selected,this._dispatchSelectionChange(e),this._changeDetectorRef.markForCheck(),this.selected}},{key:"focus",value:function(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}},{key:"remove",value:function(){this.removable&&this.removed.emit({chip:this})}},{key:"_handleClick",value:function(e){this.disabled?e.preventDefault():e.stopPropagation()}},{key:"_handleKeydown",value:function(e){if(!this.disabled)switch(e.keyCode){case 46:case 8:this.remove(),e.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),e.preventDefault()}}},{key:"_blur",value:function(){var e=this;this._ngZone.onStable.pipe(Qg(1)).subscribe(function(){e._ngZone.run(function(){e._hasFocus=!1,e._onBlur.next({chip:e})})})}},{key:"_dispatchSelectionChange",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectionChange.emit({source:this,isUserInput:e,selected:this._selected})}}]),n}(mD)).\u0275fac=function(e){return new(e||eD)(ls(Ol),ls(Oc),ls(ow),ls(VA,8),ls(Jl),ls(sd),ls(LS,8),mi("tabindex"))},eD.\u0275dir=bt({type:eD,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,t,n){var i;1&e&&(Zu(n,fD,1),Zu(n,pD,1),Zu(n,hD,1)),2&e&&($u(i=Ju())&&(t.avatar=i.first),$u(i=Ju())&&(t.trailingIcon=i.first),$u(i=Ju())&&(t.removeIcon=i.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(e,t){1&e&&ks("click",function(e){return t._handleClick(e)})("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t.focus()})("blur",function(){return t._blur()}),2&e&&(is("tabindex",t.disabled?null:t.tabIndex)("disabled",t.disabled||null)("aria-disabled",t.disabled.toString())("aria-selected",t.ariaSelected),Hs("mat-chip-selected",t.selected)("mat-chip-with-avatar",t.avatar)("mat-chip-with-trailing-icon",t.trailingIcon||t.removeIcon)("mat-chip-disabled",t.disabled)("_mat-animation-noopable",t._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[jo]}),eD),vD=new _i("mat-chips-default-options"),yD=JS(function e(t,n,i,r){b(this,e),this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}),_D=0,bD=function e(t,n){b(this,e),this.source=t,this.value=n},kD=((tD=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o,s,l){var u;return b(this,n),(u=t.call(this,s,a,o,l))._elementRef=e,u._changeDetectorRef=i,u._dir=r,u.ngControl=l,u.controlType="mat-chip-list",u._lastDestroyedChipIndex=null,u._destroyed=new j,u._uid="mat-chip-list-"+_D++,u._tabIndex=0,u._userTabIndex=null,u._onTouched=function(){},u._onChange=function(){},u._multiple=!1,u._compareWith=function(e,t){return e===t},u._required=!1,u._disabled=!1,u.ariaOrientation="horizontal",u._selectable=!0,u.change=new Vu,u.valueChange=new Vu,u.ngControl&&(u.ngControl.valueAccessor=v(u)),u}return w(n,[{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"role",get:function(){return this.empty?null:"listbox"}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=Qv(e),this._syncChipsState()}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){this.writeValue(e),this._value=e}},{key:"id",get:function(){return this._chipInput?this._chipInput.id:this._uid}},{key:"required",get:function(){return this._required},set:function(e){this._required=Qv(e),this.stateChanges.next()}},{key:"placeholder",get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"focused",get:function(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}},{key:"empty",get:function(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}},{key:"shouldLabelFloat",get:function(){return!this.empty||this.focused}},{key:"disabled",get:function(){return this.ngControl?!!this.ngControl.disabled:this._disabled},set:function(e){this._disabled=Qv(e),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(e){var t=this;this._selectable=Qv(e),this.chips&&this.chips.forEach(function(e){return e.chipListSelectable=t._selectable})}},{key:"tabIndex",set:function(e){this._userTabIndex=e,this._tabIndex=e}},{key:"chipSelectionChanges",get:function(){return de.apply(void 0,a(this.chips.map(function(e){return e.selectionChange})))}},{key:"chipFocusChanges",get:function(){return de.apply(void 0,a(this.chips.map(function(e){return e._onFocus})))}},{key:"chipBlurChanges",get:function(){return de.apply(void 0,a(this.chips.map(function(e){return e._onBlur})))}},{key:"chipRemoveChanges",get:function(){return de.apply(void 0,a(this.chips.map(function(e){return e.destroyed})))}},{key:"ngAfterContentInit",value:function(){var e=this;this._keyManager=new Iw(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Pp(this._destroyed)).subscribe(function(t){return e._keyManager.withHorizontalOrientation(t)}),this._keyManager.tabOut.pipe(Pp(this._destroyed)).subscribe(function(){e._allowFocusEscape()}),this.chips.changes.pipe(Rp(null),Pp(this._destroyed)).subscribe(function(){e.disabled&&Promise.resolve().then(function(){e._syncChipsState()}),e._resetChips(),e._initializeSelection(),e._updateTabIndex(),e._updateFocusForDestroyedChips(),e.stateChanges.next()})}},{key:"ngOnInit",value:function(){this._selectionModel=new xO(this.multiple,void 0,!1),this.stateChanges.next()}},{key:"ngDoCheck",value:function(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}},{key:"registerInput",value:function(e){this._chipInput=e,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",e.id)}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"writeValue",value:function(e){this.chips&&this._setSelectionByValue(e,!1)}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this.stateChanges.next()}},{key:"onContainerClick",value:function(e){this._originatesFromChip(e)||this.focus()}},{key:"focus",value:function(e){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(e),this.stateChanges.next()))}},{key:"_focusInput",value:function(e){this._chipInput&&this._chipInput.focus(e)}},{key:"_keydown",value:function(e){var t=e.target;8===e.keyCode&&this._isInputEmpty(t)?(this._keyManager.setLastItemActive(),e.preventDefault()):t&&t.classList.contains("mat-chip")&&(this._keyManager.onKeydown(e),this.stateChanges.next())}},{key:"_updateTabIndex",value:function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}},{key:"_updateFocusForDestroyedChips",value:function(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){var e=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(e)}else this.focus();this._lastDestroyedChipIndex=null}},{key:"_isValidIndex",value:function(e){return e>=0&&e1&&void 0!==arguments[1])||arguments[1];if(this._clearSelection(),this.chips.forEach(function(e){return e.deselect()}),Array.isArray(e))e.forEach(function(e){return t._selectValue(e,n)}),this._sortValues();else{var i=this._selectValue(e,n);i&&n&&this._keyManager.setActiveItem(i)}}},{key:"_selectValue",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.chips.find(function(n){return null!=n.value&&t._compareWith(n.value,e)});return i&&(n?i.selectViaInteraction():i.select(),this._selectionModel.select(i)),i}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then(function(){(e.ngControl||e._value)&&(e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value,!1),e.stateChanges.next())})}},{key:"_clearSelection",value:function(e){this._selectionModel.clear(),this.chips.forEach(function(t){t!==e&&t.deselect()}),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach(function(t){t.selected&&e._selectionModel.select(t)}),this.stateChanges.next())}},{key:"_propagateChanges",value:function(e){var t;t=Array.isArray(this.selected)?this.selected.map(function(e){return e.value}):this.selected?this.selected.value:e,this._value=t,this.change.emit(new bD(this,t)),this.valueChange.emit(t),this._onChange(t),this._changeDetectorRef.markForCheck()}},{key:"_blur",value:function(){var e=this;this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(function(){e.focused||e._markAsTouched()}):this._markAsTouched())}},{key:"_markAsTouched",value:function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_allowFocusEscape",value:function(){var e=this;-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(function(){e._tabIndex=e._userTabIndex||0,e._changeDetectorRef.markForCheck()}))}},{key:"_resetChips",value:function(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}},{key:"_dropSubscriptions",value:function(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}},{key:"_listenToChipsSelection",value:function(){var e=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(function(t){t.source.selected?e._selectionModel.select(t.source):e._selectionModel.deselect(t.source),e.multiple||e.chips.forEach(function(t){!e._selectionModel.isSelected(t)&&t.selected&&t.deselect()}),t.isUserInput&&e._propagateChanges()})}},{key:"_listenToChipsFocus",value:function(){var e=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe(function(t){var n=e.chips.toArray().indexOf(t.chip);e._isValidIndex(n)&&e._keyManager.updateActiveItem(n),e.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(function(){e._blur(),e.stateChanges.next()})}},{key:"_listenToChipsRemoved",value:function(){var e=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(function(t){var n=t.chip,i=e.chips.toArray().indexOf(t.chip);e._isValidIndex(i)&&n._hasFocus&&(e._lastDestroyedChipIndex=i)})}},{key:"_originatesFromChip",value:function(e){for(var t=e.target;t&&t!==this._elementRef.nativeElement;){if(t.classList.contains("mat-chip"))return!0;t=t.parentElement}return!1}},{key:"_hasFocusedChip",value:function(){return this.chips&&this.chips.some(function(e){return e._hasFocus})}},{key:"_syncChipsState",value:function(){var e=this;this.chips&&this.chips.forEach(function(t){t._chipListDisabled=e._disabled,t._chipListMultiple=e.multiple})}}]),n}(yD)).\u0275fac=function(e){return new(e||tD)(ls(Ol),ls(Jl),ls(Iy,8),ls(Rk,8),ls(qk,8),ls(_A),ls($b,10))},tD.\u0275cmp=pt({type:tD,selectors:[["mat-chip-list"]],contentQueries:function(e,t,n){var i;1&e&&Zu(n,gD,1),2&e&&$u(i=Ju())&&(t.chips=i)},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(e,t){1&e&&ks("focus",function(){return t.focus()})("blur",function(){return t._blur()})("keydown",function(e){return t._keydown(e)}),2&e&&(al("id",t._uid),is("tabindex",t.disabled?null:t._tabIndex)("aria-describedby",t._ariaDescribedby||null)("aria-required",t.role?t.required:null)("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-multiselectable",t.multiple)("role",t.role)("aria-orientation",t.ariaOrientation),Hs("mat-chip-list-disabled",t.disabled)("mat-chip-list-invalid",t.errorState)("mat-chip-list-required",t.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[bl([{provide:lT,useExisting:tD}]),jo],ngContentSelectors:dD,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(e,t){1&e&&(Es(),ds(0,"div",0),Ts(1),hs())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),tD),wD={separatorKeyCodes:[13]},CD=((nD=function e(){b(this,e)}).\u0275fac=function(e){return new(e||nD)},nD.\u0275mod=yt({type:nD}),nD.\u0275inj=Ne({providers:[_A,{provide:vD,useValue:wD}],imports:[[QS]]}),nD);function xD(e,t){}var SD,AD,OD=function e(){b(this,e),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},ED={dialogContainer:uC("dialogContainer",[pC("void, exit",fC({opacity:0,transform:"scale(0.7)"})),pC("enter",fC({transform:"none"})),gC("* => enter",cC("150ms cubic-bezier(0, 0, 0.2, 1)",fC({transform:"none",opacity:1}))),gC("* => void, * => exit",cC("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",fC({opacity:0})))])},TD=((AD=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o,s){var l;return b(this,n),(l=t.call(this))._elementRef=e,l._focusTrapFactory=i,l._changeDetectorRef=r,l._config=o,l._focusMonitor=s,l._animationStateChanged=new Vu,l._elementFocusedBeforeDialogWasOpened=null,l._closeInteractionType=null,l.attachDomPortal=function(e){return l._portalOutlet.hasAttached(),l._portalOutlet.attachDomPortal(e)},l._ariaLabelledBy=o.ariaLabelledBy||null,l._document=a,l}return w(n,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){var t=this._getActiveElement(),n=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==n&&!n.contains(t)||(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._getActiveElement())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var e=this._elementRef.nativeElement,t=this._getActiveElement();return e===t||e.contains(t)}},{key:"_getActiveElement",value:function(){var e,t=this._document.activeElement;return(null===(e=null==t?void 0:t.shadowRoot)||void 0===e?void 0:e.activeElement)||t}}]),n}(FO)).\u0275fac=function(e){return new(e||AD)(ls(Ol),ls(Hw),ls(Jl),ls(sd,8),ls(OD),ls(Jw))},AD.\u0275dir=bt({type:AD,viewQuery:function(e,t){var n;1&e&&Ku(BO,3),2&e&&$u(n=Ju())&&(t._portalOutlet=n.first)},features:[jo]}),AD),PD=((SD=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments))._state="enter",e}return w(n,[{key:"_onAnimationDone",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:n})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:n}))}},{key:"_onAnimationStart",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:n}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:n})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(TD)).\u0275fac=function(e){return DD(e||SD)},SD.\u0275cmp=pt({type:SD,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&ws("@dialogContainer.start",function(e){return t._onAnimationStart(e)})("@dialogContainer.done",function(e){return t._onAnimationDone(e)}),2&e&&(al("id",t._id),is("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),ol("@dialogContainer",t._state))},features:[jo],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&os(0,xD,0,0,"ng-template",0)},directives:[BO],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;box-sizing:content-box;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:[ED.dialogContainer]}}),SD),DD=fi(PD),MD=0,ID=function(){function e(t,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-"+MD++;b(this,e),this._overlayRef=t,this._containerInstance=n,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new j,this._afterClosed=new j,this._beforeClosed=new j,this._state=0,n._id=r,n._animationStateChanged.pipe(jm(function(e){return"opened"===e.state}),Qg(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),n._animationStateChanged.pipe(jm(function(e){return"closed"===e.state}),Qg(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),i._finishDialogClose()}),t.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()}),t.keydownEvents().pipe(jm(function(e){return 27===e.keyCode&&!i.disableClose&&!Zk(e)})).subscribe(function(e){e.preventDefault(),RD(i,"keyboard")}),t.backdropClick().subscribe(function(){i.disableClose?i._containerInstance._recaptureFocus():RD(i,"mouse")})}return w(e,[{key:"close",value:function(e){var t=this;this._result=e,this._containerInstance._animationStateChanged.pipe(jm(function(e){return"closing"===e.state}),Qg(1)).subscribe(function(n){t._beforeClosed.next(e),t._beforeClosed.complete(),t._overlayRef.detachBackdrop(),t._closeFallbackTimeout=setTimeout(function(){return t._finishDialogClose()},n.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(e){var t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:e,height:t}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(e){return this._overlayRef.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this._overlayRef.removePanelClass(e),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),e}();function RD(e,t,n){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=t),e.close(n)}var LD,FD,ND,VD,BD,HD,zD=new _i("MatDialogData"),GD=new _i("mat-dialog-default-options"),jD=new _i("mat-dialog-scroll-strategy"),UD={provide:jD,deps:[SE],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},WD=((HD=function(){function e(t,n,i,r,a,o,s,l,u){var c=this;b(this,e),this._overlay=t,this._injector=n,this._defaultOptions=i,this._parentDialog=r,this._overlayContainer=a,this._dialogRefConstructor=s,this._dialogContainerType=l,this._dialogDataToken=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new j,this._afterOpenedAtThisLevel=new j,this._ariaHiddenElements=new Map,this.afterAllClosed=rO(function(){return c.openDialogs.length?c._getAfterAllClosed():c._getAfterAllClosed().pipe(Rp(void 0))}),this._scrollStrategy=o}return w(e,[{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:"_getAfterAllClosed",value:function(){var e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(e,t){var n=this;(t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new OD)).id&&this.getDialogById(t.id);var i=this._createOverlay(t),r=this._attachDialogContainer(i,t),a=this._attachDialogContent(e,r,i,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.afterClosed().subscribe(function(){return n._removeOpenDialog(a)}),this.afterOpened.next(a),r._initializeWithAttachedContent(),a}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(e){return this.openDialogs.find(function(t){return t.id===e})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(e){var t=this._getOverlayConfig(e);return this._overlay.create(t)}},{key:"_getOverlayConfig",value:function(e){var t=new nE({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}},{key:"_attachDialogContainer",value:function(e,t){var n=zo.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:OD,useValue:t}]}),i=new IO(this._dialogContainerType,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(i).instance}},{key:"_attachDialogContent",value:function(e,t,n,i){var r=new this._dialogRefConstructor(n,t,i.id);if(e instanceof au)t.attachTemplatePortal(new RO(e,null,{$implicit:i.data,dialogRef:r}));else{var a=this._createInjector(i,r,t),o=t.attachComponentPortal(new IO(e,i.viewContainerRef,a));r.componentInstance=o.instance}return r.updateSize(i.width,i.height).updatePosition(i.position),r}},{key:"_createInjector",value:function(e,t,n){var i=e&&e.viewContainerRef&&e.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return!e.direction||i&&i.get(Iy,null)||r.push({provide:Iy,useValue:{value:e.direction,change:fp()}}),zo.create({parent:i||this._injector,providers:r})}},{key:"_removeOpenDialog",value:function(e){var t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var t=e.parentElement.children,n=t.length-1;n>-1;n--){var i=t[n];i===e||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(e){for(var t=e.length;t--;)e[t].close()}}]),e}()).\u0275fac=function(e){return new(e||HD)(ls(SE),ls(zo),ls(void 0),ls(void 0),ls(uE),ls(void 0),ls(wi),ls(wi),ls(_i))},HD.\u0275dir=bt({type:HD}),HD),qD=((BD=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o,s,l){return b(this,n),t.call(this,e,i,a,s,l,o,ID,PD,zD)}return n}(WD)).\u0275fac=function(e){return new(e||BD)(Ni(SE),Ni(zo),Ni(Od,8),Ni(GD,8),Ni(jD),Ni(BD,12),Ni(uE))},BD.\u0275prov=Le({token:BD,factory:BD.\u0275fac}),BD),YD=0,QD=((VD=function(){function e(t,n,i){b(this,e),this.dialogRef=t,this._elementRef=n,this._dialog=i,this.type="button"}return w(e,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=ZD(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(e){var t=e._matDialogClose||e._matDialogCloseResult;t&&(this.dialogResult=t.currentValue)}},{key:"_onButtonClick",value:function(e){RD(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}}]),e}()).\u0275fac=function(e){return new(e||VD)(ls(ID,8),ls(Ol),ls(qD))},VD.\u0275dir=bt({type:VD,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,t){1&e&&ks("click",function(e){return t._onButtonClick(e)}),2&e&&is("aria-label",t.ariaLabel||null)("type",t.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[It]}),VD),XD=((ND=function(){function e(t,n,i){b(this,e),this._dialogRef=t,this._elementRef=n,this._dialog=i,this.id="mat-dialog-title-"+YD++}return w(e,[{key:"ngOnInit",value:function(){var e=this;this._dialogRef||(this._dialogRef=ZD(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var t=e._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=e.id)})}}]),e}()).\u0275fac=function(e){return new(e||ND)(ls(ID,8),ls(Ol),ls(qD))},ND.\u0275dir=bt({type:ND,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&al("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),ND),$D=((FD=function e(){b(this,e)}).\u0275fac=function(e){return new(e||FD)},FD.\u0275dir=bt({type:FD,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),FD),KD=((LD=function e(){b(this,e)}).\u0275fac=function(e){return new(e||LD)},LD.\u0275dir=bt({type:LD,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),LD);function ZD(e,t){for(var n=e.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?t.find(function(e){return e.id===n.id}):null}var JD,eM,tM,nM,iM,rM,aM,oM=((JD=function e(){b(this,e)}).\u0275fac=function(e){return new(e||JD)},JD.\u0275mod=yt({type:JD}),JD.\u0275inj=Ne({providers:[qD,UD],imports:[[DE,HO,QS],QS]}),JD),sM=cw({passive:!0}),lM=((iM=function(){function e(t,n){b(this,e),this._platform=t,this._ngZone=n,this._monitoredElements=new Map}return w(e,[{key:"monitor",value:function(e){var t=this;if(!this._platform.isBrowser)return dp;var n=Jv(e),i=this._monitoredElements.get(n);if(i)return i.subject;var r=new j,a="cdk-text-field-autofilled",o=function(e){"cdk-text-field-autofill-start"!==e.animationName||n.classList.contains(a)?"cdk-text-field-autofill-end"===e.animationName&&n.classList.contains(a)&&(n.classList.remove(a),t._ngZone.run(function(){return r.next({target:e.target,isAutofilled:!1})})):(n.classList.add(a),t._ngZone.run(function(){return r.next({target:e.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){n.addEventListener("animationstart",o,sM),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:r,unlisten:function(){n.removeEventListener("animationstart",o,sM)}}),r}},{key:"stopMonitoring",value:function(e){var t=Jv(e),n=this._monitoredElements.get(t);n&&(n.unlisten(),n.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}},{key:"ngOnDestroy",value:function(){var e=this;this._monitoredElements.forEach(function(t,n){return e.stopMonitoring(n)})}}]),e}()).\u0275fac=function(e){return new(e||iM)(Ni(ow),Ni(Oc))},iM.\u0275prov=Le({factory:function(){return new iM(Ni(ow),Ni(Oc))},token:iM,providedIn:"root"}),iM),uM=((nM=function(){function e(t,n,i,r){b(this,e),this._elementRef=t,this._platform=n,this._ngZone=i,this._destroyed=new j,this._enabled=!0,this._previousMinRows=-1,this._document=r,this._textareaElement=this._elementRef.nativeElement,this._measuringClass=n.FIREFOX?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring"}return w(e,[{key:"minRows",get:function(){return this._minRows},set:function(e){this._minRows=Xv(e),this._setMinHeight()}},{key:"maxRows",get:function(){return this._maxRows},set:function(e){this._maxRows=Xv(e),this._setMaxHeight()}},{key:"enabled",get:function(){return this._enabled},set:function(e){e=Qv(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}},{key:"_setMinHeight",value:function(){var e=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.minHeight=e)}},{key:"_setMaxHeight",value:function(){var e=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.maxHeight=e)}},{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(function(){zg(e._getWindow(),"resize").pipe(lO(16),Pp(e._destroyed)).subscribe(function(){return e.resizeToFitContent(!0)})}))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_cacheTextareaLineHeight",value:function(){if(!this._cachedLineHeight){var e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,this._textareaElement.parentNode.removeChild(e),this._setMinHeight(),this._setMaxHeight()}}},{key:"ngDoCheck",value:function(){this._platform.isBrowser&&this.resizeToFitContent()}},{key:"resizeToFitContent",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._enabled&&(this._cacheTextareaLineHeight(),this._cachedLineHeight)){var n=this._elementRef.nativeElement,i=n.value;if(t||this._minRows!==this._previousMinRows||i!==this._previousValue){var r=n.placeholder;n.classList.add(this._measuringClass),n.placeholder="",n.style.height=n.scrollHeight-4+"px",n.classList.remove(this._measuringClass),n.placeholder=r,this._ngZone.runOutsideAngular(function(){"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(function(){return e._scrollToCaretPosition(n)}):setTimeout(function(){return e._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:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_scrollToCaretPosition",value:function(e){var t=e.selectionStart,n=e.selectionEnd,i=this._getDocument();this._destroyed.isStopped||i.activeElement!==e||e.setSelectionRange(t,n)}}]),e}()).\u0275fac=function(e){return new(e||nM)(ls(Ol),ls(ow),ls(Oc),ls(sd,8))},nM.\u0275dir=bt({type:nM,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&ks("input",function(){return t._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"]},exportAs:["cdkTextareaAutosize"]}),nM),cM=((tM=function e(){b(this,e)}).\u0275fac=function(e){return new(e||tM)},tM.\u0275mod=yt({type:tM}),tM.\u0275inj=Ne({imports:[[sw]]}),tM),dM=((eM=function(e){f(n,e);var t=m(n);function n(){return b(this,n),t.apply(this,arguments)}return w(n,[{key:"matAutosizeMinRows",get:function(){return this.minRows},set:function(e){this.minRows=e}},{key:"matAutosizeMaxRows",get:function(){return this.maxRows},set:function(e){this.maxRows=e}},{key:"matAutosize",get:function(){return this.enabled},set:function(e){this.enabled=e}},{key:"matTextareaAutosize",get:function(){return this.enabled},set:function(e){this.enabled=e}}]),n}(uM)).\u0275fac=function(e){return hM(e||eM)},eM.\u0275dir=bt({type:eM,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:[jo]}),eM),hM=fi(dM),fM=new _i("MAT_INPUT_VALUE_ACCESSOR"),pM=["button","checkbox","file","hidden","image","radio","range","reset","submit"],mM=0,gM=JS(function e(t,n,i,r){b(this,e),this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}),vM=((aM=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o,s,l,u,c,d){var h;b(this,n),(h=t.call(this,s,a,o,r))._elementRef=e,h._platform=i,h.ngControl=r,h._autofillMonitor=u,h._formField=d,h._uid="mat-input-"+mM++,h.focused=!1,h.stateChanges=new j,h.controlType="mat-input",h.autofilled=!1,h._disabled=!1,h._required=!1,h._type="text",h._readonly=!1,h._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(e){return uw().has(e)});var f=h._elementRef.nativeElement,p=f.nodeName.toLowerCase();return h._inputValueAccessor=l||f,h._previousNativeValue=h.value,h.id=h.id,i.IOS&&c.runOutsideAngular(function(){e.nativeElement.addEventListener("keyup",function(e){var t=e.target;t.value||t.selectionStart||t.selectionEnd||(t.setSelectionRange(1,1),t.setSelectionRange(0,0))})}),h._isServer=!h._platform.isBrowser,h._isNativeSelect="select"===p,h._isTextarea="textarea"===p,h._isNativeSelect&&(h.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select"),h}return w(n,[{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(e){this._disabled=Qv(e),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid}},{key:"required",get:function(){return this._required},set:function(e){this._required=Qv(e)}},{key:"type",get:function(){return this._type},set:function(e){this._type=e||"text",this._validateType(),!this._isTextarea&&uw().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(e){this._readonly=Qv(e)}},{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(t){e.autofilled=t.isAutofilled,e.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(),this._dirtyCheckPlaceholder()}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_focusChanged",value:function(e){e===this.focused||this.readonly&&e||(this.focused=e,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_dirtyCheckPlaceholder",value:function(){var e,t,n=(null===(t=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===t?void 0:t.call(e))?null:this.placeholder;if(n!==this._previousPlaceholder){var i=this._elementRef.nativeElement;this._previousPlaceholder=n,n?i.setAttribute("placeholder",n):i.removeAttribute("placeholder")}}},{key:"_dirtyCheckNativeValue",value:function(){var e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}},{key:"_validateType",value:function(){pM.indexOf(this._type)}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var e=this._elementRef.nativeElement.validity;return e&&e.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}},{key:"setDescribedByIds",value:function(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}}]),n}(gM)).\u0275fac=function(e){return new(e||aM)(ls(Ol),ls(ow),ls($b,10),ls(Rk,8),ls(qk,8),ls(_A),ls(fM,10),ls(lM),ls(Oc),ls(kT,8))},aM.\u0275dir=bt({type:aM,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(e,t){1&e&&ks("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(al("disabled",t.disabled)("required",t.required),is("id",t.id)("data-placeholder",t.placeholder)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.errorState&&!t.empty)("aria-required",t.required),Hs("mat-input-server",t._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[bl([{provide:lT,useExisting:aM}]),jo,It]}),aM),yM=((rM=function e(){b(this,e)}).\u0275fac=function(e){return new(e||rM)},rM.\u0275mod=yt({type:rM}),rM.\u0275inj=Ne({providers:[_A],imports:[[cM,CT,QS],cM,CT]}),rM),_M=["mat-calendar-body",""];function bM(e,t){if(1&e&&(ds(0,"tr",2),ds(1,"td",3),Js(2),hs(),hs()),2&e){var n=As();Oa(1),Bs("padding-top",n._cellPadding)("padding-bottom",n._cellPadding),is("colspan",n.numCols),Oa(1),tl(" ",n.label," ")}}function kM(e,t){if(1&e&&(ds(0,"td",7),Js(1),hs()),2&e){var n=As(2);Bs("padding-top",n._cellPadding)("padding-bottom",n._cellPadding),is("colspan",n._firstRowOffset),Oa(1),tl(" ",n._firstRowOffset>=n.labelMinRequiredCells?n.label:""," ")}}function wM(e,t){if(1&e){var n=vs();ds(0,"td",8),ks("click",function(e){rn(n);var i=t.$implicit;return As(2)._cellClicked(i,e)}),ds(1,"div",9),Js(2),hs(),fs(3,"div",10),hs()}if(2&e){var i=t.$implicit,r=t.index,a=As().index,o=As();Bs("width",o._cellWidth)("padding-top",o._cellPadding)("padding-bottom",o._cellPadding),Hs("mat-calendar-body-disabled",!i.enabled)("mat-calendar-body-active",o._isActiveCell(a,r))("mat-calendar-body-range-start",o._isRangeStart(i.compareValue))("mat-calendar-body-range-end",o._isRangeEnd(i.compareValue))("mat-calendar-body-in-range",o._isInRange(i.compareValue))("mat-calendar-body-comparison-bridge-start",o._isComparisonBridgeStart(i.compareValue,a,r))("mat-calendar-body-comparison-bridge-end",o._isComparisonBridgeEnd(i.compareValue,a,r))("mat-calendar-body-comparison-start",o._isComparisonStart(i.compareValue))("mat-calendar-body-comparison-end",o._isComparisonEnd(i.compareValue))("mat-calendar-body-in-comparison-range",o._isInComparisonRange(i.compareValue))("mat-calendar-body-preview-start",o._isPreviewStart(i.compareValue))("mat-calendar-body-preview-end",o._isPreviewEnd(i.compareValue))("mat-calendar-body-in-preview",o._isInPreview(i.compareValue)),us("ngClass",i.cssClasses)("tabindex",o._isActiveCell(a,r)?0:-1),is("data-mat-row",a)("data-mat-col",r)("aria-label",i.ariaLabel)("aria-disabled",!i.enabled||null)("aria-selected",o._isSelected(i.compareValue)),Oa(1),Hs("mat-calendar-body-selected",o._isSelected(i.compareValue))("mat-calendar-body-comparison-identical",o._isComparisonIdentical(i.compareValue))("mat-calendar-body-today",o.todayValue===i.compareValue),Oa(1),tl(" ",i.displayValue," ")}}function CM(e,t){if(1&e&&(ds(0,"tr",4),os(1,kM,2,6,"td",5),os(2,wM,4,46,"td",6),hs()),2&e){var n=t.$implicit,i=t.index,r=As();Oa(1),us("ngIf",0===i&&r._firstRowOffset),Oa(1),us("ngForOf",n)}}function xM(e,t){if(1&e&&(ds(0,"th",5),Js(1),hs()),2&e){var n=t.$implicit;is("aria-label",n.long),Oa(1),el(n.narrow)}}var SM=["*"];function AM(e,t){}function OM(e,t){if(1&e){var n=vs();ds(0,"mat-month-view",5),ks("activeDateChange",function(e){return rn(n),As().activeDate=e})("_userSelection",function(e){return rn(n),As()._dateSelected(e)}),hs()}if(2&e){var i=As();us("activeDate",i.activeDate)("selected",i.selected)("dateFilter",i.dateFilter)("maxDate",i.maxDate)("minDate",i.minDate)("dateClass",i.dateClass)("comparisonStart",i.comparisonStart)("comparisonEnd",i.comparisonEnd)}}function EM(e,t){if(1&e){var n=vs();ds(0,"mat-year-view",6),ks("activeDateChange",function(e){return rn(n),As().activeDate=e})("monthSelected",function(e){return rn(n),As()._monthSelectedInYearView(e)})("selectedChange",function(e){return rn(n),As()._goToDateInView(e,"month")}),hs()}if(2&e){var i=As();us("activeDate",i.activeDate)("selected",i.selected)("dateFilter",i.dateFilter)("maxDate",i.maxDate)("minDate",i.minDate)("dateClass",i.dateClass)}}function TM(e,t){if(1&e){var n=vs();ds(0,"mat-multi-year-view",7),ks("activeDateChange",function(e){return rn(n),As().activeDate=e})("yearSelected",function(e){return rn(n),As()._yearSelectedInMultiYearView(e)})("selectedChange",function(e){return rn(n),As()._goToDateInView(e,"year")}),hs()}if(2&e){var i=As();us("activeDate",i.activeDate)("selected",i.selected)("dateFilter",i.dateFilter)("maxDate",i.maxDate)("minDate",i.minDate)("dateClass",i.dateClass)}}function PM(e,t){}var DM=["button"];function MM(e,t){1&e&&(Dn(),ds(0,"svg",3),fs(1,"path",4),hs())}var IM,RM,LM=[[["","matDatepickerToggleIcon",""]]],FM=["[matDatepickerToggleIcon]"],NM=((IM=function(){function e(){b(this,e),this.changes=new j,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 20 years",this.nextMultiYearLabel="Next 20 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}return w(e,[{key:"formatYearRange",value:function(e,t){return"".concat(e," \u2013 ").concat(t)}}]),e}()).\u0275fac=function(e){return new(e||IM)},IM.\u0275prov=Le({factory:function(){return new IM},token:IM,providedIn:"root"}),IM),VM=function e(t,n,i,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t,s=arguments.length>6?arguments[6]:void 0;b(this,e),this.value=t,this.displayValue=n,this.ariaLabel=i,this.enabled=r,this.cssClasses=a,this.compareValue=o,this.rawValue=s},BM=((RM=function(){function e(t,n){var i=this;b(this,e),this._elementRef=t,this._ngZone=n,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new Vu,this.previewChange=new Vu,this._enterHandler=function(e){if(i._skipNextFocus&&"focus"===e.type)i._skipNextFocus=!1;else if(e.target&&i.isRange){var t=i._getCellFromElement(e.target);t&&i._ngZone.run(function(){return i.previewChange.emit({value:t.enabled?t:null,event:e})})}},this._leaveHandler=function(e){null!==i.previewEnd&&i.isRange&&e.target&&HM(e.target)&&i._ngZone.run(function(){return i.previewChange.emit({value:null,event:e})})},n.runOutsideAngular(function(){var e=t.nativeElement;e.addEventListener("mouseenter",i._enterHandler,!0),e.addEventListener("focus",i._enterHandler,!0),e.addEventListener("mouseleave",i._leaveHandler,!0),e.addEventListener("blur",i._leaveHandler,!0)})}return w(e,[{key:"_cellClicked",value:function(e,t){e.enabled&&this.selectedValueChange.emit({value:e.value,event:t})}},{key:"_isSelected",value:function(e){return this.startValue===e||this.endValue===e}},{key:"ngOnChanges",value:function(e){var t=e.numCols,n=this.rows,i=this.numCols;(e.rows||t)&&(this._firstRowOffset=n&&n.length&&n[0].length?i-n[0].length:0),(e.cellAspectRatio||t||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/i+"%"),!t&&this._cellWidth||(this._cellWidth=100/i+"%")}},{key:"ngOnDestroy",value:function(){var e=this._elementRef.nativeElement;e.removeEventListener("mouseenter",this._enterHandler,!0),e.removeEventListener("focus",this._enterHandler,!0),e.removeEventListener("mouseleave",this._leaveHandler,!0),e.removeEventListener("blur",this._leaveHandler,!0)}},{key:"_isActiveCell",value:function(e,t){var n=e*this.numCols+t;return e&&(n-=this._firstRowOffset),n==this.activeCell}},{key:"_focusActiveCell",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.pipe(Qg(1)).subscribe(function(){var n=e._elementRef.nativeElement.querySelector(".mat-calendar-body-active");n&&(t||(e._skipNextFocus=!0),n.focus())})})}},{key:"_isRangeStart",value:function(e){return zM(e,this.startValue,this.endValue)}},{key:"_isRangeEnd",value:function(e){return GM(e,this.startValue,this.endValue)}},{key:"_isInRange",value:function(e){return jM(e,this.startValue,this.endValue,this.isRange)}},{key:"_isComparisonStart",value:function(e){return zM(e,this.comparisonStart,this.comparisonEnd)}},{key:"_isComparisonBridgeStart",value:function(e,t,n){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;var i=this.rows[t][n-1];if(!i){var r=this.rows[t-1];i=r&&r[r.length-1]}return i&&!this._isRangeEnd(i.compareValue)}},{key:"_isComparisonBridgeEnd",value:function(e,t,n){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;var i=this.rows[t][n+1];if(!i){var r=this.rows[t+1];i=r&&r[0]}return i&&!this._isRangeStart(i.compareValue)}},{key:"_isComparisonEnd",value:function(e){return GM(e,this.comparisonStart,this.comparisonEnd)}},{key:"_isInComparisonRange",value:function(e){return jM(e,this.comparisonStart,this.comparisonEnd,this.isRange)}},{key:"_isComparisonIdentical",value:function(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}},{key:"_isPreviewStart",value:function(e){return zM(e,this.previewStart,this.previewEnd)}},{key:"_isPreviewEnd",value:function(e){return GM(e,this.previewStart,this.previewEnd)}},{key:"_isInPreview",value:function(e){return jM(e,this.previewStart,this.previewEnd,this.isRange)}},{key:"_getCellFromElement",value:function(e){var t;if(HM(e)?t=e:HM(e.parentNode)&&(t=e.parentNode),t){var n=t.getAttribute("data-mat-row"),i=t.getAttribute("data-mat-col");if(n&&i)return this.rows[parseInt(n)][parseInt(i)]}return null}}]),e}()).\u0275fac=function(e){return new(e||RM)(ls(Ol),ls(Oc))},RM.\u0275cmp=pt({type:RM,selectors:[["","mat-calendar-body",""]],hostAttrs:["role","grid","aria-readonly","true",1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",previewStart:"previewStart",previewEnd:"previewEnd",label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[It],attrs:_M,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(e,t){1&e&&(os(0,bM,3,6,"tr",0),os(1,CM,3,2,"tr",1)),2&e&&(us("ngIf",t._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n'],encapsulation:2,changeDetection:0}),RM);function HM(e){return"TD"===e.nodeName}function zM(e,t,n){return null!==n&&t!==n&&e=t&&e===n}function jM(e,t,n,i){return i&&null!==t&&null!==n&&t!==n&&e>=t&&e<=n}var UM,WM,qM,YM,QM=function e(t,n){b(this,e),this.start=t,this.end=n},XM=((WM=function(){function e(t,n){b(this,e),this.selection=t,this._adapter=n,this._selectionChanged=new j,this.selectionChanged=this._selectionChanged,this.selection=t}return w(e,[{key:"updateSelection",value:function(e,t){this.selection=e,this._selectionChanged.next({selection:e,source:t})}},{key:"ngOnDestroy",value:function(){this._selectionChanged.complete()}},{key:"_isValidDateInstance",value:function(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}},{key:"clone",value:function(){return null}}]),e}()).\u0275fac=function(e){return new(e||WM)(Ni(void 0),Ni(iA))},WM.\u0275prov=Le({token:WM,factory:WM.\u0275fac}),WM),$M=((UM=function(e){f(n,e);var t=m(n);function n(e){return b(this,n),t.call(this,null,e)}return w(n,[{key:"add",value:function(e){h(_(n.prototype),"updateSelection",this).call(this,e,this)}},{key:"isValid",value:function(){return null!=this.selection&&this._isValidDateInstance(this.selection)}},{key:"isComplete",value:function(){return null!=this.selection}},{key:"clone",value:function(){var e=new n(this._adapter);return e.updateSelection(this.selection,this),e}}]),n}(XM)).\u0275fac=function(e){return new(e||UM)(Ni(iA))},UM.\u0275prov=Le({token:UM,factory:UM.\u0275fac}),UM),KM={provide:XM,deps:[[new Ui,new Wi,XM],iA],useFactory:function(e,t){return e||new $M(t)}},ZM=new _i("MAT_DATE_RANGE_SELECTION_STRATEGY"),JM=((YM=function(){function e(t,n,i,r,a){b(this,e),this._changeDetectorRef=t,this._dateFormats=n,this._dateAdapter=i,this._dir=r,this._rangeStrategy=a,this._rerenderSubscription=O.EMPTY,this.selectedChange=new Vu,this._userSelection=new Vu,this.activeDateChange=new Vu,this._activeDate=this._dateAdapter.today()}return w(e,[{key:"activeDate",get:function(){return this._activeDate},set:function(e){var t=this._activeDate,n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),this._hasSameMonthAndYear(t,this._activeDate)||this._init()}},{key:"selected",get:function(){return this._selected},set:function(e){this._selected=e instanceof QM?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}},{key:"minDate",get:function(){return this._minDate},set:function(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}},{key:"maxDate",get:function(){return this._maxDate},set:function(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}},{key:"ngAfterContentInit",value:function(){var e=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Rp(null)).subscribe(function(){return e._init()})}},{key:"ngOnChanges",value:function(e){var t=e.comparisonStart||e.comparisonEnd;t&&!t.firstChange&&this._setRanges(this.selected)}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_dateSelected",value:function(e){var t,n,i=e.value,r=this._dateAdapter.getYear(this.activeDate),a=this._dateAdapter.getMonth(this.activeDate),o=this._dateAdapter.createDate(r,a,i);this._selected instanceof QM?(t=this._getDateInCurrentMonth(this._selected.start),n=this._getDateInCurrentMonth(this._selected.end)):t=n=this._getDateInCurrentMonth(this._selected),t===i&&n===i||this.selectedChange.emit(o),this._userSelection.emit({value:o,event:e.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}},{key:"_handleCalendarBodyKeydown",value:function(e){var t=this._activeDate,n=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),e.preventDefault()));case 27:return void(null==this._previewEnd||Zk(e)||(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e}),e.preventDefault(),e.stopPropagation()));default:return}this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()}},{key:"_init",value:function(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();var e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}},{key:"_focusActiveCell",value:function(e){this._matCalendarBody._focusActiveCell(e)}},{key:"_previewChanged",value:function(e){var t=e.event,n=e.value;if(this._rangeStrategy){var i=this._rangeStrategy.createPreview(n?n.rawValue:null,this.selected,t);this._previewStart=this._getCellCompareValue(i.start),this._previewEnd=this._getCellCompareValue(i.end),this._changeDetectorRef.detectChanges()}}},{key:"_initWeekdays",value:function(){var e=this._dateAdapter.getFirstDayOfWeek(),t=this._dateAdapter.getDayOfWeekNames("narrow"),n=this._dateAdapter.getDayOfWeekNames("long").map(function(e,n){return{long:e,narrow:t[n]}});this._weekdays=n.slice(e).concat(n.slice(0,e))}},{key:"_createWeekCells",value:function(){var e=this._dateAdapter.getNumDaysInMonth(this.activeDate),t=this._dateAdapter.getDateNames();this._weeks=[[]];for(var n=0,i=this._firstWeekOffset;n=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}},{key:"_getDateInCurrentMonth",value:function(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}},{key:"_hasSameMonthAndYear",value:function(e,t){return!(!e||!t||this._dateAdapter.getMonth(e)!=this._dateAdapter.getMonth(t)||this._dateAdapter.getYear(e)!=this._dateAdapter.getYear(t))}},{key:"_getCellCompareValue",value:function(e){if(e){var t=this._dateAdapter.getYear(e),n=this._dateAdapter.getMonth(e),i=this._dateAdapter.getDate(e);return new Date(t,n,i).getTime()}return null}},{key:"_isRtl",value:function(){return this._dir&&"rtl"===this._dir.value}},{key:"_setRanges",value:function(e){e instanceof QM?(this._rangeStart=this._getCellCompareValue(e.start),this._rangeEnd=this._getCellCompareValue(e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}}]),e}()).\u0275fac=function(e){return new(e||YM)(ls(Jl),ls(rA,8),ls(iA,8),ls(Iy,8),ls(ZM,8))},YM.\u0275cmp=pt({type:YM,selectors:[["mat-month-view"]],viewQuery:function(e,t){var n;1&e&&Ku(BM,1),2&e&&$u(n=Ju())&&(t._matCalendarBody=n.first)},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[It],decls:7,vars:13,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["colspan","7","aria-hidden","true",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keydown"],["scope","col"]],template:function(e,t){1&e&&(ds(0,"table",0),ds(1,"thead",1),ds(2,"tr"),os(3,xM,2,2,"th",2),hs(),ds(4,"tr"),fs(5,"th",3),hs(),hs(),ds(6,"tbody",4),ks("selectedValueChange",function(e){return t._dateSelected(e)})("previewChange",function(e){return t._previewChanged(e)})("keydown",function(e){return t._handleCalendarBodyKeydown(e)}),hs(),hs()),2&e&&(Oa(3),us("ngForOf",t._weekdays),Oa(3),us("label",t._monthLabel)("rows",t._weeks)("todayValue",t._todayDate)("startValue",t._rangeStart)("endValue",t._rangeEnd)("comparisonStart",t._comparisonRangeStart)("comparisonEnd",t._comparisonRangeEnd)("previewStart",t._previewStart)("previewEnd",t._previewEnd)("isRange",t._isRange)("labelMinRequiredCells",3)("activeCell",t._dateAdapter.getDate(t.activeDate)-1))},directives:[bh,BM],encapsulation:2,changeDetection:0}),YM),eI=((qM=function(){function e(t,n,i){b(this,e),this._changeDetectorRef=t,this._dateAdapter=n,this._dir=i,this._rerenderSubscription=O.EMPTY,this.selectedChange=new Vu,this.yearSelected=new Vu,this.activeDateChange=new Vu,this._activeDate=this._dateAdapter.today()}return w(e,[{key:"activeDate",get:function(){return this._activeDate},set:function(e){var t=this._activeDate,n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),tI(this._dateAdapter,t,this._activeDate,this.minDate,this.maxDate)||this._init()}},{key:"selected",get:function(){return this._selected},set:function(e){this._selected=e instanceof QM?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}},{key:"minDate",get:function(){return this._minDate},set:function(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}},{key:"maxDate",get:function(){return this._maxDate},set:function(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}},{key:"ngAfterContentInit",value:function(){var e=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Rp(null)).subscribe(function(){return e._init()})}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_init",value:function(){var e=this;this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());var t=this._dateAdapter.getYear(this._activeDate)-nI(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(var n=0,i=[];n<24;n++)i.push(t+n),4==i.length&&(this._years.push(i.map(function(t){return e._createCellForYear(t)})),i=[]);this._changeDetectorRef.markForCheck()}},{key:"_yearSelected",value:function(e){var t=e.value;this.yearSelected.emit(this._dateAdapter.createDate(t,0,1));var n=this._dateAdapter.getMonth(this.activeDate),i=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(t,n,1));this.selectedChange.emit(this._dateAdapter.createDate(t,n,Math.min(this._dateAdapter.getDate(this.activeDate),i)))}},{key:"_handleCalendarBodyKeydown",value:function(e){var t=this._activeDate,n=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-nI(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-nI(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?240:24);break;case 13:case 32:this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e});break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()}},{key:"_getActiveCell",value:function(){return nI(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}},{key:"_focusActiveCell",value:function(){this._matCalendarBody._focusActiveCell()}},{key:"_createCellForYear",value:function(e){var t=this._dateAdapter.createDate(e,0,1),n=this._dateAdapter.getYearName(t),i=this.dateClass?this.dateClass(t,"multi-year"):void 0;return new VM(e,n,n,this._shouldEnableYear(e),i)}},{key:"_shouldEnableYear",value:function(e){if(null==e||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&en||e===n&&t>i}return!1}},{key:"_isYearAndMonthBeforeMinDate",value:function(e,t){if(this.minDate){var n=this._dateAdapter.getYear(this.minDate),i=this._dateAdapter.getMonth(this.minDate);return e enter",cC("120ms cubic-bezier(0, 0, 0.2, 1)",fC({opacity:1,transform:"scale(1, 1)"}))),gC("* => void",cC("100ms linear",fC({opacity:0})))]),fadeInCalendar:uC("fadeInCalendar",[pC("void",fC({opacity:0})),pC("enter",fC({opacity:1})),gC("void => *",cC("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},wI=0,CI=new _i("mat-datepicker-scroll-strategy"),xI={provide:CI,deps:[SE],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},SI=$S(function e(t){b(this,e),this._elementRef=t}),AI=((uI=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o,s){var l;return b(this,n),(l=t.call(this,e))._changeDetectorRef=i,l._globalModel=r,l._dateAdapter=a,l._rangeSelectionStrategy=o,l._subscriptions=new O,l._animationState="enter",l._animationDone=new j,l._actionsPortal=null,l._closeButtonText=(null==s?void 0:s.closeCalendarLabel)||"Close calendar",l}return w(n,[{key:"ngOnInit",value:function(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel}},{key:"ngAfterViewInit",value:function(){var e=this;this._subscriptions.add(this.datepicker.stateChanges.subscribe(function(){e._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}},{key:"ngOnDestroy",value:function(){this._subscriptions.unsubscribe(),this._animationDone.complete()}},{key:"_handleUserSelection",value:function(e){var t=this._model.selection,n=e.value,i=t instanceof QM;if(i&&this._rangeSelectionStrategy){var r=this._rangeSelectionStrategy.selectionFinished(n,t,e.event);this._model.updateSelection(r,this)}else!n||!i&&this._dateAdapter.sameDate(n,t)||this._model.add(n);this._model&&!this._model.isComplete()||this._actionsPortal||this.datepicker.close()}},{key:"_startExitAnimation",value:function(){this._animationState="void",this._changeDetectorRef.markForCheck()}},{key:"_getSelected",value:function(){return this._model.selection}},{key:"_applyPendingSelection",value:function(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}]),n}(SI)).\u0275fac=function(e){return new(e||uI)(ls(Ol),ls(Jl),ls(XM),ls(iA),ls(ZM,8),ls(NM))},uI.\u0275cmp=pt({type:uI,selectors:[["mat-datepicker-content"]],viewQuery:function(e,t){var n;1&e&&Ku(bI,1),2&e&&$u(n=Ju())&&(t._calendar=n.first)},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(e,t){1&e&&ws("@transformPanel.done",function(){return t._animationDone.next()}),2&e&&(ol("@transformPanel",t._animationState),Hs("mat-datepicker-content-touch",t.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[jo],decls:5,vars:20,consts:[["cdkTrapFocus","",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"mat-calendar",1),ks("yearSelected",function(e){return t.datepicker._selectYear(e)})("monthSelected",function(e){return t.datepicker._selectMonth(e)})("viewChanged",function(e){return t.datepicker._viewChanged(e)})("_userSelection",function(e){return t._handleUserSelection(e)}),hs(),os(2,PM,0,0,"ng-template",2),ds(3,"button",3),ks("focus",function(){return t._closeButtonFocused=!0})("blur",function(){return t._closeButtonFocused=!1})("click",function(){return t.datepicker.close()}),Js(4),hs(),hs()),2&e&&(Hs("mat-datepicker-content-container-with-actions",t._actionsPortal),Oa(1),us("id",t.datepicker.id)("ngClass",t.datepicker.panelClass)("startAt",t.datepicker.startAt)("startView",t.datepicker.startView)("minDate",t.datepicker._getMinDate())("maxDate",t.datepicker._getMaxDate())("dateFilter",t.datepicker._getDateFilter())("headerComponent",t.datepicker.calendarHeaderComponent)("selected",t._getSelected())("dateClass",t.datepicker.dateClass)("comparisonStart",t.comparisonStart)("comparisonEnd",t.comparisonEnd)("@fadeInCalendar","enter"),Oa(1),us("cdkPortalOutlet",t._actionsPortal),Oa(1),Hs("cdk-visually-hidden",!t._closeButtonFocused),us("color",t.color||"primary"),Oa(1),el(t._closeButtonText))},directives:[zw,bI,yh,BO,kP],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;overflow:auto;margin:-24px}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],encapsulation:2,data:{animation:[kI.transformPanel,kI.fadeInCalendar]},changeDetection:0}),uI),OI=((lI=function(){function e(t,n,i,r,a,o,s,l,u){b(this,e),this._dialog=t,this._overlay=n,this._ngZone=i,this._viewContainerRef=r,this._dateAdapter=o,this._dir=s,this._document=l,this._model=u,this._inputStateChanges=O.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new Vu,this.monthSelected=new Vu,this.viewChanged=new Vu(!0),this.openedStream=new Vu,this.closedStream=new Vu,this._opened=!1,this.id="mat-datepicker-"+wI++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass="".concat(this.id,"-backdrop"),this.stateChanges=new j,this._scrollStrategy=a}return w(e,[{key:"startAt",get:function(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)},set:function(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}},{key:"color",get:function(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)},set:function(e){this._color=e}},{key:"touchUi",get:function(){return this._touchUi},set:function(e){this._touchUi=Qv(e)}},{key:"disabled",get:function(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled},set:function(e){var t=Qv(e);t!==this._disabled&&(this._disabled=t,this.stateChanges.next(void 0))}},{key:"restoreFocus",get:function(){return this._restoreFocus},set:function(e){this._restoreFocus=Qv(e)}},{key:"panelClass",get:function(){return this._panelClass},set:function(e){this._panelClass=ey(e)}},{key:"opened",get:function(){return this._opened},set:function(e){Qv(e)?this.open():this.close()}},{key:"_getMinDate",value:function(){return this.datepickerInput&&this.datepickerInput.min}},{key:"_getMaxDate",value:function(){return this.datepickerInput&&this.datepickerInput.max}},{key:"_getDateFilter",value:function(){return this.datepickerInput&&this.datepickerInput.dateFilter}},{key:"ngOnChanges",value:function(e){var t=e.xPosition||e.yPosition;t&&!t.firstChange&&this._popupRef&&(this._setConnectedPositions(this._popupRef.getConfig().positionStrategy),this.opened&&this._popupRef.updatePosition()),this.stateChanges.next(void 0)}},{key:"ngOnDestroy",value:function(){this._destroyPopup(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}},{key:"select",value:function(e){this._model.add(e)}},{key:"_selectYear",value:function(e){this.yearSelected.emit(e)}},{key:"_selectMonth",value:function(e){this.monthSelected.emit(e)}},{key:"_viewChanged",value:function(e){this.viewChanged.emit(e)}},{key:"registerInput",value:function(e){var t=this;return this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(function(){return t.stateChanges.next(void 0)}),this._model}},{key:"registerActions",value:function(e){this._actionsPortal=e}},{key:"removeActions",value:function(e){e===this._actionsPortal&&(this._actionsPortal=null)}},{key:"open",value:function(){this._opened||this.disabled||(this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this.touchUi?this._openAsDialog():this._openAsPopup(),this._opened=!0,this.openedStream.emit())}},{key:"close",value:function(){var e=this;if(this._opened){if(this._popupComponentRef&&this._popupRef){var t=this._popupComponentRef.instance;t._startExitAnimation(),t._animationDone.pipe(Qg(1)).subscribe(function(){return e._destroyPopup()})}this._dialogRef&&(this._dialogRef.close(),this._dialogRef=null);var n=function(){e._opened&&(e._opened=!1,e.closedStream.emit(),e._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(n)):n()}}},{key:"_applyPendingSelection",value:function(){var e,t,n=(null===(e=this._popupComponentRef)||void 0===e?void 0:e.instance)||(null===(t=this._dialogRef)||void 0===t?void 0:t.componentInstance);null==n||n._applyPendingSelection()}},{key:"_openAsDialog",value:function(){var e=this;this._dialogRef&&this._dialogRef.close(),this._dialogRef=this._dialog.open(AI,{direction:this._dir?this._dir.value:"ltr",viewContainerRef:this._viewContainerRef,panelClass:"mat-datepicker-dialog",hasBackdrop:!0,disableClose:!1,backdropClass:["cdk-overlay-dark-backdrop",this._backdropHarnessClass],width:"",height:"",minWidth:"",minHeight:"",maxWidth:"80vw",maxHeight:"",position:{},autoFocus:!1,restoreFocus:!1}),this._dialogRef.afterClosed().subscribe(function(){return e.close()}),this._forwardContentValues(this._dialogRef.componentInstance)}},{key:"_openAsPopup",value:function(){var e=this,t=new IO(AI,this._viewContainerRef);this._destroyPopup(),this._createPopup(),this._popupComponentRef=this._popupRef.attach(t),this._forwardContentValues(this._popupComponentRef.instance),this._ngZone.onStable.pipe(Qg(1)).subscribe(function(){e._popupRef.updatePosition()})}},{key:"_forwardContentValues",value:function(e){e.datepicker=this,e.color=this.color,e._actionsPortal=this._actionsPortal}},{key:"_createPopup",value:function(){var e=this,t=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition(),n=new nE({positionStrategy:this._setConnectedPositions(t),hasBackdrop:!0,backdropClass:["mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:this._scrollStrategy(),panelClass:"mat-datepicker-popup"});this._popupRef=this._overlay.create(n),this._popupRef.overlayElement.setAttribute("role","dialog"),de(this._popupRef.backdropClick(),this._popupRef.detachments(),this._popupRef.keydownEvents().pipe(jm(function(t){return 27===t.keyCode&&!Zk(t)||e.datepickerInput&&Zk(t,"altKey")&&38===t.keyCode}))).subscribe(function(t){t&&t.preventDefault(),e.close()})}},{key:"_destroyPopup",value:function(){this._popupRef&&(this._popupRef.dispose(),this._popupRef=this._popupComponentRef=null)}},{key:"_setConnectedPositions",value:function(e){var t="end"===this.xPosition?"end":"start",n="start"===t?"end":"start",i="above"===this.yPosition?"bottom":"top",r="top"===i?"bottom":"top";return e.withPositions([{originX:t,originY:r,overlayX:t,overlayY:i},{originX:t,originY:i,overlayX:t,overlayY:r},{originX:n,originY:r,overlayX:n,overlayY:i},{originX:n,originY:i,overlayX:n,overlayY:r}])}}]),e}()).\u0275fac=function(e){return new(e||lI)(ls(qD),ls(SE),ls(Oc),ls(du),ls(CI),ls(iA,8),ls(Iy,8),ls(sd,8),ls(XM))},lI.\u0275dir=bt({type:lI,inputs:{startView:"startView",xPosition:"xPosition",yPosition:"yPosition",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",restoreFocus:"restoreFocus",panelClass:"panelClass",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[It]}),lI),EI=((sI=function(e){f(n,e);var t=m(n);function n(){return b(this,n),t.apply(this,arguments)}return n}(OI)).\u0275fac=function(e){return TI(e||sI)},sI.\u0275cmp=pt({type:sI,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[bl([KM,{provide:OI,useExisting:sI}]),jo],decls:0,vars:0,template:function(e,t){},encapsulation:2,changeDetection:0}),sI),TI=fi(EI),PI=function e(t,n){b(this,e),this.target=t,this.targetElement=n,this.value=this.target.value},DI=((cI=function(){function e(t,n,i){var r=this;b(this,e),this._elementRef=t,this._dateAdapter=n,this._dateFormats=i,this.dateChange=new Vu,this.dateInput=new Vu,this.stateChanges=new j,this._onTouched=function(){},this._validatorOnChange=function(){},this._cvaOnChange=function(){},this._valueChangesSubscription=O.EMPTY,this._localeSubscription=O.EMPTY,this._parseValidator=function(){return r._lastValueValid?null:{matDatepickerParse:{text:r._elementRef.nativeElement.value}}},this._filterValidator=function(e){var t=r._dateAdapter.getValidDateOrNull(r._dateAdapter.deserialize(e.value));return!t||r._matchesFilter(t)?null:{matDatepickerFilter:!0}},this._minValidator=function(e){var t=r._dateAdapter.getValidDateOrNull(r._dateAdapter.deserialize(e.value)),n=r._getMinDate();return!n||!t||r._dateAdapter.compareDate(n,t)<=0?null:{matDatepickerMin:{min:n,actual:t}}},this._maxValidator=function(e){var t=r._dateAdapter.getValidDateOrNull(r._dateAdapter.deserialize(e.value)),n=r._getMaxDate();return!n||!t||r._dateAdapter.compareDate(n,t)>=0?null:{matDatepickerMax:{max:n,actual:t}}},this._lastValueValid=!1,this._localeSubscription=n.localeChanges.subscribe(function(){r._assignValueProgrammatically(r.value)})}return w(e,[{key:"value",get:function(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue},set:function(e){this._assignValueProgrammatically(e)}},{key:"disabled",get:function(){return!!this._disabled||this._parentDisabled()},set:function(e){var t=Qv(e),n=this._elementRef.nativeElement;this._disabled!==t&&(this._disabled=t,this.stateChanges.next(void 0)),t&&this._isInitialized&&n.blur&&n.blur()}},{key:"_getValidators",value:function(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}},{key:"_registerModel",value:function(e){var t=this;this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(function(e){if(t._shouldHandleChangeEvent(e)){var n=t._getValueFromModel(e.selection);t._lastValueValid=t._isValidValue(n),t._cvaOnChange(n),t._onTouched(),t._formatValue(n),t.dateInput.emit(new PI(t,t._elementRef.nativeElement)),t.dateChange.emit(new PI(t,t._elementRef.nativeElement))}})}},{key:"ngAfterViewInit",value:function(){this._isInitialized=!0}},{key:"ngOnChanges",value:function(e){(function(e,t){for(var n=0,i=Object.keys(e);n collapsed, void => collapsed",cC("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),bodyExpansion:uC("bodyExpansion",[pC("collapsed, void",fC({height:"0px",visibility:"hidden"})),pC("expanded",fC({height:"*",visibility:"visible"})),gC("expanded <=> collapsed, void => collapsed",cC("225ms cubic-bezier(0.4,0.0,0.2,1)"))])},nR=((YI=function e(t){b(this,e),this._template=t}).\u0275fac=function(e){return new(e||YI)(ls(au))},YI.\u0275dir=bt({type:YI,selectors:[["ng-template","matExpansionPanelContent",""]]}),YI),iR=0,rR=new _i("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),aR=((KI=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o,s,l){var u;return b(this,n),(u=t.call(this,e,i,r))._viewContainerRef=a,u._animationMode=s,u._hideToggle=!1,u.afterExpand=new Vu,u.afterCollapse=new Vu,u._inputChanges=new j,u._headerId="mat-expansion-panel-header-"+iR++,u._bodyAnimationDone=new j,u.accordion=e,u._document=o,u._bodyAnimationDone.pipe(Op(function(e,t){return e.fromState===t.fromState&&e.toState===t.toState})).subscribe(function(e){"void"!==e.fromState&&("expanded"===e.toState?u.afterExpand.emit():"collapsed"===e.toState&&u.afterCollapse.emit())}),l&&(u.hideToggle=l.hideToggle),u}return w(n,[{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(e){this._hideToggle=Qv(e)}},{key:"togglePosition",get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(e){this._togglePosition=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 e=this;this._lazyContent&&this.opened.pipe(Rp(null),jm(function(){return e.expanded&&!e._portal}),Qg(1)).subscribe(function(){e._portal=new RO(e._lazyContent._template,e._viewContainerRef)})}},{key:"ngOnChanges",value:function(e){this._inputChanges.next(e)}},{key:"ngOnDestroy",value:function(){h(_(n.prototype),"ngOnDestroy",this).call(this),this._bodyAnimationDone.complete(),this._inputChanges.complete()}},{key:"_containsFocus",value:function(){if(this._body){var e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}}]),n}(HI)).\u0275fac=function(e){return new(e||KI)(ls(eR,12),ls(Jl),ls(SO),ls(du),ls(sd),ls(LS,8),ls(rR,8))},KI.\u0275cmp=pt({type:KI,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,n){var i;1&e&&Zu(n,nR,1),2&e&&$u(i=Ju())&&(t._lazyContent=i.first)},viewQuery:function(e,t){var n;1&e&&Ku(GI,1),2&e&&$u(n=Ju())&&(t._body=n.first)},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,t){2&e&&Hs("mat-expanded",t.expanded)("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-expansion-panel-spacing",t._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[bl([{provide:eR,useValue:void 0}]),jo,It],ngContentSelectors:WI,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(Es(UI),Ts(0),ds(1,"div",0,1),ks("@bodyExpansion.done",function(e){return t._bodyAnimationDone.next(e)}),ds(3,"div",2),Ts(4,1),os(5,jI,0,0,"ng-template",3),hs(),Ts(6,2),hs()),2&e&&(Oa(1),us("@bodyExpansion",t._getExpandedState())("id",t.id),is("aria-labelledby",t._headerId),Oa(4),us("cdkPortalOutlet",t._portal))},directives:[BO],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);position:relative}.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:[tR.bodyExpansion]},changeDetection:0}),KI),oR=(($I=function(){function e(t,n,i,r,a,o){var s=this;b(this,e),this.panel=t,this._element=n,this._focusMonitor=i,this._changeDetectorRef=r,this._animationMode=o,this._parentChangeSubscription=O.EMPTY;var l=t.accordion?t.accordion._stateChanges.pipe(jm(function(e){return!(!e.hideToggle&&!e.togglePosition)})):dp;this._parentChangeSubscription=de(t.opened,t.closed,l,t._inputChanges.pipe(jm(function(e){return!!(e.hideToggle||e.disabled||e.togglePosition)}))).subscribe(function(){return s._changeDetectorRef.markForCheck()}),t.closed.pipe(jm(function(){return t._containsFocus()})).subscribe(function(){return i.focusVia(n,"program")}),a&&(this.expandedHeight=a.expandedHeight,this.collapsedHeight=a.collapsedHeight)}return w(e,[{key:"disabled",get:function(){return this.panel.disabled}},{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:"_getHeaderHeight",value:function(){var e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}},{key:"_keydown",value:function(e){switch(e.keyCode){case 32:case 13:Zk(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._element).subscribe(function(t){t&&e.panel.accordion&&e.panel.accordion._handleHeaderFocus(e)})}},{key:"ngOnDestroy",value:function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}]),e}()).\u0275fac=function(e){return new(e||$I)(ls(aR,1),ls(Ol),ls(Jw),ls(Jl),ls(rR,8),ls(LS,8))},$I.\u0275cmp=pt({type:$I,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&ks("click",function(){return t._toggle()})("keydown",function(e){return t._keydown(e)}),2&e&&(is("id",t.panel._headerId)("tabindex",t.disabled?-1:0)("aria-controls",t._getPanelId())("aria-expanded",t._isExpanded())("aria-disabled",t.panel.disabled),Bs("height",t._getHeaderHeight()),Hs("mat-expanded",t._isExpanded())("mat-expansion-toggle-indicator-after","after"===t._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===t._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:JI,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,t){1&e&&(Es(ZI),ds(0,"span",0),Ts(1),Ts(2,1),Ts(3,2),hs(),os(4,qI,1,1,"span",1)),2&e&&(Oa(4),us("ngIf",t._showToggle()))},directives:[wh],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.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}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}\n'],encapsulation:2,data:{animation:[tR.indicatorRotate]},changeDetection:0}),$I),sR=((XI=function e(){b(this,e)}).\u0275fac=function(e){return new(e||XI)},XI.\u0275mod=yt({type:XI}),XI.\u0275inj=Ne({imports:[[Zh,QS,zI,HO]]}),XI),lR=((QI=function e(){b(this,e)}).\u0275fac=function(e){return new(e||QI)},QI.\u0275mod=yt({type:QI}),QI.\u0275inj=Ne({imports:[[DA,QS],DA,QS]}),QI);function uR(e){return function(t){var n=new cR(e),i=t.lift(n);return n.caught=i}}var cR=function(){function e(t){b(this,e),this.selector=t}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new dR(e,this.selector,this.caught))}}]),e}(),dR=function(e){f(n,e);var t=m(n);function n(e,i,r){var a;return b(this,n),(a=t.call(this,e)).selector=i,a.caught=r,a}return w(n,[{key:"error",value:function(e){if(!this.isStopped){var t;try{t=this.selector(e,this.caught)}catch(a){return void h(_(n.prototype),"error",this).call(this,a)}this._unsubscribeAndRecycle();var i=new ne(this);this.add(i);var r=re(t,i);r!==i&&this.add(r)}}}]),n}(ie);function hR(e){return function(t){return t.lift(new fR(e))}}var fR=function(){function e(t){b(this,e),this.callback=t}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new pR(e,this.callback))}}]),e}(),pR=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this,e)).add(new O(i)),r}return n}(P),mR=["*"];function gR(e){return Error('Unable to find icon with the name "'.concat(e,'"'))}function vR(e){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was \"".concat(e,'".'))}function yR(e){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was \"".concat(e,'".'))}var _R,bR=function e(t,n,i){b(this,e),this.url=t,this.svgText=n,this.options=i},kR=((_R=function(){function e(t,n,i,r){b(this,e),this._httpClient=t,this._sanitizer=n,this._errorHandler=r,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=i}return w(e,[{key:"addSvgIcon",value:function(e,t,n){return this.addSvgIconInNamespace("",e,t,n)}},{key:"addSvgIconLiteral",value:function(e,t,n){return this.addSvgIconLiteralInNamespace("",e,t,n)}},{key:"addSvgIconInNamespace",value:function(e,t,n,i){return this._addSvgIconConfig(e,t,new bR(n,null,i))}},{key:"addSvgIconResolver",value:function(e){return this._resolvers.push(e),this}},{key:"addSvgIconLiteralInNamespace",value:function(e,t,n,i){var r=this._sanitizer.sanitize(Er.HTML,n);if(!r)throw yR(n);return this._addSvgIconConfig(e,t,new bR("",r,i))}},{key:"addSvgIconSet",value:function(e,t){return this.addSvgIconSetInNamespace("",e,t)}},{key:"addSvgIconSetLiteral",value:function(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}},{key:"addSvgIconSetInNamespace",value:function(e,t,n){return this._addSvgIconSetConfig(e,new bR(t,null,n))}},{key:"addSvgIconSetLiteralInNamespace",value:function(e,t,n){var i=this._sanitizer.sanitize(Er.HTML,t);if(!i)throw yR(t);return this._addSvgIconSetConfig(e,new bR("",i,n))}},{key:"registerFontClassAlias",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return this._fontCssClassesByAlias.set(e,t),this}},{key:"classNameForFontAlias",value:function(e){return this._fontCssClassesByAlias.get(e)||e}},{key:"setDefaultFontSetClass",value:function(e){return this._defaultFontSetClass=e,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(e){var t=this,n=this._sanitizer.sanitize(Er.RESOURCE_URL,e);if(!n)throw vR(e);var i=this._cachedIconsByUrl.get(n);return i?fp(wR(i)):this._loadSvgIconFromConfig(new bR(e,null)).pipe(Zg(function(e){return t._cachedIconsByUrl.set(n,e)}),q(function(e){return wR(e)}))}},{key:"getNamedSvgIcon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=CR(t,e),i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);if(i=this._getIconConfigFromResolvers(t,e))return this._svgIconConfigs.set(n,i),this._getSvgFromConfig(i);var r=this._iconSetConfigs.get(t);return r?this._getSvgFromIconSetConfigs(e,r):pp(gR(n))}},{key:"ngOnDestroy",value:function(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(e){return e.svgText?fp(wR(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(q(function(e){return wR(e)}))}},{key:"_getSvgFromIconSetConfigs",value:function(e,t){var n=this,i=this._extractIconWithNameFromAnySet(e,t);return i?fp(i):mb(t.filter(function(e){return!e.svgText}).map(function(e){return n._loadSvgIconSetFromConfig(e).pipe(uR(function(t){var i=n._sanitizer.sanitize(Er.RESOURCE_URL,e.url);return n._errorHandler.handleError(new Error("Loading icon set URL: ".concat(i," failed: ").concat(t.message))),fp(null)}))})).pipe(q(function(){var i=n._extractIconWithNameFromAnySet(e,t);if(!i)throw gR(e);return i}))}},{key:"_extractIconWithNameFromAnySet",value:function(e,t){for(var n=t.length-1;n>=0;n--){var i=t[n];if(i.svgText&&i.svgText.indexOf(e)>-1){var r=this._svgElementFromConfig(i),a=this._extractSvgIconFromSet(r,e,i.options);if(a)return a}}return null}},{key:"_loadSvgIconFromConfig",value:function(e){var t=this;return this._fetchIcon(e).pipe(Zg(function(t){return e.svgText=t}),q(function(){return t._svgElementFromConfig(e)}))}},{key:"_loadSvgIconSetFromConfig",value:function(e){return e.svgText?fp(null):this._fetchIcon(e).pipe(Zg(function(t){return e.svgText=t}))}},{key:"_extractSvgIconFromSet",value:function(e,t,n){var i=e.querySelector('[id="'.concat(t,'"]'));if(!i)return null;var r=i.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,n);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),n);var a=this._svgElementFromString("");return a.appendChild(r),this._setSvgAttributes(a,n)}},{key:"_svgElementFromString",value:function(e){var t=this._document.createElement("DIV");t.innerHTML=e;var n=t.querySelector("svg");if(!n)throw Error(" tag not found");return n}},{key:"_toSvgElement",value:function(e){for(var t=this._svgElementFromString(""),n=e.attributes,i=0;i*,.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}.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;flex:auto;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-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.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}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-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',WR=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],qR=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],YR=XS(KS(function e(){b(this,e)})),QR=KS(function e(){b(this,e)}),XR=new _i("MatList"),$R=new _i("MatNavList"),KR=((ER=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments))._stateChanges=new j,e}return w(n,[{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}(YR)).\u0275fac=function(e){return ZR(e||ER)},ER.\u0275cmp=pt({type:ER,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[bl([{provide:$R,useExisting:ER}]),jo,It],ngContentSelectors:jR,decls:1,vars:0,template:function(e,t){1&e&&(Es(),Ts(0))},styles:[UR],encapsulation:2,changeDetection:0}),ER),ZR=fi(KR),JR=((IR=function(e){f(n,e);var t=m(n);function n(e){var i;return b(this,n),(i=t.call(this))._elementRef=e,i._stateChanges=new j,"action-list"===i._getListType()&&e.nativeElement.classList.add("mat-action-list"),i}return w(n,[{key:"_getListType",value:function(){var e=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===e?"list":"mat-action-list"===e?"action-list":null}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}(YR)).\u0275fac=function(e){return new(e||IR)(ls(Ol))},IR.\u0275cmp=pt({type:IR,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[bl([{provide:XR,useExisting:IR}]),jo,It],ngContentSelectors:jR,decls:1,vars:0,template:function(e,t){1&e&&(Es(),Ts(0))},styles:[UR],encapsulation:2,changeDetection:0}),IR),eL=((MR=function e(){b(this,e)}).\u0275fac=function(e){return new(e||MR)},MR.\u0275dir=bt({type:MR,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),MR),tL=((DR=function e(){b(this,e)}).\u0275fac=function(e){return new(e||DR)},DR.\u0275dir=bt({type:DR,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),DR),nL=((PR=function(e){f(n,e);var t=m(n);function n(e,i,r,a){var o;b(this,n),(o=t.call(this))._element=e,o._isInteractiveList=!1,o._destroyed=new j,o._disabled=!1,o._isInteractiveList=!!(r||a&&"action-list"===a._getListType()),o._list=r||a;var s=o._getHostElement();return"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),o._list&&o._list._stateChanges.pipe(Pp(o._destroyed)).subscribe(function(){i.markForCheck()}),o}return w(n,[{key:"disabled",get:function(){return this._disabled||!(!this._list||!this._list.disabled)},set:function(e){this._disabled=Qv(e)}},{key:"ngAfterContentInit",value:function(){!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat";e.changes.pipe(Rp(e)).subscribe(function(e){var i=e.length;kA(t,"".concat(n,"-2-line"),!1),kA(t,"".concat(n,"-3-line"),!1),kA(t,"".concat(n,"-multi-line"),!1),2===i||3===i?kA(t,"".concat(n,"-").concat(i,"-line"),!0):i>3&&kA(t,"".concat(n,"-multi-line"),!0)})}(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}}]),n}(QR)).\u0275fac=function(e){return new(e||PR)(ls(Ol),ls(Jl),ls($R,8),ls(XR,8))},PR.\u0275cmp=pt({type:PR,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,t,n){var i;1&e&&(Zu(n,eL,1),Zu(n,tL,1),Zu(n,bA,1)),2&e&&($u(i=Ju())&&(t._avatar=i.first),$u(i=Ju())&&(t._icon=i.first),$u(i=Ju())&&(t._lines=i))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(e,t){2&e&&Hs("mat-list-item-disabled",t.disabled)("mat-list-item-avatar",t._avatar||t._icon)("mat-list-item-with-avatar",t._avatar||t._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[jo],ngContentSelectors:qR,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(e,t){1&e&&(Es(WR),ds(0,"div",0),fs(1,"div",1),Ts(2),ds(3,"div",2),Ts(4,1),hs(),Ts(5,2),hs()),2&e&&(Oa(1),us("matRippleTrigger",t._getHostElement())("matRippleDisabled",t._isRippleDisabled()))},directives:[BA],encapsulation:2,changeDetection:0}),PR),iL=((TR=function e(){b(this,e)}).\u0275fac=function(e){return new(e||TR)},TR.\u0275mod=yt({type:TR}),TR.\u0275inj=Ne({imports:[[DA,HA,QS,GA,Zh],DA,QS,GA,GR]}),TR),rL=["mat-menu-item",""],aL=["*"];function oL(e,t){if(1&e){var n=vs();ds(0,"div",0),ks("keydown",function(e){return rn(n),As()._handleKeydown(e)})("click",function(){return rn(n),As().closed.emit("click")})("@transformMenu.start",function(e){return rn(n),As()._onAnimationStart(e)})("@transformMenu.done",function(e){return rn(n),As()._onAnimationDone(e)}),ds(1,"div",1),Ts(2),hs(),hs()}if(2&e){var i=As();us("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),is("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}var sL,lL,uL,cL,dL,hL,fL={transformMenu:uC("transformMenu",[pC("void",fC({opacity:0,transform:"scale(0.8)"})),gC("void => enter",cC("120ms cubic-bezier(0, 0, 0.2, 1)",fC({opacity:1,transform:"scale(1)"}))),gC("* => void",cC("100ms 25ms linear",fC({opacity:0})))]),fadeInItems:uC("fadeInItems",[pC("showing",fC({opacity:1})),gC("void => *",[fC({opacity:0}),cC("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},pL=new _i("MatMenuContent"),mL=new _i("MAT_MENU_PANEL"),gL=KS(XS(function e(){b(this,e)})),vL=((sL=function(e){f(n,e);var t=m(n);function n(e,i,r,a){var o;return b(this,n),(o=t.call(this))._elementRef=e,o._focusMonitor=r,o._parentMenu=a,o.role="menuitem",o._hovered=new j,o._focused=new j,o._highlighted=!1,o._triggersSubmenu=!1,a&&a.addItem&&a.addItem(v(o)),o}return w(n,[{key:"focus",value:function(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{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(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var e,t,n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons"),r=0;r0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.pipe(Qg(1)).subscribe(function(){return e._focusFirstItem(t)}):this._focusFirstItem(t)}},{key:"_focusFirstItem",value:function(e){var t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.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(e){var t="mat-elevation-z".concat(Math.min(4+e,24)),n=Object.keys(this._classList).find(function(e){return e.startsWith("mat-elevation-z")});n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[t]=!0,this._previousElevation=t)}},{key:"setPositionClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,n=this._classList;n["mat-menu-before"]="before"===e,n["mat-menu-after"]="after"===e,n["mat-menu-above"]="above"===t,n["mat-menu-below"]="below"===t}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(e){this._animationDone.next(e),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var e=this;this._allItems.changes.pipe(Rp(this._allItems)).subscribe(function(t){e._directDescendantItems.reset(t.filter(function(t){return t._parentMenu===e})),e._directDescendantItems.notifyOnChanges()})}}]),e}()).\u0275fac=function(e){return new(e||uL)(ls(Ol),ls(Oc),ls(yL))},uL.\u0275dir=bt({type:uL,contentQueries:function(e,t,n){var i;1&e&&(Zu(n,pL,1),Zu(n,vL,1),Zu(n,vL,0)),2&e&&($u(i=Ju())&&(t.lazyContent=i.first),$u(i=Ju())&&(t._allItems=i),$u(i=Ju())&&(t.items=i))},viewQuery:function(e,t){var n;1&e&&Ku(au,1),2&e&&$u(n=Ju())&&(t.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"}}),uL),kL=((lL=function(e){f(n,e);var t=m(n);function n(e,i,r){return b(this,n),t.call(this,e,i,r)}return n}(bL)).\u0275fac=function(e){return new(e||lL)(ls(Ol),ls(Oc),ls(yL))},lL.\u0275cmp=pt({type:lL,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&is("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[bl([{provide:mL,useExisting:lL}]),jo],ngContentSelectors:aL,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(Es(),os(0,oL,3,6,"ng-template"))},directives:[yh],styles:['mat-menu{display:none}.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{margin-top:1px}.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:[fL.transformMenu,fL.fadeInItems]},changeDetection:0}),lL),wL=new _i("mat-menu-scroll-strategy"),CL={provide:wL,deps:[SE],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},xL=cw({passive:!0}),SL=((hL=function(){function e(t,n,i,r,a,o,s,l){var u=this;b(this,e),this._overlay=t,this._element=n,this._viewContainerRef=i,this._menuItemInstance=o,this._dir=s,this._focusMonitor=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=O.EMPTY,this._hoverSubscription=O.EMPTY,this._menuCloseSubscription=O.EMPTY,this._handleTouchStart=function(e){Xw(e)||(u._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new Vu,this.onMenuOpen=this.menuOpened,this.menuClosed=new Vu,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=a instanceof bL?a:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,xL),o&&(o._triggersSubmenu=this.triggersSubmenu())}return w(e,[{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(e){this.menu=e}},{key:"menu",get:function(){return this._menu},set:function(e){var t=this;e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(function(e){t._destroyMenu(e),"click"!==e&&"tab"!==e||!t._parentMaterialMenu||t._parentMaterialMenu.closed.emit(e)})))}},{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,xL),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var e=this;if(!this._menuOpen){this._checkMenu();var t=this._createOverlay(),n=t.getConfig();this._setPosition(n.positionStrategy),n.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(function(){return e.closeMenu()}),this._initMenu(),this.menu instanceof bL&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"_destroyMenu",value:function(e){var t=this;if(this._overlayRef&&this.menuOpen){var n=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==e&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,n instanceof bL?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe(jm(function(e){return"void"===e.toState}),Qg(1),Pp(n.lazyContent._attached)).subscribe({next:function(){return n.lazyContent.detach()},complete:function(){return t._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),n.lazyContent&&n.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var e=0,t=this.menu.parentMenu;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}},{key:"_setIsMenuOpen",value:function(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=e)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new nE({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(e){var t=this;this.menu.setPositionClasses&&e.positionChanges.subscribe(function(e){t.menu.setPositionClasses("start"===e.connectionPair.overlayX?"after":"before","top"===e.connectionPair.overlayY?"below":"above")})}},{key:"_setPosition",value:function(e){var t=n("before"===this.menu.xPosition?["end","start"]:["start","end"],2),i=t[0],r=t[1],a=n("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),o=a[0],s=a[1],l=o,u=s,c=i,d=r,h=0;this.triggersSubmenu()?(d=i="before"===this.menu.xPosition?"start":"end",r=c="end"===i?"start":"end",h="bottom"===o?8:-8):this.menu.overlapTrigger||(l="top"===o?"bottom":"top",u="top"===s?"bottom":"top"),e.withPositions([{originX:i,originY:l,overlayX:c,overlayY:o,offsetY:h},{originX:r,originY:l,overlayX:d,overlayY:o,offsetY:h},{originX:i,originY:u,overlayX:c,overlayY:s,offsetY:-h},{originX:r,originY:u,overlayX:d,overlayY:s,offsetY:-h}])}},{key:"_menuClosingActions",value:function(){var e=this,t=this._overlayRef.backdropClick(),n=this._overlayRef.detachments();return de(t,this._parentMaterialMenu?this._parentMaterialMenu.closed:fp(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(jm(function(t){return t!==e._menuItemInstance}),jm(function(){return e._menuOpen})):fp(),n)}},{key:"_handleMousedown",value:function(e){Qw(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}},{key:"_handleKeydown",value:function(e){var t=e.keyCode;13!==t&&32!==t||(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}},{key:"_handleClick",value:function(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var e=this;this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(jm(function(t){return t===e._menuItemInstance&&!t.disabled}),xT(0,Hg)).subscribe(function(){e._openedBy="mouse",e.menu instanceof bL&&e.menu._isAnimating?e.menu._animationDone.pipe(Qg(1),xT(0,Hg),Pp(e._parentMaterialMenu._hovered())).subscribe(function(){return e.openMenu()}):e.openMenu()}))}},{key:"_getPortal",value:function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new RO(this.menu.templateRef,this._viewContainerRef)),this._portal}}]),e}()).\u0275fac=function(e){return new(e||hL)(ls(SE),ls(Ol),ls(du),ls(wL),ls(mL,8),ls(vL,10),ls(Iy,8),ls(Jw))},hL.\u0275dir=bt({type:hL,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(e,t){1&e&&ks("mousedown",function(e){return t._handleMousedown(e)})("keydown",function(e){return t._handleKeydown(e)})("click",function(e){return t._handleClick(e)}),2&e&&is("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.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"]}),hL),AL=((dL=function e(){b(this,e)}).\u0275fac=function(e){return new(e||dL)},dL.\u0275mod=yt({type:dL}),dL.\u0275inj=Ne({providers:[CL],imports:[QS]}),dL),OL=((cL=function e(){b(this,e)}).\u0275fac=function(e){return new(e||cL)},cL.\u0275mod=yt({type:cL}),cL.\u0275inj=Ne({providers:[CL],imports:[[Zh,QS,HA,DE,AL],PO,QS,AL]}),cL),EL=["trigger"],TL=["panel"];function PL(e,t){if(1&e&&(ds(0,"span",8),Js(1),hs()),2&e){var n=As();Oa(1),el(n.placeholder)}}function DL(e,t){if(1&e&&(ds(0,"span",12),Js(1),hs()),2&e){var n=As(2);Oa(1),el(n.triggerValue)}}function ML(e,t){1&e&&Ts(0,0,["*ngSwitchCase","true"])}function IL(e,t){1&e&&(ds(0,"span",9),os(1,DL,2,1,"span",10),os(2,ML,1,0,"ng-content",11),hs()),2&e&&(us("ngSwitch",!!As().customTrigger),Oa(2),us("ngSwitchCase",!0))}function RL(e,t){if(1&e){var n=vs();ds(0,"div",13),ds(1,"div",14,15),ks("@transformPanel.done",function(e){return rn(n),As()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return rn(n),As()._handleKeydown(e)}),Ts(3,1),hs(),hs()}if(2&e){var i=As();us("@transformPanelWrap",void 0),Oa(1),rl("mat-select-panel ",i._getPanelTheme(),""),Bs("transform-origin",i._transformOrigin)("font-size",i._triggerFontSize,"px"),us("ngClass",i.panelClass)("@transformPanel",i.multiple?"showing-multiple":"showing"),is("id",i.id+"-panel")("aria-multiselectable",i.multiple)("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby())}}var LL,FL,NL,VL,BL=[[["mat-select-trigger"]],"*"],HL=["mat-select-trigger","*"],zL={transformPanelWrap:uC("transformPanelWrap",[gC("* => void",yC("@transformPanel",[vC()],{optional:!0}))]),transformPanel:uC("transformPanel",[pC("void",fC({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),pC("showing",fC({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),pC("showing-multiple",fC({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),gC("void => *",cC("120ms cubic-bezier(0, 0, 0.2, 1)")),gC("* => void",cC("100ms 25ms linear",fC({opacity:0})))])},GL=0,jL=new _i("mat-select-scroll-strategy"),UL=new _i("MAT_SELECT_CONFIG"),WL={provide:jL,deps:[SE],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},qL=function e(t,n){b(this,e),this.source=t,this.value=n},YL=KS(ZS(XS(JS(function e(t,n,i,r,a){b(this,e),this._elementRef=t,this._defaultErrorStateMatcher=n,this._parentForm=i,this._parentFormGroup=r,this.ngControl=a})))),QL=new _i("MatSelectTrigger"),XL=((NL=function e(){b(this,e)}).\u0275fac=function(e){return new(e||NL)},NL.\u0275dir=bt({type:NL,selectors:[["mat-select-trigger"]],features:[bl([{provide:QL,useExisting:NL}])]}),NL),$L=((FL=function(e){f(n,e);var t=m(n);function n(e,i,r,o,s,l,u,c,d,h,f,p,m,g){var y,_,k,w;return b(this,n),(y=t.call(this,s,o,u,c,h))._viewportRuler=e,y._changeDetectorRef=i,y._ngZone=r,y._dir=l,y._parentFormField=d,y.ngControl=h,y._liveAnnouncer=m,y._defaultOptions=g,y._panelOpen=!1,y._compareWith=function(e,t){return e===t},y._uid="mat-select-"+GL++,y._triggerAriaLabelledBy=null,y._destroy=new j,y._onChange=function(){},y._onTouched=function(){},y._valueId="mat-select-value-"+GL++,y._panelDoneAnimatingStream=new j,y._overlayPanelClass=(null===(_=y._defaultOptions)||void 0===_?void 0:_.overlayPanelClass)||"",y._focused=!1,y.controlType="mat-select",y._required=!1,y._multiple=!1,y._disableOptionCentering=null!==(w=null===(k=y._defaultOptions)||void 0===k?void 0:k.disableOptionCentering)&&void 0!==w&&w,y.ariaLabel="",y.optionSelectionChanges=rO(function(){var e=y.options;return e?e.changes.pipe(Rp(e),xp(function(){return de.apply(void 0,a(e.map(function(e){return e.onSelectionChange})))})):y._ngZone.onStable.pipe(Qg(1),xp(function(){return y.optionSelectionChanges}))}),y.openedChange=new Vu,y._openedStream=y.openedChange.pipe(jm(function(e){return e}),q(function(){})),y._closedStream=y.openedChange.pipe(jm(function(e){return!e}),q(function(){})),y.selectionChange=new Vu,y.valueChange=new Vu,y.ngControl&&(y.ngControl.valueAccessor=v(y)),null!=(null==g?void 0:g.typeaheadDebounceInterval)&&(y._typeaheadDebounceInterval=g.typeaheadDebounceInterval),y._scrollStrategyFactory=p,y._scrollStrategy=y._scrollStrategyFactory(),y.tabIndex=parseInt(f)||0,y.id=y.id,y}return w(n,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(e){this._required=Qv(e),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=Qv(e)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(e){this._disableOptionCentering=Qv(e)}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(e){this._typeaheadDebounceInterval=Xv(e)}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var e=this;this._selectionModel=new xO(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Op(),Pp(this._destroy)).subscribe(function(){return e._panelDoneAnimating(e.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var e=this;this._initKeyManager(),this._selectionModel.changed.pipe(Pp(this._destroy)).subscribe(function(e){e.added.forEach(function(e){return e.select()}),e.removed.forEach(function(e){return e.deselect()})}),this.options.changes.pipe(Rp(null),Pp(this._destroy)).subscribe(function(){e._resetOptions(),e._initializeSelection()})}},{key:"ngDoCheck",value:function(){var e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){var t=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?t.setAttribute("aria-labelledby",e):t.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(e){e.disabled&&this.stateChanges.next(),e.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(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}},{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(e){this.value=e}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetectorRef.markForCheck(),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 e=this._selectionModel.selected.map(function(e){return e.viewValue});return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}},{key:"_handleClosedKeydown",value:function(e){var t=e.keyCode,n=40===t||38===t||37===t||39===t,i=13===t||32===t,r=this._keyManager;if(!r.isTyping()&&i&&!Zk(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){var a=this.selected;r.onKeydown(e);var o=this.selected;o&&a!==o&&this._liveAnnouncer.announce(o.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(e){var t=this._keyManager,n=e.keyCode,i=40===n||38===n,r=t.isTyping();if(i&&e.altKey)e.preventDefault(),this.close();else if(r||13!==n&&32!==n||!t.activeItem||Zk(e))if(!r&&this._multiple&&65===n&&e.ctrlKey){e.preventDefault();var a=this.options.some(function(e){return!e.disabled&&!e.selected});this.options.forEach(function(e){e.disabled||(a?e.select():e.deselect())})}else{var o=t.activeItemIndex;t.onKeydown(e),this._multiple&&i&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==o&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.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 e=this;this.overlayDir.positionChange.pipe(Qg(1)).subscribe(function(){e._changeDetectorRef.detectChanges(),e._positioningSettled()})}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then(function(){e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value),e.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(e){var t=this;if(this._selectionModel.selected.forEach(function(e){return e.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(function(e){return t._selectValue(e)}),this._sortValues();else{var n=this._selectValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(e){var t=this,n=this.options.find(function(n){if(t._selectionModel.isSelected(n))return!1;try{return null!=n.value&&t._compareWith(n.value,e)}catch(i){return!1}});return n&&this._selectionModel.select(n),n}},{key:"_initKeyManager",value:function(){var e=this;this._keyManager=new Mw(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Pp(this._destroy)).subscribe(function(){e.panelOpen&&(!e.multiple&&e._keyManager.activeItem&&e._keyManager.activeItem._selectViaInteraction(),e.focus(),e.close())}),this._keyManager.change.pipe(Pp(this._destroy)).subscribe(function(){e._panelOpen&&e.panel?e._scrollOptionIntoView(e._keyManager.activeItemIndex||0):e._panelOpen||e.multiple||!e._keyManager.activeItem||e._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var e=this,t=de(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Pp(t)).subscribe(function(t){e._onSelect(t.source,t.isUserInput),t.isUserInput&&!e.multiple&&e._panelOpen&&(e.close(),e.focus())}),de.apply(void 0,a(this.options.map(function(e){return e._stateChanges}))).pipe(Pp(t)).subscribe(function(){e._changeDetectorRef.markForCheck(),e.stateChanges.next()})}},{key:"_onSelect",value:function(e,t){var n=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(n!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;if(this.multiple){var t=this.options.toArray();this._selectionModel.sort(function(n,i){return e.sortComparator?e.sortComparator(n,i,t):t.indexOf(n)-t.indexOf(i)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(e){var t;t=this.multiple?this.selected.map(function(e){return e.value}):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_getPanelAriaLabelledby",value:function(){var e;if(this.ariaLabel)return null;var t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var e;if(this.ariaLabel)return null;var t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId(),n=(t?t+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}},{key:"_panelDoneAnimating",value:function(e){this.openedChange.emit(e)}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),n}(YL)).\u0275fac=function(e){return new(e||FL)(ls(TO),ls(Jl),ls(Oc),ls(_A),ls(Ol),ls(Iy,8),ls(Rk,8),ls(qk,8),ls(kT,8),ls($b,10),mi("tabindex"),ls(jL),ls(qw),ls(UL,8))},FL.\u0275dir=bt({type:FL,viewQuery:function(e,t){var n;1&e&&(Ku(EL,1),Ku(TL,1),Ku(TE,1)),2&e&&($u(n=Ju())&&(t.trigger=n.first),$u(n=Ju())&&(t.panel=n.first),$u(n=Ju())&&(t.overlayDir=n.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[jo,It]}),FL),KL=((LL=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments))._scrollTop=0,e._triggerFontSize=0,e._transformOrigin="top",e._offsetY=0,e._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],e}return w(n,[{key:"_calculateOverlayScroll",value:function(e,t,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*e-t+i/2),n)}},{key:"ngOnInit",value:function(){var e=this;h(_(n.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe(Pp(this._destroy)).subscribe(function(){e.panelOpen&&(e._triggerRect=e.trigger.nativeElement.getBoundingClientRect(),e._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var e=this;h(_(n.prototype),"_canOpen",this).call(this)&&(h(_(n.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(Qg(1)).subscribe(function(){e._triggerFontSize&&e.overlayDir.overlayRef&&e.overlayDir.overlayRef.overlayElement&&(e.overlayDir.overlayRef.overlayElement.style.fontSize="".concat(e._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(e){var t=eO(e,this.options,this.optionGroups),n=this._getItemHeight();this.panel.nativeElement.scrollTop=tO((e+t)*n,n,this.panel.nativeElement.scrollTop,256)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(e){this.panelOpen?this._scrollTop=0:(this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),h(_(n.prototype),"_panelDoneAnimating",this).call(this,e)}},{key:"_getChangeEvent",value:function(e){return new qL(this,e)}},{key:"_calculateOverlayOffsetX",value:function(){var e,t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?56:32;if(this.multiple)e=40;else if(this.disableOptionCentering)e=16;else{var a=this._selectionModel.selected[0]||this.options.first;e=a&&a.group?32:16}i||(e*=-1);var o=0-(t.left+e-(i?r:0)),s=t.right+e-n.width+(i?0:r);o>0?e+=o+8:s>0&&(e-=s+8),this.overlayDir.offsetX=Math.round(e),this.overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(e,t,n){var i,r=this._getItemHeight(),a=(r-this._triggerRect.height)/2,o=Math.floor(256/r);return this.disableOptionCentering?0:(i=0===this._scrollTop?e*r:this._scrollTop===n?(e-(this._getItemCount()-o))*r+(r-(this._getItemCount()*r-256)%r):t-r/2,Math.round(-1*i-a))}},{key:"_checkOverlayWithinViewport",value:function(e){var t=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,a=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*t,256)-a-this._triggerRect.height;o>r?this._adjustPanelUp(o,r):a>i?this._adjustPanelDown(a,i,e):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(e,t){var n=Math.round(e-t);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(e,t,n){var i=Math.round(e-t);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:"_calculateOverlayPosition",value:function(){var e,t=this._getItemHeight(),n=this._getItemCount(),i=Math.min(n*t,256),r=n*t-i;e=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),e+=eO(e,this.options,this.optionGroups);var a=i/2;this._scrollTop=this._calculateOverlayScroll(e,a,r),this._offsetY=this._calculateOverlayOffsetY(e,a,r),this._checkOverlayWithinViewport(r)}},{key:"_getOriginBasedOnOption",value:function(){var e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return"50% ".concat(Math.abs(this._offsetY)-t+e/2,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),n}($L)).\u0275fac=function(e){return ZL(e||LL)},LL.\u0275cmp=pt({type:LL,selectors:[["mat-select"]],contentQueries:function(e,t,n){var i;1&e&&(Zu(n,QL,1),Zu(n,JA,1),Zu(n,YA,1)),2&e&&($u(i=Ju())&&(t.customTrigger=i.first),$u(i=Ju())&&(t.options=i),$u(i=Ju())&&(t.optionGroups=i))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&ks("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(is("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),Hs("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[bl([{provide:lT,useExisting:LL},{provide:jA,useExisting:LL}]),jo],ngContentSelectors:HL,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",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,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(Es(BL),ds(0,"div",0,1),ks("click",function(){return t.toggle()}),ds(3,"div",2),os(4,PL,2,1,"span",3),os(5,IL,3,2,"span",4),hs(),ds(6,"div",5),fs(7,"div",6),hs(),hs(),os(8,RL,4,14,"ng-template",7),ks("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){var n=ss(1);is("aria-owns",t.panelOpen?t.id+"-panel":null),Oa(3),us("ngSwitch",t.empty),is("id",t._valueId),Oa(1),us("ngSwitchCase",!0),Oa(1),us("ngSwitchCase",!1),Oa(3),us("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[EE,Dh,Mh,TE,Ih,yh],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;outline:0}.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}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[zL.transformPanelWrap,zL.transformPanel]},changeDetection:0}),LL),ZL=fi(KL),JL=((VL=function e(){b(this,e)}).\u0275fac=function(e){return new(e||VL)},VL.\u0275mod=yt({type:VL}),VL.\u0275inj=Ne({providers:[WL],imports:[[Zh,DE,iO,QS],PO,CT,iO,QS]}),VL),eF=function(e){f(n,e);var t=m(n);function n(){return b(this,n),t.apply(this,arguments)}return w(n,[{key:"notifyNext",value:function(e,t,n,i,r){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}]),n}(P),tF=function(e){f(n,e);var t=m(n);function n(e,i,r){var a;return b(this,n),(a=t.call(this)).parent=e,a.outerValue=i,a.outerIndex=r,a.index=0,a}return w(n,[{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()}}]),n}(P);function nF(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new tF(e,n,i);if(!r.closed)return t instanceof N?t.subscribe(r):J(t)(r)}var iF={};function rF(){for(var e=arguments.length,t=new Array(e),n=0;n visible",cC("200ms cubic-bezier(0, 0, 0.2, 1)",mC([fC({opacity:0,transform:"scale(0)",offset:0}),fC({opacity:.5,transform:"scale(0.99)",offset:.5}),fC({opacity:1,transform:"scale(1)",offset:1})]))),gC("* => hidden",cC("100ms cubic-bezier(0, 0, 0.2, 1)",fC({opacity:0})))])},_F=cw({passive:!0}),bF=new _i("mat-tooltip-scroll-strategy"),kF={provide:bF,deps:[SE],useFactory:function(e){return function(){return e.scrollStrategies.reposition({scrollThrottle:20})}}},wF=new _i("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),CF=((vF=function(){function e(t,n,i,r,a,o,s,l,u,c,d,h){var f=this;b(this,e),this._overlay=t,this._elementRef=n,this._scrollDispatcher=i,this._viewContainerRef=r,this._ngZone=a,this._platform=o,this._ariaDescriber=s,this._focusMonitor=l,this._dir=c,this._defaultOptions=d,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new j,this._handleKeydown=function(e){f._isTooltipVisible()&&27===e.keyCode&&!Zk(e)&&(e.preventDefault(),e.stopPropagation(),f._ngZone.run(function(){return f.hide(0)}))},this._scrollStrategy=u,d&&(d.position&&(this.position=d.position),d.touchGestures&&(this.touchGestures=d.touchGestures)),a.runOutsideAngular(function(){n.nativeElement.addEventListener("keydown",f._handleKeydown)})}return w(e,[{key:"position",get:function(){return this._position},set:function(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=Qv(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(e){var t=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){t._ariaDescriber.describe(t._elementRef.nativeElement,t.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var e=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Pp(this._destroyed)).subscribe(function(t){t?"keyboard"===t&&e._ngZone.run(function(){return e.show()}):e._ngZone.run(function(){return e.hide(0)})})}},{key:"ngOnDestroy",value:function(){var e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),e.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(t){var i=n(t,2),r=i[0],a=i[1];e.removeEventListener(r,a,_F)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}},{key:"show",value:function(){var e=this,t=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 IO(xF,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Pp(this._destroyed)).subscribe(function(){return e._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(e)}},{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 e=this;if(this._overlayRef)return this._overlayRef;var t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return n.positionChanges.pipe(Pp(this._destroyed)).subscribe(function(t){e._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&e._tooltipInstance.isVisible()&&e._ngZone.run(function(){return e.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(Pp(this._destroyed)).subscribe(function(){return e._detach()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(){var e=this._overlayRef.getConfig().positionStrategy,t=this._getOrigin(),n=this._getOverlayPosition();e.withPositions([Object.assign(Object.assign({},t.main),n.main),Object.assign(Object.assign({},t.fallback),n.fallback)])}},{key:"_getOrigin",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n||"below"==n?e={originX:"center",originY:"above"==n?"top":"bottom"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={originX:"start",originY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={originX:"end",originY:"center"});var i=this._invertPosition(e.originX,e.originY);return{main:e,fallback:{originX:i.x,originY:i.y}}}},{key:"_getOverlayPosition",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n?e={overlayX:"center",overlayY:"bottom"}:"below"==n?e={overlayX:"center",overlayY:"top"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={overlayX:"end",overlayY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={overlayX:"start",overlayY:"center"});var i=this._invertPosition(e.overlayX,e.overlayY);return{main:e,fallback:{overlayX:i.x,overlayY:i.y}}}},{key:"_updateTooltipMessage",value:function(){var e=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Qg(1),Pp(this._destroyed)).subscribe(function(){e._tooltipInstance&&e._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var e=this;!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){e._setupPointerExitEventsIfNeeded(),e.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){e._setupPointerExitEventsIfNeeded(),clearTimeout(e._touchstartTimeout),e._touchstartTimeout=setTimeout(function(){return e.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var e,t=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var n=[];if(this._platformSupportsMouseEvents())n.push(["mouseleave",function(){return t.hide()}],["wheel",function(e){return t._wheelListener(e)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var i=function(){clearTimeout(t._touchstartTimeout),t.hide(t._defaultOptions.touchendHideDelay)};n.push(["touchend",i],["touchcancel",i])}this._addListeners(n),(e=this._passiveListeners).push.apply(e,n)}}},{key:"_addListeners",value:function(e){var t=this;e.forEach(function(e){var i=n(e,2),r=i[0],a=i[1];t._elementRef.nativeElement.addEventListener(r,a,_F)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(e){if(this._isTooltipVisible()){var t=(this._document||document).elementFromPoint(e.clientX,e.clientY),n=this._elementRef.nativeElement;t===n||n.contains(t)||this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var e=this.touchGestures;if("off"!==e){var t=this._elementRef.nativeElement,n=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==e&&t.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}]),e}()).\u0275fac=function(e){return new(e||vF)(ls(SE),ls(Ol),ls(OO),ls(du),ls(Oc),ls(ow),ls(Ow),ls(Jw),ls(bF),ls(Iy,8),ls(wF,8),ls(sd))},vF.\u0275dir=bt({type:vF,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),vF),xF=((gF=function(){function e(t,n){b(this,e),this._changeDetectorRef=t,this._breakpointObserver=n,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new j,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}return w(e,[{key:"show",value:function(e){var t=this;this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){t._visibility="visible",t._showTimeoutId=null,t._markForCheck()},e)}},{key:"hide",value:function(e){var t=this;this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(function(){t._visibility="hidden",t._hideTimeoutId=null,t._markForCheck()},e)}},{key:"afterHidden",value:function(){return this._onHide}},{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(e){var t=e.toState;"hidden"!==t||this.isVisible()||this._onHide.next(),"visible"!==t&&"hidden"!==t||(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),e}()).\u0275fac=function(e){return new(e||gF)(ls(Jl),ls(fF))},gF.\u0275cmp=pt({type:gF,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&ks("click",function(){return t._handleBodyInteraction()},!1,Br)("auxclick",function(){return t._handleBodyInteraction()},!1,Br),2&e&&Bs("zoom","visible"===t._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){var n;(1&e&&(ds(0,"div",0),ks("@state.start",function(){return t._animationStart()})("@state.done",function(e){return t._animationDone(e)}),Iu(1,"async"),Js(2),hs()),2&e)&&(Hs("mat-tooltip-handset",null==(n=Ru(1,5,t._isHandset))?null:n.matches),us("ngClass",t.tooltipClass)("@state",t._visibility),Oa(2),el(t.message))},directives:[yh],pipes:[qh],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:[yF.tooltipState]},changeDetection:0}),gF),SF=((mF=function e(){b(this,e)}).\u0275fac=function(e){return new(e||mF)},mF.\u0275mod=yt({type:mF}),mF.\u0275inj=Ne({providers:[kF],imports:[[oC,Zh,DE,QS],QS,PO]}),mF);function AF(e,t){if(1&e&&(ds(0,"mat-option",19),Js(1),hs()),2&e){var n=t.$implicit;us("value",n),Oa(1),tl(" ",n," ")}}function OF(e,t){if(1&e){var n=vs();ds(0,"mat-form-field",16),ds(1,"mat-select",17),ks("selectionChange",function(e){return rn(n),As(2)._changePageSize(e.value)}),os(2,AF,2,2,"mat-option",18),hs(),hs()}if(2&e){var i=As(2);us("appearance",i._formFieldAppearance)("color",i.color),Oa(1),us("value",i.pageSize)("disabled",i.disabled)("aria-label",i._intl.itemsPerPageLabel),Oa(1),us("ngForOf",i._displayedPageSizeOptions)}}function EF(e,t){if(1&e&&(ds(0,"div",20),Js(1),hs()),2&e){var n=As(2);Oa(1),el(n.pageSize)}}function TF(e,t){if(1&e&&(ds(0,"div",12),ds(1,"div",13),Js(2),hs(),os(3,OF,3,6,"mat-form-field",14),os(4,EF,2,1,"div",15),hs()),2&e){var n=As();Oa(2),tl(" ",n._intl.itemsPerPageLabel," "),Oa(1),us("ngIf",n._displayedPageSizeOptions.length>1),Oa(1),us("ngIf",n._displayedPageSizeOptions.length<=1)}}function PF(e,t){if(1&e){var n=vs();ds(0,"button",21),ks("click",function(){return rn(n),As().firstPage()}),Dn(),ds(1,"svg",7),fs(2,"path",22),hs(),hs()}if(2&e){var i=As();us("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),is("aria-label",i._intl.firstPageLabel)}}function DF(e,t){if(1&e){var n=vs();Dn(),Mn(),ds(0,"button",23),ks("click",function(){return rn(n),As().lastPage()}),Dn(),ds(1,"svg",7),fs(2,"path",24),hs(),hs()}if(2&e){var i=As();us("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),is("aria-label",i._intl.lastPageLabel)}}var MF,IF,RF,LF,FF,NF=((MF=function e(){b(this,e),this.changes=new j,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(e,t,n){if(0==n||0==t)return"0 of ".concat(n);var i=e*t;return"".concat(i+1," \u2013 ").concat(i<(n=Math.max(n,0))?Math.min(i+t,n):i+t," of ").concat(n)}}).\u0275fac=function(e){return new(e||MF)},MF.\u0275prov=Le({factory:function(){return new MF},token:MF,providedIn:"root"}),MF),VF={provide:NF,deps:[[new Ui,new Wi,NF]],useFactory:function(e){return e||new NF}},BF=new _i("MAT_PAGINATOR_DEFAULT_OPTIONS"),HF=XS(eA(function e(){b(this,e)})),zF=((LF=function(e){f(n,e);var t=m(n);function n(e,i,r){var a;if(b(this,n),(a=t.call(this))._intl=e,a._changeDetectorRef=i,a._pageIndex=0,a._length=0,a._pageSizeOptions=[],a._hidePageSize=!1,a._showFirstLastButtons=!1,a.page=new Vu,a._intlChanges=e.changes.subscribe(function(){return a._changeDetectorRef.markForCheck()}),r){var o=r.pageSize,s=r.pageSizeOptions,l=r.hidePageSize,u=r.showFirstLastButtons;null!=o&&(a._pageSize=o),null!=s&&(a._pageSizeOptions=s),null!=l&&(a._hidePageSize=l),null!=u&&(a._showFirstLastButtons=u)}return g(a)}return w(n,[{key:"pageIndex",get:function(){return this._pageIndex},set:function(e){this._pageIndex=Math.max(Xv(e),0),this._changeDetectorRef.markForCheck()}},{key:"length",get:function(){return this._length},set:function(e){this._length=Xv(e),this._changeDetectorRef.markForCheck()}},{key:"pageSize",get:function(){return this._pageSize},set:function(e){this._pageSize=Math.max(Xv(e),0),this._updateDisplayedPageSizeOptions()}},{key:"pageSizeOptions",get:function(){return this._pageSizeOptions},set:function(e){this._pageSizeOptions=(e||[]).map(function(e){return Xv(e)}),this._updateDisplayedPageSizeOptions()}},{key:"hidePageSize",get:function(){return this._hidePageSize},set:function(e){this._hidePageSize=Qv(e)}},{key:"showFirstLastButtons",get:function(){return this._showFirstLastButtons},set:function(e){this._showFirstLastButtons=Qv(e)}},{key:"ngOnInit",value:function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe()}},{key:"nextPage",value:function(){if(this.hasNextPage()){var e=this.pageIndex;this.pageIndex++,this._emitPageEvent(e)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var e=this.pageIndex;this.pageIndex--,this._emitPageEvent(e)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var e=this.getNumberOfPages()-1;return this.pageIndex1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;return Math.max(t,Math.min(n,e))}var $F,KF=(($F=function e(){b(this,e)}).\u0275fac=function(e){return new(e||$F)},$F.\u0275mod=yt({type:$F}),$F.\u0275inj=Ne({imports:[[Zh,QS],QS]}),$F);function ZF(e,t){if(1&e&&(Dn(),fs(0,"circle",3)),2&e){var n=As();Bs("animation-name","mat-progress-spinner-stroke-rotate-"+n._spinnerAnimationLabel)("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),is("r",n._getCircleRadius())}}function JF(e,t){if(1&e&&(Dn(),fs(0,"circle",3)),2&e){var n=As();Bs("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),is("r",n._getCircleRadius())}}function eN(e,t){if(1&e&&(Dn(),fs(0,"circle",3)),2&e){var n=As();Bs("animation-name","mat-progress-spinner-stroke-rotate-"+n._spinnerAnimationLabel)("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),is("r",n._getCircleRadius())}}function tN(e,t){if(1&e&&(Dn(),fs(0,"circle",3)),2&e){var n=As();Bs("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),is("r",n._getCircleRadius())}}var nN,iN,rN,aN,oN,sN,lN,uN,cN=".mat-progress-spinner{display:block;position:relative;overflow:hidden}.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}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{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] svg{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] svg{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",dN=$S(function e(t){b(this,e),this._elementRef=t},"primary"),hN=new _i("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),fN=((rN=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o){var s;b(this,n),(s=t.call(this,e))._elementRef=e,s._document=r,s._diameter=100,s._value=0,s._fallbackAnimation=!1,s.mode="determinate";var l=n._diameters;return s._spinnerAnimationLabel=s._getSpinnerAnimationLabel(),l.has(r.head)||l.set(r.head,new Set([100])),s._fallbackAnimation=i.EDGE||i.TRIDENT,s._noopAnimations="NoopAnimations"===a&&!!o&&!o._forceAnimations,o&&(o.diameter&&(s.diameter=o.diameter),o.strokeWidth&&(s.strokeWidth=o.strokeWidth)),s}return w(n,[{key:"diameter",get:function(){return this._diameter},set:function(e){this._diameter=Xv(e),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(e){this._strokeWidth=Xv(e)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(e){this._value=Math.max(0,Math.min(100,Xv(e)))}},{key:"ngOnInit",value:function(){var e=this._elementRef.nativeElement;this._styleRoot=fw(e)||this._document.head,this._attachStyleNode(),e.classList.add("mat-progress-spinner-indeterminate".concat(this._fallbackAnimation?"-fallback":"","-animation"))}},{key:"_getCircleRadius",value:function(){return(this.diameter-10)/2}},{key:"_getViewBox",value:function(){var e=2*this._getCircleRadius()+this.strokeWidth;return"0 0 ".concat(e," ").concat(e)}},{key:"_getStrokeCircumference",value:function(){return 2*Math.PI*this._getCircleRadius()}},{key:"_getStrokeDashOffset",value:function(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}},{key:"_getCircleStrokeWidth",value:function(){return this.strokeWidth/this.diameter*100}},{key:"_attachStyleNode",value:function(){var e=this._styleRoot,t=this._diameter,i=n._diameters,r=i.get(e);if(!r||!r.has(t)){var a=this._document.createElement("style");a.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),a.textContent=this._getAnimationText(),e.appendChild(a),r||(r=new Set,i.set(e,r)),r.add(t)}}},{key:"_getAnimationText",value:function(){var e=this._getStrokeCircumference();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*e).replace(/END_VALUE/g,""+.2*e).replace(/DIAMETER/g,"".concat(this._spinnerAnimationLabel))}},{key:"_getSpinnerAnimationLabel",value:function(){return this.diameter.toString().replace(".","_")}}]),n}(dN)).\u0275fac=function(e){return new(e||rN)(ls(Ol),ls(ow),ls(sd,8),ls(LS,8),ls(hN))},rN.\u0275cmp=pt({type:rN,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(e,t){2&e&&(is("aria-valuemin","determinate"===t.mode?0:null)("aria-valuemax","determinate"===t.mode?100:null)("aria-valuenow","determinate"===t.mode?t.value:null)("mode",t.mode),Bs("width",t.diameter,"px")("height",t.diameter,"px"),Hs("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[jo],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",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(e,t){1&e&&(Dn(),ds(0,"svg",0),os(1,ZF,1,9,"circle",1),os(2,JF,1,7,"circle",2),hs()),2&e&&(Bs("width",t.diameter,"px")("height",t.diameter,"px"),us("ngSwitch","indeterminate"===t.mode),is("viewBox",t._getViewBox()),Oa(1),us("ngSwitchCase",!0),Oa(1),us("ngSwitchCase",!1))},directives:[Dh,Mh],styles:[cN],encapsulation:2,changeDetection:0}),rN._diameters=new WeakMap,rN),pN=((iN=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o){var s;return b(this,n),(s=t.call(this,e,i,r,a,o)).mode="indeterminate",s}return n}(fN)).\u0275fac=function(e){return new(e||iN)(ls(Ol),ls(ow),ls(sd,8),ls(LS,8),ls(hN))},iN.\u0275cmp=pt({type:iN,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,t){2&e&&(Bs("width",t.diameter,"px")("height",t.diameter,"px"),Hs("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color"},features:[jo],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",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(e,t){1&e&&(Dn(),ds(0,"svg",0),os(1,eN,1,9,"circle",1),os(2,tN,1,7,"circle",2),hs()),2&e&&(Bs("width",t.diameter,"px")("height",t.diameter,"px"),us("ngSwitch","indeterminate"===t.mode),is("viewBox",t._getViewBox()),Oa(1),us("ngSwitchCase",!0),Oa(1),us("ngSwitchCase",!1))},directives:[Dh,Mh],styles:[cN],encapsulation:2,changeDetection:0}),iN),mN=((nN=function e(){b(this,e)}).\u0275fac=function(e){return new(e||nN)},nN.\u0275mod=yt({type:nN}),nN.\u0275inj=Ne({imports:[[QS,Zh],QS]}),nN),gN=["input"],vN=function(){return{enterDuration:150}},yN=["*"],_N=new _i("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}}),bN=0,kN={provide:_b,useExisting:Ee(function(){return SN}),multi:!0},wN=function e(t,n){b(this,e),this.source=t,this.value=n},CN=new _i("MatRadioGroup"),xN=((oN=function(){function e(t){b(this,e),this._changeDetector=t,this._value=null,this._name="mat-radio-group-"+bN++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=function(){},this.onTouched=function(){},this.change=new Vu}return w(e,[{key:"name",get:function(){return this._name},set:function(e){this._name=e,this._updateRadioButtonNames()}},{key:"labelPosition",get:function(){return this._labelPosition},set:function(e){this._labelPosition="before"===e?"before":"after",this._markRadiosForCheck()}},{key:"value",get:function(){return this._value},set:function(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}},{key:"_checkSelectedRadioButton",value:function(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}},{key:"selected",get:function(){return this._selected},set:function(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=Qv(e),this._markRadiosForCheck()}},{key:"required",get:function(){return this._required},set:function(e){this._required=Qv(e),this._markRadiosForCheck()}},{key:"ngAfterContentInit",value:function(){this._isInitialized=!0}},{key:"_touch",value:function(){this.onTouched&&this.onTouched()}},{key:"_updateRadioButtonNames",value:function(){var e=this;this._radios&&this._radios.forEach(function(t){t.name=e.name,t._markForCheck()})}},{key:"_updateSelectedRadioFromValue",value:function(){var e=this;this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(function(t){t.checked=e.value===t.value,t.checked&&(e._selected=t)}))}},{key:"_emitChangeEvent",value:function(){this._isInitialized&&this.change.emit(new wN(this._selected,this._value))}},{key:"_markRadiosForCheck",value:function(){this._radios&&this._radios.forEach(function(e){return e._markForCheck()})}},{key:"writeValue",value:function(e){this.value=e,this._changeDetector.markForCheck()}},{key:"registerOnChange",value:function(e){this._controlValueAccessorChangeFn=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetector.markForCheck()}}]),e}()).\u0275fac=function(e){return new(e||oN)(ls(Jl))},oN.\u0275dir=bt({type:oN,inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"}}),oN),SN=((aN=function(e){f(n,e);var t=m(n);function n(){return b(this,n),t.apply(this,arguments)}return n}(xN)).\u0275fac=function(e){return AN(e||aN)},aN.\u0275dir=bt({type:aN,selectors:[["mat-radio-group"]],contentQueries:function(e,t,n){var i;1&e&&Zu(n,TN,1),2&e&&$u(i=Ju())&&(t._radios=i)},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[bl([kN,{provide:CN,useExisting:aN}]),jo]}),aN),AN=fi(SN),ON=KS(ZS(function e(t){b(this,e),this._elementRef=t})),EN=((uN=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o,s,l,u){var c;return b(this,n),(c=t.call(this,i))._changeDetector=r,c._focusMonitor=a,c._radioDispatcher=o,c._animationMode=s,c._providerOverride=l,c._uniqueId="mat-radio-"+ ++bN,c.id=c._uniqueId,c.change=new Vu,c._checked=!1,c._value=null,c._removeUniqueSelectionListener=function(){},c.radioGroup=e,u&&(c.tabIndex=Xv(u,0)),c._removeUniqueSelectionListener=o.listen(function(e,t){e!==c.id&&t===c.name&&(c.checked=!1)}),c}return w(n,[{key:"checked",get:function(){return this._checked},set:function(e){var t=Qv(e);this._checked!==t&&(this._checked=t,t&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!t&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),t&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}},{key:"value",get:function(){return this._value},set:function(e){this._value!==e&&(this._value=e,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}},{key:"labelPosition",get:function(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"},set:function(e){this._labelPosition=e}},{key:"disabled",get:function(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled},set:function(e){this._setDisabled(Qv(e))}},{key:"required",get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(e){this._required=Qv(e)}},{key:"color",get:function(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"},set:function(e){this._color=e}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"focus",value:function(e,t){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}},{key:"_markForCheck",value:function(){this._changeDetector.markForCheck()}},{key:"ngOnInit",value:function(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(t){!t&&e.radioGroup&&e.radioGroup._touch()})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}},{key:"_emitChangeEvent",value:function(){this.change.emit(new wN(this,this._value))}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onInputClick",value:function(e){e.stopPropagation()}},{key:"_onInputChange",value:function(e){e.stopPropagation();var t=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),t&&this.radioGroup._emitChangeEvent())}},{key:"_setDisabled",value:function(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}}]),n}(ON)).\u0275fac=function(e){return new(e||uN)(ls(xN),ls(Ol),ls(Jl),ls(Jw),ls(SO),ls(String),ls(void 0),ls(String))},uN.\u0275dir=bt({type:uN,viewQuery:function(e,t){var n;1&e&&Ku(gN,1),2&e&&$u(n=Ju())&&(t._inputElement=n.first)},inputs:{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"},features:[jo]}),uN),TN=((lN=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o,s,l,u){return b(this,n),t.call(this,e,i,r,a,o,s,l,u)}return n}(EN)).\u0275fac=function(e){return new(e||lN)(ls(CN,8),ls(Ol),ls(Jl),ls(Jw),ls(SO),ls(LS,8),ls(_N,8),mi("tabindex"))},lN.\u0275cmp=pt({type:lN,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(e,t){1&e&&ks("focus",function(){return t._inputElement.nativeElement.focus()}),2&e&&(is("tabindex",null)("id",t.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),Hs("mat-radio-checked",t.checked)("mat-radio-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-primary","primary"===t.color)("mat-accent","accent"===t.color)("mat-warn","warn"===t.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[jo],ngContentSelectors:yN,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(e,t){if(1&e&&(Es(),ds(0,"label",0,1),ds(2,"span",2),fs(3,"span",3),fs(4,"span",4),ds(5,"input",5,6),ks("change",function(e){return t._onInputChange(e)})("click",function(e){return t._onInputClick(e)}),hs(),ds(7,"span",7),fs(8,"span",8),hs(),hs(),ds(9,"span",9),ds(10,"span",10),Js(11,"\xa0"),hs(),Ts(12),hs(),hs()),2&e){var n=ss(1);is("for",t.inputId),Oa(5),us("id",t.inputId)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex)("required",t.required),is("name",t.name)("value",t.value)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-describedby",t.ariaDescribedby),Oa(2),us("matRippleTrigger",n)("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",Su(18,vN)),Oa(2),Hs("mat-radio-label-before","before"==t.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;display:block;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;display:block;height:20px;left:0;position:absolute;top:0;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}._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}),lN),PN=((sN=function e(){b(this,e)}).\u0275fac=function(e){return new(e||sN)},sN.\u0275mod=yt({type:sN}),sN.\u0275inj=Ne({imports:[[HA,QS],QS]}),sN);function DN(e){return function(t){return t.lift(new MN(e))}}var MN=function(){function e(t){b(this,e),this.value=t}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new IN(e,this.value))}}]),e}(),IN=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this,e)).value=i,r}return w(n,[{key:"_next",value:function(e){this.destination.next(this.value)}}]),n}(P),RN=["*"];function LN(e,t){if(1&e){var n=vs();ds(0,"div",2),ks("click",function(){return rn(n),As()._onBackdropClicked()}),hs()}2&e&&Hs("mat-drawer-shown",As()._isShowingBackdrop())}function FN(e,t){1&e&&(ds(0,"mat-drawer-content"),Ts(1,2),hs())}var NN,VN,BN,HN,zN,GN,jN=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],UN=["mat-drawer","mat-drawer-content","*"],WN={transformDrawer:uC("transform",[pC("open, open-instant",fC({transform:"none",visibility:"visible"})),pC("void",fC({"box-shadow":"none",visibility:"hidden"})),gC("void => open-instant",cC("0ms")),gC("void <=> open, open-instant => void",cC("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},qN=new _i("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),YN=new _i("MAT_DRAWER_CONTAINER"),QN=((GN=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o){var s;return b(this,n),(s=t.call(this,r,a,o))._changeDetectorRef=e,s._container=i,s}return w(n,[{key:"ngAfterContentInit",value:function(){var e=this;this._container._contentMarginChanges.subscribe(function(){e._changeDetectorRef.markForCheck()})}}]),n}(EO)).\u0275fac=function(e){return new(e||GN)(ls(Jl),ls(Ee(function(){return $N})),ls(Ol),ls(OO),ls(Oc))},GN.\u0275cmp=pt({type:GN,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,t){2&e&&Bs("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[jo],ngContentSelectors:RN,decls:1,vars:0,template:function(e,t){1&e&&(Es(),Ts(0))},encapsulation:2,changeDetection:0}),GN),XN=((zN=function(){function e(t,n,i,r,a,o,s){var l=this;b(this,e),this._elementRef=t,this._focusTrapFactory=n,this._focusMonitor=i,this._platform=r,this._ngZone=a,this._doc=o,this._container=s,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new j,this._animationEnd=new j,this._animationState="void",this.openedChange=new Vu(!0),this._openedStream=this.openedChange.pipe(jm(function(e){return e}),q(function(){})),this.openedStart=this._animationStarted.pipe(jm(function(e){return e.fromState!==e.toState&&0===e.toState.indexOf("open")}),DN(void 0)),this._closedStream=this.openedChange.pipe(jm(function(e){return!e}),q(function(){})),this.closedStart=this._animationStarted.pipe(jm(function(e){return e.fromState!==e.toState&&"void"===e.toState}),DN(void 0)),this._destroyed=new j,this.onPositionChanged=new Vu,this._modeChanged=new j,this.openedChange.subscribe(function(e){e?(l._doc&&(l._elementFocusedBeforeDrawerWasOpened=l._doc.activeElement),l._takeFocus()):l._isFocusWithinDrawer()&&l._restoreFocus()}),this._ngZone.runOutsideAngular(function(){zg(l._elementRef.nativeElement,"keydown").pipe(jm(function(e){return 27===e.keyCode&&!l.disableClose&&!Zk(e)}),Pp(l._destroyed)).subscribe(function(e){return l._ngZone.run(function(){l.close(),e.stopPropagation(),e.preventDefault()})})}),this._animationEnd.pipe(Op(function(e,t){return e.fromState===t.fromState&&e.toState===t.toState})).subscribe(function(e){var t=e.fromState,n=e.toState;(0===n.indexOf("open")&&"void"===t||"void"===n&&0===t.indexOf("open"))&&l.openedChange.emit(l._opened)})}return w(e,[{key:"position",get:function(){return this._position},set:function(e){(e="end"===e?"end":"start")!=this._position&&(this._position=e,this.onPositionChanged.emit())}},{key:"mode",get:function(){return this._mode},set:function(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}},{key:"disableClose",get:function(){return this._disableClose},set:function(e){this._disableClose=Qv(e)}},{key:"autoFocus",get:function(){var e=this._autoFocus;return null==e?"side"!==this.mode:e},set:function(e){this._autoFocus=Qv(e)}},{key:"opened",get:function(){return this._opened},set:function(e){this.toggle(Qv(e))}},{key:"_takeFocus",value:function(){var e=this;this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(function(t){t||"function"!=typeof e._elementRef.nativeElement.focus||e._elementRef.nativeElement.focus()})}},{key:"_restoreFocus",value:function(){this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null)}},{key:"_isFocusWithinDrawer",value:function(){var e,t=null===(e=this._doc)||void 0===e?void 0:e.activeElement;return!!t&&this._elementRef.nativeElement.contains(t)}},{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(e){return this.toggle(!0,e)}},{key:"close",value:function(){return this.toggle(!1)}},{key:"_closeViaBackdropClick",value:function(){return this._setOpen(!1,!0)}},{key:"toggle",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.opened,t=arguments.length>1?arguments[1]:void 0;return this._setOpen(e,!e&&this._isFocusWithinDrawer(),t)}},{key:"_setOpen",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"program";return this._opened=e,e?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=i):(this._animationState="void",t&&this._restoreFocus()),this._updateFocusTrapState(),new Promise(function(e){n.openedChange.pipe(Qg(1)).subscribe(function(t){return e(t?"open":"close")})})}},{key:"_getWidth",value:function(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}},{key:"_updateFocusTrapState",value:function(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}},{key:"_animationStartListener",value:function(e){this._animationStarted.next(e)}},{key:"_animationDoneListener",value:function(e){this._animationEnd.next(e)}}]),e}()).\u0275fac=function(e){return new(e||zN)(ls(Ol),ls(Hw),ls(Jw),ls(ow),ls(Oc),ls(sd,8),ls(YN,8))},zN.\u0275cmp=pt({type:zN,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,t){1&e&&ws("@transform.start",function(e){return t._animationStartListener(e)})("@transform.done",function(e){return t._animationDoneListener(e)}),2&e&&(is("align",null),ol("@transform",t._animationState),Hs("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:RN,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(e,t){1&e&&(Es(),ds(0,"div",0),Ts(1),hs())},encapsulation:2,data:{animation:[WN.transformDrawer]},changeDetection:0}),zN),$N=((HN=function(){function e(t,n,i,r,a){var o=this,s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6?arguments[6]:void 0;b(this,e),this._dir=t,this._element=n,this._ngZone=i,this._changeDetectorRef=r,this._animationMode=l,this._drawers=new Hu,this.backdropClick=new Vu,this._destroyed=new j,this._doCheckSubject=new j,this._contentMargins={left:null,right:null},this._contentMarginChanges=new j,t&&t.change.pipe(Pp(this._destroyed)).subscribe(function(){o._validateDrawers(),o.updateContentMargins()}),a.change().pipe(Pp(this._destroyed)).subscribe(function(){return o.updateContentMargins()}),this._autosize=s}return w(e,[{key:"start",get:function(){return this._start}},{key:"end",get:function(){return this._end}},{key:"autosize",get:function(){return this._autosize},set:function(e){this._autosize=Qv(e)}},{key:"hasBackdrop",get:function(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride},set:function(e){this._backdropOverride=null==e?null:Qv(e)}},{key:"scrollable",get:function(){return this._userContent||this._content}},{key:"ngAfterContentInit",value:function(){var e=this;this._allDrawers.changes.pipe(Rp(this._allDrawers),Pp(this._destroyed)).subscribe(function(t){e._drawers.reset(t.filter(function(t){return!t._container||t._container===e})),e._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Rp(null)).subscribe(function(){e._validateDrawers(),e._drawers.forEach(function(t){e._watchDrawerToggle(t),e._watchDrawerPosition(t),e._watchDrawerMode(t)}),(!e._drawers.length||e._isDrawerOpen(e._start)||e._isDrawerOpen(e._end))&&e.updateContentMargins(),e._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){e._doCheckSubject.pipe(jg(10),Pp(e._destroyed)).subscribe(function(){return e.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(e){return e.open()})}},{key:"close",value:function(){this._drawers.forEach(function(e){return e.close()})}},{key:"updateContentMargins",value:function(){var e=this,t=0,n=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._getWidth();else if("push"==this._left.mode){var i=this._left._getWidth();t+=i,n-=i}if(this._right&&this._right.opened)if("side"==this._right.mode)n+=this._right._getWidth();else if("push"==this._right.mode){var r=this._right._getWidth();n+=r,t-=r}n=n||null,(t=t||null)===this._contentMargins.left&&n===this._contentMargins.right||(this._contentMargins={left:t,right:n},this._ngZone.run(function(){return e._contentMarginChanges.next(e._contentMargins)}))}},{key:"ngDoCheck",value:function(){var e=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(function(){return e._doCheckSubject.next()})}},{key:"_watchDrawerToggle",value:function(e){var t=this;e._animationStarted.pipe(jm(function(e){return e.fromState!==e.toState}),Pp(this._drawers.changes)).subscribe(function(e){"open-instant"!==e.toState&&"NoopAnimations"!==t._animationMode&&t._element.nativeElement.classList.add("mat-drawer-transition"),t.updateContentMargins(),t._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(Pp(this._drawers.changes)).subscribe(function(){return t._setContainerClass(e.opened)})}},{key:"_watchDrawerPosition",value:function(e){var t=this;e&&e.onPositionChanged.pipe(Pp(this._drawers.changes)).subscribe(function(){t._ngZone.onMicrotaskEmpty.pipe(Qg(1)).subscribe(function(){t._validateDrawers()})})}},{key:"_watchDrawerMode",value:function(e){var t=this;e&&e._modeChanged.pipe(Pp(de(this._drawers.changes,this._destroyed))).subscribe(function(){t.updateContentMargins(),t._changeDetectorRef.markForCheck()})}},{key:"_setContainerClass",value:function(e){var t=this._element.nativeElement.classList,n="mat-drawer-container-has-open";e?t.add(n):t.remove(n)}},{key:"_validateDrawers",value:function(){var e=this;this._start=this._end=null,this._drawers.forEach(function(t){"end"==t.position?e._end=t:e._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)}},{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._closeModalDrawersViaBackdrop()}},{key:"_closeModalDrawersViaBackdrop",value:function(){var e=this;[this._start,this._end].filter(function(t){return t&&!t.disableClose&&e._canHaveBackdrop(t)}).forEach(function(e){return e._closeViaBackdropClick()})}},{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(e){return"side"!==e.mode||!!this._backdropOverride}},{key:"_isDrawerOpen",value:function(e){return null!=e&&e.opened}}]),e}()).\u0275fac=function(e){return new(e||HN)(ls(Iy,8),ls(Ol),ls(Oc),ls(Jl),ls(TO),ls(qN),ls(LS,8))},HN.\u0275cmp=pt({type:HN,selectors:[["mat-drawer-container"]],contentQueries:function(e,t,n){var i;1&e&&(Zu(n,QN,1),Zu(n,XN,1)),2&e&&($u(i=Ju())&&(t._content=i.first),$u(i=Ju())&&(t._allDrawers=i))},viewQuery:function(e,t){var n;1&e&&Ku(QN,1),2&e&&$u(n=Ju())&&(t._userContent=n.first)},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,t){2&e&&Hs("mat-drawer-container-explicit-backdrop",t._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[bl([{provide:YN,useExisting:HN}])],ngContentSelectors:UN,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(e,t){1&e&&(Es(jN),os(0,LN,1,2,"div",0),Ts(1),Ts(2,1),os(3,FN,2,0,"mat-drawer-content",1)),2&e&&(us("ngIf",t.hasBackdrop),Oa(3),us("ngIf",!t._content))},directives:[wh,QN],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}),HN),KN=((BN=function e(){b(this,e)}).\u0275fac=function(e){return new(e||BN)},BN.\u0275mod=yt({type:BN}),BN.\u0275inj=Ne({imports:[[Zh,QS,sw,PO],PO,QS]}),BN),ZN=((VN=function e(){b(this,e)}).\u0275fac=function(e){return new(e||VN)},VN.\u0275mod=yt({type:VN}),VN.\u0275inj=Ne({}),VN),JN=((NN=function e(){b(this,e)}).\u0275fac=function(e){return new(e||NN)},NN.\u0275mod=yt({type:NN}),NN.\u0275inj=Ne({imports:[[ZN,HA,QS,kw],ZN,QS]}),NN),eV=["mat-sort-header",""];function tV(e,t){if(1&e){var n=vs();ds(0,"div",3),ks("@arrowPosition.start",function(){return rn(n),As()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return rn(n),As()._disableViewStateAnimation=!1}),fs(1,"div",4),ds(2,"div",5),fs(3,"div",6),fs(4,"div",7),fs(5,"div",8),hs(),hs()}if(2&e){var i=As();us("@arrowOpacity",i._getArrowViewState())("@arrowPosition",i._getArrowViewState())("@allowChildren",i._getArrowDirectionState()),Oa(2),us("@indicator",i._getArrowDirectionState()),Oa(1),us("@leftPointer",i._getArrowDirectionState()),Oa(1),us("@rightPointer",i._getArrowDirectionState())}}var nV,iV,rV,aV,oV,sV,lV,uV=["*"],cV=new _i("MAT_SORT_DEFAULT_OPTIONS"),dV=eA(XS(function e(){b(this,e)})),hV=((nV=function(e){f(n,e);var t=m(n);function n(e){var i;return b(this,n),(i=t.call(this))._defaultOptions=e,i.sortables=new Map,i._stateChanges=new j,i.start="asc",i._direction="",i.sortChange=new Vu,i}return w(n,[{key:"direction",get:function(){return this._direction},set:function(e){this._direction=e}},{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=Qv(e)}},{key:"register",value:function(e){this.sortables.set(e.id,e)}},{key:"deregister",value:function(e){this.sortables.delete(e.id)}},{key:"sort",value:function(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}},{key:"getNextSortDirection",value:function(e){var t,n,i;if(!e)return"";var r=null!==(n=null!==(t=null==e?void 0:e.disableClear)&&void 0!==t?t:this.disableClear)&&void 0!==n?n:!!(null===(i=this._defaultOptions)||void 0===i?void 0:i.disableClear),a=function(e,t){var n=["asc","desc"];return"desc"==e&&n.reverse(),t||n.push(""),n}(e.start||this.start,r),o=a.indexOf(this.direction)+1;return o>=a.length&&(o=0),a[o]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}(dV)).\u0275fac=function(e){return new(e||nV)(ls(cV,8))},nV.\u0275dir=bt({type:nV,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[jo,It]}),nV),fV=WS.ENTERING+" "+US.STANDARD_CURVE,pV={indicator:uC("indicator",[pC("active-asc, asc",fC({transform:"translateY(0px)"})),pC("active-desc, desc",fC({transform:"translateY(10px)"})),gC("active-asc <=> active-desc",cC(fV))]),leftPointer:uC("leftPointer",[pC("active-asc, asc",fC({transform:"rotate(-45deg)"})),pC("active-desc, desc",fC({transform:"rotate(45deg)"})),gC("active-asc <=> active-desc",cC(fV))]),rightPointer:uC("rightPointer",[pC("active-asc, asc",fC({transform:"rotate(45deg)"})),pC("active-desc, desc",fC({transform:"rotate(-45deg)"})),gC("active-asc <=> active-desc",cC(fV))]),arrowOpacity:uC("arrowOpacity",[pC("desc-to-active, asc-to-active, active",fC({opacity:1})),pC("desc-to-hint, asc-to-hint, hint",fC({opacity:.54})),pC("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",fC({opacity:0})),gC("* => asc, * => desc, * => active, * => hint, * => void",cC("0ms")),gC("* <=> *",cC(fV))]),arrowPosition:uC("arrowPosition",[gC("* => desc-to-hint, * => desc-to-active",cC(fV,mC([fC({transform:"translateY(-25%)"}),fC({transform:"translateY(0)"})]))),gC("* => hint-to-desc, * => active-to-desc",cC(fV,mC([fC({transform:"translateY(0)"}),fC({transform:"translateY(25%)"})]))),gC("* => asc-to-hint, * => asc-to-active",cC(fV,mC([fC({transform:"translateY(25%)"}),fC({transform:"translateY(0)"})]))),gC("* => hint-to-asc, * => active-to-asc",cC(fV,mC([fC({transform:"translateY(0)"}),fC({transform:"translateY(-25%)"})]))),pC("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",fC({transform:"translateY(0)"})),pC("hint-to-desc, active-to-desc, desc",fC({transform:"translateY(-25%)"})),pC("hint-to-asc, active-to-asc, asc",fC({transform:"translateY(25%)"}))]),allowChildren:uC("allowChildren",[gC("* <=> *",[yC("@*",vC(),{optional:!0})])])},mV=((iV=function e(){b(this,e),this.changes=new j,this.sortButtonLabel=function(e){return"Change sorting for ".concat(e)}}).\u0275fac=function(e){return new(e||iV)},iV.\u0275prov=Le({factory:function(){return new iV},token:iV,providedIn:"root"}),iV),gV={provide:mV,deps:[[new Ui,new Wi,mV]],useFactory:function(e){return e||new mV}},vV=XS(function e(){b(this,e)}),yV=((sV=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o,s){var l;return b(this,n),(l=t.call(this))._intl=e,l._changeDetectorRef=i,l._sort=r,l._columnDef=a,l._focusMonitor=o,l._elementRef=s,l._showIndicatorHint=!1,l._arrowDirection="",l._disableViewStateAnimation=!1,l.arrowPosition="after",l._handleStateChanges(),l}return w(n,[{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=Qv(e)}},{key:"ngOnInit",value:function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(t){var n=!!t;n!==e._showIndicatorHint&&(e._setIndicatorHintVisible(n),e._changeDetectorRef.markForCheck())})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}},{key:"_setAnimationTransitionState",value:function(e){this._viewState=e,this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}},{key:"_toggleOnInteraction",value:function(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0)}},{key:"_handleClick",value:function(){this._isDisabled()||this._sort.sort(this)}},{key:"_handleKeydown",value:function(e){this._isDisabled()||32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),this._toggleOnInteraction())}},{key:"_isSorted",value:function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}},{key:"_getArrowDirectionState",value:function(){return"".concat(this._isSorted()?"active-":"").concat(this._arrowDirection)}},{key:"_getArrowViewState",value:function(){var e=this._viewState.fromState;return(e?"".concat(e,"-to-"):"")+this._viewState.toState}},{key:"_updateArrowDirection",value:function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}},{key:"_isDisabled",value:function(){return this._sort.disabled||this.disabled}},{key:"_getAriaSortAttribute",value:function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"_handleStateChanges",value:function(){var e=this;this._rerenderSubscription=de(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(function(){e._isSorted()&&(e._updateArrowDirection(),"hint"!==e._viewState.toState&&"active"!==e._viewState.toState||(e._disableViewStateAnimation=!0),e._setAnimationTransitionState({fromState:e._arrowDirection,toState:"active"}),e._showIndicatorHint=!1),!e._isSorted()&&e._viewState&&"active"===e._viewState.toState&&(e._disableViewStateAnimation=!1,e._setAnimationTransitionState({fromState:"active",toState:e._arrowDirection})),e._changeDetectorRef.markForCheck()})}}]),n}(vV)).\u0275fac=function(e){return new(e||sV)(ls(mV),ls(Jl),ls(hV,8),ls("MAT_SORT_HEADER_COLUMN_DEF",8),ls(Jw),ls(Ol))},sV.\u0275cmp=pt({type:sV,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&ks("click",function(){return t._handleClick()})("keydown",function(e){return t._handleKeydown(e)})("mouseenter",function(){return t._setIndicatorHintVisible(!0)})("mouseleave",function(){return t._setIndicatorHintVisible(!1)}),2&e&&(is("aria-sort",t._getAriaSortAttribute()),Hs("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[jo],attrs:eV,ngContentSelectors:uV,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(Es(),ds(0,"div",0),ds(1,"div",1),Ts(2),hs(),os(3,tV,6,6,"div",2),hs()),2&e&&(Hs("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"==t.arrowPosition),is("tabindex",t._isDisabled()?null:0),Oa(3),us("ngIf",t._renderArrow()))},directives:[wh],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[pV.indicator,pV.leftPointer,pV.rightPointer,pV.arrowOpacity,pV.arrowPosition,pV.allowChildren]},changeDetection:0}),sV),_V=((oV=function e(){b(this,e)}).\u0275fac=function(e){return new(e||oV)},oV.\u0275mod=yt({type:oV}),oV.\u0275inj=Ne({providers:[gV],imports:[[Zh,QS]]}),oV),bV=((aV=function e(){b(this,e)}).\u0275fac=function(e){return new(e||aV)},aV.\u0275mod=yt({type:aV}),aV.\u0275inj=Ne({imports:[[Ry]]}),aV),kV=((rV=function e(){b(this,e),this.changes=new j,this.optionalLabel="Optional"}).\u0275fac=function(e){return new(e||rV)},rV.\u0275prov=Le({factory:function(){return new rV},token:rV,providedIn:"root"}),rV),wV={provide:kV,deps:[[new Ui,new Wi,kV]],useFactory:function(e){return e||new kV}},CV=((lV=function e(){b(this,e)}).\u0275fac=function(e){return new(e||lV)},lV.\u0275mod=yt({type:lV}),lV.\u0275inj=Ne({providers:[wV,_A],imports:[[QS,Zh,HO,CP,bV,HR,HA],QS]}),lV),xV=[[["caption"]],[["colgroup"],["col"]]],SV=["caption","colgroup, col"];function AV(e){return function(e){f(n,e);var t=m(n);function n(){var e;b(this,n);for(var i=arguments.length,r=new Array(i),a=0;a4&&void 0!==arguments[4])||arguments[4],o=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],s=arguments.length>6?arguments[6]:void 0;b(this,e),this._isNativeHtmlTable=t,this._stickCellCss=n,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=a,this._needsPositionStickyOnElement=o,this._positionListener=s,this._cachedCellWidths=[],this._borderCellCss={top:"".concat(n,"-border-elem-top"),bottom:"".concat(n,"-border-elem-bottom"),left:"".concat(n,"-border-elem-left"),right:"".concat(n,"-border-elem-right")}}return w(e,[{key:"clearStickyPositioning",value:function(e,t){var n,i=this,r=[],a=s(e);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(o.nodeType===o.ELEMENT_NODE){r.push(o);for(var l=0;l3&&void 0!==arguments[3])||arguments[3];if(e.length&&this._isBrowser&&(t.some(function(e){return e})||n.some(function(e){return e}))){var a=e[0],o=a.children.length,l=this._getCellWidths(a,r),u=this._getStickyStartColumnPositions(l,t),c=this._getStickyEndColumnPositions(l,n),d=t.lastIndexOf(!0),h=n.indexOf(!0);this._scheduleStyleChanges(function(){var r,a="rtl"===i.direction,f=a?"right":"left",p=a?"left":"right",m=s(e);try{for(m.s();!(r=m.n()).done;)for(var g=r.value,v=0;v1&&void 0!==arguments[1])||arguments[1];if(!t&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var n=[],i=e.children,r=0;r0;r--)t[r]&&(n[r]=i,i+=e[r]);return n}},{key:"_scheduleStyleChanges",value:function(e){this._coalescedStyleScheduler?this._coalescedStyleScheduler.schedule(e):e()}}]),e}(),vB=new _i("CDK_SPL"),yB=((qV=function e(t,n){b(this,e),this.viewContainer=t,this.elementRef=n}).\u0275fac=function(e){return new(e||qV)(ls(du),ls(Ol))},qV.\u0275dir=bt({type:qV,selectors:[["","rowOutlet",""]]}),qV),_B=((WV=function e(t,n){b(this,e),this.viewContainer=t,this.elementRef=n}).\u0275fac=function(e){return new(e||WV)(ls(du),ls(Ol))},WV.\u0275dir=bt({type:WV,selectors:[["","headerRowOutlet",""]]}),WV),bB=((UV=function e(t,n){b(this,e),this.viewContainer=t,this.elementRef=n}).\u0275fac=function(e){return new(e||UV)(ls(du),ls(Ol))},UV.\u0275dir=bt({type:UV,selectors:[["","footerRowOutlet",""]]}),UV),kB=((jV=function e(t,n){b(this,e),this.viewContainer=t,this.elementRef=n}).\u0275fac=function(e){return new(e||jV)(ls(du),ls(Ol))},jV.\u0275dir=bt({type:jV,selectors:[["","noDataRowOutlet",""]]}),jV),wB=((GV=function(){function e(t,n,i,r,a,o,s,l,u,c,d){b(this,e),this._differs=t,this._changeDetectorRef=n,this._elementRef=i,this._dir=a,this._platform=s,this._viewRepeater=l,this._coalescedStyleScheduler=u,this._stickyPositioningListener=c,this._viewportRuler=d,this._onDestroy=new j,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.viewChange=new ep({start:0,end:Number.MAX_VALUE}),r||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=o,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return w(e,[{key:"trackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"dataSource",get:function(){return this._dataSource},set:function(e){this._dataSource!==e&&this._switchDataSource(e)}},{key:"multiTemplateDataRows",get:function(){return this._multiTemplateDataRows},set:function(e){this._multiTemplateDataRows=Qv(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}},{key:"fixedLayout",get:function(){return this._fixedLayout},set:function(e){this._fixedLayout=Qv(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}},{key:"ngOnInit",value:function(){var e=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create(function(t,n){return e.trackBy?e.trackBy(n.dataIndex,n.data):n}),this._viewportRuler&&this._viewportRuler.change().pipe(Pp(this._onDestroy)).subscribe(function(){e._forceRecalculateCellWidths=!0})}},{key:"ngAfterContentChecked",value:function(){this._cacheRowDefs(),this._cacheColumnDefs();var e=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||e,this._forceRecalculateCellWidths=e,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}},{key:"ngOnDestroy",value:function(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),fO(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var e=this;this._renderRows=this._getAllRenderRows();var t=this._dataDiffer.diff(this._renderRows);if(t){var n=this._rowOutlet.viewContainer;this._viewRepeater?this._viewRepeater.applyChanges(t,n,function(t,n,i){return e._getEmbeddedViewArgs(t.item,i)},function(e){return e.item.data},function(t){1===t.operation&&t.context&&e._renderCellTemplateForItem(t.record.item.rowDef,t.context)}):t.forEachOperation(function(t,i,r){if(null==t.previousIndex){var a=t.item;e._renderRow(e._rowOutlet,a.rowDef,r,{$implicit:a.data})}else if(null==r)n.remove(i);else{var o=n.get(i);n.move(o,r)}}),this._updateRowIndexContext(),t.forEachIdentityChange(function(e){n.get(e.currentIndex).context.$implicit=e.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}else this._updateNoDataRow()}},{key:"addColumnDef",value:function(e){this._customColumnDefs.add(e)}},{key:"removeColumnDef",value:function(e){this._customColumnDefs.delete(e)}},{key:"addRowDef",value:function(e){this._customRowDefs.add(e)}},{key:"removeRowDef",value:function(e){this._customRowDefs.delete(e)}},{key:"addHeaderRowDef",value:function(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}},{key:"setNoDataRow",value:function(e){this._customNoDataRow=e}},{key:"updateStickyHeaderRowStyles",value:function(){var e=this._getRenderedRows(this._headerRowOutlet),t=this._elementRef.nativeElement.querySelector("thead");t&&(t.style.display=e.length?"":"none");var n=this._headerRowDefs.map(function(e){return e.sticky});this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,n,"top"),this._headerRowDefs.forEach(function(e){return e.resetStickyChanged()})}},{key:"updateStickyFooterRowStyles",value:function(){var e=this._getRenderedRows(this._footerRowOutlet),t=this._elementRef.nativeElement.querySelector("tfoot");t&&(t.style.display=e.length?"":"none");var n=this._footerRowDefs.map(function(e){return e.sticky});this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(function(e){return e.resetStickyChanged()})}},{key:"updateStickyColumnStyles",value:function(){var e=this,t=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat(a(t),a(n),a(i)),["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach(function(t,n){e._addStickyColumnStyles([t],e._headerRowDefs[n])}),this._rowDefs.forEach(function(t){for(var i=[],r=0;r0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach(function(t,n){return e._renderRow(e._headerRowOutlet,t,n)}),this.updateStickyHeaderRowStyles()}},{key:"_forceRenderFooterRows",value:function(){var e=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach(function(t,n){return e._renderRow(e._footerRowOutlet,t,n)}),this.updateStickyFooterRowStyles()}},{key:"_addStickyColumnStyles",value:function(e,t){var n=this,i=Array.from(t.columns||[]).map(function(e){return n._columnDefsByName.get(e)}),r=i.map(function(e){return e.sticky}),a=i.map(function(e){return e.stickyEnd});this._stickyStyler.updateStickyColumns(e,r,a,!this._fixedLayout||this._forceRecalculateCellWidths)}},{key:"_getRenderedRows",value:function(e){for(var t=[],n=0;n3&&void 0!==arguments[3]?arguments[3]:{},r=e.viewContainer.createEmbeddedView(t.template,i,n);return this._renderCellTemplateForItem(t,i),r}},{key:"_renderCellTemplateForItem",value:function(e,t){var n,i=s(this._getCellTemplates(e));try{for(i.s();!(n=i.n()).done;){var r=n.value;dB.mostRecentCellOutlet&&dB.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,t)}}catch(a){i.e(a)}finally{i.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var e=this._rowOutlet.viewContainer,t=0,n=e.length;t0&&void 0!==arguments[0]?arguments[0]:[];return b(this,i),(e=t.call(this))._renderData=new ep([]),e._filter=new ep(""),e._internalPageChanges=new j,e._renderChangesSubscription=null,e.sortingDataAccessor=function(e,t){var n=e[t];if($v(n)){var i=Number(n);return i<9007199254740991?i:n}return n},e.sortData=function(t,n){var i=n.active,r=n.direction;return i&&""!=r?t.sort(function(t,n){var a=e.sortingDataAccessor(t,i),o=e.sortingDataAccessor(n,i),s=typeof a,l=typeof o;s!==l&&("number"===s&&(a+=""),"number"===l&&(o+=""));var u=0;return null!=a&&null!=o?a>o?u=1:a0)){var i=Math.ceil(n.length/n.pageSize)-1||0,r=Math.min(n.pageIndex,i);r!==n.pageIndex&&(n.pageIndex=r,t._internalPageChanges.next())}})}},{key:"connect",value:function(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}},{key:"disconnect",value:function(){var e;null===(e=this._renderChangesSubscription)||void 0===e||e.unsubscribe(),this._renderChangesSubscription=null}}]),i}(hO));function sH(e,t){1&e&&Ts(0)}var lH=["*"];function uH(e,t){}var cH=function(e){return{animationDuration:e}},dH=function(e,t){return{value:e,params:t}},hH=["tabBodyWrapper"],fH=["tabHeader"];function pH(e,t){}function mH(e,t){1&e&&os(0,pH,0,0,"ng-template",9),2&e&&us("cdkPortalOutlet",As().$implicit.templateLabel)}function gH(e,t){1&e&&Js(0),2&e&&el(As().$implicit.textLabel)}function vH(e,t){if(1&e){var n=vs();ds(0,"div",6),ks("click",function(){rn(n);var e=t.$implicit,i=t.index,r=As(),a=ss(1);return r._handleClick(e,a,i)})("cdkFocusChange",function(e){rn(n);var i=t.index;return As()._tabFocusChanged(e,i)}),ds(1,"div",7),os(2,mH,1,1,"ng-template",8),os(3,gH,1,1,"ng-template",8),hs(),hs()}if(2&e){var i=t.$implicit,r=t.index,a=As();Hs("mat-tab-label-active",a.selectedIndex==r),us("id",a._getTabLabelId(r))("disabled",i.disabled)("matRippleDisabled",i.disabled||a.disableRipple),is("tabIndex",a._getTabIndex(i,r))("aria-posinset",r+1)("aria-setsize",a._tabs.length)("aria-controls",a._getTabContentId(r))("aria-selected",a.selectedIndex==r)("aria-label",i.ariaLabel||null)("aria-labelledby",!i.ariaLabel&&i.ariaLabelledby?i.ariaLabelledby:null),Oa(2),us("ngIf",i.templateLabel),Oa(1),us("ngIf",!i.templateLabel)}}function yH(e,t){if(1&e){var n=vs();ds(0,"mat-tab-body",10),ks("_onCentered",function(){return rn(n),As()._removeTabBodyWrapperHeight()})("_onCentering",function(e){return rn(n),As()._setTabBodyWrapperHeight(e)}),hs()}if(2&e){var i=t.$implicit,r=t.index,a=As();Hs("mat-tab-body-active",a.selectedIndex==r),us("id",a._getTabContentId(r))("content",i.content)("position",i.position)("origin",i.origin)("animationDuration",a.animationDuration),is("aria-labelledby",a._getTabLabelId(r))}}var _H,bH,kH,wH,CH,xH,SH,AH,OH,EH,TH,PH,DH,MH,IH,RH,LH,FH,NH,VH,BH,HH,zH,GH,jH=["tabListContainer"],UH=["tabList"],WH=["nextPaginator"],qH=["previousPaginator"],YH=["mat-tab-nav-bar",""],QH=new _i("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(e){return{left:e?(e.offsetLeft||0)+"px":"0",width:e?(e.offsetWidth||0)+"px":"0"}}}}),XH=((_H=function(){function e(t,n,i,r){b(this,e),this._elementRef=t,this._ngZone=n,this._inkBarPositioner=i,this._animationMode=r}return w(e,[{key:"alignToElement",value:function(e){var t=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return t._setStyles(e)})}):this._setStyles(e)}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}},{key:"_setStyles",value:function(e){var t=this._inkBarPositioner(e),n=this._elementRef.nativeElement;n.style.left=t.left,n.style.width=t.width}}]),e}()).\u0275fac=function(e){return new(e||_H)(ls(Ol),ls(Oc),ls(QH),ls(LS,8))},_H.\u0275dir=bt({type:_H,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(e,t){2&e&&Hs("_mat-animation-noopable","NoopAnimations"===t._animationMode)}}),_H),$H=new _i("MatTabContent"),KH=new _i("MatTabLabel"),ZH=((bH=function(e){f(n,e);var t=m(n);function n(){return b(this,n),t.apply(this,arguments)}return n}(VO)).\u0275fac=function(e){return JH(e||bH)},bH.\u0275dir=bt({type:bH,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[bl([{provide:KH,useExisting:bH}]),jo]}),bH),JH=fi(ZH),ez=XS(function e(){b(this,e)}),tz=new _i("MAT_TAB_GROUP"),nz=((kH=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this))._viewContainerRef=e,r._closestTabGroup=i,r.textLabel="",r._contentPortal=null,r._stateChanges=new j,r.position=null,r.origin=null,r.isActive=!1,r}return w(n,[{key:"templateLabel",get:function(){return this._templateLabel},set:function(e){this._setTemplateLabelInput(e)}},{key:"content",get:function(){return this._contentPortal}},{key:"ngOnChanges",value:function(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new RO(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"_setTemplateLabelInput",value:function(e){e&&(this._templateLabel=e)}}]),n}(ez)).\u0275fac=function(e){return new(e||kH)(ls(du),ls(tz))},kH.\u0275cmp=pt({type:kH,selectors:[["mat-tab"]],contentQueries:function(e,t,n){var i;1&e&&(Zu(n,KH,1),Zu(n,$H,3,au)),2&e&&($u(i=Ju())&&(t.templateLabel=i.first),$u(i=Ju())&&(t._explicitContent=i.first))},viewQuery:function(e,t){var n;1&e&&Ku(au,3),2&e&&$u(n=Ju())&&(t._implicitContent=n.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[jo,It],ngContentSelectors:lH,decls:1,vars:0,template:function(e,t){1&e&&(Es(),os(0,sH,1,0,"ng-template"))},encapsulation:2}),kH),iz={translateTab:uC("translateTab",[pC("center, void, left-origin-center, right-origin-center",fC({transform:"none"})),pC("left",fC({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),pC("right",fC({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),gC("* => left, * => right, left => center, right => center",cC("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),gC("void => left-origin-center",[fC({transform:"translate3d(-100%, 0, 0)"}),cC("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),gC("void => right-origin-center",[fC({transform:"translate3d(100%, 0, 0)"}),cC("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},rz=((xH=function(e){f(n,e);var t=m(n);function n(e,i,r,a){var o;return b(this,n),(o=t.call(this,e,i,a))._host=r,o._centeringSub=O.EMPTY,o._leavingSub=O.EMPTY,o}return w(n,[{key:"ngOnInit",value:function(){var e=this;h(_(n.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe(Rp(this._host._isCenterPosition(this._host._position))).subscribe(function(t){t&&!e.hasAttached()&&e.attach(e._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){e.detach()})}},{key:"ngOnDestroy",value:function(){h(_(n.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),n}(BO)).\u0275fac=function(e){return new(e||xH)(ls(Cl),ls(du),ls(Ee(function(){return oz})),ls(sd))},xH.\u0275dir=bt({type:xH,selectors:[["","matTabBodyHost",""]],features:[jo]}),xH),az=((CH=function(){function e(t,n,i){var r=this;b(this,e),this._elementRef=t,this._dir=n,this._dirChangeSubscription=O.EMPTY,this._translateTabComplete=new j,this._onCentering=new Vu,this._beforeCentering=new Vu,this._afterLeavingCenter=new Vu,this._onCentered=new Vu(!0),this.animationDuration="500ms",n&&(this._dirChangeSubscription=n.change.subscribe(function(e){r._computePositionAnimationState(e),i.markForCheck()})),this._translateTabComplete.pipe(Op(function(e,t){return e.fromState===t.fromState&&e.toState===t.toState})).subscribe(function(e){r._isCenterPosition(e.toState)&&r._isCenterPosition(r._position)&&r._onCentered.emit(),r._isCenterPosition(e.fromState)&&!r._isCenterPosition(r._position)&&r._afterLeavingCenter.emit()})}return w(e,[{key:"position",set:function(e){this._positionIndex=e,this._computePositionAnimationState()}},{key:"ngOnInit",value:function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}},{key:"ngOnDestroy",value:function(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}},{key:"_onTranslateTabStarted",value:function(e){var t=this._isCenterPosition(e.toState);this._beforeCentering.emit(t),t&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}},{key:"_computePositionAnimationState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}},{key:"_computePositionFromOrigin",value:function(e){var t=this._getLayoutDirection();return"ltr"==t&&e<=0||"rtl"==t&&e>0?"left-origin-center":"right-origin-center"}}]),e}()).\u0275fac=function(e){return new(e||CH)(ls(Ol),ls(Iy,8),ls(Jl))},CH.\u0275dir=bt({type:CH,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),CH),oz=((wH=function(e){f(n,e);var t=m(n);function n(e,i,r){return b(this,n),t.call(this,e,i,r)}return n}(az)).\u0275fac=function(e){return new(e||wH)(ls(Ol),ls(Iy,8),ls(Jl))},wH.\u0275cmp=pt({type:wH,selectors:[["mat-tab-body"]],viewQuery:function(e,t){var n;1&e&&Ku(BO,1),2&e&&$u(n=Ju())&&(t._portalHost=n.first)},hostAttrs:[1,"mat-tab-body"],features:[jo],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,t){1&e&&(ds(0,"div",0,1),ks("@translateTab.start",function(e){return t._onTranslateTabStarted(e)})("@translateTab.done",function(e){return t._translateTabComplete.next(e)}),os(2,uH,0,0,"ng-template",2),hs()),2&e&&us("@translateTab",Ou(3,dH,t._position,Au(1,cH,t.animationDuration)))},directives:[rz],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[iz.translateTab]}}),wH),sz=new _i("MAT_TABS_CONFIG"),lz=0,uz=function e(){b(this,e)},cz=$S(KS(function e(t){b(this,e),this._elementRef=t}),"primary"),dz=((AH=function(e){f(n,e);var t=m(n);function n(e,i,r,a){var o;return b(this,n),(o=t.call(this,e))._changeDetectorRef=i,o._animationMode=a,o._tabs=new Hu,o._indexToSelect=0,o._tabBodyWrapperHeight=0,o._tabsSubscription=O.EMPTY,o._tabLabelSubscription=O.EMPTY,o._selectedIndex=null,o.headerPosition="above",o.selectedIndexChange=new Vu,o.focusChange=new Vu,o.animationDone=new Vu,o.selectedTabChange=new Vu(!0),o._groupId=lz++,o.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",o.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,o.dynamicHeight=!(!r||null==r.dynamicHeight)&&r.dynamicHeight,o}return w(n,[{key:"dynamicHeight",get:function(){return this._dynamicHeight},set:function(e){this._dynamicHeight=Qv(e)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(e){this._indexToSelect=Xv(e,null)}},{key:"animationDuration",get:function(){return this._animationDuration},set:function(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(e){var t=this._elementRef.nativeElement;t.classList.remove("mat-background-".concat(this.backgroundColor)),e&&t.classList.add("mat-background-".concat(e)),this._backgroundColor=e}},{key:"ngAfterContentChecked",value:function(){var e=this,t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){var n=null==this._selectedIndex;n||this.selectedTabChange.emit(this._createChangeEvent(t)),Promise.resolve().then(function(){e._tabs.forEach(function(e,n){return e.isActive=n===t}),n||e.selectedIndexChange.emit(t)})}this._tabs.forEach(function(n,i){n.position=i-t,null==e._selectedIndex||0!=n.position||n.origin||(n.origin=t-e._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var e=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(function(){if(e._clampTabIndex(e._indexToSelect)===e._selectedIndex)for(var t=e._tabs.toArray(),n=0;n.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),SH),fz=XS(function e(){b(this,e)}),pz=((OH=function(e){f(n,e);var t=m(n);function n(e){var i;return b(this,n),(i=t.call(this)).elementRef=e,i}return w(n,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"getOffsetLeft",value:function(){return this.elementRef.nativeElement.offsetLeft}},{key:"getOffsetWidth",value:function(){return this.elementRef.nativeElement.offsetWidth}}]),n}(fz)).\u0275fac=function(e){return new(e||OH)(ls(Ol))},OH.\u0275dir=bt({type:OH,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,t){2&e&&(is("aria-disabled",!!t.disabled),Hs("mat-tab-disabled",t.disabled))},inputs:{disabled:"disabled"},features:[jo]}),OH),mz=cw({passive:!0}),gz=((MH=function(){function e(t,n,i,r,a,o,s){var l=this;b(this,e),this._elementRef=t,this._changeDetectorRef=n,this._viewportRuler=i,this._dir=r,this._ngZone=a,this._platform=o,this._animationMode=s,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new j,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new j,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new Vu,this.indexFocused=new Vu,a.runOutsideAngular(function(){zg(t.nativeElement,"mouseleave").pipe(Pp(l._destroyed)).subscribe(function(){l._stopInterval()})})}return w(e,[{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(e){e=Xv(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}},{key:"ngAfterViewInit",value:function(){var e=this;zg(this._previousPaginator.nativeElement,"touchstart",mz).pipe(Pp(this._destroyed)).subscribe(function(){e._handlePaginatorPress("before")}),zg(this._nextPaginator.nativeElement,"touchstart",mz).pipe(Pp(this._destroyed)).subscribe(function(){e._handlePaginatorPress("after")})}},{key:"ngAfterContentInit",value:function(){var e=this,t=this._dir?this._dir.change:fp(null),n=this._viewportRuler.change(150),i=function(){e.updatePagination(),e._alignInkBarToSelectedTab()};this._keyManager=new Iw(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),de(t,n,this._items.changes).pipe(Pp(this._destroyed)).subscribe(function(){Promise.resolve().then(i),e._keyManager.withHorizontalOrientation(e._getLayoutDirection())}),this._keyManager.change.pipe(Pp(this._destroyed)).subscribe(function(t){e.indexFocused.emit(t),e._setTabFocus(t)})}},{key:"ngAfterContentChecked",value:function(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}},{key:"_handleKeydown",value:function(e){if(!Zk(e))switch(e.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e));break;default:this._keyManager.onKeydown(e)}}},{key:"_onContentChanges",value:function(){var e=this,t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(function(){e.updatePagination(),e._alignInkBarToSelectedTab(),e._changeDetectorRef.markForCheck()}))}},{key:"updatePagination",value:function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}},{key:"focusIndex",get:function(){return this._keyManager?this._keyManager.activeItemIndex:0},set:function(e){this._isValidIndex(e)&&this.focusIndex!==e&&this._keyManager&&this._keyManager.setActiveItem(e)}},{key:"_isValidIndex",value:function(e){if(!this._items)return!0;var t=this._items?this._items.toArray()[e]:null;return!!t&&!t.disabled}},{key:"_setTabFocus",value:function(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();var t=this._tabListContainer.nativeElement,n=this._getLayoutDirection();t.scrollLeft="ltr"==n?0:t.scrollWidth-t.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var e=this.scrollDistance,t="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(t),"px)"),(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(e){this._scrollTo(e)}},{key:"_scrollHeader",value:function(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}},{key:"_handlePaginatorClick",value:function(e){this._stopInterval(),this._scrollHeader(e)}},{key:"_scrollToLabel",value:function(e){if(!this.disablePagination){var t=this._items?this._items.toArray()[e]:null;if(t){var n,i,r=this._tabListContainer.nativeElement.offsetWidth,a=t.elementRef.nativeElement,o=a.offsetLeft,s=a.offsetWidth;"ltr"==this._getLayoutDirection()?i=(n=o)+s:n=(i=this._tabList.nativeElement.offsetWidth-o)-s;var l=this.scrollDistance,u=this.scrollDistance+r;nu&&(this.scrollDistance+=i-u+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var e=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}},{key:"_checkScrollingControls",value:function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}},{key:"_getMaxScrollDistance",value:function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}},{key:"_alignInkBarToSelectedTab",value:function(){var e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,t=e?e.elementRef.nativeElement:null;t?this._inkBar.alignToElement(t):this._inkBar.hide()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(e,t){var n=this;t&&null!=t.button&&0!==t.button||(this._stopInterval(),op(650,100).pipe(Pp(de(this._stopScrolling,this._destroyed))).subscribe(function(){var t=n._scrollHeader(e),i=t.maxScrollDistance,r=t.distance;(0===r||r>=i)&&n._stopInterval()}))}},{key:"_scrollTo",value:function(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var t=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(t,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:t,distance:this._scrollDistance}}}]),e}()).\u0275fac=function(e){return new(e||MH)(ls(Ol),ls(Jl),ls(TO),ls(Iy,8),ls(Oc),ls(ow),ls(LS,8))},MH.\u0275dir=bt({type:MH,inputs:{disablePagination:"disablePagination"}}),MH),vz=((DH=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o,s,l){var u;return b(this,n),(u=t.call(this,e,i,r,a,o,s,l))._disableRipple=!1,u}return w(n,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(e){this._disableRipple=Qv(e)}},{key:"_itemSelected",value:function(e){e.preventDefault()}}]),n}(gz)).\u0275fac=function(e){return new(e||DH)(ls(Ol),ls(Jl),ls(TO),ls(Iy,8),ls(Oc),ls(ow),ls(LS,8))},DH.\u0275dir=bt({type:DH,inputs:{disableRipple:"disableRipple"},features:[jo]}),DH),yz=((PH=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o,s,l){return b(this,n),t.call(this,e,i,r,a,o,s,l)}return n}(vz)).\u0275fac=function(e){return new(e||PH)(ls(Ol),ls(Jl),ls(TO),ls(Iy,8),ls(Oc),ls(ow),ls(LS,8))},PH.\u0275cmp=pt({type:PH,selectors:[["mat-tab-header"]],contentQueries:function(e,t,n){var i;1&e&&Zu(n,pz,0),2&e&&$u(i=Ju())&&(t._items=i)},viewQuery:function(e,t){var n;1&e&&(Ku(XH,3),Ku(jH,3),Ku(UH,3),Ku(WH,1),Ku(qH,1)),2&e&&($u(n=Ju())&&(t._inkBar=n.first),$u(n=Ju())&&(t._tabListContainer=n.first),$u(n=Ju())&&(t._tabList=n.first),$u(n=Ju())&&(t._nextPaginator=n.first),$u(n=Ju())&&(t._previousPaginator=n.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(e,t){2&e&&Hs("mat-tab-header-pagination-controls-enabled",t._showPaginationControls)("mat-tab-header-rtl","rtl"==t._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[jo],ngContentSelectors:lH,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,t){1&e&&(Es(),ds(0,"div",0,1),ks("click",function(){return t._handlePaginatorClick("before")})("mousedown",function(e){return t._handlePaginatorPress("before",e)})("touchend",function(){return t._stopInterval()}),fs(2,"div",2),hs(),ds(3,"div",3,4),ks("keydown",function(e){return t._handleKeydown(e)}),ds(5,"div",5,6),ks("cdkObserveContent",function(){return t._onContentChanges()}),ds(7,"div",7),Ts(8),hs(),fs(9,"mat-ink-bar"),hs(),hs(),ds(10,"div",8,9),ks("mousedown",function(e){return t._handlePaginatorPress("after",e)})("click",function(){return t._handlePaginatorClick("after")})("touchend",function(){return t._stopInterval()}),fs(12,"div",2),hs()),2&e&&(Hs("mat-tab-header-pagination-disabled",t._disableScrollBefore),us("matRippleDisabled",t._disableScrollBefore||t.disableRipple),Oa(5),Hs("_mat-animation-noopable","NoopAnimations"===t._animationMode),Oa(5),Hs("mat-tab-header-pagination-disabled",t._disableScrollAfter),us("matRippleDisabled",t._disableScrollAfter||t.disableRipple))},directives:[BA,bw,XH],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),PH),_z=((TH=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o,s,l){var u;return b(this,n),(u=t.call(this,e,a,o,i,r,s,l))._disableRipple=!1,u.color="primary",u}return w(n,[{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(e){var t=this._elementRef.nativeElement.classList;t.remove("mat-background-".concat(this.backgroundColor)),e&&t.add("mat-background-".concat(e)),this._backgroundColor=e}},{key:"disableRipple",get:function(){return this._disableRipple},set:function(e){this._disableRipple=Qv(e)}},{key:"_itemSelected",value:function(){}},{key:"ngAfterContentInit",value:function(){var e=this;this._items.changes.pipe(Rp(null),Pp(this._destroyed)).subscribe(function(){e.updateActiveLink()}),h(_(n.prototype),"ngAfterContentInit",this).call(this)}},{key:"updateActiveLink",value:function(){if(this._items){for(var e=this._items.toArray(),t=0;t.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n'],encapsulation:2}),EH),kz=ZS(KS(XS(function e(){b(this,e)}))),wz=((LH=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o,s){var l;return b(this,n),(l=t.call(this))._tabNavBar=e,l.elementRef=i,l._focusMonitor=o,l._isActive=!1,l.rippleConfig=r||{},l.tabIndex=parseInt(a)||0,"NoopAnimations"===s&&(l.rippleConfig.animation={enterDuration:0,exitDuration:0}),l}return w(n,[{key:"active",get:function(){return this._isActive},set:function(e){Qv(e)!==this._isActive&&(this._isActive=e,this._tabNavBar.updateActiveLink())}},{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}},{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this.elementRef)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this.elementRef)}}]),n}(kz)).\u0275fac=function(e){return new(e||LH)(ls(_z),ls(Ol),ls(VA,8),mi("tabindex"),ls(Jw),ls(LS,8))},LH.\u0275dir=bt({type:LH,inputs:{active:"active"},features:[jo]}),LH),Cz=((RH=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o,s,l,u){var c;return b(this,n),(c=t.call(this,e,i,o,s,l,u))._tabLinkRipple=new NA(v(c),r,i,a),c._tabLinkRipple.setupTriggerEvents(i.nativeElement),c}return w(n,[{key:"ngOnDestroy",value:function(){h(_(n.prototype),"ngOnDestroy",this).call(this),this._tabLinkRipple._removeTriggerEvents()}}]),n}(wz)).\u0275fac=function(e){return new(e||RH)(ls(bz),ls(Ol),ls(Oc),ls(ow),ls(VA,8),mi("tabindex"),ls(Jw),ls(LS,8))},RH.\u0275dir=bt({type:RH,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:7,hostBindings:function(e,t){2&e&&(is("aria-current",t.active?"page":null)("aria-disabled",t.disabled)("tabIndex",t.tabIndex),Hs("mat-tab-disabled",t.disabled)("mat-tab-label-active",t.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[jo]}),RH),xz=((IH=function e(){b(this,e)}).\u0275fac=function(e){return new(e||IH)},IH.\u0275mod=yt({type:IH}),IH.\u0275inj=Ne({imports:[[Zh,QS,HO,HA,kw,oC],QS]}),IH),Sz=["*",[["mat-toolbar-row"]]],Az=["*","mat-toolbar-row"],Oz=$S(function e(t){b(this,e),this._elementRef=t}),Ez=((VH=function e(){b(this,e)}).\u0275fac=function(e){return new(e||VH)},VH.\u0275dir=bt({type:VH,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),VH),Tz=((NH=function(e){f(n,e);var t=m(n);function n(e,i,r){var a;return b(this,n),(a=t.call(this,e))._platform=i,a._document=r,a}return w(n,[{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return e._checkToolbarMixedModes()}))}},{key:"_checkToolbarMixedModes",value:function(){}}]),n}(Oz)).\u0275fac=function(e){return new(e||NH)(ls(Ol),ls(ow),ls(sd))},NH.\u0275cmp=pt({type:NH,selectors:[["mat-toolbar"]],contentQueries:function(e,t,n){var i;1&e&&Zu(n,Ez,1),2&e&&$u(i=Ju())&&(t._toolbarRows=i)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&Hs("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[jo],ngContentSelectors:Az,decls:2,vars:0,template:function(e,t){1&e&&(Es(Sz),Ts(0),Ts(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%}\n"],encapsulation:2,changeDetection:0}),NH),Pz=((FH=function e(){b(this,e)}).\u0275fac=function(e){return new(e||FH)},FH.\u0275mod=yt({type:FH}),FH.\u0275inj=Ne({imports:[[QS],QS]}),FH),Dz=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this)).getChildren=e,r.options=i,r.options&&(r.trackBy=r.options.trackBy),r}return w(n,[{key:"expandAll",value:function(){var e,t=this;this.expansionModel.clear();var n=this.dataNodes.reduce(function(e,n){return[].concat(a(e),a(t.getDescendants(n)),[n])},[]);(e=this.expansionModel).select.apply(e,a(n.map(function(e){return t._trackByValue(e)})))}},{key:"getDescendants",value:function(e){var t=[];return this._getDescendants(t,e),t.splice(1)}},{key:"_getDescendants",value:function(e,t){var n=this;e.push(t);var i=this.getChildren(t);Array.isArray(i)?i.forEach(function(t){return n._getDescendants(e,t)}):aO(i)&&i.pipe(Qg(1),jm(Boolean)).subscribe(function(t){var i,r=s(t);try{for(r.s();!(i=r.n()).done;){var a=i.value;n._getDescendants(e,a)}}catch(o){r.e(o)}finally{r.f()}})}}]),n}(function(){function e(){b(this,e),this.expansionModel=new xO(!0)}return w(e,[{key:"toggle",value:function(e){this.expansionModel.toggle(this._trackByValue(e))}},{key:"expand",value:function(e){this.expansionModel.select(this._trackByValue(e))}},{key:"collapse",value:function(e){this.expansionModel.deselect(this._trackByValue(e))}},{key:"isExpanded",value:function(e){return this.expansionModel.isSelected(this._trackByValue(e))}},{key:"toggleDescendants",value:function(e){this.expansionModel.isSelected(this._trackByValue(e))?this.collapseDescendants(e):this.expandDescendants(e)}},{key:"collapseAll",value:function(){this.expansionModel.clear()}},{key:"expandDescendants",value:function(e){var t,n=this,i=[e];i.push.apply(i,a(this.getDescendants(e))),(t=this.expansionModel).select.apply(t,a(i.map(function(e){return n._trackByValue(e)})))}},{key:"collapseDescendants",value:function(e){var t,n=this,i=[e];i.push.apply(i,a(this.getDescendants(e))),(t=this.expansionModel).deselect.apply(t,a(i.map(function(e){return n._trackByValue(e)})))}},{key:"_trackByValue",value:function(e){return this.trackBy?this.trackBy(e):e}}]),e}()),Mz=new _i("CDK_TREE_NODE_OUTLET_NODE"),Iz=((BH=function e(t,n){b(this,e),this.viewContainer=t,this._node=n}).\u0275fac=function(e){return new(e||BH)(ls(du),ls(Mz,8))},BH.\u0275dir=bt({type:BH,selectors:[["","cdkTreeNodeOutlet",""]]}),BH),Rz=function e(t){b(this,e),this.$implicit=t},Lz=((GH=function e(t){b(this,e),this.template=t}).\u0275fac=function(e){return new(e||GH)(ls(au))},GH.\u0275dir=bt({type:GH,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),GH),Fz=((zH=function(){function e(t,n){b(this,e),this._differs=t,this._changeDetectorRef=n,this._onDestroy=new j,this._levels=new Map,this.viewChange=new ep({start:0,end:Number.MAX_VALUE})}return w(e,[{key:"dataSource",get:function(){return this._dataSource},set:function(e){this._dataSource!==e&&this._switchDataSource(e)}},{key:"ngOnInit",value:function(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}},{key:"ngOnDestroy",value:function(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}},{key:"ngAfterContentChecked",value:function(){var e=this._nodeDefs.filter(function(e){return!e.when});this._defaultNodeDef=e[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}},{key:"_switchDataSource",value:function(e){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),e||this._nodeOutlet.viewContainer.clear(),this._dataSource=e,this._nodeDefs&&this._observeRenderChanges()}},{key:"_observeRenderChanges",value:function(){var e,t=this;fO(this._dataSource)?e=this._dataSource.connect(this):aO(this._dataSource)?e=this._dataSource:Array.isArray(this._dataSource)&&(e=fp(this._dataSource)),e&&(this._dataSubscription=e.pipe(Pp(this._onDestroy)).subscribe(function(e){return t.renderNodeChanges(e)}))}},{key:"renderNodeChanges",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._dataDiffer,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._nodeOutlet.viewContainer,r=arguments.length>3?arguments[3]:void 0,a=n.diff(e);a&&(a.forEachOperation(function(n,a,o){if(null==n.previousIndex)t.insertNode(e[o],o,i,r);else if(null==o)i.remove(a),t._levels.delete(n.item);else{var s=i.get(a);i.move(s,o)}}),this._changeDetectorRef.detectChanges())}},{key:"_getNodeDef",value:function(e,t){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(function(n){return n.when&&n.when(t,e)})||this._defaultNodeDef}},{key:"insertNode",value:function(e,t,n,i){var r=this._getNodeDef(e,t),a=new Rz(e);a.level=this.treeControl.getLevel?this.treeControl.getLevel(e):void 0!==i&&this._levels.has(i)?this._levels.get(i)+1:0,this._levels.set(e,a.level),(n||this._nodeOutlet.viewContainer).createEmbeddedView(r.template,a,t),Nz.mostRecentTreeNode&&(Nz.mostRecentTreeNode.data=e)}}]),e}()).\u0275fac=function(e){return new(e||zH)(ls(ql),ls(Jl))},zH.\u0275cmp=pt({type:zH,selectors:[["cdk-tree"]],contentQueries:function(e,t,n){var i;1&e&&Zu(n,Lz,1),2&e&&$u(i=Ju())&&(t._nodeDefs=i)},viewQuery:function(e,t){var n;1&e&&Ku(Iz,3),2&e&&$u(n=Ju())&&(t._nodeOutlet=n.first)},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(e,t){1&e&&gs(0,0)},directives:[Iz],encapsulation:2}),zH),Nz=((HH=function(){function e(t,n){b(this,e),this._elementRef=t,this._tree=n,this._destroyed=new j,this._dataChanges=new j,e.mostRecentTreeNode=this,this._elementRef.nativeElement.classList.add("cdk-tree-node"),this.role="treeitem"}return w(e,[{key:"role",get:function(){return"treeitem"},set:function(e){this._elementRef.nativeElement.setAttribute("role",e)}},{key:"data",get:function(){return this._data},set:function(e){e!==this._data&&(this._data=e,this._setRoleFromData(),this._dataChanges.next())}},{key:"isExpanded",get:function(){return this._tree.treeControl.isExpanded(this._data)}},{key:"_setExpanded",value:function(e){this._isAriaExpanded=e,this._elementRef.nativeElement.setAttribute("aria-expanded","".concat(e))}},{key:"level",get:function(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}},{key:"ngOnInit",value:function(){this._parentNodeAriaLevel=function(e){for(var t,n=e.parentElement;n&&(t=void 0,!(null==(t=n.classList)?void 0:t.contains("cdk-nested-tree-node"))&&!(null==t?void 0:t.contains("cdk-tree")));)n=n.parentElement;return n?n.classList.contains("cdk-nested-tree-node")?Xv(n.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level","".concat(this.level+1))}},{key:"ngDoCheck",value:function(){this.isExpanded!=this._isAriaExpanded&&this._setExpanded(this.isExpanded)}},{key:"ngOnDestroy",value:function(){e.mostRecentTreeNode===this&&(e.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"focus",value:function(){this._elementRef.nativeElement.focus()}},{key:"_setRoleFromData",value:function(){this.role="treeitem"}}]),e}()).\u0275fac=function(e){return new(e||HH)(ls(Ol),ls(Fz))},HH.\u0275dir=bt({type:HH,selectors:[["cdk-tree-node"]],inputs:{role:"role"},exportAs:["cdkTreeNode"]}),HH.mostRecentTreeNode=null,HH);var Vz,Bz,Hz,zz,Gz,jz,Uz,Wz,qz,Yz,Qz,Xz,$z=((Vz=function(e){f(n,e);var t=m(n);function n(e,i,r){var a;return b(this,n),(a=t.call(this,e,i))._elementRef=e,a._tree=i,a._differs=r,a._elementRef.nativeElement.classList.add("cdk-nested-tree-node"),a}return w(n,[{key:"ngAfterContentInit",value:function(){var e=this;this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);var t=this._tree.treeControl.getChildren(this.data);Array.isArray(t)?this.updateChildrenNodes(t):aO(t)&&t.pipe(Pp(this._destroyed)).subscribe(function(t){return e.updateChildrenNodes(t)}),this.nodeOutlet.changes.pipe(Pp(this._destroyed)).subscribe(function(){return e.updateChildrenNodes()})}},{key:"ngOnInit",value:function(){h(_(n.prototype),"ngOnInit",this).call(this)}},{key:"ngDoCheck",value:function(){h(_(n.prototype),"ngDoCheck",this).call(this)}},{key:"ngOnDestroy",value:function(){this._clear(),h(_(n.prototype),"ngOnDestroy",this).call(this)}},{key:"updateChildrenNodes",value:function(e){var t=this._getNodeOutlet();e&&(this._children=e),t&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,t.viewContainer,this._data):this._dataDiffer.diff([])}},{key:"_clear",value:function(){var e=this._getNodeOutlet();e&&(e.viewContainer.clear(),this._dataDiffer.diff([]))}},{key:"_getNodeOutlet",value:function(){var e=this,t=this.nodeOutlet;return t&&t.find(function(t){return!t._node||t._node===e})}}]),n}(Nz)).\u0275fac=function(e){return new(e||Vz)(ls(Ol),ls(Fz),ls(ql))},Vz.\u0275dir=bt({type:Vz,selectors:[["cdk-nested-tree-node"]],contentQueries:function(e,t,n){var i;1&e&&Zu(n,Iz,1),2&e&&$u(i=Ju())&&(t.nodeOutlet=i)},inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[bl([{provide:Nz,useExisting:Vz},{provide:Mz,useExisting:Vz}]),jo]}),Vz),Kz=/([A-Za-z%]+)$/,Zz=((zz=function(){function e(t,n,i,r){var a=this;b(this,e),this._treeNode=t,this._tree=n,this._element=i,this._dir=r,this._destroyed=new j,this.indentUnits="px",this._indent=40,this._setPadding(),r&&r.change.pipe(Pp(this._destroyed)).subscribe(function(){return a._setPadding(!0)}),t._dataChanges.subscribe(function(){return a._setPadding()})}return w(e,[{key:"level",get:function(){return this._level},set:function(e){this._setLevelInput(e)}},{key:"indent",get:function(){return this._indent},set:function(e){this._setIndentInput(e)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_paddingIndent",value:function(){var e=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,t=null==this._level?e:this._level;return"number"==typeof t?"".concat(t*this._indent).concat(this.indentUnits):null}},{key:"_setPadding",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._paddingIndent();if(t!==this._currentPadding||e){var n=this._element.nativeElement,i=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",r="paddingLeft"===i?"paddingRight":"paddingLeft";n.style[i]=t||"",n.style[r]="",this._currentPadding=t}}},{key:"_setLevelInput",value:function(e){this._level=Xv(e,null),this._setPadding()}},{key:"_setIndentInput",value:function(e){var t=e,n="px";if("string"==typeof e){var i=e.split(Kz);t=i[0],n=i[1]||n}this.indentUnits=n,this._indent=Xv(t),this._setPadding()}}]),e}()).\u0275fac=function(e){return new(e||zz)(ls(Nz),ls(Fz),ls(Ol),ls(Iy,8))},zz.\u0275dir=bt({type:zz,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),zz),Jz=((Hz=function(){function e(t,n){b(this,e),this._tree=t,this._treeNode=n,this._recursive=!1}return w(e,[{key:"recursive",get:function(){return this._recursive},set:function(e){this._recursive=Qv(e)}},{key:"_toggle",value:function(e){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),e.stopPropagation()}}]),e}()).\u0275fac=function(e){return new(e||Hz)(ls(Fz),ls(Nz))},Hz.\u0275dir=bt({type:Hz,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(e,t){1&e&&ks("click",function(e){return t._toggle(e)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),Hz),eG=((Bz=function e(){b(this,e)}).\u0275fac=function(e){return new(e||Bz)},Bz.\u0275mod=yt({type:Bz}),Bz.\u0275inj=Ne({}),Bz),tG=ZS(XS(Nz)),nG=((jz=function(e){f(n,e);var t=m(n);function n(e,i,r){var a;return b(this,n),(a=t.call(this,e,i))._elementRef=e,a._tree=i,a.tabIndex=Number(r)||0,a._elementRef.nativeElement.classList.add("mat-tree-node"),a}return w(n,[{key:"ngOnInit",value:function(){h(_(n.prototype),"ngOnInit",this).call(this)}},{key:"ngDoCheck",value:function(){h(_(n.prototype),"ngDoCheck",this).call(this)}},{key:"ngOnDestroy",value:function(){h(_(n.prototype),"ngOnDestroy",this).call(this)}}]),n}(tG)).\u0275fac=function(e){return new(e||jz)(ls(Ol),ls(Fz),mi("tabindex"))},jz.\u0275dir=bt({type:jz,selectors:[["mat-tree-node"]],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[bl([{provide:Nz,useExisting:jz}]),jo]}),jz),iG=((Gz=function(e){f(n,e);var t=m(n);function n(){return b(this,n),t.apply(this,arguments)}return n}(Lz)).\u0275fac=function(e){return rG(e||Gz)},Gz.\u0275dir=bt({type:Gz,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[bl([{provide:Lz,useExisting:Gz}]),jo]}),Gz),rG=fi(iG),aG=((Wz=function(e){f(n,e);var t=m(n);function n(e,i,r,a){var o;return b(this,n),(o=t.call(this,e,i,r))._elementRef=e,o._tree=i,o._differs=r,o._disabled=!1,o.tabIndex=Number(a)||0,o._elementRef.nativeElement.classList.add("mat-nested-tree-node"),o}return w(n,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=Qv(e)}},{key:"tabIndex",get:function(){return this.disabled?-1:this._tabIndex},set:function(e){this._tabIndex=null!=e?e:0}},{key:"ngOnInit",value:function(){h(_(n.prototype),"ngOnInit",this).call(this)}},{key:"ngDoCheck",value:function(){h(_(n.prototype),"ngDoCheck",this).call(this)}},{key:"ngAfterContentInit",value:function(){h(_(n.prototype),"ngAfterContentInit",this).call(this)}},{key:"ngOnDestroy",value:function(){h(_(n.prototype),"ngOnDestroy",this).call(this)}}]),n}($z)).\u0275fac=function(e){return new(e||Wz)(ls(Ol),ls(Fz),ls(ql),mi("tabindex"))},Wz.\u0275dir=bt({type:Wz,selectors:[["mat-nested-tree-node"]],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[bl([{provide:$z,useExisting:Wz},{provide:Nz,useExisting:Wz},{provide:Mz,useExisting:Wz}]),jo]}),Wz),oG=((Uz=function(e){f(n,e);var t=m(n);function n(){return b(this,n),t.apply(this,arguments)}return w(n,[{key:"level",get:function(){return this._level},set:function(e){this._setLevelInput(e)}},{key:"indent",get:function(){return this._indent},set:function(e){this._setIndentInput(e)}}]),n}(Zz)).\u0275fac=function(e){return sG(e||Uz)},Uz.\u0275dir=bt({type:Uz,selectors:[["","matTreeNodePadding",""]],inputs:{level:["matTreeNodePadding","level"],indent:["matTreeNodePaddingIndent","indent"]},features:[bl([{provide:Zz,useExisting:Uz}]),jo]}),Uz),sG=fi(oG),lG=((Yz=function e(t,n){b(this,e),this.viewContainer=t,this._node=n}).\u0275fac=function(e){return new(e||Yz)(ls(du),ls(Mz,8))},Yz.\u0275dir=bt({type:Yz,selectors:[["","matTreeNodeOutlet",""]],features:[bl([{provide:Iz,useExisting:Yz}])]}),Yz),uG=((qz=function(e){f(n,e);var t=m(n);function n(){return b(this,n),t.apply(this,arguments)}return n}(Fz)).\u0275fac=function(e){return cG(e||qz)},qz.\u0275cmp=pt({type:qz,selectors:[["mat-tree"]],viewQuery:function(e,t){var n;1&e&&Ku(lG,3),2&e&&$u(n=Ju())&&(t._nodeOutlet=n.first)},hostAttrs:["role","tree",1,"mat-tree","cdk-tree"],exportAs:["matTree"],features:[bl([{provide:Fz,useExisting:qz}]),jo],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(e,t){1&e&&gs(0,0)},directives:[lG],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}\n"],encapsulation:2}),qz),cG=fi(uG),dG=((Qz=function(e){f(n,e);var t=m(n);function n(){return b(this,n),t.apply(this,arguments)}return w(n,[{key:"recursive",get:function(){return this._recursive},set:function(e){this._recursive=Qv(e)}}]),n}(Jz)).\u0275fac=function(e){return hG(e||Qz)},Qz.\u0275dir=bt({type:Qz,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[bl([{provide:Jz,useExisting:Qz}]),jo]}),Qz),hG=fi(dG),fG=((Xz=function e(){b(this,e)}).\u0275fac=function(e){return new(e||Xz)},Xz.\u0275mod=yt({type:Xz}),Xz.\u0275inj=Ne({imports:[[eG,QS],QS]}),Xz),pG=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments))._data=new ep([]),e}return w(n,[{key:"data",get:function(){return this._data.value},set:function(e){this._data.next(e)}},{key:"connect",value:function(e){var t=this;return de(e.viewChange,this._data).pipe(q(function(){return t.data}))}},{key:"disconnect",value:function(){}}]),n}(hO);function mG(){for(var e=arguments.length,t=new Array(e),n=0;n0){var r=i.indexOf(n);-1!==r&&i.splice(r,1)}}},{key:"notifyComplete",value:function(){}},{key:"_next",value:function(e){if(0===this.toRespond.length){var t=[e].concat(a(this.values));this.project?this._tryProject(t):this.destination.next(t)}}},{key:"_tryProject",value:function(e){var t;try{t=this.project.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(eF);function yG(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new bG(e,t,n))}}var _G,bG=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];b(this,e),this.accumulator=t,this.seed=n,this.hasSeed=i}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new kG(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),kG=function(e){f(n,e);var t=m(n);function n(e,i,r,a){var o;return b(this,n),(o=t.call(this,e)).accumulator=i,o._seed=r,o.hasSeed=a,o.index=0,o}return w(n,[{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}},{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(i){this.destination.error(i)}this.seed=t,this.destination.next(t)}}]),n}(P),wG=function(){function e(t){b(this,e),this.predicate=t}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new CG(e,this.predicate))}}]),e}(),CG=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this,e)).predicate=i,r.skipping=!0,r.index=0,r}return w(n,[{key:"_next",value:function(e){var t=this.destination;this.skipping&&this.tryCallPredicate(e),this.skipping||t.next(e)}},{key:"tryCallPredicate",value:function(e){try{var t=this.predicate(e,this.index++);this.skipping=Boolean(t)}catch(n){this.destination.error(n)}}}]),n}(P),xG=["youtubeContainer"],SG=((_G=function(){function e(t,n){b(this,e),this._ngZone=t,this._youtubeContainer=new j,this._destroyed=new j,this._playerChanges=new ep(void 0),this._videoId=new ep(void 0),this._height=new ep(390),this._width=new ep(640),this._startSeconds=new ep(void 0),this._endSeconds=new ep(void 0),this._suggestedQuality=new ep(void 0),this._playerVars=new ep(void 0),this.ready=this._getLazyEmitter("onReady"),this.stateChange=this._getLazyEmitter("onStateChange"),this.error=this._getLazyEmitter("onError"),this.apiChange=this._getLazyEmitter("onApiChange"),this.playbackQualityChange=this._getLazyEmitter("onPlaybackQualityChange"),this.playbackRateChange=this._getLazyEmitter("onPlaybackRateChange"),this._isBrowser=Jh(n)}return w(e,[{key:"videoId",get:function(){return this._videoId.value},set:function(e){this._videoId.next(e)}},{key:"height",get:function(){return this._height.value},set:function(e){this._height.next(e||390)}},{key:"width",get:function(){return this._width.value},set:function(e){this._width.next(e||640)}},{key:"startSeconds",set:function(e){this._startSeconds.next(e)}},{key:"endSeconds",set:function(e){this._endSeconds.next(e)}},{key:"suggestedQuality",set:function(e){this._suggestedQuality.next(e)}},{key:"playerVars",get:function(){return this._playerVars.value},set:function(e){this._playerVars.next(e)}},{key:"ngOnInit",value:function(){var e=this;if(this._isBrowser){var t=fp(!0);if(!window.YT||!window.YT.Player){var i=new j;this._existingApiReadyCallback=window.onYouTubeIframeAPIReady,window.onYouTubeIframeAPIReady=function(){e._existingApiReadyCallback&&e._existingApiReadyCallback(),e._ngZone.run(function(){return i.next(!0)})},t=i.pipe(Qg(1),Rp(!1))}var r,o=function(e,t,i,r,o,s,l){var u,c=rF([t,s]).pipe(mG(rF([r,o])),q(function(e){var t=n(e,2),i=t[0],r=t[1],a=n(i,2),o=a[0],s=a[1],l=n(r,2),u=l[0],c=l[1];return o?{videoId:o,playerVars:s,width:u,height:c}:void 0}));return rF([e,c,fp(l)]).pipe(R(function(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0},t=e.emitEvent;return i={called:!0,emitEvent:t||i.emitEvent}},t(),i.called&&n({emitEvent:i.emitEvent}),e._updateTreeValidity=n}var ZG,JG,ej=new _i("FORMLY_CONFIG"),tj=((JG=function(){function e(){b(this,e),this.types={},this.validators={},this.wrappers={},this.messages={},this.templateManipulators={preWrapper:[],postWrapper:[]},this.extras={checkExpressionOn:"changeDetectionCheck",lazyRender:!1,showError:function(e){return e.formControl&&e.formControl.invalid&&(e.formControl.touched||e.options.parentForm&&e.options.parentForm.submitted||!(!e.field.validation||!e.field.validation.show))}},this.extensions={}}return w(e,[{key:"addConfig",value:function(e){var t=this;e.types&&e.types.forEach(function(e){return t.setType(e)}),e.validators&&e.validators.forEach(function(e){return t.setValidator(e)}),e.wrappers&&e.wrappers.forEach(function(e){return t.setWrapper(e)}),e.manipulators&&(console.warn("NgxFormly: passing 'manipulators' config is deprecated, use custom extension instead."),e.manipulators.forEach(function(e){return t.setManipulator(e)})),e.validationMessages&&e.validationMessages.forEach(function(e){return t.addValidatorMessage(e.name,e.message)}),e.extensions&&e.extensions.forEach(function(e){return t.extensions[e.name]=e.extension}),e.extras&&(this.extras=Object.assign({},this.extras,e.extras))}},{key:"setType",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){return t.setType(e)}):(this.types[e.name]||(this.types[e.name]={name:e.name}),["component","extends","defaultOptions","wrappers"].forEach(function(n){e.hasOwnProperty(n)&&(t.types[e.name][n]=e[n])}))}},{key:"getType",value:function(e){if(!this.types[e])throw new Error('[Formly Error] The type "'.concat(e,'" could not be found. Please make sure that is registered through the FormlyModule declaration.'));return this.mergeExtendedType(e),this.types[e]}},{key:"getMergedField",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.getType(t.type);n.defaultOptions&&jG(t,n.defaultOptions);var i=n.extends&&this.getType(n.extends).defaultOptions;i&&jG(t,i),t&&t.optionsTypes&&t.optionsTypes.forEach(function(n){var i=e.getType(n).defaultOptions;i&&jG(t,i)});var r=this.resolveFieldTypeRef(t);r&&r.instance&&r.instance.defaultOptions&&jG(t,r.instance.defaultOptions),!t.wrappers&&n.wrappers&&(t.wrappers=a(n.wrappers))}},{key:"resolveFieldTypeRef",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e.type)return null;var t=this.getType(e.type);if(!t.component||t._componentRef)return t._componentRef;var n=e.parent.options,i=n._resolver,r=n._injector,a=i.resolveComponentFactory(t.component).create(r);return XG(t,"_componentRef",a),a.destroy(),t._componentRef}},{key:"setWrapper",value:function(e){var t=this;this.wrappers[e.name]=e,e.types&&e.types.forEach(function(n){t.setTypeWrapper(n,e.name)})}},{key:"getWrapper",value:function(e){if(!this.wrappers[e])throw new Error('[Formly Error] The wrapper "'.concat(e,'" could not be found. Please make sure that is registered through the FormlyModule declaration.'));return this.wrappers[e]}},{key:"setTypeWrapper",value:function(e,t){this.types[e]||(this.types[e]={}),this.types[e].wrappers||(this.types[e].wrappers=[]),-1===this.types[e].wrappers.indexOf(t)&&this.types[e].wrappers.push(t)}},{key:"setValidator",value:function(e){this.validators[e.name]=e}},{key:"getValidator",value:function(e){if(!this.validators[e])throw new Error('[Formly Error] The validator "'.concat(e,'" could not be found. Please make sure that is registered through the FormlyModule declaration.'));return this.validators[e]}},{key:"addValidatorMessage",value:function(e,t){this.messages[e]=t}},{key:"getValidatorMessage",value:function(e){return this.messages[e]}},{key:"setManipulator",value:function(e){(new e.class)[e.method](this)}},{key:"mergeExtendedType",value:function(e){if(this.types[e].extends){var t=this.getType(this.types[e].extends);this.types[e].component||(this.types[e].component=t.component),this.types[e].wrappers||(this.types[e].wrappers=t.wrappers)}}}]),e}()).\u0275fac=function(e){return new(e||JG)},JG.\u0275prov=Le({token:JG,factory:JG.\u0275fac,providedIn:"root"}),JG.ngInjectableDef=Fe({factory:function(){return new JG},token:JG,providedIn:"root"}),JG),nj=((ZG=function(){function e(t,n,i){b(this,e),this.formlyConfig=t,this.componentFactoryResolver=n,this.injector=i}return w(e,[{key:"buildForm",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if(!this.formlyConfig.extensions.core)throw new Error("NgxFormly: missing `forRoot()` call. use `forRoot()` when registering the `FormlyModule`.");var a={fieldGroup:n,model:i,formControl:e,options:this._setOptions(r)};KG(e,function(){return t._buildForm(a)}),a.options._checkField(a,!0)}},{key:"_buildForm",value:function(e){var t=this;this.getExtensions().forEach(function(t){return t.prePopulate&&t.prePopulate(e)}),this.getExtensions().forEach(function(t){return t.onPopulate&&t.onPopulate(e)}),e.fieldGroup&&e.fieldGroup.forEach(function(e){return t._buildForm(e)}),this.getExtensions().forEach(function(t){return t.postPopulate&&t.postPopulate(e)})}},{key:"getExtensions",value:function(){var e=this;return Object.keys(this.formlyConfig.extensions).map(function(t){return e.formlyConfig.extensions[t]})}},{key:"_setOptions",value:function(e){var t=this;return(e=e||{}).formState=e.formState||{},e.showError||(e.showError=this.formlyConfig.extras.showError),e.fieldChanges||XG(e,"fieldChanges",new j),e._resolver||XG(e,"_resolver",this.componentFactoryResolver),e._injector||XG(e,"_injector",this.injector),e._hiddenFieldsForCheck||(e._hiddenFieldsForCheck=[]),e._markForCheck||(e._markForCheck=function(t){t._componentRefs&&t._componentRefs.forEach(function(e){e.injector.get(Jl).markForCheck()}),t.fieldGroup&&t.fieldGroup.forEach(function(t){return e._markForCheck(t)})}),e._buildField||(e._buildField=function(e){return t.buildForm(e.form,e.fieldGroup,e.model,e.options),e}),e}}]),e}()).\u0275fac=function(e){return new(e||ZG)(Ni(tj),Ni(Cl),Ni(zo))},ZG.\u0275prov=Le({token:ZG,factory:ZG.\u0275fac,providedIn:"root"}),ZG.ngInjectableDef=Fe({factory:function(){return new ZG(Vi(tj),Vi(Cl),Vi(Ao))},token:ZG,providedIn:"root"}),ZG);function ij(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.formControl.parent;if(n){var i=e.formControl,r={emitEvent:t};if(n instanceof Dk){var a=n.controls.findIndex(function(e){return e===i});-1!==a&&sj(n,r,function(){return n.removeAt(a)})}else if(n instanceof Pk){var o=BG(e),s=o[o.length-1];n.get([s])===i&&sj(n,r,function(){return n.removeControl(s)})}i.setParent(null)}}function rj(e){if(e.formControl)return e.formControl;if(!1===e.shareFormControl)return null;var t=e.parent.formControl;return t?t.get(BG(e)):null}function aj(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(t=t||e.formControl)._fields||XG(t,"_fields",[]),-1===t._fields.indexOf(e)&&t._fields.push(e),!e.formControl&&t&&(XG(e,"formControl",t),e.templateOptions.disabled=!!e.templateOptions.disabled,$G(e.templateOptions,"disabled",function(t){var n=t.firstChange,i=t.currentValue;n||(i?e.formControl.disable():e.formControl.enable())}),t.registerOnDisabledChange&&t.registerOnDisabledChange(function(t){e.templateOptions.___$disabled=t,e.options&&e.options._markForCheck(e)}));var i=e.parent.formControl;if(i&&e.key){var r=BG(e),a=GG(e);UG(t.value)&&UG(a)||t.value===a||!(t instanceof Tk)||t.patchValue(a);for(var o=function(e){var t=r[e];i.get([t])||sj(i,{emitEvent:n},function(){return i.setControl(t,new Pk({}))}),i=i.get([t])},s=0;s0&&void 0!==arguments[0]&&arguments[0];e.clearModelSubscriptions(),e.formlyBuilder.buildForm(e.form,e.fields,e.model,e.options),e.trackModelChanges(e.fields),t&&e.modelChange.emit(e._modelChangeValue=QG(e.model))})}},{key:"checkExpressionChange",value:function(){this.options&&this.options._checkField&&this.options._checkField({fieldGroup:this.fields,model:this.model,formControl:this.form,options:this.options})}},{key:"trackModelChanges",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e.forEach(function(e){if(e.key&&!e.fieldGroup){var i=e.formControl,r=i.valueChanges.pipe(Op(function(e,t){return e===t&&!Array.isArray(e)&&!YG(e)})),o=e.modelOptions,s=o.updateOn,l=o.debounce;(!s||"change"===s)&&l&&l.default>0&&(r=i.valueChanges.pipe(jg(l.default))),t.modelChangeSubs.push(r.subscribe(function(r){i instanceof Tk&&i._fields&&i._fields.length>1&&i.patchValue(r,{emitEvent:!1,onlySelf:!0}),e.parsers&&e.parsers.length>0&&e.parsers.forEach(function(e){return r=e(r)}),t.changeModel({key:[].concat(a(n),a(BG(e))).join("."),value:r,field:e})}));var u=i.valueChanges.observers;u&&u.length>1&&u.unshift(u.pop())}e.fieldGroup&&e.fieldGroup.length>0&&t.trackModelChanges(e.fieldGroup,e.key?[].concat(a(n),a(BG(e))):n)})}},{key:"clearModelSubscriptions",value:function(){this.modelChangeSubs.forEach(function(e){return e.unsubscribe()}),this.modelChangeSubs=[]}},{key:"field",get:function(){return this.fields&&this.fields[0]&&this.fields[0].parent}}]),e}()).\u0275fac=function(e){return new(e||pj)(ls(nj),ls(tj),ls(Oc),mi("immutable"),ls(qk,8))},pj.\u0275cmp=pt({type:pj,selectors:[["formly-form"]],viewQuery:function(e,t){var n;1&e&&Ku(DG,1),2&e&&$u(n=Ju())&&(t.content=n.first)},inputs:{model:"model",fields:"fields",options:"options",form:"form"},outputs:{modelChange:"modelChange"},features:[bl([nj]),It],ngContentSelectors:IG,decls:4,vars:1,consts:[["hide-deprecation","",3,"form","options","model","field",4,"ngFor","ngForOf"],["content",""],["hide-deprecation","",3,"form","options","model","field"]],template:function(e,t){1&e&&(Es(),os(0,MG,1,4,"formly-field",0),ps(1,null,1),Ts(3),ms()),2&e&&us("ngForOf",t.fields)},directives:function(){return[bh,_j]},encapsulation:2}),pj),_j=((fj=function(){function e(t,n,i,r,a){b(this,e),this.formlyConfig=t,this.renderer=n,this.resolver=i,this.elementRef=r,this.warnDeprecation=!1,this.modelChange=new Vu,this.hostObservers=[],this.componentRefs=[],this.hooksObservers=[],this.warnDeprecation=null===a}return w(e,[{key:"model",set:function(e){this.warnDeprecation&&console.warn("NgxFormly: passing 'model' input to '".concat(this.constructor.name,"' component is not required anymore, you may remove it!"))}},{key:"form",set:function(e){this.warnDeprecation&&console.warn("NgxFormly: passing 'form' input to '".concat(this.constructor.name,"' component is not required anymore, you may remove it!"))}},{key:"options",set:function(e){this.warnDeprecation&&console.warn("NgxFormly: passing 'options' input to '".concat(this.constructor.name,"' component is not required anymore, you may remove it!"))}},{key:"ngAfterContentInit",value:function(){this.triggerHook("afterContentInit")}},{key:"ngAfterContentChecked",value:function(){this.triggerHook("afterContentChecked")}},{key:"ngAfterViewInit",value:function(){this.triggerHook("afterViewInit")}},{key:"ngAfterViewChecked",value:function(){this.triggerHook("afterViewChecked")}},{key:"ngDoCheck",value:function(){this.triggerHook("doCheck")}},{key:"ngOnInit",value:function(){this.triggerHook("onInit")}},{key:"ngOnChanges",value:function(e){this.triggerHook("onChanges",e)}},{key:"ngOnDestroy",value:function(){this.resetRefs(this.field),this.hostObservers.forEach(function(e){return e()}),this.hooksObservers.forEach(function(e){return e()}),this.triggerHook("onDestroy")}},{key:"renderField",value:function(e,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(this.containerRef===e&&(this.resetRefs(this.field),this.containerRef.clear(),r=this.field?this.field.wrappers:[]),r&&r.length>0){var a=r,o=t(a),s=o[0],l=o.slice(1),u=this.formlyConfig.getWrapper(s),c=u.component,d=e.createComponent(this.resolver.resolveComponentFactory(c));this.attachComponentRef(d,n),$G(d.instance,"fieldComponent",function(e){var t=e.firstChange,r=e.previousValue,a=e.currentValue;if(a){var o=r?r.detach():null;o&&!o.destroyed?a.insert(o):i.renderField(a,n,l),!t&&d.changeDetectorRef.detectChanges()}})}else if(n&&n.type){var h=this.formlyConfig.getType(n.type),f=h.component,p=e.createComponent(this.resolver.resolveComponentFactory(f));this.attachComponentRef(p,n)}}},{key:"triggerHook",value:function(e,t){if(this.field&&this.field.hooks&&this.field.hooks[e]&&(!t||t.field)){var n=this.field.hooks[e](this.field);if(aO(n)&&-1!==["onInit","afterContentInit","afterViewInit"].indexOf(e)){var i=n.subscribe();this.hooksObservers.push(function(){return i.unsubscribe()})}}this.field&&this.field.lifecycle&&this.field.lifecycle[e]&&this.field.lifecycle[e](this.field.form,this.field,this.field.model,this.field.options),"onChanges"===e&&t.field&&(this.resetRefs(t.field.previousValue),this.render())}},{key:"attachComponentRef",value:function(e,t){this.componentRefs.push(e),t._componentRefs.push(e),Object.assign(e.instance,{field:t})}},{key:"render",value:function(){var e=this;this.field&&(this.hostObservers.forEach(function(e){return e()}),this.hostObservers=[$G(this.field,"hide",function(t){var n=t.firstChange,i=t.currentValue;e.formlyConfig.extras.lazyRender?i?e.containerRef.clear():e.renderField(e.containerRef,e.field):(n&&e.renderField(e.containerRef,e.field),(!n||n&&i)&&e.renderer.setStyle(e.elementRef.nativeElement,"display",i?"none":""))}),$G(this.field,"className",function(t){var n=t.firstChange,i=t.currentValue;(!n||n&&i)&&e.renderer.setAttribute(e.elementRef.nativeElement,"class",i)})])}},{key:"resetRefs",value:function(e){var t=this;e&&(e._componentRefs?e._componentRefs=e._componentRefs.filter(function(e){return-1===t.componentRefs.indexOf(e)}):XG(this.field,"_componentRefs",[])),this.componentRefs=[]}}]),e}()).\u0275fac=function(e){return new(e||fj)(ls(tj),ls(Pl),ls(Cl),ls(Ol),mi("hide-deprecation"))},fj.\u0275cmp=pt({type:fj,selectors:[["formly-field"]],viewQuery:function(e,t){var n;1&e&&Ku(RG,3,du),2&e&&$u(n=Ju())&&(t.containerRef=n.first)},inputs:{model:"model",form:"form",options:"options",field:"field"},outputs:{modelChange:"modelChange"},features:[It],decls:2,vars:0,consts:[["container",""]],template:function(e,t){1&e&&os(0,LG,0,0,"ng-template",null,0,ic)},encapsulation:2}),fj),bj=((hj=function(){function e(t,n,i){b(this,e),this.renderer=t,this.elementRef=n,this.uiAttributesCache={},this.uiAttributes=[].concat(HG,["tabindex","placeholder","readonly","disabled","step"]),this.uiEvents={listeners:[],events:["click","keyup","keydown","keypress"]},this.document=i}return w(e,[{key:"to",get:function(){return this.field.templateOptions||{}}},{key:"fieldAttrElements",get:function(){return this.field&&this.field._elementRefs||[]}},{key:"ngOnChanges",value:function(e){var t=this;e.field&&(this.field.name&&this.setAttribute("name",this.field.name),this.uiEvents.listeners.forEach(function(e){return e()}),this.uiEvents.events.forEach(function(e){t.to&&t.to[e]&&t.uiEvents.listeners.push(t.renderer.listen(t.elementRef.nativeElement,e,function(n){return t.to[e](t.field,n)}))}),this.to&&this.to.attributes&&$G(this.to,"attributes",function(e){var n=e.currentValue,i=e.previousValue;i&&Object.keys(i).forEach(function(e){return t.removeAttribute(e)}),n&&Object.keys(n).forEach(function(e){return t.setAttribute(e,n[e])})}),this.detachElementRef(e.field.previousValue),this.attachElementRef(e.field.currentValue),1===this.fieldAttrElements.length&&(!this.id&&this.field.id&&this.setAttribute("id",this.field.id),$G(this.field,"focus",function(e){var n=e.currentValue;t.toggleFocus(n)}))),e.id&&this.setAttribute("id",this.id)}},{key:"ngDoCheck",value:function(){var e=this;this.uiAttributes.forEach(function(t){var n=e.to[t];e.uiAttributesCache[t]!==n&&(e.uiAttributesCache[t]=n,n||0===n?e.setAttribute(t,!0===n?t:"".concat(n)):e.removeAttribute(t))})}},{key:"ngOnDestroy",value:function(){this.uiEvents.listeners.forEach(function(e){return e()}),this.detachElementRef(this.field)}},{key:"toggleFocus",value:function(e){var t=this,n=this.fieldAttrElements?this.fieldAttrElements[0]:null;if(n&&n.nativeElement.focus){var i=!!this.document.activeElement&&this.fieldAttrElements.some(function(e){var n=e.nativeElement;return t.document.activeElement===n||n.contains(t.document.activeElement)});e&&!i?n.nativeElement.focus():!e&&i&&n.nativeElement.blur()}}},{key:"onFocus",value:function(e){this.field.___$focus=!0,this.to.focus&&this.to.focus(this.field,e)}},{key:"onBlur",value:function(e){this.field.___$focus=!1,this.to.blur&&this.to.blur(this.field,e)}},{key:"onChange",value:function(e){this.to.change&&this.to.change(this.field,e),this.field.formControl&&this.field.formControl.markAsDirty()}},{key:"attachElementRef",value:function(e){e&&(e._elementRefs&&-1===e._elementRefs.indexOf(this.elementRef)?e._elementRefs.push(this.elementRef):XG(e,"_elementRefs",[this.elementRef]))}},{key:"detachElementRef",value:function(e){var t=e&&e._elementRefs?this.fieldAttrElements.indexOf(this.elementRef):-1;-1!==t&&this.field._elementRefs.splice(t,1)}},{key:"setAttribute",value:function(e,t){this.renderer.setAttribute(this.elementRef.nativeElement,e,t)}},{key:"removeAttribute",value:function(e){this.renderer.removeAttribute(this.elementRef.nativeElement,e)}}]),e}()).\u0275fac=function(e){return new(e||hj)(ls(Pl),ls(Ol),ls(sd))},hj.\u0275dir=bt({type:hj,selectors:[["","formlyAttributes",""]],hostBindings:function(e,t){1&e&&ks("focus",function(e){return t.onFocus(e)})("blur",function(e){return t.onBlur(e)})("change",function(e){return t.onChange(e)})},inputs:{field:["formlyAttributes","field"],id:"id"},features:[It]}),hj),kj=((dj=function(){function e(){b(this,e)}return w(e,[{key:"model",get:function(){return this.field.model},set:function(e){console.warn("NgxFormly: passing 'model' input to '".concat(this.constructor.name,"' component is not required anymore, you may remove it!"))}},{key:"form",get:function(){return this.field.parent.formControl},set:function(e){console.warn("NgxFormly: passing 'form' input to '".concat(this.constructor.name,"' component is not required anymore, you may remove it!"))}},{key:"options",get:function(){return this.field.options},set:function(e){console.warn("NgxFormly: passing 'options' input to '".concat(this.constructor.name,"' component is not required anymore, you may remove it!"))}},{key:"key",get:function(){return this.field.key}},{key:"formControl",get:function(){return this.field.formControl}},{key:"to",get:function(){return this.field.templateOptions||{}}},{key:"showError",get:function(){return this.options.showError(this)}},{key:"id",get:function(){return this.field.id}},{key:"formState",get:function(){return this.options.formState||{}}}]),e}()).\u0275fac=function(e){return new(e||dj)},dj.\u0275dir=bt({type:dj,inputs:{model:"model",form:"form",options:"options",field:"field"}}),dj),wj=((cj=function(e){f(n,e);var t=m(n);function n(e){var i;return b(this,n),(i=t.call(this)).defaultOptions={defaultValue:[]},e instanceof nj&&console.warn("NgxFormly: passing 'FormlyFormBuilder' to '".concat(i.constructor.name,"' type is not required anymore, you may remove it!")),i}return w(n,[{key:"formControl",get:function(){return this.field.formControl}},{key:"onPopulate",value:function(e){!e.formControl&&e.key&&aj(e,rj(e)||new Dk([],{updateOn:e.modelOptions.updateOn})),e.fieldGroup=e.fieldGroup||[];var t=e.model?e.model.length:0;if(e.fieldGroup.length>t)for(var n=e.fieldGroup.length-1;n>=t;--n)ij(e.fieldGroup[n]),e.fieldGroup.splice(n,1);for(var i=e.fieldGroup.length;i2&&void 0!==arguments[2]?arguments[2]:{markAsDirty:!0},i=n.markAsDirty;e=UG(e)?this.field.fieldGroup.length:e,this.model||zG(this.field,[]),this.model.splice(e,0,t?QG(t):void 0),this.options._buildForm(!0),i&&this.formControl.markAsDirty()}},{key:"remove",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{markAsDirty:!0},n=t.markAsDirty;this.model.splice(e,1),ij(this.field.fieldGroup[e],!0),this.field.fieldGroup.splice(e,1),this.field.fieldGroup.forEach(function(e,t){return e.key="".concat(t)}),this.options._buildForm(!0),n&&this.formControl.markAsDirty()}}]),n}(kj)).\u0275fac=function(e){return new(e||cj)(ls(ej,8))},cj.\u0275dir=bt({type:cj,selectors:[["fieldArray"]],features:[jo]}),cj),Cj=((uj=function(e){f(n,e);var t=m(n);function n(){return b(this,n),t.apply(this,arguments)}return n}(kj)).\u0275fac=function(e){return xj(e||uj)},uj.\u0275dir=bt({type:uj,viewQuery:function(e,t){var n;1&e&&Ku(FG,1,du),2&e&&$u(n=Ju())&&(t.fieldComponent=n.first)},features:[jo]}),uj),xj=fi(Cj),Sj=((mj=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments)).defaultOptions={defaultValue:{}},e}return n}(kj)).\u0275fac=function(e){return Aj(e||mj)},mj.\u0275cmp=pt({type:mj,selectors:[["formly-group"]],hostVars:2,hostBindings:function(e,t){2&e&&zs(t.field.fieldGroupClassName||"")},features:[jo],ngContentSelectors:IG,decls:2,vars:1,consts:[[3,"field",4,"ngFor","ngForOf"],[3,"field"]],template:function(e,t){1&e&&(Es(),os(0,NG,1,1,"formly-field",0),Ts(1)),2&e&&us("ngForOf",t.field.fieldGroup)},directives:[bh,_j],encapsulation:2}),mj),Aj=fi(Sj),Oj=((vj=function(){function e(t){b(this,e),this.formlyConfig=t}return w(e,[{key:"ngOnChanges",value:function(){var e=this;this.errorMessage$=this.field.formControl.statusChanges.pipe(Rp(null),xp(function(){return aO(e.errorMessage)?e.errorMessage:fp(e.errorMessage)}))}},{key:"errorMessage",get:function(){var e=this.field.formControl;for(var t in e.errors)if(e.errors.hasOwnProperty(t)){var n=this.formlyConfig.getValidatorMessage(t);if(YG(e.errors[t])){if(e.errors[t].errorPath)return;e.errors[t].message&&(n=e.errors[t].message)}return this.field.validation&&this.field.validation.messages&&this.field.validation.messages[t]&&(n=this.field.validation.messages[t]),this.field.validators&&this.field.validators[t]&&this.field.validators[t].message&&(n=this.field.validators[t].message),this.field.asyncValidators&&this.field.asyncValidators[t]&&this.field.asyncValidators[t].message&&(n=this.field.asyncValidators[t].message),"function"==typeof n?n(e.errors[t],this.field):n}}}]),e}()).\u0275fac=function(e){return new(e||vj)(ls(tj))},vj.\u0275cmp=pt({type:vj,selectors:[["formly-validation-message"]],inputs:{field:"field"},features:[It],decls:2,vars:3,template:function(e,t){1&e&&(Js(0),Iu(1,"async")),2&e&&el(Ru(1,1,t.errorMessage$))},pipes:[qh],encapsulation:2,changeDetection:0}),vj),Ej=((gj=function(e){f(n,e);var t=m(n);function n(e){var i;return b(this,n),(i=t.call(this)).sanitizer=e,i.innerHtml={content:null,template:null},i}return w(n,[{key:"template",get:function(){return this.field&&this.field.template!==this.innerHtml.template&&(this.innerHtml={template:this.field.template,content:this.to.safeHtml?this.sanitizer.bypassSecurityTrustHtml(this.field.template):this.field.template}),this.innerHtml.content}}]),n}(kj)).\u0275fac=function(e){return new(e||gj)(ls(Hf))},gj.\u0275cmp=pt({type:gj,selectors:[["formly-template"]],features:[jo],decls:1,vars:1,consts:[[3,"innerHtml"]],template:function(e,t){1&e&&fs(0,"div",0),2&e&&us("innerHtml",t.template,Tr)},encapsulation:2}),gj);function Tj(e,t,n){return e instanceof Function?e.apply(t,n):!!e}var Pj=function(){function e(){b(this,e)}return w(e,[{key:"prePopulate",value:function(e){var t=this;if(!e.parent&&!e.options._checkField){var n=!1;e.options._checkField=function(e,i){n||(n=!0,KG(e.formControl,function(){return t.checkField(e,i)}),n=!1)}}}},{key:"postPopulate",value:function(e){var t=this;if(e.parent&&!e._expressionProperties){if(XG(e,"_expressionProperties",{}),e.expressionProperties){var n=function(n){var i=e.expressionProperties[n];if("string"==typeof i||qG(i))e._expressionProperties[n]={expression:t._evalExpression(n,i,"templateOptions.disabled"===n&&e.parent.expressionProperties&&e.parent.expressionProperties.hasOwnProperty("templateOptions.disabled")?function(){return e.parent.templateOptions.disabled}:void 0)},"templateOptions.disabled"===n&&Object.defineProperty(e._expressionProperties[n],"expressionValue",{get:function(){return e.templateOptions.disabled},set:function(){},enumerable:!0,configurable:!0});else if(i instanceof N){var r=function(){return i.subscribe(function(i){t.setExprValue(e,n,i),e.options&&e.options._markForCheck&&e.options._markForCheck(e)})},a=r(),o=e.hooks.onInit;e.hooks.onInit=function(){return null===a&&(a=r()),o&&o(e)};var s=e.hooks.onDestroy;e.hooks.onDestroy=function(){s&&s(e),a.unsubscribe(),a=null}}};for(var i in e.expressionProperties)n(i)}e.hideExpression?(delete e.hide,e.hideExpression=this._evalExpression("hide",e.hideExpression,function(){for(var t=e.parent;t.parent&&!t.hide;)t=t.parent;return t.hide})):$G(e,"hide",function(t){var n=t.currentValue,i=t.firstChange;e._hide=n,(!i||i&&!0===n)&&e.options._hiddenFieldsForCheck.push(e)})}}},{key:"_evalExpression",value:function(e,t,n){return function(i,r,a){try{return"string"==typeof t&&(t=function(e,t){try{return-1!==e.indexOf("this.field")&&console.warn("NgxFormly: using 'this.field' in expressionProperties is deprecated since v5.1, use 'field' instead."),Function("model","formState","field","return ".concat(e,";"))}catch(n){console.error(n)}}(t)),"function"!=typeof t&&(t=function(){return!!t}),n&&n()||t(i,r,a)}catch(o){throw o.message='[Formly Error] [Expression "'.concat(e,'"] ').concat(o.message),o}}}},{key:"checkField",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._checkField(e,n),e.options._hiddenFieldsForCheck.sort(function(e){return e.hide?-1:1}).forEach(function(e){return t.toggleFormControl(e,!!e.hide,!n)}),e.options._hiddenFieldsForCheck=[]}},{key:"_checkField",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=!1;e.fieldGroup.forEach(function(r){t.checkFieldExpressionChange(r,n)&&(i=!0),t.checkFieldVisibilityChange(r,n)&&(e.options._hiddenFieldsForCheck.push(r),i=!0),r.fieldGroup&&r.fieldGroup.length>0&&t._checkField(r,n)}),i&&e.options&&e.options._markForCheck&&e.options._markForCheck(e)}},{key:"checkFieldExpressionChange",value:function(e,t){if(!e||!e._expressionProperties)return!1;var n=!1,i=e._expressionProperties;for(var r in i){var a=Tj(i[r].expression,{field:e},[e.model,e.options.formState,e]);"templateOptions.disabled"===r&&(a=!!a),!t&&(i[r].expressionValue===a||YG(a)&&JSON.stringify(a)===JSON.stringify(i[r].expressionValue))||(n=!0,i[r].expressionValue=a,this.setExprValue(e,r,a))}return n}},{key:"checkFieldVisibilityChange",value:function(e,t){if(!e||UG(e.hideExpression))return!1;var n=!!Tj(e.hideExpression,{field:e},[e.model,e.options.formState,e]),i=!1;return(n!==e.hide||t)&&(i=!0,e.hide=n,e.templateOptions.hidden=n),i}},{key:"setDisabledState",value:function(e,t){var n=this;e.fieldGroup&&e.fieldGroup.filter(function(e){return!e.expressionProperties||!e.expressionProperties.hasOwnProperty("templateOptions.disabled")}).forEach(function(e){return n.setDisabledState(e,t)}),e.key&&e.templateOptions.disabled!==t&&(e.templateOptions.disabled=t)}},{key:"toggleFormControl",value:function(e,t,n){var i=this;if(e.formControl&&e.key){XG(e,"_hide",!(!t&&!e.hide));var r=e.formControl;r._fields.length>1&&oj(r),!0===t&&r._fields.every(function(e){return!!e._hide})?(ij(e,!0),n&&e.resetOnHide&&(e.formControl.reset({value:void 0,disabled:e.formControl.disabled}),e.fieldGroup&&(zG(e,void 0),e.formControl instanceof Dk&&(e.fieldGroup.length=0)))):!1===t&&(e.resetOnHide&&e.parent&&!WG(e.defaultValue)&&WG(GG(e))&&zG(e,e.defaultValue),aj(e,void 0,!0),e.resetOnHide&&e.fieldArray&&(e.fieldGroup||[]).length!==(e.model||[]).length&&e.options._buildForm(!0))}e.fieldGroup&&e.fieldGroup.filter(function(e){return!e.hideExpression}).forEach(function(e){return i.toggleFormControl(e,t,n)}),e.options.fieldChanges&&e.options.fieldChanges.next({field:e,type:"hidden",value:t})}},{key:"setExprValue",value:function(e,t,n){try{for(var i=e,r=(-1===t.indexOf("[")?t:t.replace(/\[(\w+)\]/g,".$1")).split("."),a=r.length-1,o=0;o0?o:null}}return"function"==typeof t&&(r={name:n,validation:t}),function(t){var a,o=r.validation(t,e,r.options);return(a=o)&&"function"==typeof a.then?o.then(function(t){return i.handleAsyncResult(e,n?!!t:t,r)}):aO(o)?o.pipe(q(function(t){return i.handleAsyncResult(e,n?!!t:t,r)})):i.handleResult(e,n?!!o:o,r)}}},{key:"handleAsyncResult",value:function(e,t,n){return e.options&&e.options._markForCheck&&e.options._markForCheck(e),this.handleResult(e,t,n)}},{key:"handleResult",value:function(t,n,i){var r=i.name,a=i.options;"boolean"==typeof n&&(n=n?null:e({},r,a||!0));var o=t.formControl;return o._childrenErrors&&o._childrenErrors[r]&&o._childrenErrors[r](),YG(n)&&Object.keys(n).forEach(function(i){var r=n[i].errorPath?n[i].errorPath:(a||{}).errorPath,s=r?t.formControl.get(r):null;if(s){var l=Xf(n[i],["errorPath"]);s.setErrors(Object.assign({},s.errors||{},e({},i,l))),!o._childrenErrors&&XG(o,"_childrenErrors",{}),o._childrenErrors[i]=function(){var e=Xf(s.errors||{},["symbol"==typeof i?i:i+""]);s.setErrors(0===Object.keys(e).length?null:e)}}}),n}}]),t}(),Mj=function(){function e(t){b(this,e),this.config=t}return w(e,[{key:"onPopulate",value:function(e){e.parent&&(e.fieldGroup&&!e.key?XG(e,"formControl",e.parent.formControl):this.addFormControl(e))}},{key:"postPopulate",value:function(e){if(!e.parent){var t=this.setValidators(e);0!==t.length&&(1===t.length?t[0].formControl.updateValueAndValidity():e.formControl._updateTreeValidity())}}},{key:"addFormControl",value:function(e){var t=rj(e);if(!t){var n={updateOn:e.modelOptions.updateOn},i=e.key?GG(e):e.defaultValue,r=this.config?this.config.resolveFieldTypeRef(e):null;if(r&&r.componentType&&r.componentType.createControl){var a=r.componentType;console.warn("NgxFormly: '".concat(a.name,"::createControl' is deprecated since v5.0, use 'prePopulate' hook instead.")),t=a.createControl(i,e)}else t=e.fieldGroup?new Pk({},n):new Tk(i,n)}aj(e,t)}},{key:"setValidators",value:function(e){var t=this,n=!1;if(e.key||!e.parent||!e.key&&!e.fieldGroup){var i=e.formControl;!!e.templateOptions&&e.templateOptions.disabled&&i.enabled&&(i.disable({emitEvent:!1,onlySelf:!0}),i.parent?n=!0:oj(i)),null!==i.validator&&null!==i.asyncValidator||(i.setValidators(function(){var n=Eb.compose(t.mergeValidators(e,"_validators"));return n?n(i):null}),i.setAsyncValidators(function(){var n=Eb.composeAsync(t.mergeValidators(e,"_asyncValidators"));return n?n(i):fp(null)}),i.parent?n=!0:oj(i))}var r=n?[e]:[];return(e.fieldGroup||[]).forEach(function(e){var i=t.setValidators(e);n||r.push.apply(r,a(i))}),r}},{key:"mergeValidators",value:function(e,t){var n=this,i=[],r=e.formControl;return r&&r._fields&&r._fields.length>1?r._fields.filter(function(e){return!e._hide}).forEach(function(e){return i.push.apply(i,a(e[t]))}):i.push.apply(i,a(e[t])),e.fieldGroup&&e.fieldGroup.filter(function(e){return!e.key&&e.fieldGroup}).forEach(function(e){return i.push.apply(i,a(n.mergeValidators(e,t)))}),i}}]),e}(),Ij=function(){function e(t){b(this,e),this.formlyConfig=t,this.formId=0}return w(e,[{key:"prePopulate",value:function(e){if(this.getFieldComponentInstance(e).prePopulate(),!e.parent){var t=e.options&&e.options.fieldTransform||this.formlyConfig.extras.fieldTransform;(Array.isArray(t)?t:[t]).forEach(function(t){if(t&&(console.warn("NgxFormly: fieldTransform is deprecated since v5.0, use custom extension instead."),!t(e.fieldGroup,e.model,e.formControl,e.options)))throw new Error("fieldTransform must return an array of fields")})}}},{key:"onPopulate",value:function(e){var t=this;this.initFieldOptions(e),this.getFieldComponentInstance(e).onPopulate(),e.fieldGroup&&e.fieldGroup.forEach(function(n,i){Object.defineProperty(n,"parent",{get:function(){return e},configurable:!0}),Object.defineProperty(n,"index",{get:function(){return i},configurable:!0}),t.formId++})}},{key:"postPopulate",value:function(e){this.getFieldComponentInstance(e).postPopulate()}},{key:"initFieldOptions",value:function(e){var t=e.parent;if(t){if(Object.defineProperty(e,"form",{get:function(){return t.formControl},configurable:!0}),Object.defineProperty(e,"options",{get:function(){return t.options},configurable:!0}),Object.defineProperty(e,"model",{get:function(){return e.key&&e.fieldGroup?GG(e):t.model},configurable:!0}),jG(e,{id:VG("formly_".concat(this.formId),e,e.index),hooks:{},modelOptions:{},templateOptions:e.type&&e.key?{label:"",placeholder:"",focus:!1,disabled:!1}:{}}),this.formlyConfig.extras.resetFieldOnHide&&!1!==e.resetOnHide&&(e.resetOnHide=!0),e.lifecycle&&console.warn("NgxFormly: 'lifecycle' is deprecated since v5.0, use 'hooks' instead."),"formly-template"!==e.type&&(e.template||e.expressionProperties&&e.expressionProperties.template)&&(e.type&&console.warn("NgxFormly: passing 'type' property is not allowed when 'template' is set."),e.type="formly-template"),!e.type&&e.fieldGroup&&(e.type="formly-group"),e.type&&this.formlyConfig.getMergedField(e),e.parent){var n=!WG(e.key)&&!WG(e.defaultValue)&&WG(GG(e))&&(!e.resetOnHide||!(e.hide||e.hideExpression));if(n&&e.resetOnHide){for(var i=e.parent;i&&!i.hideExpression&&!i.hide;)i=i.parent;n=!i||!(i.hideExpression||i.hide)}n&&zG(e,e.defaultValue)}this.initFieldWrappers(e)}}},{key:"initFieldWrappers",value:function(e){e.wrappers=e.wrappers||[];var t=Object.assign({preWrapper:[],postWrapper:[]},e.templateOptions.templateManipulators||{});e.wrappers=[].concat(a(this.formlyConfig.templateManipulators.preWrapper.map(function(t){return t(e)})),a(t.preWrapper.map(function(t){return t(e)})),a(e.wrappers),a(this.formlyConfig.templateManipulators.postWrapper.map(function(t){return t(e)})),a(t.postWrapper.map(function(t){return t(e)}))).filter(function(e,t,n){return e&&t===n.indexOf(e)})}},{key:"getFieldComponentInstance",value:function(e){var t=this.formlyConfig.resolveFieldTypeRef(e),n=t?t.instance:{};return{prePopulate:function(){return n.prePopulate&&n.prePopulate(e)},onPopulate:function(){return n.onPopulate&&n.onPopulate(e)},postPopulate:function(){return n.postPopulate&&n.postPopulate(e)}}}}]),e}();function Rj(e){return{types:[{name:"formly-group",component:Sj},{name:"formly-template",component:Ej}],extensions:[{name:"core",extension:new Ij(e)},{name:"field-validation",extension:new Dj(e)},{name:"field-form",extension:new Mj(e)},{name:"field-expression",extension:new Pj}]}}var Lj,Fj=((Lj=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];b(this,e),n&&n.forEach(function(e){return t.addConfig(e)})}return w(e,null,[{key:"forRoot",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[{provide:ej,multi:!0,useFactory:Rj,deps:[tj]},{provide:ej,useValue:t,multi:!0},{provide:bi,useValue:t,multi:!0},tj,nj]}}},{key:"forChild",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[{provide:ej,multi:!0,useFactory:Rj,deps:[tj]},{provide:ej,useValue:t,multi:!0},{provide:bi,useValue:t,multi:!0},nj]}}}]),e}()).\u0275fac=function(e){return new(e||Lj)(Ni(tj),Ni(ej,8))},Lj.\u0275mod=yt({type:Lj}),Lj.\u0275inj=Ne({imports:[[Zh]]}),Lj),Nj=["matPrefix"],Vj=["matSuffix"],Bj=["fieldComponent"];function Hj(e,t){1&e&&(ds(0,"span",8),Js(1,"*"),hs())}function zj(e,t){if(1&e&&(ds(0,"mat-label"),Js(1),os(2,Hj,2,0,"span",7),hs()),2&e){var n=As();Oa(1),tl(" ",n.to.label," "),Oa(1),us("ngIf",n.to.required&&!0!==n.to.hideRequiredMarker)}}function Gj(e,t){1&e&&gs(0)}function jj(e,t){if(1&e&&(ps(0,9),os(1,Gj,1,0,"ng-container",10),ms()),2&e){var n=As();Oa(1),us("ngTemplateOutlet",n.to.prefix?n.to.prefix:n.formlyField._matprefix)}}function Uj(e,t){1&e&&gs(0)}function Wj(e,t){if(1&e&&(ps(0,11),os(1,Uj,1,0,"ng-container",10),ms()),2&e){var n=As();Oa(1),us("ngTemplateOutlet",n.to.suffix?n.to.suffix:n.formlyField._matsuffix)}}function qj(e,t){if(1&e&&(ds(0,"mat-hint",12),Js(1),hs()),2&e){var n=As();us("id",null),Oa(1),el(n.to.description)}}var Yj,Qj,Xj,$j=function(){function e(t){b(this,e),this.field=t}return w(e,[{key:"isErrorState",value:function(e,t){return this.field&&this.field.showError}}]),e}(),Kj=((Yj=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments)).errorStateMatcher=new $j(v(e)),e.stateChanges=new j,e._errorState=!1,e}return w(n,[{key:"formFieldControl",get:function(){return this._control||this},set:function(e){this._control=e,this.formField&&e!==this.formField._control&&(this.formField._control=e)}},{key:"ngOnInit",value:function(){this.formField&&(this.formField._control=this.formFieldControl)}},{key:"ngAfterViewInit",value:function(){var e=this;(this.matPrefix||this.matSuffix)&&setTimeout(function(){XG(e.field,"_matprefix",e.matPrefix),XG(e.field,"_matsuffix",e.matSuffix),e.options._markForCheck(e.field)})}},{key:"ngOnDestroy",value:function(){this.formField&&delete this.formField._control,this.stateChanges.complete()}},{key:"setDescribedByIds",value:function(e){}},{key:"onContainerClick",value:function(e){this.field.focus=!0,this.stateChanges.next()}},{key:"errorState",get:function(){var e=this.options.showError(this);return e!==this._errorState&&(this._errorState=e,this.stateChanges.next()),e}},{key:"controlType",get:function(){return this.to.type?this.to.type:this.field.type instanceof wi?this.field.type.constructor.name:this.field.type}},{key:"focused",get:function(){return!!this.field.focus&&!this.disabled}},{key:"disabled",get:function(){return!!this.to.disabled}},{key:"required",get:function(){return!!this.to.required}},{key:"placeholder",get:function(){return this.to.placeholder||""}},{key:"shouldPlaceholderFloat",get:function(){return this.shouldLabelFloat}},{key:"value",get:function(){return this.formControl.value},set:function(e){this.formControl.patchValue(e)}},{key:"ngControl",get:function(){return this.formControl}},{key:"empty",get:function(){return null==this.value||""===this.value}},{key:"shouldLabelFloat",get:function(){return this.focused||!this.empty}},{key:"formField",get:function(){return this.field?this.field.__formField__:null}}]),n}(kj)).\u0275fac=function(e){return Zj(e||Yj)},Yj.\u0275dir=bt({type:Yj,viewQuery:function(e,t){var n;1&e&&(Ku(Nj,1),Ku(Vj,1)),2&e&&($u(n=Ju())&&(t.matPrefix=n.first),$u(n=Ju())&&(t.matSuffix=n.first))},features:[jo]}),Yj),Zj=fi(Kj),Jj=((Xj=function(e){f(n,e);var t=m(n);function n(e,i,r,a){var o;return b(this,n),(o=t.call(this)).config=e,o.renderer=i,o.elementRef=r,o.focusMonitor=a,o.stateChanges=new j,o._errorState=!1,o.initialGapCalculated=!1,o}return w(n,[{key:"ngOnInit",value:function(){var e=this;this.formField._control=this,XG(this.field,"__formField__",this.formField);var t=this.config.resolveFieldTypeRef(this.formlyField);!t||t.instance instanceof Kj||console.warn("Component '".concat(t.componentType.name,"' must extend 'FieldType' from '@ngx-formly/material/form-field'.")),this.formlyField.hide&&"outline"===this.formlyField.templateOptions.appearance&&(this.initialGapCalculated=!0),this.focusMonitor.monitor(this.elementRef,!0).subscribe(function(t){!t&&e.field.focus&&(e.field.focus=!1),e.stateChanges.next()})}},{key:"ngAfterContentChecked",value:function(){this.initialGapCalculated&&!this.formlyField.hide&&(this.formField.updateOutlineGap(),this.initialGapCalculated=!0)}},{key:"ngAfterViewInit",value:function(){if("outline"!==this.formField.appearance&&!0===this.to.hideFieldUnderline){var e=this.formField._elementRef.nativeElement.querySelector(".mat-form-field-underline");e&&this.renderer.removeChild(e.parentNode,e)}}},{key:"ngOnDestroy",value:function(){delete this.formlyField.__formField__,this.stateChanges.complete(),this.focusMonitor.stopMonitoring(this.elementRef)}},{key:"setDescribedByIds",value:function(e){}},{key:"onContainerClick",value:function(e){this.formlyField.focus=!0,this.stateChanges.next()}},{key:"errorState",get:function(){var e=this.options.showError(this);return e!==this._errorState&&(this._errorState=e,this.stateChanges.next()),e}},{key:"controlType",get:function(){return this.to.type}},{key:"focused",get:function(){return!!this.formlyField.focus&&!this.disabled}},{key:"disabled",get:function(){return!!this.to.disabled}},{key:"required",get:function(){return!!this.to.required}},{key:"placeholder",get:function(){return this.to.placeholder||""}},{key:"shouldPlaceholderFloat",get:function(){return this.shouldLabelFloat}},{key:"value",get:function(){return this.formControl.value}},{key:"ngControl",get:function(){return this.formControl}},{key:"empty",get:function(){return!this.formControl.value}},{key:"shouldLabelFloat",get:function(){return this.focused||!this.empty}},{key:"formlyField",get:function(){return this.field}}]),n}(Cj)).\u0275fac=function(e){return new(e||Xj)(ls(tj),ls(Pl),ls(Ol),ls(Jw))},Xj.\u0275cmp=pt({type:Xj,selectors:[["formly-wrapper-mat-form-field"]],viewQuery:function(e,t){var n;1&e&&(Ku(Bj,3,du),Ku(wT,3)),2&e&&($u(n=Ju())&&(t.fieldComponent=n.first),$u(n=Ju())&&(t.formField=n.first))},features:[bl([{provide:lT,useExisting:Xj}]),jo],decls:9,vars:11,consts:[[3,"hideRequiredMarker","floatLabel","appearance","color"],["fieldComponent",""],[4,"ngIf"],["matPrefix","",4,"ngIf"],["matSuffix","",4,"ngIf"],[3,"field"],[3,"id",4,"ngIf"],["class","mat-form-field-required-marker",4,"ngIf"],[1,"mat-form-field-required-marker"],["matPrefix",""],[4,"ngTemplateOutlet"],["matSuffix",""],[3,"id"]],template:function(e,t){1&e&&(ds(0,"mat-form-field",0),gs(1,null,1),os(3,zj,3,2,"mat-label",2),os(4,jj,2,1,"ng-container",3),os(5,Wj,2,1,"ng-container",4),ds(6,"mat-error"),fs(7,"formly-validation-message",5),hs(),os(8,qj,2,2,"mat-hint",6),hs()),2&e&&(Bs("width","100%"),us("hideRequiredMarker",!0)("floatLabel",t.to.floatLabel)("appearance",t.to.appearance)("color",t.to.color),Oa(3),us("ngIf",t.to.label&&!0!==t.to.hideLabel),Oa(1),us("ngIf",t.to.prefix||t.formlyField._matprefix),Oa(1),us("ngIf",t.to.suffix||t.formlyField._matsuffix),Oa(2),us("field",t.field),Oa(1),us("ngIf",t.to.description))},directives:[wT,wh,oT,Oj,hT,mT,Lh,vT,dT],encapsulation:2}),Xj),eU=((Qj=function e(){b(this,e)}).\u0275fac=function(e){return new(e||Qj)},Qj.\u0275mod=yt({type:Qj}),Qj.\u0275inj=Ne({imports:[[Zh,Kk,CT,Fj.forChild({wrappers:[{name:"form-field",component:Jj}]})]]}),Qj);function tU(e,t){if(1&e&&fs(0,"input",2),2&e){var n=As();us("id",n.id)("type",n.type||"text")("readonly",n.to.readonly)("required",n.to.required)("errorStateMatcher",n.errorStateMatcher)("formControl",n.formControl)("formlyAttributes",n.field)("tabindex",n.to.tabindex)("placeholder",n.to.placeholder)}}function nU(e,t){if(1&e&&fs(0,"input",3),2&e){var n=As();us("id",n.id)("readonly",n.to.readonly)("required",n.to.required)("errorStateMatcher",n.errorStateMatcher)("formControl",n.formControl)("formlyAttributes",n.field)("tabIndex",n.to.tabindex)("placeholder",n.to.placeholder)}}var iU,rU,aU,oU,sU,lU,uU=((iU=function(e){f(n,e);var t=m(n);function n(){return b(this,n),t.apply(this,arguments)}return w(n,[{key:"type",get:function(){return this.to.type||"text"}}]),n}(Kj)).\u0275fac=function(e){return cU(e||iU)},iU.\u0275cmp=pt({type:iU,selectors:[["formly-field-mat-input"]],viewQuery:function(e,t){var n;1&e&&Ku(vM,1),2&e&&$u(n=Ju())&&(t.formFieldControl=n.first)},features:[jo],decls:3,vars:2,consts:[["matInput","",3,"id","type","readonly","required","errorStateMatcher","formControl","formlyAttributes","tabindex","placeholder",4,"ngIf","ngIfElse"],["numberTmp",""],["matInput","",3,"id","type","readonly","required","errorStateMatcher","formControl","formlyAttributes","tabindex","placeholder"],["matInput","","type","number",3,"id","readonly","required","errorStateMatcher","formControl","formlyAttributes","tabIndex","placeholder"]],template:function(e,t){if(1&e&&(os(0,tU,1,9,"input",0),os(1,nU,1,8,"ng-template",null,1,ic)),2&e){var n=ss(2);us("ngIf","number"!==t.type)("ngIfElse",n)}},directives:[wh,vM,wb,Qk,Zb,Uk,bj,Hk],encapsulation:2}),iU),cU=fi(uU),dU=((aU=function e(){b(this,e)}).\u0275fac=function(e){return new(e||aU)},aU.\u0275mod=yt({type:aU}),aU.\u0275inj=Ne({imports:[[Zh,Kk,yM,eU,Fj.forChild({types:[{name:"input",component:uU,wrappers:["form-field"]}]})]]}),aU),hU=((rU=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments)).defaultOptions={templateOptions:{cols:1,rows:1}},e}return n}(Kj)).\u0275fac=function(e){return fU(e||rU)},rU.\u0275cmp=pt({type:rU,selectors:[["formly-field-mat-textarea"]],viewQuery:function(e,t){var n;1&e&&Ku(vM,3),2&e&&$u(n=Ju())&&(t.formFieldControl=n.first)},features:[bl([{provide:fM,useExisting:rU}]),jo],decls:2,vars:15,consts:[["matInput","",3,"id","readonly","required","formControl","errorStateMatcher","cols","rows","formlyAttributes","placeholder","tabindex","cdkTextareaAutosize","cdkAutosizeMinRows","cdkAutosizeMaxRows"]],template:function(e,t){1&e&&(ds(0,"textarea",0),Js(1," "),hs()),2&e&&(Hs("cdk-textarea-autosize",t.to.autosize),us("id",t.id)("readonly",t.to.readonly)("required",t.to.required)("formControl",t.formControl)("errorStateMatcher",t.errorStateMatcher)("cols",t.to.cols)("rows",t.to.rows)("formlyAttributes",t.field)("placeholder",t.to.placeholder)("tabindex",t.to.tabindex)("cdkTextareaAutosize",t.to.autosize)("cdkAutosizeMinRows",t.to.autosizeMinRows)("cdkAutosizeMaxRows",t.to.autosizeMaxRows))},directives:[vM,wb,uM,Qk,Zb,Uk,bj],encapsulation:2}),rU),fU=fi(hU),pU=((lU=function e(){b(this,e)}).\u0275fac=function(e){return new(e||lU)},lU.\u0275mod=yt({type:lU}),lU.\u0275inj=Ne({imports:[[Zh,Kk,yM,eU,Fj.forChild({types:[{name:"textarea",component:hU,wrappers:["form-field"]}]})]]}),lU),mU=((sU=function(){function e(){b(this,e)}return w(e,[{key:"transform",value:function(e,t){var n=this;return e instanceof N||(e=fp(e)),e.pipe(q(function(e){return n.toOptions(e,t||{})}))}},{key:"toOptions",value:function(e,t){var n=this,i=[],r={},a=t.templateOptions||{};return a._flatOptions=!0,e.map(function(e){n.getGroupProp(e,a)?(a._flatOptions=!1,r[n.getGroupProp(e,a)]||(r[n.getGroupProp(e,a)]=[],i.push({label:n.getGroupProp(e,a),group:r[n.getGroupProp(e,a)]})),r[n.getGroupProp(e,a)].push(n.toOption(e,a))):i.push(n.toOption(e,a))}),i}},{key:"toOption",value:function(e,t){return{label:this.getLabelProp(e,t),value:this.getValueProp(e,t),disabled:this.getDisabledProp(e,t)||!1}}},{key:"getLabelProp",value:function(e,t){return"function"==typeof t.labelProp?t.labelProp(e):this.shouldUseLegacyOption(e,t)?(console.warn("NgxFormly: legacy select option '{key, value}' is deprecated since v5.5, use '{value, label}' instead."),e.value):e[t.labelProp||"label"]}},{key:"getValueProp",value:function(e,t){return"function"==typeof t.valueProp?t.valueProp(e):this.shouldUseLegacyOption(e,t)?e.key:e[t.valueProp||"value"]}},{key:"getDisabledProp",value:function(e,t){return"function"==typeof t.disabledProp?t.disabledProp(e):e[t.disabledProp||"disabled"]}},{key:"getGroupProp",value:function(e,t){return"function"==typeof t.groupProp?t.groupProp(e):e[t.groupProp||"group"]}},{key:"shouldUseLegacyOption",value:function(e,t){return!t.valueProp&&!t.labelProp&&null!=e&&"object"==typeof e&&"key"in e&&"value"in e}}]),e}()).\u0275fac=function(e){return new(e||sU)},sU.\u0275pipe=kt({name:"formlySelectOptions",type:sU,pure:!0}),sU),gU=((oU=function e(){b(this,e)}).\u0275fac=function(e){return new(e||oU)},oU.\u0275mod=yt({type:oU}),oU.\u0275inj=Ne({}),oU);function vU(e,t){if(1&e&&(ds(0,"mat-radio-button",2),Js(1),hs()),2&e){var n=t.$implicit,i=t.index,r=As();us("id",r.id+"_"+i)("color",r.to.color)("labelPosition",r.to.labelPosition)("disabled",n.disabled)("value",n.value),Oa(1),tl(" ",n.label," ")}}var yU,_U,bU=((yU=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments)).defaultOptions={templateOptions:{hideFieldUnderline:!0,floatLabel:"always",options:[],tabindex:-1}},e}return w(n,[{key:"ngAfterViewInit",value:function(){var e=this;this.focusObserver=$G(this.field,"focus",function(t){var n=t.currentValue;-1===e.to.tabindex&&n&&e.radioGroup._radios.length>0&&setTimeout(function(){(e.radioGroup.selected?e.radioGroup.selected:e.radioGroup._radios.first)._elementRef.nativeElement.focus({preventScroll:!0})})})}},{key:"onContainerClick",value:function(){}},{key:"ngOnDestroy",value:function(){this.focusObserver&&this.focusObserver()}}]),n}(Kj)).\u0275fac=function(e){return kU(e||yU)},yU.\u0275cmp=pt({type:yU,selectors:[["formly-field-mat-radio"]],viewQuery:function(e,t){var n;1&e&&Ku(SN,1),2&e&&$u(n=Ju())&&(t.radioGroup=n.first)},features:[jo],decls:4,vars:10,consts:[[3,"formControl","formlyAttributes","required","tabindex"],[3,"id","color","labelPosition","disabled","value",4,"ngFor","ngForOf"],[3,"id","color","labelPosition","disabled","value"]],template:function(e,t){1&e&&(ds(0,"mat-radio-group",0),os(1,vU,2,6,"mat-radio-button",1),Iu(2,"async"),Iu(3,"formlySelectOptions"),hs()),2&e&&(us("formControl",t.formControl)("formlyAttributes",t.field)("required",t.to.required)("tabindex",t.to.tabindex),Oa(1),us("ngForOf",Ru(2,5,Lu(3,7,t.to.options,t.field))))},directives:[SN,Zb,Uk,bj,Qk,bh,TN],pipes:[qh,mU],encapsulation:2}),yU),kU=fi(bU),wU=((_U=function e(){b(this,e)}).\u0275fac=function(e){return new(e||_U)},_U.\u0275mod=yt({type:_U}),_U.\u0275inj=Ne({imports:[[Zh,Kk,PN,eU,gU,Fj.forChild({types:[{name:"radio",component:bU,wrappers:["form-field"]}]})]]}),_U);function CU(e,t){1&e&&(ds(0,"span",2),Js(1,"*"),hs())}var xU,SU,AU=((SU=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this)).renderer=e,r.focusMonitor=i,r.defaultOptions={templateOptions:{hideFieldUnderline:!0,indeterminate:!0,floatLabel:"always",hideLabel:!0,align:"start",color:"accent"}},r}return w(n,[{key:"onContainerClick",value:function(e){this.checkbox.focus(),h(_(n.prototype),"onContainerClick",this).call(this,e)}},{key:"ngAfterViewInit",value:function(){var e=this;this.focusMonitor.monitor(this.checkbox._inputElement,!0).subscribe(function(t){t?e.to.focus&&e.to.focus(e.field):e.to.blur&&e.to.blur(e.field)})}},{key:"ngAfterViewChecked",value:function(){if(this.required!==this._required&&this.checkbox&&this.checkbox._inputElement){this._required=this.required;var e=this.checkbox._inputElement.nativeElement;this.required?this.renderer.setAttribute(e,"required","required"):this.renderer.removeAttribute(e,"required")}}},{key:"ngOnDestroy",value:function(){this.checkbox&&this.focusMonitor.stopMonitoring(this.checkbox._inputElement)}}]),n}(Kj)).\u0275fac=function(e){return new(e||SU)(ls(Pl),ls(Jw))},SU.\u0275cmp=pt({type:SU,selectors:[["formly-field-mat-checkbox"]],viewQuery:function(e,t){var n;1&e&&Ku(lD,1),2&e&&$u(n=Ju())&&(t.checkbox=n.first)},features:[jo],decls:3,vars:9,consts:[[3,"formControl","id","formlyAttributes","tabIndex","indeterminate","color","labelPosition"],["class","mat-form-field-required-marker",4,"ngIf"],[1,"mat-form-field-required-marker"]],template:function(e,t){1&e&&(ds(0,"mat-checkbox",0),Js(1),os(2,CU,2,0,"span",1),hs()),2&e&&(us("formControl",t.formControl)("id",t.id)("formlyAttributes",t.field)("tabIndex",t.to.tabindex)("indeterminate",t.to.indeterminate&&null===t.formControl.value)("color",t.to.color)("labelPosition",t.to.align||t.to.labelPosition),Oa(1),tl(" ",t.to.label," "),Oa(1),us("ngIf",t.to.required&&!0!==t.to.hideRequiredMarker))},directives:[lD,Zb,Uk,bj,wh],encapsulation:2}),SU),OU=((xU=function e(){b(this,e)}).\u0275fac=function(e){return new(e||xU)},xU.\u0275mod=yt({type:xU}),xU.\u0275inj=Ne({imports:[[Zh,Kk,cD,eU,Fj.forChild({types:[{name:"checkbox",component:AU,wrappers:["form-field"]}]})]]}),xU);function EU(e,t){if(1&e){var n=vs();ps(0),ds(1,"mat-checkbox",1),ks("change",function(e){rn(n);var i=t.$implicit;return As().onChange(i.value,e.checked)}),Js(2),hs(),ms()}if(2&e){var i=t.$implicit,r=t.index,a=As();Oa(1),us("id",a.id+"_"+r)("formlyAttributes",a.field)("tabIndex",a.to.tabindex)("color",a.to.color)("labelPosition",a.to.labelPosition)("checked",a.isChecked(i))("disabled",a.formControl.disabled),Oa(1),tl(" ",i.label," ")}}var TU,PU,DU=((TU=function(t){f(i,t);var n=m(i);function i(){var e;return b(this,i),(e=n.apply(this,arguments)).defaultOptions={templateOptions:{hideFieldUnderline:!0,floatLabel:"always",options:[],color:"accent"}},e}return w(i,[{key:"onChange",value:function(t,n){this.formControl.patchValue("array"===this.to.type?n?[].concat(a(this.formControl.value||[]),[t]):a(this.formControl.value||[]).filter(function(e){return e!==t}):Object.assign({},this.formControl.value,e({},t,n))),this.formControl.markAsTouched()}},{key:"onContainerClick",value:function(){}},{key:"isChecked",value:function(e){var t=this.formControl.value;return t&&("array"===this.to.type?-1!==t.indexOf(e.value):t[e.value])}}]),i}(Kj)).\u0275fac=function(e){return MU(e||TU)},TU.\u0275cmp=pt({type:TU,selectors:[["formly-field-mat-multicheckbox"]],viewQuery:function(e,t){var n;1&e&&Ku(lD,1),2&e&&$u(n=Ju())&&(t.checkboxes=n)},features:[jo],decls:3,vars:6,consts:[[4,"ngFor","ngForOf"],[3,"id","formlyAttributes","tabIndex","color","labelPosition","checked","disabled","change"]],template:function(e,t){1&e&&(os(0,EU,3,8,"ng-container",0),Iu(1,"async"),Iu(2,"formlySelectOptions")),2&e&&us("ngForOf",Ru(1,1,Lu(2,3,t.to.options,t.field)))},directives:[bh,lD,bj],pipes:[qh,mU],encapsulation:2}),TU),MU=fi(DU),IU=((PU=function e(){b(this,e)}).\u0275fac=function(e){return new(e||PU)},PU.\u0275mod=yt({type:PU}),PU.\u0275inj=Ne({imports:[[Zh,Kk,cD,eU,gU,Fj.forChild({types:[{name:"multicheckbox",component:DU,wrappers:["form-field"]}]})]]}),PU);function RU(e,t){if(1&e){var n=vs();ds(0,"mat-option",3),ks("click",function(){rn(n);var e=t.selectOptions;return As().toggleSelectAll(e)}),fs(1,"mat-pseudo-checkbox",4),Js(2),hs()}if(2&e){var i=t.selectOptions,r=As();Oa(1),us("state",r.getSelectAllState(i)),Oa(1),tl(" ",r.to.selectAllOption," ")}}var LU=function(e){return{selectOptions:e}};function FU(e,t){if(1&e&&gs(0,7),2&e){var n=As().ngIf;As(),us("ngTemplateOutlet",ss(1))("ngTemplateOutletContext",Au(2,LU,n))}}function NU(e,t){if(1&e&&(ds(0,"mat-option",12),Js(1),hs()),2&e){var n=t.$implicit;us("value",n.value)("disabled",n.disabled),Oa(1),tl(" ",n.label," ")}}function VU(e,t){if(1&e&&(ds(0,"mat-optgroup",10),os(1,NU,2,3,"mat-option",11),hs()),2&e){var n=As().$implicit;us("label",n.label),Oa(1),us("ngForOf",n.group)}}function BU(e,t){if(1&e&&(ds(0,"mat-option",12),Js(1),hs()),2&e){var n=As().$implicit;us("value",n.value)("disabled",n.disabled),Oa(1),el(n.label)}}function HU(e,t){if(1&e&&(ps(0),os(1,VU,2,2,"mat-optgroup",8),os(2,BU,2,3,"mat-option",9),ms()),2&e){var n=t.$implicit;Oa(1),us("ngIf",n.group),Oa(1),us("ngIf",!n.group)}}function zU(e,t){if(1&e&&(ps(0),os(1,FU,1,4,"ng-container",5),os(2,HU,3,2,"ng-container",6),ms()),2&e){var n=t.ngIf,i=As();Oa(1),us("ngIf",i.to.multiple&&i.to.selectAllOption),Oa(1),us("ngForOf",n)}}var GU,jU,UU,WU=((GU=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments)).defaultOptions={templateOptions:{options:[],compareWith:function(e,t){return e===t}}},e}return w(n,[{key:"getSelectAllState",value:function(e){return this.empty||0===this.value.length?"":this.value.length!==this.getSelectAllValue(e).length?"indeterminate":"checked"}},{key:"toggleSelectAll",value:function(e){var t=this.getSelectAllValue(e);this.formControl.setValue(this.value&&this.value.length===t.length?[]:t)}},{key:"change",value:function(e){this.to.change&&this.to.change(this.field,e)}},{key:"_getAriaLabelledby",value:function(){return this.to.attributes&&this.to.attributes["aria-labelledby"]?this.to.attributes["aria-labelledby"]:this.formField&&this.formField._labelId?this.formField._labelId:null}},{key:"getSelectAllValue",value:function(e){if(!this.selectAllValue||e!==this.selectAllValue.options){var t=[];e.forEach(function(e){return e.group?t.push.apply(t,a(e.group)):t.push(e)}),this.selectAllValue={options:e,value:t.filter(function(e){return!e.disabled}).map(function(e){return e.value})}}return this.selectAllValue.value}}]),n}(Kj)).\u0275fac=function(e){return qU(e||GU)},GU.\u0275cmp=pt({type:GU,selectors:[["formly-field-mat-select"]],viewQuery:function(e,t){var n;1&e&&Ku(KL,3),2&e&&$u(n=Ju())&&(t.formFieldControl=n.first)},features:[jo],decls:6,vars:17,consts:[["selectAll",""],[3,"id","formControl","formlyAttributes","placeholder","tabIndex","required","compareWith","multiple","errorStateMatcher","aria-labelledby","disableOptionCentering","selectionChange"],[4,"ngIf"],[3,"click"],[1,"mat-option-pseudo-checkbox",3,"state"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"label",4,"ngIf"],[3,"value","disabled",4,"ngIf"],[3,"label"],[3,"value","disabled",4,"ngFor","ngForOf"],[3,"value","disabled"]],template:function(e,t){1&e&&(os(0,RU,3,2,"ng-template",null,0,ic),ds(2,"mat-select",1),ks("selectionChange",function(e){return t.change(e)}),os(3,zU,3,2,"ng-container",2),Iu(4,"async"),Iu(5,"formlySelectOptions"),hs()),2&e&&(Oa(2),us("id",t.id)("formControl",t.formControl)("formlyAttributes",t.field)("placeholder",t.to.placeholder)("tabIndex",t.to.tabindex)("required",t.to.required)("compareWith",t.to.compareWith)("multiple",t.to.multiple)("errorStateMatcher",t.errorStateMatcher)("aria-labelledby",t._getAriaLabelledby())("disableOptionCentering",t.to.disableOptionCentering),Oa(1),us("ngIf",Ru(4,12,Lu(5,14,t.to.options,t.field))))},directives:[KL,Zb,Uk,bj,Qk,wh,JA,zA,bh,Lh,QA],pipes:[qh,mU],encapsulation:2}),GU),qU=fi(WU),YU=((UU=function e(){b(this,e)}).\u0275fac=function(e){return new(e||UU)},UU.\u0275mod=yt({type:UU}),UU.\u0275inj=Ne({imports:[[Zh,Kk,JL,GA,eU,gU,Fj.forChild({types:[{name:"select",component:WU,wrappers:["form-field"]}]})]]}),UU),QU=((jU=function e(){b(this,e)}).\u0275fac=function(e){return new(e||jU)},jU.\u0275mod=yt({type:jU}),jU.\u0275inj=Ne({imports:[[eU,dU,pU,wU,OU,IU,YU]]}),jU),XU=["datepickerToggle"];function $U(e,t){if(1&e&&fs(0,"mat-datepicker-toggle",4),2&e){var n=As(),i=ss(4);us("disabled",n.to.disabled)("for",i)}}var KU,ZU,JU,eW,tW,nW=((KU=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments)).defaultOptions={templateOptions:{datepickerOptions:{startView:"month",datepickerTogglePosition:"suffix",dateInput:function(){},dateChange:function(){},monthSelected:function(){},yearSelected:function(){}}}},e}return w(n,[{key:"ngAfterViewInit",value:function(){var e=this;h(_(n.prototype),"ngAfterViewInit",this).call(this),this.datepickerInput._formField=this.formField,setTimeout(function(){XG(e.field,"_mat"+e.to.datepickerOptions.datepickerTogglePosition,e.datepickerToggle),e.options._markForCheck(e.field)})}}]),n}(Kj)).\u0275fac=function(e){return iW(e||KU)},KU.\u0275cmp=pt({type:KU,selectors:[["formly-field-mat-datepicker"]],viewQuery:function(e,t){var n;1&e&&(Ku(vM,3),Ku(RI,1),Ku(XU,1)),2&e&&($u(n=Ju())&&(t.formFieldControl=n.first),$u(n=Ju())&&(t.datepickerInput=n.first),$u(n=Ju())&&(t.datepickerToggle=n.first))},features:[jo],decls:5,vars:20,consts:[["matInput","",3,"id","errorStateMatcher","formControl","matDatepicker","matDatepickerFilter","max","min","formlyAttributes","placeholder","tabindex","readonly","required","dateInput","dateChange"],["datepickerToggle",""],[3,"color","dateClass","disabled","opened","panelClass","startAt","startView","touchUi","monthSelected","yearSelected"],["picker",""],[3,"disabled","for"]],template:function(e,t){if(1&e){var n=vs();ds(0,"input",0),ks("dateInput",function(e){return t.to.datepickerOptions.dateInput(t.field,e)})("dateChange",function(e){return t.to.datepickerOptions.dateChange(t.field,e)}),hs(),os(1,$U,1,2,"ng-template",null,1,ic),ds(3,"mat-datepicker",2,3),ks("monthSelected",function(e){rn(n);var i=ss(4);return t.to.datepickerOptions.monthSelected(t.field,e,i)})("yearSelected",function(e){rn(n);var i=ss(4);return t.to.datepickerOptions.yearSelected(t.field,e,i)}),hs()}if(2&e){var i=ss(4);us("id",t.id)("errorStateMatcher",t.errorStateMatcher)("formControl",t.formControl)("matDatepicker",i)("matDatepickerFilter",t.to.datepickerOptions.filter)("max",t.to.datepickerOptions.max)("min",t.to.datepickerOptions.min)("formlyAttributes",t.field)("placeholder",t.to.placeholder)("tabindex",t.to.tabindex)("readonly",t.to.readonly)("required",t.to.required),Oa(3),us("color",t.to.color)("dateClass",t.to.datepickerOptions.dateClass)("disabled",t.to.datepickerOptions.disabled)("opened",t.to.datepickerOptions.opened)("panelClass",t.to.datepickerOptions.panelClass)("startAt",t.to.datepickerOptions.startAt)("startView",t.to.datepickerOptions.startView)("touchUi",t.to.datepickerOptions.touchUi)}},directives:[vM,wb,RI,Zb,Uk,bj,Qk,EI,FI],encapsulation:2}),KU),iW=fi(nW),rW=((eW=function e(){b(this,e)}).\u0275fac=function(e){return new(e||eW)},eW.\u0275mod=yt({type:eW}),eW.\u0275inj=Ne({imports:[[Zh,Kk,yM,NI,eU,Fj.forChild({types:[{name:"datepicker",component:nW,wrappers:["form-field"]}]})]]}),eW),aW=((JU=function(){function e(){b(this,e)}return w(e,[{key:"transform",value:function(e){for(var t="",n=!1,i=arguments.length,r=new Array(i>1?i-1:0),a=1;ao?t+e.substring(e.length-o,e.length):e):e.length>o?e.substring(0,o)+t:e}},{key:"getStringLength",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return n?e<0?e+t.length:e-t.length:e}}]),e}()).\u0275fac=function(e){return new(e||JU)},JU.\u0275pipe=kt({name:"truncate",type:JU,pure:!0}),JU),oW=((ZU=function e(){b(this,e)}).\u0275fac=function(e){return new(e||ZU)},ZU.\u0275mod=yt({type:ZU}),ZU.\u0275inj=Ne({}),ZU),sW=["iframe"],lW=function(){function e(){this.onBeforePrint=new Vu,this.onAfterPrint=new Vu,this.onDocumentLoad=new Vu,this.onPageChange=new Vu,this.externalWindow=!1,this.showSpinner=!0,this.openFile=!0,this.download=!0,this.viewBookmark=!0,this.print=!0,this.fullScreen=!0,this.find=!0,this.useOnlyCssZoom=!1,this.errorOverride=!1,this.errorAppend=!0,this.diagnosticLogs=!0}return Object.defineProperty(e.prototype,"page",{get:function(){if(this.PDFViewerApplication)return this.PDFViewerApplication.page;this.diagnosticLogs&&console.warn("Document is not loaded yet!!!. Try to retrieve page# after full load.")},set:function(e){this._page=e,this.PDFViewerApplication?this.PDFViewerApplication.page=this._page:this.diagnosticLogs&&console.warn("Document is not loaded yet!!!. Try to set page# after full load. Ignore this warning if you are not setting page# using '.' notation. (E.g. pdfViewer.page = 5;)")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pdfSrc",{get:function(){return this._src},set:function(e){this._src=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"PDFViewerApplicationOptions",{get:function(){var e=null;return this.externalWindow?this.viewerTab&&(e=this.viewerTab.PDFViewerApplicationOptions):this.iframe.nativeElement.contentWindow&&(e=this.iframe.nativeElement.contentWindow.PDFViewerApplicationOptions),e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"PDFViewerApplication",{get:function(){var e=null;return this.externalWindow?this.viewerTab&&(e=this.viewerTab.PDFViewerApplication):this.iframe.nativeElement.contentWindow&&(e=this.iframe.nativeElement.contentWindow.PDFViewerApplication),e},enumerable:!0,configurable:!0}),e.prototype.receiveMessage=function(e){if(e.data&&e.data.viewerId&&e.data.event){var t=e.data.event,n=e.data.param;this.viewerId==e.data.viewerId&&(this.onBeforePrint&&"beforePrint"==t?this.onBeforePrint.emit():this.onAfterPrint&&"afterPrint"==t?this.onAfterPrint.emit():this.onDocumentLoad&&"pagesLoaded"==t?this.onDocumentLoad.emit(n):this.onPageChange&&"pageChange"==t&&this.onPageChange.emit(n))}},e.prototype.ngOnInit=function(){window.addEventListener("message",this.receiveMessage.bind(this),!1),this.externalWindow||this.loadPdf()},e.prototype.refresh=function(){this.loadPdf()},e.prototype.loadPdf=function(){if(this._src){if(this.externalWindow&&(void 0===this.viewerTab||this.viewerTab.closed)){if(this.viewerTab=window.open("","_blank",this.externalWindowOptions||""),null==this.viewerTab)return void(this.diagnosticLogs&&console.error("ng2-pdfjs-viewer: For 'externalWindow = true'. i.e opening in new tab to work, pop-ups should be enabled."));this.showSpinner&&this.viewerTab.document.write('\n \n
    \n ')}var e,t;if(this._src instanceof Blob)e=encodeURIComponent(URL.createObjectURL(this._src));else if(this._src instanceof Uint8Array){var n=new Blob([this._src],{type:"application/pdf"});e=encodeURIComponent(URL.createObjectURL(n))}else e=this._src;t=this.viewerFolder?this.viewerFolder+"/web/viewer.html":"assets/pdfjs/web/viewer.html",t+="?file="+e,void 0!==this.viewerId&&(t+="&viewerId="+this.viewerId),void 0!==this.onBeforePrint&&(t+="&beforePrint=true"),void 0!==this.onAfterPrint&&(t+="&afterPrint=true"),void 0!==this.onDocumentLoad&&(t+="&pagesLoaded=true"),void 0!==this.onPageChange&&(t+="&pageChange=true"),this.downloadFileName&&(this.downloadFileName.endsWith(".pdf")||(this.downloadFileName+=".pdf"),t+="&fileName="+this.downloadFileName),void 0!==this.openFile&&(t+="&openFile="+this.openFile),void 0!==this.download&&(t+="&download="+this.download),this.startDownload&&(t+="&startDownload="+this.startDownload),void 0!==this.viewBookmark&&(t+="&viewBookmark="+this.viewBookmark),void 0!==this.print&&(t+="&print="+this.print),this.startPrint&&(t+="&startPrint="+this.startPrint),void 0!==this.fullScreen&&(t+="&fullScreen="+this.fullScreen),void 0!==this.find&&(t+="&find="+this.find),this.lastPage&&(t+="&lastpage="+this.lastPage),this.rotatecw&&(t+="&rotatecw="+this.rotatecw),this.rotateccw&&(t+="&rotateccw="+this.rotateccw),this.cursor&&(t+="&cursor="+this.cursor),this.scroll&&(t+="&scroll="+this.scroll),this.spread&&(t+="&spread="+this.spread),this.locale&&(t+="&locale="+this.locale),this.useOnlyCssZoom&&(t+="&useOnlyCssZoom="+this.useOnlyCssZoom),(this._page||this.zoom||this.nameddest||this.pagemode)&&(t+="#"),this._page&&(t+="&page="+this._page),this.zoom&&(t+="&zoom="+this.zoom),this.nameddest&&(t+="&nameddest="+this.nameddest),this.pagemode&&(t+="&pagemode="+this.pagemode),(this.errorOverride||this.errorAppend)&&(t+="&errorMessage="+this.errorMessage,this.errorOverride&&(t+="&errorOverride="+this.errorOverride),this.errorAppend&&(t+="&errorAppend="+this.errorAppend)),this.externalWindow?this.viewerTab.location.href=t:this.iframe.nativeElement.src=t}},e.propDecorators={iframe:[{type:ki,args:["iframe",{static:!0}]}],viewerId:[{type:rc}],onBeforePrint:[{type:ac}],onAfterPrint:[{type:ac}],onDocumentLoad:[{type:ac}],onPageChange:[{type:ac}],viewerFolder:[{type:rc}],externalWindow:[{type:rc}],showSpinner:[{type:rc}],downloadFileName:[{type:rc}],openFile:[{type:rc}],download:[{type:rc}],startDownload:[{type:rc}],viewBookmark:[{type:rc}],print:[{type:rc}],startPrint:[{type:rc}],fullScreen:[{type:rc}],find:[{type:rc}],zoom:[{type:rc}],nameddest:[{type:rc}],pagemode:[{type:rc}],lastPage:[{type:rc}],rotatecw:[{type:rc}],rotateccw:[{type:rc}],cursor:[{type:rc}],scroll:[{type:rc}],spread:[{type:rc}],locale:[{type:rc}],useOnlyCssZoom:[{type:rc}],errorOverride:[{type:rc}],errorAppend:[{type:rc}],errorMessage:[{type:rc}],diagnosticLogs:[{type:rc}],externalWindowOptions:[{type:rc}],page:[{type:rc}],pdfSrc:[{type:rc}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=pt({type:e,selectors:[["ng2-pdfjs-viewer"]],viewQuery:function(e,t){var n;1&e&&Ku(sW,3),2&e&&$u(n=Ju())&&(t.iframe=n.first)},inputs:{externalWindow:"externalWindow",showSpinner:"showSpinner",openFile:"openFile",download:"download",viewBookmark:"viewBookmark",print:"print",fullScreen:"fullScreen",find:"find",useOnlyCssZoom:"useOnlyCssZoom",errorOverride:"errorOverride",errorAppend:"errorAppend",diagnosticLogs:"diagnosticLogs",page:"page",pdfSrc:"pdfSrc",viewerId:"viewerId",viewerFolder:"viewerFolder",downloadFileName:"downloadFileName",startDownload:"startDownload",startPrint:"startPrint",zoom:"zoom",nameddest:"nameddest",pagemode:"pagemode",lastPage:"lastPage",rotatecw:"rotatecw",rotateccw:"rotateccw",cursor:"cursor",scroll:"scroll",spread:"spread",locale:"locale",errorMessage:"errorMessage",externalWindowOptions:"externalWindowOptions"},outputs:{onBeforePrint:"onBeforePrint",onAfterPrint:"onAfterPrint",onDocumentLoad:"onDocumentLoad",onPageChange:"onPageChange"},decls:2,vars:1,consts:[["title","ng2-pdfjs-viewer","width","100%","height","100%",3,"hidden"],["iframe",""]],template:function(e,t){1&e&&fs(0,"iframe",0,1),2&e&&us("hidden",t.externalWindow||!t.externalWindow&&!t.pdfSrc)},encapsulation:2}),e}(),uW=function(){function e(){}return e.forRoot=function(){return{ngModule:e}},e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=yt({type:e}),e.\u0275inj=Ne({imports:[[Zh]]}),e}(),cW={UKNOWN:"Unknown"},dW={CHROME:"Chrome",FIREFOX:"Firefox",SAFARI:"Safari",OPERA:"Opera",IE:"IE",MS_EDGE:"MS-Edge",MS_EDGE_CHROMIUM:"MS-Edge-Chromium",FB_MESSANGER:"FB-Messanger",SAMSUNG:"Samsung",UCBROWSER:"UC-Browser",UNKNOWN:cW.UKNOWN},hW={HTC:/HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\bEVO\b|T-Mobile G1|Z520m|Android [0-9.]+; Pixel/,NEXUS_PHONE:/Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6/,DELL:/Dell[;]? (Streak|Aero|Venue|Venue Pro|Flash|Smoke|Mini 3iX)|XCD28|XCD35|\b001DL\b|\b101DL\b|\bGS01\b/,MOTOROLA:new RegExp("Motorola|DROIDX|DROID BIONIC|\\bDroid\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|\n A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|\n MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|\n ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|\n WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|\n XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|\n XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\bMoto E\\b|XT1068|XT1092|XT1052"),SAMSUNG:new RegExp("\\bSamsung\\b|SM-G950F|SM-G955F|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|\n GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|\n GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|\n GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|\n GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|\n GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|\n GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|\n GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|\n GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|\n GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|\n GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|\n GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|\n GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|\n GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|\n GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|\n GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|\n GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|\n GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|\n SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|\n SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|\n SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|\n SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|\n SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|\n SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|\n SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|\n SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|\n SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|\n SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|\n SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|\n SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|\n SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|\n SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|\n SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|\n SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|\n SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|\n SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|\n SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|\n SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|\n SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|\n SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|\n SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|\n SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|\n SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|\n SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|\n SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|\n SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|\n SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|\n SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|\n SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|\n GT-N7105|SCH-I535|SM-N900A|SM-N900T|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|\n GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|\n GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|\n SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|\n SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205|SM-G9350|SM-J120F|SM-G920F|SM-G920V|SM-G930F|\n SM-N910C|SM-A310F|GT-I9190|SM-J500FN|SM-G903F|SM-J330F"),LG:new RegExp("\\bLG\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|\n LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|\n C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|\n LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|\n VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802|\n MS323|M257)"),SONY:/SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533/,ASUS:/Asus.*Galaxy|PadFone.*Mobile/,NOKIA_LUMIA:/Lumia [0-9]{3,4}/,MICROMAX:/Micromax.*\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\b/,PALM:/PalmSource|Palm/,VERTU:/Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature/,PANTECH:new RegExp("PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|\n IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|\n IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|\n CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|\n P2000|P7040|P7000|C790"),FLY:/IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250/,WIKO:new RegExp("KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|\n SUNSET|GOA(?!nna)|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLIM|CINK SLIM 2|CINK +|\n CINK KING|CINK PEAX|CINK SLIM|SUBLIM"),I_MOBILE:/i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)/,SIMVALLEY:/\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\b/,WOLFGANG:/AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q/,ALCATEL:/Alcatel/,NINTENDO:/Nintendo (3DS|Switch)/,AMOI:/Amoi/,INQ:/INQ/,VITA:/\bVita\b/,BLACKBERRY:/\bBlackBerry\b|\bBB10\b|rim[0-9]+/,FIREFOX_OS:/\bFirefox-OS\b/,IPHONE:/\biPhone\b/,iPod:/\biPod\b/,ANDROID:/\bAndroid\b/,WINDOWS_PHONE:/\bWindows-Phone\b/,GENERIC_PHONE:new RegExp("Tapatalk|PDA;|SAGEM|\\bmmp\\b|pocket|\\bpsp\\b|symbian|Smartphone|smartfon|treo|up.browser|\n up.link|vodafone|\\bwap\\b|nokia|Nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser")},fW={iPad:/iPad|iPad.*Mobile/,NexusTablet:/Android.*Nexus[\s]+(7|9|10)/,GoogleTablet:/Android.*Pixel C/,SamsungTablet:new RegExp("SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|\n GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|\n SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|\n GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|\n SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|\n GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|\n SHV-E230S|SHW-M180K|SHW-M180L|SM-T290|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|\n SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|\n GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|\n SM-P601|SM-P605|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|\n GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|\n SM-T510|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|\n SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T330|\n SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|\n SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-T116BU|SM-P550|\n SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T815|SM-T360|SM-T533|\n SM-T113|SM-T335|SM-T715|SM-T560|SM-T670|SM-T677|SM-T377|SM-T567|SM-T357T|SM-T555|SM-T561|SM-T713|\n SM-T719|SM-T813|SM-T819|SM-T580|SM-T590|SM-T355Y?|SM-T280|SM-T817A|SM-T820|SM-W700|SM-P580|SM-T587|SM-P350|\n SM-P555M|SM-P355M|SM-T113NU|SM-T815Y|SM-T585|SM-T285|SM-T825|SM-W708|SM-T835|SM-P585Y"),Kindle:new RegExp("Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|\n KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI|KFARWI|KFFOWI|KFGIWI|KFMEWI)\\b|Android.*Silk/[0-9.]+ like Chrome /[0-9.]+ (?!Mobile)"),SurfaceTablet:/Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)/,HPTablet:/HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10/,AsusTablet:new RegExp("^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|\n TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|\n Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|\n ME560CG|ME372CG|ME302KL| K010 | K011 | K017 | K01E |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|\n ME581CL|ME8510C|ME181C|P01Y|PO1MA|P01Z|\\bP027\\b|\\bP024\\b|\\bP00C\\b"),BlackBerryTablet:/PlayBook|RIM Tablet/,HTCtablet:/HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410/,MotorolaTablet:/xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617/,NookTablet:/Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2/,AcerTablet:new RegExp("Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|\n W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b|\n \\bA3-A20\\b|\\bA3-A30"),ToshibaTablet:/Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO/,LGTablet:/\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\b/,FujitsuTablet:/Android.*\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\b/,PrestigioTablet:new RegExp("PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|\n PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|\n PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|\n PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|\n PMT5887|PMT5001|PMT5002"),LenovoTablet:new RegExp("Lenovo TAB|Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|YT3-850M|YT3-X90L|YT3-X90F|\n YT3-X90X|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|\n B8000|B8080)(-|)(FL|F|HV|H|)|TB-X103F|TB-X304F|TB-X304L|TB-X704F|TB-8703F|Tab2A7-10F|TB2-X30L|TB-8504F"),DellTablet:/Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7/,YarvikTablet:new RegExp("Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|\n TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|\n TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|\n TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|\n TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b"),MedionTablet:/Android.*\bOYO\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB/,ArnovaTablet:/97G4|AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2/,IntensoTablet:/INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004/,IRUTablet:/M702pro/,MegafonTablet:/MegaFon V9|\bZTE V9\b|Android.*\bMT7A\b/,EbodaTablet:/E-Boda (Supreme|Impresspeed|Izzycomm|Essential)/,AllViewTablet:/Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)/,ArchosTablet:new RegExp("\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|c|)(G10|\n Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b"),AinolTablet:/NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark/,NokiaLumiaTablet:/Lumia 2520/,SonyTablet:new RegExp("Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|\n SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|\n EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP641|SGP612|SOT31|SGP771|SGP611|\n SGP612|SGP712"),PhilipsTablet:/\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\b/,CubeTablet:/Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT/,CobyTablet:new RegExp("MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|\n MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010"),MIDTablet:new RegExp("M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|\n MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|\n MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733|MID4X10"),MSITablet:new RegExp("MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|\n Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b"),SMiTTablet:/Android.*(\bMID\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)/,RockChipTablet:/Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A/,FlyTablet:/IQ310|Fly Vision/,bqTablet:new RegExp("Android.*(bq)?.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|\n Livingstone|Cervantes|Avant|Aquaris ([E|M]10|M8))|Maxwell.*Lite|Maxwell.*Plus"),HuaweiTablet:new RegExp("MediaPad|MediaPad 7 Youth|MediaPad T3 10|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|\n S7-201|S7-Slim|M2-A01L|BAH-L09|BAH-W09|AGS-W09"),NecTablet:/\bN-06D|\bN-08D/,PantechTablet:/Pantech.*P4100/,BronchoTablet:/Broncho.*(N701|N708|N802|a710)/,VersusTablet:/TOUCHPAD.*[78910]|\bTOUCHTAB\b/,ZyncTablet:/z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900/,PositivoTablet:/TB07STA|TB10STA|TB07FTA|TB10FTA/,NabiTablet:/Android.*\bNabi/,KoboTablet:/Kobo Touch|\bK080\b|\bVox\b Build|\bArc\b Build/,DanewTablet:/DSlide.*\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\b/,TexetTablet:new RegExp("NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|\n TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|\n TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|\n TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|\n TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|\n TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|\n TB-436|TB-416|TB-146SE|TB-126SE"),PlaystationTablet:/Playstation.*(Portable|Vita)/,TrekstorTablet:/ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab/,PyleAudioTablet:/\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\b/,AdvanTablet:new RegExp("Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|\n T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b"),DanyTechTablet:"Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|\n Genius TAB GII|Genius TAB GIII|Genius Tab S1",GalapadTablet:/Android.*\bG1\b(?!\))/,MicromaxTablet:/Funbook|Micromax.*\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\b/,KarbonnTablet:/Android.*\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\b/,AllFineTablet:/Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide/,PROSCANTablet:new RegExp("\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|\n PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|\n PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|\n PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b"),YONESTablet:/BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026/,ChangJiaTablet:new RegExp("TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|\n TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|\n TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|\n TPC10111|TPC10203|TPC10205|TPC10503"),GUTablet:/TX-A1301|TX-M9002|Q702|kf026/,PointOfViewTablet:new RegExp("TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|\n TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|\n TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|\n TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10"),OvermaxTablet:new RegExp("OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|\n MagicTab|Stream|TB-08|TB-09)|Qualcore 1027"),HCLTablet:/HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync/,DPSTablet:/DPS Dream 9|DPS Dual 7/,VistureTablet:/V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10/,CrestaTablet:/CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989/,MediatekTablet:/\bMT8125|MT8389|MT8135|MT8377\b/,ConcordeTablet:/Concorde([ ]+)?Tab|ConCorde ReadMan/,GoCleverTablet:new RegExp("GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|\n TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|\n GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|\n TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|\n TAB R104|TAB R83.3|TAB A1042"),ModecomTablet:new RegExp("FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|\n FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|\n FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003"),VoninoTablet:new RegExp("\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|\n Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|\n Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b"),ECSTablet:/V07OT2|TM105A|S10OT1|TR10CS1/,StorexTablet:/eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab/,VodafoneTablet:/SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7|VF-1497/,EssentielBTablet:/Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2/,RossMoorTablet:/RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711/,iMobileTablet:/i-mobile i-note/,TolinoTablet:/tolino tab [0-9.]+|tolino shine/,AudioSonicTablet:/\bC-22Q|T7-QC|T-17B|T-17P\b/,AMPETablet:/Android.* A78 /,SkkTablet:/Android.* (SKYPAD|PHOENIX|CYCLOPS)/,TecnoTablet:/TECNO P9|TECNO DP8D/,JXDTablet:new RegExp("Android.* \\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|\n S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|\n P1000|P300|S18|S6600|S9100)\\b"),iJoyTablet:new RegExp("Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|\n Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|\n Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|\n Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|\n Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)"),FX2Tablet:/FX2 PAD7|FX2 PAD10/,XoroTablet:new RegExp("KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|\n PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|\n PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|\n TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151"),ViewsonicTablet:/ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a/,VerizonTablet:/QTAQZ3|QTAIR7|QTAQTZ3|QTASUN1|QTASUN2|QTAXIA1/,OdysTablet:/LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\bXELIO\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10/,CaptivaTablet:/CAPTIVA PAD/,IconbitTablet:new RegExp("NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|\n NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S"),TeclastTablet:new RegExp("T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\n \\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\n \\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\n \\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\n \\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\n \\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\n \\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\n \\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\n \\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi"),OndaTablet:new RegExp("\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|\n V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|\n V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|\n Vi40)\\b[s]+|V10 \\b4G\\b"),JaytechTablet:/TPC-PA762/,BlaupunktTablet:/Endeavour 800NG|Endeavour 1010/,DigmaTablet:/\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\b/,EvolioTablet:/ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\bEvotab\b|\bNeura\b/,LavaTablet:/QPAD E704|\bIvoryS\b|E-TAB IVORY|\bE-TAB\b/,AocTablet:/MW0811|MW0812|MW0922|MTK8382|MW1031|MW0831|MW0821|MW0931|MW0712/,MpmanTablet:new RegExp("MP11 OCTA|MP10 OCTA|MPQC1114|MPQC1004|MPQC994|MPQC974|MPQC973|MPQC804|MPQC784|MPQC780|\n \\bMPG7\\b|MPDCG75|MPDCG71|MPDC1006|MP101DC|MPDC9000|MPDC905|MPDC706HD|MPDC706|MPDC705|MPDC110|\n MPDC100|MPDC99|MPDC97|MPDC88|MPDC8|MPDC77|MP709|MID701|MID711|MID170|MPDC703|MPQC1010"),CelkonTablet:/CT695|CT888|CT[\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\bCT-1\b/,WolderTablet:new RegExp("miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|\n POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|\n FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b"),MediacomTablet:"M-MPI10C3G|M-SP10EG|M-SP10EGP|M-SP10HXAH|M-SP7HXAH|M-SP10HXBH|M-SP8HXAH|M-SP8MXA",MiTablet:/\bMI PAD\b|\bHM NOTE 1W\b/,NibiruTablet:/Nibiru M1|Nibiru Jupiter One/,NexoTablet:/NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI/,LeaderTablet:new RegExp("TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|\n TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100"),UbislateTablet:/UbiSlate[\s]?7C/,PocketBookTablet:/Pocketbook/,KocasoTablet:/\b(TB-1207)\b/,HisenseTablet:/\b(F5281|E2371)\b/,Hudl:/Hudl HT7S3|Hudl 2/,TelstraTablet:/T-Hub2/,GenericTablet:new RegExp("Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|\n A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|\n Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bTP750\\b|\\bQTAQZ3\\b|WVT101|TM1088|KT107")},pW={BLACKBERRY:"Blackberry",FIREFOX_OS:"Firefox-OS",CHROME_BOOK:"Chrome-Book",WINDOWS_PHONE:"Windows-Phone",VITA:"Vita",PS4:"PS4",CHROMECAST:"Chromecast",APPLE_TV:"Apple-TV",GOOGLE_TV:"Google-TV",ANDROID:"Android",Tesla:"Tesla",iPad:"iPad",IPHONE:"iPhone",iPod:"iPod",UNKNOWN:cW.UKNOWN,HTC:"HTC",NEXUS_PHONE:"Nexus Phone",NexusTablet:"Nexus Tablet",DELL:"Dell",MOTOROLA:"Motorola",SAMSUNG:"Samsung",LG:"LG",SONY:"Sony",ASUS:"Asus",NOKIA_LUMIA:"Nokia Lumia",MICROMAX:"Micromax",PALM:"Palm",VERTU:"Vertu",PANTECH:"PANTECH",FLY:"Fly",WIKO:"WIKO",I_MOBILE:"i-mobile",SIMVALLEY:"Simvalley",WOLFGANG:"Wolfgang",ALCATEL:"Alcatel",NINTENDO:"Nintendo",AMOI:"Amoi",INQ:"INQ",GENERIC_PHONE:"Generic Phone"},mW={WINDOWS:"Windows",MAC:"Mac",IOS:"iOS",ANDROID:"Android",LINUX:"Linux",UNIX:"Unix",FIREFOX_OS:"Firefox-OS",CHROME_OS:"Chrome-OS",WINDOWS_PHONE:"Windows-Phone",UNKNOWN:cW.UKNOWN},gW={WINDOWS_3_11:"windows-3-11",WINDOWS_95:"windows-95",WINDOWS_ME:"windows-me",WINDOWS_98:"windows-98",WINDOWS_CE:"windows-ce",WINDOWS_2000:"windows-2000",WINDOWS_XP:"windows-xp",WINDOWS_SERVER_2003:"windows-server-2003",WINDOWS_VISTA:"windows-vista",WINDOWS_7:"windows-7",WINDOWS_8_1:"windows-8-1",WINDOWS_8:"windows-8",WINDOWS_10:"windows-10",WINDOWS_PHONE_7_5:"windows-phone-7-5",WINDOWS_PHONE_8_1:"windows-phone-8-1",WINDOWS_PHONE_10:"windows-phone-10",WINDOWS_NT_4_0:"windows-nt-4-0",MACOSX_15:"mac-os-x-15",MACOSX_14:"mac-os-x-14",MACOSX_13:"mac-os-x-13",MACOSX_12:"mac-os-x-12",MACOSX_11:"mac-os-x-11",MACOSX_10:"mac-os-x-10",MACOSX_9:"mac-os-x-9",MACOSX_8:"mac-os-x-8",MACOSX_7:"mac-os-x-7",MACOSX_6:"mac-os-x-6",MACOSX_5:"mac-os-x-5",MACOSX_4:"mac-os-x-4",MACOSX_3:"mac-os-x-3",MACOSX_2:"mac-os-x-2",MACOSX:"mac-os-x",iOS:"iOS",UNKNOWN:cW.UKNOWN.toLowerCase()},vW=Object.assign(Object.assign(Object.assign({},hW),fW),{FIREFOX_OS:{and:[/\bFirefox\b/,/\bMobile\b/]},CHROME_BOOK:/\bCrOS\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,CHROMECAST:/\bCrKey\b/,APPLE_TV:/^iTunes-AppleTV\/4.1$/,GOOGLE_TV:/\bGoogleTV\b/,Tesla:/Tesla\/([0-9]{4}.[0-9]{1,2}.?[0-9]{0,2}.?[0-9]{0,2})-(.{7})/}),yW={WINDOWS_3_11:/Win16/,WINDOWS_95:/(Windows 95|Win95|Windows_95)/,WINDOWS_ME:/(Win 9x 4.90|Windows ME)/,WINDOWS_98:/(Windows 98|Win98)/,WINDOWS_CE:/Windows CE/,WINDOWS_2000:/(Windows NT 5.0|Windows 2000)/,WINDOWS_XP:/(Windows NT 5.1|Windows XP)/,WINDOWS_SERVER_2003:/Windows NT 5.2/,WINDOWS_VISTA:/Windows NT 6.0/,WINDOWS_7:/(Windows 7|Windows NT 6.1)/,WINDOWS_8_1:/(Windows 8.1|Windows NT 6.3)/,WINDOWS_8:/(Windows 8|Windows NT 6.2)/,WINDOWS_10:/(Windows NT 10.0)/,WINDOWS_PHONE_7_5:/(Windows Phone OS 7.5)/,WINDOWS_PHONE_8_1:/(Windows Phone 8.1)/,WINDOWS_PHONE_10:/(Windows Phone 10)/,WINDOWS_NT_4_0:{and:[/(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/,{not:/Windows NT 10.0/}]},MACOSX:/(MAC OS X\s*[^ 0-9])/,MACOSX_3:/(Darwin 10.3|Mac OS X 10.3)/,MACOSX_4:/(Darwin 10.4|Mac OS X 10.4)/,MACOSX_5:/(Mac OS X 10.5)/,MACOSX_6:/(Mac OS X 10.6)/,MACOSX_7:/(Mac OS X 10.7)/,MACOSX_8:/(Mac OS X 10.8)/,MACOSX_9:/(Mac OS X 10.9)/,MACOSX_10:/(Mac OS X 10.10)/,MACOSX_11:/(Mac OS X 10.11)/,MACOSX_12:/(Mac OS X 10.12)/,MACOSX_13:/(Mac OS X 10.13)/,MACOSX_14:/(Mac OS X 10.14)/,MACOSX_15:/(Mac OS X 10.15)/,iOS:/(iPhone OS\s*[0-9_]+)/},_W={CHROME:[/\bChrome\/([\d\.]+)\b/,/\bCriOS\/([\d\.]+)\b/,/\bHeadlessChrome\/([\d\.]+)\b/],FIREFOX:[/\bFirefox\/([\d\.]+)\b/,/\bFxiOS\/([\d\.]+)\b/],SAFARI:[/\bVersion\/([\d\.]+)\b/,/\bSafari\/([\d\.]+)\b/],OPERA:[/\bVersion\/([\d\.]+)\b/,/\bOPR\/([\d\.]+)\b/],IE:[/\bMSIE ([\d\.]+\w?)\b/,/\brv:([\d\.]+\w?)\b/],MS_EDGE:/\bEdg(?:e|A|iOS)\/([\d\.]+)\b/,MS_EDGE_CHROMIUM:/\bEdg\/([\d\.]+)\b/,SAMSUNG:/\bSamsungBrowser\/([\d\.]+)\b/,UCBROWSER:/\bUCBrowser\/([\d\.]+)\b/},bW=function(e,t){return e[t]=yW[t],e},kW=Object.keys(yW).reduce(bW,{}),wW=function(e,t){return e[dW[t]]=_W[t],e},CW=Object.keys(_W).reduce(wW,{}),xW=Object.freeze({__proto__:null,GENERAL:cW,BROWSERS:dW,MOBILES_RE:hW,TABLETS_RE:fW,DEVICES:pW,OS:mW,OS_VERSIONS:gW,OS_RE:{WINDOWS:{and:[{or:[/\bWindows|(Win\d\d)\b/,/\bWin 9x\b/]},{not:/\bWindows Phone\b/}]},MAC:{and:[/\bMac OS\b/,{not:{or:[/\biPhone\b/,/\biPad\b/,/\biPod\b/,/\bWindows Phone\b/]}}]},IOS:{and:[{or:[/\biPad\b/,/\biPhone\b/,/\biPod\b/]},{not:/\bWindows Phone\b/}]},ANDROID:{and:[/\bAndroid\b/,{not:/\bWindows Phone\b/}]},LINUX:/\bLinux\b/,UNIX:/\bUNIX\b/,FIREFOX_OS:{and:[/\bFirefox\b/,/Mobile\b/]},CHROME_OS:/\bCrOS\b/,WINDOWS_PHONE:{or:[/\bIEMobile\b/,/\bWindows Phone\b/]},PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/},BROWSERS_RE:{CHROME:{and:[{or:[/\bChrome\b/,/\bCriOS\b/,/\bHeadlessChrome\b/]},{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},FIREFOX:{or:[/\bFirefox\b/,/\bFxiOS\b/]},SAFARI:{and:[/^((?!CriOS).)*\Safari\b.*$/,{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bWindows Phone\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},OPERA:{or:[/Opera\b/,/\bOPR\b/]},IE:{or:[/\bMSIE\b/,/\bTrident\b/,/^Mozilla\/5\.0 \(Windows NT 10\.0; Win64; x64\)$/]},MS_EDGE:{or:[/\bEdg(e|A|iOS)\b/]},MS_EDGE_CHROMIUM:/\bEdg\/\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/,FB_MESSANGER:/\bFBAN\/MessengerForiOS\b/,SAMSUNG:/\bSamsungBrowser\b/,UCBROWSER:/\bUCBrowser\b/},DEVICES_RE:vW,OS_VERSIONS_RE_MAP:yW,BROWSER_VERSIONS_RE_MAP:_W,OS_VERSIONS_RE:kW,BROWSER_VERSIONS_RE:CW,"\u02750":bW,"\u02751":wW}),SW=function(){function e(){b(this,e)}return w(e,[{key:"test",value:function(e,t){var n=this;return"string"==typeof t&&(t=new RegExp(t)),t instanceof RegExp?t.test(e):t&&Array.isArray(t.and)?t.and.every(function(t){return n.test(e,t)}):t&&Array.isArray(t.or)?t.or.some(function(t){return n.test(e,t)}):!(!t||!t.not||this.test(e,t.not))}},{key:"exec",value:function(e,t){var n=this;return"string"==typeof t&&(t=new RegExp(t)),t instanceof RegExp?t.exec(e):t&&Array.isArray(t)?t.reduce(function(t,i){return t||n.exec(e,i)},null):null}}]),e}(),AW=function(e){return e.Mobile="mobile",e.Tablet="tablet",e.Desktop="desktop",e.Unknown="unknown",e}({}),OW=function(e){return e.Portrait="portrait",e.Landscape="landscape",e}({}),EW=((tW=function(){function e(t){b(this,e),this.platformId=t,this.ua="",this.userAgent="",this.os="",this.browser="",this.device="",this.os_version="",this.browser_version="",this.reTree=new SW,this.deviceType="",this.orientation="",Jh(this.platformId)&&"undefined"!=typeof window&&(this.userAgent=window.navigator.userAgent),this.setDeviceInfo(this.userAgent)}return w(e,[{key:"setDeviceInfo",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;t!==this.userAgent&&(this.userAgent=t);var n=[{const:"OS",prop:"os"},{const:"BROWSERS",prop:"browser"},{const:"DEVICES",prop:"device"},{const:"OS_VERSIONS",prop:"os_version"}];if(n.forEach(function(n){e[n.prop]=Object.keys(xW[n.const]).reduce(function(i,r){return"device"===xW[n.const][r]&&Jh(e.platformId)&&(e.reTree.test(e.userAgent,fW.iPad)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)?(i[xW[n.const][r]]="iPad",Object):(i[xW[n.const][r]]=e.reTree.test(t,xW["".concat(n.const,"_RE")][r]),i)},{})}),n.forEach(function(t){e[t.prop]=Object.keys(xW[t.const]).map(function(e){return xW[t.const][e]}).reduce(function(n,i){return"device"===t.prop&&n===xW[t.const].ANDROID?e[t.prop][i]?i:n:n===xW[t.const].UNKNOWN&&e[t.prop][i]?i:n},xW[t.const].UNKNOWN)}),this.browser_version="0",this.browser!==dW.UNKNOWN){var i=this.reTree.exec(t,CW[this.browser]);i&&(this.browser_version=i[1])}this.orientation="undefined"!=typeof window&&window.matchMedia?window.matchMedia("(orientation: landscape)").matches?OW.Landscape:OW.Portrait:cW.UKNOWN,this.deviceType=this.isTablet()?AW.Tablet:this.isMobile(this.userAgent)?AW.Mobile:this.isDesktop(this.userAgent)?AW.Desktop:AW.Unknown}},{key:"getDeviceInfo",value:function(){return{userAgent:this.userAgent,os:this.os,browser:this.browser,device:this.device,os_version:this.os_version,browser_version:this.browser_version,deviceType:this.deviceType,orientation:this.orientation}}},{key:"isMobile",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;return!this.isTablet(t)&&!!Object.keys(hW).find(function(n){return e.reTree.test(t,hW[n])})}},{key:"isTablet",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;return!(!Jh(this.platformId)||!(this.reTree.test(this.userAgent,fW.iPad)||"undefined"!=typeof navigator&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1))||!!Object.keys(fW).find(function(n){return!!e.reTree.test(t,fW[n])})}},{key:"isDesktop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent,t=[pW.PS4,pW.CHROME_BOOK,pW.UNKNOWN];return(this.device!==pW.UNKNOWN||!this.isMobile(e)&&!this.isTablet(e))&&t.indexOf(this.device)>-1}}]),e}()).\u0275fac=function(e){return new(e||tW)(Ni(hc))},tW.\u0275prov=Le({factory:function(){return new tW(Ni(hc))},token:tW,providedIn:"root"}),tW),TW=o("DlQD"),PW=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}();function DW(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new MW(e))}}var MW=function(){function e(t){b(this,e),this.defaultValue=t}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new IW(e,this.defaultValue))}}]),e}(),IW=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this,e)).defaultValue=i,r.isEmpty=!0,r}return w(n,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(P);function RW(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:NW;return function(t){return t.lift(new LW(e))}}var LW=function(){function e(t){b(this,e),this.errorFactory=t}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new FW(e,this.errorFactory))}}]),e}(),FW=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this,e)).errorFactory=i,r.hasValue=!1,r}return w(n,[{key:"_next",value:function(e){this.hasValue=!0,this.destination.next(e)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}]),n}(P);function NW(){return new PW}function VW(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?jm(function(t,n){return e(t,n,i)}):I,Qg(1),n?DW(t):RW(function(){return new PW}))}}var BW,HW,zW,GW,jW=["*"],UW=function e(){b(this,e)},WW=new _i("SECURITY_CONTEXT"),qW=((BW=function(){function e(t,n,i,r,a){b(this,e),this.platform=t,this.securityContext=n,this.http=i,this.sanitizer=a,this.initialMarkedOptions={renderer:new TW.Renderer},this.options=r}return w(e,[{key:"options",get:function(){return this._options},set:function(e){this._options=Object.assign(Object.assign({},this.initialMarkedOptions),e)}},{key:"renderer",get:function(){return this.options.renderer},set:function(e){this.options.renderer=e}},{key:"compile",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.options,r=this.trimIndentation(e),a=t?this.decodeHtml(r):r,o=n?this.renderEmoji(a):a,s=Object(TW.parse)(o,i);return this.sanitizer.sanitize(this.securityContext,s)||""}},{key:"getSource",value:function(e){var t=this;if(!this.http)throw new Error("[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(e,{responseType:"text"}).pipe(q(function(n){return t.handleExtension(e,n)}))}},{key:"highlight",value:function(e){if(Jh(this.platform)&&"undefined"!=typeof Prism){e||(e=document);var t=e.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(t,function(e){return e.classList.add("language-none")}),Prism.highlightAllUnder(e)}}},{key:"renderKatex",value:function(e,t){if("undefined"==typeof katex||void 0===katex.renderToString)throw new Error("[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information");return e.replace(/\$([^\s][^$]*?[^\s])\$/gm,function(e,n){return katex.renderToString(n,t)})}},{key:"decodeHtml",value:function(e){if(Jh(this.platform)){var t=document.createElement("textarea");return t.innerHTML=e,t.value}return e}},{key:"handleExtension",value:function(e,t){var n=e?e.split("?")[0].split(".").splice(-1).join():null;return"md"!==n?"```"+n+"\n"+t+"\n```":t}},{key:"renderEmoji",value:function(e){if("undefined"==typeof joypixels||void 0===joypixels.shortnameToUnicode)throw new Error("[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information");return joypixels.shortnameToUnicode(e)}},{key:"trimIndentation",value:function(e){return e?e.split("\n").map(function(e){var n=t;return e.length>0&&(n=isNaN(n)?e.search(/\S|$/):Math.min(e.search(/\S|$/),n)),isNaN(t)&&(t=n),n?e.substring(n):e}).join("\n"):"";var t}}]),e}()).\u0275fac=function(e){return new(e||BW)(Ni(hc),Ni(WW),Ni(vg,8),Ni(UW,8),Ni(Hf))},BW.\u0275prov=Le({token:BW,factory:BW.\u0275fac}),BW),YW=function(e){return e.LineHighlight="line-highlight",e.LineNumbers="line-numbers",e}({}),QW=((zW=function(){function e(t,n){b(this,e),this.element=t,this.markdownService=n,this.error=new Vu,this.load=new Vu,this.ready=new Vu,this._emoji=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1}return w(e,[{key:"emoji",get:function(){return this._emoji},set:function(e){this._emoji=this.coerceBooleanProperty(e)}},{key:"katex",get:function(){return this._katex},set:function(e){this._katex=this.coerceBooleanProperty(e)}},{key:"lineHighlight",get:function(){return this._lineHighlight},set:function(e){this._lineHighlight=this.coerceBooleanProperty(e)}},{key:"lineNumbers",get:function(){return this._lineNumbers},set:function(e){this._lineNumbers=this.coerceBooleanProperty(e)}},{key:"ngOnChanges",value:function(){null==this.data?null==this.src||this.handleSrc():this.handleData()}},{key:"ngAfterViewInit",value:function(){this.data||this.src||this.handleTransclusion()}},{key:"render",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.markdownService.compile(e,t,this.emoji);n=this.katex?this.markdownService.renderKatex(n,this.katexOptions):n,this.element.nativeElement.innerHTML=n,this.handlePlugins(),this.markdownService.highlight(this.element.nativeElement),this.ready.emit()}},{key:"coerceBooleanProperty",value:function(e){return null!=e&&"false"!="".concat(e)}},{key:"handleData",value:function(){this.render(this.data)}},{key:"handleSrc",value:function(){var e=this;this.markdownService.getSource(this.src).subscribe(function(t){e.render(t),e.load.emit(t)},function(t){return e.error.emit(t)})}},{key:"handleTransclusion",value:function(){this.render(this.element.nativeElement.innerHTML,!0)}},{key:"handlePlugins",value:function(){this.lineHighlight&&(this.setPluginClass(this.element.nativeElement,YW.LineHighlight),this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset})),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,YW.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}},{key:"setPluginClass",value:function(e,t){for(var n=e.querySelectorAll("pre"),i=0;i0},e.treeControl=new Dz(function(e){return fp(e.children)}),e.dataSource=new pG,e}return w(n,[{key:"ngOnInit",value:function(){var e=this;this.to.options.subscribe(function(t){e.dataSource.data=t,e.updateSelection()})}},{key:"updateSelection",value:function(){var e=this;this.isReady()&&(this.model.categories&&this.model.categories.forEach(function(t){var n=e.findNode(t.id);n&&e.toggleNode(n),e._updateModelCategories()}),this.dataLoaded=!0)}},{key:"findNode",value:function(e){var t=this,n=[];return this.dataSource.data.forEach(function(e){t.treeControl.getDescendants(e).forEach(function(e){return n.push(e)}),n.push(e)}),n.find(function(t){return t.id===e})}},{key:"numSelectedDescendants",value:function(e){var t=this;return this.treeControl.getDescendants(e).filter(function(e){return t.checklistSelection.isSelected(e)}).length}},{key:"toggleNode",value:function(e){var t=this;this.checklistSelection.toggle(e);for(var n=[],i=this.findNode(e.parent_id);null!=i;)n.push(i),i=this.findNode(i.parent_id);this.checklistSelection.isSelected(e)?n.forEach(function(e){var n=t.findNode(e.id);t.checklistSelection.select(n)}):n.forEach(function(e){var n=t.findNode(e.id);t.numSelectedDescendants(n)<1&&t.checklistSelection.deselect(n)}),this._updateModelCategories()}},{key:"isReady",value:function(){return!!(this.field&&this.field.form&&this.field.form.controls)}},{key:"_updateModelCategories",value:function(){var e=this;this.model.categories=[],this.checklistSelection.selected.forEach(function(t){return e.model.categories[t.id]=!0})}}]),n}(Kj)).\u0275fac=function(e){return new(e||vq)},vq.\u0275cmp=pt({type:vq,selectors:[["app-multiselect-tree"]],inputs:{to:"to"},features:[jo],decls:3,vars:3,consts:[[1,"tree-select",3,"dataSource","treeControl"],["matTreeNodeToggle","",4,"matTreeNodeDef"],[4,"matTreeNodeDef","matTreeNodeDefWhen"],["matTreeNodeToggle",""],[1,"mat-tree-node"],["disabled","","mat-icon-button",""],[3,"checked","change"],["mat-icon-button","","matTreeNodeToggle","",1,"toggle-node-button"],[1,"mat-icon-rtl-mirror"],["disabled","true",3,"checked"],["matBadgeColor","accent","matBadgeOverlap","false",3,"matBadge",4,"ngIf"],[4,"ngIf"],["matTreeNodeOutlet",""],["matBadgeColor","accent","matBadgeOverlap","false",3,"matBadge"]],template:function(e,t){1&e&&(ds(0,"mat-tree",0),os(1,fq,5,2,"mat-tree-node",1),os(2,gq,11,7,"mat-nested-tree-node",2),hs()),2&e&&(us("dataSource",t.dataSource)("treeControl",t.treeControl),Oa(2),us("matTreeNodeDefWhen",t.hasNestedChild))},directives:[uG,iG,nG,dG,kP,lD,aG,BR,wh,lG,pP],styles:[".tree-select-invisible[_ngcontent-%COMP%]{display:none}.tree-select[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .tree-select[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;margin-left:1rem;list-style-type:none}.tree-select[_ngcontent-%COMP%] li[_ngcontent-%COMP%] button.toggle-node-button[_ngcontent-%COMP%], .tree-select[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] button.toggle-node-button[_ngcontent-%COMP%]{outline:none!important}"]}),vq),bq=function(e){window.scroll({top:0,left:0,behavior:"smooth"}),"Safari"===e.browser?window.scroll(0,0):window.scroll({behavior:"smooth",top:0})},kq=function(e){var t=document.querySelector("mat-form-field.ng-invalid");t&&("Safari"===e.browser?window.scroll(0,t.offsetTop-200):window.scroll({behavior:"smooth",top:t.offsetTop-200}))},wq=function e(t){return null==(n=t)||"object"!=typeof n||t instanceof RegExp||t instanceof N||t.changingThisBreaksApplicationSecurity?t:t instanceof Ek?null:t instanceof Date?new Date(t.getTime()):Array.isArray(t)?t.slice(0).map(function(t){return e(t)}):(t=Object.assign({},t),Object.keys(t).forEach(function(n){return t[n]=e(t[n])}),t);var n},Cq=function(e){return{"repeat-section-dialog-save":!0,disabled:e}},xq=function(){return{"repeat-section-dialog-cancel":!0}},Sq=((yq=function(){function e(t,n,i){b(this,e),this.data=t,this.deviceDetectorService=n,this.dialogRef=i}return w(e,[{key:"ngAfterContentInit",value:function(){this.initialModel=wq(this.data.model),this.updateDisableSave()}},{key:"updateDisableSave",value:function(){this.disableSave=!this.noErrors()}},{key:"noErrors",value:function(){return this.data.fields.every(function(e){return e.formControl&&e.formControl.valid})}},{key:"onNoClick",value:function(){var e=this;Object.keys(this.initialModel).forEach(function(t){e.data.model[t]=e.initialModel[t]});var t=0===Object.keys(this.data.model).length&&this.data.model.constructor===Object;this.dialogRef.close(t?void 0:this.data.model)}},{key:"highlightRequiredFields",value:function(e){var t=this;e.forEach(function(e){e.formControl.updateValueAndValidity(),e.formControl.markAsDirty(),e.fieldGroup&&t.highlightRequiredFields(e.fieldGroup)}),this.updateDisableSave()}},{key:"onInvalidFields",value:function(){this.highlightRequiredFields(this.data.fields),kq(this.deviceDetectorService)}},{key:"onSubmit",value:function(){this.noErrors()&&this.dialogRef.close(this.data)}}]),e}()).\u0275fac=function(e){return new(e||yq)(ls(zD),ls(EW),ls(ID))},yq.\u0275cmp=pt({type:yq,selectors:[["app-repeat-section-dialog"]],decls:14,vars:8,consts:[[1,"mat-typography"],["mat-dialog-content",""],["fxLayout","row","fxLayout.lt-md","column"],["fxFlex",""],["mat-button","","id","highlight-required-fields-in-dialog","color","warn",3,"click"],[3,"fields","model","change"],["mat-dialog-actions",""],["mat-flat-button","","color","primary",3,"ngClass","click"],["mat-button","",3,"ngClass","click"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"div",1),ds(2,"div",2),ds(3,"h1"),Js(4),hs(),fs(5,"span",3),ds(6,"button",4),ks("click",function(){return t.highlightRequiredFields(t.data.fields)}),Js(7,"*Required"),hs(),hs(),ds(8,"formly-form",5),ks("change",function(){return t.updateDisableSave()}),hs(),hs(),ds(9,"div",6),ds(10,"button",7),ks("click",function(){return t.disableSave?t.onInvalidFields():t.onSubmit()}),Js(11,"Save"),hs(),ds(12,"button",8),ks("click",function(){return t.onNoClick()}),Js(13,"Cancel"),hs(),hs(),hs()),2&e&&(Oa(4),el(t.data.title),Oa(4),us("fields",t.data.fields)("model",t.data.model),Oa(2),us("ngClass",Au(5,Cq,!t.noErrors())),Oa(2),us("ngClass",Su(7,xq)))},directives:[$D,Xy,v_,kP,yj,KD,yh,ly],styles:["#highlight-required-fields-in-dialog[_ngcontent-%COMP%]{text-align:right}"]}),yq);function Aq(e,t){1&e&&fs(0,"app-form-printout",3),2&e&&us("field",As().$implicit)}function Oq(e,t){if(1&e&&(ds(0,"p"),Js(1),hs()),2&e){var n=As().$implicit,i=As();Oa(1),el(i.getModelValue(n.name))}}function Eq(e,t){if(1&e&&(ps(0),os(1,Aq,1,1,"app-form-printout",1),os(2,Oq,2,1,"p",2),ms()),2&e){var n=t.$implicit,i=As();Oa(1),us("ngIf",n.fieldGroup&&n.fieldGroup.length>0),Oa(1),us("ngIf",!n.fieldGroup&&i.getModelValue(n.name))}}var Tq,Pq=((Tq=function(){function e(){b(this,e)}return w(e,[{key:"getModelValue",value:function(e){var t,n=this,i=this.field.model[e];if(this.field.fieldGroup&&(this.field.fieldGroup.forEach(function(e){"select"!==e.type&&"multicheckbox"!==e.type&&"radio"!==e.type||e.templateOptions.options.forEach(function(e){n._isOther(e.value)||n._isOther(e.label)||e.value!==i||(t=e.label)})}),t))return t;var r=RegExp("^".concat(e));"string"==typeof i&&r.test(i)&&(i=i.replace(r,""));var a=/_other$|\w+Other$/;if(a.test(e)){var o=e.replace(a,""),s=this.field.model[o];return this._isOther(s)||a.test(s)?i:null}return this._isOther(i)?null:i}},{key:"_isOther",value:function(e){return e&&"string"==typeof e&&"other"===e.toLowerCase()}}]),e}()).\u0275fac=function(e){return new(e||Tq)},Tq.\u0275cmp=pt({type:Tq,selectors:[["app-form-printout"]],inputs:{field:"field"},decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[3,"field",4,"ngIf"],[4,"ngIf"],[3,"field"]],template:function(e,t){1&e&&os(0,Eq,3,2,"ng-container",0),2&e&&us("ngForOf",t.field.fieldGroup)},directives:[bh,wh,Tq],styles:["p[_ngcontent-%COMP%]{margin-bottom:0;margin-top:0}"]}),Tq);function Dq(e,t){if(1&e){var n=vs();ds(0,"mat-card",4),ds(1,"mat-card-content",5),ds(2,"div",6),fs(3,"app-form-printout",7),hs(),ds(4,"div",8),ds(5,"button",9),ks("click",function(){rn(n);var e=t.index,i=t.$implicit;return As().openDialog(e,i)}),ds(6,"mat-icon"),Js(7,"edit"),hs(),hs(),ds(8,"button",9),ks("click",function(){rn(n);var e=t.index;return As().remove(e)}),ds(9,"mat-icon"),Js(10,"close"),hs(),hs(),hs(),hs(),hs()}if(2&e){var i=t.$implicit;Oa(3),us("field",i)}}var Mq,Iq,Rq=((Iq=function(e){f(n,e);var t=m(n);function n(e){var i;return b(this,n),(i=t.call(this)).dialog=e,i}return w(n,[{key:"openDialog",value:function(e,t){var i=this,r=!!t,a=this.field.templateOptions.description;this.dialog.open(Sq,{maxWidth:"100vw",maxHeight:"100vh",minWidth:"70vw",data:{title:r?a.replace(/^Add an|^Add a|^Add/,"Edit"):a,fields:[this.field.fieldArray],model:r?this.field.fieldGroup[e].model:{}}}).afterClosed().subscribe(function(t){t&&t.model&&(i.field.fieldGroup.length>e&&h(_(n.prototype),"remove",i).call(i,e),h(_(n.prototype),"add",i).call(i,e,t.model))})}}]),n}(wj)).\u0275fac=function(e){return new(e||Iq)(ls(qD))},Iq.\u0275cmp=pt({type:Iq,selectors:[["app-repeat-section"]],features:[jo],decls:5,vars:2,consts:[["fxLayout","column","fxLayoutGap","1em",1,"container"],["class","repeat",4,"ngFor","ngForOf"],[1,"repeat-action"],["mat-flat-button","","color","primary","type","button",3,"click"],[1,"repeat"],["fxLayout","row"],["fxFlex","70"],[3,"field"],["fxFlex","30","fxLayout","row","fxLayoutAlign","end start"],["mat-icon-button","","type","button",3,"click"]],template:function(e,t){1&e&&(ds(0,"div",0),os(1,Dq,11,1,"mat-card",1),hs(),ds(2,"div",2),ds(3,"button",3),ks("click",function(){return t.openDialog(t.field.fieldGroup.length)}),Js(4),hs(),hs()),2&e&&(Oa(1),us("ngForOf",t.field.fieldGroup),Oa(3),tl(" ",t.field.templateOptions.description," "))},directives:[Xy,n_,bh,kP,jP,BP,v_,Pq,eb,BR],styles:["mat-card.repeat[_ngcontent-%COMP%]{background-color:#e4e7f2;border-left:8px solid #232d4b}mat-card.repeat[_ngcontent-%COMP%]:active, mat-card.repeat[_ngcontent-%COMP%]:focus, mat-card.repeat[_ngcontent-%COMP%]:focus-within, mat-card.repeat[_ngcontent-%COMP%]:hover{background:#eee}.container[_ngcontent-%COMP%], .repeat-action[_ngcontent-%COMP%]{padding-top:1em}"]}),Iq),Lq=((Mq=function(e){f(n,e);var t=m(n);function n(){return b(this,n),t.apply(this,arguments)}return w(n,[{key:"ngOnInit",value:function(){}}]),n}(kj)).\u0275fac=function(e){return Fq(e||Mq)},Mq.\u0275cmp=pt({type:Mq,selectors:[["app-resize-textarea"]],viewQuery:function(e,t){var n;1&e&&Ku(vM,1),2&e&&$u(n=Ju())&&(t.formFieldControl=n.first)},features:[jo],decls:2,vars:7,consts:[["matInput","",3,"id","formControl","cols","rows","placeholder","formlyAttributes","matTextareaAutosize"]],template:function(e,t){1&e&&(ds(0,"textarea",0),Js(1," "),hs()),2&e&&us("id",t.id)("formControl",t.formControl)("cols",t.to.cols)("rows",t.to.rows)("placeholder",t.to.placeholder)("formlyAttributes",t.field)("matTextareaAutosize",!0)},directives:[vM,wb,dM,Zb,Uk,bj],styles:[""]}),Mq),Fq=fi(Lq),Nq=/^[a-zA-Z0-9.!#$%&\u2019*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/,Vq=/^(\+\d{1,2}\s)?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}$/,Bq=new RegExp("^(?:(?:https?|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))\\.?)(?::\\d{2,5})?(?:[/?#]\\S*)?$","i");function Hq(e){return!e.value||Nq.test(e.value)?null:{email:!0}}function zq(e,t){return'"'.concat(t.formControl.value,'" is not a valid email address')}function Gq(e){var t=e.parent,n=t.get("email"),i=t.get("emailConfirm");return i.value!==n.value&&i.value&&n.value?{emailConfirm:!0}:null}function jq(e,t){return"Email Does Not Match"}function Uq(e){return!e.value||Bq.test(e.value)?null:{url:!0}}function Wq(e,t){return'We cannot save "'.concat(t.formControl.value,'". Please provide the full path, including http:// or https://')}function qq(e){return!e.value||Vq.test(e.value)?null:{phone:!0}}function Yq(e,t){return'"'.concat(t.formControl.value,'" is not a valid phone number')}function Qq(e){if(e.value)for(var t in e.value)if(!0===e.value[t])return null;return{required:!0}}function Xq(e,t){return"At least one of these checkboxes must be selected."}function $q(e,t){return"This value should be more than ".concat(t.templateOptions.min)}function Kq(e,t){return"This value should be less than ".concat(t.templateOptions.max)}function Zq(e){return e.formControl&&e.formControl.invalid&&(e.formControl.dirty||e.options.parentForm&&e.options.parentForm.submitted||e.field.validation&&e.field.validation.show)}function Jq(e){return function(t){return 0===e?hp():t.lift(new eY(e))}}var eY=function(){function e(t){if(b(this,e),this.total=t,this.total<0)throw new Yg}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new tY(e,this.total))}}]),e}(),tY=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this,e)).total=i,r.ring=new Array,r.count=0,r}return w(n,[{key:"_next",value:function(e){var t=this.ring,n=this.total,i=this.count++;t.length0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r2&&void 0!==arguments[2]?arguments[2]:"imperative",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return b(this,n),(r=t.call(this,e,i)).navigationTrigger=a,r.restoredState=o,r}return w(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(nY),rY=function(e){f(n,e);var t=m(n);function n(e,i,r){var a;return b(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a}return w(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(nY),aY=function(e){f(n,e);var t=m(n);function n(e,i,r){var a;return b(this,n),(a=t.call(this,e,i)).reason=r,a}return w(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(nY),oY=function(e){f(n,e);var t=m(n);function n(e,i,r){var a;return b(this,n),(a=t.call(this,e,i)).error=r,a}return w(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(nY),sY=function(e){f(n,e);var t=m(n);function n(e,i,r,a){var o;return b(this,n),(o=t.call(this,e,i)).urlAfterRedirects=r,o.state=a,o}return w(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(nY),lY=function(e){f(n,e);var t=m(n);function n(e,i,r,a){var o;return b(this,n),(o=t.call(this,e,i)).urlAfterRedirects=r,o.state=a,o}return w(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(nY),uY=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o){var s;return b(this,n),(s=t.call(this,e,i)).urlAfterRedirects=r,s.state=a,s.shouldActivate=o,s}return w(n,[{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,")")}}]),n}(nY),cY=function(e){f(n,e);var t=m(n);function n(e,i,r,a){var o;return b(this,n),(o=t.call(this,e,i)).urlAfterRedirects=r,o.state=a,o}return w(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(nY),dY=function(e){f(n,e);var t=m(n);function n(e,i,r,a){var o;return b(this,n),(o=t.call(this,e,i)).urlAfterRedirects=r,o.state=a,o}return w(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(nY),hY=function(){function e(t){b(this,e),this.route=t}return w(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),fY=function(){function e(t){b(this,e),this.route=t}return w(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),pY=function(){function e(t){b(this,e),this.snapshot=t}return w(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),mY=function(){function e(t){b(this,e),this.snapshot=t}return w(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),gY=function(){function e(t){b(this,e),this.snapshot=t}return w(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),vY=function(){function e(t){b(this,e),this.snapshot=t}return w(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),yY=function(){function e(t,n,i){b(this,e),this.routerEvent=t,this.position=n,this.anchor=i}return w(e,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),e}(),_Y=function(){function e(t){b(this,e),this.params=t||{}}return w(e,[{key:"has",value:function(e){return Object.prototype.hasOwnProperty.call(this.params,e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function bY(e){return new _Y(e)}function kY(e){var t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function wY(e,t,n){var i=n.path.split("/");if(i.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||i.length0?e[e.length-1]:null}function OY(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function EY(e){return bs(e)?e:ys(e)?te(Promise.resolve(e)):fp(e)}function TY(e,t,n){return n?function(e,t){return CY(e,t)}(e.queryParams,t.queryParams)&&PY(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return xY(e[n],t[n])})}(e.queryParams,t.queryParams)&&DY(e.root,t.root)}function PY(e,t){if(!FY(e.segments,t.segments))return!1;if(e.numberOfChildren!==t.numberOfChildren)return!1;for(var n in t.children){if(!e.children[n])return!1;if(!PY(e.children[n],t.children[n]))return!1}return!0}function DY(e,t){return MY(e,t,t.segments)}function MY(e,t,n){if(e.segments.length>n.length)return!!FY(e.segments.slice(0,n.length),n)&&!t.hasChildren();if(e.segments.length===n.length){if(!FY(e.segments,n))return!1;for(var i in t.children){if(!e.children[i])return!1;if(!DY(e.children[i],t.children[i]))return!1}return!0}var r=n.slice(0,e.segments.length),a=n.slice(e.segments.length);return!!FY(e.segments,r)&&!!e.children.primary&&MY(e.children.primary,t,a)}var IY=function(){function e(t,n,i){b(this,e),this.root=t,this.queryParams=n,this.fragment=i}return w(e,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=bY(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return BY.serialize(this)}}]),e}(),RY=function(){function e(t,n){var i=this;b(this,e),this.segments=t,this.children=n,this.parent=null,OY(n,function(e,t){return e.parent=i})}return w(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return HY(this)}}]),e}(),LY=function(){function e(t,n){b(this,e),this.path=t,this.parameters=n}return w(e,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=bY(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return YY(this)}}]),e}();function FY(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}var NY=function e(){b(this,e)},VY=function(){function e(){b(this,e)}return w(e,[{key:"parse",value:function(e){var t=new ZY(e);return new IY(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){var t,n,i;return"/".concat(zY(e.root,!0)).concat((n=e.queryParams,i=Object.keys(n).map(function(e){var t=n[e];return Array.isArray(t)?t.map(function(t){return"".concat(jY(e),"=").concat(jY(t))}).join("&"):"".concat(jY(e),"=").concat(jY(t))}),i.length?"?".concat(i.join("&")):"")).concat("string"==typeof e.fragment?"#".concat((t=e.fragment,encodeURI(t))):"")}}]),e}(),BY=new VY;function HY(e){return e.segments.map(function(e){return YY(e)}).join("/")}function zY(e,t){if(!e.hasChildren())return HY(e);if(t){var n=e.children.primary?zY(e.children.primary,!1):"",i=[];return OY(e.children,function(e,t){"primary"!==t&&i.push("".concat(t,":").concat(zY(e,!1)))}),i.length>0?"".concat(n,"(").concat(i.join("//"),")"):n}var r=function(e,t){var n=[];return OY(e.children,function(e,i){"primary"===i&&(n=n.concat(t(e,i)))}),OY(e.children,function(e,i){"primary"!==i&&(n=n.concat(t(e,i)))}),n}(e,function(t,n){return"primary"===n?[zY(e.children.primary,!1)]:["".concat(n,":").concat(zY(t,!1))]});return 1===Object.keys(e.children).length&&null!=e.children.primary?"".concat(HY(e),"/").concat(r[0]):"".concat(HY(e),"/(").concat(r.join("//"),")")}function GY(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function jY(e){return GY(e).replace(/%3B/gi,";")}function UY(e){return GY(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function WY(e){return decodeURIComponent(e)}function qY(e){return WY(e.replace(/\+/g,"%20"))}function YY(e){return"".concat(UY(e.path)).concat((t=e.parameters,Object.keys(t).map(function(e){return";".concat(UY(e),"=").concat(UY(t[e]))}).join("")));var t}var QY=/^[^\/()?;=#]+/;function XY(e){var t=e.match(QY);return t?t[0]:""}var $Y=/^[^=?&#]+/,KY=/^[^?&#]+/,ZY=function(){function e(t){b(this,e),this.url=t,this.remaining=t}return w(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new RY([],{}):new RY([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new RY(e,t)),n}},{key:"parseSegment",value:function(){var e=XY(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new LY(WY(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=XY(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=XY(this.remaining);i&&(n=i,this.capture(n))}e[WY(t)]=WY(n)}}},{key:"parseQueryParam",value:function(e){var t,n,i=(t=this.remaining,(n=t.match($Y))?n[0]:"");if(i){this.capture(i);var r="";if(this.consumeOptional("=")){var a=function(e){var t=e.match(KY);return t?t[0]:""}(this.remaining);a&&(r=a,this.capture(r))}var o=qY(i),s=qY(r);if(e.hasOwnProperty(o)){var l=e[o];Array.isArray(l)||(l=[l],e[o]=l),l.push(s)}else e[o]=s}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=XY(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '".concat(this.url,"'"));var r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):e&&(r="primary");var a=this.parseChildren();t[r]=1===Object.keys(a).length?a.primary:new RY([],a),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}]),e}(),JY=function(){function e(t){b(this,e),this._root=t}return w(e,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=eQ(e,this._root);return t?t.children.map(function(e){return e.value}):[]}},{key:"firstChild",value:function(e){var t=eQ(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=tQ(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})}},{key:"pathFromRoot",value:function(e){return tQ(e,this._root).map(function(e){return e.value})}}]),e}();function eQ(e,t){if(e===t.value)return t;var n,i=s(t.children);try{for(i.s();!(n=i.n()).done;){var r=eQ(e,n.value);if(r)return r}}catch(a){i.e(a)}finally{i.f()}return null}function tQ(e,t){if(e===t.value)return[t];var n,i=s(t.children);try{for(i.s();!(n=i.n()).done;){var r=tQ(e,n.value);if(r.length)return r.unshift(t),r}}catch(a){i.e(a)}finally{i.f()}return[]}var nQ=function(){function e(t,n){b(this,e),this.value=t,this.children=n}return w(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function iQ(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var rQ=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this,e)).snapshot=i,cQ(v(r),e),r}return w(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(JY);function aQ(e,t){var n=function(e,t){var n=new lQ([],{},{},"",{},"primary",t,null,e.root,-1,{});return new uQ("",new nQ(n,[]))}(e,t),i=new ep([new LY("",{})]),r=new ep({}),a=new ep({}),o=new ep({}),s=new ep(""),l=new oQ(i,r,o,s,a,"primary",t,n.root);return l.snapshot=n.root,new rQ(new nQ(l,[]),n)}var oQ=function(){function e(t,n,i,r,a,o,s,l){b(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=a,this.outlet=o,this.component=s,this._futureSnapshot=l}return w(e,[{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(q(function(e){return bY(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(q(function(e){return bY(e)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),e}();function sQ(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,i=0;if("always"!==t)for(i=n.length-1;i>=1;){var r=n[i],a=n[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(a.component)break;i--}}return function(e){return e.reduce(function(e,t){return{params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(i))}var lQ=function(){function e(t,n,i,r,a,o,s,l,u,c,d){b(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=a,this.outlet=o,this.component=s,this.routeConfig=l,this._urlSegment=u,this._lastPathIndex=c,this._resolve=d}return w(e,[{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=bY(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=bY(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return"Route(url:'".concat(this.url.map(function(e){return e.toString()}).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}}]),e}(),uQ=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this,i)).url=e,cQ(v(r),i),r}return w(n,[{key:"toString",value:function(){return dQ(this._root)}}]),n}(JY);function cQ(e,t){t.value._routerState=e,t.children.forEach(function(t){return cQ(e,t)})}function dQ(e){var t=e.children.length>0?" { ".concat(e.children.map(dQ).join(", ")," } "):"";return"".concat(e.value).concat(t)}function hQ(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,CY(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),CY(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n0&&gQ(i[0]))throw new Error("Root segment cannot have matrix parameters");var r=i.find(vQ);if(r&&r!==AY(i))throw new Error("{outlets:{}} has to be the last command")}return w(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),kQ=function e(t,n,i){b(this,e),this.segmentGroup=t,this.processChildren=n,this.index=i};function wQ(e,t,n){if(e||(e=new RY([],{})),0===e.segments.length&&e.hasChildren())return CQ(e,t,n);var i=function(e,t,n){for(var i=0,r=t,a={match:!1,pathIndex:0,commandIndex:0};r=n.length)return a;var o=e.segments[r],s=n[i];if(vQ(s))break;var l="".concat(s),u=i0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!OQ(l,u,o))return a;i+=2}else{if(!OQ(l,{},o))return a;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,t,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",n=0;n0)?Object.assign({},jQ):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var r=(t.matcher||wY)(n,e,t);if(!r)return Object.assign({},jQ);var a={};OY(r.posParams,function(e,t){a[t]=e.path});var o=r.consumed.length>0?Object.assign(Object.assign({},a),r.consumed[r.consumed.length-1].parameters):a;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function WQ(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(n.length>0&&function(e,t,n){return n.some(function(n){return qQ(e,t,n)&&"primary"!==zQ(n)})}(e,n,i)){var a=new RY(t,function(e,t,n,i){var r={};r.primary=i,i._sourceSegment=e,i._segmentIndexShift=t.length;var a,o=s(n);try{for(o.s();!(a=o.n()).done;){var l=a.value;if(""===l.path&&"primary"!==zQ(l)){var u=new RY([],{});u._sourceSegment=e,u._segmentIndexShift=t.length,r[zQ(l)]=u}}}catch(c){o.e(c)}finally{o.f()}return r}(e,t,i,new RY(n,e.children)));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(function(n){return qQ(e,t,n)})}(e,n,i)){var o=new RY(e.segments,function(e,t,n,i,r,a){var o,l={},u=s(i);try{for(u.s();!(o=u.n()).done;){var c=o.value;if(qQ(e,n,c)&&!r[zQ(c)]){var d=new RY([],{});d._sourceSegment=e,d._segmentIndexShift="legacy"===a?e.segments.length:t.length,l[zQ(c)]=d}}}catch(h){u.e(h)}finally{u.f()}return Object.assign(Object.assign({},r),l)}(e,t,n,i,e.children,r));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:n}}var l=new RY(e.segments,e.children);return l._sourceSegment=e,l._segmentIndexShift=t.length,{segmentGroup:l,slicedSegments:n}}function qQ(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function YQ(e,t,n,i){return!!(zQ(e)===i||"primary"!==i&&qQ(t,n,e))&&("**"===e.path||UQ(t,e,n).matched)}function QQ(e,t,n){return 0===t.length&&!e.children[n]}var XQ=function e(t){b(this,e),this.segmentGroup=t||null},$Q=function e(t){b(this,e),this.urlTree=t};function KQ(e){return new N(function(t){return t.error(new XQ(e))})}function ZQ(e){return new N(function(t){return t.error(new $Q(e))})}function JQ(e){return new N(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))})}var eX=function(){function e(t,n,i,r,a){b(this,e),this.configLoader=n,this.urlSerializer=i,this.urlTree=r,this.config=a,this.allowRedirects=!0,this.ngModule=t.get(lu)}return w(e,[{key:"apply",value:function(){var e=this,t=WQ(this.urlTree.root,[],[],this.config).segmentGroup,n=new RY(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,n,"primary").pipe(q(function(t){return e.createUrlTree(tX(t),e.urlTree.queryParams,e.urlTree.fragment)})).pipe(uR(function(t){if(t instanceof $Q)return e.allowRedirects=!1,e.match(t.urlTree);if(t instanceof XQ)throw e.noMatchError(t);throw t}))}},{key:"match",value:function(e){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,"primary").pipe(q(function(n){return t.createUrlTree(tX(n),e.queryParams,e.fragment)})).pipe(uR(function(e){if(e instanceof XQ)throw t.noMatchError(e);throw e}))}},{key:"noMatchError",value:function(e){return new Error("Cannot match any routes. URL Segment: '".concat(e.segmentGroup,"'"))}},{key:"createUrlTree",value:function(e,t,n){var i=e.segments.length>0?new RY([],{primary:e}):e;return new IY(i,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(q(function(e){return new RY([],e)})):this.expandSegment(e,n,t,n.segments,i,!0)}},{key:"expandChildren",value:function(e,t,n){for(var i=this,r=[],a=0,o=Object.keys(n.children);a=2;return function(i){return i.pipe(e?jm(function(t,n){return e(t,n,i)}):I,Jq(1),n?DW(t):RW(function(){return new PW}))}}())}},{key:"expandSegment",value:function(e,t,n,i,r,a){var o=this;return te(n).pipe(Gm(function(s){return o.expandSegmentAgainstRoute(e,t,n,s,i,r,a).pipe(uR(function(e){if(e instanceof XQ)return fp(null);throw e}))}),VW(function(e){return!!e}),uR(function(e,n){if(e instanceof PW||"EmptyError"===e.name){if(QQ(t,i,r))return fp(new RY([],{}));throw new XQ(t)}throw e}))}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,i,r,a,o){return YQ(i,t,r,a)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,r,a):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,r,a):KQ(t):KQ(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,a){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,i,a):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,r,a)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,i){var r=this,a=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?ZQ(a):this.lineralizeSegments(n,a).pipe(ae(function(n){var a=new RY(n,{});return r.expandSegment(e,a,t,n,i,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,a){var o=this,s=UQ(t,i,r),l=s.matched,u=s.consumedSegments,c=s.lastChild,d=s.positionalParamSegments;if(!l)return KQ(t);var h=this.applyRedirectCommands(u,i.redirectTo,d);return i.redirectTo.startsWith("/")?ZQ(h):this.lineralizeSegments(i,h).pipe(ae(function(i){return o.expandSegment(e,t,n,i.concat(r.slice(c)),a,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,i,r){var a=this;if("**"===n.path)return n.loadChildren?(n._loadedConfig?fp(n._loadedConfig):this.configLoader.load(e.injector,n)).pipe(q(function(e){return n._loadedConfig=e,new RY(i,{})})):fp(new RY(i,{}));var o=UQ(t,n,i),s=o.matched,l=o.consumedSegments,u=o.lastChild;if(!s)return KQ(t);var c=i.slice(u);return this.getChildConfig(e,n,i).pipe(ae(function(e){var i=e.module,o=e.routes,s=WQ(t,l,c,o),u=s.segmentGroup,d=s.slicedSegments,h=new RY(u.segments,u.children);if(0===d.length&&h.hasChildren())return a.expandChildren(i,o,h).pipe(q(function(e){return new RY(l,e)}));if(0===o.length&&0===d.length)return fp(new RY(l,{}));var f=zQ(n)===r;return a.expandSegment(i,h,o,d,f?"primary":r,!0).pipe(q(function(e){return new RY(l.concat(e.segments),e.children)}))}))}},{key:"getChildConfig",value:function(e,t,n){var i=this;return t.children?fp(new PQ(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?fp(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(ae(function(n){return n?i.configLoader.load(e.injector,t).pipe(q(function(e){return t._loadedConfig=e,e})):function(e){return new N(function(t){return t.error(kY("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))})}(t)})):fp(new PQ([],e))}},{key:"runCanLoadGuards",value:function(e,t,n){var i=this,r=t.canLoad;return r&&0!==r.length?fp(r.map(function(i){var r,a=e.get(i);if(function(e){return e&&DQ(e.canLoad)}(a))r=a.canLoad(t,n);else{if(!DQ(a))throw new Error("Invalid CanLoad guard");r=a(t,n)}return EY(r)})).pipe(RQ(),Zg(function(e){if(MQ(e)){var t=kY('Redirecting to "'.concat(i.urlSerializer.serialize(e),'"'));throw t.url=e,t}}),q(function(e){return!0===e})):fp(!0)}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],i=t.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return fp(n);if(i.numberOfChildren>1||!i.children.primary)return JQ(e.redirectTo);i=i.children.primary}}},{key:"applyRedirectCommands",value:function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,n,i){var r=this.createSegmentGroup(e,t.root,n,i);return new IY(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return OY(e,function(e,i){if("string"==typeof e&&e.startsWith(":")){var r=e.substring(1);n[i]=t[r]}else n[i]=e}),n}},{key:"createSegmentGroup",value:function(e,t,n,i){var r=this,a=this.createSegments(e,t.segments,n,i),o={};return OY(t.children,function(t,a){o[a]=r.createSegmentGroup(e,t,n,i)}),new RY(a,o)}},{key:"createSegments",value:function(e,t,n,i){var r=this;return t.map(function(t){return t.path.startsWith(":")?r.findPosParam(e,t,i):r.findOrReturn(t,n)})}},{key:"findPosParam",value:function(e,t,n){var i=n[t.path.substring(1)];if(!i)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return i}},{key:"findOrReturn",value:function(e,t){var n,i=0,r=s(t);try{for(r.s();!(n=r.n()).done;){var a=n.value;if(a.path===e.path)return t.splice(i),a;i++}}catch(o){r.e(o)}finally{r.f()}return e}}]),e}();function tX(e){for(var t={},n=0,i=Object.keys(e.children);n0||a.hasChildren())&&(t[r]=a)}return function(e){if(1===e.numberOfChildren&&e.children.primary){var t=e.children.primary;return new RY(e.segments.concat(t.segments),t.children)}return e}(new RY(e.segments,t))}var nX=function e(t){b(this,e),this.path=t,this.route=this.path[this.path.length-1]},iX=function e(t,n){b(this,e),this.component=t,this.route=n};function rX(e,t,n){var i=e._root;return oX(i,t?t._root:null,n,[i.value])}function aX(e,t,n){var i=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(i?i.module.injector:n).get(e)}function oX(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=iQ(t);return e.children.forEach(function(e){!function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=e.value,o=t?t.value:null,s=n?n.getContext(e.value.outlet):null;if(o&&a.routeConfig===o.routeConfig){var l=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!FY(e.url,t.url);case"pathParamsOrQueryParamsChange":return!FY(e.url,t.url)||!CY(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!fQ(e,t)||!CY(e.queryParams,t.queryParams);case"paramsChange":default:return!fQ(e,t)}}(o,a,a.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new nX(i)):(a.data=o.data,a._resolvedData=o._resolvedData),oX(e,t,a.component?s?s.children:null:n,i,r),l&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new iX(s.outlet.component,o))}else o&&sX(t,s,r),r.canActivateChecks.push(new nX(i)),oX(e,null,a.component?s?s.children:null:n,i,r)}(e,a[e.value.outlet],n,i.concat([e.value]),r),delete a[e.value.outlet]}),OY(a,function(e,t){return sX(e,n.getContext(t),r)}),r}function sX(e,t,n){var i=iQ(e),r=e.value;OY(i,function(e,i){sX(e,r.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new iX(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}var lX=function e(){b(this,e)};function uX(e){return new N(function(t){return t.error(e)})}var cX=function(){function e(t,n,i,r,a,o){b(this,e),this.rootComponentType=t,this.config=n,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=a,this.relativeLinkResolution=o}return w(e,[{key:"recognize",value:function(){var e=WQ(this.urlTree.root,[],[],this.config.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,"primary");if(null===t)return null;var n=new lQ([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new nQ(n,t),r=new uQ(this.url,i);return this.inheritParamsAndData(r._root),r}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,i=sQ(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})}},{key:"processSegmentGroup",value:function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}},{key:"processChildren",value:function(e,t){for(var n=[],i=0,r=Object.keys(t.children);i0?AY(n).parameters:{};r=new lQ(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,fX(e),zQ(e),e.component,e,dX(t),hX(t)+n.length,pX(e))}else{var l=UQ(t,e,n);if(!l.matched)return null;a=l.consumedSegments,o=n.slice(l.lastChild),r=new lQ(a,l.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,fX(e),zQ(e),e.component,e,dX(t),hX(t)+a.length,pX(e))}var u=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),c=WQ(t,a,o,u.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution),d=c.segmentGroup,h=c.slicedSegments;if(0===h.length&&d.hasChildren()){var f=this.processChildren(u,d);return null===f?null:[new nQ(r,f)]}if(0===u.length&&0===h.length)return[new nQ(r,[])];var p=zQ(e)===i,m=this.processSegment(u,d,h,p?"primary":i);return null===m?null:[new nQ(r,m)]}}]),e}();function dX(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function hX(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function fX(e){return e.data||{}}function pX(e){return e.resolve||{}}function mX(e){return xp(function(t){var n=e(t);return n?te(n).pipe(q(function(){return t})):fp(t)})}var gX=function(e){f(n,e);var t=m(n);function n(){return b(this,n),t.apply(this,arguments)}return n}(function(){function e(){b(this,e)}return w(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}]),e}()),vX=new _i("ROUTES"),yX=function(){function e(t,n,i,r){b(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=i,this.onLoadEndListener=r}return w(e,[{key:"load",value:function(e,t){var n=this;if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);var i=this.loadModuleFactory(t.loadChildren).pipe(q(function(i){n.onLoadEndListener&&n.onLoadEndListener(t);var r=i.create(e);return new PQ(SY(r.injector.get(vX,void 0,qe.Self|qe.Optional)).map(HQ),r)}),uR(function(e){throw t._loader$=void 0,e}));return t._loader$=new ge(i,function(){return new j}).pipe(he()),t._loader$}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?te(this.loader.load(e)):EY(e()).pipe(ae(function(e){return e instanceof uu?fp(e):te(t.compiler.compileModuleAsync(e))}))}}]),e}(),_X=function e(){b(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new bX,this.attachRef=null},bX=function(){function e(){b(this,e),this.contexts=new Map}return w(e,[{key:"onChildOutletCreated",value:function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}},{key:"onChildOutletDestroyed",value:function(e){var t=this.getContext(e);t&&(t.outlet=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var t=this.getContext(e);return t||(t=new _X,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),e}(),kX=function(){function e(){b(this,e)}return w(e,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}]),e}();function wX(e){throw e}function CX(e,t,n){return t.parse("/")}function xX(e,t){return fp(null)}var SX,AX,OX,EX=((OX=function(){function e(t,n,i,r,a,o,s,l){var u=this;b(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=i,this.location=r,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new j,this.errorHandler=wX,this.malformedUriErrorHandler=CX,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:xX,afterPreactivation:xX},this.urlHandlingStrategy=new kX,this.routeReuseStrategy=new gX,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=a.get(lu),this.console=a.get(pc);var c=a.get(Oc);this.isNgZoneEnabled=c instanceof Oc&&Oc.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=new IY(new RY([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new yX(o,s,function(e){return u.triggerEvent(new hY(e))},function(e){return u.triggerEvent(new fY(e))}),this.routerState=aQ(this.currentUrlTree,this.rootComponentType),this.transitions=new ep({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 w(e,[{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe(jm(function(e){return 0!==e.id}),q(function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})}),xp(function(e){var i,r,a,o=!1,s=!1;return fp(e).pipe(Zg(function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign(Object.assign({},t.lastSuccessfulNavigation),{previousNavigation:null}):null}}),xp(function(e){var i,r,a,o,s=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||s)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return fp(e).pipe(xp(function(e){var i=t.transitions.getValue();return n.next(new iY(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),i!==t.transitions.getValue()?dp:Promise.resolve(e)}),(i=t.ngModule.injector,r=t.configLoader,a=t.urlSerializer,o=t.config,xp(function(e){return function(e,t,n,i,r){return new eX(e,t,n,i,r).apply()}(i,r,a,e.extractedUrl,o).pipe(q(function(t){return Object.assign(Object.assign({},e),{urlAfterRedirects:t})}))})),Zg(function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,n,i,r,a){return ae(function(i){return function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var o=new cX(e,t,n,i,r,a).recognize();return null===o?uX(new lX):fp(o)}catch(s){return uX(s)}}(e,n,i.urlAfterRedirects,(o=i.urlAfterRedirects,t.serializeUrl(o)),r,a).pipe(q(function(e){return Object.assign(Object.assign({},i),{targetSnapshot:e})}));var o})}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),Zg(function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects);var i=new sY(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(i)}));if(s&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var l=e.id,u=e.extractedUrl,c=e.source,d=e.restoredState,h=e.extras,f=new iY(l,t.serializeUrl(u),c,d);n.next(f);var p=aQ(u,t.rootComponentType).snapshot;return fp(Object.assign(Object.assign({},e),{targetSnapshot:p,urlAfterRedirects:u,extras:Object.assign(Object.assign({},h),{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),dp}),mX(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,a=e.rawUrl,o=e.extras,s=o.skipLocationChange,l=o.replaceUrl;return t.hooks.beforePreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:a,skipLocationChange:!!s,replaceUrl:!!l})}),Zg(function(e){var n=new lY(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),q(function(e){return Object.assign(Object.assign({},e),{guards:rX(e.targetSnapshot,e.currentSnapshot,t.rootContexts)})}),function(e,t){return ae(function(n){var i=n.targetSnapshot,r=n.currentSnapshot,a=n.guards,o=a.canActivateChecks,s=a.canDeactivateChecks;return 0===s.length&&0===o.length?fp(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,i){return te(e).pipe(ae(function(e){return function(e,t,n,i,r){var a=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return a&&0!==a.length?fp(a.map(function(a){var o,s=aX(a,t,r);if(function(e){return e&&DQ(e.canDeactivate)}(s))o=EY(s.canDeactivate(e,t,n,i));else{if(!DQ(s))throw new Error("Invalid CanDeactivate guard");o=EY(s(e,t,n,i))}return o.pipe(VW())})).pipe(RQ()):fp(!0)}(e.component,e.route,n,t,i)}),VW(function(e){return!0!==e},!0))}(s,i,r,e).pipe(ae(function(n){return n&&"boolean"==typeof n?function(e,t,n,i){return te(t).pipe(Gm(function(t){return Ip(function(e,t){return null!==e&&t&&t(new pY(e)),fp(!0)}(t.route.parent,i),function(e,t){return null!==e&&t&&t(new gY(e)),fp(!0)}(t.route,i),function(e,t,n){var i=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)}).filter(function(e){return null!==e}).map(function(t){return rO(function(){return fp(t.guards.map(function(r){var a,o=aX(r,t.node,n);if(function(e){return e&&DQ(e.canActivateChild)}(o))a=EY(o.canActivateChild(i,e));else{if(!DQ(o))throw new Error("Invalid CanActivateChild guard");a=EY(o(i,e))}return a.pipe(VW())})).pipe(RQ())})});return fp(r).pipe(RQ())}(e,t.path,n),function(e,t,n){var i=t.routeConfig?t.routeConfig.canActivate:null;return i&&0!==i.length?fp(i.map(function(i){return rO(function(){var r,a=aX(i,t,n);if(function(e){return e&&DQ(e.canActivate)}(a))r=EY(a.canActivate(t,e));else{if(!DQ(a))throw new Error("Invalid CanActivate guard");r=EY(a(t,e))}return r.pipe(VW())})})).pipe(RQ()):fp(!0)}(e,t.route,n))}),VW(function(e){return!0!==e},!0))}(i,o,e,t):fp(n)}),q(function(e){return Object.assign(Object.assign({},n),{guardsResult:e})}))})}(t.ngModule.injector,function(e){return t.triggerEvent(e)}),Zg(function(e){if(MQ(e.guardsResult)){var n=kY('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}var i=new uY(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(i)}),jm(function(e){if(!e.guardsResult){t.resetUrlToCurrentUrlTree();var i=new aY(e.id,t.serializeUrl(e.extractedUrl),"");return n.next(i),e.resolve(!1),!1}return!0}),mX(function(e){if(e.guards.canActivateChecks.length)return fp(e).pipe(Zg(function(e){var n=new cY(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),xp(function(e){var i,r,a=!1;return fp(e).pipe((i=t.paramsInheritanceStrategy,r=t.ngModule.injector,ae(function(e){var t=e.targetSnapshot,n=e.guards.canActivateChecks;if(!n.length)return fp(e);var a=0;return te(n).pipe(Gm(function(e){return function(e,t,n,i){return function(e,t,n,i){var r=Object.keys(e);if(0===r.length)return fp({});var a={};return te(r).pipe(ae(function(r){return function(e,t,n,i){var r=aX(e,t,i);return EY(r.resolve?r.resolve(t,n):r(t,n))}(e[r],t,n,i).pipe(Zg(function(e){a[r]=e}))}),Jq(1),ae(function(){return Object.keys(a).length===r.length?fp(a):dp}))}(e._resolve,e,t,i).pipe(q(function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),sQ(e,n).resolve),null}))}(e.route,t,i,r)}),Zg(function(){return a++}),Jq(1),ae(function(t){return a===n.length?fp(e):dp}))})),Zg({next:function(){return a=!0},complete:function(){if(!a){var i=new aY(e.id,t.serializeUrl(e.extractedUrl),"At least one route resolver didn't emit any value.");n.next(i),e.resolve(!1)}}}))}),Zg(function(e){var n=new dY(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}))}),mX(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,a=e.rawUrl,o=e.extras,s=o.skipLocationChange,l=o.replaceUrl;return t.hooks.afterPreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:a,skipLocationChange:!!s,replaceUrl:!!l})}),q(function(e){var n=function(e,t,n){var i=pQ(e,t._root,n?n._root:void 0);return new rQ(i,t)}(t.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:n})}),Zg(function(e){t.currentUrlTree=e.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(t.currentUrlTree,e.rawUrl),t.routerState=e.targetRouterState,"deferred"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)}),(i=t.rootContexts,r=t.routeReuseStrategy,a=function(e){return t.triggerEvent(e)},q(function(e){return new EQ(r,e.targetRouterState,e.currentRouterState,a).activate(i),e})),Zg({next:function(){o=!0},complete:function(){o=!0}}),hR(function(){if(!o&&!s){t.resetUrlToCurrentUrlTree();var i=new aY(e.id,t.serializeUrl(e.extractedUrl),"Navigation ID ".concat(e.id," is not equal to the current navigation id ").concat(t.navigationId));n.next(i),e.resolve(!1)}t.currentNavigation=null}),uR(function(i){if(s=!0,(l=i)&&l.ngNavigationCancelingError){var r=MQ(i.url);r||(t.navigated=!0,t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));var a=new aY(e.id,t.serializeUrl(e.extractedUrl),i.message);n.next(a),r?setTimeout(function(){var n=t.urlHandlingStrategy.merge(i.url,t.rawUrlTree);t.scheduleNavigation(n,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);var o=new oY(e.id,t.serializeUrl(e.extractedUrl),i);n.next(o);try{e.resolve(t.errorHandler(i))}catch(u){e.reject(u)}}var l;return dp}))}))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var n=e.extractLocationChangeInfoFromEvent(t);e.shouldScheduleNavigation(e.lastLocationChangeInfo,n)&&setTimeout(function(){var t=n.source,i=n.state,r=n.urlTree,a={replaceUrl:!0};if(i){var o=Object.assign({},i);delete o.navigationId,0!==Object.keys(o).length&&(a.state=o)}e.scheduleNavigation(r,t,i,a)},0),e.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(e,t){if(!e)return!0;var n=t.urlTree.toString()===e.urlTree.toString();return!(t.transitionId===e.transitionId&&n&&("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){NQ(e),this.config=e.map(HQ),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relativeTo,i=t.queryParams,r=t.fragment,o=t.queryParamsHandling,s=t.preserveFragment,l=n||this.routerState.root,u=s?this.currentUrlTree.fragment:r,c=null;switch(o){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),function(e,t,n,i,r){if(0===n.length)return yQ(t.root,t.root,t,i,r);var o=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new bQ(!0,0,e);var t=0,n=!1,i=e.reduce(function(e,i,r){if("object"==typeof i&&null!=i){if(i.outlets){var o={};return OY(i.outlets,function(e,t){o[t]="string"==typeof e?e.split("/"):e}),[].concat(a(e),[{outlets:o}])}if(i.segmentPath)return[].concat(a(e),[i.segmentPath])}return"string"!=typeof i?[].concat(a(e),[i]):0===r?(i.split("/").forEach(function(i,r){0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?t++:""!=i&&e.push(i))}),e):[].concat(a(e),[i])},[]);return new bQ(n,t,i)}(n);if(o.toRoot())return yQ(t.root,new RY([],{}),t,i,r);var s=function(e,t,n){if(e.isAbsolute)return new kQ(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){var i=n.snapshot._urlSegment;return new kQ(i,i===t.root,0)}var r=gQ(e.commands[0])?0:1;return function(e,t,n){for(var i=e,r=t,a=n;a>r;){if(a-=r,!(i=i.parent))throw new Error("Invalid number of '../'");r=i.segments.length}return new kQ(i,!1,r-a)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(o,t,e),l=s.processChildren?CQ(s.segmentGroup,s.index,o.commands):wQ(s.segmentGroup,s.index,o.commands);return yQ(s.segmentGroup,l,t,i,r)}(l,this.currentUrlTree,e,c,u)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=MQ(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(e){for(var t=0;t2&&void 0!==arguments[2]?arguments[2]:{};b(this,e),this.router=t,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 w(e,[{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 e=this;return this.router.events.subscribe(function(t){t instanceof iY?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof rY&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof yY&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new yY(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||RX)(Ni(EX),Ni(nf),Ni(void 0))},RX.\u0275prov=Le({token:RX,factory:RX.\u0275fac}),RX),jX=new _i("ROUTER_CONFIGURATION"),UX=new _i("ROUTER_FORROOT_GUARD"),WX=[Od,{provide:NY,useClass:VY},{provide:EX,useFactory:function(e,t,n,i,r,a,o){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},l=arguments.length>8?arguments[8]:void 0,u=arguments.length>9?arguments[9]:void 0,c=new EX(null,e,t,n,i,r,a,SY(o));if(l&&(c.urlHandlingStrategy=l),u&&(c.routeReuseStrategy=u),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(s,c),s.enableTracing){var d=ad();c.events.subscribe(function(e){d.logGroup("Router Event: ".concat(e.constructor.name)),d.log(e.toString()),d.log(e),d.logGroupEnd()})}return c},deps:[NY,bX,Od,zo,$c,xc,vX,jX,[function(){return function e(){b(this,e)}}(),new Ui],[function(){return function e(){b(this,e)}}(),new Ui]]},bX,{provide:oQ,useFactory:function(e){return e.routerState.root},deps:[EX]},{provide:$c,useClass:Jc},zX,HX,function(){function e(){b(this,e)}return w(e,[{key:"preload",value:function(e,t){return t().pipe(uR(function(){return fp(null)}))}}]),e}(),{provide:jX,useValue:{enableTracing:!1}}];function qX(){return new Gc("Router",EX)}var YX,QX=((YX=function(){function e(t,n){b(this,e)}return w(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[WX,ZX(t),{provide:UX,useFactory:KX,deps:[[EX,new Ui,new Wi]]},{provide:jX,useValue:n||{}},{provide:_d,useFactory:$X,deps:[ld,[new ji(xd),new Ui],jX]},{provide:GX,useFactory:XX,deps:[EX,nf,jX]},{provide:BX,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:HX},{provide:Gc,multi:!0,useFactory:qX},[e$,{provide:oc,multi:!0,useFactory:t$,deps:[e$]},{provide:c$,useFactory:n$,deps:[e$]},{provide:fc,multi:!0,useExisting:c$}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[ZX(t)]}}}]),e}()).\u0275fac=function(e){return new(e||YX)(Ni(UX,8),Ni(EX,8))},YX.\u0275mod=yt({type:YX}),YX.\u0275inj=Ne({}),YX);function XX(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new GX(e,t,n)}function $X(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new Ad(e,t):new Sd(e,t)}function KX(e){return"guarded"}function ZX(e){return[{provide:bi,multi:!0,useValue:e},{provide:vX,multi:!0,useValue:e}]}var JX,e$=((JX=function(){function e(t){b(this,e),this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new j}return w(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(dd,Promise.resolve(null)).then(function(){var t=null,n=new Promise(function(e){return t=e}),i=e.injector.get(EX),r=e.injector.get(jX);return"disabled"===r.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(i.hooks.afterPreactivation=function(){return e.initNavigation?fp(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},i.initialNavigation()):t(!0),n})}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(jX),n=this.injector.get(zX),i=this.injector.get(GX),r=this.injector.get(EX),a=this.injector.get(Qc);e===a.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||r.initialNavigation(),n.setUpPreloading(),i.init(),r.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}]),e}()).\u0275fac=function(e){return new(e||JX)(Ni(zo))},JX.\u0275prov=Le({token:JX,factory:JX.\u0275fac}),JX);function t$(e){return e.appInitializer.bind(e)}function n$(e){return e.bootstrapListener.bind(e)}var i$,r$,a$,o$,s$,l$,u$,c$=new _i("Router Initializer"),d$=((a$=function(){function e(){b(this,e)}return w(e,[{key:"fromProperties",value:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}}]),e}()).\u0275fac=function(e){return new(e||a$)},a$.\u0275prov=Le({token:a$,factory:a$.\u0275fac,providedIn:"root"}),a$),h$=((r$=function(){function e(t,n){b(this,e),this.router=t,this.configService=n}return w(e,[{key:"event",value:function(e,t,n){gtag("event",e,{event_category:t,event_label:n})}},{key:"errorEvent",value:function(e){this.event(e.code,"error_messages",e.message)}},{key:"accountEvent",value:function(e){this.event(e,"account","")}},{key:"searchEvent",value:function(e){e.words&&this.event(e.words,"search","");var t,n=s(e.ages);try{for(n.s();!(t=n.n()).done;){var i=t.value;this.event(i.toString(),"search_filter","")}}catch(r){n.e(r)}finally{n.f()}e.category&&this.event(e.category.name,"search_filter","search_topic"),1===e.types.length&&this.event(e.types[0].toString(),"search_filter",""),this.event(e.sort.field,"search_sort",""),this.event(e.start.toString(),"search_start","")}},{key:"searchInteractionEvent",value:function(e){this.event(e,"search_interaction","")}},{key:"mapEvent",value:function(e){this.event(e,"map_interaction","map_pin_click")}},{key:"mapResourceEvent",value:function(e){this.event(e,"map_interaction","map_pin_resource_click")}},{key:"studyInquiryEvent",value:function(e){this.event(e.id.toString(),"study_inquiry",e.title)}},{key:"studySurveyEvent",value:function(e){this.event(e.id.toString(),"study_survey",e.title)}},{key:"flowStartEvent",value:function(e){this.event(e,"flow_started","")}},{key:"flowCompleteEvent",value:function(e){this.event(e,"flow_completed","")}},{key:"stepCompleteEvent",value:function(e){this.event(e,"step_completed","")}},{key:"relatedContentEvent",value:function(e,t){this.event(e,"related_content",t)}},{key:"set_user",value:function(e){gtag("set",{user_id:e})}},{key:"init",value:function(){this.listenForRouteChanges();try{var e=this.configService.googleAnalyticsKey,t=document.createElement("script");t.async=!0,t.src="https://www.googletagmanager.com/gtag/js?id="+e,document.head.appendChild(t);var n=document.createElement("script");n.innerHTML="\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n gtag('config', '"+e+"', {'send_page_view': false});\n ",document.head.appendChild(n)}catch(i){console.error("Error appending google analytics"),console.error(i)}}},{key:"listenForRouteChanges",value:function(){var e=this.configService.googleAnalyticsKey;this.router.events.subscribe(function(t){t instanceof rY&>ag("config",e,{page_path:t.urlAfterRedirects})})}}]),e}()).\u0275fac=function(e){return new(e||r$)(Ni(EX),Ni(d$))},r$.\u0275prov=Le({token:r$,factory:r$.\u0275fac,providedIn:"root"}),r$),f$=((i$=function(){function e(t,n){b(this,e),this.router=t,this.googleAnalyticsService=n,this.isSession=new RegExp(".*/api/session")}return w(e,[{key:"logError",value:function(e){this.googleAnalyticsService.errorEvent(e)}},{key:"intercept",value:function(e,t){var n=this;return t.handle(e).pipe(uR(function(t){return 401!==t.status||n.isSession.test(e.url)||(console.log("Unauthorized Access!!!",e),n.router.navigate(["timedout"])),t.error&&n.logError(t.error),pp(t.error||t.statusText)}))}}]),e}()).\u0275fac=function(e){return new(e||i$)(Ni(EX),Ni(h$))},i$.\u0275prov=Le({token:i$,factory:i$.\u0275fac}),i$),p$=function(e){return e.SELF_PARTICIPANT="self_participant",e.SELF_GUARDIAN="self_guardian",e.DEPENDENT="dependent",e.SELF_PROFESSIONAL="self_professional",e.SELF_INTERESTED="self_interested",e}({}),m$=function(){function e(t){for(var n in b(this,e),this._props=t,this._props)this._props.hasOwnProperty(n)&&(this[n]=this._props[n])}return w(e,[{key:"getFlowName",value:function(){switch(this.relationship){case p$.DEPENDENT:return"dependent_intake";case p$.SELF_GUARDIAN:return"guardian_intake";case p$.SELF_PROFESSIONAL:return"professional_intake";case p$.SELF_INTERESTED:return"interested_intake";case p$.SELF_PARTICIPANT:default:return"self_intake"}}}]),e}(),g$=function e(t){for(var n in b(this,e),t)t.hasOwnProperty(n)&&(this[n]=t[n])},v$=function(){function e(t){for(var n in b(this,e),this._props=t,this._props)this._props.hasOwnProperty(n)&&(this[n]=this._props[n]);this.participants&&this.participants.length>0&&(this.participants=this.participants.map(function(e){return new m$(e)})),this.user_meta&&(this.user_meta=new g$(this.user_meta))}return w(e,[{key:"isSelf",value:function(e){return e.relationship===p$.SELF_GUARDIAN||e.relationship===p$.SELF_PARTICIPANT||e.relationship===p$.SELF_PROFESSIONAL||e.relationship===p$.SELF_INTERESTED}},{key:"getSelf",value:function(){var e=this;return this.participants.find(function(t){return e.isSelf(t)})}},{key:"getDependents",value:function(){var e=this;return this.participants.filter(function(t){return!e.isSelf(t)})}},{key:"getParticipantById",value:function(e){var t,n=s(this.participants);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(i.id===e)return i}}catch(r){n.e(r)}finally{n.f()}throw Error("The user does not have a participant with the given id.")}},{key:"hasContactInfo",value:function(e){return null!=e.contact}},{key:"checkContact",value:function(){var e=this;return null!=this.participants.find(function(t){return e.hasContactInfo(t)})}}]),e}(),y$=((l$=function(){function e(t,n,i){b(this,e),this.http=t,this.googleAnalyticsService=n,this.configService=i,this.currentUserSubject=new ep(null);var r=localStorage.getItem(e.LOCAL_TOKEN_KEY);this.login_url="".concat(i.apiUrl,"/api/login_password"),this.reset_pass_url="".concat(i.apiUrl,"/api/reset_password"),this.refresh_url="".concat(i.apiUrl,"/api/session"),this.currentUser=this.currentUserSubject.asObservable(),r?(console.log("A token is set. Grabbing the user."),this._refresh().subscribe()):(console.log("No Token. Current user is null."),this.currentUserSubject.next(null))}return w(e,[{key:"_handleError",value:function(e){return pp(e.message)}},{key:"loadUser",value:function(t){t.token&&localStorage.setItem(e.LOCAL_TOKEN_KEY,t.token);var n=new v$(t);return this.currentUserSubject.next(n),console.log("The current user subject is now set.",n),this.googleAnalyticsService.set_user(n.id),n}},{key:"login",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return this.http.post(this.login_url,{email:e,password:t,email_token:i}).pipe(q(function(e){return n.loadUser(e)}),uR(this._handleError))}},{key:"_refresh",value:function(){var e=this;return this.http.get(this.refresh_url).pipe(q(function(t){return e.loadUser(t)},function(t){e.currentUserSubject.next(null)}))}},{key:"refresh",value:function(){this._refresh().subscribe()}},{key:"resetPassword",value:function(e,t){var n=this;return this.http.post(this.reset_pass_url,{password:e,email_token:t}).pipe(q(function(e){return n.loadUser(e)}))}},{key:"logout",value:function(){localStorage.removeItem(e.LOCAL_TOKEN_KEY),this.currentUserSubject.next(null),this.googleAnalyticsService.set_user(null)}}]),e}()).LOCAL_TOKEN_KEY="star_token",l$.\u0275fac=function(e){return new(e||l$)(Ni(vg),Ni(h$),Ni(d$))},l$.\u0275prov=Le({token:l$,factory:l$.\u0275fac,providedIn:"root"}),l$),_$=((s$=function(){function e(){b(this,e),this.isS3=new RegExp("^https?://s3.amazonaws.com.*")}return w(e,[{key:"intercept",value:function(e,t){var n=localStorage.getItem(y$.LOCAL_TOKEN_KEY);return this.isS3.test(e.url)||n&&(e=e.clone({setHeaders:{Authorization:"Bearer ".concat(n)}})),t.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||s$)},s$.\u0275prov=Le({token:s$,factory:s$.\u0275fac}),s$),b$=((o$=function(){function e(t,n){b(this,e),this.router=t,this.meta=n,this.meta.updateTag({property:"og:image",content:location.origin+"/assets/about/diversity.jpg"},"property='og:image'"),this.meta.updateTag({property:"og:image:secure_url",content:location.origin+"/assets/about/diversity.jpg"},"property='og:image:secure_url'"),this.meta.updateTag({name:"twitter:image",content:location.origin+"/assets/about/diversity.jpg"},"name='twitter:image'")}return w(e,[{key:"ngOnInit",value:function(){}},{key:"goRegister",value:function(e){e.preventDefault(),this.router.navigate(["register"])}}]),e}()).\u0275fac=function(e){return new(e||o$)(ls(EX),ls(Yf))},o$.\u0275cmp=pt({type:o$,selectors:[["app-about"]],decls:36,vars:0,consts:[["fxHide","","fxShow.gt-sm",""],["id","hero",1,"gradient-overlay","container"],[1,"row","move_up"],[1,"border-box"],["fxHide","","fxShow.lt-md",""],["id","hero",1,"gradient-overlay","container",2,"background-position","50% 0%","background-size","980px"],[1,"row","move_up_mobile"],["fxLayoutAlign","center","fxLayout","column"],[1,"container","about"],["fxLayout","row","fxLayoutGap","4%","fxLayoutAlign","center",1,"row"],["fxFlex","67%"],["href","https://curry.virginia.edu/faculty-research/centers-labs-projects/supporting-transformative-autism-research-star"],["fxLayoutAlign","center center",1,"row"],["mat-flat-button","","color","primary",1,"btn-lg",3,"click"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"div",1),ds(2,"div",2),ds(3,"div",3),ds(4,"h1"),Js(5,"About Autism DRIVE"),hs(),hs(),hs(),hs(),hs(),ds(6,"div",4),ds(7,"div",5),ds(8,"div",6),ds(9,"div",3),ds(10,"h1"),Js(11,"About Autism DRIVE"),hs(),hs(),hs(),hs(),hs(),ds(12,"div",7),ds(13,"div",8),ds(14,"div",9),ds(15,"div",10),ds(16,"h2"),Js(17,'About "Autism DRIVE"'),hs(),ds(18,"p"),Js(19,"The Autism DRIVE was developed by "),ds(20,"a",11),Js(21,"University of Virginia STAR initiative"),hs(),Js(22," to help the autism community, researchers, and resources connect. Through the DRIVE we hope to learn more about autism and develop meaningful solutions to challenges experienced by people with autism and their families. It also provides individualized online access to training and resources focused on autism."),hs(),ds(23,"h2"),Js(24,"Why is autism research important?"),hs(),ds(25,"p"),Js(26,"Research can help us figure out answers to questions about autism that we don\u2019t yet know. Our goal is to increase autism research in Virginia and nationally."),hs(),ds(27,"p"),Js(28,"Through the Autism DRIVE, we aim to find answers in areas that have the greatest potential to improve the lives of people with autism and their families. Our projects focus on understanding the biological, social and cognitive bases of autism, developing effective and personalized interventions, and testing new models to bridge the gap between research and practice through training. Our research ranges from basic neuroscience to applied practice. Our ultimate goal is to empower people with autism, their families, and their communities to achieve positive outcomes."),hs(),ds(29,"h2"),Js(30,"What are the benefits of joining?"),hs(),ds(31,"p"),Js(32,"By joining the Autism DRIVE, you will be connected with autism researchers at the University of Virginia and will have the opportunity to participate in exciting research studies. Based on the information you provide in the registration process, you can be matched with research opportunities and resources that would be a good fit for you or your family member. Your participation in any research study is voluntary, so although we will match you with studies, you do not have to participate in them unless you or your family member want to. If you want to cancel your account at any time, you can let us know by emailing rn4ee@hscmail.mcc.virginia.edu."),hs(),hs(),hs(),hs(),ds(33,"div",12),ds(34,"button",13),ks("click",function(e){return t.goRegister(e)}),Js(35," Get started now "),hs(),hs(),hs())},directives:[my,eb,Xy,n_,v_,kP],styles:[".enroll[_ngcontent-%COMP%]{margin:1em}.move_up[_ngcontent-%COMP%]{position:relative;width:575px;top:-110px}.move_up_mobile[_ngcontent-%COMP%]{position:relative;width:400px;top:-120px}#hero[_ngcontent-%COMP%]{background-position:50% 17%}#feature[_ngcontent-%COMP%], #hero[_ngcontent-%COMP%]{background-image:url(/assets/about/diversity.jpg);height:480px}#feature[_ngcontent-%COMP%]{background-position:100% 20%}#about-cta[_ngcontent-%COMP%]{font-weight:700;font-size:1.25rem;font-style:italic;margin-bottom:1em}"]}),o$),k$=function(){function e(t){b(this,e),this.api=t,this.logSubject=new ep([]),this.logs$=this.logSubject.asObservable(),this.countSubject=new ep(0),this.count$=this.countSubject.asObservable(),this.loadingSubject=new ep(!1),this.loading$=this.loadingSubject.asObservable()}return w(e,[{key:"connect",value:function(e){return this.logSubject.asObservable()}},{key:"disconnect",value:function(e){this.logSubject.complete(),this.loadingSubject.complete(),this.countSubject.complete()}},{key:"loadLogs",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.loadingSubject.next(!0),this.api.getDataTransferLogs(t,n).subscribe(function(t){e.logSubject.next(t.items),e.countSubject.next(t.total),e.loadingSubject.next(!1)},function(t){e.logSubject.next(null),e.countSubject.next(0),e.loadingSubject.next(!1)})}}]),e}(),w$=function(){function e(t){for(var n in b(this,e),this._props=t,this._props)this._props.hasOwnProperty(n)&&(this[n]=this._props[n])}return w(e,[{key:"isComplete",value:function(){return 1===this.percentComplete()}},{key:"percentComplete",value:function(){return this.steps&&this.steps.length>0?this.steps.filter(function(e){return"COMPLETE"===e.status}).length/this.steps.length*100:0}}]),e}(),C$=function(){function e(t){for(var n in b(this,e),this._props=t,this._props)this._props.hasOwnProperty(n)&&(this[n]=this._props[n])}return w(e,[{key:"getIcon",value:function(){switch(this.question_type){case"sensitive":return"vpn_key";case"identifying":return"fingerprint";case"unrestricted":default:return"remove"}}}]),e}(),x$=((u$=function(){function e(t,n){b(this,e),this.httpClient=t,this.configService=n,this.endpoints={adminNote:"/api/admin_note/",adminNoteList:"/api/admin_note",category:"/api/category/",categorybyresource:"/api/resource//category",categorybylocation:"/api/location//category",categorybyevent:"/api/event//category",categorybystudy:"/api/study//category",categorylist:"/api/category",categorynameslist:"/api/category/names_list",chainStepsList:"/api/chain_step",chainStep:"/api/chain_step/",data_transfer_log:"/api/data_transfer_log",event:"/api/event/",eventbycategory:"/api/category//event",eventcategory:"/api/event_category/",eventcategorylist:"/api/event_category",eventlist:"/api/event",favoritesbyuserlist:"/api/user//favorite",favoritesbyuserandtypelist:"/api/user//favorite/",flow:"/api/flow//",flowAnonymous:"/api/flow/",flowlist:"/api/flow",flowquestionnaire:"/api/flow//",flowquestionnairemeta:"/api/flow///meta",forgot_password:"/api/forgot_password",investigatorList:"/api/investigator",investigatorbystudy:"/api/study//investigator",investigator:"/api/investigator/",location:"/api/location/",locationbycategory:"/api/category//location",locationcategory:"/api/location_category/",locationcategorylist:"/api/location_category",locationlist:"/api/location",organization:"/api/organization/",organizationlist:"/api/organization",participant:"/api/participant/",participantAdminList:"/api/participant_admin_list",participantbysession:"/api/session/participant",participantStepLog:"/api/participant/step_log/",password_requirements:"/api/password_requirements/",questionnaire:"/api/q//",questionnaireExport:"/api/q//export",questionnaireInfo:"/api/q",questionnaireList:"/api/q/",questionnaireListMeta:"/api/q//meta",questionnaireUserExport:"/api/q/all/export/user/",questionnairemeta:"/api/flow///meta",resource:"/api/resource/",resourcebycategory:"/api/category//resource",resourcecategory:"/api/resource_category/",resourceChangeLog:"/api/resource//change_log",resourceAdminNoteList:"/api/resource//admin_note",relatedresults:"/api/related",resourcecategorylist:"/api/resource_category",resourcelist:"/api/resource",educationresourcelist:"/api/resource/education",covid19resourcelist:"/api/resource/covid19/",categorytree:"/api/category/root",search:"/api/search",searchstudies:"/api/search/studies",session:"/api/session",sessionparticipants:"/api/session/participant",sessionstatus:"/api/session/status",status:"/api/status",study:"/api/study/",studybycategory:"/api/category//study",studycategory:"/api/study_category/",studycategorylist:"/api/study_category",studyinquiry:"/api/study_inquiry",studylist:"/api/study",studybystatuslist:"/api/study/status/",studybyage:"/api/study/status//",user:"/api/user/",userAdminNoteList:"/api/user//admin_note",userEmailLog:"/api/user/email_log/",emailloglist:"/api/email_log",userfavoritelist:"/api/user_favorite",userfavorite:"/api/user_favorite/",userResourceChangeLog:"/api/user//resource_change_log",userStudyInquiryList:"/api/user//inquiry/study",userlist:"/api/user",userRegistration:"/api/user/registration",userparticipant:"/api/user_participant/",userMeta:"/api/user//usermeta",zip_code_coords:"/api/zip_code_coords/"},this.apiRoot=n.apiUrl}return w(e,[{key:"sendResetPasswordEmail",value:function(e){var t={email:e};return this.httpClient.post(this._endpointUrl("forgot_password"),t).pipe(uR(this._handleError))}},{key:"sendStudyInquiryEmail",value:function(e,t){var n={user_id:e.id,study_id:t.id};return this.httpClient.post(this._endpointUrl("studyinquiry"),n).pipe(uR(this._handleError))}},{key:"addUserMeta",value:function(e){var t=this._endpointUrl("userMeta").replace("",e.id.toString());return this.httpClient.post(t,e).pipe(q(function(e){return new g$(e)}),uR(this._handleError))}},{key:"getUserMeta",value:function(e){return this.httpClient.get(this._endpointUrl("userMeta").replace("",e.toString())).pipe(uR(this._handleError))}},{key:"addParticipant",value:function(e){var t=this._endpointUrl("participantbysession");return this.httpClient.post(t,e).pipe(q(function(e){return new m$(e)}),uR(this._handleError))}},{key:"updateParticipant",value:function(e){return this.httpClient.put(this._endpointUrl("participant").replace("",e.id.toString()),e).pipe(uR(this._handleError))}},{key:"getParticipant",value:function(e){return this.httpClient.get(this._endpointUrl("participant").replace("",e.toString())).pipe(uR(this._handleError))}},{key:"getParticipantAdminList",value:function(){return this.httpClient.get(this._endpointUrl("participantAdminList")).pipe(uR(this._handleError))}},{key:"getFlow",value:function(e,t){var n;return n=t?this._endpointUrl("flow").replace("",e).replace("",t.toString()):this._endpointUrl("flowAnonymous").replace("",e),this.httpClient.get(n).pipe(q(function(e){return new w$(e)}),uR(this._handleError))}},{key:"addStudy",value:function(e){return this.httpClient.post(this._endpointUrl("studylist"),e).pipe(uR(this._handleError))}},{key:"updateStudy",value:function(e){return this.httpClient.put(this._endpointUrl("study").replace("",e.id.toString()),e).pipe(uR(this._handleError))}},{key:"deleteStudy",value:function(e){return this.httpClient.delete(this._endpointUrl("study").replace("",e.id.toString())).pipe(uR(this._handleError))}},{key:"getStudy",value:function(e){return this.httpClient.get(this._endpointUrl("study").replace("",e.toString())).pipe(uR(this._handleError))}},{key:"getStudies",value:function(){return this.httpClient.get(this._endpointUrl("studylist")).pipe(uR(this._handleError))}},{key:"getStudiesByStatus",value:function(e){return this.httpClient.get(this._endpointUrl("studybystatuslist").replace("",e)).pipe(uR(this._handleError))}},{key:"getStudiesByAge",value:function(e,t){return this.httpClient.get(this._endpointUrl("studybyage").replace("",e).replace("",t)).pipe(uR(this._handleError))}},{key:"addAdminNote",value:function(e){return this.httpClient.post(this._endpointUrl("adminNoteList"),e).pipe(uR(this._handleError))}},{key:"updateAdminNote",value:function(e){return this.httpClient.put(this._endpointUrl("adminNote").replace("",e.id.toString()),e).pipe(uR(this._handleError))}},{key:"deleteAdminNote",value:function(e){return this.httpClient.delete(this._endpointUrl("adminNote").replace("",e.id.toString())).pipe(uR(this._handleError))}},{key:"getAdminNote",value:function(e){return this.httpClient.get(this._endpointUrl("adminNote").replace("",e.toString())).pipe(uR(this._handleError))}},{key:"getAdminNotes",value:function(){return this.httpClient.get(this._endpointUrl("adminNoteList")).pipe(uR(this._handleError))}},{key:"getResourceAdminNotes",value:function(e){return this.httpClient.get(this._endpointUrl("resourceAdminNoteList").replace("",e.toString())).pipe(uR(this._handleError))}},{key:"getUserAdminNotes",value:function(e){return this.httpClient.get(this._endpointUrl("userAdminNoteList").replace("",e.toString())).pipe(uR(this._handleError))}},{key:"addEvent",value:function(e){return this.httpClient.post(this._endpointUrl("eventlist"),e).pipe(uR(this._handleError))}},{key:"updateEvent",value:function(e){return this.httpClient.put(this._endpointUrl("event").replace("",e.id.toString()),e).pipe(uR(this._handleError))}},{key:"deleteEvent",value:function(e){return this.httpClient.delete(this._endpointUrl("event").replace("",e.id.toString())).pipe(uR(this._handleError))}},{key:"getEvent",value:function(e){return this.httpClient.get(this._endpointUrl("event").replace("",e.toString())).pipe(uR(this._handleError))}},{key:"getEvents",value:function(){return this.httpClient.get(this._endpointUrl("eventlist")).pipe(uR(this._handleError))}},{key:"addLocation",value:function(e){return this.httpClient.post(this._endpointUrl("locationlist"),e).pipe(uR(this._handleError))}},{key:"updateLocation",value:function(e){return this.httpClient.put(this._endpointUrl("location").replace("",e.id.toString()),e).pipe(uR(this._handleError))}},{key:"deleteLocation",value:function(e){return this.httpClient.delete(this._endpointUrl("location").replace("",e.id.toString())).pipe(uR(this._handleError))}},{key:"getLocation",value:function(e){return this.httpClient.get(this._endpointUrl("location").replace("",e.toString())).pipe(uR(this._handleError))}},{key:"getLocations",value:function(){return this.httpClient.get(this._endpointUrl("locationlist")).pipe(uR(this._handleError))}},{key:"addResource",value:function(e){return this.httpClient.post(this._endpointUrl("resourcelist"),e).pipe(uR(this._handleError))}},{key:"updateResource",value:function(e){return this.httpClient.put(this._endpointUrl("resource").replace("",e.id.toString()),e).pipe(uR(this._handleError))}},{key:"deleteResource",value:function(e){return this.httpClient.delete(this._endpointUrl("resource").replace("",e.id.toString())).pipe(uR(this._handleError))}},{key:"getResource",value:function(e){return this.httpClient.get(this._endpointUrl("resource").replace("",e.toString())).pipe(uR(this._handleError))}},{key:"getResources",value:function(){return this.httpClient.get(this._endpointUrl("resourcelist")).pipe(uR(this._handleError))}},{key:"getEducationResources",value:function(){return this.httpClient.get(this._endpointUrl("educationresourcelist")).pipe(uR(this._handleError))}},{key:"getCovid19ResourcesByCategory",value:function(e){return this.httpClient.get(this._endpointUrl("covid19resourcelist").replace("",e)).pipe(uR(this._handleError))}},{key:"getRelatedResults",value:function(e){return this.httpClient.post(this._endpointUrl("relatedresults"),e).pipe(uR(this._handleError))}},{key:"getResourceCategories",value:function(e){var t=this._endpointUrl("categorybyresource").replace("",e.id.toString());return this.httpClient.get(t).pipe(uR(this._handleError))}},{key:"addResourceCategory",value:function(e){return this.httpClient.post(this._endpointUrl("resourcecategorylist"),e).pipe(uR(this._handleError))}},{key:"updateResourceCategories",value:function(e,t){var n=this._endpointUrl("categorybyresource").replace("",e.toString());return this.httpClient.post(n,t).pipe(uR(this._handleError))}},{key:"updateLocationCategories",value:function(e,t){var n=this._endpointUrl("categorybylocation").replace("",e.toString());return this.httpClient.post(n,t).pipe(uR(this._handleError))}},{key:"updateEventCategories",value:function(e,t){var n=this._endpointUrl("categorybyevent").replace("",e.toString());return this.httpClient.post(n,t).pipe(uR(this._handleError))}},{key:"deleteResourceCategory",value:function(e){return this.httpClient.delete(this._endpointUrl("resourcecategory").replace("",e.id.toString())).pipe(uR(this._handleError))}},{key:"addStudyCategory",value:function(e){return this.httpClient.post(this._endpointUrl("studycategorylist"),e).pipe(uR(this._handleError))}},{key:"updateStudyCategories",value:function(e,t){var n=this._endpointUrl("categorybystudy").replace("",e.toString());return this.httpClient.post(n,t).pipe(uR(this._handleError))}},{key:"deleteStudyCategory",value:function(e){return this.httpClient.delete(this._endpointUrl("studycategory").replace("",e.id.toString())).pipe(uR(this._handleError))}},{key:"getCategoryNamesList",value:function(){return this.httpClient.get(this._endpointUrl("categorynameslist")).pipe(uR(this._handleError))}},{key:"getCategoryTree",value:function(){return this.httpClient.get(this._endpointUrl("categorytree")).pipe(uR(this._handleError))}},{key:"addCategory",value:function(e){return this.httpClient.post(this._endpointUrl("categorylist"),e).pipe(uR(this._handleError))}},{key:"deleteCategory",value:function(e){return this.httpClient.delete(this._endpointUrl("category").replace("",e.toString())).pipe(uR(this._handleError))}},{key:"addInvestigator",value:function(e){return this.httpClient.post(this._endpointUrl("investigatorList"),e).pipe(uR(this._handleError))}},{key:"updateInvestigator",value:function(e){return this.httpClient.put(this._endpointUrl("investigator").replace("",e.id.toString()),e).pipe(uR(this._handleError))}},{key:"getInvestigators",value:function(){return this.httpClient.get(this._endpointUrl("investigatorList")).pipe(uR(this._handleError))}},{key:"updateStudyInvestigators",value:function(e,t){var n=this._endpointUrl("investigatorbystudy").replace("",e.toString());return this.httpClient.post(n,t).pipe(uR(this._handleError))}},{key:"getUser",value:function(e){return this.httpClient.get(this._endpointUrl("user").replace("",e.toString())).pipe(uR(this._handleError))}},{key:"updateUser",value:function(e){return this.httpClient.put(this._endpointUrl("user").replace("",e.id.toString()),e).pipe(uR(this._handleError))}},{key:"addUser",value:function(e){return this.httpClient.post(this._endpointUrl("userlist"),e).pipe(q(function(e){return new v$(e)}),uR(this._handleError))}},{key:"findUsers",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"email",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"asc",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:3,a={filter:e,sort:t,sortOrder:n,pageNumber:String(i),pageSize:String(r)};return this.httpClient.get(this._endpointUrl("userlist"),{params:a}).pipe(uR(this._handleError))}},{key:"getUserStudyInquiries",value:function(e){return this.httpClient.get(this._endpointUrl("userStudyInquiryList").replace("",e.toString())).pipe(uR(this._handleError))}},{key:"getUserEmailLog",value:function(e){return this.httpClient.get(this._endpointUrl("userEmailLog").replace("",e.id.toString())).pipe(uR(this._handleError))}},{key:"getAllEmailLog",value:function(){return this.httpClient.get(this._endpointUrl("emailloglist")).pipe(uR(this._handleError))}},{key:"getResourceChangeLog",value:function(e){return this.httpClient.get(this._endpointUrl("resourceChangeLog").replace("",e.toString())).pipe(uR(this._handleError))}},{key:"getUserResourceChangeLog",value:function(e){return this.httpClient.get(this._endpointUrl("userResourceChangeLog").replace("",e.toString())).pipe(uR(this._handleError))}},{key:"getParticipantStepLog",value:function(e){return this.httpClient.get(this._endpointUrl("participantStepLog").replace("",e.id.toString())).pipe(uR(this._handleError))}},{key:"addUserFavorites",value:function(e){return this.httpClient.post(this._endpointUrl("userfavoritelist"),e).pipe(uR(this._handleError))}},{key:"deleteUserFavorite",value:function(e){return this.httpClient.delete(this._endpointUrl("userfavorite").replace("",e.id.toString())).pipe(uR(this._handleError))}},{key:"getFavoritesByUser",value:function(e){return this.httpClient.get(this._endpointUrl("favoritesbyuserlist").replace("",e.id.toString())).pipe(uR(this._handleError))}},{key:"getFavoritesByUserAndType",value:function(e,t){return this.httpClient.get(this._endpointUrl("favoritesbyuserandtypelist").replace("",e.id.toString()).replace("",t)).pipe(uR(this._handleError))}},{key:"getQuestionnaireInfoList",value:function(){var e=this._endpointUrl("questionnaireInfo");return this.httpClient.get(e).pipe(q(function(e){return e.map(function(e){return new C$(e)})}),uR(this._handleError))}},{key:"getQuestionnaireList",value:function(e){var t=this._endpointUrl("questionnaireList").replace("",e);return this.httpClient.get(t).pipe(uR(this._handleError))}},{key:"getQuestionnaireListMeta",value:function(e){var t=this._endpointUrl("questionnaireListMeta").replace("",e);return this.httpClient.get(t).pipe(uR(this._handleError))}},{key:"exportQuestionnaire",value:function(e){var t=this._endpointUrl("questionnaireExport").replace("",e);return this.httpClient.get(t,{observe:"response",responseType:"blob"})}},{key:"exportUserQuestionnaire",value:function(e){var t=this._endpointUrl("questionnaireUserExport").replace("",name).replace("",e);return this.httpClient.get(t,{observe:"response",responseType:"blob"})}},{key:"getQuestionnaire",value:function(e,t){var n=this._endpointUrl("questionnaire").replace("",e).replace("",t.toString());return this.httpClient.get(n).pipe(uR(this._handleError))}},{key:"updateQuestionnaire",value:function(e,t,n){var i=this._endpointUrl("questionnaire").replace("",e).replace("",t.toString());return this.httpClient.put(i,n).pipe(uR(this._handleError))}},{key:"getQuestionnaireMeta",value:function(e,t){var n=this._endpointUrl("questionnairemeta").replace("",e).replace("",t);return this.httpClient.get(n).pipe(uR(this._handleError))}},{key:"submitQuestionnaire",value:function(e,t,n){var i=this._endpointUrl("flowquestionnaire").replace("",e).replace("",t);return this.httpClient.post(i,n).pipe(uR(this._handleError))}},{key:"submitRegistration",value:function(e){var t=this._endpointUrl("userRegistration");return this.httpClient.post(t,e).pipe(uR(this._handleError))}},{key:"search",value:function(e){var t=this._endpointUrl("search");return this.httpClient.post(t,e).pipe(uR(this._handleError))}},{key:"searchStudies",value:function(e){var t=this._endpointUrl("searchstudies");return this.httpClient.post(t,e).pipe(uR(this._handleError))}},{key:"getDataTransferLogs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n={pageNumber:String(e),pageSize:String(t)};return this.httpClient.get(this._endpointUrl("data_transfer_log"),{params:n}).pipe(uR(this._handleError))}},{key:"getZipCoords",value:function(e){var t=this._endpointUrl("zip_code_coords").replace("",e);return this.httpClient.get(t).pipe(uR(this._handleError))}},{key:"getPasswordRequirements",value:function(e){var t=this._endpointUrl("password_requirements").replace("",e);return this.httpClient.get(t).pipe(uR(this._handleError))}},{key:"_handleError",value:function(e){return pp(e.message)}},{key:"getChainStepsList",value:function(){return this.httpClient.get(this._endpointUrl("chainStepsList")).pipe(uR(this._handleError))}},{key:"editChainStep",value:function(e){var t=this._endpointUrl("chainStep").replace("",e.id.toString());return this.httpClient.put(t,e).pipe(uR(this._handleError))}},{key:"deleteChainStep",value:function(e){var t=this._endpointUrl("chainStep").replace("",e.id.toString());return this.httpClient.delete(t).pipe(uR(this._handleError))}},{key:"_endpointUrl",value:function(e){var t=this.endpoints[e];if(t)return this.apiRoot+t;console.log("endpoint '".concat(e,"' does not exist"))}},{key:"_qEndpoint",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;""!==e&&(e=e.charAt(0).toUpperCase()+e.slice(1));var i=this.endpoints["questionnaire"+e].replace("",t+"_questionnaire").replace("",isFinite(n)?n.toString():"");return this.apiRoot+i}}]),e}()).\u0275fac=function(e){return new(e||u$)(Ni(vg),Ni(d$))},u$.\u0275prov=Le({token:u$,factory:u$.\u0275fac,providedIn:"root"}),u$);function S$(e,t){1&e&&(ds(0,"mat-header-cell",13),Js(1," Table Name "),hs())}function A$(e,t){if(1&e&&(ds(0,"mat-cell",13),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.class_name," ")}}function O$(e,t){1&e&&(ds(0,"mat-header-cell"),Js(1," Successful "),hs())}function E$(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.successful," ")}}function T$(e,t){1&e&&(ds(0,"mat-header-cell"),Js(1," Records Processed "),hs())}function P$(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.success_count," ")}}function D$(e,t){1&e&&(ds(0,"mat-header-cell"),Js(1," Failures "),hs())}function M$(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.failure_count," ")}}function I$(e,t){1&e&&(ds(0,"mat-header-cell"),Js(1," Error Messages"),hs())}function R$(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.errors," ")}}function L$(e,t){1&e&&fs(0,"mat-header-row")}function F$(e,t){1&e&&fs(0,"mat-row")}var N$,V$=((N$=function(){function e(){b(this,e),this.displayedColumns=["class_name","successful","success_count","failure_count","errors"]}return w(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||N$)},N$.\u0275cmp=pt({type:N$,selectors:[["app-admin-export-details"]],inputs:{exportDetails:"exportDetails"},decls:21,vars:3,consts:[[1,"details"],[1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","class_name"],["style","flex: 2",4,"matHeaderCellDef"],["style","flex: 2",4,"matCellDef"],["matColumnDef","successful"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","success_count"],["matColumnDef","failure_count"],["matColumnDef","errors"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[2,"flex","2"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"h2"),Js(2,"Details:"),hs(),ds(3,"mat-table",1),ps(4,2),os(5,S$,2,0,"mat-header-cell",3),os(6,A$,2,1,"mat-cell",4),ms(),ps(7,5),os(8,O$,2,0,"mat-header-cell",6),os(9,E$,2,1,"mat-cell",7),ms(),ps(10,8),os(11,T$,2,0,"mat-header-cell",6),os(12,P$,2,1,"mat-cell",7),ms(),ps(13,9),os(14,D$,2,0,"mat-header-cell",6),os(15,M$,2,1,"mat-cell",7),ms(),ps(16,10),os(17,I$,2,0,"mat-header-cell",6),os(18,R$,2,1,"mat-cell",7),ms(),os(19,L$,1,0,"mat-header-row",11),os(20,F$,1,0,"mat-row",12),hs(),hs()),2&e&&(Oa(3),us("dataSource",t.exportDetails),Oa(16),us("matHeaderRowDef",t.displayedColumns),Oa(1),us("matRowDefColumns",t.displayedColumns))},directives:[BB,WB,jB,zB,KB,JB,YB,XB,tH,iH],styles:[".details[_ngcontent-%COMP%]{display:-ms-flexbox;display:flex;place-content:center;padding:24px;color:#555;font-weight:700;background:rgba(0,0,0,.1)}mat-table[_ngcontent-%COMP%]{width:85%;margin:auto}"]}),N$),B$=["tableRow"];function H$(e,t){1&e&&(ds(0,"p"),Js(1," The following is log of IMPORTS coming into this system. "),hs())}function z$(e,t){1&e&&(ds(0,"p"),Js(1," The following is log of EXPORTS going out of this system. "),hs())}function G$(e,t){1&e&&(ds(0,"p",15),Js(1," WARNING: The latest log is showing alerts. This means that the exporter may be having issues and is not removing sensitive data from the server in a timely manor. An email should have been sent to an administrator to alert them of this issue. "),hs())}function j$(e,t){1&e&&(ds(0,"mat-header-cell"),Js(1,"Id"),hs())}function U$(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.id," ")}}function W$(e,t){1&e&&(ds(0,"mat-header-cell"),Js(1,"Type"),hs())}function q$(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.type," ")}}function Y$(e,t){1&e&&(ds(0,"mat-header-cell"),Js(1,"Date Started"),hs())}function Q$(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),Iu(2,"date"),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",Lu(2,1,n.date_started,"medium")," ")}}function X$(e,t){1&e&&(ds(0,"mat-header-cell"),Js(1,"Last Updated"),hs())}function $$(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),Iu(2,"date"),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",Lu(2,1,n.last_updated,"medium")," ")}}function K$(e,t){1&e&&(ds(0,"mat-header-cell"),Js(1,"# Records"),hs())}function Z$(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.total_records," ")}}function J$(e,t){1&e&&(ds(0,"mat-header-cell"),Js(1,"alerts_sent"),hs())}function eK(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.alerts_sent," ")}}function tK(e,t){1&e&&fs(0,"mat-header-row")}function nK(e,t){if(1&e){var n=vs();ds(0,"mat-row",16,17),ks("click",function(){rn(n);var e=t.index;return As().selectRow(e)}),hs()}if(2&e){var i=t.$implicit;zs(As().getRowClass(i))}}var iK,rK=function(){return[5,10,20]},aK=((iK=function(){function e(t,n,i,r){b(this,e),this.api=t,this.configService=n,this.router=i,this.resolver=r,this.columns=[],this.default_page_size=10,this.count=0}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.mirroring=this.configService.mirroring,this.loadData(),this.loadLatestLog(),de(this.paginator.page).pipe(Zg(function(){return e.loadData()})).subscribe()}},{key:"loadData",value:function(){var e=this;this.dataTransferDataSource=new k$(this.api),this.columns=["id","type","date_started","last_updated","total_records","alerts_sent"],this.dataTransferDataSource.loadLogs(this.paginator.pageIndex,this.paginator.pageSize),this.dataTransferDataSource.count$.subscribe(function(t){e.count=t})}},{key:"getRowClass",value:function(e){return e.details.filter(function(e){return!e.successful}).length>0?"error":e.alerts_sent>0?"warn":"normal"}},{key:"loadLatestLog",value:function(){var e=this;this.api.getDataTransferLogs(0,1).subscribe(function(t){t.items.length>0&&(e.latestLog=t.items[0])})}},{key:"selectRow",value:function(e){var t=this;if(console.log("Row "+e+" Selected"),null!=this.expandedRow&&this.rowContainers.toArray()[this.expandedRow].clear(),this.expandedRow===e)this.expandedRow=null;else{var n=this.rowContainers.toArray()[e],i=this.resolver.resolveComponentFactory(V$),r=n.createComponent(i);this.dataTransferDataSource.logs$.subscribe(function(n){r.instance.exportDetails=n[e].details,t.expandedRow=e})}}}]),e}()).\u0275fac=function(e){return new(e||iK)(ls(x$),ls(d$),ls(EX),ls(Cl))},iK.\u0275cmp=pt({type:iK,selectors:[["app-admin-export"]],viewQuery:function(e,t){var n;1&e&&(Ku(GF,3),Ku(B$,1,du)),2&e&&($u(n=Ju())&&(t.paginator=n.first),$u(n=Ju())&&(t.rowContainers=n))},decls:30,vars:10,consts:[[1,"logs"],[4,"ngIf"],["class","mat-error",4,"ngIf"],[1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","id"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","type"],["matColumnDef","date_started"],["matColumnDef","last_updated"],["matColumnDef","total_records"],["matColumnDef","alerts_sent"],[4,"matHeaderRowDef"],["matRipple","",3,"class","click",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions"],[1,"mat-error"],["matRipple","",3,"click"],["tableRow",""]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"h1"),Js(2,"Transfer Logs"),hs(),os(3,H$,2,0,"p",1),os(4,z$,2,0,"p",1),ds(5,"p"),Js(6,"Click on a row for additional details."),hs(),os(7,G$,2,0,"p",2),ds(8,"mat-table",3),ps(9,4),os(10,j$,2,0,"mat-header-cell",5),os(11,U$,2,1,"mat-cell",6),ms(),ps(12,7),os(13,W$,2,0,"mat-header-cell",5),os(14,q$,2,1,"mat-cell",6),ms(),ps(15,8),os(16,Y$,2,0,"mat-header-cell",5),os(17,Q$,3,4,"mat-cell",6),ms(),ps(18,9),os(19,X$,2,0,"mat-header-cell",5),os(20,$$,3,4,"mat-cell",6),ms(),ps(21,10),os(22,K$,2,0,"mat-header-cell",5),os(23,Z$,2,1,"mat-cell",6),ms(),ps(24,11),os(25,J$,2,0,"mat-header-cell",5),os(26,eK,2,1,"mat-cell",6),ms(),os(27,tK,1,0,"mat-header-row",12),os(28,nK,2,3,"mat-row",13),hs(),hs(),fs(29,"mat-paginator",14)),2&e&&(Oa(3),us("ngIf",t.mirroring),Oa(1),us("ngIf",!t.mirroring),Oa(3),us("ngIf",t.latestLog&&t.latestLog.alerts_sent>0),Oa(1),us("dataSource",t.dataTransferDataSource),Oa(19),us("matHeaderRowDef",t.columns),Oa(1),us("matRowDefColumns",t.columns),Oa(1),us("length",t.count)("pageSize",t.default_page_size)("pageSizeOptions",Su(9,rK)))},directives:[wh,BB,WB,jB,zB,KB,JB,GF,YB,XB,tH,iH],pipes:[$h],styles:["div.logs[_ngcontent-%COMP%]{padding:50px 0;margin:50px}table[_ngcontent-%COMP%]{width:100%}mat-card[_ngcontent-%COMP%]{margin-bottom:1em}mat-row.warn[_ngcontent-%COMP%]{background:#ffffe0}mat-row.error[_ngcontent-%COMP%]{background:#ffa07a}"]}),iK);function oK(e,t){if(1&e&&(ds(0,"a",3,4),Js(2),hs()),2&e){var n=t.$implicit,i=ss(1);us("routerLink",n.path)("active",i.isActive)("id",n.id),Oa(2),tl(" ",n.label," ")}}var sK,lK=((sK=function(){function e(){b(this,e),this.navLinks=[{path:"/admin/data-admin",label:"Data Admin",id:"data-admin"},{path:"/admin/user-admin",label:"User Admin",id:"user-admin"},{path:"/admin/participant-admin",label:"Participant Admin",id:"participant-admin"},{path:"/admin/taxonomy-admin",label:"Taxonomy Admin",id:"taxonomy-admin"},{path:"/admin/import-export-status",label:"Import/Export Status",id:"import-export-status"},{path:"/admin/email-log",label:"Email Log",id:"email-log"}]}return w(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||sK)},sK.\u0275cmp=pt({type:sK,selectors:[["app-admin-home"]],decls:6,vars:1,consts:[[1,"admin"],["mat-tab-nav-bar",""],["mat-tab-link","","routerLinkActive","",3,"routerLink","active","id",4,"ngFor","ngForOf"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active","id"],["rla","routerLinkActive"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"h1"),Js(2,"Administrative Options"),hs(),ds(3,"nav",1),os(4,oK,3,4,"a",2),hs(),fs(5,"router-outlet"),hs()),2&e&&(Oa(4),us("ngForOf",t.navLinks))},directives:[bz,bh,NX,PX,Cz,FX],styles:[".admin[_ngcontent-%COMP%]{margin:2em}"]}),sK),uK=function(){var e=function(){function e(t,n){b(this,e),this.name=t,this.label=n}return w(e,null,[{key:"all",value:function(){return[this.LOCATION,this.RESOURCE,this.EVENT,this.STUDY]}},{key:"all_resources",value:function(){return[this.ALL_RESOURCES,this.LOCATION,this.RESOURCE,this.EVENT]}}]),e}();return e.labels={location:"Local Services",resource:"Online Information",event:"Events and Training",study:"Research Studies",all:"All Results",all_resources:"All Resources"},e.LOCATION=new e("location",e.labels.location),e.RESOURCE=new e("resource",e.labels.resource),e.EVENT=new e("event",e.labels.event),e.STUDY=new e("study",e.labels.study),e.ALL=new e("all",e.labels.all),e.ALL_RESOURCES=new e("all_resources",e.labels.all_resources),e}(),cK=function(){var e=function e(){b(this,e)};return e.labels={"pre-k":"Pre-K (0 - 5 years)",school:"School Age (6 - 13 years)",transition:"Transition Age (14 - 22 years)",adult:"Adulthood (23 - 64)",aging:"Aging (65+)"},e}(),dK=function(){var e=function e(){b(this,e)};return e.labels={english:"English",spanish:"Spanish",chinese:"Chinese",korean:"Korean",vietnamese:"Vietnamese",arabic:"Arabic",tagalog:"Tagalog"},e}(),hK=function(){var e=function e(){b(this,e)};return e.labels={"COVID-19_for_Autism":"COVID-19 Information: Information explaining COVID-19 for people with ASD, families and professionals",Health_and_Telehealth:"Health and Telehealth: Online supports to help support the community's mental, behavioral, and physical health","Physical Activity":"Physical Activity: Resources focused on promoting physical activity and exercise",Visual_Aids:"Visual Aids: Resources to develop visual schedules, social stories, communication aids explaining COVID-19","Edu-tainment":"Edu-tainment: Fun educational games, experiences, virtual tours, videos, interactive tools, apps, etc",Supports_with_Living:"Daily Living Supports: Supports and information related to daily living needs and supporting daily living needs at home (e.g., with family, group care, residential supports)",Free_educational_resources:"Free Educational Resources: Curriculum based courses, classes, and textbooks; subscriptions"},e}(),fK=o("jIQF"),pK=function(){function e(t){for(var n in b(this,e),this._superprops=t,this._superprops)this._superprops.hasOwnProperty(n)&&(this[n]=this._superprops[n])}return w(e,[{key:"hasCoords",value:function(){var e=function(e){return"number"==typeof e&&isFinite(e)};return e(this.latitude)&&e(this.longitude)}},{key:"milesFrom",value:function(e){if(e&&this.hasCoords()){var t={lat:this.latitude,lng:this.longitude},n=Object(fK.getDistance)(t,e);return Object(fK.convertDistance)(n,"mi").toFixed(1)}}}]),e}(),mK=function(){function e(t){b(this,e),this._props=t,this.words="",this.start=0,this.size=20,this.types=[],this.ages=[],this.languages=[],this.sort={field:"_score",order:"asc"},this.hits=[],this.type_counts=[],this.age_counts=[],this.language_counts=[],this.map_data_only=!1;var n=JSON.parse(JSON.stringify(this._props));for(var i in n)n.hasOwnProperty(i)&&(this[i]=n[i]);this.hits&&this.hits.length>0&&(this.hits=this.hits.map(function(e){return new gK(e)}))}return w(e,[{key:"hasHits",get:function(){return!!(this.hits&&this.hits.length>0)}},{key:"hasWords",get:function(){return!!(this.words&&this.words.length>0)}},{key:"hasTypes",get:function(){return!(!this.types||1!==this.types.length&&2!==this.types.length)}},{key:"hasAges",get:function(){return!!(this.ages&&this.ages.length>0)}},{key:"hasLanguages",get:function(){return!!(this.languages&&this.languages.length>0)}},{key:"hasCategory",get:function(){return!(!this.category||!this.category.id)}},{key:"hasFilters",get:function(){return!!(this.hasWords||this.hasTypes||this.hasLanguages||this.hasAges||this.hasCategory)}},{key:"hitTypes",get:function(){var e=this;return uK.all().filter(function(t){return e.types.includes(t.name)})}},{key:"hasAgeCounts",get:function(){return this.age_counts.filter(function(e){return e.count>0}).length>0}},{key:"hasLanguageCounts",get:function(){return this.language_counts.filter(function(e){return e.count>0}).length>0}},{key:"equals",value:function(e){var t=!0;return this.category&&e.category&&(t=this.category.id===e.category.id),this.words===e.words&&this.types===e.types&&this.ages===e.ages&&this.languages===e.languages&&t}}]),e}(),gK=function(e){f(n,e);var t=m(n);function n(e){var i;for(var r in b(this,n),(i=t.call(this,e))._props=e,i._props)i._props.hasOwnProperty(r)&&(i[r]=i._props[r]);return i}return n}(pK),vK=function(e){return e.currently_enrolling="Currently enrolling",e.study_in_progress="Study in progress",e.results_being_analyzed="Results being analyzed",e.study_results_published="Study results published",e}({}),yK=function e(t){for(var n in b(this,e),this._props=t,this._props)this._props.hasOwnProperty(n)&&(this[n]=this._props[n])},_K=function(e){return{active:e}};function bK(e,t){if(1&e){var n=vs();ds(0,"div"),ds(1,"div",1),ds(2,"button",2),ks("click",function(e){return rn(n),As().handleClick(e)}),ds(3,"mat-icon",3),Js(4,"grade"),hs(),hs(),hs(),hs()}if(2&e){var i=As();Oa(2),Ps("matTooltip",i.instructions()),Oa(1),us("ngClass",Au(2,_K,i.userFavorite()))}}var kK,wK=((kK=function(){function e(t){b(this,e),this.api=t}return w(e,[{key:"ngOnInit",value:function(){}},{key:"userFavorite",value:function(){var e,t=s(this.user.user_favorites);try{for(t.s();!(e=t.n()).done;)if(e.value.resource_id===this.resource_id)return!0}catch(n){t.e(n)}finally{t.f()}return!1}},{key:"addFavorite",value:function(){var e=this,t=[new yK({user_id:this.user.id,resource_id:this.resource_id,type:"resource"})];this.api.addUserFavorites(t).subscribe(function(t){e.user.user_favorites.push(t[0])})}},{key:"deleteFavorite",value:function(){var e,t=this,n=s(this.user.user_favorites);try{for(n.s();!(e=n.n()).done;){var i=e.value;i.resource_id===this.resource_id&&(this.favorite=i)}}catch(r){n.e(r)}finally{n.f()}this.api.deleteUserFavorite(this.favorite).subscribe(function(e){t.user.user_favorites.splice(t.user.user_favorites.findIndex(function(e){return e.id===t.favorite.id}),1)})}},{key:"handleClick",value:function(e){e.preventDefault(),e.stopPropagation(),this.userFavorite()?this.deleteFavorite():this.addFavorite()}},{key:"instructions",value:function(){return this.userFavorite()?"Remove Resource from Profile":"Save Resource to Profile"}}]),e}()).\u0275fac=function(e){return new(e||kK)(ls(x$))},kK.\u0275cmp=pt({type:kK,selectors:[["app-favorite-resource-button"]],inputs:{resource_id:"resource_id",user:"user"},decls:1,vars:1,consts:[[4,"ngIf"],["fxLayout","row wrap","fxLayout.xs","column","fxLayoutAlign","left","fxLayoutGap","10px","fxLayoutGap.xs","0",1,"container"],["mat-mini-fab","",3,"matTooltip","click"],[3,"ngClass"]],template:function(e,t){1&e&&os(0,bK,5,4,"div",0),2&e&&us("ngIf",t.user)},directives:[wh,Xy,eb,n_,kP,CF,BR,yh,ly],styles:["button.mat-mini-fab.mat-accent[_ngcontent-%COMP%]{background-color:rgba(0,0,0,0);box-shadow:none;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)}button.mat-mini-fab.mat-accent[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{-webkit-text-stroke:1px #232d4b;color:#fff;text-shadow:-1px -1px 0 #232d4b,1px -1px 0 #232d4b,-1px 1px 0 #232d4b,1px 1px 0 #232d4b}button.mat-mini-fab.mat-accent[_ngcontent-%COMP%] mat-icon.active[_ngcontent-%COMP%]{color:#232d4b;text-shadow:none}"]}),kK);function CK(e,t){if(1&e&&(ds(0,"span",4),Js(1),hs()),2&e){var n=As(2);Oa(1),el(n.subtitle)}}var xK=function(e){return[e]},SK=function(e,t,n,i){return{hover:e,selected:t,inverted:n,"all-caps":i}};function AK(e,t){if(1&e){var n=vs();ds(0,"a",2),ks("mouseenter",function(){return rn(n),As().onMouseOver()})("mouseleave",function(){return rn(n),As().onMouseOut()}),fs(1,"i"),ds(2,"span"),Js(3),os(4,CK,2,1,"span",3),hs(),hs()}if(2&e){var i=As();us("routerLink",Au(10,xK,i.url))("ngClass",Tu(12,SK,i.hover||i.shouldHover,i.selected,i.inverted,i.allCaps)),Oa(1),rl("icofont-circled-right icofont-",i.size,"x details-link-icon"),Oa(1),rl("details-link-text-",i.size,"x"),Oa(1),tl(" ",i.label," "),Oa(1),us("ngIf",i.subtitle)}}function OK(e,t){if(1&e&&(ds(0,"span",4),Js(1),hs()),2&e){var n=As(2);Oa(1),el(n.subtitle)}}function EK(e,t){if(1&e){var n=vs();ds(0,"a",5),ks("mouseenter",function(){return rn(n),As().onMouseOver()})("mouseleave",function(){return rn(n),As().onMouseOut()}),fs(1,"i"),ds(2,"span"),Js(3),os(4,OK,2,1,"span",3),hs(),hs()}if(2&e){var i=As();us("href",i.url,Pr)("ngClass",Tu(10,SK,i.hover||i.shouldHover,i.selected,i.inverted,i.allCaps)),Oa(1),rl("icofont-circled-right icofont-",i.size,"x details-link-icon"),Oa(1),rl("details-link-text-",i.size,"x"),Oa(1),tl(" ",i.label," "),Oa(1),us("ngIf",i.subtitle)}}var TK,PK=((TK=function(){function e(){b(this,e),this.label="Details",this.size=1,this.selected=!1,this.subtitle="",this.inverted=!1,this.allCaps=!0,this.externalLink=!1,this.shouldHover=!1}return w(e,[{key:"ngOnInit",value:function(){}},{key:"onMouseOver",value:function(){void 0===this.hover&&(this.shouldHover=!0)}},{key:"onMouseOut",value:function(){void 0===this.hover&&(this.shouldHover=!1)}}]),e}()).\u0275fac=function(e){return new(e||TK)},TK.\u0275cmp=pt({type:TK,selectors:[["app-details-link"]],inputs:{url:"url",label:"label",size:"size",hover:"hover",selected:"selected",subtitle:"subtitle",inverted:"inverted",allCaps:"allCaps",externalLink:"externalLink"},decls:2,vars:2,consts:[[3,"routerLink","ngClass","mouseenter","mouseleave",4,"ngIf"],["target","_blank",3,"href","ngClass","mouseenter","mouseleave",4,"ngIf"],[3,"routerLink","ngClass","mouseenter","mouseleave"],["class","muted",4,"ngIf"],[1,"muted"],["target","_blank",3,"href","ngClass","mouseenter","mouseleave"]],template:function(e,t){1&e&&(os(0,AK,5,17,"a",0),os(1,EK,5,15,"a",1)),2&e&&(us("ngIf",!t.externalLink),Oa(1),us("ngIf",t.externalLink))},directives:[wh,PX,yh,ly],styles:["a[_ngcontent-%COMP%]{transition:all .5s;text-decoration:none;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center}a[_ngcontent-%COMP%] [class*=details-link-text][_ngcontent-%COMP%]{font:700 1.5rem/1 franklin-gothic-urw,sans-serif;letter-spacing:normal;font-style:italic;color:#232d4b}a[_ngcontent-%COMP%] .details-link-text-1x[_ngcontent-%COMP%]{font-size:1.125rem;margin-left:.5rem}a[_ngcontent-%COMP%] .details-link-text-2x[_ngcontent-%COMP%]{font-size:1.5rem;margin-left:.75rem}a[_ngcontent-%COMP%] [class*=icofont-][_ngcontent-%COMP%]{color:#e57200;transition:all .5s}a[_ngcontent-%COMP%] .details-link-icon[_ngcontent-%COMP%]{-ms-transform:rotate(0deg);transform:rotate(0deg)}a.selected[_ngcontent-%COMP%] .details-link-icon[_ngcontent-%COMP%]{-ms-transform:rotate(90deg);transform:rotate(90deg)}a.hover[_ngcontent-%COMP%]{-ms-transform:translateX(10px);transform:translateX(10px)}a.hover.selected[_ngcontent-%COMP%]{-ms-transform:translateY(10px);transform:translateY(10px)}.muted[_ngcontent-%COMP%]{color:#4e4e4e}.inverted[_ngcontent-%COMP%], .inverted[_ngcontent-%COMP%] [class*=details-link-text][_ngcontent-%COMP%]{color:#fff}.all-caps[_ngcontent-%COMP%] [class*=details-link-text][_ngcontent-%COMP%]{text-transform:uppercase;letter-spacing:.1em}"]}),TK);function DK(e,t){1&e&&fs(0,"i"),2&e&&rl("icofont-search-stock icofont-",As(2).size,"x")}var MK=function(e,t,n){return{"font-size":e,height:t,width:n}};function IK(e,t){if(1&e&&(ds(0,"mat-icon",3),Js(1,"important_devices"),hs()),2&e){var n=As(2);us("ngStyle",Eu(1,MK,n.pxSize,n.pxSize,n.pxSize))}}function RK(e,t){if(1&e&&(ds(0,"mat-icon",3),Js(1,"event_available"),hs()),2&e){var n=As(2);us("ngStyle",Eu(1,MK,n.pxSize,n.pxSize,n.pxSize))}}function LK(e,t){1&e&&fs(0,"i"),2&e&&rl("icofont-ui-map icofont-",As(2).size,"x")}function FK(e,t){if(1&e&&(ps(0),os(1,DK,1,3,"i",1),os(2,IK,2,5,"mat-icon",2),os(3,RK,2,5,"mat-icon",2),os(4,LK,1,3,"i",1),ms()),2&e){var n=As();Oa(1),us("ngIf",n.is(n.iconType,"study")),Oa(1),us("ngIf",n.is(n.iconType,"resource")),Oa(1),us("ngIf",n.is(n.iconType,"event")),Oa(1),us("ngIf",n.is(n.iconType,"location"))}}var NK,VK,BK=((VK=function(){function e(){b(this,e),this.iconTypes=uK.all().map(function(e){return e.name})}return w(e,[{key:"ngOnInit",value:function(){}},{key:"is",value:function(e,t){return e===t}},{key:"pxSize",get:function(){return 16*this.size+"px"}}]),e}()).\u0275fac=function(e){return new(e||VK)},VK.\u0275cmp=pt({type:VK,selectors:[["app-type-icon"]],inputs:{iconType:"iconType",size:"size"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"class",4,"ngIf"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"]],template:function(e,t){1&e&&os(0,FK,5,4,"ng-container",0),2&e&&us("ngIf",t.iconType)},directives:[wh,BR,Rh,Sy],styles:["mat-icon[_ngcontent-%COMP%]{vertical-align:top}"]}),VK),HK=((NK=function(){function e(){b(this,e)}return w(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||NK)},NK.\u0275cmp=pt({type:NK,selectors:[["app-last-updated-date"]],inputs:{lastUpdatedDate:"lastUpdatedDate"},decls:3,vars:4,consts:[[1,"hit-last-updated"]],template:function(e,t){1&e&&(ds(0,"span",0),Js(1),Iu(2,"date"),hs()),2&e&&(is("data-iso-date-string",t.lastUpdatedDate),Oa(1),tl(" Updated ",Ru(2,2,t.lastUpdatedDate)," -\n"))},pipes:[$h],styles:[".hit-last-updated[_ngcontent-%COMP%]{font-style:italic;font-size:1em;color:#666}"]}),NK);function zK(e,t){if(1&e&&(ds(0,"span",1),fs(1,"br"),ds(2,"mat-icon"),Js(3,"event_available"),hs(),Js(4),Iu(5,"date"),hs()),2&e){var n=As();is("data-iso-date-string",n.eventDate),Oa(4),tl(" Event date: ",Ru(5,2,n.eventDate),"\n")}}var GK,jK=((GK=function(){function e(){b(this,e)}return w(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||GK)},GK.\u0275cmp=pt({type:GK,selectors:[["app-event-date"]],inputs:{eventDate:"eventDate"},decls:1,vars:1,consts:[["class","hit-event-date","fxLayoutAlign","start center",4,"ngIf"],["fxLayoutAlign","start center",1,"hit-event-date"]],template:function(e,t){1&e&&os(0,zK,6,4,"span",0),2&e&&us("ngIf",t.eventDate)},directives:[wh,eb,BR],pipes:[$h],styles:[".hit-event-date[_ngcontent-%COMP%]{color:#e57200;font-weight:700}"]}),GK);function UK(e,t){1&e&&(ds(0,"p"),Js(1,"[DRAFT]"),hs())}var WK=function(){return["/search"]},qK=function(e){return{Type:e}};function YK(e,t){if(1&e&&(ds(0,"button",12),fs(1,"app-type-icon",13),hs()),2&e){var n=As(2);Ps("matTooltip",n.hit.label),us("routerLink",Su(6,WK))("queryParams",Au(7,qK,n.hit.label))("disableRipple",!0),Oa(1),us("iconType",n.hit.type.toLowerCase())("size",3)}}function QK(e,t){1&e&&fs(0,"app-type-icon",13),2&e&&us("iconType",As(2).hit.type.toLowerCase())("size",3)}function XK(e,t){if(1&e&&(ps(0),ds(1,"em",14),ds(2,"mat-icon"),Js(3,"timer"),hs(),Js(4),hs(),ms()),2&e){var n=As(2);Oa(1),us("ngClass","status-badge status-"+n.statusKey()),Oa(3),tl(" ",n.hit.status," ")}}function $K(e,t){1&e&&fs(0,"app-event-date",18),2&e&&us("eventDate",As(3).hit.date)}function KK(e,t){if(1&e&&(ds(0,"markdown",15),fs(1,"app-last-updated-date",16),Js(2),os(3,$K,1,1,"app-event-date",17),hs()),2&e){var n=As(2);Oa(1),us("lastUpdatedDate",n.hit.last_updated),Oa(1),tl(" ",n.hit.highlights," "),Oa(1),us("ngIf",n.hit.date)}}function ZK(e,t){1&e&&fs(0,"app-event-date",18),2&e&&us("eventDate",As(3).hit.date)}function JK(e,t){if(1&e&&(ds(0,"p",19),fs(1,"app-last-updated-date",16),ds(2,"markdown"),Js(3),hs(),os(4,ZK,1,1,"app-event-date",17),hs()),2&e){var n=As(2);Oa(1),us("lastUpdatedDate",n.hit.last_updated),Oa(2),el(n.isPastEvent?n.hit.post_event_description:n.hit.description),Oa(1),us("ngIf",n.hit.date)}}var eZ=function(e,t){return[e,t]};function tZ(e,t){if(1&e){var n=vs();ds(0,"div",1),ds(1,"div",2),ds(2,"div",3),os(3,UK,2,0,"p",4),ds(4,"a",5),Js(5),hs(),fs(6,"app-favorite-resource-button",6),hs(),os(7,YK,2,9,"button",7),os(8,QK,1,2,"app-type-icon",8),hs(),os(9,XK,5,2,"ng-container",4),os(10,KK,4,3,"markdown",9),os(11,JK,5,3,"p",10),ds(12,"app-details-link",11),ks("mouseover",function(){return rn(n),As().hover=!0})("mouseout",function(){return rn(n),As().hover=!1}),hs(),hs()}if(2&e){var i=As();Oa(3),us("ngIf",!0===i.hit.is_draft),Oa(1),us("routerLink",Ou(14,eZ,"/"+i.hit.type.toLowerCase(),i.hit.id)),Oa(1),tl(" ",i.hit.title," "),Oa(1),us("resource_id",i.hit.id)("user",i.currentUser),Oa(1),us("ngIf","study"!=i.hit.type),Oa(1),us("ngIf","study"==i.hit.type),Oa(1),us("ngIf",i.hit&&i.hit.status&&i.isEnrolling(i.hit.status)),Oa(1),us("ngIf",i.hit.highlights),Oa(1),us("ngIf",!i.hit.highlights),Oa(1),Ds("label","View ",i.hit.type," Details"),Ps("subtitle",i.mapLoc&&i.hit.hasCoords()?"("+i.hit.milesFrom(i.mapLoc)+"mi)":""),us("url","/"+i.hit.type.toLowerCase()+"/"+i.hit.id)("hover",i.hover)}}var nZ,iZ=((nZ=function(){function e(){b(this,e),this.hover=!1}return w(e,[{key:"isPastEvent",get:function(){return!!(this.hit.date&&new Date(this.hit.date)0),Oa(1),us("ngIf",!t.resourceHits||0===t.resourceHits.length))},directives:[Xy,n_,eb,bh,v_,wh,kP,iZ],styles:[".covid19-resources[_ngcontent-%COMP%]{margin:2em}.category-buttons[_ngcontent-%COMP%]{width:250px}.covid19-hero[_ngcontent-%COMP%]{background:#232d4b;color:#fff;padding:1em;margin-top:0;text-align:center}.covid19-hero[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{color:#fff}.covid19-hero[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border-top-width:4px;margin:1em auto}.covid19-title[_ngcontent-%COMP%]{margin-bottom:0!important}"]}),lZ);function cZ(e,t){1&e&&(ds(0,"div",15),fs(1,"mat-spinner"),hs())}function dZ(e,t){1&e&&(ds(0,"mat-header-cell",16),Js(1," ID "),hs())}function hZ(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.id," ")}}function fZ(e,t){1&e&&(ds(0,"mat-header-cell",16),Js(1," User ID "),hs())}function pZ(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.user_id," ")}}function mZ(e,t){1&e&&(ds(0,"mat-header-cell",16),Js(1," Type "),hs())}function gZ(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.type," ")}}function vZ(e,t){1&e&&(ds(0,"mat-header-cell",16),Js(1," Viewed "),hs())}function yZ(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.viewed," ")}}function _Z(e,t){1&e&&(ds(0,"mat-header-cell",16),Js(1," Date Viewed "),hs())}function bZ(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),Iu(2,"date"),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",Lu(2,1,n.date_viewed,"short")," ")}}function kZ(e,t){1&e&&(ds(0,"mat-header-cell",16),Js(1," Date Sent "),hs())}function wZ(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),Iu(2,"date"),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",Lu(2,1,n.last_updated,"short")," ")}}function CZ(e,t){1&e&&fs(0,"mat-header-row")}function xZ(e,t){1&e&&fs(0,"mat-row")}function SZ(e,t){if(1&e){var n=vs();ds(0,"div",1),os(1,cZ,2,0,"div",2),ds(2,"div"),ds(3,"h1"),Js(4,"Email Log:"),hs(),ds(5,"mat-form-field"),ds(6,"mat-label"),Js(7,"Filter"),hs(),ds(8,"input",3),ks("keyup",function(e){return rn(n),As().applyFilter(e)}),hs(),hs(),ds(9,"mat-table",4),ps(10,5),os(11,dZ,2,0,"mat-header-cell",6),os(12,hZ,2,1,"mat-cell",7),ms(),ps(13,8),os(14,fZ,2,0,"mat-header-cell",6),os(15,pZ,2,1,"mat-cell",7),ms(),ps(16,9),os(17,mZ,2,0,"mat-header-cell",6),os(18,gZ,2,1,"mat-cell",7),ms(),ps(19,10),os(20,vZ,2,0,"mat-header-cell",6),os(21,yZ,2,1,"mat-cell",7),ms(),ps(22,11),os(23,_Z,2,0,"mat-header-cell",6),os(24,bZ,3,4,"mat-cell",7),ms(),ps(25,12),os(26,kZ,2,0,"mat-header-cell",6),os(27,wZ,3,4,"mat-cell",7),ms(),os(28,CZ,1,0,"mat-header-row",13),os(29,xZ,1,0,"mat-row",14),hs(),hs(),hs()}if(2&e){var i=As();Oa(1),us("ngIf",i.loading),Oa(8),us("dataSource",i.dataSource),Oa(19),us("matHeaderRowDef",i.displayedColumns),Oa(1),us("matRowDefColumns",i.displayedColumns)}}var AZ,OZ=((AZ=function(){function e(t,n,i){var r=this;b(this,e),this.api=t,this.route=n,this.authenticationService=i,this.displayedColumns=["id","user_id","type","viewed","date_viewed","last_updated"],this.loading=!0,this.authenticationService.currentUser.subscribe(function(e){return r.currentUser=e})}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.api.getAllEmailLog().subscribe(function(t){e.dataSource=new oH(t),e.dataSource.sort=e.sort,e.loading=!1})}},{key:"applyFilter",value:function(e){this.dataSource.filter=e.target.value.trim().toLowerCase()}}]),e}()).\u0275fac=function(e){return new(e||AZ)(ls(x$),ls(oQ),ls(y$))},AZ.\u0275cmp=pt({type:AZ,selectors:[["app-email-log-admin"]],viewQuery:function(e,t){var n;1&e&&Ku(hV,3),2&e&&$u(n=Ju())&&(t.sort=n.first)},decls:1,vars:1,consts:[["class","email-log-admin",4,"ngIf"],[1,"email-log-admin"],["class","spinner-container",4,"ngIf"],["matInput","",3,"keyup"],["matSort","","matSortActive","id","matSortDirection","asc",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","id"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","user_id"],["matColumnDef","type"],["matColumnDef","viewed"],["matColumnDef","date_viewed"],["matColumnDef","last_updated"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[1,"spinner-container"],["mat-sort-header",""]],template:function(e,t){1&e&&os(0,SZ,30,4,"div",0),2&e&&us("ngIf",t.currentUser&&"admin"==t.currentUser.role)},directives:[wh,wT,hT,vM,BB,hV,WB,jB,zB,KB,JB,pN,YB,yV,XB,tH,iH],pipes:[$h],styles:[".email-log-admin[_ngcontent-%COMP%]{margin:2em}"]}),AZ);function EZ(e,t){if(1&e){var n=vs();ds(0,"div"),ds(1,"p"),Js(2,"You have completed all the questions about your role as a Parent/Guardian. Please click the button below to begin entering information about your children or dependent(s)."),hs(),ds(3,"div",6),ds(4,"button",7),ks("click",function(e){return rn(n),As().enrollDependent(e)}),Js(5,"Create another profile"),hs(),hs(),hs()}}function TZ(e,t){if(1&e){var n=vs();ds(0,"div"),ds(1,"p"),Js(2,"You have completed all the questions about your child or dependent. We will use this information to contact you about upcoming studies and emerging resources that will be of interest based on the details you provided. "),hs(),ds(3,"p"),Js(4,"If you have another dependent, please click the button below to create a profile for them. Otherwise we recommend you check out our list of active studies, or search through the available services and resources."),hs(),ds(5,"div",6),ds(6,"button",8),ks("click",function(e){return rn(n),As().enrollDependent(e)}),Js(7,"Create another profile"),hs(),hs(),hs()}}function PZ(e,t){if(1&e){var n=vs();ds(0,"div"),ds(1,"h2"),Js(2,"Thank you!"),hs(),ds(3,"p"),Js(4,"You have completed all the questions about yourself. We will use this information to contact you about upcoming studies and emerging resources that will be of interest based on the details you provided."),hs(),ds(5,"p"),Js(6,"If you have a son, daughter, or dependent you would like to enroll as well, please click the button below to enter information about them. Otherwise we recommend you check out our list of active studies, or search through the available services and resources."),hs(),ds(7,"div",6),ds(8,"button",9),ks("click",function(e){return rn(n),As().enrollDependent(e)}),Js(9,"Create another profile"),hs(),hs(),hs()}}function DZ(e,t){if(1&e){var n=vs();ds(0,"div"),ds(1,"p"),Js(2,"Thank you for providing us with your information. If you have a son, daughter, or dependent you would like to enroll as well, please click the button below to enter information about them. Otherwise we recommend you check out our list of active studies, or search through the available services and resources."),hs(),ds(3,"div",6),ds(4,"button",10),ks("click",function(e){return rn(n),As().enrollDependent(e)}),Js(5,"Create another profile"),hs(),hs(),hs()}}var MZ,IZ=((MZ=function(){function e(t){b(this,e),this.router=t}return w(e,[{key:"ngOnInit",value:function(){}},{key:"goProfile",value:function(e){e.preventDefault(),this.router.navigate(["profile"])}},{key:"goStudies",value:function(e){e.preventDefault(),this.router.navigate(["studies"])}},{key:"goResources",value:function(e){e.preventDefault(),this.router.navigate(["search"])}},{key:"enrollDependent",value:function(e){e.preventDefault(),this.router.navigate(["terms",p$.DEPENDENT])}}]),e}()).\u0275fac=function(e){return new(e||MZ)(ls(EX))},MZ.\u0275cmp=pt({type:MZ,selectors:[["app-flow-complete"]],inputs:{flow:"flow"},decls:16,vars:4,consts:[[1,"alert","alert-info"],[4,"ngIf"],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutGap","10px","fxLayoutAlign","center center"],["mat-flat-button","","type","button","color","primary","routerLink","/profile"],["mat-flat-button","","type","button","routerLink","/studies"],["mat-flat-button","","type","button","color","accent","routerLink","/search"],["fxLayoutAlign","center center"],["mat-flat-button","","color","primary","id","enroll_first_dependent",3,"click"],["mat-flat-button","","color","primary","id","enroll_another_dependent",3,"click"],["mat-flat-button","","color","primary","id","enroll_self_dependent",3,"click"],["mat-flat-button","","color","primary","id","enroll_professional_dependent",3,"click"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"h1"),Js(2,"Profile complete!"),hs(),os(3,EZ,6,0,"div",1),os(4,TZ,8,0,"div",1),os(5,PZ,10,0,"div",1),os(6,DZ,6,0,"div",1),ds(7,"p"),Js(8,"You can continue to edit any unlocked questionnaires by selecting them from the column on the left."),hs(),ds(9,"div",2),ds(10,"button",3),Js(11,"Return to Profile Page"),hs(),ds(12,"button",4),Js(13,"View Studies"),hs(),ds(14,"button",5),Js(15,"Search Resources"),hs(),hs(),hs()),2&e&&(Oa(3),us("ngIf","guardian_intake"===t.flow.name),Oa(1),us("ngIf","dependent_intake"===t.flow.name),Oa(1),us("ngIf","self_intake"===t.flow.name),Oa(1),us("ngIf","professional_intake"===t.flow.name))},directives:[wh,Xy,n_,eb,kP,TX],styles:["div[_ngcontent-%COMP%]{text-align:left;margin:auto;max-width:600px}"]}),MZ),RZ=function e(t){if(function(e){return e===Object(e)&&!Array.isArray(e)&&"function"!=typeof e}(t)){var n={};return Object.keys(t).forEach(function(i){var r;n[(r=i,r.replace(/([-_][a-z])/gi,function(e){return e.toUpperCase().replace("-","").replace("_","")}))]=e(t[i])}),n}return Array.isArray(t)?t.map(function(t){return e(t)}):t},LZ=function(){var e=function e(){b(this,e)};return e.COMPLETE="COMPLETE",e.INCOMPLETE="INCOMPLETE",e}();function FZ(e,t){if(1&e&&(ds(0,"div",2),Js(1),fs(2,"mat-spinner",3),hs()),2&e){var n=As(2);Oa(1),tl(" ",n.message||""," "),Oa(1),us("diameter",n.diameter)}}function NZ(e,t){if(1&e&&(ds(0,"span"),Js(1),hs()),2&e){var n=As(2);Oa(1),el(n.message||"...")}}function VZ(e,t){if(1&e&&(ps(0),os(1,FZ,3,2,"div",1),os(2,NZ,2,1,"span",0),ms()),2&e){var n=As();Oa(1),us("ngIf",n.showSpinner),Oa(1),us("ngIf",!n.showSpinner)}}function BZ(e,t){1&e&&(ds(0,"mat-form-field"),ds(1,"mat-label"),Js(2,"Loading..."),hs(),ds(3,"mat-select"),ds(4,"mat-option"),Js(5,"..."),hs(),hs(),hs())}var HZ,zZ=((HZ=function(){function e(){b(this,e),this.showSpinner=!0,this.size="lg",this.baseSize=24,this.isField=!1}return w(e,[{key:"diameter",get:function(){switch(this.size){case"xl":return 4*this.baseSize;case"lg":return 3*this.baseSize;case"med":return 2*this.baseSize;case"sm":return this.baseSize;default:return 3*this.baseSize}}},{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||HZ)},HZ.\u0275cmp=pt({type:HZ,selectors:[["app-loading"]],inputs:{showSpinner:"showSpinner",message:"message",size:"size",baseSize:"baseSize",isField:"isField"},decls:2,vars:2,consts:[[4,"ngIf"],["class","loading","fxLayoutAlign","center center",4,"ngIf"],["fxLayoutAlign","center center",1,"loading"],[3,"diameter"]],template:function(e,t){1&e&&(os(0,VZ,3,2,"ng-container",0),os(1,BZ,6,0,"mat-form-field",0)),2&e&&(us("ngIf",!t.isField),Oa(1),us("ngIf",t.isField))},directives:[wh,eb,pN,wT,hT,KL,JA],styles:[""]}),HZ),GZ=function(){return{visible:!0}};function jZ(e,t){1&e&&(ds(0,"mat-icon",8),Js(1,"lock"),hs()),2&e&&us("ngClass",Su(1,GZ))}var UZ=function(){return{hidden:!0}};function WZ(e,t){1&e&&(ds(0,"mat-icon",8),Js(1,"lock"),hs()),2&e&&us("ngClass",Su(1,UZ))}function qZ(e,t){1&e&&(ds(0,"mat-icon",8),Js(1,"done"),hs()),2&e&&us("ngClass",Su(1,GZ))}function YZ(e,t){1&e&&(ds(0,"mat-icon",8),Js(1,"done"),hs()),2&e&&us("ngClass",Su(1,UZ))}var QZ=function(e){return{active:e,"step-link":!0}};function XZ(e,t){if(1&e){var n=vs();ds(0,"mat-nav-list"),ds(1,"mat-list-item",2),ks("click",function(){rn(n);var e=t.$implicit;return As().selectStep(e)}),ds(2,"span",3),os(3,jZ,2,2,"mat-icon",4),os(4,WZ,2,2,"mat-icon",4),hs(),ds(5,"span",5),Js(6),hs(),fs(7,"span",6),ds(8,"span",7),os(9,qZ,2,2,"mat-icon",4),os(10,YZ,2,2,"mat-icon",4),hs(),hs(),hs()}if(2&e){var i=t.$implicit,r=t.index,a=As();Oa(1),us("ngClass",Au(7,QZ,a.stepName===i.name))("id","step_link_"+r),Oa(2),us("ngIf","sensitive"===i.type),Oa(1),us("ngIf","sensitive"!==i.type),Oa(2),el(i.label),Oa(3),us("ngIf","COMPLETE"===i.status),Oa(1),us("ngIf","COMPLETE"!==i.status)}}function $Z(e,t){1&e&&(ds(0,"mat-nav-list"),ds(1,"mat-list-item"),Js(2,"Loading..."),hs(),hs())}var KZ,ZZ=((KZ=function(){function e(t){b(this,e),this.api=t,this.stepSelected=new Vu}return w(e,[{key:"ngOnChanges",value:function(e){this.stepName=this.flow.steps[this.stepIndex].name}},{key:"ngOnInit",value:function(){this.stepName=this.flow.steps[this.stepIndex].name}},{key:"selectStep",value:function(e){this.stepName=e.name,this.stepSelected.emit(e)}}]),e}()).\u0275fac=function(e){return new(e||KZ)(ls(x$))},KZ.\u0275cmp=pt({type:KZ,selectors:[["app-questionnaire-steps-list"]],inputs:{flow:"flow",stepIndex:"stepIndex"},outputs:{stepSelected:"stepSelected"},features:[It],decls:2,vars:2,consts:[[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"ngClass","id","click"],[1,"lock"],[3,"ngClass",4,"ngIf"],[1,"step-link-text"],["fxFlex",""],[1,"done"],[3,"ngClass"]],template:function(e,t){1&e&&(os(0,XZ,11,9,"mat-nav-list",0),os(1,$Z,3,0,"mat-nav-list",1)),2&e&&(us("ngForOf",t.flow.steps),Oa(1),us("ngIf",0===t.flow.steps.length))},directives:[bh,wh,KR,nL,yh,ly,v_,BR],styles:["mat-icon[_ngcontent-%COMP%]{font-size:.8em;margin-right:8px}mat-icon.visible[_ngcontent-%COMP%]{opacity:1}mat-icon.hidden[_ngcontent-%COMP%]{opacity:0}"]}),KZ);function JZ(e,t){1&e&&(ds(0,"div"),ds(1,"h1"),Js(2,"Your Information"),hs(),ds(3,"p"),Js(4,"In the next few minutes you will be completing a series of questions about yourself and your relationship to autism. Please be as thorough as you can. "),hs(),hs())}function eJ(e,t){1&e&&(ds(0,"div"),ds(1,"h1"),Js(2,"Dependent Information"),hs(),ds(3,"p"),Js(4,"In the next few minutes you will be completing a series of questions about your dependent. "),hs(),hs())}function tJ(e,t){1&e&&(ds(0,"div"),ds(1,"h1"),Js(2,"Parent/Guardian Information"),hs(),ds(3,"p"),Js(4,"In the next few minutes you will be completing a short series of questions about yourself. When you are finished, we will ask you to complete a separate set of questions about your dependent(s). "),hs(),hs())}function nJ(e,t){1&e&&(ds(0,"div"),ds(1,"h1"),Js(2,"Professional Details"),hs(),ds(3,"p"),Js(4,"In the next few minutes you will be completing a series of questions about yourself and your relationship to Autism. "),hs(),hs())}var iJ,rJ=function(){return["/profile"]},aJ=((iJ=function(){function e(){b(this,e),this.next=new Vu}return w(e,[{key:"ngOnInit",value:function(){}},{key:"continue",value:function(){this.next.emit()}}]),e}()).\u0275fac=function(e){return new(e||iJ)},iJ.\u0275cmp=pt({type:iJ,selectors:[["app-flow-intro"]],inputs:{flow:"flow"},outputs:{next:"next"},decls:18,vars:6,consts:[[4,"ngIf"],["id","instructions"],[1,"button-row"],["mat-flat-button","","type","button","color","primary","id","next-button",3,"click"],["mat-flat-button","","type","button","id","intro-cancel-button",3,"routerLink"]],template:function(e,t){1&e&&(os(0,JZ,5,0,"div",0),os(1,eJ,5,0,"div",0),os(2,tJ,5,0,"div",0),os(3,nJ,5,0,"div",0),ds(4,"div",1),ds(5,"h2"),Js(6,"Instructions"),hs(),ds(7,"p"),Js(8,"Please complete your profile by clicking the next button below. If you need to change your information at any time, please re-complete the questionnaires (listed on the left) that you'd like to change and your information will be updated. "),hs(),ds(9,"p"),Js(10,' Some of the questionnaires to the left might have "lock" icons because these questionnaires are considered to be asking for sensitive information. To protect your privacy, information you provide on these pages will be immediately saved on a secure server which will only be accessed as needed for study purposes by approved STAR study team members.'),hs(),ds(11,"p"),Js(12,'Click the "Next" button below to get started.'),hs(),ds(13,"div",2),ds(14,"button",3),ks("click",function(){return t.continue()}),Js(15,"Next"),hs(),ds(16,"button",4),Js(17,"Cancel"),hs(),hs(),hs()),2&e&&(us("ngIf","self_intake"===t.flow.name),Oa(1),us("ngIf","dependent_intake"===t.flow.name),Oa(1),us("ngIf","guardian_intake"===t.flow.name),Oa(1),us("ngIf","professional_intake"===t.flow.name),Oa(13),us("routerLink",Su(5,rJ)))},directives:[wh,kP,TX],styles:["div[_ngcontent-%COMP%]{padding:20px}.button-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:8px;margin-top:35px}"]}),iJ);function oJ(e,t){1&e&&fs(0,"app-loading",5)}function sJ(e,t){if(1&e&&(ps(0),Js(1),ms()),2&e){var n=As(3);Oa(1),tl("",n.participant.name,"'s Profile")}}function lJ(e,t){if(1&e&&(ps(0),Js(1),ms()),2&e){var n=As(3);Oa(1),tl("",n.user.isSelf(n.participant)?"Your":"Your dependent's"," Profile")}}function uJ(e,t){if(1&e){var n=vs();ds(0,"div"),ds(1,"div",6),ds(2,"button",7),ks("click",function(){return rn(n),As(2).toggleSidenav()}),ds(3,"mat-icon"),Js(4,"toc"),hs(),hs(),ds(5,"h1",8),os(6,sJ,2,1,"ng-container",3),os(7,lJ,2,1,"ng-container",3),hs(),fs(8,"span",9),ds(9,"div",10),ds(10,"span",11),Js(11),hs(),Js(12," of "),ds(13,"span",12),Js(14),hs(),Js(15," steps complete "),hs(),hs(),hs()}if(2&e){var i=As(2);Oa(6),us("ngIf",i.participant&&i.participant.name),Oa(1),us("ngIf",!(i.participant&&i.participant.name)),Oa(4),el(i.numCompletedSteps()),Oa(3),el(i.numTotalSteps())}}function cJ(e,t){1&e&&fs(0,"mat-progress-bar",13),2&e&&us("value",As(2).flow.percentComplete())}function dJ(e,t){1&e&&fs(0,"app-flow-complete",20),2&e&&us("flow",As(3).flow)}function hJ(e,t){if(1&e){var n=vs();ds(0,"app-flow-intro",21),ks("next",function(){return rn(n),As(3).goToNextAvailableStep()}),hs()}2&e&&us("flow",As(3).flow)}function fJ(e,t){1&e&&(ds(0,"p",27),Js(1,"In order to protect certain sensitive information about you, this information is no longer accessible via this web site. If you feel that this information should be updated, you may choose to re-complete this form and re-submit it."),hs())}function pJ(e,t){if(1&e){var n=vs();ds(0,"button",28),ks("click",function(){return rn(n),As(5).hideForm=!1}),Js(1),hs()}if(2&e){var i=As(5);Oa(1),tl("Show ",i.currentStep().label," Form ")}}function mJ(e,t){if(1&e&&(ds(0,"div"),os(1,fJ,2,0,"p",25),os(2,pJ,2,1,"button",26),hs()),2&e){var n=As(4);Oa(1),us("ngIf",n.hideForm),Oa(1),us("ngIf",n.hideForm)}}function gJ(e,t){1&e&&(ds(0,"p",27),Js(1,"You are about to re-submit this form. While this will not replace previous records, we will defer to the information you submit now when considering your eligibility to future studies and notifications."),hs())}function vJ(e,t){1&e&&(ds(0,"p",27),Js(1,"This information is considered sensitive and to protect your privacy is saved on a secure server which will only be accessed as needed by approved STAR study team members for study purposes. You can provide this information again in full at any time if you need to edit what is currently stored on the secure server, which is not accessible by this site."),hs())}var yJ=function(e){return{disabled:e}};function _J(e,t){if(1&e){var n=vs();ds(0,"button",33),ks("click",function(){rn(n);var e=As(5);return e.form.valid?e.submit():e.highlightRequiredFields()}),Js(1,"Save & Next "),hs()}if(2&e){var i=As(5);us("ngClass",Au(1,yJ,!i.form.valid))}}var bJ=function(){return["/profile"]};function kJ(e,t){1&e&&(ds(0,"button",34),Js(1,"Cancel "),hs()),2&e&&us("routerLink",Su(1,bJ))}function wJ(e,t){if(1&e&&(ds(0,"div"),fs(1,"formly-form",29),os(2,gJ,2,0,"p",25),os(3,vJ,2,0,"p",25),ds(4,"div",30),os(5,_J,2,3,"button",31),os(6,kJ,2,2,"button",32),hs(),hs()),2&e){var n=As(4);Oa(1),us("form",n.form)("model",n.model)("fields",n.fields)("options",n.options),Oa(1),us("ngIf",n.showResubmitMessage),Oa(1),us("ngIf","sensitive"===n.currentStep().type),Oa(2),us("ngIf",n.form),Oa(1),us("ngIf",n.form)}}function CJ(e,t){if(1&e){var n=vs();ds(0,"form",22),ds(1,"div",23),ds(2,"h1"),Js(3),hs(),fs(4,"span",9),ds(5,"button",24),ks("click",function(){return rn(n),As(3).highlightRequiredFields()}),Js(6,"*Required"),hs(),hs(),ds(7,"p"),Js(8),hs(),os(9,mJ,3,2,"div",3),os(10,wJ,7,8,"div",3),hs()}if(2&e){var i=As(3);us("formGroup",i.form),Oa(3),el(i.currentStep().label),Oa(5),el(i.currentStep().description),Oa(1),us("ngIf",i.showResubmitMessage),Oa(1),us("ngIf",!i.hideForm)}}function xJ(e,t){if(1&e){var n=vs();ds(0,"div"),ds(1,"mat-drawer-container"),ds(2,"mat-drawer",14,15),ks("openedChange",function(e){return rn(n),As(2).sidebarOpen=e}),ds(4,"app-questionnaire-steps-list",16),ks("stepSelected",function(e){return rn(n),As(2).goToStep(e)}),hs(),hs(),ds(5,"mat-drawer-content"),os(6,dJ,1,1,"app-flow-complete",17),os(7,hJ,1,1,"app-flow-intro",18),os(8,CJ,11,5,"form",19),hs(),hs(),hs()}if(2&e){var i=As(2);Oa(2),us("mode",i.mobileQuery.matches?"over":"side")("opened",i.sidebarOpen),Oa(2),us("flow",i.flow)("stepIndex",i.activeStep),Oa(2),us("ngIf",i.state===i.flowState.COMPLETE),Oa(1),us("ngIf",i.state===i.flowState.INTRO),Oa(1),us("ngIf",i.state===i.flowState.SHOW_FORM)}}function SJ(e,t){if(1&e&&(ds(0,"div",1),ds(1,"div"),os(2,oJ,1,0,"app-loading",2),os(3,uJ,16,4,"div",3),os(4,cJ,1,1,"mat-progress-bar",4),os(5,xJ,9,7,"div",3),hs(),hs()),2&e){var n=As();Oa(2),us("ngIf",n.state===n.flowState.LOADING),Oa(1),us("ngIf",n.state!==n.flowState.LOADING),Oa(1),us("ngIf",n.flow.percentComplete()<100),Oa(1),us("ngIf",n.state!==n.flowState.LOADING)}}var AJ,OJ,EJ=function(e){return e.INTRO="intro",e.LOADING="loading",e.COMPLETE="complete",e.SHOW_FORM="form",e}({}),TJ=((AJ=function(){function e(t,n,i,r,a,o,s,l){var u=this;b(this,e),this.api=n,this.authenticationService=i,this.changeDetectorRef=r,this.deviceDetectorService=a,this.googleAnalyticsService=o,this.route=s,this.router=l,this.activeStep=0,this.flowState=EJ,this.state=EJ.LOADING,this.showResubmitMessage=!1,this.hideForm=!1,this.sidebarOpen=!0,this.model={},this.fields=[],this.mobileQuery=t.matchMedia("(max-width: 959px)"),this.mobileQuery.addListener(this._mobileQueryListener),this._mobileQueryListener=function(){return u._updateSidenavState()},window.addEventListener("resize",this._mobileQueryListener),this.authenticationService.currentUser.subscribe(function(e){u.user=e,u.route.params.subscribe(function(e){u.participant=u.user.getParticipantById(parseInt(e.participantId,10)),u.loadFlow(e.flowName)})})}return w(e,[{key:"sidenav",set:function(e){this.sidenavElement=e,this._updateSidenavState()}},{key:"ngOnInit",value:function(){}},{key:"ngOnDestroy",value:function(){this.mobileQuery.removeListener(this._mobileQueryListener),window.removeEventListener("resize",this._mobileQueryListener)}},{key:"loadFlow",value:function(e){var t=this;this.api.getFlow(e,this.participant.id).subscribe(function(e){t.flow=new w$(e),0===t.flow.percentComplete()?t.state=t.flowState.INTRO:t.goToNextAvailableStep(),bq(t.deviceDetectorService)})}},{key:"updateParticipant",value:function(e){var t=this;this.api.getParticipant(e).subscribe(function(e){t.participant=e})}},{key:"goToNextAvailableStep",value:function(){if(this.updateParticipant(this.participant.id),this.flow.percentComplete()<100){var e=this.activeStep;if(this.flow.steps[this.activeStep].status===LZ.COMPLETE)for(e++;e!==this.activeStep;){if(this.flow.steps[e]&&this.flow.steps[e].status!==LZ.COMPLETE){this.activeStep=e;break}e>=this.flow.steps.length-1?e=0:e++}this.loadActiveStep()}else this.state=EJ.COMPLETE,this.googleAnalyticsService.flowCompleteEvent(this.flow.name),bq(this.deviceDetectorService)}},{key:"goToStep",value:function(e){this.updateParticipant(this.participant.id);for(var t=0;t0?(e.showResubmitMessage=!0,e.hideForm=!0,e.renderForm(t,n)):t.questionnaire_id>0?e.api.getQuestionnaire(t.name,t.questionnaire_id).subscribe(function(i){e.model=i,e.renderForm(t,n)}):e.renderForm(t,n),bq(e.deviceDetectorService)}),bq(this.deviceDetectorService)}},{key:"highlightRequiredFields",value:function(){for(var e=0,t=Object.keys(this.form.controls);e0&&"sensitive"!==this.currentStep().type?this.api.updateQuestionnaire(this.currentStep().name,this.currentStep().questionnaire_id,this.model).subscribe(function(){e.googleAnalyticsService.stepCompleteEvent(e.currentStep().name),e.loadFlow(e.flow.name),bq(e.deviceDetectorService)}):this.api.submitQuestionnaire(this.flow.name,this.currentStep().name,this.model).subscribe(function(){e.googleAnalyticsService.stepCompleteEvent(e.currentStep().name),e.loadFlow(e.flow.name),bq(e.deviceDetectorService)})}},{key:"numCompletedSteps",value:function(){return this.flow.steps.filter(function(e){return e.status===LZ.COMPLETE}).length}},{key:"numTotalSteps",value:function(){return this.flow.steps.length}},{key:"toggleSidenav",value:function(){var e=this;this.sidebarOpen=!this.sidebarOpen,this.sidenavElement.toggle(this.sidebarOpen,"mouse").then(function(){bq(e.deviceDetectorService)})}},{key:"renderForm",value:function(e,t){this.startTime=performance.now(),this.fields=this.infoToForm(t),this.form=new Pk({}),this.options={formState:{mainModel:this.model,preferredName:this.participant.name}},this.state=this.flowState.SHOW_FORM,bq(this.deviceDetectorService)}},{key:"infoToForm",value:function(e){var t,n=[],i=s(e.fields);try{for(i.s();!(t=i.n()).done;){var r=t.value;r.fieldArray&&(r.fieldArray.model=this.model[r.name]),n.push(RZ(r))}}catch(a){i.e(a)}finally{i.f()}return n.sort(function(e,t){return e.displayOrder-t.displayOrder}),n}},{key:"_updateSidenavState",value:function(){this.sidenavElement&&(this.mobileQuery.matches?(this.sidenavElement.close(),this.sidebarOpen=!1):(this.sidenavElement.open(),this.sidenavElement.disableClose=!0,this.sidebarOpen=!0)),this.changeDetectorRef.detectChanges()}}]),e}()).\u0275fac=function(e){return new(e||AJ)(ls(cF),ls(x$),ls(y$),ls(Jl),ls(EW),ls(h$),ls(oQ),ls(EX))},AJ.\u0275cmp=pt({type:AJ,selectors:[["app-flow"]],viewQuery:function(e,t){var n;1&e&&Ku(XN,1),2&e&&$u(n=Ju())&&(t.sidenav=n.first)},decls:1,vars:1,consts:[["class","profile mat-typography",4,"ngIf"],[1,"profile","mat-typography"],["message","Loading...",4,"ngIf"],[4,"ngIf"],["mode","determinate",3,"value",4,"ngIf"],["message","Loading..."],["fxLayout","row","fxLayoutGap","10px","fxLayoutAlign","start center"],["mat-icon-button","","fxHide.gt-sm","",3,"click"],[1,"margin-bottom-none"],["fxFlex",""],["fxFlexAlign","end center",1,"mat-small"],["id","num_completed_steps"],["id","num_total_steps"],["mode","determinate",3,"value"],[3,"mode","opened","openedChange"],["sidenav",""],[3,"flow","stepIndex","stepSelected"],[3,"flow",4,"ngIf"],[3,"flow","next",4,"ngIf"],["class","pad-2",3,"formGroup",4,"ngIf"],[3,"flow"],[3,"flow","next"],[1,"pad-2",3,"formGroup"],["fxLayout","row","fxLayout.lt-md","column"],["mat-button","","id","highlight-required-fields","color","warn",3,"click"],["class","alert alert-warn",4,"ngIf"],["mat-flat-button","","type","button","color","primary",3,"click",4,"ngIf"],[1,"alert","alert-warn"],["mat-flat-button","","type","button","color","primary",3,"click"],[3,"form","model","fields","options"],[1,"button-row"],["mat-flat-button","","type","button","color","primary","id","save-next-button",3,"ngClass","click",4,"ngIf"],["mat-flat-button","","type","button","id","flow-cancel-button",3,"routerLink",4,"ngIf"],["mat-flat-button","","type","button","color","primary","id","save-next-button",3,"ngClass","click"],["mat-flat-button","","type","button","id","flow-cancel-button",3,"routerLink"]],template:function(e,t){1&e&&os(0,SJ,6,4,"div",0),2&e&&us("ngIf",t.user&&t.flow)},directives:[wh,zZ,Xy,n_,eb,kP,my,BR,v_,U_,QF,$N,XN,ZZ,QN,IZ,aJ,Vk,Jb,qk,yj,yh,ly,TX],styles:[".profile[_ngcontent-%COMP%]{margin:2%}.button-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:8px;margin-top:35px}mat-drawer-container[_ngcontent-%COMP%]{min-height:100vh}mat-drawer-container[_ngcontent-%COMP%], mat-drawer-content[_ngcontent-%COMP%]{background-color:#fff}h1[_ngcontent-%COMP%]{position:relative}h1[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{position:absolute;right:0;color:#232d4b}@media (max-width:767px){h1[_ngcontent-%COMP%]{font-size:1.25em}}@media (min-width:768px){h1[_ngcontent-%COMP%]{font-size:2em}}@media (min-width:960px){h1[_ngcontent-%COMP%]{font-size:2.5em}} mat-progress-bar{height:16px;margin-bottom:1em} mat-progress-bar .mat-progress-bar-buffer{background-color:#dadada} mat-progress-bar .mat-progress-bar-background, mat-progress-bar .mat-progress-bar-background pattern{fill:#dadada}#highlight-required-fields[_ngcontent-%COMP%]{text-align:right}"]}),AJ),PJ=function(){return["/home"]},DJ=((OJ=function(){function e(){b(this,e)}return w(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||OJ)},OJ.\u0275cmp=pt({type:OJ,selectors:[["app-logo"]],inputs:{variant:"variant"},decls:5,vars:5,consts:[["id","logo"],[3,"routerLink"],[1,"variant"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"a",1),ds(2,"span",2),Js(3,"Autism"),hs(),Js(4,"DRIVE "),hs(),hs()),2&e&&(zs(t.variant),Oa(1),us("routerLink",Su(4,PJ)))},directives:[PX],styles:["#logo[_ngcontent-%COMP%]{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}#logo.dark-lg[_ngcontent-%COMP%] .variant[_ngcontent-%COMP%], #logo.dark[_ngcontent-%COMP%] .variant[_ngcontent-%COMP%]{color:#232d4b;font-weight:700}#logo.light-lg[_ngcontent-%COMP%] .variant[_ngcontent-%COMP%], #logo.light[_ngcontent-%COMP%] .variant[_ngcontent-%COMP%]{color:#fff;font-weight:700}#logo[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#e57200}#logo.dark-lg[_ngcontent-%COMP%] a[_ngcontent-%COMP%], #logo.light-lg[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font:800 2.25rem/1 franklin-gothic-urw,serif;letter-spacing:normal;font-family:franklin-gothic-urw,serif;text-transform:uppercase;margin-top:4rem;margin-bottom:4rem;font-weight:lighter;font-size:2.5rem}@media (min-width:959px){#logo.dark-lg[_ngcontent-%COMP%] a[_ngcontent-%COMP%], #logo.light-lg[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:3rem}}@media (min-width:960px){#logo.dark-lg[_ngcontent-%COMP%] a[_ngcontent-%COMP%], #logo.light-lg[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:3.5rem}}@media (min-width:1280px){#logo.dark-lg[_ngcontent-%COMP%] a[_ngcontent-%COMP%], #logo.light-lg[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:4rem}}#logo.dark-lg[_ngcontent-%COMP%] img[_ngcontent-%COMP%], #logo.light-lg[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{min-width:120px;max-width:600px;min-height:120px;max-height:240px;width:100%;margin-top:1em;margin-bottom:1em;margin-right:1em}#logo.dark[_ngcontent-%COMP%] a[_ngcontent-%COMP%], #logo.light[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font:800 1.75rem/1 franklin-gothic-urw,serif;letter-spacing:normal;font-family:franklin-gothic-urw,serif;text-transform:uppercase;font-weight:lighter;font-size:2rem}#logo.dark[_ngcontent-%COMP%] img[_ngcontent-%COMP%], #logo.light[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{min-width:40px;max-width:200px;min-height:40px;max-height:80px;width:auto;margin-top:1em;margin-bottom:1em;margin-right:1em}"]}),OJ);function MJ(e,t){if(1&e&&(ds(0,"div",13),Js(1),hs()),2&e){var n=As(2);Oa(1),el(n.errorMessage)}}function IJ(e,t){if(1&e){var n=vs();ds(0,"footer",8),os(1,MJ,2,1,"div",9),ds(2,"button",10),Js(3,"Submit"),hs(),ds(4,"button",11),ks("click",function(e){return rn(n),As().goHome(e)}),Js(5,"Cancel"),hs(),ds(6,"button",12),ks("click",function(e){return rn(n),As().goRegister(e)}),Js(7,"Register for an account"),hs(),hs()}if(2&e){var i=As();Oa(1),us("ngIf",i.errorMessage)}}function RJ(e,t){1&e&&(ds(0,"footer"),fs(1,"app-loading"),hs())}function LJ(e,t){if(1&e){var n=vs();ds(0,"footer",14),ds(1,"p"),Js(2,"You should receive a message in a few minutes with a link that will let you reset your password."),hs(),ds(3,"button",15),ks("click",function(e){return rn(n),As().goHome(e)}),Js(4,"Continue"),hs(),hs()}}var FJ,NJ=((FJ=function(){function e(t,n,i){b(this,e),this.api=t,this.changeDetectorRef=n,this.router=i,this.formStatus="form",this.form=new Pk({}),this.model={},this.fields=[{key:"email",type:"input",templateOptions:{type:"email",label:"Email Address:",placeholder:"Enter email",required:!0}}]}return w(e,[{key:"ngOnInit",value:function(){}},{key:"submit",value:function(){var e=this;localStorage.removeItem("token_url"),this.form.valid&&(this.formStatus="submitting",this.api.sendResetPasswordEmail(this.model.email).subscribe(function(t){t&&localStorage.setItem("token_url",t),e.formStatus="complete"},function(t){e.errorMessage=t||"We encountered an error resetting your password. Please contact support.",e.formStatus="form",e.changeDetectorRef.detectChanges()}))}},{key:"goHome",value:function(e){e.preventDefault(),this.router.navigate(["home"])}},{key:"goRegister",value:function(e){e.preventDefault(),this.router.navigate(["register"])}}]),e}()).\u0275fac=function(e){return new(e||FJ)(ls(x$),ls(Jl),ls(EX))},FJ.\u0275cmp=pt({type:FJ,selectors:[["app-forgot-password"]],decls:12,vars:7,consts:[["fxLayout","row","fxLayoutWrap","","fxLayoutGap","10px","fxLayoutAlign","center center",1,"container","mat-typography"],["fxFlex","50%","fxFlex.xs","90%",1,"form"],["variant","dark-lg"],[3,"formGroup","ngSubmit"],[3,"form","fields","model"],["fxLayout","column","fxLayoutGap","2%","fxLayoutAlign","center",4,"ngIf"],[4,"ngIf"],["id","confirmation_message",4,"ngIf"],["fxLayout","column","fxLayoutGap","2%","fxLayoutAlign","center"],["id","error_message","class","display mat-error",4,"ngIf"],["mat-flat-button","","type","submit","color","primary","id","submit"],["mat-flat-button","","color","accent","id","cancel",3,"click"],["mat-button","","id","register",3,"click"],["id","error_message",1,"display","mat-error"],["id","confirmation_message"],["mat-flat-button","","color","accent","id","continue",3,"click"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"div",1),fs(2,"app-logo",2),ds(3,"h1"),Js(4,"Forgot your password?"),hs(),ds(5,"p"),Js(6,"To reset your password, please enter the email address associated with your Autism DRIVE account."),hs(),ds(7,"form",3),ks("ngSubmit",function(){return t.submit()}),ds(8,"formly-form",4),os(9,IJ,8,1,"footer",5),os(10,RJ,2,0,"footer",6),os(11,LJ,5,0,"footer",7),hs(),hs(),hs(),hs()),2&e&&(Oa(7),us("formGroup",t.form),Oa(1),us("form",t.form)("fields",t.fields)("model",t.model),Oa(1),us("ngIf","form"===t.formStatus),Oa(1),us("ngIf","submitting"===t.formStatus),Oa(1),us("ngIf","complete"===t.formStatus))},directives:[Xy,n_,eb,v_,DJ,Vk,Jb,qk,yj,wh,kP,zZ],styles:[".container[_ngcontent-%COMP%]{min-height:100vh}.form[_ngcontent-%COMP%]{border:2px solid #4e4e4e;padding:2%;text-align:center}"]}),FJ);function VJ(e,t){if(1&e&&fs(0,"app-type-icon",6),2&e){var n=As();us("iconType",n.iconType)("size",n.iconSize)}}function BJ(e,t){if(1&e&&(ds(0,"div"),Js(1),hs()),2&e){var n=As();rl("border-box-tile-label border-box-tile-label-",n.linkSize,"x"),Oa(1),el(n.title)}}function HJ(e,t){if(1&e&&(ds(0,"p",7),Js(1),hs()),2&e){var n=As();Oa(1),el(n.subtitle)}}var zJ,GJ,jJ=function(e,t,n){return{"border-box-tile-inner":!0,selected:e,deselected:t,hover:n}},UJ=((zJ=function(){function e(){b(this,e),this.iconSize=1,this.linkSize=1,this.hover=!1}return w(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||zJ)},zJ.\u0275cmp=pt({type:zJ,selectors:[["app-border-box-tile"]],inputs:{iconType:"iconType",isSelected:"isSelected",url:"url",iconSize:"iconSize",title:"title",subtitle:"subtitle",linkLabel:"linkLabel",linkSize:"linkSize"},decls:6,vars:17,consts:[[3,"mouseover","mouseout"],[3,"ngClass"],[3,"iconType","size",4,"ngIf"],[3,"class",4,"ngIf"],["class","intro",4,"ngIf"],[3,"url","label","size","hover","selected"],[3,"iconType","size"],[1,"intro"]],template:function(e,t){var n,i;1&e&&(ds(0,"div",0),ks("mouseover",function(){return t.hover=!0})("mouseout",function(){return t.hover=!1}),ds(1,"div",1),os(2,VJ,1,2,"app-type-icon",2),os(3,BJ,2,4,"div",3),os(4,HJ,2,1,"p",4),fs(5,"app-details-link",5),hs(),hs()),2&e&&(n=t.linkSize,i=t.iconType,Us(Ei,Gs,as(tn(),"border-box-tile border-box-tile-",n,"x ",i,""),!0),Oa(1),us("ngClass",Eu(13,jJ,!0===t.isSelected,!1===t.isSelected,t.hover)),Oa(1),us("ngIf",t.iconType),Oa(1),us("ngIf",t.title),Oa(1),us("ngIf",t.subtitle),Oa(1),us("url",t.url)("label",t.linkLabel)("size",t.linkSize)("hover",t.hover)("selected",t.isSelected))},directives:[yh,ly,wh,PK,BK],styles:['.border-box-tile[_ngcontent-%COMP%]{display:grid;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;position:relative;padding:0;margin:0;background-color:hsla(0,0%,100%,.8);text-align:center;color:#232d4b}.border-box-tile.border-box-tile-1x[_ngcontent-%COMP%]{height:226px}.border-box-tile.border-box-tile-2x[_ngcontent-%COMP%]{height:288px}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner.hover[_ngcontent-%COMP%]:before{opacity:0}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner.hover[_ngcontent-%COMP%]:after{opacity:1}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner[_ngcontent-%COMP%]:after, .border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner[_ngcontent-%COMP%]:before{content:"";pointer-events:none;transition:opacity .5s;position:absolute;width:100%;height:100%;top:0;left:0;right:0;bottom:0;margin:0}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner[_ngcontent-%COMP%]:before{border:11px solid #dadada;-o-border-image:linear-gradient(180deg,#dadada 0,#f1f1ef);border-image:linear-gradient(180deg,#dadada 0,#f1f1ef);border-image-slice:1;opacity:1}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner[_ngcontent-%COMP%]:after{border:11px solid #002f6c;-o-border-image:linear-gradient(#232d4b,#e57200);border-image:linear-gradient(#232d4b,#e57200);border-image-slice:1;opacity:0}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner.deselected[_ngcontent-%COMP%]:after{opacity:0}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner.deselected[_ngcontent-%COMP%]:before, .border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner.selected[_ngcontent-%COMP%]:after{opacity:1}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner.selected[_ngcontent-%COMP%]:before{opacity:0}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner[_ngcontent-%COMP%] p.intro[_ngcontent-%COMP%]{padding:0 20px;color:#4e4e4e;font-weight:700}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner[_ngcontent-%COMP%] .border-box-tile-label.border-box-tile-label-1x[_ngcontent-%COMP%]{font:700 1.5rem/1 franklin-gothic-urw,sans-serif;letter-spacing:normal;margin-top:1em;margin-bottom:1em;font-style:italic;text-transform:uppercase;letter-spacing:1.8px}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner[_ngcontent-%COMP%] .border-box-tile-label.border-box-tile-label-2x[_ngcontent-%COMP%]{font:800 1.75rem/1 franklin-gothic-urw,serif;letter-spacing:normal;margin-top:1em;margin-bottom:1em;font-style:italic;text-transform:uppercase}@media (max-width:1023px){.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner[_ngcontent-%COMP%]{padding:1em}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner[_ngcontent-%COMP%] .border-box-tile-label.border-box-tile-label-1x[_ngcontent-%COMP%]{font-size:1em}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner[_ngcontent-%COMP%] .border-box-tile-label.border-box-tile-label-2x[_ngcontent-%COMP%]{font-size:2em}}@media (min-width:1024px){.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner[_ngcontent-%COMP%]{padding:2.4375rem}}']}),zJ),WJ=function(e,t){return{"news-item":!0,even:e,odd:t}},qJ=function(e){return[e]},YJ=((GJ=function(){function e(){b(this,e)}return w(e,[{key:"ngOnInit",value:function(){this.item.label||(this.item.label="Details")}},{key:"isEven",value:function(e){return e%2==0}}]),e}()).\u0275fac=function(e){return new(e||GJ)},GJ.\u0275cmp=pt({type:GJ,selectors:[["app-news-item"]],inputs:{item:"item",index:"index"},decls:12,vars:16,consts:[[3,"ngClass"],[1,"image"],[3,"routerLink"],[3,"src"],[1,"content"],[1,"item-type"],[1,"item-title",3,"routerLink"],[3,"url","label"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"div",1),ds(2,"a",2),fs(3,"img",3),hs(),hs(),ds(4,"div",4),ds(5,"span",5),Js(6),hs(),ds(7,"a",6),Js(8),hs(),ds(9,"p"),Js(10),hs(),fs(11,"app-details-link",7),hs(),hs()),2&e&&(us("ngClass",Ou(9,WJ,t.isEven(t.index),!t.isEven(t.index))),Oa(2),us("routerLink",Au(12,qJ,t.item.url)),Oa(1),Ps("src",t.item.img,Pr),Oa(3),el(t.item.type.label),Oa(1),us("routerLink",Au(14,qJ,t.item.url)),Oa(1),el(t.item.title),Oa(2),el(t.item.description),Oa(1),us("url",t.item.url)("label",t.item.label))},directives:[yh,ly,PX,PK],styles:['.news-item[_ngcontent-%COMP%]{display:grid;position:relative}@media screen and (max-width:767px){.news-item[_ngcontent-%COMP%]{grid-template-columns:1fr}}@media screen and (min-width:768px){.news-item[_ngcontent-%COMP%]{grid-template-areas:"leftCol rightCol";grid-template-columns:1fr 1fr}}.news-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{display:grid;-ms-flex-line-pack:center;align-content:center}@media screen and (max-width:767px){.news-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{text-align:center;padding:2em}}@media screen and (min-width:768px){.news-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{padding:4em}}.news-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-image:url(/assets/theme/starburst.svg);background-position:top;background-repeat:no-repeat;background-size:contain;opacity:.1;z-index:-1}.news-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .item-type[_ngcontent-%COMP%]{text-transform:uppercase}.news-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .item-title[_ngcontent-%COMP%]{font:500 1.625rem/1 franklin-gothic-urw,serif;letter-spacing:normal;font-style:italic;color:#232d4b;cursor:pointer;margin-top:.75rem}.news-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .item-title[_ngcontent-%COMP%]:after{content:"";background-color:#e57200;width:6.25rem;height:.125rem;display:block}@media screen and (max-width:767px){.news-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .item-title[_ngcontent-%COMP%]:after{margin-left:auto;margin-right:auto}}@media screen and (min-width:768px){.news-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .item-title[_ngcontent-%COMP%]:after{margin:.45em 0}}.news-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-style:italic;font-size:1.125rem;line-height:1.666}.news-item[_ngcontent-%COMP%] .image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}@media screen and (min-width:768px){.news-item.even[_ngcontent-%COMP%] .image[_ngcontent-%COMP%]{grid-area:leftCol}}@media screen and (min-width:768px){.news-item.even[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{grid-area:rightCol}}.news-item.even[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]:before{left:-50%}@media screen and (min-width:768px){.news-item.odd[_ngcontent-%COMP%] .image[_ngcontent-%COMP%]{grid-area:rightCol}}@media screen and (min-width:768px){.news-item.odd[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{grid-area:leftCol}}.news-item.odd[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]:before{right:-50%}']}),GJ);function QJ(e,t){if(1&e&&fs(0,"app-news-item",20),2&e){var n=t.index;us("item",t.$implicit)("index",n)}}var XJ,$J=((XJ=function(){function e(t,n,i,r){var a=this;b(this,e),this.api=t,this.router=n,this.configService=i,this.meta=r,this.api.getStudiesByStatus("currently_enrolling").subscribe(function(e){a.currentStudies=e,a.newsItems=a._studiesToNewsItems(e)}),this.configService.mirroring&&n.navigate(["mirrored"]),this.meta.updateTag({property:"og:image",content:location.origin+"/assets/home/hero-family.jpg"},"property='og:image'"),this.meta.updateTag({property:"og:image:secure_url",content:location.origin+"/assets/home/hero-family.jpg"},"property='og:image:secure_url'"),this.meta.updateTag({name:"twitter:image",content:location.origin+"/assets/home/hero-family.jpg"},"name='twitter:image'")}return w(e,[{key:"ngOnInit",value:function(){}},{key:"_studiesToNewsItems",value:function(e){if(this.currentStudies&&this.currentStudies.length>0)return e.map(function(e,t){return{title:e.short_title||e.title,description:e.short_description||e.description,url:"/study/".concat(e.id),type:uK.STUDY,img:e.image_url,imgClass:"center-center"}})}}]),e}()).\u0275fac=function(e){return new(e||XJ)(ls(x$),ls(EX),ls(d$),ls(Yf))},XJ.\u0275cmp=pt({type:XJ,selectors:[["app-home"]],decls:30,vars:2,consts:[["id","hero",1,"gradient-overlay","container","with-escaping-tiles"],[1,"hero-content"],[1,"h4"],["fxLayout.lt-sm","column","fxLayout.gt-xs","row wrap","fxLayoutGap","40px","fxLayoutAlign","center auto",1,"row","escaping-tiles-2x"],["fxFlex.gt-sm","calc(33% - 160px)","fxFlex.sm","calc(50% - 120px)","url","/register","title","Join Autism DRIVE","subtitle","Connect to upcoming studies at UVA and resources across the state relevant to you.","linkSize","2","routerLink","/register"],["fxFlex.gt-sm","calc(33% - 160px)","fxFlex.sm","calc(50% - 120px)","url","/search","title","Find Resources","subtitle","Access autism-focused resources available in Virginia and online.","linkSize","2","routerLink","/search"],[1,"container","mat-typography"],["fxLayout","column","fxLayoutAlign","center center",1,"row"],[1,"intro"],[1,"jumbo-section"],[1,"jumbo-section-header"],["role","presentation",1,"watermark"],[1,"line-1"],["fxShow","","fxHide.gt-sm",""],[1,"line-2"],[1,"container"],[1,"row"],[3,"item","index",4,"ngFor","ngForOf"],[1,"more-studies"],["label","View more studies","size","2",3,"url"],[3,"item","index"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"div",1),ds(2,"h1"),Js(3,"Transform Outcomes. Together."),hs(),fs(4,"hr"),ds(5,"p",2),Js(6," We're bringing together researchers, professionals, and community organizations to improve the lives of individuals with autism and their families. Autism DRIVE gives you access to ground-breaking autism research and innovative models for care, support, and education. "),hs(),hs(),ds(7,"div",3),fs(8,"app-border-box-tile",4),fs(9,"app-border-box-tile",5),hs(),hs(),ds(10,"div",6),ds(11,"div",7),ds(12,"p",8),Js(13,"The Autism DRIVE enables secure storage and sharing of autism data, helping to monitor progress and outcomes. The system also provides access to resources for families and professionals -- infusing cutting-edge knowledge into community-based practices."),hs(),hs(),hs(),ds(14,"div",9),ds(15,"header",10),ds(16,"span",11),Js(17,"Autism"),hs(),ds(18,"h2"),ds(19,"span",12),Js(20," Transformative "),fs(21,"br",13),Js(22," Autism Research "),hs(),ds(23,"span",14),Js(24,"Current Studies"),hs(),hs(),hs(),hs(),ds(25,"div",15),ds(26,"div",16),os(27,QJ,1,2,"app-news-item",17),ds(28,"div",18),fs(29,"app-details-link",19),hs(),hs(),hs()),2&e&&(Oa(27),us("ngForOf",t.newsItems),Oa(2),us("url","/studies"))},directives:[Xy,n_,eb,UJ,v_,TX,my,bh,PK,YJ],styles:["#hero[_ngcontent-%COMP%]{background-image:url(/assets/home/hero-family.jpg);background-position:50% 33%;padding-top:80px;padding-bottom:80px}#hero[_ngcontent-%COMP%] .hero-content[_ngcontent-%COMP%]{text-align:center}#hero[_ngcontent-%COMP%] .hero-content[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-family:bodoni-urw,serif;text-transform:uppercase}#hero[_ngcontent-%COMP%] .hero-content[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border-top-width:4px;margin:1em auto}.more-studies[_ngcontent-%COMP%]{text-align:center;padding-top:2em}"]}),XJ);function KJ(e,t){1&e&&fs(0,"app-loading",13)}var ZJ,JJ=function(){return["/home"]},e0=function(){return["/register"]},t0=function(){return["/forgot-password"]},n0=((ZJ=function(){function e(t,n,i,r,a){var o=this;b(this,e),this.authenticationService=t,this.deviceDetectorService=n,this.googleAnalytics=i,this.route=r,this.router=a,this.loading=!1,this.errorEmitter=new Vu,this.form=new Pk({}),this.model={},this.fields=[{key:"email",type:"input",templateOptions:{type:"email",label:"Email Address:",placeholder:"Enter email",required:!0}},{key:"password",type:"input",templateOptions:{label:"Password:",type:"password",required:!0}}],this.route.queryParams.subscribe(function(e){e.hasOwnProperty("returnUrl")&&(o.returnUrl=e.returnUrl,o.authenticationService.currentUser.subscribe(function(e){return o._goToReturnUrl(e)}))}),this.route.params.subscribe(function(e){e.hasOwnProperty("email_token")&&(o.emailToken=e.email_token)}),this.authenticationService.currentUser.subscribe(function(e){e&&o._goToReturnUrl(e)})}return w(e,[{key:"ngOnInit",value:function(){}},{key:"submit",value:function(e){var t=this;this.loading=!0,this.form.valid?this.authenticationService.login(e.email,e.password,this.emailToken).subscribe(function(e){t._goToReturnUrl(e),t.googleAnalytics.accountEvent("login")},function(e){t.errorEmitter.emit(e||"An unexpected error occurred. Please contact support"),t.loading=!1}):(this.loading=!1,this.errorEmitter.emit("Please enter a valid email address and password."))}},{key:"_goToReturnUrl",value:function(e){var t=this;e&&this.router.navigateByUrl(this.returnUrl||"/profile").then(function(e){return bq(t.deviceDetectorService)})}}]),e}()).\u0275fac=function(e){return new(e||ZJ)(ls(y$),ls(EW),ls(h$),ls(oQ),ls(EX))},ZJ.\u0275cmp=pt({type:ZJ,selectors:[["app-login"]],decls:21,vars:14,consts:[["message","Loading...",4,"ngIf"],["hidden","loading","fxLayout.gt-md","row","fxLayout.lt-lg","column","fxLayoutWrap","","fxLayoutGap","10px","fxLayoutAlign","center center",1,"container","mat-typography"],["fxFlex.gt-md","50%","fxFlex.lt-lg","80%",1,"form"],["variant","dark-lg"],[3,"formGroup","ngSubmit"],[3,"form","fields","model"],["fxLayout","column","fxLayoutGap","2%","fxLayoutAlign","center"],["id","error_message",1,"display","mat-error"],["mat-flat-button","","type","submit","color","primary","id","submit"],["mat-flat-button","","color","accent","id","cancel",3,"routerLink"],["fxLayout","row","fxLayoutAlign","space-between",1,"footer"],["mat-button","","id","register",3,"routerLink"],["mat-button","","id","forgot_password",3,"routerLink"],["message","Loading..."]],template:function(e,t){1&e&&(os(0,KJ,1,0,"app-loading",0),ds(1,"div",1),ds(2,"div",2),fs(3,"app-logo",3),ds(4,"h1"),Js(5,"Sign in"),hs(),ds(6,"form",4),ks("ngSubmit",function(){return t.submit(t.model)}),ds(7,"formly-form",5),ds(8,"div",6),ds(9,"div",7),Js(10),Iu(11,"async"),hs(),ds(12,"button",8),Js(13,"Submit"),hs(),ds(14,"a",9),Js(15,"Cancel"),hs(),hs(),hs(),hs(),ds(16,"div",10),ds(17,"a",11),Js(18,"Join Autism DRIVE"),hs(),ds(19,"a",12),Js(20,"Forgot password?"),hs(),hs(),hs(),hs()),2&e&&(us("ngIf",t.loading),Oa(6),us("formGroup",t.form),Oa(1),us("form",t.form)("fields",t.fields)("model",t.model),Oa(3),el(Ru(11,9,t.errorEmitter)),Oa(4),us("routerLink",Su(11,JJ)),Oa(3),us("routerLink",Su(12,e0)),Oa(2),us("routerLink",Su(13,t0)))},directives:[wh,Xy,n_,eb,v_,DJ,Vk,Jb,qk,yj,kP,wP,PX,zZ],pipes:[qh],styles:["@media (max-width:959px){.container[_ngcontent-%COMP%]{min-height:60vh}.container[_ngcontent-%COMP%] .mat-form-field-wrapper{padding-bottom:.25em}}@media (min-width:960px){.container[_ngcontent-%COMP%]{min-height:70vh}}@media (min-width:1280px){.container[_ngcontent-%COMP%]{min-height:80vh}}.form[_ngcontent-%COMP%]{padding:2%}"]}),ZJ),i0=fC({opacity:0}),r0=fC({opacity:1}),a0=[r0,cC("0.5s ease-in-out",i0)],o0=[i0,cC("0.5s ease-in-out",r0)],s0={optional:!0};function l0(){return uC("fadeTransition",[gC("* <=> *",[yC(":enter, :leave",r0,s0),yC(":enter",i0,s0),hC([yC(":leave",vC(),s0),dC([yC(":leave",a0,s0),yC(":enter",o0,s0)]),yC(":enter",vC(),s0)])])])}fC({opacity:1,transform:"translateX(0%) scale(1)"}),fC({opacity:0,transform:"translateX(0%) scale(0)"}),fC({opacity:0,transform:"translateX(0%) scale(10)"}),fC({opacity:0,transform:"translateX(-100%) scale(1)"}),fC({opacity:0,transform:"translateX(100%) scale(1)"}),fC({opacity:0,transform:"translateX(0%) scale(1)"});var u0,c0,d0=((c0=function(){function e(t,n){b(this,e),this.api=t,this.router=n}return w(e,[{key:"ngOnInit",value:function(){}},{key:"goHome",value:function(e){e.preventDefault(),this.router.navigate(["home"])}}]),e}()).\u0275fac=function(e){return new(e||c0)(ls(x$),ls(EX))},c0.\u0275cmp=pt({type:c0,selectors:[["app-logout"]],hostVars:1,hostBindings:function(e,t){2&e&&ol("@fadeTransition",t.title)},decls:7,vars:0,consts:[["fxLayout.gt-md","row","fxLayout.lt-lg","column","fxLayoutWrap","","fxLayoutGap","10px","fxLayoutAlign","center center","id","logout-message",1,"container","mat-typography"],["fxFlex.gt-md","50%","fxFlex.lt-lg","80%",1,"message"],["variant","dark-lg",3,"click"],["id","ok-button","mat-flat-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"div",1),ds(2,"app-logo",2),ks("click",function(e){return t.goHome(e)}),hs(),ds(3,"h1"),Js(4,"You have been logged out."),hs(),ds(5,"button",3),ks("click",function(e){return t.goHome(e)}),Js(6,"Ok"),hs(),hs(),hs())},directives:[Xy,n_,eb,v_,DJ,kP],styles:["@media (max-width:959px){.container[_ngcontent-%COMP%]{min-height:70vh}}@media (min-width:960px){.container[_ngcontent-%COMP%]{min-height:80vh}}@media (min-width:1280px){.container[_ngcontent-%COMP%]{min-height:90vh}}div.message[_ngcontent-%COMP%]{text-align:center}"],data:{animation:[l0()]}}),c0),h0=((u0=function(){function e(){b(this,e)}return w(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||u0)},u0.\u0275cmp=pt({type:u0,selectors:[["app-mirror"]],decls:14,vars:0,consts:[["fxLayout","column","fxLayoutAlign","start start",1,"mirror"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"h1"),Js(2,"Mirrored Server"),hs(),ds(3,"p"),Js(4,"This server is currently running in a mirrored mode and provides access to de-identified data. It is pulling data from the main/public server on a regular basis. Because this is acting as a mirror of the public facing system this data should not be modified. The following areas of the site are currently disabled:"),hs(),ds(5,"ul"),ds(6,"li"),ds(7,"b"),Js(8,"Profile Page"),hs(),Js(9,": Which would allow the creation of new participants. This should be done on the main public facing site."),hs(),ds(10,"li"),ds(11,"b"),Js(12,"Questionnaires / Flow"),hs(),Js(13,": Which would create additional data that could be overwritten, lost, or contradict information taken from the main system."),hs(),hs(),hs())},directives:[Xy,eb],styles:[".mirror[_ngcontent-%COMP%]{margin:auto;max-width:800px}button[_ngcontent-%COMP%]{margin-bottom:2em}"]}),u0);function f0(e,t){1&e&&(ds(0,"div",16),fs(1,"mat-spinner"),hs())}function p0(e,t){if(1&e&&(ds(0,"mat-card"),ds(1,"p"),Js(2,"The filtered totals filter out all participants associated with Admin and Test User Accounts."),hs(),ds(3,"p"),Js(4,"The subtotals reflect all guardians, self advocates, and dependents, but not professionals."),hs(),fs(5,"mat-divider"),ds(6,"div",17),ds(7,"div"),ds(8,"p"),ds(9,"i"),Js(10,"Total Self Participants:"),hs(),Js(11),hs(),ds(12,"p"),ds(13,"i"),Js(14,"Total Self Guardians:"),hs(),Js(15),hs(),ds(16,"p"),ds(17,"i"),Js(18,"Total Dependents:"),hs(),Js(19),hs(),ds(20,"p"),ds(21,"b"),Js(22),hs(),hs(),fs(23,"hr"),ds(24,"p"),ds(25,"i"),Js(26,"Total Self Professionals:"),hs(),Js(27),hs(),ds(28,"p"),ds(29,"b"),Js(30),hs(),hs(),hs(),ds(31,"div"),ds(32,"p"),ds(33,"i"),Js(34,"Filtered Self Participants:"),hs(),Js(35),hs(),ds(36,"p"),ds(37,"i"),Js(38,"Filtered Self Guardians:"),hs(),Js(39),hs(),ds(40,"p"),ds(41,"i"),Js(42,"Filtered Dependents:"),hs(),Js(43),hs(),ds(44,"p"),ds(45,"b"),Js(46),hs(),hs(),fs(47,"hr"),ds(48,"p"),ds(49,"i"),Js(50,"Filtered Self Professionals:"),hs(),Js(51),hs(),ds(52,"p"),ds(53,"b"),Js(54),hs(),hs(),hs(),hs(),hs()),2&e){var n=As();Oa(11),tl(" ",n.userParticipantList.num_self_participants,""),Oa(4),tl(" ",n.userParticipantList.num_self_guardians,""),Oa(4),tl(" ",n.userParticipantList.num_dependents,""),Oa(3),tl("SubTotal: ",n.userParticipantList.num_self_participants+n.userParticipantList.num_self_guardians+n.userParticipantList.num_dependents,""),Oa(5),tl(" ",n.userParticipantList.num_self_professionals,""),Oa(3),tl("Total: ",n.userParticipantList.num_self_participants+n.userParticipantList.num_self_professionals+n.userParticipantList.num_self_guardians+n.userParticipantList.num_dependents,""),Oa(5),tl(" ",n.userParticipantList.filtered_self_participants,""),Oa(4),tl(" ",n.userParticipantList.filtered_self_guardians,""),Oa(4),tl(" ",n.userParticipantList.filtered_dependents,""),Oa(3),tl("Filtered SubTotal: ",n.userParticipantList.filtered_self_participants+n.userParticipantList.filtered_self_guardians+n.userParticipantList.filtered_dependents,""),Oa(5),tl(" ",n.userParticipantList.filtered_self_professionals,""),Oa(3),tl("Filtered Total: ",n.userParticipantList.filtered_self_participants+n.userParticipantList.filtered_self_professionals+n.userParticipantList.filtered_self_guardians+n.userParticipantList.filtered_dependents,"")}}function m0(e,t){1&e&&(ds(0,"mat-header-cell",18),Js(1," Id "),hs())}function g0(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.id," ")}}function v0(e,t){1&e&&(ds(0,"mat-header-cell",18),Js(1," Name "),hs())}function y0(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.name," ")}}function _0(e,t){1&e&&(ds(0,"mat-header-cell",18),Js(1," User Id "),hs())}function b0(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.user_id," ")}}function k0(e,t){1&e&&(ds(0,"mat-header-cell",18),Js(1," Relationship "),hs())}function w0(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.relationship," ")}}function C0(e,t){1&e&&(ds(0,"mat-header-cell",18),Js(1," Percent Complete "),hs())}function x0(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),Iu(2,"percent"),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",Ru(2,1,n.percent_complete)," ")}}function S0(e,t){1&e&&(ds(0,"mat-header-cell",18),Js(1," Has Consented "),hs())}function A0(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.has_consented," ")}}function O0(e,t){1&e&&(ds(0,"mat-header-cell",18),Js(1," Last Updated "),hs())}function E0(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.last_updated," ")}}function T0(e,t){1&e&&fs(0,"mat-header-row")}function P0(e,t){1&e&&fs(0,"mat-row")}var D0,M0=((D0=function(){function e(t){b(this,e),this.api=t,this.participantDataSource=new oH([]),this.displayedColumns=["id","name","user_id","relationship","percent_complete","has_consented","last_updated"],this.loading=!0}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.api.getParticipantAdminList().subscribe(function(t){e.userParticipantList=t,e.participantDataSource.data=t.all_participants,e.participantDataSource.sort=e.sort,e.loading=!1})}},{key:"applyFilter",value:function(e){this.participantDataSource.filter=e.target.value.trim().toLowerCase()}}]),e}()).\u0275fac=function(e){return new(e||D0)(ls(x$))},D0.\u0275cmp=pt({type:D0,selectors:[["app-participant-admin"]],viewQuery:function(e,t){var n;1&e&&Ku(hV,3),2&e&&$u(n=Ju())&&(t.sort=n.first)},decls:34,vars:5,consts:[[1,"participant-admin"],["class","spinner-container",4,"ngIf"],[4,"ngIf"],["matInput","",3,"keyup"],["matSort","","matSortActive","id","matSortDirection","asc",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","id"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","name"],["matColumnDef","user_id"],["matColumnDef","relationship"],["matColumnDef","percent_complete"],["matColumnDef","has_consented"],["matColumnDef","last_updated"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[1,"spinner-container"],["fxLayout","row","fxLayout.lt-sm","column","fxLayoutGap","2em"],["mat-sort-header",""]],template:function(e,t){1&e&&(ds(0,"div",0),os(1,f0,2,0,"div",1),ds(2,"div"),ds(3,"h1"),Js(4,"Participant Admin"),hs(),os(5,p0,55,12,"mat-card",2),ds(6,"mat-form-field"),ds(7,"mat-label"),Js(8,"Filter"),hs(),ds(9,"input",3),ks("keyup",function(e){return t.applyFilter(e)}),hs(),hs(),ds(10,"mat-table",4),ps(11,5),os(12,m0,2,0,"mat-header-cell",6),os(13,g0,2,1,"mat-cell",7),ms(),ps(14,8),os(15,v0,2,0,"mat-header-cell",6),os(16,y0,2,1,"mat-cell",7),ms(),ps(17,9),os(18,_0,2,0,"mat-header-cell",6),os(19,b0,2,1,"mat-cell",7),ms(),ps(20,10),os(21,k0,2,0,"mat-header-cell",6),os(22,w0,2,1,"mat-cell",7),ms(),ps(23,11),os(24,C0,2,0,"mat-header-cell",6),os(25,x0,3,3,"mat-cell",7),ms(),ps(26,12),os(27,S0,2,0,"mat-header-cell",6),os(28,A0,2,1,"mat-cell",7),ms(),ps(29,13),os(30,O0,2,0,"mat-header-cell",6),os(31,E0,2,1,"mat-cell",7),ms(),os(32,T0,1,0,"mat-header-row",14),os(33,P0,1,0,"mat-row",15),hs(),hs(),hs()),2&e&&(Oa(1),us("ngIf",t.loading),Oa(4),us("ngIf",t.userParticipantList),Oa(5),us("dataSource",t.participantDataSource),Oa(22),us("matHeaderRowDef",t.displayedColumns),Oa(1),us("matRowDefColumns",t.displayedColumns))},directives:[wh,wT,hT,vM,BB,hV,WB,jB,zB,KB,JB,pN,jP,zR,Xy,n_,YB,yV,XB,tH,iH],pipes:[Kh],styles:[".participant-admin[_ngcontent-%COMP%]{margin:2em}mat-form-field[_ngcontent-%COMP%]{margin-top:2em}"]}),D0);function I0(e,t){if(1&e&&(ds(0,"div",13),Js(1),hs()),2&e){var n=As();Oa(1),el(n.errorMessage)}}var R0,L0=function(){return["/register"]},F0=function(){return["/forgot-password"]},N0=((R0=function(){function e(t,n,i,r,a,o,s){var l=this;b(this,e),this.authenticationService=t,this.route=n,this.router=i,this.changeDetectorRef=r,this.apiService=a,this.deviceDetectorService=o,this.googleAnalyticsService=s,this.formState="form",this.errorMessage="",this.form=new Pk({}),this.model={},this.fields=[{key:"password",validators:{fieldMatch:{expression:function(e){var t=e.value;return t.passwordConfirm===t.password||!t.passwordConfirm||!t.password},message:"Password Not Matching",errorPath:"passwordConfirm"}},fieldGroup:[{key:"password",type:"input",className:"password",templateOptions:{type:"password",label:"Password",required:!0},validators:{password:{expression:function(e){return!e.value||l.passwordRegex.test(e.value)},message:function(e,t){return l.passwordRequirements.instructions}}}},{key:"passwordConfirm",type:"input",className:"passwordConfirm",templateOptions:{type:"password",label:"Confirm Password",placeholder:"Please re-enter your password",required:!0}}]}],this.route.params.subscribe(function(e){l.token=e.email_token,l.role=e.role,l.apiService.getPasswordRequirements(l.role).subscribe(function(e){l.passwordRequirements=e,l.passwordRegex=RegExp(e.regex)})})}return w(e,[{key:"ngOnInit",value:function(){}},{key:"goHome",value:function(e){e.preventDefault(),this.router.navigate(["home"])}},{key:"submit",value:function(){var e=this;this.form.valid&&(this.formState="submitting",this.errorMessage="",this.authenticationService.resetPassword(this.model.password.password,this.token).subscribe(function(t){e._goToReturnUrl(t),e.googleAnalyticsService.accountEvent("reset_password")},function(t){e.errorMessage="token_expired"===t.code?"The link for resetting your password has expired.Please return to the password reset page to generate a new email.":"We encountered an error resetting your password. Please contact support.",e.formState="form",e.changeDetectorRef.detectChanges()}))}},{key:"updateValidationState",value:function(){this.form.updateValueAndValidity()}},{key:"_goToReturnUrl",value:function(e){var t=this,n=localStorage.getItem("returnUrl");e&&this.router.navigateByUrl(n&&"undefined"!==n?n:"/profile").then(function(e){return bq(t.deviceDetectorService)})}}]),e}()).\u0275fac=function(e){return new(e||R0)(ls(y$),ls(oQ),ls(EX),ls(Jl),ls(x$),ls(EW),ls(h$))},R0.\u0275cmp=pt({type:R0,selectors:[["app-password-reset"]],decls:18,vars:9,consts:[["fxLayout","row","fxLayout.xs","column","fxLayoutWrap","","fxLayoutGap","10px","fxLayoutAlign","center center",1,"container","mat-typography"],["fxFlex","50%","fxFlex.xs","90%",1,"form"],["variant","dark-lg",3,"click"],["color","primary",1,"mat-display-1"],[3,"formGroup","ngSubmit"],[3,"form","fields","model","keyup"],["fxLayout","column","fxLayoutGap","2%","fxLayoutAlign","center"],["id","error_message","class","display mat-error",4,"ngIf"],["mat-flat-button","","type","submit","color","primary","id","submit"],["mat-flat-button","","color","accent","id","cancel",3,"click"],["fxLayout","row","fxLayoutAlign","space-between",1,"footer"],["mat-button","","id","register",3,"routerLink"],["mat-button","","id","forgot_password",3,"routerLink"],["id","error_message",1,"display","mat-error"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"div",1),ds(2,"app-logo",2),ks("click",function(e){return t.goHome(e)}),hs(),ds(3,"h1",3),Js(4,"Set your new Autism DRIVE Password"),hs(),ds(5,"form",4),ks("ngSubmit",function(){return t.submit()}),ds(6,"formly-form",5),ks("keyup",function(){return t.updateValidationState()}),ds(7,"div",6),os(8,I0,2,1,"div",7),ds(9,"button",8),Js(10,"Next"),hs(),ds(11,"button",9),ks("click",function(e){return t.goHome(e)}),Js(12,"Cancel"),hs(),hs(),hs(),hs(),ds(13,"div",10),ds(14,"a",11),Js(15,"Join Autism DRIVE"),hs(),ds(16,"a",12),Js(17,"Forgot password?"),hs(),hs(),hs(),hs()),2&e&&(Oa(5),us("formGroup",t.form),Oa(1),us("form",t.form)("fields",t.fields)("model",t.model),Oa(2),us("ngIf",t.errorMessage),Oa(6),us("routerLink",Su(7,L0)),Oa(2),us("routerLink",Su(8,F0)))},directives:[Xy,n_,eb,v_,DJ,Vk,Jb,qk,yj,wh,kP,wP,PX],styles:[".container[_ngcontent-%COMP%]{min-height:100vh}.form[_ngcontent-%COMP%]{border:2px solid #4e4e4e;padding:2%}"]}),R0);function V0(e,t){1&e&&(ds(0,"p"),Js(1," If you would like to join the research registry, please work with your legal guardian to create a profile for yourself. Your profile information will be used to match you with new study opportunities. "),hs())}function B0(e,t){if(1&e&&(ds(0,"div",11),ds(1,"h1"),Js(2,"Profile complete!"),hs(),ds(3,"p"),Js(4," Your account set up is complete! You may now sign up for webinars and search for resources. "),hs(),os(5,V0,2,0,"p",6),hs()),2&e){var n=As(2);Oa(5),us("ngIf",n.meta.self_participant&&n.meta.self_has_guardian)}}function H0(e,t){1&e&&(ds(0,"div",12),ds(1,"h1"),Js(2,"Join the Registry!"),hs(),ds(3,"p"),Js(4,"Your account set up is complete! You may now sign up for webinars, search for resources, and join our research registry."),hs(),ds(5,"p"),Js(6,"Joining the research registry allows you to get connected with new study opportunities! The joining process involves creating a profile about yourself. Your information will be used to match you with study opportunities."),hs(),hs())}function z0(e,t){1&e&&(ds(0,"div",13),ds(1,"h1"),Js(2,"Join the Registry as a Parent/Guardian!"),hs(),ds(3,"p"),Js(4,"Your account set up is complete! You may now sign up for webinars, search for resources, and join our research registry."),hs(),ds(5,"p"),Js(6,"Joining the research registry allows you and your child to get connected with new study opportunities! The joining process involves creating profiles for yourself and your child. Your profile information will be used to match you or your child with relevant study opportunities. "),hs(),hs())}function G0(e,t){1&e&&(ds(0,"div",14),ds(1,"h1"),Js(2,"Join the Registry as a Professional!"),hs(),ds(3,"p"),Js(4,"Your account set up is complete! You may now sign up for webinars, search for resources, and join our research registry."),hs(),ds(5,"p"),Js(6,"Joining the research registry allows you to get connected with exciting study opportunities! The joining process involves creating a profile about yourself. Your information will be used to match you with study opportunities. "),hs(),hs())}function j0(e,t){1&e&&(ds(0,"p"),Js(1," If you think your child would be interested in joining, please share information about Autism DRIVE with them so they can sign up directly. "),hs())}function U0(e,t){if(1&e&&(ds(0,"div"),ds(1,"h1"),Js(2,"Join the Registry!"),hs(),ds(3,"p"),Js(4,"Your account set up is complete! You may now sign up for webinars, search for resources, and join our research registry."),hs(),ds(5,"p"),Js(6,"Joining the research registry allows you to get connected with exciting study opportunities! The joining process involves creating a profile about yourself. Your information will be used to match you with study opportunities. "),hs(),os(7,j0,2,0,"p",6),hs()),2&e){var n=As(2);Oa(7),us("ngIf",n.meta.guardian&&!n.meta.guardian_has_dependent)}}function W0(e,t){if(1&e){var n=vs();ds(0,"button",15),ks("click",function(e){return rn(n),As(2).goFlow(e)}),Js(1," Join the Registry "),hs()}}function q0(e,t){if(1&e&&(ds(0,"div",1),os(1,B0,6,1,"div",2),os(2,H0,7,0,"div",3),os(3,z0,7,0,"div",4),os(4,G0,7,0,"div",5),os(5,U0,8,1,"div",6),ds(6,"div",7),os(7,W0,2,0,"button",8),ds(8,"button",9),Js(9," Watch Webinars "),hs(),ds(10,"button",10),Js(11," Search Resources "),hs(),hs(),hs()),2&e){var n=As();Oa(1),us("ngIf",null===n.meta.self_relationship),Oa(1),us("ngIf",n.meta.self_relationship===n.relationships.SELF_PARTICIPANT),Oa(1),us("ngIf",n.meta.self_relationship===n.relationships.SELF_GUARDIAN),Oa(1),us("ngIf",n.meta.self_relationship===n.relationships.SELF_PROFESSIONAL),Oa(1),us("ngIf",n.meta.self_relationship===n.relationships.SELF_INTERESTED),Oa(2),us("ngIf",n.meta.self_relationship)}}var Y0,Q0=((Y0=function(){function e(t,n,i){b(this,e),this.authenticationService=t,this.api=n,this.router=i,this.relationships=p$}return w(e,[{key:"ngOnInit",value:function(){}},{key:"goFlow",value:function(e){e.preventDefault(),this.router.navigate(["terms",this.meta.self_relationship])}}]),e}()).\u0275fac=function(e){return new(e||Y0)(ls(y$),ls(x$),ls(EX))},Y0.\u0275cmp=pt({type:Y0,selectors:[["app-profile-meta"]],inputs:{user:"user",meta:"meta"},decls:1,vars:1,consts:[["class","meta_info","fxLayout","row","fxLayout.sm","row","fxLayout.xs","column","fxLayoutGap","10px","fxLayoutAlign","center center","fxFlexOffset","5",4,"ngIf"],["fxLayout","row","fxLayout.sm","row","fxLayout.xs","column","fxLayoutGap","10px","fxLayoutAlign","center center","fxFlexOffset","5",1,"meta_info"],["id","null_relationship",4,"ngIf"],["id","self_participant",4,"ngIf"],["id","self_guardian",4,"ngIf"],["id","self_profressional",4,"ngIf"],[4,"ngIf"],["fxLayout","column","fxLayout.gt-sm","column","fxLayoutGap","10px","fxLayoutAlign","center center","fxFlexOffset","15"],["mat-flat-button","","id","join","type","button","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","type","button","color","primary","routerLink","/uva-education"],["mat-flat-button","","type","button","color","primary","routerLink","/search"],["id","null_relationship"],["id","self_participant"],["id","self_guardian"],["id","self_profressional"],["mat-flat-button","","id","join","type","button","color","accent",3,"click"]],template:function(e,t){1&e&&os(0,q0,12,6,"div",0),2&e&&us("ngIf",t.meta)},directives:[wh,Xy,n_,eb,I_,kP,TX],styles:["div.meta_info[_ngcontent-%COMP%]{margin:20px auto;text-align:left;max-width:800px}"]}),Y0),X0=function(e){return{"avatar-image-active":e}};function $0(e,t){if(1&e){var n=vs();ds(0,"button",18),ks("click",function(){rn(n);var e=t.$implicit;return As(2).setImage(e)}),fs(1,"img",6),hs()}if(2&e){var i=t.$implicit,r=As(2);us("ngClass",Au(2,X0,r.isSelectedImage(i))),Oa(1),Ds("src","/assets/avatars/",i,".svg",Pr)}}var K0=function(e){return{"background-color":e}},Z0=function(e){return{"color-swatch-active":e}};function J0(e,t){if(1&e){var n=vs();ds(0,"button",19),ks("click",function(){rn(n);var e=t.$implicit;return As(2).setColor(e)}),Js(1,"\xa0 "),hs()}if(2&e){var i=t.$implicit,r=As(2);us("ngStyle",Au(2,K0,i))("ngClass",Au(4,Z0,r.isSelectedColor(i)))}}function e1(e,t){if(1&e){var n=vs();ds(0,"div",1),ds(1,"div",2),ds(2,"h1",3),Js(3),hs(),ds(4,"div",4),ds(5,"div",5),fs(6,"img",6),hs(),hs(),ds(7,"p"),Js(8,"Pick an image"),hs(),ds(9,"div",7),ds(10,"button",8),ks("click",function(e){return rn(n),As().scroll(e,"avatar-images","left")}),ds(11,"mat-icon"),Js(12,"chevron_left"),hs(),hs(),ds(13,"div",9),os(14,$0,2,4,"button",10),hs(),ds(15,"button",11),ks("click",function(e){return rn(n),As().scroll(e,"avatar-images","right")}),ds(16,"mat-icon"),Js(17,"chevron_right"),hs(),hs(),hs(),ds(18,"p"),Js(19,"Pick a color"),hs(),ds(20,"div",12),ds(21,"button",8),ks("click",function(e){return rn(n),As().scroll(e,"color-swatches","left")}),ds(22,"mat-icon"),Js(23,"chevron_left"),hs(),hs(),ds(24,"div",13),os(25,J0,2,6,"button",14),hs(),ds(26,"button",11),ks("click",function(e){return rn(n),As().scroll(e,"color-swatches","right")}),ds(27,"mat-icon"),Js(28,"chevron_right"),hs(),hs(),hs(),hs(),ds(29,"div",15),ds(30,"button",16),ks("click",function(){return rn(n),As().onSubmit()}),Js(31,"Save"),hs(),ds(32,"button",17),ks("click",function(){return rn(n),As().onNoClick()}),Js(33,"Cancel"),hs(),hs(),hs()}if(2&e){var i=As();Oa(3),el(i.getPrompt()),Oa(2),us("ngStyle",Au(5,K0,i.selectedColor||i.data.participant.avatar_color)),Oa(1),Ds("src","/assets/avatars/",i.selectedIcon||i.data.participant.avatar_icon,".svg",Pr),Oa(8),us("ngForOf",i.avatarImages),Oa(11),us("ngForOf",i.avatarColors)}}var t1,n1=((t1=function(){function e(t,n,i){b(this,e),this.api=t,this.dialogRef=n,this.data=i,this.avatarImages=[],this.avatarColors=[];for(var r=0;r<104;r++)this.avatarImages[r]=(r+1).toLocaleString("en",{minimumIntegerDigits:3});for(var a=0;a<16;a++)this.avatarColors[a]="hsl(".concat(16*a,",100%,80%)");this.selectedIcon=this.data.participant.avatar_icon||"001",this.selectedColor=this.data.participant.avatar_color||"hsl(0, 100%, 80%)",this.dialogRef.afterOpened().subscribe(function(){var e=document.getElementsByClassName("avatar-image-active")[0],t=document.getElementsByClassName("color-swatch-active")[0];e&&e.parentElement.scrollTo({left:e.offsetLeft-1.25*e.clientWidth-e.parentElement.clientWidth}),t&&t.parentElement.scrollTo({left:t.offsetLeft-3*t.clientWidth-t.parentElement.clientWidth})})}return w(e,[{key:"ngOnInit",value:function(){}},{key:"onNoClick",value:function(){this.dialogRef.close()}},{key:"getPrompt",value:function(){return"Choose ".concat(this.data.participant.relationship!==p$.DEPENDENT?"your":"".concat(this.data.participant.name||"your child","'s")," avatar")}},{key:"setColor",value:function(e){this.selectedColor=e}},{key:"setImage",value:function(e){this.selectedIcon=e}},{key:"isSelectedImage",value:function(e){return this.selectedIcon?e===this.selectedIcon:e===this.data.participant.avatar_icon}},{key:"isSelectedColor",value:function(e){return this.selectedColor?e===this.selectedColor:e===this.data.participant.avatar_color}},{key:"scroll",value:function(e,t,n){var i=document.getElementsByClassName(t)[0],r=document.getElementsByClassName(t+"-row")[0];i.scrollBy(r.clientWidth*("left"===n?-1:1),0)}},{key:"onSubmit",value:function(){var e=this;this.data.participant.avatar_color=this.selectedColor||this.data.participant.avatar_color,this.data.participant.avatar_icon=this.selectedIcon||this.data.participant.avatar_icon,this.api.updateParticipant(this.data.participant).subscribe(function(){return e.dialogRef.close()})}}]),e}()).\u0275fac=function(e){return new(e||t1)(ls(x$),ls(ID),ls(zD))},t1.\u0275cmp=pt({type:t1,selectors:[["app-avatar-dialog"]],decls:1,vars:1,consts:[["class","mat-typography",4,"ngIf"],[1,"mat-typography"],["mat-dialog-content",""],["mat-dialog-title",""],["fxLayout","column","fxLayoutAlign","center center"],[1,"avatar",3,"ngStyle"],[3,"src"],[1,"avatar-images-row"],["mat-button","",1,"scroll-left",3,"click"],[1,"avatar-images"],["class","avatar-image",3,"ngClass","click",4,"ngFor","ngForOf"],["mat-button","",1,"scroll-right",3,"click"],[1,"color-swatches-row"],[1,"color-swatches"],["class","color-swatch",3,"ngStyle","ngClass","click",4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-flat-button","","color","primary","id","save_avatar_changes",3,"click"],["mat-button","","id","cancel_avatar_changes",3,"click"],[1,"avatar-image",3,"ngClass","click"],[1,"color-swatch",3,"ngStyle","ngClass","click"]],template:function(e,t){1&e&&os(0,e1,34,7,"div",0),2&e&&us("ngIf",t.data.participant)},directives:[wh,$D,XD,Xy,eb,Rh,Sy,kP,BR,bh,KD,yh,ly],styles:[".avatar[_ngcontent-%COMP%]{border-radius:50%}.avatar[_ngcontent-%COMP%], .avatar[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:192px;width:192px}.avatar-images-row[_ngcontent-%COMP%], .color-swatches-row[_ngcontent-%COMP%]{display:grid;grid-gap:0}@media (min-width:576px){.avatar-images-row[_ngcontent-%COMP%], .color-swatches-row[_ngcontent-%COMP%]{grid-template-columns:1fr 4fr 1fr}}@media (min-width:768px){.avatar-images-row[_ngcontent-%COMP%], .color-swatches-row[_ngcontent-%COMP%]{grid-template-columns:1fr 6fr 1fr}}@media (min-width:992px){.avatar-images-row[_ngcontent-%COMP%], .color-swatches-row[_ngcontent-%COMP%]{grid-template-columns:1fr 8fr 1fr}}@media (min-width:1200px){.avatar-images-row[_ngcontent-%COMP%], .color-swatches-row[_ngcontent-%COMP%]{grid-template-columns:1fr 10fr 1fr}}.avatar-images-row[_ngcontent-%COMP%] .scroll-left[_ngcontent-%COMP%], .avatar-images-row[_ngcontent-%COMP%] .scroll-right[_ngcontent-%COMP%], .color-swatches-row[_ngcontent-%COMP%] .scroll-left[_ngcontent-%COMP%], .color-swatches-row[_ngcontent-%COMP%] .scroll-right[_ngcontent-%COMP%]{height:100%}.avatar-images-row[_ngcontent-%COMP%] .scroll-left[_ngcontent-%COMP%], .avatar-images-row[_ngcontent-%COMP%] .scroll-left[_ngcontent-%COMP%]:active, .avatar-images-row[_ngcontent-%COMP%] .scroll-left[_ngcontent-%COMP%]:focus, .avatar-images-row[_ngcontent-%COMP%] .scroll-left[_ngcontent-%COMP%]:hover, .color-swatches-row[_ngcontent-%COMP%] .scroll-left[_ngcontent-%COMP%], .color-swatches-row[_ngcontent-%COMP%] .scroll-left[_ngcontent-%COMP%]:active, .color-swatches-row[_ngcontent-%COMP%] .scroll-left[_ngcontent-%COMP%]:focus, .color-swatches-row[_ngcontent-%COMP%] .scroll-left[_ngcontent-%COMP%]:hover{background-image:linear-gradient(90deg,#fff,#fff,hsla(0,0%,100%,0))}.avatar-images-row[_ngcontent-%COMP%] .scroll-right[_ngcontent-%COMP%], .avatar-images-row[_ngcontent-%COMP%] .scroll-right[_ngcontent-%COMP%]:active, .avatar-images-row[_ngcontent-%COMP%] .scroll-right[_ngcontent-%COMP%]:focus, .avatar-images-row[_ngcontent-%COMP%] .scroll-right[_ngcontent-%COMP%]:hover, .color-swatches-row[_ngcontent-%COMP%] .scroll-right[_ngcontent-%COMP%], .color-swatches-row[_ngcontent-%COMP%] .scroll-right[_ngcontent-%COMP%]:active, .color-swatches-row[_ngcontent-%COMP%] .scroll-right[_ngcontent-%COMP%]:focus, .color-swatches-row[_ngcontent-%COMP%] .scroll-right[_ngcontent-%COMP%]:hover{background-image:linear-gradient(90deg,hsla(0,0%,100%,0),#fff,#fff)}.avatar-images[_ngcontent-%COMP%], .color-swatches[_ngcontent-%COMP%]{overflow-x:scroll;white-space:nowrap;scroll-behavior:smooth}.avatar-images[_ngcontent-%COMP%]{height:112px}.color-swatches[_ngcontent-%COMP%]{height:80px}.avatar-image[_ngcontent-%COMP%], .color-swatch[_ngcontent-%COMP%]{border:8px solid #fff;display:inline-block;background:rgba(0,0,0,0);outline:none;margin:0 0 0 10px;padding:0;border-radius:50%}.color-swatch[_ngcontent-%COMP%]{width:64px;height:64px}.avatar-image[_ngcontent-%COMP%]{width:112px;height:112px;background:#eee}.avatar-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:96px;height:96px}.avatar-image-active[_ngcontent-%COMP%], .color-swatch-active[_ngcontent-%COMP%]{border-color:#999}"]}),t1);function i1(e,t){if(1&e&&(ds(0,"div",7),fs(1,"mat-progress-bar",8),hs()),2&e){var n=As();Oa(1),us("mode","determinate")("value",100*n.participant.percent_complete)}}function r1(e,t){1&e&&(ds(0,"div",7),Js(1," Profile Complete "),hs())}var a1,o1=function(e){return{"background-color":e}},s1=((a1=function(){function e(t,n,i){b(this,e),this.api=t,this.router=n,this.dialog=i}return w(e,[{key:"ngOnInit",value:function(){}},{key:"goEditEnroll",value:function(e){this.participant.relationship===p$.SELF_PARTICIPANT?(e.preventDefault(),this.router.navigate(["flow","self_intake",this.participant.id])):this.participant.relationship===p$.DEPENDENT?(e.preventDefault(),this.router.navigate(["flow","dependent_intake",this.participant.id])):this.participant.relationship===p$.SELF_PROFESSIONAL?(e.preventDefault(),this.router.navigate(["flow","professional_intake",this.participant.id])):this.participant.relationship===p$.SELF_INTERESTED?(e.preventDefault(),this.router.navigate(["flow","interested_intake",this.participant.id])):(e.preventDefault(),this.router.navigate(["flow","guardian_intake",this.participant.id]))}},{key:"goTerms",value:function(e){e.preventDefault(),this.router.navigate(["terms",this.participant.relationship,{preview:!0}])}},{key:"chooseAvatar",value:function(e,t){this.dialog.open(n1,{maxWidth:"100vw",maxHeight:"100vh",data:{participant:t}}).afterClosed().subscribe(function(e){console.log("The dialog was closed")})}}]),e}()).\u0275fac=function(e){return new(e||a1)(ls(x$),ls(EX),ls(qD))},a1.\u0275cmp=pt({type:a1,selectors:[["app-participant-profile"]],inputs:{participant:"participant",user:"user"},decls:19,vars:18,consts:[[1,"mat-typography"],["mat-card-avatar","",3,"src","ngStyle","id","click"],[1,"change_text",3,"click"],["class","mat-subheading-2",4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","start center","fxLayoutGap","10px"],["mat-flat-button","","color","accent",3,"id","click"],["mat-stroked-button","",3,"id","click"],[1,"mat-subheading-2"],[3,"mode","value"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"mat-card"),ds(2,"mat-card-header"),ds(3,"img",1),ks("click",function(e){return t.chooseAvatar(e,t.participant)}),hs(),ds(4,"div",2),ks("click",function(e){return t.chooseAvatar(e,t.participant)}),Js(5,"change icon"),hs(),ds(6,"mat-card-title"),Js(7),hs(),ds(8,"mat-card-subtitle"),Js(9),Iu(10,"titlecase"),os(11,i1,2,2,"div",3),os(12,r1,2,0,"div",3),ds(13,"div",4),ds(14,"button",5),ks("click",function(e){return t.goEditEnroll(e)}),Js(15),hs(),ds(16,"button",6),ks("click",function(e){return t.goTerms(e)}),Js(17,"Terms and Conditions"),hs(),hs(),hs(),hs(),fs(18,"mat-card-content"),hs(),hs()),2&e&&(Oa(1),Hs("mat-elevation-z0",!0),Oa(2),Ds("src","/assets/avatars/",t.participant.avatar_icon||"001",".svg",Pr),Ds("id","avatar_",t.participant.id,""),us("ngStyle",Au(16,o1,t.participant.avatar_color||"#CCC")),Oa(4),tl(" ",t.participant.name," "),Oa(2),tl(" ",t.user.isSelf(t.participant)?"You":Ru(10,14,t.participant.relationship)," "),Oa(2),us("ngIf",t.participant.percent_complete<1),Oa(1),us("ngIf",t.participant.percent_complete>=1),Oa(2),Ms("id","edit_enroll_",t.participant.relationship,"_",t.participant.id,""),Oa(1),tl("Edit ","self_guardian"===t.participant.relationship?"guardian":"enrollment"," info"),Oa(1),Ms("id","view_terms_",t.participant.relationship,"_",t.participant.id,""))},directives:[jP,UP,GP,Rh,Sy,HP,zP,wh,Xy,eb,n_,kP,BP,QF],pipes:[Qh],styles:["mat-card{width:100%}mat-card-header[_ngcontent-%COMP%]{position:relative}[mat-card-avatar][_ngcontent-%COMP%]{width:100px;height:100px;cursor:pointer}[mat-card-avatar][_ngcontent-%COMP%]:hover{opacity:.5}.change_text[_ngcontent-%COMP%]{position:absolute;top:105px;left:7px;cursor:pointer}.change_text[_ngcontent-%COMP%]:hover{opacity:.5} .mat-card-header-text{width:100%} mat-progress-bar{height:16px} mat-progress-bar .mat-progress-bar-buffer{background-color:#dadada} mat-progress-bar .mat-progress-bar-background, mat-progress-bar .mat-progress-bar-background pattern{fill:#dadada} mat-card-subtitle button{margin-top:20px} mat-card-subtitle .mat-subheading-2{color:#000}button[_ngcontent-%COMP%]{width:100%}@media (min-width:768px){button[_ngcontent-%COMP%]{width:50%}}"]}),a1),l1=function(e){return["/resource",e]};function u1(e,t){if(1&e&&(ds(0,"mat-list-item",2),ds(1,"a",3),Js(2),hs(),ds(3,"p",4),Js(4),hs(),hs()),2&e){var n=t.$implicit;Oa(1),us("routerLink",Au(3,l1,n.id)),Oa(1),el(n.title),Oa(2),el(n.description)}}var c1,d1=((c1=function(){function e(){b(this,e)}return w(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||c1)},c1.\u0275cmp=pt({type:c1,selectors:[["app-favorite-resources"]],inputs:{favoriteResources:"favoriteResources"},decls:5,vars:1,consts:[["class","pad-2",4,"ngFor","ngForOf"],["mat-flat-button","","type","button","color","primary","routerLink","/search"],[1,"pad-2"],["mat-line","",3,"routerLink"],["mat-line",""]],template:function(e,t){1&e&&(os(0,u1,5,5,"mat-list-item",0),ds(1,"p"),Js(2,"To add or remove resources, click on the star button found on the resource pages or on search results"),hs(),ds(3,"button",1),Js(4,"Search Resources"),hs()),2&e&&us("ngForOf",t.favoriteResources)},directives:[bh,kP,TX,nL,PX,bA],styles:[""]}),c1);function h1(e,t){if(1&e){var n=vs();ds(0,"mat-tree-node",9),ds(1,"li",10),fs(2,"button",11),ds(3,"mat-checkbox",12),ks("change",function(){rn(n);var e=t.$implicit;return As().toggleNode(e)}),Js(4),hs(),hs(),hs()}if(2&e){var i=t.$implicit,r=As();Oa(3),us("checked",r.checklistSelection.isSelected(i)),Oa(1),el(i.name)}}function f1(e,t){if(1&e&&(ds(0,"span",18),Js(1),hs()),2&e){var n=As().$implicit;Ps("matBadge",As().numSelectedDescendants(n)),Oa(1),el(n.name)}}function p1(e,t){if(1&e&&(ds(0,"span"),Js(1),hs()),2&e){var n=As().$implicit;Oa(1),el(n.name)}}function m1(e,t){if(1&e){var n=vs();ds(0,"mat-nested-tree-node"),ds(1,"li"),ds(2,"div",10),ds(3,"button",13),ds(4,"mat-icon",14),Js(5),hs(),hs(),ds(6,"mat-checkbox",12),ks("change",function(){rn(n);var e=t.$implicit;return As().toggleNode(e)}),os(7,f1,2,2,"span",15),os(8,p1,2,1,"span",16),hs(),hs(),ds(9,"ul"),gs(10,17),hs(),hs(),hs()}if(2&e){var i=t.$implicit,r=As();Oa(3),is("aria-label","toggle "+i.name),Oa(2),tl(" ",r.treeControl.isExpanded(i)?"expand_more":"chevron_right"," "),Oa(1),us("checked",r.checklistSelection.isSelected(i)),Oa(1),us("ngIf",r.numSelectedDescendants(i)),Oa(1),us("ngIf",!r.numSelectedDescendants(i)),Oa(1),Hs("tree-select-invisible",!r.treeControl.isExpanded(i))}}function g1(e,t){if(1&e&&(ds(0,"mat-option",19),Js(1),hs()),2&e){var n=t.$implicit;us("value",n.value),Oa(1),el(n.label)}}function v1(e,t){if(1&e&&(ds(0,"mat-option",19),Js(1),hs()),2&e){var n=t.$implicit;us("value",n.value),Oa(1),el(n.label)}}function y1(e,t){if(1&e&&(ds(0,"mat-option",19),Js(1),hs()),2&e){var n=t.$implicit;us("value",n.value),Oa(1),el(n.label)}}var _1,b1=((_1=function(){function e(t,n,i){b(this,e),this.api=t,this.dialogRef=n,this.data=i,this.ageLabels=cK.labels,this.languageLabels=dK.labels,this.covid19Labels=hK.labels,this.ageOptions=this.getOptions(this.ageLabels),this.languageOptions=this.getOptions(this.languageLabels),this.covid19Options=this.getOptions(this.covid19Labels),this.nodes={},this.checklistSelection=new xO(!0),this.hasNestedChild=function(e,t){return t.children&&t.children.length>0},this.treeControl=new Dz(function(e){return fp(e.children)}),this.dataSource=new pG}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.api.getCategoryTree().subscribe(function(t){e.dataSource.data=t,e.updateTopicSelection()})}},{key:"getOptions",value:function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({value:n,label:e[n]});return t}},{key:"updateTopicSelection",value:function(){var e=this;this.data.topics&&this.data.topics.forEach(function(t){var n=e.findNode(t.id);n&&e.toggleNode(n),e._updateModelCategories()})}},{key:"findNode",value:function(e){var t=this,n=[];return this.dataSource.data.forEach(function(e){t.treeControl.getDescendants(e).forEach(function(e){return n.push(e)}),n.push(e)}),n.find(function(t){return t.id===e})}},{key:"toggleNode",value:function(e){this.checklistSelection.toggle(e),this._updateModelCategories()}},{key:"numSelectedDescendants",value:function(e){var t=this;return this.treeControl.getDescendants(e).filter(function(e){return t.checklistSelection.isSelected(e)}).length}},{key:"_updateModelCategories",value:function(){var e=this;this.data.topics=[],this.checklistSelection.selected.forEach(function(t){return e.data.topics.push(t)})}},{key:"onNoClick",value:function(){this.dialogRef.close()}}]),e}()).\u0275fac=function(e){return new(e||_1)(ls(x$),ls(ID),ls(zD))},_1.\u0275cmp=pt({type:_1,selectors:[["app-favorite-topics-dialog"]],decls:29,vars:10,consts:[["mat-dialog-title",""],[1,"tree-select",3,"dataSource","treeControl"],["matTreeNodeToggle","",4,"matTreeNodeDef"],[4,"matTreeNodeDef","matTreeNodeDefWhen"],["multiple","",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","",3,"click"],["mat-flat-button","","color","primary","cdkFocusInitial","",3,"mat-dialog-close"],["matTreeNodeToggle",""],[1,"mat-tree-node"],["disabled","","mat-icon-button",""],[3,"checked","change"],["mat-icon-button","","matTreeNodeToggle","",1,"toggle-node-button"],[1,"mat-icon-rtl-mirror"],["matBadgeColor","primary","matBadgeOverlap","false",3,"matBadge",4,"ngIf"],[4,"ngIf"],["matTreeNodeOutlet",""],["matBadgeColor","primary","matBadgeOverlap","false",3,"matBadge"],[3,"value"]],template:function(e,t){1&e&&(ds(0,"h1",0),Js(1,"Manage My Topics"),hs(),ds(2,"p"),Js(3,"Select topics to add them to your favorites. Deselect topics to remove them from your favorites. Click Save to keep your changes or Cancel to discard all changes."),hs(),ds(4,"mat-label"),Js(5,"Topics:"),hs(),ds(6,"mat-tree",1),os(7,h1,5,2,"mat-tree-node",2),os(8,m1,11,7,"mat-nested-tree-node",3),hs(),ds(9,"mat-form-field"),ds(10,"mat-label"),Js(11,"Ages:"),hs(),ds(12,"mat-select",4),ks("valueChange",function(e){return t.data.ages=e}),os(13,g1,2,2,"mat-option",5),hs(),hs(),ds(14,"mat-form-field"),ds(15,"mat-label"),Js(16,"Languages:"),hs(),ds(17,"mat-select",4),ks("valueChange",function(e){return t.data.languages=e}),os(18,v1,2,2,"mat-option",5),hs(),hs(),ds(19,"mat-form-field"),ds(20,"mat-label"),Js(21,"Covid19 Topics:"),hs(),ds(22,"mat-select",4),ks("valueChange",function(e){return t.data.covid19_categories=e}),os(23,y1,2,2,"mat-option",5),hs(),hs(),ds(24,"div",6),ds(25,"button",7),ks("click",function(){return t.onNoClick()}),Js(26,"Cancel"),hs(),ds(27,"button",8),Js(28,"Save"),hs(),hs()),2&e&&(Oa(6),us("dataSource",t.dataSource)("treeControl",t.treeControl),Oa(2),us("matTreeNodeDefWhen",t.hasNestedChild),Oa(4),us("value",t.data.ages),Oa(1),us("ngForOf",t.ageOptions),Oa(4),us("value",t.data.languages),Oa(1),us("ngForOf",t.languageOptions),Oa(4),us("value",t.data.covid19_categories),Oa(1),us("ngForOf",t.covid19Options),Oa(4),us("mat-dialog-close",t.data))},directives:[XD,hT,uG,iG,wT,KL,bh,KD,kP,QD,nG,dG,lD,aG,BR,wh,lG,pP,JA],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}.tree-select-invisible[_ngcontent-%COMP%]{display:none}.tree-select[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .tree-select[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;margin-left:1rem;list-style-type:none}.tree-select[_ngcontent-%COMP%] li[_ngcontent-%COMP%] button.toggle-node-button[_ngcontent-%COMP%], .tree-select[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] button.toggle-node-button[_ngcontent-%COMP%]{outline:none!important}"]}),_1),k1=function(){return["/search"]},w1=function(e){return{category:e}};function C1(e,t){if(1&e&&(ds(0,"mat-chip",6),Js(1),hs()),2&e){var n=t.$implicit;us("routerLink",Su(3,k1))("queryParams",Au(4,w1,n.id)),Oa(1),el(n.name)}}function x1(e,t){if(1&e&&(ds(0,"div"),ds(1,"mat-card-title"),Js(2,"Favorite Topics"),hs(),ds(3,"mat-chip-list"),os(4,C1,2,6,"mat-chip",5),hs(),hs()),2&e){var n=As();Oa(4),us("ngForOf",n.favoriteTopics)}}var S1=function(e){return{ages:e}};function A1(e,t){if(1&e&&(ds(0,"mat-chip",6),Js(1),hs()),2&e){var n=t.$implicit,i=As(2);us("routerLink",Su(3,k1))("queryParams",Au(4,S1,n)),Oa(1),el(i.ageLabels[n])}}function O1(e,t){if(1&e&&(ds(0,"div",7),ds(1,"mat-card-title"),Js(2,"Favorite Age Ranges"),hs(),ds(3,"mat-chip-list"),os(4,A1,2,6,"mat-chip",5),hs(),hs()),2&e){var n=As();Oa(4),us("ngForOf",n.favoriteAges)}}var E1=function(e){return{languages:e}};function T1(e,t){if(1&e&&(ds(0,"mat-chip",6),Js(1),hs()),2&e){var n=t.$implicit,i=As(2);us("routerLink",Su(3,k1))("queryParams",Au(4,E1,n)),Oa(1),el(i.languageLabels[n])}}function P1(e,t){if(1&e&&(ds(0,"div",8),ds(1,"mat-card-title"),Js(2,"Favorite Languages"),hs(),ds(3,"mat-chip-list"),os(4,T1,2,6,"mat-chip",5),hs(),hs()),2&e){var n=As();Oa(4),us("ngForOf",n.favoriteLanguages)}}var D1=function(e){return["/covid19-resources/",e]};function M1(e,t){if(1&e&&(ds(0,"mat-chip",11),Js(1),hs()),2&e){var n=t.$implicit,i=As(2);us("routerLink",Au(4,D1,Au(2,w1,n))),Oa(1),el(i.covid19Labels[n].split(": ")[0])}}function I1(e,t){if(1&e&&(ds(0,"div",9),ds(1,"mat-card-title"),Js(2,"COVID-19 Topics"),hs(),ds(3,"mat-chip-list"),os(4,M1,2,6,"mat-chip",10),hs(),hs()),2&e){var n=As();Oa(4),us("ngForOf",n.favoriteCovid19Topics)}}var R1,L1=((R1=function(){function e(t,n){b(this,e),this.api=t,this.dialog=n,this.favoriteTopics=[],this.favoriteAges=[],this.favoriteLanguages=[],this.favoriteCovid19Topics=[],this.ageLabels=cK.labels,this.languageLabels=dK.labels,this.covid19Labels=hK.labels}return w(e,[{key:"ngOnInit",value:function(){this.loadFavorites()}},{key:"loadFavorites",value:function(){var e=this;this.api.getFavoritesByUserAndType(this.currentUser,"category").subscribe(function(t){e.favoriteTopics=t.map(function(e){return e.category})}),this.api.getFavoritesByUserAndType(this.currentUser,"age_range").subscribe(function(t){e.favoriteAges=t.map(function(e){return e.age_range})}),this.api.getFavoritesByUserAndType(this.currentUser,"language").subscribe(function(t){e.favoriteLanguages=t.map(function(e){return e.language})}),this.api.getFavoritesByUserAndType(this.currentUser,"covid19_category").subscribe(function(t){e.favoriteCovid19Topics=t.map(function(e){return e.covid19_category})})}},{key:"openFavoriteTopicsDialog",value:function(){var e=this;this.dialog.open(b1,{maxWidth:"100vw",maxHeight:"100vh",data:{user:this.currentUser,topics:this.favoriteTopics,ages:this.favoriteAges,languages:this.favoriteLanguages,covid19_categories:this.favoriteCovid19Topics}}).afterClosed().subscribe(function(t){if(t){var n=[];t.topics.forEach(function(t){n.push(new yK({user_id:e.currentUser.id,type:"category",category_id:t.id}))}),t.ages.forEach(function(t){n.push(new yK({user_id:e.currentUser.id,type:"age_range",age_range:t}))}),t.languages.forEach(function(t){n.push(new yK({user_id:e.currentUser.id,type:"language",language:t}))}),t.covid19_categories.forEach(function(t){n.push(new yK({user_id:e.currentUser.id,type:"covid19_category",covid19_category:t}))}),e.api.addUserFavorites(n).subscribe(),e.favoriteTopics=t.topics,e.favoriteAges=t.ages,e.favoriteLanguages=t.languages,e.favoriteCovid19Topics=t.covid19_categories}})}}]),e}()).\u0275fac=function(e){return new(e||R1)(ls(x$),ls(qD))},R1.\u0275cmp=pt({type:R1,selectors:[["app-favorite-topics"]],inputs:{currentUser:"currentUser"},decls:10,vars:4,consts:[[4,"ngIf"],["id","ages","class","margin-top",4,"ngIf"],["id","languages","class","margin-top",4,"ngIf"],["id","covid19_categories","class","margin-top",4,"ngIf"],["mat-flat-button","",3,"click"],["color","primary","selected","",3,"routerLink","queryParams",4,"ngFor","ngForOf"],["color","primary","selected","",3,"routerLink","queryParams"],["id","ages",1,"margin-top"],["id","languages",1,"margin-top"],["id","covid19_categories",1,"margin-top"],["color","accent","selected","",3,"routerLink",4,"ngFor","ngForOf"],["color","accent","selected","",3,"routerLink"]],template:function(e,t){1&e&&(os(0,x1,5,1,"div",0),os(1,O1,5,1,"div",1),os(2,P1,5,1,"div",2),os(3,I1,5,1,"div",3),ds(4,"p"),Js(5,"To add or remove topics, please click Manage My Topics below"),hs(),ds(6,"button",4),ks("click",function(){return t.openFavoriteTopicsDialog()}),ds(7,"mat-icon"),Js(8,"grade"),hs(),Js(9," Manage My Topics"),hs()),2&e&&(us("ngIf",t.favoriteTopics.length>0),Oa(1),us("ngIf",t.favoriteAges&&t.favoriteAges.length>0),Oa(1),us("ngIf",t.favoriteLanguages&&t.favoriteLanguages.length>0),Oa(1),us("ngIf",t.favoriteCovid19Topics&&t.favoriteCovid19Topics.length>0))},directives:[wh,kP,BR,HP,kD,bh,gD,TX],styles:["p[_ngcontent-%COMP%]{margin:1em}"]}),R1);function F1(e,t){1&e&&(ds(0,"div"),ds(1,"h1"),Js(2,"Please Log in or Create an Account"),hs(),ds(3,"p"),Js(4,"You are not currently logged in."),hs(),hs())}function N1(e,t){if(1&e){var n=vs();ds(0,"div"),ds(1,"div",3),ds(2,"div",4),ds(3,"h2"),Js(4,"Welcome!"),hs(),ds(5,"p"),Js(6,"Thank you for creating an account on Autism DRIVE. We would like to learn a little more about you, so we can connect you with the best possible resources. To create your profile, please select all the items below that describe you. If appropriate, you will have additional opportunities to create profiles for your children or dependents after completing your own profile. Once we have this information we can connect you to current and future research studies, and together, find ways to improve the lives of people living with autism."),hs(),ds(7,"form",5),fs(8,"formly-form",6),ds(9,"button",7),ks("click",function(){return rn(n),As(2).createMeta()}),Js(10,"Submit"),hs(),hs(),hs(),hs(),hs()}if(2&e){var i=As(2);Oa(7),us("formGroup",i.form),Oa(1),us("model",i.model)("fields",i.fields)("options",i.options)("form",i.form)}}function V1(e,t){if(1&e&&(ds(0,"div"),fs(1,"app-profile-meta",8),hs()),2&e){var n=As(2);Oa(1),us("user",n.user)("meta",n.userMeta)}}function B1(e,t){1&e&&(ds(0,"p"),Js(1," You indicated that you are a professional working in Autism research and treatment. Once your profile is complete we will be able to notify you about important updates. "),hs())}function H1(e,t){1&e&&(ds(0,"p"),Js(1," Once your profile is complete we will be able to notify you about important updates. "),hs())}function z1(e,t){1&e&&(ds(0,"p"),Js(1," Once your profile is complete, you\u2019ll be able to enroll in any relevant currently-running studies. "),hs())}function G1(e,t){1&e&&(ds(0,"p"),Js(1," Once your complete your profile and the profiles of your dependents, you\u2019ll be able to enroll them in any relevant currently-running studies. "),hs())}function j1(e,t){1&e&&fs(0,"app-loading",11)}function U1(e,t){if(1&e&&fs(0,"app-participant-profile",14),2&e){var n=t.$implicit,i=As(4);Ds("id","dependent_participant_",n.id,""),us("participant",n)("user",i.user)}}function W1(e,t){1&e&&(ds(0,"p"),Js(1,"In order to add a dependent you must complete your own profile first"),hs())}function q1(e,t){if(1&e){var n=vs();ds(0,"button",26),ks("click",function(e){return rn(n),As(5).enrollDependent(e)}),Js(1,"Create another profile "),hs()}2&e&&us("disabled",As(5).selfPercentComplete<100)}function Y1(e,t){if(1&e&&(ds(0,"div",24),os(1,W1,2,0,"p",2),os(2,q1,2,1,"button",25),hs()),2&e){var n=As(4);Oa(1),us("ngIf",n.selfPercentComplete<100),Oa(1),us("ngIf",n.user.getSelf())}}function Q1(e,t){if(1&e&&(ds(0,"mat-list-item"),ds(1,"a",29),Js(2),hs(),ds(3,"p",30),Js(4),hs(),hs()),2&e){var n=t.$implicit;Oa(1),Ds("href","/#/study/",n.study.id,"",Pr),Oa(1),el(n.study.short_title),Oa(2),el(n.study.short_description)}}function X1(e,t){if(1&e&&(ds(0,"div",27),ds(1,"mat-card-subtitle"),Js(2,"Studies about which you have inquired"),hs(),os(3,Q1,5,3,"mat-list-item",28),hs()),2&e){var n=As(4);Oa(3),us("ngForOf",n.studyInquiries)}}function $1(e,t){if(1&e&&(ds(0,"mat-list-item"),ds(1,"a",29),Js(2),hs(),ds(3,"p",30),Js(4),hs(),hs()),2&e){var n=t.$implicit;Oa(1),Ds("href","/#/study/",n.id,"",Pr),Oa(1),el(n.short_title),Oa(2),el(n.short_description)}}function K1(e,t){if(1&e&&(ds(0,"div",31),ds(1,"mat-card-subtitle"),Js(2,"All currently-enrolling studies"),hs(),os(3,$1,5,3,"mat-list-item",28),hs()),2&e){var n=As(4);Oa(3),us("ngForOf",n.currentStudies)}}function Z1(e,t){if(1&e&&(ds(0,"div",12),ds(1,"div",12),ds(2,"div",13),fs(3,"app-participant-profile",14),os(4,U1,1,3,"app-participant-profile",15),hs(),os(5,Y1,3,2,"div",16),hs(),ds(6,"div"),ds(7,"mat-card"),ds(8,"mat-tab-group"),ds(9,"mat-tab",17),ds(10,"mat-card-title"),Js(11,"Research Studies"),hs(),ds(12,"mat-card-content"),ds(13,"mat-list"),os(14,X1,4,1,"div",18),os(15,K1,4,1,"div",19),hs(),hs(),hs(),ds(16,"mat-tab",20),fs(17,"app-favorite-resources",21),hs(),ds(18,"mat-tab",22),fs(19,"app-favorite-topics",23),hs(),hs(),hs(),hs(),hs()),2&e){var n=As(3);Oa(3),Ds("id","self_participant_",n.self.id,""),us("participant",n.self)("user",n.user),Oa(1),us("ngForOf",n.dependents),Oa(1),us("ngIf",n.user.getSelf().relationship!==n.relationships.SELF_INTERESTED),Oa(9),us("ngIf",n.studyInquiries&&n.studyInquiries.length>0),Oa(1),us("ngIf",n.currentStudies&&n.currentStudies.length>0),Oa(2),us("favoriteResources",n.favoriteResources),Oa(2),us("currentUser",n.user)}}function J1(e,t){if(1&e&&(ds(0,"div"),ds(1,"h1"),Js(2,"Manage Your Profiles"),hs(),ds(3,"div"),os(4,B1,2,0,"p",2),os(5,H1,2,0,"p",2),os(6,z1,2,0,"p",2),os(7,G1,2,0,"p",2),os(8,j1,1,0,"app-loading",9),os(9,Z1,20,9,"div",10),hs(),hs()),2&e){var n=As(2);Oa(4),us("ngIf",n.user.getSelf().relationship===n.relationships.SELF_PROFESSIONAL),Oa(1),us("ngIf",n.user.getSelf().relationship===n.relationships.SELF_INTERESTED),Oa(1),us("ngIf",n.user.getSelf().relationship===n.relationships.SELF_PARTICIPANT),Oa(1),us("ngIf",n.user.getSelf().relationship===n.relationships.SELF_GUARDIAN),Oa(1),us("ngIf",n.loading),Oa(1),us("ngIf",!n.loading)}}function e2(e,t){if(1&e&&(ds(0,"div",1),os(1,F1,5,0,"div",2),os(2,N1,11,5,"div",2),os(3,V1,2,2,"div",2),os(4,J1,10,6,"div",2),hs()),2&e){var n=As();Oa(1),us("ngIf",n.getState()===n.possibleStates.NEEDS_USER),Oa(1),us("ngIf",n.getState()===n.possibleStates.NEEDS_META),Oa(1),us("ngIf",n.getState()===n.possibleStates.NEEDS_PARTICIPANT),Oa(1),us("ngIf",n.getState()===n.possibleStates.HAS_PARTICIPANT)}}var t2,n2=function(e){return e.NEEDS_USER="NEEDS_USER",e.NEEDS_META="NEEDS_META",e.NEEDS_PARTICIPANT="NEEDS_PARTICIPANT",e.HAS_PARTICIPANT="PARTICIPANT",e}({}),i2=((t2=function(){function e(t,n,i,r){var a=this;b(this,e),this.authenticationService=t,this.api=n,this.router=i,this.route=r,this.possibleStates=n2,this.forceMetaFormState=!1,this.relationships=p$,this.loading=!0,this.form=new Pk({}),this.model=new g$({}),this.options={},this.fields=[{validators:{fieldMatch:{expression:function(e){var t=e.value,n=t.self_participant,i=t.guardian,r=t.professional,a=t.interested;return!!(n||i||r||a)},message:"Please select at least one option."}},wrappers:["group-validation"],fieldGroup:[{key:"self_participant",type:"checkbox",templateOptions:{label:"I am autistic/I have autism",indeterminate:!1,class:"self_participant"}},{key:"self_has_guardian",type:"radio",templateOptions:{label:"Do you have a legal guardian?",options:[{value:!0,label:"Yes",id:"1"},{value:!1,label:"No",id:"2"}]},expressionProperties:{"templateOptions.required":"model.self_participant"},hideExpression:"!model.self_participant"},{key:"guardian",type:"checkbox",className:"guardian",templateOptions:{label:"I am the parent/legal guardian of someone with autism",indeterminate:!1}},{key:"guardian_has_dependent",type:"radio",className:"guardian_has_dependent",templateOptions:{label:"Are you their legal guardian?",options:[{value:!0,label:"Yes",id:"3"},{value:!1,label:"No",id:"4"}]},expressionProperties:{"templateOptions.required":"model.guardian"},hideExpression:"!model.guardian"},{key:"professional",type:"checkbox",templateOptions:{label:"I am a professional who works with the autism community",indeterminate:!1}},{key:"interested",type:"checkbox",templateOptions:{label:"None of the above, but I am interested in autism research and resources",indeterminate:!1}}]}],this.route.queryParams.subscribe(function(e){console.log("Params",e),e.hasOwnProperty("meta")&&(a.forceMetaFormState=!0)}),this.authenticationService.currentUser.subscribe(function(e){a.user=e,console.log(e),a.self=e.getSelf(),a.dependents=e.getDependents(),a.api.getUserMeta(e.id).subscribe(function(e){console.log("UserMeta",e),a.userMeta=e,a.loading=!1},function(e){console.error(e),a.loading=!1})},function(e){console.error(e),a.user=null,a.loading=!1})}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.refreshParticipants(),this.api.getUserStudyInquiries(this.user.id).subscribe(function(t){return e.studyInquiries=t}),this.api.getStudies().subscribe(function(t){e.currentStudies=t.filter(function(e){return"currently_enrolling"===e.status})}),this.favoriteResources=this.user.user_favorites.filter(function(e){return"resource"===e.type}).map(function(e){return e.resource}).sort(function(e){return e.id})}},{key:"refreshParticipants",value:function(){var e=this;this.user&&this.api.getUser(this.user.id).subscribe(function(t){var n=new v$(t);e.self=n.getSelf(),e.dependents=n.getDependents(),n.getSelf()&&e.api.getFlow(n.getSelf().getFlowName(),n.getSelf().id).subscribe(function(t){e.selfPercentComplete=t.percentComplete(),console.log("selfPercentComplete",e.selfPercentComplete)})})}},{key:"getState",value:function(){return this.user?void 0===this.userMeta||this.forceMetaFormState?n2.NEEDS_META:void 0===this.user.getSelf()?n2.NEEDS_PARTICIPANT:n2.HAS_PARTICIPANT:n2.NEEDS_USER}},{key:"enrollDependent",value:function(e){e.preventDefault(),this.router.navigate(["terms",p$.DEPENDENT])}},{key:"createMeta",value:function(){var e=this;this.form.valid&&(this.model.id=this.user.id,this.api.addUserMeta(this.model).subscribe(function(t){e.userMeta=t,e.forceMetaFormState=!1}))}}]),e}()).\u0275fac=function(e){return new(e||t2)(ls(y$),ls(x$),ls(EX),ls(oQ))},t2.\u0275cmp=pt({type:t2,selectors:[["app-profile"]],decls:1,vars:1,consts:[["class","profile mat-typography",4,"ngIf"],[1,"profile","mat-typography"],[4,"ngIf"],["fxLayout","row","fxLayout.lt-lg","column","fxLayoutGap","2em",1,"meta-form"],["fxFlex","100%"],["id","meta-form",3,"formGroup"],[3,"model","fields","options","form"],["id","submit_meta","mat-flat-button","","type","submit","color","accent",3,"click"],[3,"user","meta"],["message","Loading...",4,"ngIf"],["fxLayout","column","fxLayoutGap","40px grid",4,"ngIf"],["message","Loading..."],["fxLayout","column","fxLayoutGap","40px grid"],["fxLayout","row wrap","fxLayoutGap","40px grid"],[3,"participant","user","id"],[3,"participant","user","id",4,"ngFor","ngForOf"],["fxFlex","60%",4,"ngIf"],["label","My Studies"],["id","study-inquiries",4,"ngIf"],["id","current-studies",4,"ngIf"],["label","My Resources"],[3,"favoriteResources"],["label","My Topics"],[3,"currentUser"],["fxFlex","60%"],["mat-flat-button","","color","primary","id","enroll_dependent",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","primary","id","enroll_dependent",3,"disabled","click"],["id","study-inquiries"],[4,"ngFor","ngForOf"],["mat-line","",3,"href"],["mat-line",""],["id","current-studies"]],template:function(e,t){1&e&&os(0,e2,5,4,"div",0),2&e&&us("ngIf",t.user)},directives:[wh,Xy,n_,v_,Vk,Jb,qk,yj,kP,Q0,zZ,s1,bh,jP,hz,nz,HP,BP,JR,d1,L1,zP,nL,bA],styles:[".profile[_ngcontent-%COMP%]{margin:2%}mat-card-subtitle[_ngcontent-%COMP%]{font-weight:700;font-size:large}button[_ngcontent-%COMP%]{white-space:pre-wrap!important}.tiles[_ngcontent-%COMP%]{margin:4em 0;text-align:center}.meta-form[_ngcontent-%COMP%]{max-width:80%;margin:auto} .mat-checkbox-label{white-space:normal;margin-top:-1em} .mat-checkbox-layout{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:start;align-items:flex-start;-ms-flex-pack:start;justify-content:flex-start;vertical-align:top} .mat-checkbox-inner-container{margin-top:-.7em!important}"]}),t2),r2=function(e){return e.replace(/([-_][a-z]|^[a-z])/gi,function(e){return e.toUpperCase().replace("-"," ").replace("_"," ")})},a2=function(){function e(t){b(this,e),this.api=t,this.stepSubject=new ep([]),this.countSubject=new ep(0),this.loadingSubject=new ep(!1)}return w(e,[{key:"connect",value:function(e){return this.stepSubject.asObservable()}},{key:"disconnect",value:function(e){this.stepSubject.complete(),this.loadingSubject.complete(),this.countSubject.complete()}},{key:"loadQuestionnaires",value:function(e){var t=this;this.loadingSubject.next(!0),this.api.getQuestionnaireList(e).subscribe(function(e){t.stepSubject.next(e)})}}]),e}(),o2=function(e){return{selected:e}};function s2(e,t){if(1&e){var n=vs();ds(0,"span"),ds(1,"button",6),ks("click",function(){rn(n);var e=t.$implicit;return As(2).changeTable(e)}),Js(2),hs(),hs()}if(2&e){var i=t.$implicit,r=As(2);Oa(1),us("ngClass",Au(2,o2,r.selected_info==i)),Oa(1),tl(" ",i.display_name," ")}}function l2(e,t){if(1&e){var n=vs();ds(0,"div"),ds(1,"h3"),Js(2,"Related Tables"),hs(),ds(3,"p"),Js(4,"This questionnaire contains some related tables that contain additional details. Use these buttons to change the view and look at sub-tables."),hs(),ds(5,"button",6),ks("click",function(){rn(n);var e=As();return e.changeTable(e.questionnaire_info)}),Js(6),hs(),os(7,s2,3,4,"span",3),hs()}if(2&e){var i=As();Oa(5),us("ngClass",Au(3,o2,i.selected_info==i.questionnaire_info)),Oa(1),tl(" ",i.questionnaire_info.display_name," "),Oa(1),us("ngForOf",i.questionnaire_info.sub_tables)}}function u2(e,t){if(1&e&&(ds(0,"th",10),Js(1),hs()),2&e){var n=As().$implicit,i=As();Oa(1),tl(" ",i.snakeToUpperCase(n.name)," ")}}function c2(e,t){if(1&e&&(ds(0,"td",11),Js(1),hs()),2&e){var n=t.$implicit,i=As().$implicit,r=As();Oa(1),tl(" ",r.format_element(n,i),"")}}function d2(e,t){if(1&e&&(ds(0,"div"),ps(1,7),os(2,u2,2,1,"th",8),os(3,c2,2,1,"td",9),ms(),hs()),2&e){var n=t.$implicit;Oa(1),Ps("matColumnDef",n.name)}}function h2(e,t){1&e&&fs(0,"tr",12)}function f2(e,t){1&e&&fs(0,"tr",13)}var p2,m2=((p2=function(){function e(t){b(this,e),this.api=t,this.displayedColumns=[],this.columnNames=[]}return w(e,[{key:"snakeToUpperCase",get:function(){return r2}},{key:"ngOnChanges",value:function(){this.selected_info=this.questionnaire_info,this.changeTable(this.selected_info)}},{key:"changeTable",value:function(e){this.selected_info=e,this.dataSource=new a2(this.api),this.dataSource.loadQuestionnaires(this.selected_info.table_name),this.load_columns()}},{key:"load_columns",value:function(){var e=this;this.displayedColumns=[],this.columnNames=[],this.api.getQuestionnaireListMeta(this.selected_info.table_name).subscribe(function(t){var n,i=s(t.fields);try{for(i.s();!(n=i.n()).done;){var r=n.value;e.displayedColumns.includes(r.name)||e.displayedColumns.push({name:r.name,type:r.type}),e.columnNames.includes(r.name)||e.columnNames.push(r.name)}}catch(a){i.e(a)}finally{i.f()}})}},{key:"format_element",value:function(e,t){return"DATETIME"===t.type?new Date(e[t.name]).toUTCString():e[t.name]}},{key:"exportQ",value:function(e){this.api.exportQuestionnaire(e.table_name).subscribe(function(e){console.log("data",e);var t=e.headers.get("x-filename"),n=new Blob([e.body],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),i=URL.createObjectURL(n),r=document.createElement("a");r.href=i,r.download=t,window.document.body.appendChild(r),r.click(),window.document.body.removeChild(r),URL.revokeObjectURL(i)})}}]),e}()).\u0275fac=function(e){return new(e||p2)(ls(x$))},p2.\u0275cmp=pt({type:p2,selectors:[["app-questionnaire-data-table"]],inputs:{questionnaire_info:"questionnaire_info"},features:[It],decls:9,vars:7,consts:[["mat-flat-button","","color","accent",3,"click"],[4,"ngIf"],[3,"dataSource"],[4,"ngFor","ngForOf"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-flat-button","","color","accent",3,"ngClass","click"],[3,"matColumnDef"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(ds(0,"h2"),Js(1),hs(),ds(2,"button",0),ks("click",function(){return t.exportQ(t.questionnaire_info)}),Js(3),hs(),os(4,l2,8,5,"div",1),ds(5,"mat-table",2),os(6,d2,4,1,"div",3),os(7,h2,1,0,"tr",4),os(8,f2,1,0,"tr",5),hs()),2&e&&(Oa(1),el(t.questionnaire_info.display_name),Oa(2),tl(" Export ",t.questionnaire_info.display_name," Data\n"),Oa(1),us("ngIf",t.questionnaire_info.sub_tables.length>0),Oa(1),us("dataSource",t.dataSource),Oa(1),us("ngForOf",t.displayedColumns),Oa(1),us("matHeaderRowDef",t.columnNames),Oa(1),us("matRowDefColumns",t.columnNames))},directives:[kP,wh,BB,bh,KB,JB,yh,ly,WB,jB,zB,YB,XB,tH,iH],styles:["td.mat-cell[_ngcontent-%COMP%], th.mat-header-cell[_ngcontent-%COMP%]{padding-right:1em}button[_ngcontent-%COMP%]{margin-bottom:2em;margin-left:2em}button.mat-flat-button.mat-accent.selected[_ngcontent-%COMP%]{background:#232d4b}"]}),p2);function g2(e,t){if(1&e){var n=vs();ds(0,"mat-list",8),ds(1,"mat-list-item"),ds(2,"mat-icon",9),Js(3),hs(),Js(4),ds(5,"button",10),ks("click",function(){rn(n);var e=t.$implicit;return As().selectQuestionnaire(e)}),Js(6),hs(),hs(),hs()}if(2&e){var i=t.$implicit;Oa(3),el(i.getIcon()),Oa(1),tl(" (",i.size,") "),Oa(1),us("disabled",0==i.size),Oa(1),el(i.display_name)}}function v2(e,t){if(1&e&&(ds(0,"mat-drawer-content",11),fs(1,"app-questionnaire-data-table",12),hs()),2&e){var n=As();Oa(1),us("questionnaire_info",n.currentQuestionnaire)}}var y2,_2=((y2=function(){function e(t,n,i){b(this,e),this.api=t,this.sidebarOpen=!0,this.mobileQuery=i.matchMedia("(max-width: 600px)"),this._mobileQueryListener=function(){return n.detectChanges()},this.mobileQuery.addListener(this._mobileQueryListener),window.addEventListener("resize",this._mobileQueryListener)}return w(e,[{key:"snakeToUpperCase",get:function(){return r2}},{key:"ngOnInit",value:function(){var e=this;this.api.getQuestionnaireInfoList().subscribe(function(t){e.questionnaire_info=t})}},{key:"ngOnDestroy",value:function(){this.mobileQuery.removeListener(this._mobileQueryListener),window.removeEventListener("resize",this._mobileQueryListener)}},{key:"selectQuestionnaire",value:function(e){return this.currentQuestionnaire=e,this.sidebarOpen=!1,this.currentQuestionnaire}},{key:"exportAll",value:function(){console.log("clicking the button for export all"),this.api.exportQuestionnaire("all").subscribe(function(e){console.log("data",e);var t=e.headers.get("x-filename"),n=new Blob([e.body],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),i=URL.createObjectURL(n),r=document.createElement("a");r.href=i,r.download=t,window.document.body.appendChild(r),r.click(),window.document.body.removeChild(r),URL.revokeObjectURL(i)})}}]),e}()).\u0275fac=function(e){return new(e||y2)(ls(x$),ls(Jl),ls(cF))},y2.\u0275cmp=pt({type:y2,selectors:[["app-questionnaire-data-view"]],decls:14,vars:4,consts:[[1,"mat-typography"],["fxLayout","row","fxLayoutAlign","auto center"],["mat-fab","","color","primary",3,"click"],["mat-flat-button","","color","accent",3,"click"],[3,"mode","opened","openedChange"],["sidenav",""],["class","data-list","dense","",4,"ngFor","ngForOf"],["class","pad-2",4,"ngIf"],["dense","",1,"data-list"],["matListIcon",""],["mat-button","",3,"disabled","click"],[1,"pad-2"],[3,"questionnaire_info"]],template:function(e,t){if(1&e){var n=vs();ds(0,"div",0),ds(1,"div"),ds(2,"div",1),ds(3,"h1"),ds(4,"button",2),ks("click",function(){return rn(n),ss(11).toggle()}),ds(5,"mat-icon"),Js(6,"menu"),hs(),hs(),hs(),ds(7,"button",3),ks("click",function(){return t.exportAll()}),Js(8," Export All "),hs(),hs(),ds(9,"mat-drawer-container"),ds(10,"mat-drawer",4,5),ks("openedChange",function(e){return t.sidebarOpen=e}),os(12,g2,7,4,"mat-list",6),hs(),os(13,v2,2,1,"mat-drawer-content",7),hs(),hs(),hs()}2&e&&(Oa(10),us("mode","over")("opened",t.sidebarOpen),Oa(2),us("ngForOf",t.questionnaire_info),Oa(1),us("ngIf",t.currentQuestionnaire))},directives:[Xy,eb,kP,BR,$N,XN,bh,wh,JR,nL,tL,QN,m2],styles:["mat-drawer-container[_ngcontent-%COMP%]{min-height:100vh}mat-drawer-container[_ngcontent-%COMP%], mat-drawer-content[_ngcontent-%COMP%]{background-color:#fff}.pad-2[_ngcontent-%COMP%]{padding:2em}button[_ngcontent-%COMP%]{margin:2em}"]}),y2);function b2(e,t){if(1&e&&(ds(0,"div",16),Js(1),hs()),2&e){var n=As(2);Oa(1),el(n.errorMessage)}}function k2(e,t){if(1&e){var n=vs();ds(0,"footer",17),ds(1,"button",18),Js(2,"Next"),hs(),ds(3,"button",19),ks("click",function(e){return rn(n),As(2).goHome(e)}),Js(4,"Cancel"),hs(),hs()}}function w2(e,t){1&e&&(ds(0,"footer"),fs(1,"app-loading"),hs())}function C2(e,t){if(1&e&&(ds(0,"formly-form",12),os(1,b2,2,1,"div",13),os(2,k2,5,0,"footer",14),os(3,w2,2,0,"footer",15),hs()),2&e){var n=As();us("form",n.form)("fields",n.fields)("model",n.model),Oa(1),us("ngIf",n.errorMessage),Oa(1),us("ngIf","form"===n.registerStateValue),Oa(1),us("ngIf","submitting"===n.registerStateValue)}}function x2(e,t){if(1&e){var n=vs();ds(0,"footer",20),ds(1,"h2"),Js(2,"Account Created!"),hs(),ds(3,"p"),Js(4,"Please check your email to complete the signin process."),hs(),ds(5,"button",21),ks("click",function(e){return rn(n),As().goHome(e)}),Js(6," Continue to browse "),hs(),hs()}}var S2,A2=((S2=function(){function e(t,n,i,r,a,o){b(this,e),this.api=t,this.changeDetectorRef=n,this.router=i,this.route=r,this.googleAnalytics=a,this.meta=o,this.errorMessage="",this.form=new Pk({}),this.model={},this.fields=[{key:"email",type:"input",templateOptions:{type:"email",label:"Email Address:",placeholder:"Enter email",required:!0},validators:{validation:["email"]}}],this._stateSubject=new ep("form"),this.registerState=this._stateSubject.asObservable(),this.user=new v$({id:null,email:this.model.email,role:"User"}),this.meta.updateTag({property:"og:image",content:location.origin+"/assets/join/hero.jpg"},"property='og:image'"),this.meta.updateTag({property:"og:image:secure_url",content:location.origin+"/assets/join/hero.jpg"},"property='og:image:secure_url'"),this.meta.updateTag({name:"twitter:image",content:location.origin+"/assets/join/hero.jpg"},"name='twitter:image'")}return w(e,[{key:"ngOnInit",value:function(){}},{key:"submit",value:function(){var e=this;localStorage.removeItem("token_url"),localStorage.setItem("returnUrl",this.route.snapshot.queryParams.returnUrl),this.form.valid&&(this._stateSubject.next("submitting"),this.registerState=this._stateSubject.asObservable(),this.errorMessage="",this.user.email=this.model.email,this.api.addUser(this.user).subscribe(function(t){e.user=t,t.hasOwnProperty("token_url")&&localStorage.setItem("token_url",t.token_url),e.googleAnalytics.accountEvent("register"),e._stateSubject.next("wait_for_email"),e.registerState=e._stateSubject.asObservable(),e.changeDetectorRef.detectChanges()},function(t){e._stateSubject.next("form"),e.registerState=e._stateSubject.asObservable(),e.errorMessage=t,e.changeDetectorRef.detectChanges()}))}},{key:"goHome",value:function(e){e.preventDefault(),this.router.navigate(["home"])}},{key:"registerStateValue",get:function(){return this._stateSubject.value}}]),e}()).\u0275fac=function(e){return new(e||S2)(ls(x$),ls(Jl),ls(EX),ls(oQ),ls(h$),ls(Yf))},S2.\u0275cmp=pt({type:S2,selectors:[["app-register"]],decls:33,vars:3,consts:[["id","hero",1,"gradient-overlay","container","with-escaping-tiles"],["fxLayoutAlign","center","id","TopOfJoin",1,"row","escaping-tiles-2x"],[1,"form","border-box"],[3,"formGroup","ngSubmit"],[3,"form","fields","model",4,"ngIf"],["id","confirmation_message",4,"ngIf"],[1,"register-container"],["fxLayout","column","fxLayoutGap","10px","fxFlex.gt-md","80%",1,"row","mat-typography"],[1,"bold-title"],["href","/#/studies"],["href","/#/uva-education"],["href","/#/search"],[3,"form","fields","model"],["id","error_message","class","display mat-error",4,"ngIf"],["fxLayout","column","fxLayoutGap","2%","fxLayoutAlign","center",4,"ngIf"],[4,"ngIf"],["id","error_message",1,"display","mat-error"],["fxLayout","column","fxLayoutGap","2%","fxLayoutAlign","center"],["mat-flat-button","","type","submit","color","primary","id","submit"],["mat-flat-button","","color","accent","id","cancel",3,"click"],["id","confirmation_message"],["color","primary","mat-flat-button","","id","continue",3,"click"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"div",1),ds(2,"div",2),ds(3,"h1"),Js(4,"Join Autism DRIVE"),hs(),ds(5,"form",3),ks("ngSubmit",function(){return t.submit()}),os(6,C2,4,6,"formly-form",4),os(7,x2,7,0,"footer",5),hs(),hs(),hs(),hs(),ds(8,"div",6),ds(9,"div",7),ds(10,"div"),ds(11,"h1",8),Js(12,"The more people take part in autism research, the faster we can promote positive outcomes"),hs(),ds(13,"p"),Js(14,"We are seeking adults with autism, children with autism and their families, and professionals to join us! If you complete our short registration process, you can be connected with researchers about study opportunities that "),ds(15,"i"),Js(16,"are relevant to you."),hs(),hs(),hs(),ds(17,"div"),ds(18,"h2"),Js(19,"Many studies involve incentives like gift cards, testing reports, or access to interventions for free."),hs(),ds(20,"p"),Js(21,"Visit our "),ds(22,"a",9),Js(23,"studies page"),hs(),Js(24," and contact the study teams to learn more about what each study offers. Creating an account also gives you free access to content of our "),ds(25,"a",10),Js(26,"education"),hs(),Js(27," page and the opportunity to save your favorite resources from our "),ds(28,"a",11),Js(29,"statewide resources directory."),hs(),hs(),hs(),ds(30,"div"),ds(31,"h2"),Js(32,"We can\u2019t make a difference without you. Let\u2019s transform outcomes. Together."),hs(),hs(),hs(),hs()),2&e&&(Oa(5),us("formGroup",t.form),Oa(1),us("ngIf","wait_for_email"!==t.registerStateValue),Oa(1),us("ngIf","wait_for_email"===t.registerStateValue))},directives:[eb,Vk,Jb,qk,wh,Xy,n_,v_,yj,kP,zZ],styles:["#hero[_ngcontent-%COMP%]{background-image:url(/assets/join/hero.jpg);background-position:0 18%;padding-top:8rem;padding-bottom:8rem;background-size:100% auto}@media (max-width:768px){#hero[_ngcontent-%COMP%]{background-position:0 0}}#hero[_ngcontent-%COMP%] .hero-content[_ngcontent-%COMP%]{display:grid}@media (min-width:768px){#hero[_ngcontent-%COMP%] .hero-content[_ngcontent-%COMP%]{grid-template-columns:2fr 1fr}}@media (min-width:992px){#hero[_ngcontent-%COMP%] .hero-content[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr}}@media (min-width:1200px){#hero[_ngcontent-%COMP%] .hero-content[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr}}#hero[_ngcontent-%COMP%] .form.border-box[_ngcontent-%COMP%]{max-width:100%;background-color:#fff;color:#000;padding:2em}#hero[_ngcontent-%COMP%] .form.border-box[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .bold-title[_ngcontent-%COMP%]{text-transform:uppercase}.bold-title[_ngcontent-%COMP%]{font-size:1.8em;font-weight:700}.register-container[_ngcontent-%COMP%]{margin:1em}"]}),S2),O2=function(e){f(n,e);var t=m(n);function n(e){var i;for(var r in b(this,n),(i=t.call(this,e))._props=e,i._props)i._props.hasOwnProperty(r)&&(i[r]=i._props[r]);return i}return n}(pK);function E2(e,t){if(1&e){var n=vs();ds(0,"mat-chip",5),ks("click",function(){rn(n);var e=t.$implicit;return As(2).goFilter(["/search"],"related_topic",{queryParams:{category:e.category.id}})}),Js(1),hs()}if(2&e){var i=t.$implicit;Oa(1),el(i.category.name)}}function T2(e,t){if(1&e&&(ds(0,"div"),ds(1,"mat-card-title"),Js(2,"Related Topics"),hs(),ds(3,"mat-chip-list"),os(4,E2,2,1,"mat-chip",4),hs(),hs()),2&e){var n=As();Oa(4),us("ngForOf",n.categories)}}function P2(e,t){if(1&e){var n=vs();ds(0,"mat-chip",5),ks("click",function(){rn(n);var e=t.$implicit;return As(2).goFilter(["/search"],"related_age",{queryParams:{ages:e}})}),Js(1),hs()}if(2&e){var i=t.$implicit,r=As(2);Oa(1),el(r.ageLabels[i])}}function D2(e,t){if(1&e&&(ds(0,"div",6),ds(1,"mat-card-title"),Js(2,"Related Age Ranges"),hs(),ds(3,"mat-chip-list"),os(4,P2,2,1,"mat-chip",4),hs(),hs()),2&e){var n=As();Oa(4),us("ngForOf",n.ages)}}function M2(e,t){if(1&e){var n=vs();ds(0,"mat-chip",5),ks("click",function(){rn(n);var e=t.$implicit;return As(2).goFilter(["/search"],"related_language",{queryParams:{languages:e}})}),Js(1),hs()}if(2&e){var i=t.$implicit,r=As(2);Oa(1),el(r.languageLabels[i])}}function I2(e,t){if(1&e&&(ds(0,"div",7),ds(1,"mat-card-title"),Js(2,"Related Languages"),hs(),ds(3,"mat-chip-list"),os(4,M2,2,1,"mat-chip",4),hs(),hs()),2&e){var n=As();Oa(4),us("ngForOf",n.languages)}}function R2(e,t){if(1&e){var n=vs();ds(0,"mat-chip",10),ks("click",function(){rn(n);var e=t.$implicit;return As(2).goFilter(["/covid19-resources/",{category:e}],"related_covid19_topic",{queryParams:{covid19_categories:e}})}),Js(1),hs()}if(2&e){var i=t.$implicit,r=As(2);Oa(1),el(r.covid19Labels[i].split(": ")[0])}}function L2(e,t){if(1&e&&(ds(0,"div",8),ds(1,"mat-card-title"),Js(2,"COVID-19 Topics"),hs(),ds(3,"mat-chip-list"),os(4,R2,2,1,"mat-chip",9),hs(),hs()),2&e){var n=As();Oa(4),us("ngForOf",n.covid19_categories)}}var F2,N2=((F2=function(){function e(t,n){b(this,e),this.router=t,this.googleAnalytics=n,this.categories=[],this.ages=[],this.languages=[],this.covid19_categories=[],this.ageLabels=cK.labels,this.languageLabels=dK.labels,this.covid19Labels=hK.labels}return w(e,[{key:"ngOnInit",value:function(){}},{key:"goFilter",value:function(e,t,n){this.googleAnalytics.relatedContentEvent(t,this.parentComponent),this.router.navigate(e,n)}}]),e}()).\u0275fac=function(e){return new(e||F2)(ls(EX),ls(h$))},F2.\u0275cmp=pt({type:F2,selectors:[["app-filter-chips"]],inputs:{categories:"categories",ages:"ages",languages:"languages",covid19_categories:"covid19_categories",parentComponent:"parentComponent"},decls:5,vars:4,consts:[[4,"ngIf"],["id","ages","class","margin-top",4,"ngIf"],["id","languages","class","margin-top",4,"ngIf"],["id","covid19_categories","class","margin-top",4,"ngIf"],["color","primary","selected","",3,"click",4,"ngFor","ngForOf"],["color","primary","selected","",3,"click"],["id","ages",1,"margin-top"],["id","languages",1,"margin-top"],["id","covid19_categories",1,"margin-top"],["color","accent","selected","",3,"click",4,"ngFor","ngForOf"],["color","accent","selected","",3,"click"]],template:function(e,t){1&e&&(ds(0,"mat-card"),os(1,T2,5,1,"div",0),os(2,D2,5,1,"div",1),os(3,I2,5,1,"div",2),os(4,L2,5,1,"div",3),hs()),2&e&&(Oa(1),us("ngIf",t.categories.length>0),Oa(1),us("ngIf",t.ages&&t.ages.length>0),Oa(1),us("ngIf",t.languages&&t.languages.length>0),Oa(1),us("ngIf",t.covid19_categories&&t.covid19_categories.length>0))},directives:[jP,wh,HP,kD,bh,gD],styles:["mat-chip[_ngcontent-%COMP%]{cursor:pointer}.margin-top[_ngcontent-%COMP%]{margin-top:1em}"]}),F2);function V2(e,t){if(1&e){var n=vs();ds(0,"div"),ds(1,"button",1),ks("click",function(){return rn(n),As().openEdit()}),ds(2,"mat-icon"),Js(3,"edit"),hs(),hs(),hs()}if(2&e){var i=As();Oa(1),Ps("matTooltip",i.editLabel)}}var B2,H2=((B2=function(){function e(t){b(this,e),this.router=t}return w(e,[{key:"ngOnInit",value:function(){}},{key:"openEdit",value:function(){this.router.navigateByUrl(this.editLink)}}]),e}()).\u0275fac=function(e){return new(e||B2)(ls(EX))},B2.\u0275cmp=pt({type:B2,selectors:[["app-edit-button"]],inputs:{currentUser:"currentUser",editLabel:"editLabel",editLink:"editLink"},decls:1,vars:1,consts:[[4,"ngIf"],["mat-mini-fab","","color","accent","aria-label","Edit",3,"matTooltip","click"]],template:function(e,t){1&e&&os(0,V2,4,1,"div",0),2&e&&us("ngIf",t.currentUser&&t.currentUser.permissions.includes("edit_resource"))},directives:[wh,kP,CF,BR],styles:[""]}),B2);function z2(e,t){if(1&e&&(ds(0,"div",6),Js(1),hs()),2&e){var n=As(2);Oa(1),el(n.errorMessage)}}function G2(e,t){if(1&e&&(ds(0,"footer",7),ds(1,"button",8),Js(2,"Register"),hs(),ds(3,"button",9),Js(4,"Cancel"),hs(),hs()),2&e){var n=As(2);Oa(3),us("mat-dialog-close",n.data.registered)}}function j2(e,t){1&e&&(ds(0,"footer"),fs(1,"app-loading"),hs())}function U2(e,t){if(1&e&&(ds(0,"formly-form",2),os(1,z2,2,1,"div",3),os(2,G2,5,1,"footer",4),os(3,j2,2,0,"footer",5),hs()),2&e){var n=As();us("form",n.form)("fields",n.fields)("model",n.model),Oa(1),us("ngIf",n.errorMessage),Oa(1),us("ngIf","form"===n.registerStateValue),Oa(1),us("ngIf","submitting"===n.registerStateValue)}}var W2,q2=((W2=function(){function e(t,n,i,r,a,o,s){var l=this;b(this,e),this.api=t,this.changeDetectorRef=n,this.route=i,this.googleAnalytics=r,this.authenticationService=a,this.dialogRef=o,this.data=s,this.errorMessage="",this.form=new Pk({}),this.model={},this.fields=[{key:"first_name",type:"input",templateOptions:{label:"First Name:",required:!0}},{key:"last_name",type:"input",templateOptions:{label:"Last Name:",required:!0}},{key:"email",type:"input",templateOptions:{type:"email",label:"Email Address:",placeholder:"Enter email",required:!0},validators:{validation:["email"]}},{key:"emailConfirm",type:"input",templateOptions:{type:"email",label:"Confirm Email",placeholder:"Please re-enter your email",required:!0},validators:{validation:["emailConfirm"]}},{key:"zip_code",type:"input",templateOptions:{type:"number",label:"Zip Code:",max:99999,min:0,pattern:"\\d{5}",required:!0}},{key:"relationship_to_autism",type:"multicheckbox",templateOptions:{label:"Relationship to Autism:",description:"(select all that apply)",type:"array",options:[{value:"friend_colleague",label:"Friend/Colleague"},{value:"family_member",label:"Parent/Family Member"},{value:"self_advocate",label:"Individual With Autism"},{value:"professional",label:"Professional"},{value:"other",label:"Other"}],required:!0}},{key:"relationship_other",type:"input",templateOptions:{label:"How else are you related to Autism"},hideExpression:'!(model.relationship_to_autism && model.relationship_to_autism.includes("other"))'},{key:"marketing_channel",type:"multicheckbox",templateOptions:{label:"How did you find about the virtual event?:",description:"(select all that apply)",type:"array",options:[{value:"star_newsletter",label:"STAR e-newsletter"},{value:"facebook",label:"Facebook"},{value:"drive",label:"Autism DRIVE"},{value:"family_member",label:"Parent/Family Member"},{value:"friend_colleague",label:"Friend/Colleague"},{value:"other",label:"Other"}],required:!0}},{key:"marketing_other",type:"input",templateOptions:{label:"What other ways did you find out about this event"},hideExpression:'!(model.marketing_channel && model.marketing_channel.includes("other"))'},{key:"newsletter_consent",type:"checkbox",defaultValue:!0,templateOptions:{label:"Please sign me up for the STAR E-newsletter",description:"Send me notifications of workshops, information, events, and research opportunities offered by the UVA Supporting Transformative Autism Research Initiative and partnering organizations."}}],this._stateSubject=new ep("form"),this.registerState=this._stateSubject.asObservable(),this.authenticationService.currentUser.subscribe(function(e){e?(l.user=e,l.model.email=e.email,l.model.first_name=e.getSelf().identification.first_name,l.model.last_name=e.getSelf().identification.last_name,l.model.zip_code=e.getSelf().contact.zip):l.user=new v$({id:null,email:l.model.email,role:"User"})})}return w(e,[{key:"ngOnInit",value:function(){}},{key:"submit",value:function(){var e=this;localStorage.removeItem("token_url"),this.form.valid&&(this.model.event_id=this.data.event_id,null===this.user.id?(this._stateSubject.next("submitting"),this.registerState=this._stateSubject.asObservable(),this.errorMessage="",this.user.email=this.model.email,this.api.addUser(this.user).subscribe(function(t){e.user=t,e.model.user_id=e.user.id,e.api.submitRegistration(e.model).subscribe(),t.hasOwnProperty("token_url")&&localStorage.setItem("token_url",t.token_url),e.googleAnalytics.accountEvent("register"),e._stateSubject.next("wait_for_email"),e.registerState=e._stateSubject.asObservable(),e.changeDetectorRef.detectChanges(),e.data.registered=!0,e.dialogRef.close()},function(t){e._stateSubject.next("form"),e.registerState=e._stateSubject.asObservable(),e.errorMessage=t,e.changeDetectorRef.detectChanges()}),this.dialogRef.close()):(this.model.participant_id=this.user.getSelf().id,this.api.submitQuestionnaire("registration","registration_questionnaire",this.model).subscribe(function(){e.googleAnalytics.stepCompleteEvent("registration_questionnaire"),console.log("submitting questionnaire",e.model),e.dialogRef.close()})))}},{key:"registerStateValue",get:function(){return this._stateSubject.value}}]),e}()).\u0275fac=function(e){return new(e||W2)(ls(x$),ls(Jl),ls(oQ),ls(h$),ls(y$),ls(ID),ls(zD))},W2.\u0275cmp=pt({type:W2,selectors:[["app-event-registration-form"]],decls:5,vars:3,consts:[[3,"formGroup","ngSubmit"],[3,"form","fields","model",4,"ngIf"],[3,"form","fields","model"],["id","error_message","class","display mat-error",4,"ngIf"],["fxLayout","column","fxLayoutGap","2%","fxLayoutAlign","center",4,"ngIf"],[4,"ngIf"],["id","error_message",1,"display","mat-error"],["fxLayout","column","fxLayoutGap","2%","fxLayoutAlign","center"],["mat-flat-button","","type","submit","color","primary","id","submit"],["mat-flat-button","","color","accent","id","cancel",3,"mat-dialog-close"]],template:function(e,t){1&e&&(ds(0,"mat-dialog-content"),ds(1,"h1"),Js(2),hs(),ds(3,"form",0),ks("ngSubmit",function(){return t.submit()}),os(4,U2,4,6,"formly-form",1),hs(),hs()),2&e&&(Oa(2),el(t.data.title),Oa(1),us("formGroup",t.form),Oa(1),us("ngIf","wait_for_email"!==t.registerStateValue))},directives:[$D,Vk,Jb,qk,wh,yj,Xy,n_,eb,kP,QD,zZ],styles:[""]}),W2);function Y2(e,t){if(1&e){var n=vs();ds(0,"div",3),ds(1,"p"),Js(2,"Joining Autism DRIVE is the first step toward participating in our events. Click below to join and register."),hs(),ds(3,"button",4),ks("click",function(){return rn(n),As().openDialog()}),Js(4,"Join And Register"),hs(),ds(5,"p"),Js(6,"Already a user? Sign in to see the link to register."),hs(),ds(7,"button",5),ks("click",function(){return rn(n),As().goLogin()}),Js(8,"Sign In"),hs(),hs()}}function Q2(e,t){if(1&e){var n=vs();ds(0,"div"),ds(1,"button",6),ks("click",function(){return rn(n),As().openDialog()}),Js(2,"Register Now"),hs(),hs()}}var X2,$2=((X2=function(){function e(t,n){b(this,e),this.router=t,this.dialog=n,this.hasCurrentUser=!1}return w(e,[{key:"ngOnInit",value:function(){}},{key:"goLogin",value:function(){this.router.navigate(["/login"],{queryParams:{returnUrl:this.router.url}})}},{key:"openDialog",value:function(){var e=this;this.dialog.open(q2,{width:"".concat(window.innerWidth,"px"),data:{registered:!1,title:"Register for "+this.resource.title,event_id:this.resource.id}}).afterClosed().subscribe(function(t){t&&(e.hasCurrentUser=!0)})}}]),e}()).\u0275fac=function(e){return new(e||X2)(ls(EX),ls(qD))},X2.\u0275cmp=pt({type:X2,selectors:[["app-event-registration"]],inputs:{resource:"resource",hasCurrentUser:"hasCurrentUser"},decls:5,vars:2,consts:[["fxLayout","column","fxLayoutAlign","center center",1,"event-container"],["fxLayout","column","fxLayoutGap","20px",4,"ngIf"],[4,"ngIf"],["fxLayout","column","fxLayoutGap","20px"],["mat-flat-button","","color","primary",3,"click"],["mat-flat-button","","color","accent",3,"click"],["mat-flat-button","","color","accent","id","register-button",1,"btn-xl",3,"click"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"h2"),Js(2,"Interested in Participating?"),hs(),os(3,Y2,9,0,"div",1),os(4,Q2,3,0,"div",2),hs()),2&e&&(Oa(3),us("ngIf",!t.hasCurrentUser),Oa(1),us("ngIf",t.hasCurrentUser))},directives:[Xy,eb,wh,n_,kP],styles:[".event-container[_ngcontent-%COMP%]{margin:1em}"]}),X2);function K2(e,t){if(1&e&&(ds(0,"p"),Js(1),hs()),2&e){var n=As().$implicit;Oa(1),el(n)}}function Z2(e,t){if(1&e&&(ps(0),os(1,K2,2,1,"p",6),ms()),2&e){var n=t.$implicit,i=As(3);Oa(1),us("ngIf",i.isNotEmpty(n))}}function J2(e,t){if(1&e&&(ds(0,"div",4),os(1,Z2,2,1,"ng-container",5),hs()),2&e){var n=As(2);Oa(1),us("ngForOf",n.contactItem.details)}}function e3(e,t){if(1&e&&(ds(0,"p"),Js(1),hs()),2&e){var n=As().$implicit;Oa(1),el(n)}}function t3(e,t){if(1&e&&(ds(0,"address"),os(1,e3,2,1,"p",6),hs()),2&e){var n=t.$implicit,i=As(3);Oa(1),us("ngIf",i.isNotEmpty(n))}}function n3(e,t){if(1&e&&(ds(0,"div",4),os(1,t3,2,1,"address",5),hs()),2&e){var n=As(2);Oa(1),us("ngForOf",n.contactItem.details)}}function i3(e,t){if(1&e&&(ds(0,"a",8),Js(1),hs()),2&e){var n=As().$implicit;Ds("href","tel://",n,"",Pr),Oa(1),el(n)}}function r3(e,t){if(1&e&&(ps(0),os(1,i3,2,2,"a",7),ms()),2&e){var n=t.$implicit,i=As(3);Oa(1),us("ngIf",i.isNotEmpty(n))}}function a3(e,t){if(1&e&&(ds(0,"div",4),os(1,r3,2,1,"ng-container",5),hs()),2&e){var n=As(2);Oa(1),us("ngForOf",n.contactItem.details)}}function o3(e,t){if(1&e&&(ds(0,"p"),Js(1),hs()),2&e){var n=As().$implicit;Oa(1),tl("Extension: ",n,"")}}function s3(e,t){if(1&e&&(ps(0),os(1,o3,2,1,"p",6),ms()),2&e){var n=t.$implicit,i=As(3);Oa(1),us("ngIf",i.isNotEmpty(n))}}function l3(e,t){if(1&e&&(ds(0,"div",4),os(1,s3,2,1,"ng-container",5),hs()),2&e){var n=As(2);Oa(1),us("ngForOf",n.contactItem.details)}}function u3(e,t){if(1&e&&(ds(0,"a",10),Js(1),hs()),2&e){var n=As().$implicit;Ps("href",n,Pr),Oa(1),el(n)}}function c3(e,t){if(1&e&&(ps(0),os(1,u3,2,2,"a",9),ms()),2&e){var n=t.$implicit,i=As(3);Oa(1),us("ngIf",i.isNotEmpty(n))}}function d3(e,t){if(1&e&&(ds(0,"div",4),os(1,c3,2,1,"ng-container",5),hs()),2&e){var n=As(2);Oa(1),us("ngForOf",n.contactItem.details)}}function h3(e,t){if(1&e&&(ds(0,"div",1),ds(1,"div",2),ds(2,"mat-icon"),Js(3),hs(),hs(),os(4,J2,2,1,"div",3),os(5,n3,2,1,"div",3),os(6,a3,2,1,"div",3),os(7,l3,2,1,"div",3),os(8,d3,2,1,"div",3),hs()),2&e){var n=As();Oa(3),el(n.contactItem.icon),Oa(1),us("ngIf",!n.contactItem.type||"p"===n.contactItem.type),Oa(1),us("ngIf",n.contactItem.type&&"address"===n.contactItem.type),Oa(1),us("ngIf",n.contactItem.type&&"phone"===n.contactItem.type),Oa(1),us("ngIf",n.contactItem.type&&"phone_extension"===n.contactItem.type),Oa(1),us("ngIf",n.contactItem.type&&"link"===n.contactItem.type)}}var f3,p3,m3=((p3=function(){function e(){b(this,e)}return w(e,[{key:"ngOnInit",value:function(){}},{key:"isNotEmpty",value:function(e){return""!==(e||"").replace(/\s/g,"")}}]),e}()).\u0275fac=function(e){return new(e||p3)},p3.\u0275cmp=pt({type:p3,selectors:[["app-contact-item"]],inputs:{contactItem:"contactItem"},decls:1,vars:1,consts:[["class","contact-item","fxLayout","row","fxLayoutGap","8px",4,"ngIf"],["fxLayout","row","fxLayoutGap","8px",1,"contact-item"],[1,"contact-item-icon"],["class","contact-item-detail",4,"ngIf"],[1,"contact-item-detail"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"href",4,"ngIf"],[3,"href"],["target","_blank",3,"href",4,"ngIf"],["target","_blank",3,"href"]],template:function(e,t){1&e&&os(0,h3,9,6,"div",0),2&e&&us("ngIf",t.contactItem&&t.contactItem.condition)},directives:[wh,Xy,n_,BR,bh],styles:[".contact-item[_ngcontent-%COMP%]{margin-bottom:1em}.contact-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-top:-.1em}.contact-item-detail[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;line-height:1.2}"]}),p3),g3=((f3=function(){function e(t,n){b(this,e),this.dialogRef=t,this.data=n}return w(e,[{key:"ngOnInit",value:function(){}},{key:"onNoClick",value:function(){this.dialogRef.close()}}]),e}()).\u0275fac=function(e){return new(e||f3)(ls(ID),ls(zD))},f3.\u0275cmp=pt({type:f3,selectors:[["app-admin-note-form"]],decls:10,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["matInput","",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","",3,"click"],["mat-flat-button","","color","primary","cdkFocusInitial","",3,"mat-dialog-close"]],template:function(e,t){1&e&&(ds(0,"h1",0),Js(1,"Please add a note"),hs(),ds(2,"div",1),ds(3,"mat-form-field"),ds(4,"textarea",2),ks("ngModelChange",function(e){return t.data.adminNote.note=e}),hs(),hs(),hs(),ds(5,"div",3),ds(6,"button",4),ks("click",function(){return t.onNoClick()}),Js(7,"Cancel"),hs(),ds(8,"button",5),Js(9,"Save"),hs(),hs()),2&e&&(Oa(4),us("ngModel",t.data.adminNote.note),Oa(4),us("mat-dialog-close",t.data.adminNote.note))},directives:[XD,$D,wT,vM,wb,Zb,Nk,KD,kP,QD],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),f3);function v3(e,t){if(1&e){var n=vs();ds(0,"div",5),ds(1,"div",6),ds(2,"p",7),ds(3,"a",8),ds(4,"b"),Js(5),hs(),hs(),ds(6,"i"),Js(7),Iu(8,"date"),hs(),hs(),ds(9,"p",7),Js(10),hs(),hs(),ds(11,"div",9),ds(12,"button",10),ks("click",function(){rn(n);var e=t.$implicit;return As(3).openDialog(e)}),ds(13,"mat-icon"),Js(14,"edit"),hs(),hs(),ds(15,"button",11),ks("click",function(){rn(n);var e=t.$implicit;return As(3).deleteNote(e)}),ds(16,"mat-icon"),Js(17,"close"),hs(),hs(),hs(),hs()}if(2&e){var i=t.$implicit;Oa(3),us("href","/#/admin/user/"+i.user_id,Pr),Oa(2),nl("User #",i.user_id," - ",i.user.email,""),Oa(2),tl(" - last updated: ",Lu(8,5,i.last_updated,"short"),""),Oa(3),el(i.note)}}function y3(e,t){if(1&e&&(ds(0,"div"),os(1,v3,18,8,"div",4),hs()),2&e){var n=As(2);Oa(1),us("ngForOf",n.notes)}}function _3(e,t){if(1&e){var n=vs();ds(0,"div",1),ds(1,"mat-card"),ds(2,"mat-card-title"),Js(3,"Admin Notes"),hs(),ds(4,"mat-card-content"),os(5,y3,2,1,"div",2),ds(6,"button",3),ks("click",function(){return rn(n),As().openDialog()}),Js(7," Add Note "),hs(),hs(),hs(),hs()}if(2&e){var i=As();Oa(5),us("ngIf",i.notes&&i.notes.length>0)}}var b3,k3=((b3=function(){function e(t,n){b(this,e),this.api=t,this.dialog=n}return w(e,[{key:"ngOnInit",value:function(){this.getNotes()}},{key:"getNotes",value:function(){var e=this;this.api.getResourceAdminNotes(this.currentResource.id).subscribe(function(t){e.notes=t})}},{key:"openDialog",value:function(e){var t=this;this.dialog.open(g3,{width:"".concat(window.innerWidth,"px"),data:{adminNote:e||{user_id:this.currentUser.id,resource_id:this.currentResource.id,note:""}}}).afterClosed().subscribe(function(n){e?(e.note=n,t.api.updateAdminNote(e).subscribe(function(e){t.getNotes()})):n&&!e&&t.api.addAdminNote({user_id:t.currentUser.id,resource_id:t.currentResource.id,note:n}).subscribe(function(e){t.getNotes()})})}},{key:"deleteNote",value:function(e){var t=this;this.api.deleteAdminNote(e).subscribe(function(e){t.getNotes()})}}]),e}()).\u0275fac=function(e){return new(e||b3)(ls(x$),ls(qD))},b3.\u0275cmp=pt({type:b3,selectors:[["app-admin-note-display"]],inputs:{currentUser:"currentUser",currentResource:"currentResource"},decls:1,vars:1,consts:[["id","admin_notes",4,"ngIf"],["id","admin_notes"],[4,"ngIf"],["mat-flat-button","","color","primary","type","button",3,"click"],["fxLayout","row","fxLayoutAlign","space-between",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","space-between"],["fxFlex","70%"],["mat-line",""],[3,"href"],["fxFlex","20%"],["mat-mini-fab","","type","button","color","primary","matTooltip","Edit Note",3,"click"],["mat-mini-fab","","type","button","color","accent","matTooltip","Delete Note",3,"click"]],template:function(e,t){1&e&&os(0,_3,8,1,"div",0),2&e&&us("ngIf",t.currentUser&&"admin"==t.currentUser.role)},directives:[wh,jP,HP,BP,kP,bh,Xy,eb,v_,bA,CF,BR],pipes:[$h],styles:["button.mat-mini-fab[_ngcontent-%COMP%]{margin:.5em}"]}),b3);function w3(e,t){if(1&e){var n=vs();ds(0,"div"),ds(1,"mat-list-item"),ds(2,"a",4),ks("click",function(){rn(n);var e=t.$implicit;return As(2).goStudy(e.id)}),fs(3,"app-type-icon",5),ds(4,"span",6),Js(5),hs(),hs(),ds(6,"p",7),Js(7),hs(),hs(),hs()}if(2&e){var i=t.$implicit;Oa(3),us("iconType","study"),Oa(2),el(i.short_title||i.title),Oa(2),el(i.short_description||i.description)}}var C3=function(){return{"related-items":!0}};function x3(e,t){if(1&e&&(ds(0,"mat-card",2),ds(1,"mat-card-title"),Js(2,"Related Research Studies"),hs(),ds(3,"mat-card-content"),ds(4,"mat-list"),os(5,w3,8,3,"div",3),hs(),hs(),hs()),2&e){var n=As();us("ngClass",Su(2,C3)),Oa(5),us("ngForOf",n.relatedStudies)}}function S3(e,t){if(1&e){var n=vs();ds(0,"div"),ds(1,"mat-list-item"),ds(2,"a",4),ks("click",function(){rn(n);var e=t.$implicit;return As(2).goResource(e.id)}),fs(3,"app-type-icon",5),ds(4,"span",8),Js(5),hs(),hs(),ds(6,"p",7),Js(7),Iu(8,"truncate"),hs(),hs(),hs()}if(2&e){var i=t.$implicit;Oa(3),us("iconType",i.type),Oa(2),el(i.title),Oa(2),el(Lu(8,3,i.description,140))}}function A3(e,t){if(1&e&&(ds(0,"mat-card",2),ds(1,"mat-card-title"),Js(2,"Related Resources"),hs(),ds(3,"mat-card-content"),ds(4,"mat-list"),os(5,S3,9,6,"div",3),hs(),hs(),hs()),2&e){var n=As();us("ngClass",Su(2,C3)),Oa(5),us("ngForOf",n.relatedResources)}}var O3,E3=((O3=function(){function e(t,n,i){b(this,e),this.api=t,this.router=n,this.googleAnalytics=i,this.relatedResources=[],this.relatedStudies=[]}return w(e,[{key:"ngOnInit",value:function(){var e=this;(this.resource||this.study)&&this.api.getRelatedResults({resource_id:this.resource?this.resource.id:void 0,study_id:this.study?this.study.id:void 0}).subscribe(function(t){e.relatedResources=t.resources,e.relatedStudies=t.studies})}},{key:"goResource",value:function(e){this.googleAnalytics.relatedContentEvent("related_resource",this.parentComponent),this.router.navigate(["/resource",e])}},{key:"goStudy",value:function(e){this.googleAnalytics.relatedContentEvent("related_study",this.parentComponent),this.router.navigate(["/study",e])}}]),e}()).\u0275fac=function(e){return new(e||O3)(ls(x$),ls(EX),ls(h$))},O3.\u0275cmp=pt({type:O3,selectors:[["app-related-items"]],inputs:{resource:"resource",study:"study",loading:"loading",parentComponent:"parentComponent"},decls:3,vars:2,consts:[["fxLayout","column","fxLayoutGap","2em"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[4,"ngFor","ngForOf"],["mat-line","","fxLayout","row","fxLayoutAlign","start start","fxLayoutGap","8px",3,"click"],[3,"iconType"],[1,"study-title"],["mat-line",""],[1,"resource-title"]],template:function(e,t){1&e&&(ds(0,"div",0),os(1,x3,6,3,"mat-card",1),os(2,A3,6,3,"mat-card",1),hs()),2&e&&(Oa(1),us("ngIf",!t.loading&&t.relatedStudies.length>0),Oa(1),us("ngIf",!t.loading&&t.relatedResources.length>0))},directives:[Xy,n_,wh,jP,yh,ly,HP,BP,JR,bh,nL,bA,eb,BK],pipes:[aW],styles:[".related-items[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{max-width:100vw}.related-items[_ngcontent-%COMP%] .mat-list .mat-list-item .mat-line{word-wrap:break-word;white-space:pre-wrap}.related-items[_ngcontent-%COMP%] .mat-list .mat-list-item{height:auto;margin-bottom:1rem}"]}),O3);function T3(e,t){1&e&&(ds(0,"p"),Js(1,"[DRAFT]"),hs())}function P3(e,t){if(1&e&&fs(0,"app-edit-button",23),2&e){var n=As(2);us("currentUser",n.currentUser)("editLink",n.resource.type+"/"+n.resource.id+"/edit")("editLabel","Edit "+n.resource.type)}}function D3(e,t){1&e&&(ds(0,"p"),Js(1,"This resource is being edited and is under review. Please check back for more up-to-date information soon."),hs())}function M3(e,t){if(1&e&&(ds(0,"p"),ds(1,"a",24),fs(2,"img",25),hs(),hs()),2&e){var n=As(2);Oa(1),us("href",n.resource.website,Pr),Oa(1),Ps("src",n.resource.image_url,Pr)}}function I3(e,t){if(1&e&&(ps(0),ds(1,"markdown"),Js(2),hs(),ms()),2&e){var n=As(2);Oa(2),el(n.resource.description)}}function R3(e,t){if(1&e&&(ps(0),ds(1,"markdown"),Js(2),hs(),ms()),2&e){var n=As(2);Oa(2),el(n.isPastEvent?n.resource.post_event_description:n.resource.description)}}function L3(e,t){if(1&e&&fs(0,"app-event-registration",29),2&e){var n=As(3);us("hasCurrentUser",!!n.currentUser)("resource",n.resource)}}function F3(e,t){if(1&e&&(ds(0,"a",30),Js(1,"Register Now"),hs()),2&e){var n=As(3);us("href",n.resource.registration_url||"mailto:"+n.resource.contact_email+"?subject=Registration+for+"+n.resource.title,Pr)}}function N3(e,t){if(1&e&&(ds(0,"div",26),os(1,L3,1,2,"app-event-registration",27),os(2,F3,2,1,"a",28),hs()),2&e){var n=As(2);Oa(1),us("ngIf",n.resource.includes_registration),Oa(1),us("ngIf",!n.resource.includes_registration&&(n.resource.registration_url||n.resource.contact_email))}}function V3(e,t){if(1&e&&(ds(0,"p"),Js(1),hs()),2&e){var n=As(2);Oa(1),tl("Insurance accepted: ",n.resource.insurance,"")}}function B3(e,t){if(1&e&&(ds(0,"div"),fs(1,"iframe",31),hs()),2&e){var n=As(3);Oa(1),us("src",n.safeVideoLink,Dr)}}var H3=function(){return["/register"]},z3=function(e){return{returnUrl:e}},G3=function(){return["/login"]};function j3(e,t){if(1&e&&(ds(0,"div"),ds(1,"h2"),Js(2,"Interested in watching this video?"),hs(),ds(3,"div",32),ds(4,"div",33),fs(5,"img",25),hs(),ds(6,"div",34),ds(7,"button",35),Js(8,"Join Autism DRIVE"),hs(),ds(9,"button",35),Js(10,"Log In"),hs(),hs(),hs(),hs()),2&e){var n=As(3);Oa(5),us("src","https://img.youtube.com/vi/"+n.resource.video_code+"/hqdefault.jpg",Pr),Oa(2),us("routerLink",Su(5,H3))("queryParams",Au(6,z3,n.router.url)),Oa(2),us("routerLink",Su(8,G3))("queryParams",Au(9,z3,n.router.url))}}function U3(e,t){if(1&e&&(ds(0,"div"),os(1,B3,2,1,"div",7),os(2,j3,11,11,"div",7),hs()),2&e){var n=As(2);Oa(1),us("ngIf",n.currentUser),Oa(1),us("ngIf",!n.currentUser)}}function W3(e,t){if(1&e&&(ds(0,"p",36),Js(1),hs()),2&e){var n=As(2);Oa(1),il(" ","location"===n.resource.type?"In-home therapy service.":""," Contact ",n.resource.organization_name," for specific ","location"===n.resource.type?"service area":"location",". ")}}function q3(e,t){1&e&&fs(0,"app-contact-item",37),2&e&&us("contactItem",t.$implicit)}function Y3(e,t){if(1&e){var n=vs();ds(0,"button",38),ks("click",function(e){return rn(n),As(2).goPhone(e)}),Js(1),hs()}if(2&e){var i=As(2);Oa(1),tl("Call ",i.resource.phone,"")}}function Q3(e,t){if(1&e){var n=vs();ds(0,"button",39),ks("click",function(e){return rn(n),As(2).goWebsite(e)}),Js(1,"Visit website"),hs()}}function X3(e,t){if(1&e&&(ds(0,"div"),ds(1,"p",43),ds(2,"a",44),ds(3,"b"),Js(4),hs(),hs(),Js(5),Iu(6,"uppercase"),Iu(7,"date"),hs(),hs()),2&e){var n=t.$implicit;Oa(2),us("href","/#/admin/user/"+n.user_id,Pr),Oa(2),nl("User #",n.user_id," - ",n.user_email,""),Oa(1),nl(" - Edit Type: ",Ru(6,5,n.type)," - Update Date: ",Lu(7,7,n.last_updated,"long")," ")}}function $3(e,t){if(1&e&&(ds(0,"div"),os(1,X3,8,10,"div",42),hs()),2&e){var n=As(3);Oa(1),us("ngForOf",n.changeLog)}}function K3(e,t){if(1&e&&(ds(0,"div",40),ds(1,"mat-card"),ds(2,"mat-card-title"),Js(3,"Edit Log"),hs(),os(4,$3,2,1,"div",7),hs(),fs(5,"app-admin-note-display",41),hs()),2&e){var n=As(2);Oa(4),us("ngIf",n.changeLog),Oa(1),us("currentUser",n.currentUser)("currentResource",n.resource)}}function Z3(e,t){if(1&e){var n=vs();ds(0,"agm-circle",49),ks("circleClick",function(e){return rn(n),As(3).toggleInfoWindow(e)}),hs()}if(2&e){var i=As(3);us("latitude",i.resource.latitude)("longitude",i.resource.longitude)("radius",32186.9)("fillColor","location"===i.resource.type.toLowerCase()?"#6c799c":"#E57200")("clickable",!0)}}function J3(e,t){if(1&e&&(ps(0),ds(1,"p"),Js(2),hs(),ds(3,"a",52),Js(4,"Driving directions"),hs(),ms()),2&e){var n=As(4);Oa(2),tl("About ",n.resource.milesFrom(n.mapLoc)," miles away"),Oa(1),Ps("href",n.getGoogleMapsUrl(),Pr)}}function e4(e,t){if(1&e&&(ds(0,"p",36),Js(1),hs()),2&e){var n=As(5);Oa(1),il(" ","location"===n.resource.type?"In-home therapy service.":""," Contact ",n.resource.organization_name," for specific ","location"===n.resource.type?"service area":"location",". ")}}function t4(e,t){if(1&e&&(ds(0,"a",52),Js(1),hs()),2&e){var n=As(5);Ds("href","tel://",n.resource.phone,"",Pr),Oa(1),tl("Call ",n.resource.phone,"")}}function n4(e,t){1&e&&(ds(0,"a",52),Js(1," Visit website "),hs()),2&e&&Ps("href",As(5).resource.website,Pr)}function i4(e,t){if(1&e&&(ps(0),os(1,e4,2,3,"p",12),os(2,t4,2,2,"a",53),os(3,n4,2,1,"a",53),ms()),2&e){var n=As(4);Oa(1),us("ngIf",n.mapLoc&&!n.resource.street_address1),Oa(1),us("ngIf",n.resource.phone),Oa(1),us("ngIf",!n.resource.phone&&n.resource.website)}}var r4=function(){return{x:24,y:24}},a4=function(e,t){return{url:e,anchor:t}};function o4(e,t){if(1&e){var n=vs();ds(0,"agm-marker",50),ks("markerClick",function(e){return rn(n),As(3).toggleInfoWindow(e)}),ds(1,"agm-info-window",51),ds(2,"h5"),Js(3),hs(),os(4,J3,5,2,"ng-container",7),os(5,i4,4,3,"ng-container",7),hs(),hs()}if(2&e){var i=As(3);us("latitude",i.resource.latitude)("longitude",i.resource.longitude)("iconUrl",Ou(10,a4,"/assets/map/"+i.resource.type+(i.resource.street_address1?"":"-no-address")+".svg",Su(9,r4))),Oa(1),us("isOpen",i.showInfoWindow)("latitude",i.resource.latitude)("latitude",i.resource.longitude),Oa(2),el(i.resource.title),Oa(1),us("ngIf",i.resource.street_address1),Oa(1),us("ngIf",!i.resource.street_address1)}}function s4(e,t){if(1&e&&(ds(0,"div",45),ds(1,"agm-map",46),os(2,Z3,1,5,"agm-circle",47),os(3,o4,6,13,"agm-marker",48),hs(),hs()),2&e){var n=As(2);Oa(1),us("latitude",n.resource.latitude)("longitude",n.resource.longitude)("streetViewControl",!1)("zoom",7)("scrollwheel",null),Oa(1),us("ngIf",n.resource.hasCoords()&&!n.resource.street_address1),Oa(1),us("ngIf",n.resource.hasCoords())}}function l4(e,t){if(1&e&&(ds(0,"div",54),fs(1,"app-related-items",55),hs()),2&e){var n=As(2);Oa(1),us("resource",n.resource)("loading",n.loading)("parentComponent","resource-detail")}}function u4(e,t){if(1&e&&(ds(0,"div",2),ds(1,"div",3),ds(2,"div",4),ds(3,"div",5),fs(4,"app-type-icon",6),ds(5,"h1"),Js(6),hs(),hs(),os(7,T3,2,0,"p",7),os(8,P3,1,3,"app-edit-button",8),fs(9,"app-favorite-resource-button",9),ds(10,"p"),Js(11),Iu(12,"date"),hs(),ds(13,"h2"),Js(14,"About this resource"),hs(),os(15,D3,2,0,"p",7),os(16,M3,3,2,"p",7),os(17,I3,3,1,"ng-container",7),os(18,R3,3,1,"ng-container",7),os(19,N3,3,2,"div",10),os(20,V3,2,1,"p",7),os(21,U3,3,2,"div",7),ds(22,"mat-card",11),ds(23,"mat-card-title"),ds(24,"h4"),Js(25,"Contact"),hs(),hs(),ds(26,"mat-card-content"),os(27,W3,2,3,"p",12),os(28,q3,1,1,"app-contact-item",13),hs(),hs(),ds(29,"div",14),os(30,Y3,2,1,"button",15),os(31,Q3,2,0,"button",16),hs(),os(32,K3,6,3,"div",17),hs(),ds(33,"div",18),os(34,s4,4,7,"div",19),ds(35,"div",20),fs(36,"app-filter-chips",21),hs(),os(37,l4,2,3,"div",22),hs(),hs(),hs()),2&e){var n=As();Oa(4),us("iconType",n.resource.type.toLowerCase())("size",3),Oa(2),el(n.resource.title),Oa(1),us("ngIf",n.resourceIsDraft),Oa(1),us("ngIf",n.userCanEdit),Oa(1),us("resource_id",n.resource.id)("user",n.currentUser),Oa(2),tl("Last Updated: ",Lu(12,27,n.resource.last_updated,"longDate"),""),Oa(4),us("ngIf",n.resourceIsDraft&&!n.userCanEdit),Oa(1),us("ngIf","event"===n.resource.type&&n.resource.image_url),Oa(1),us("ngIf","event"!==n.resource.type),Oa(1),us("ngIf","event"===n.resource.type),Oa(1),us("ngIf","event"===n.resource.type),Oa(1),us("ngIf",n.resource.insurance),Oa(1),us("ngIf",n.safeVideoLink),Oa(6),us("ngIf",n.mapLoc&&!n.resource.street_address1),Oa(1),us("ngForOf",n.contactItems),Oa(2),us("ngIf",n.resource.phone),Oa(1),us("ngIf",n.resource.website),Oa(1),us("ngIf",n.currentUser&&n.currentUser.permissions.includes("edit_resource")),Oa(2),us("ngIf",n.resource&&n.resource.hasCoords()),Oa(2),us("categories",n.resource.resource_categories)("ages",n.resource.ages)("languages",n.resource.languages)("covid19_categories",n.resource.covid19_categories)("parentComponent","resource_detail"),Oa(1),us("ngIf",!n.resource.should_hide_related_resources)}}function c4(e,t){1&e&&fs(0,"app-loading",56)}var d4,h4=((d4=function(){function e(t,n,i,r,a){var o=this;b(this,e),this.api=t,this.route=n,this.router=i,this.authenticationService=r,this._sanitizer=a,this.loading=!0,this.showInfoWindow=!1,this.authenticationService.currentUser.subscribe(function(e){return o.currentUser=e}),this.route.params.subscribe(function(e){o.loading=!0,o.safeVideoLink=null;var t=e.resourceId?parseInt(e.resourceId,10):null;if("number"==typeof t&&isFinite(t)){var n=o.route.snapshot.url[0].path,i=n.charAt(0).toUpperCase()+n.slice(1);o.api["get".concat(i)](t).subscribe(function(e){o.resource=new O2(e),console.log("resource = ",o.resource),o.initializeContactItems(),o.loadMapLocation(),o.loading=!1,o.resource.video_code&&(o.safeVideoLink=o._sanitizer.bypassSecurityTrustResourceUrl("https://www.youtube.com/embed/"+o.resource.video_code)),o.currentUser&&o.currentUser.permissions.includes("edit_resource")&&o.api.getResourceChangeLog(o.resource.id).subscribe(function(e){o.changeLog=e})})}})}return w(e,[{key:"isPastEvent",get:function(){var e=new Date(this.resource.date),t=new Date;return console.log("eventDate",e),!!(this.resource&&"event"===this.resource.type&&e0){var n,i=s(e.resource_categories);try{for(i.s();!(n=i.n()).done;){var r=n.value;this.model.categories.push(r.category),t()}}catch(a){i.e(a)}finally{i.f()}}else t()}},{key:"loadForm",value:function(){this.form=new Pk({}),this.options={formState:{mainModel:this.model}},this.state=this.pageState.SHOW_FORM}},{key:"updateResourceCategories",value:function(e){var t=this,n=this.model.type.charAt(0).toUpperCase()+this.model.type.slice(1),i=[];return this.model.categories.forEach(function(n,r){!0===n&&i.push({resource_id:e,category_id:r,type:t.model.type})}),this.api["update".concat(n,"Categories")](e,i)}},{key:"submit",value:function(){var e=this.model.type.charAt(0).toUpperCase()+this.model.type.slice(1);this.form.valid&&this.updateAndClose(this.createNew&&!this.model.id?this.api["add".concat(e)](this.model):this.api["update".concat(e)](this.model))}},{key:"updateAndClose",value:function(e){var t=this;this.setDateTime(),e.subscribe(function(e){t.updatedResource=e,t.model.id=e.id,t.updateResourceCategories(e.id).subscribe(function(){return t.close()})})}},{key:"setDateTime",value:function(){this.model.date&&(this.model.date instanceof Date||(this.model.date=new Date(this.model.date)),this.model.date.setHours(12))}},{key:"showDelete",value:function(){this.showConfirmDelete=!0}},{key:"onDelete",value:function(){var e=this;this.api.deleteResource(this.resource).subscribe(function(t){e.router.navigate(["search"])})}},{key:"close",value:function(){this.router.navigate(this.updatedResource&&this.updatedResource.id?[this.updatedResource.type,this.updatedResource.id]:["search"])}},{key:"onCancel",value:function(){this.close()}},{key:"saveDraft",value:function(){this.model.is_draft=!0,this.form.valid?this.submit():this.highlightRequiredFields()}},{key:"savePublish",value:function(){this.model.is_draft=!1,this.form.valid?this.submit():this.highlightRequiredFields()}},{key:"highlightRequiredFields",value:function(){for(var e=0,t=Object.keys(this.form.controls);e1&&void 0!==arguments[1]?arguments[1]:rp,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:A4;return function(i){return i.lift(new E4(e,t,n.leading,n.trailing))}}var E4=function(){function e(t,n,i,r){b(this,e),this.duration=t,this.scheduler=n,this.leading=i,this.trailing=r}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new T4(e,this.duration,this.scheduler,this.leading,this.trailing))}}]),e}(),T4=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o){var s;return b(this,n),(s=t.call(this,e)).duration=i,s.scheduler=r,s.leading=a,s.trailing=o,s._hasTrailingValue=!1,s._trailingValue=null,s}return w(n,[{key:"_next",value:function(e){this.throttled?this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(P4,this.duration,{subscriber:this})),this.leading?this.destination.next(e):this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0))}},{key:"_complete",value:function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}},{key:"clearThrottle",value:function(){var e=this.throttled;e&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),e.unsubscribe(),this.remove(e),this.throttled=null)}}]),n}(P);function P4(e){e.subscriber.clearThrottle()}var D4,M4,I4=function(e){return e.Small="sm",e.Medium="md",e.Large="lg",e}({}),R4=function(e){return e.Visible="visible",e.Hidden="hidden",e}({}),L4=function(e){return e.Expanded="expanded",e.Collapsed="collapsed",e}({}),F4=function(e){return e.Up="Up",e.Down="Down",e}({}),N4=((M4=function(){function e(t,n){b(this,e),this._http=t,this.config=n,this.query_url="/api/search/resources"}return w(e,[{key:"search",value:function(e){var t=this;return this._http.post(this.config.apiUrl+this.query_url,e).pipe(q(function(e){return t._loadQuery(e)}))}},{key:"mapSearch",value:function(e,t){var n=S4()({circles:!0})(e);return n.geo_box=t,n.map_data_only=!0,n.size=300,this.search(n)}},{key:"_loadQuery",value:function(e){if(e&&e.hits)return new mK(e)}}]),e}()).\u0275fac=function(e){return new(e||M4)(Ni(vg),Ni(d$))},M4.\u0275prov=Le({token:M4,factory:M4.\u0275fac,providedIn:"root"}),M4),V4=((D4=function(){function e(t){var n=this;b(this,e),this.api=t,this.categoriesByDisplayOrder={},this.categoriesById={},this.updated=new Vu,this.api.getCategoryTree().subscribe(function(e){n.categoryTree=e,n._populateCategoryIndices(n.categoryTree),n.categoryList=Object.entries(n.categoriesByDisplayOrder).sort(function(e,t){return e[0].toLowerCase() ")}},{key:"_populateCategoryIndices",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e.forEach(function(e){var i=n.concat([null!=e.display_order?e.display_order:e.id]),r=i.join(".");t.categoriesByDisplayOrder[r]||(t.categoriesByDisplayOrder[r]=e),t.categoriesById[e.id]||(t.categoriesById[e.id]=e),e.children&&e.children.length>0&&t._populateCategoryIndices(e.children,i)})}},{key:"_populateCategoryParents",value:function(){var e=this;this.categoryList.forEach(function(t){null!==t.parent_id&&(t.parent=e.categoriesById[t.parent_id],e.categoriesById[t.id].parent=t.parent)})}}]),e}()).\u0275fac=function(e){return new(e||D4)(Ni(x$))},D4.\u0275prov=Le({token:D4,factory:D4.\u0275fac,providedIn:"root"}),D4),B4=["searchInput"],H4=["autocompletePanel"];function z4(e,t){if(1&e&&(ds(0,"div",13),ds(1,"h1",14),Js(2,"Find Autism Resources"),hs(),ds(3,"h5",14),Js(4,"Type a search term and/or use filters below"),hs(),hs()),2&e){var n=As();Oa(1),us("fxFlex",n.videoIsVisible?"calc(100% - 66px)":"100%"),Oa(2),us("fxFlex",n.videoIsVisible?"calc(100% - 66px)":"100%")}}function G4(e,t){if(1&e&&(ds(0,"mat-option",15),Js(1),hs()),2&e){var n=t.$implicit,i=As();us("value",n),Oa(1),el(i.optionText(n))}}var j4,U4=function(e){return{"btn-cancel":!0,hidden:e}},W4=function(){return{"btn-search":!0}},q4=((j4=function(){function e(t,n,i,r,a,o){var s,l=this;b(this,e),this.route=t,this.router=n,this.searchService=i,this.api=r,this.categoryService=a,this.changeDetectorRef=o,this.categorySelected=new Vu,this.searchUpdated=new Vu,this.searchBoxControl=new Tk,this.searchUpdate=new j,this.skipUpdate=!1,this.route.queryParams.pipe((s=function(){return op(1e3)},function(e){return e.lift(new $W(s))})).subscribe(function(e){return l.queryParams=e}),this.searchUpdate.pipe(jg(400),Op()).subscribe(function(){return l.updateSearch(!1)})}return w(e,[{key:"videoIsVisible",get:function(){return"true"===localStorage.getItem("shouldHideTutorialVideo")}},{key:"searchInput",set:function(e){this.searchInputElement=e}},{key:"autocompletePanel",set:function(e){this.autocompletePanelElement=e}},{key:"autocompletePanelTrigger",set:function(e){this.autocompletePanelTriggerElement=e}},{key:"hasWords",get:function(){return!!(this.searchInputElement&&this.searchInputElement.value&&this.searchInputElement.value.length>0)}},{key:"ngOnInit",value:function(){var e=this;this.filteredOptions=this.searchBoxControl.valueChanges.pipe(Rp(""),q(function(t){return e._filter(t)}))}},{key:"ngAfterViewInit",value:function(){this.searchInputElement.value=this.words}},{key:"optionText",value:function(e){return null==e?void 0:e.indentedString}},{key:"updateSearch",value:function(e){var t=this;if(!this.skipUpdate){e&&(this.words="",this.searchInputElement.value=this.words);var n=JSON.parse(JSON.stringify(this.queryParams));return n.words=e?void 0:this.searchInputElement&&this.searchInputElement.value||"",n.pageStart=0,n.words&&(n.sort="Relevance"),Object.keys(n).length>0?this.router.navigate(["/search"],{relativeTo:this.route,queryParams:n}).finally(function(){t.searchUpdated.emit(n),t.changeDetectorRef.detectChanges()}):this.router.navigateByUrl("/search").finally(function(){return t.searchUpdated.emit(n)})}this.skipUpdate=!1}},{key:"indentedString",value:function(e){for(var t=e.parent,n=[];t;)n.unshift(t),t=t.parent;return n.map(function(e){return e.name}).concat([e.name]).join(" > ")}},{key:"selectCategory",value:function(e){this.skipUpdate=!0,this.categorySelected.emit(e.option.value)}},{key:"showVideo",value:function(){localStorage.removeItem("shouldHideTutorialVideo")}},{key:"_filter",value:function(e){if(e&&e.length>0){var t=e.replace(/\W+/gi," ").toLowerCase().split(" ").map(function(e){return"(?=.*".concat(e,")")}).join(""),n=new RegExp(t,"gi");return this.categoryService.categoryList.filter(function(e){return e.all_resource_count>0&&n.test(e.indentedString)})}return this.categoryService.categoryList}},{key:"openAutocompletePanel",value:function(e){this.autocompletePanelTriggerElement._onChange(""),e.stopPropagation(),this.autocompletePanelTriggerElement.openPanel(),this.autocompletePanelElement.showPanel=!0,this.changeDetectorRef.detectChanges()}}]),e}()).\u0275fac=function(e){return new(e||j4)(ls(oQ),ls(EX),ls(N4),ls(x$),ls(V4),ls(Jl))},j4.\u0275cmp=pt({type:j4,selectors:[["app-search-box"]],viewQuery:function(e,t){var n;1&e&&(Ku(B4,1,vM),Ku(H4,1,iP),Ku(uP,1)),2&e&&($u(n=Ju())&&(t.searchInput=n.first),$u(n=Ju())&&(t.autocompletePanel=n.first),$u(n=Ju())&&(t.autocompletePanelTrigger=n.first))},inputs:{variant:"variant",words:"words"},outputs:{categorySelected:"categorySelected",searchUpdated:"searchUpdated"},decls:21,vars:17,consts:[["fxLayout","column"],["class","search-bar-header","fxLayout","row wrap","fxLayoutAlign","center center","fxLayoutGap","0px",4,"ngIf"],["fxLayout","row","fxLayoutGap","10px","fxLayoutAlign","center center"],["id","search-field",3,"fxFlex","click"],["matInput","","placeholder","Search for Autism Resources","type","text",3,"formControl","matAutocomplete","keyup.enter","keyup.escape","click"],["searchInput",""],["panelWidth","600px",3,"displayWith","optionSelected"],["auto","matAutocomplete","autocompletePanel",""],[3,"value",4,"ngFor","ngForOf"],["matSuffix","","fxLayout","row"],["mat-icon-button","","matSuffix","","fxHide","",3,"fxShow","ngClass","click"],["mat-icon-button","","matSuffix","",3,"ngClass","click"],["mat-fab","","matTooltip","Watch a video with tips about resources",1,"show-video",3,"fxHide","click"],["fxLayout","row wrap","fxLayoutAlign","center center","fxLayoutGap","0px",1,"search-bar-header"],[3,"fxFlex"],[3,"value"]],template:function(e,t){if(1&e&&(ds(0,"div",0),os(1,z4,5,2,"div",1),ds(2,"div",2),ds(3,"mat-form-field",3),ks("click",function(e){return t.openAutocompletePanel(e)}),ds(4,"input",4,5),ks("keyup.enter",function(){return t.updateSearch(!1)})("keyup.escape",function(){return t.updateSearch(!0)})("click",function(e){return t.openAutocompletePanel(e)}),hs(),ds(6,"mat-autocomplete",6,7),ks("optionSelected",function(e){return t.selectCategory(e)}),os(9,G4,2,2,"mat-option",8),Iu(10,"async"),hs(),ds(11,"div",9),ds(12,"button",10),ks("click",function(){return t.updateSearch(!0)}),ds(13,"mat-icon"),Js(14,"cancel"),hs(),hs(),ds(15,"button",11),ks("click",function(){return t.updateSearch(!1)}),ds(16,"mat-icon"),Js(17,"search"),hs(),hs(),hs(),hs(),ds(18,"button",12),ks("click",function(){return t.showVideo()}),ds(19,"mat-icon"),Js(20,"ondemand_video"),hs(),hs(),hs(),hs()),2&e){var n=ss(5),i=ss(7);zs("search-bar "+t.variant),Oa(1),us("ngIf","Search for Autism Resources"!=n.value),Oa(2),us("fxFlex",t.videoIsVisible?"calc(100% - 66px)":"100%"),Oa(1),us("formControl",t.searchBoxControl)("matAutocomplete",i),Oa(2),us("displayWith",t.optionText),Oa(3),us("ngForOf",Ru(10,12,t.filteredOptions)),Oa(3),us("fxShow",t.hasWords)("ngClass",Au(14,U4,!t.hasWords)),Oa(3),us("ngClass",Su(16,W4)),Oa(3),us("fxHide",!t.videoIsVisible)}},directives:[Xy,wh,n_,eb,wT,v_,vM,wb,uP,Zb,Uk,iP,bh,vT,kP,my,yh,ly,BR,CF,JA],pipes:[qh],styles:[".search-bar[_ngcontent-%COMP%]{display:-ms-inline-flexbox;display:inline-flex;width:100%;margin-top:2em}.search-bar.hidden[_ngcontent-%COMP%]{display:block;position:fixed;top:0;left:100%}.search-bar[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .search-bar[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{margin:0;padding:0}.search-bar[_ngcontent-%COMP%] .mat-hint[_ngcontent-%COMP%]{font-size:1em} .search-bar mat-form-field .mat-icon{margin-top:6px;margin-bottom:-6px} .search-bar mat-form-field .mat-form-field-wrapper{padding:10px 0 0} .search-bar mat-form-field .mat-form-field-infix{padding-top:10px;padding-bottom:10px;border-top-width:0} .search-bar mat-form-field .mat-icon-button.hidden{display:none} .search-bar.dark-bg .mat-form-field-appearance-outline .mat-form-field-outline, .search-bar.dark-bg .mat-form-field-label, .search-bar.dark-bg .mat-hint, .search-bar.dark-bg input{color:#fff} .search-bar.dark-bg mat-form-field ::-moz-placeholder{color:hsla(0,0%,100%,.7)} .search-bar.dark-bg mat-form-field :-ms-input-placeholder{color:hsla(0,0%,100%,.7)} .search-bar.dark-bg mat-form-field ::placeholder{color:hsla(0,0%,100%,.7)} .search-bar.light-bg .mat-form-field-appearance-outline .mat-form-field-outline, .search-bar.light-bg .mat-form-field-label, .search-bar.light-bg .mat-hint, .search-bar.light-bg input{color:#000} .search-bar.light-bg mat-form-field ::-moz-placeholder{color:#666} .search-bar.light-bg mat-form-field :-ms-input-placeholder{color:#666} .search-bar.light-bg mat-form-field ::placeholder{color:#666} #search-field .mat-form-field-outline{background-color:#fff;border-radius:5px} .mat-option-text{font-size:16px;overflow:visible!important;text-overflow:unset!important}.search-bar-header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .search-bar-header[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{padding:0;margin:0}.btn-cancel[_ngcontent-%COMP%], .btn-search[_ngcontent-%COMP%]{margin-top:4px;margin-bottom:-4px}"]}),j4);function Y4(e,t){if(1&e&&(ds(0,"span",3),Js(1),hs()),2&e){var n=As();Oa(1),el(n.selectedSort.label)}}function Q4(e,t){if(1&e){var n=vs();ds(0,"mat-option",4),ks("click",function(){rn(n);var e=t.$implicit;return As().sortMethodSelected.emit(e)}),ds(1,"span",5),Js(2),hs(),hs()}if(2&e){var i=t.$implicit;us("value",i)("ngClass","sort-by-"+i.name.toLowerCase()),Oa(2),el(i.label)}}var X4,$4=((X4=function(){function e(){b(this,e),this.sortMethodSelected=new Vu}return w(e,[{key:"ngOnInit",value:function(){}},{key:"sortMethodsList",get:function(){return Object.values(this.sortMethods)}}]),e}()).\u0275fac=function(e){return new(e||X4)},X4.\u0275cmp=pt({type:X4,selectors:[["app-search-sort"]],inputs:{selectedSort:"selectedSort",sortMethods:"sortMethods"},outputs:{sortMethodSelected:"sortMethodSelected"},decls:7,vars:3,consts:[[3,"value","valueChange"],["class","selected-sort-label",4,"ngIf"],[3,"value","ngClass","click",4,"ngFor","ngForOf"],[1,"selected-sort-label"],[3,"value","ngClass","click"],[1,"sort-label"]],template:function(e,t){1&e&&(ds(0,"mat-form-field"),ds(1,"mat-label"),Js(2,"Sort By:"),hs(),ds(3,"mat-select",0),ks("valueChange",function(e){return t.selectedSort=e}),ds(4,"mat-select-trigger"),os(5,Y4,2,1,"span",1),hs(),os(6,Q4,3,3,"mat-option",2),hs(),hs()),2&e&&(Oa(3),us("value",t.selectedSort),Oa(2),us("ngIf",t.selectedSort),Oa(1),us("ngForOf",t.sortMethodsList))},directives:[wT,hT,KL,XL,wh,bh,JA,yh,ly],styles:[".mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),X4);function K4(e,t){if(1&e&&fs(0,"app-details-link",3),2&e){var n=t.$implicit;us("url",n.url)("label",n.label)("inverted",!0)("allCaps",!1)("size",1)("externalLink",!0)}}var Z4,J4=((Z4=function(){function e(){b(this,e),this.playerVars={cc_load_policy:1,modestbranding:1,rel:0,showinfo:0}}return w(e,[{key:"windowWidthFactor",get:function(){var e=window.innerWidth;return e<600?.7:e>=600&&e<960?.8:e>=960&&e<1280?.9:e>=1280?1:void 0}},{key:"videoWidthFactor",get:function(){switch(this.videoSize){case"large":return 1;case"medium":return.75;case"small":return.5}}},{key:"videoWidth",get:function(){return Math.floor(560*this.videoWidthFactor*this.windowWidthFactor)}},{key:"videoHeight",get:function(){return Math.floor(315*this.videoWidthFactor*this.windowWidthFactor)}},{key:"ngOnInit",value:function(){}},{key:"hideVideo",value:function(){localStorage.setItem("shouldHideTutorialVideo","true")}}]),e}()).\u0275fac=function(e){return new(e||Z4)},Z4.\u0275cmp=pt({type:Z4,selectors:[["app-tutorial-video"]],inputs:{videoSize:"videoSize",videoId:"videoId",instructions:"instructions",links:"links"},decls:8,vars:9,consts:[["mat-mini-fab","",1,"hide-video",3,"click"],[3,"width","height","videoId","playerVars"],["class","video-link",3,"url","label","inverted","allCaps","size","externalLink",4,"ngFor","ngForOf"],[1,"video-link",3,"url","label","inverted","allCaps","size","externalLink"]],template:function(e,t){1&e&&(ds(0,"div"),ds(1,"button",0),ks("click",function(){return t.hideVideo()}),ds(2,"mat-icon"),Js(3,"close"),hs(),hs(),fs(4,"youtube-player",1),ds(5,"markdown"),Js(6),hs(),os(7,K4,1,6,"app-details-link",2),hs()),2&e&&(rl("video-preview ",t.videoSize,""),Oa(4),us("width",t.videoWidth)("height",t.videoHeight)("videoId",t.videoId)("playerVars",t.playerVars),Oa(2),el(t.instructions),Oa(1),us("ngForOf",t.links))},directives:[kP,BR,SG,QW,bh,PK],styles:[".video-preview[_ngcontent-%COMP%]{position:relative;display:block;margin:2em;padding:24px;background-color:#232d4b;color:#fff}.video-preview[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;text-align:center;padding:.5em}.video-preview.large[_ngcontent-%COMP%]{width:440px}@media (min-width:600px){.video-preview.large[_ngcontent-%COMP%]{width:496px}}@media (min-width:960px){.video-preview.large[_ngcontent-%COMP%]{width:552px}}@media (min-width:1280px){.video-preview.large[_ngcontent-%COMP%]{width:608px}}.video-preview.medium[_ngcontent-%COMP%]{width:342px}@media (min-width:600px){.video-preview.medium[_ngcontent-%COMP%]{width:384px}}@media (min-width:960px){.video-preview.medium[_ngcontent-%COMP%]{width:426px}}@media (min-width:1280px){.video-preview.medium[_ngcontent-%COMP%]{width:468px}}.video-preview.small[_ngcontent-%COMP%]{width:244px}@media (min-width:600px){.video-preview.small[_ngcontent-%COMP%]{width:272px}}@media (min-width:960px){.video-preview.small[_ngcontent-%COMP%]{width:300px}}@media (min-width:1280px){.video-preview.small[_ngcontent-%COMP%]{width:328px}}.hide-video[_ngcontent-%COMP%]{position:absolute;top:-12px;right:-12px}.video-link[_ngcontent-%COMP%]{display:block;margin-top:1em;color:#e57200}"]}),Z4);function e5(e,t){if(1&e){var n=vs();ds(0,"div"),ds(1,"button",1),ks("click",function(){return rn(n),As().openAdd()}),ds(2,"mat-icon"),Js(3,"add"),hs(),hs(),hs()}if(2&e){var i=As();Oa(1),Ps("matTooltip",i.addLabel)}}var t5,n5=((t5=function(){function e(t){b(this,e),this.router=t}return w(e,[{key:"ngOnInit",value:function(){}},{key:"openAdd",value:function(){this.router.navigateByUrl(this.addLink)}}]),e}()).\u0275fac=function(e){return new(e||t5)(ls(EX))},t5.\u0275cmp=pt({type:t5,selectors:[["app-add-button"]],inputs:{currentUser:"currentUser",addLink:"addLink",addLabel:"addLabel"},decls:1,vars:1,consts:[[4,"ngIf"],["mat-mini-fab","","color","primary","aria-label","Add",1,"add-button",3,"matTooltip","click"]],template:function(e,t){1&e&&os(0,e5,4,1,"div",0),2&e&&us("ngIf",t.currentUser&&t.currentUser.permissions.includes("create_resource"))},directives:[wh,kP,CF,BR],styles:[""]}),t5);function i5(e,t){if(1&e){var n=vs();ps(0),ds(1,"mat-list-item",5),ks("click",function(){rn(n);var e=t.$implicit;return As(2).selectCategory(e)}),ds(2,"mat-icon"),Js(3,"chevron_left"),hs(),ds(4,"span",6),Js(5),hs(),hs(),ms()}if(2&e){var i=t.$implicit;Oa(5),tl(" ",i.name," ")}}function r5(e,t){if(1&e&&(ds(0,"mat-list",3),os(1,i5,6,1,"ng-container",4),hs()),2&e){var n=As();Oa(1),us("ngForOf",n.parentList())}}function a5(e,t){if(1&e&&(ds(0,"span",13),Js(1),hs()),2&e){var n=As().$implicit;Oa(1),nl("",n.name," - ",n.hit_count," result")}}function o5(e,t){if(1&e&&(ds(0,"span",13),Js(1),hs()),2&e){var n=As().$implicit;Oa(1),nl("",n.name," - ",n.hit_count," results")}}function s5(e,t){1&e&&(ds(0,"mat-icon",14),Js(1,"arrow_right "),hs())}function l5(e,t){if(1&e){var n=vs();ds(0,"button",10),ks("click",function(){rn(n);var e=t.$implicit;return As(2).selectCategory(e)}),os(1,a5,2,2,"span",11),os(2,o5,2,2,"span",11),os(3,s5,2,0,"mat-icon",12),hs()}if(2&e){var i=t.$implicit,r=As(2);Oa(1),us("ngIf",1==i.hit_count),Oa(1),us("ngIf",1!=i.hit_count),Oa(1),us("ngIf",r.hasChildren(i))}}function u5(e,t){if(1&e&&(ps(0),ds(1,"button",7),ds(2,"mat-icon"),Js(3,"topic"),hs(),Js(4),ds(5,"mat-icon"),Js(6,"arrow_drop_down"),hs(),hs(),ds(7,"mat-menu",null,8),os(9,l5,4,3,"button",9),hs(),ms()),2&e){var n=ss(8),i=As();Oa(1),us("matMenuTriggerFor",n)("ngClass.gt-sm","select-topic"),Oa(3),tl(" Filter by ",i.category.level<=0?"Topic":"Subtopic"," "),Oa(5),us("ngForOf",i.categories)}}function c5(e,t){1&e&&fs(0,"div",15)}var d5,h5=((d5=function(){function e(t,n){var i=this;b(this,e),this.categoriesService=t,this.changeDetectorRef=n,this.categorySelected=new Vu,this.categoriesById={},this.loading=!0,this.categoriesService.categoriesById&&(this.categoriesById=this.categoriesService.categoriesById,this.loading=!1),this.categoriesService.updated.subscribe(function(){i.categoriesById=i.categoriesService.categoriesById,i.loading=!1,i.changeDetectorRef.detectChanges()})}return w(e,[{key:"categories",get:function(){return this.getChildrenWithHits(this.category)}},{key:"selectCategory",value:function(e){this.categorySelected.emit(e)}},{key:"parentList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.category,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.parent?(t.unshift(e.parent),this.parentList(e.parent,t)):t}},{key:"hasChildren",value:function(e){var t=null===e.id?e:this.categoriesById[e.id];return t&&t.children&&t.children.length>0}},{key:"getChildrenWithHits",value:function(e){return this.hasChildren(e)?e.children.filter(function(e){return e.hit_count>0}):[]}}]),e}()).\u0275fac=function(e){return new(e||d5)(ls(V4),ls(Jl))},d5.\u0275cmp=pt({type:d5,selectors:[["app-search-topics"]],inputs:{category:"category"},outputs:{categorySelected:"categorySelected"},decls:4,vars:3,consts:[["class","parent-topics","dense","",4,"ngIf"],[4,"ngIf","ngIfElse"],["loadingMessage",""],["dense","",1,"parent-topics"],[4,"ngFor","ngForOf"],[1,"show-all",3,"click"],[1,"filter-facet-label"],["mat-button","",3,"matMenuTriggerFor","ngClass.gt-sm"],["topicMenu",""],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"],["class","child-label",4,"ngIf"],["matTooltip","Subtopics",4,"ngIf"],[1,"child-label"],["matTooltip","Subtopics"],[1,"placeholder"]],template:function(e,t){if(1&e&&(os(0,r5,2,1,"mat-list",0),os(1,u5,10,4,"ng-container",1),os(2,c5,1,0,"ng-template",null,2,ic)),2&e){var n=ss(3);us("ngIf",t.category&&t.parentList().length>0),Oa(1),us("ngIf",!t.loading&&t.category&&t.category.children&&t.category.children.length>0)("ngIfElse",n)}},directives:[wh,JR,bh,nL,BR,kP,SL,ly,kL,vL,CF],styles:[".mat-hint{display:block;color:#e57200;font-size:1rem;padding-top:.5rem}.mat-menu-trigger[_ngcontent-%COMP%]{min-width:100%;min-height:36px}div.current-facet-label[_ngcontent-%COMP%]{cursor:pointer;font-weight:700;color:#4e4e4e;padding:5px 0}.show-all[_ngcontent-%COMP%]{cursor:pointer}button[_ngcontent-%COMP%]{width:100%;text-align:left} .mat-menu-panel{max-width:400px!important;width:400px} .mat-menu-panel .mat-menu-content{width:auto} .mat-menu-panel .mat-menu-content .mat-menu-item{text-overflow:unset}.parent-topics[_ngcontent-%COMP%], .placeholder[_ngcontent-%COMP%], .select-topic[_ngcontent-%COMP%], .parent-topics mat-list-item{min-width:100%;min-height:36px}"]}),d5);function f5(e,t){if(1&e){var n=vs();ds(0,"button",4),ks("click",function(){rn(n);var e=t.$implicit;return As(2).select(e.value)}),Js(1),hs()}if(2&e){var i=t.$implicit,r=As(2);Oa(1),il(" ",r.label_map[i.value]," - ",i.count," result",1===i.count?"":"s"," ")}}function p5(e,t){if(1&e&&(ds(0,"mat-hint"),Js(1),hs()),2&e){var n=As(2);Oa(1),el(n.notApplicableMessage)}}function m5(e,t){if(1&e){var n=vs();ps(0),ds(1,"button",2),ds(2,"mat-icon"),Js(3),hs(),Js(4),ds(5,"mat-icon"),Js(6,"arrow_drop_down"),hs(),hs(),ds(7,"mat-menu",null,3),ds(9,"button",4),ks("click",function(){return rn(n),As().select()}),Js(10),hs(),os(11,f5,2,3,"button",5),hs(),os(12,p5,2,1,"mat-hint",6),ms()}if(2&e){var i=ss(8),r=As();Oa(1),us("matMenuTriggerFor",i),Oa(2),el(r.label_icon),Oa(1),tl(" ",r.hasSelection()?r.label_map[r.selectedAgg().value]:r.label_title," "),Oa(6),el(r.label_any),Oa(1),us("ngForOf",r.aggregations),Oa(1),us("ngIf",r.isNotApplicable)}}function g5(e,t){1&e&&fs(0,"app-loading",7),2&e&&us("isField",!0)}var v5,y5=((v5=function(){function e(){b(this,e),this.filterSelected=new Vu}return w(e,[{key:"ngOnInit",value:function(){}},{key:"select",value:function(e){this.filterSelected.emit(e)}},{key:"hasSelection",value:function(){return 1===this.aggregations.filter(function(e){return e.is_selected}).length}},{key:"selectedAgg",value:function(){return this.hasSelection()?this.aggregations.filter(function(e){return e.is_selected})[0]:{value:null,count:0,is_selected:!0}}}]),e}()).\u0275fac=function(e){return new(e||v5)},v5.\u0275cmp=pt({type:v5,selectors:[["app-search-filter"]],inputs:{label_title:"label_title",label_icon:"label_icon",label_any:"label_any",label_map:"label_map",aggregations:"aggregations",isNotApplicable:"isNotApplicable",notApplicableMessage:"notApplicableMessage"},outputs:{filterSelected:"filterSelected"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["loadingMessage",""],["mat-button","",3,"matMenuTriggerFor"],["menuItems",""],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"isField"]],template:function(e,t){if(1&e&&(os(0,m5,13,6,"ng-container",0),os(1,g5,1,1,"ng-template",null,1,ic)),2&e){var n=ss(2);us("ngIf",t.aggregations)("ngIfElse",n)}},directives:[wh,kP,SL,BR,kL,vL,bh,dT,zZ],styles:[".mat-hint{display:block;color:#e57200;font-size:1rem;padding-top:.5rem}button[_ngcontent-%COMP%]{width:100%;text-align:left} .mat-menu-panel{max-width:400px!important;width:400px} .mat-menu-panel .mat-menu-content{width:auto} .mat-menu-panel .mat-menu-content .mat-menu-item{text-overflow:unset}.mat-menu-trigger[_ngcontent-%COMP%]{min-width:100%;min-height:36px}"]}),v5);function _5(e,t){if(1&e){var n=vs();ps(0),ds(1,"mat-chip",8),ks("click",function(){return rn(n),As(2).mappedResultsChipClicked.emit(!1)}),ds(2,"span",9),Js(3,"Mapped results only"),hs(),ds(4,"mat-icon"),Js(5,"close"),hs(),hs(),ms()}}function b5(e,t){if(1&e){var n=vs();ps(0),ds(1,"mat-chip",10),ks("click",function(){return rn(n),As(2).keywordChipClicked.emit()}),ds(2,"span",9),Js(3),hs(),ds(4,"mat-icon"),Js(5,"close"),hs(),hs(),ms()}if(2&e){var i=As(2);Oa(3),tl('"',i.query.words,'"')}}function k5(e,t){if(1&e){var n=vs();ps(0),ds(1,"mat-chip",11),ks("click",function(){return rn(n),As(2).ageRangeChipClicked.emit()}),ds(2,"span",9),Js(3),hs(),ds(4,"mat-icon"),Js(5,"close"),hs(),hs(),ms()}if(2&e){var i=t.$implicit,r=As(2);Oa(3),el(r.ageLabels[i])}}function w5(e,t){if(1&e){var n=vs();ps(0),ds(1,"mat-chip",12),ks("click",function(){return rn(n),As(2).languageChipClicked.emit()}),ds(2,"span",9),Js(3),hs(),ds(4,"mat-icon"),Js(5,"close"),hs(),hs(),ms()}if(2&e){var i=t.$implicit,r=As(2);Oa(3),el(r.languageLabels[i])}}function C5(e,t){if(1&e){var n=vs();ds(0,"div"),ds(1,"mat-chip",13),ks("click",function(){return rn(n),As(2).typeChipClicked.emit()}),ds(2,"span",9),Js(3),hs(),ds(4,"mat-icon"),Js(5,"close"),hs(),hs(),hs()}if(2&e){var i=As(2);Oa(3),el(i.typeLabels[i.query.types[0]])}}function x5(e,t){if(1&e&&(ps(0),Js(1),ds(2,"mat-icon"),Js(3,"chevron_right"),hs(),ms()),2&e){var n=As(3);Oa(1),tl(" ",n.query.category.parent.parent.name," ")}}function S5(e,t){if(1&e&&(ps(0),Js(1),ds(2,"mat-icon"),Js(3,"chevron_right"),hs(),ms()),2&e){var n=As(3);Oa(1),tl(" ",n.query.category.parent.name," ")}}function A5(e,t){if(1&e){var n=vs();ps(0),ds(1,"mat-chip",14),ks("click",function(){return rn(n),As(2).categoryChipClicked.emit()}),ds(2,"div",15),os(3,x5,4,1,"ng-container",5),os(4,S5,4,1,"ng-container",5),Js(5),hs(),ds(6,"mat-icon"),Js(7,"close"),hs(),hs(),ms()}if(2&e){var i=As(2);Oa(3),us("ngIf",i.query.category.parent&&i.query.category.parent.parent),Oa(1),us("ngIf",i.query.category.parent),Oa(1),tl(" ",i.query.category.name," ")}}function O5(e,t){if(1&e){var n=vs();ds(0,"a",16),ks("click",function(){return rn(n),As(2).clearAllClicked.emit()}),Js(1,"Clear All"),hs()}}function E5(e,t){if(1&e&&(ds(0,"div",1),ds(1,"h4",2),Js(2,"Selected Filters:"),hs(),ds(3,"mat-chip-list",3,4),os(5,_5,6,0,"ng-container",5),os(6,b5,6,1,"ng-container",5),os(7,k5,6,1,"ng-container",6),os(8,w5,6,1,"ng-container",6),os(9,C5,6,1,"div",5),os(10,A5,8,3,"ng-container",5),hs(),os(11,O5,2,0,"a",7),hs()),2&e){var n=As();Oa(5),us("ngIf",n.restrictToMappedResults),Oa(1),us("ngIf",n.query.hasWords),Oa(1),us("ngForOf",n.query.ages),Oa(1),us("ngForOf",n.query.languages),Oa(1),us("ngIf",n.query.hasTypes),Oa(1),us("ngIf",n.query.hasCategory),Oa(1),us("ngIf",n.query.hasFilters)}}var T5,P5=((T5=function(){function e(){b(this,e),this.mappedResultsChipClicked=new Vu,this.keywordChipClicked=new Vu,this.ageRangeChipClicked=new Vu,this.languageChipClicked=new Vu,this.typeChipClicked=new Vu,this.categoryChipClicked=new Vu,this.clearAllClicked=new Vu}return w(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||T5)},T5.\u0275cmp=pt({type:T5,selectors:[["app-search-filters-breadcrumbs"]],inputs:{query:"query",restrictToMappedResults:"restrictToMappedResults",ageLabels:"ageLabels",languageLabels:"languageLabels",typeLabels:"typeLabels"},outputs:{mappedResultsChipClicked:"mappedResultsChipClicked",keywordChipClicked:"keywordChipClicked",ageRangeChipClicked:"ageRangeChipClicked",languageChipClicked:"languageChipClicked",typeChipClicked:"typeChipClicked",categoryChipClicked:"categoryChipClicked",clearAllClicked:"clearAllClicked"},decls:1,vars:1,consts:[["fxLayout","row","fxFlex.gt-sm","100%","fxLayoutGap","10px",4,"ngIf"],["fxLayout","row","fxFlex.gt-sm","100%","fxLayoutGap","10px"],["fxShow","","fxHide.lt-md",""],["ngClass.lt-md","applied-filters-small",1,"applied-filters"],["appliedFilters",""],[4,"ngIf"],[4,"ngFor","ngForOf"],["mat-button","","fxShow","","fxHide.lt-md","",3,"click",4,"ngIf"],[1,"applied-filter","applied-filter-mapped",3,"click"],[1,"applied-filter-label"],[1,"applied-filter","applied-filter-keyword",3,"click"],[1,"applied-filter","applied-filter-age",3,"click"],[1,"applied-filter","applied-filter-language",3,"click"],[1,"applied-filter","applied-filter-type",3,"click"],[1,"applied-filter","applied-filter-topic",3,"click"],["fxLayout","row","fxLayoutAlign","center center",1,"applied-filter-label"],["mat-button","","fxShow","","fxHide.lt-md","",3,"click"]],template:function(e,t){1&e&&os(0,E5,12,7,"div",0),2&e&&us("ngIf",t.query.hasFilters)},directives:[wh,Xy,v_,n_,my,kD,ly,bh,gD,BR,eb,wP],styles:[".applied-filters[_ngcontent-%COMP%]{grid-area:filters;margin-left:0;justify-self:start}.applied-filters[_ngcontent-%COMP%] .mat-chip-list-wrapper{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;overflow-x:auto;padding-bottom:1em}.applied-filters[_ngcontent-%COMP%] .mat-chip-list-wrapper .mat-chip{-ms-flex:0 0 auto;flex:0 0 auto}.applied-filters[_ngcontent-%COMP%] .applied-filter[_ngcontent-%COMP%]{color:#fff;background-color:#e57200}.applied-filters[_ngcontent-%COMP%] .applied-filter[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:.75rem;margin-right:-.25rem;font-size:1.25rem;line-height:1.25}.applied-filters[_ngcontent-%COMP%] .applied-filter[_ngcontent-%COMP%] .applied-filter-label[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:0}.applied-filters.applied-filters-small[_ngcontent-%COMP%] .applied-filter[_ngcontent-%COMP%]{font-size:.75rem}.applied-filters.applied-filters-small[_ngcontent-%COMP%] .applied-filter[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:1rem;line-height:1.5}"]}),T5),D5=["paginator"],M5=["mapTemplate"];function I5(e,t){if(1&e&&fs(0,"app-tutorial-video",60),2&e){var n=As();us("videoSize",n.videoSize)("videoId",n.videoId)("instructions",n.videoInstructions)("links",n.videoLinks)}}function R5(e,t){if(1&e&&fs(0,"app-tutorial-video",61),2&e){var n=As();us("videoSize",n.videoSize)("videoId",n.videoId)("instructions",n.videoInstructions)("links",n.videoLinks)}}function L5(e,t){if(1&e&&fs(0,"app-add-button",62),2&e){var n=As();us("addLabel","Add Resource")("addLink","resources/add")("currentUser",n.currentUser)}}function F5(e,t){if(1&e&&fs(0,"app-type-icon",63),2&e){var n=As();us("iconType",n.selectedType&&n.selectedType.name)("size",1)}}function N5(e,t){if(1&e&&(ds(0,"span",64),Js(1),hs()),2&e){var n=As();Oa(1),el(n.selectedType.label)}}function V5(e,t){if(1&e){var n=vs();ds(0,"mat-option",65),ks("click",function(){rn(n);var e=t.$implicit;return As().selectType(e.name)}),fs(1,"app-type-icon",63),ds(2,"span",64),Js(3),hs(),hs()}if(2&e){var i=t.$implicit;us("value",i),Oa(1),us("iconType",i.name)("size",1),Oa(2),el(i.label)}}function B5(e,t){if(1&e){var n=vs();ds(0,"app-search-topics",66),ks("categorySelected",function(e){return rn(n),As().selectCategory(e)}),hs()}2&e&&us("category",As().selectedCategory)("ngClass","filter-by-topic")}function H5(e,t){if(1&e){var n=vs();ds(0,"div"),ds(1,"app-search-filter",67),ks("filterSelected",function(e){return rn(n),As().selectAgeRange(e)}),hs(),hs()}if(2&e){var i=As();Oa(1),us("aggregations",i.query.age_counts)("label_title","Filter by Age")("label_any","Any age")("label_map",i.ageLabels)("label_icon","cake")("ngClass","filter-by-age")("isNotApplicable",!i.loading&&!i.query.hasAgeCounts)("notApplicableMessage","No age restrictions available for these search results.")}}function z5(e,t){if(1&e){var n=vs();ds(0,"div"),ds(1,"app-search-filter",67),ks("filterSelected",function(e){return rn(n),As().selectLanguage(e)}),hs(),hs()}if(2&e){var i=As();Oa(1),us("aggregations",i.query.language_counts)("label_title","Filter by Language")("label_any","Any language")("label_map",i.languageLabels)("label_icon","language")("ngClass","filter-by-language")("isNotApplicable",!i.loading&&!i.query.hasLanguageCounts)("notApplicableMessage","No language restrictions available for these search results.")}}function G5(e,t){if(1&e&&fs(0,"app-tutorial-video",61),2&e){var n=As();us("videoSize",n.videoSize)("videoId",n.videoId)("instructions",n.videoInstructions)("links",n.videoLinks)}}function j5(e,t){if(1&e&&fs(0,"app-tutorial-video",60),2&e){var n=As();us("videoSize",n.videoSize)("videoId",n.videoId)("instructions",n.videoInstructions)("links",n.videoLinks)}}function U5(e,t){1&e&&(ds(0,"div",68),Js(1,"All Resources"),hs())}function W5(e,t){if(1&e&&(ds(0,"div"),fs(1,"app-type-icon",63),Js(2),hs()),2&e){var n=As().$implicit;rl("type-buttons ",n.name,""),Oa(1),us("iconType",n.name)("size",1),Oa(1),tl(" ",n.label," ")}}function q5(e,t){1&e&&(ds(0,"mat-tab"),os(1,W5,3,6,"ng-template",32),hs())}function Y5(e,t){if(1&e&&(ps(0),Js(1),ms()),2&e){var n=As();Oa(1),tl("",n.numTotalResults," results")}}function Q5(e,t){if(1&e&&(ps(0),Js(1),ms()),2&e){var n=As();Oa(1),tl("",n.hits.length," mapped results")}}function X5(e,t){1&e&&(ds(0,"div",73),ds(1,"h2"),Js(2,"No results currently available."),hs(),ds(3,"p"),Js(4,"We could not find any results for your search. Please try removing some of the conditions by clicking on the 'x' in the filter tiles above. This will broaden the search and give you more results."),hs(),ds(5,"h3"),Js(6,"Check back soon for more updates!"),hs(),hs())}function $5(e,t){if(1&e&&(ds(0,"h4"),Js(1),hs()),2&e){var n=As(4);Oa(1),il("Showing ",n.numResultsFrom,"-",n.numResultsTo," of ",n.numTotalResults," results")}}function K5(e,t){if(1&e&&(ds(0,"h4"),Js(1),hs()),2&e){var n=As(4);Oa(1),il("Showing ",n.numResultsFrom,"-",n.numResultsTo," of ",n.numTotalResults," mapped results.")}}function Z5(e,t){if(1&e&&(ds(0,"div",76),os(1,$5,2,3,"h4",24),os(2,K5,2,3,"h4",24),hs()),2&e){var n=As(3);is("data-num-results",n.restrictToMappedResults?n.hits.length:n.numTotalResults),Oa(1),us("ngIf",!n.restrictToMappedResults),Oa(1),us("ngIf",n.restrictToMappedResults)}}function J5(e,t){if(1&e){var n=vs();ds(0,"div",74),os(1,Z5,3,3,"div",75),ds(2,"div",71),ds(3,"app-search-sort",27),ks("sortMethodSelected",function(e){return rn(n),As(2).reSort(e.name,!0)}),hs(),hs(),hs()}if(2&e){var i=As(2);Oa(1),us("ngIf",i.paginatorElement),Oa(2),us("selectedSort",i.selectedSort)("sortMethods",i.sortMethods)}}function e7(e,t){if(1&e){var n=vs();ds(0,"app-search-filters-breadcrumbs",77),ks("ageRangeChipClicked",function(){return rn(n),As(2).selectAgeRange()})("categoryChipClicked",function(){return rn(n),As(2).removeCategory()})("clearAllClicked",function(){return rn(n),As(2).clearAllFilters()})("keywordChipClicked",function(){return rn(n),As(2).removeWords()})("languageChipClicked",function(){return rn(n),As(2).selectLanguage()})("mappedResultsChipClicked",function(e){return rn(n),As(2).listMapResultsOnly(e)})("typeChipClicked",function(){return rn(n),As(2).selectType()}),hs()}if(2&e){var i=As(2);us("ageLabels",i.ageLabels)("fxHide",!i.showBreadcrumbs())("fxShow",i.showBreadcrumbs())("languageLabels",i.languageLabels)("query",i.query)("restrictToMappedResults",i.restrictToMappedResults)("typeLabels",i.typeLabels)}}function t7(e,t){if(1&e&&fs(0,"app-search-result",79),2&e){var n=t.$implicit,i=t.index,r=As(3);us("hit",n)("mapLoc",r.loc)("currentUser",r.currentUser)("ngClass","sort-order-"+i)}}function n7(e,t){if(1&e&&(ds(0,"div"),os(1,t7,1,4,"app-search-result",78),hs()),2&e){var n=As(2);Oa(1),us("ngForOf",n.hits)}}function i7(e,t){if(1&e&&(ps(0),os(1,X5,7,0,"div",69),os(2,J5,4,3,"div",70),ds(3,"div",71),os(4,e7,1,7,"app-search-filters-breadcrumbs",72),hs(),os(5,n7,2,1,"div",24),ms()),2&e){var n=As();Oa(1),us("ngIf",0===(null==n.query?null:n.query.hits.length)),Oa(1),us("ngIf",0!=(null==n.query?null:n.query.total)),Oa(2),us("ngIf",n.query),Oa(1),us("ngIf",n.hits.length>0)}}function r7(e,t){1&e&&(ds(0,"mat-icon"),Js(1,"check_box_outline_blank"),hs())}function a7(e,t){1&e&&(ds(0,"mat-icon"),Js(1,"check_box"),hs())}function o7(e,t){1&e&&(ps(0),Js(1,"Set Location"),ms())}function s7(e,t){if(1&e&&(ps(0),Js(1),ms()),2&e){var n=As(2);Oa(1),tl("Location: ",n.storedZip,"")}}function l7(e,t){1&e&&(ps(0),Js(1,"Your current location"),ms())}function u7(e,t){1&e&&(ps(0),Js(1,"Using Map's Center"),ms())}function c7(e,t){if(1&e){var n=vs();ds(0,"button",89),ks("click",function(e){rn(n),As();var t=ss(1);return As().useGPSLocation(e,t)}),Js(1,"Current Location"),hs()}}function d7(e,t){if(1&e){var n=vs();ds(0,"mat-expansion-panel",80,81),ks("afterExpand",function(){rn(n);var e=ss(10);return As().focusOnInput(e)}),ds(2,"mat-expansion-panel-header"),os(3,o7,2,0,"ng-container",24),os(4,s7,2,1,"ng-container",24),os(5,l7,2,0,"ng-container",24),os(6,u7,2,0,"ng-container",24),hs(),ds(7,"div",82),ds(8,"mat-form-field",83),ds(9,"input",84,85),ks("ngModelChange",function(e){return rn(n),As().storedZip=e})("keyup.enter",function(e){rn(n);var t=ss(1);return As().submitZip(e,t)}),hs(),hs(),ds(11,"div",86),ds(12,"button",87),ks("click",function(e){rn(n);var t=ss(1);return As().submitZip(e,t)}),Js(13,"Save"),hs(),os(14,c7,2,0,"button",88),hs(),hs(),hs()}if(2&e){var i=As();us("ngClass","zipCodeSetButton mat-elevation-z1")("expanded",i.showLocationWindow()),Oa(3),us("ngIf",i.locationMode===i.locationModes.default),Oa(1),us("ngIf",i.locationMode===i.locationModes.zipcode),Oa(1),us("ngIf",i.locationMode===i.locationModes.gps),Oa(1),us("ngIf",i.locationMode===i.locationModes.map),Oa(1),us("ngClass","zipCodeSet"),Oa(2),us("ngModel",i.storedZip),Oa(5),us("ngIf",i.gpsEnabled)}}var h7=function(){return{x:48,y:48}},f7=function(e){return{url:"/assets/map/your-location.svg",anchor:e}};function p7(e,t){if(1&e&&fs(0,"agm-marker",94),2&e){var n=As(2);us("latitude",n.loc.lat)("longitude",n.loc.lng)("iconUrl",Au(4,f7,Su(3,h7)))}}var m7=function(){return{x:24,y:24}},g7=function(e,t){return{url:e,anchor:t}};function v7(e,t){if(1&e){var n=vs();ps(0),ds(1,"agm-circle",95),ks("circleClick",function(){rn(n);var e=t.$implicit;return As(2).showInfoWindow(e)}),hs(),ds(2,"agm-marker",96),ks("markerClick",function(){rn(n);var e=t.$implicit;return As(2).showInfoWindow(e)}),hs(),ms()}if(2&e){var i=t.$implicit,r=As(2);Oa(1),us("latitude",i.latitude+r.mapJitter(i.id,!0))("longitude",i.longitude+r.mapJitter(i.id,!1))("radius",r.circleRadius)("fillColor","location"===i.type.toLowerCase()?"#6C799C":"#E57200")("clickable",!0)("visible",r.isInfoWindowOpen&&r.selectedMapHit.id==i.id),Oa(1),us("latitude",i.latitude+r.mapJitter(i.id,!0))("longitude",i.longitude+r.mapJitter(i.id,!1))("iconUrl",Ou(10,g7,"/assets/map/"+i.type+"-no-address.svg",Su(9,m7)))}}var y7=function(){return{x:16,y:16}};function _7(e,t){if(1&e){var n=vs();ps(0),ds(1,"agm-marker",96),ks("markerClick",function(){rn(n);var e=t.$implicit;return As(2).showInfoWindow(e)}),hs(),ms()}if(2&e){var i=t.$implicit;Oa(1),us("latitude",i.latitude)("longitude",i.longitude)("iconUrl",Ou(4,g7,"/assets/map/"+i.type+".svg",Su(3,y7)))}}function b7(e,t){if(1&e){var n=vs();ps(0),ds(1,"agm-info-window",97),ks("infoWindowClose",function(){return rn(n),As(2).closeInfoWindow()}),ds(2,"a",98),ks("click",function(){rn(n);var e=As(2);return e.goSelectedMapResource(e.selectedMapResource)}),Js(3),hs(),ds(4,"a",99),ks("click",function(){rn(n);var e=As(2);return e.goSelectedMapResource(e.selectedMapResource)}),Js(5),hs(),hs(),ms()}if(2&e){var i=As(2);Oa(1),us("isOpen",i.isInfoWindowOpen)("latitude",i.selectedMapHit.latitude)("longitude",i.selectedMapHit.longitude),Oa(1),Ms("href","/#/",i.selectedMapResource.type.toLowerCase(),"/",i.selectedMapResource.id,"",Pr),Oa(1),el(i.selectedMapResource.title),Oa(2),tl(" ",i.selectedMapHit.no_address?"In-home therapy":i.selectedMapHit.type," Details")}}function k7(e,t){if(1&e){var n=vs();ds(0,"agm-map",90,91),ks("mapReady",function(e){return rn(n),As().mapLoad(e)})("mapClick",function(){return rn(n),As().closeInfoWindow()})("zoomChange",function(e){return rn(n),As().updateZoom(e)})("boundsChange",function(e){return rn(n),As().updateResultsList(e)}),ds(2,"agm-marker-cluster",92),os(3,p7,1,6,"agm-marker",93),os(4,v7,3,13,"ng-container",33),os(5,_7,2,7,"ng-container",33),hs(),os(6,b7,6,7,"ng-container",24),hs()}if(2&e){var i=As();us("latitude",i.loc.lat)("longitude",i.loc.lng)("streetViewControl",!1)("zoom",i.mapZoomLevel?i.mapZoomLevel:i.defaultZoom)("scrollwheel",null),Oa(2),us("imagePath","assets/map/m")("maxZoom",8),Oa(1),us("ngIf",i.loc),Oa(1),us("ngForOf",i.hitsWithNoAddress),Oa(1),us("ngForOf",i.hitsWithAddress),Oa(1),us("ngIf",i.selectedMapResource)}}var w7=function(){return["/studies"]};function C7(e,t){if(1&e&&(ds(0,"div",100),ds(1,"mat-card"),ds(2,"mat-card-content"),ds(3,"h3"),Js(4,"Highlighted Study: "),ds(5,"a",101),Js(6),hs(),hs(),ds(7,"p"),Js(8),hs(),ds(9,"a",102),Js(10," Explore other studies"),hs(),hs(),hs(),hs()),2&e){var n=As();Oa(5),Ds("href","/#/study/",n.highlightedStudy.id,"",Pr),Oa(1),el(n.highlightedStudy.short_title),Oa(2),el(n.highlightedStudy.short_description),Oa(1),us("routerLink",Su(4,w7))}}function x7(e,t){if(1&e&&(ds(0,"span",103),ds(1,"a",104),fs(2,"img",105),hs(),hs()),2&e){var n=t.$implicit;Oa(1),us("href",n.url,Pr)("title",n.name)("matTooltip",n.shortName+" - "+n.description),Oa(1),us("alt",n.shortName)("src",n.image,Pr)}}function S7(e,t){if(1&e){var n=vs();ds(0,"app-border-box-tile",106),ks("click",function(){return rn(n),As().submitResource()}),hs()}2&e&&us("title","Can't find your resource on drive?")("subtitle","Click Here To Submit")("linkSize",2)}function A7(e,t){1&e&&fs(0,"app-loading")}var O7=function(e){return{ghost:e}},E7=function(){return{width:"40%"}},T7=function(){return{marginTop:"120vh"}};HTMLDivElement;var P7,D7,M7=function(e){return e.default="default",e.zipcode="zipcode",e.gps="gps",e.map="map",e}({}),I7=((D7=function(){function e(t,n,i,r,a,o,s,l,u,c){var d=this;b(this,e),this.api=t,this.authenticationService=n,this.changeDetectorRef=i,this.googleAnalyticsService=r,this.location=a,this.meta=o,this.renderer=s,this.route=l,this.router=u,this.searchService=c,this.animatePage=!0,this.querySubject=new j,this.mapQuerySubject=new j,this.resourceTypes=uK.all_resources(),this.selectedType=uK.ALL_RESOURCES,this.selectedTypeTabIndex=0,this.ageLabels=cK.labels,this.languageLabels=dK.labels,this.typeLabels=uK.labels,this.ageOptions=[],this.languageOptions=[],this.loading=!0,this.pageSizeOptions=[20,60,100],this.pageSize=this.pageSizeOptions[0],this.gpsEnabled=!0,this.defaultLoc={lat:37.32248,lng:-78.36926},this.loc=S4()()(this.defaultLoc),this.locationModes=M7,this.locationMode=M7.default,this.hitsWithNoAddress=[],this.hitsWithAddress=[],this.defaultZoom=7,this.resourceGatherers=[{name:"Charlottesville Region Autism Action Group",shortName:"CRAAG",description:"\n A parent-run advocacy group, one of three active all-volunteer regional Autism Action Groups\n initiated by Commonwealth Autism. Established in 2010, it serves Charlottesville, Albemarle, Greene,\n Fluvanna, Louisa, and Nelson counties.\n ",image:"/assets/partners/craag.png",url:"https://cahumanservices.org/advocating-change/community-organization-engagement/autism-action-groups/"},{name:"The Faison Center",shortName:"Faison Center",description:"The Faison School provides full-time day school programs for students ages 5 to 22 years.",image:"/assets/partners/faison_center.png",url:"https://www.faisoncenter.org"},{name:"Piedmont Regional Education Program",shortName:"PREP",description:"\n A public regional organization designed to meet the needs of special education students. Provides special\n education programming and related services to nine school districts under an umbrella of a regional program.\n ",image:"/assets/partners/prep.png",url:"http://www.prepivycreek.com/"},{name:"Virginia Institute of Autism",shortName:"VIA",description:"\n The Virginia Institute of Autism is dedicated to helping people overcome the challenges of autism through innovative,\n evidence-based programs in education, outreach and adult services.\n ",image:"/assets/partners/via.png",url:"https://www.viaschool.org/"}],this.searchBgClass="mountain",this.videoPlacement="right",this.videoSize="medium",this.videoId="oURTNCsiq3Y",this.videoInstructions="Watch this video for tips about resources",this.videoLinks=[{label:"Learn scientifically-supported interventions online",url:"https://afirm.fpg.unc.edu/selecting-ebp"},{label:"Read about scientifically-supported interventions",url:"https://www.nationalautismcenter.org/resources/for-families/"},{label:"Contact a Family Navigator for resource help",url:"https://curry.virginia.edu/faculty-research/centers-labs-projects/star/resources/star-family-navigation"}],this.sortMethods={RELEVANCE:{name:"Relevance",label:"Relevance",sortQuery:{field:"_score",order:"desc"}},DISTANCE:{name:"Distance",label:"Distance",sortQuery:{field:"geo_point",latitude:this.loc.lat,longitude:this.loc.lng,order:"asc",unit:"mi"}},UPDATED:{name:"Updated",label:"Recently Updated",sortQuery:{field:"last_updated",order:"desc"}},DATE:{name:"Date",label:"Happening Soon",sortQuery:{field:"date",order:"asc"}},DRAFTS:{name:"Drafts",label:"Drafts",sortQuery:{field:"is_draft",order:"desc"}}},this.selectedSort=this.sortMethods.DISTANCE,this.authenticationService.currentUser.subscribe(function(e){return d.currentUser=e}),this.languageOptions=this.getOptions(dK.labels),this.ageOptions=this.getOptions(cK.labels),this.meta.updateTag({property:"og:image",content:window.location.origin+"/assets/home/hero-parent-child.jpg"},"property='og:image'"),this.meta.updateTag({property:"og:image:secure_url",content:window.location.origin+"/assets/home/hero-parent-child.jpg"},"property='og:image:secure_url'"),this.meta.updateTag({name:"twitter:image",content:window.location.origin+"/assets/home/hero-parent-child.jpg"},"name='twitter:image'")}return w(e,[{key:"ngOnInit",value:function(){var e=this;"true"===localStorage.noFirstVisit&&this.hideVideo(),localStorage.noFirstVisit=!0,this.querySubject.pipe(jg(1e3)).subscribe(function(t){e.loading=!0,e.searchService.search(t).subscribe(function(t){e.prevQuery=S4()()(e.query),e.query=t,e.googleAnalyticsService.searchEvent(e.query),e.updateUrl(),e.loading=!1,e.changeDetectorRef.detectChanges(),e._loadRelatedStudies(),e._updatePaginator()})}),this.mapQuerySubject.pipe(jg(1e3)).subscribe(function(t){e.loading=!0;var n=e.geoBox();e.searchService.mapSearch(t,n).subscribe(function(t){e.mapQuery=t,e.mapQuery&&e.mapQuery.hits&&e.mapQuery.hits.length>0?(e.hitsWithAddress=e.mapQuery.hits.filter(function(e){return!e.no_address}),e.hitsWithNoAddress=e.mapQuery.hits.filter(function(e){return e.no_address})):(e.hitsWithAddress=[],e.hitsWithNoAddress=[]),e.loading=!1,e.changeDetectorRef.detectChanges(),e.restrictToMappedResults&&(e.query.geo_box=n,e.querySubject.next(e.query))})}),this.setDefaultMapLocation(function(){e.route.queryParamMap.subscribe(function(t){e.queryParamMap=t,e.query=e._queryParamsToQuery(t);var n=e.storedZip?10:e.defaultZoom;e.mapZoomLevel=parseInt(t.get("zoom"),10)||n;var i=t.get("lat"),r=t.get("lng");i&&r&&e.setLocation(M7.map,{lat:parseFloat(i),lng:parseFloat(r)});var a=t.get("sort")||"Distance",o=e.prevQuery&&0===e.query.start;o?a&&e.sortMethods[a.toUpperCase()]?e.reSort(a,o):e.reSort(e.query.hasWords?"Relevance":"Distance",o):(e.selectedSort=e.sortMethods[a.toUpperCase()],e.querySubject.next(e.query),e.mapQuerySubject.next(e.query))})})}},{key:"setLocation",value:function(e,t){this.loc=t,this.locationMode=e}},{key:"setZipLocation",value:function(e,t){var n=this;this.storedZip=e,this.api.getZipCoords(this.storedZip).subscribe(function(e){n.setLocation(M7.zipcode,{lat:e.latitude,lng:e.longitude}),n.mapZoomLevel=10,t&&t()})}},{key:"setGPSLocation",value:function(e){var t=this;navigator.geolocation?(this.gpsEnabled=!0,navigator.geolocation.getCurrentPosition(function(n){t.setLocation(M7.gps,{lat:n.coords.latitude,lng:n.coords.longitude}),t.mapZoomLevel=10,e&&e()},function(n){t.gpsEnabled=!1,e&&e()})):(this.gpsEnabled=!1,e&&e())}},{key:"_updateDistanceSort",value:function(){var e=this.sortMethods.DISTANCE.sortQuery;e.latitude=this.loc.lat,e.longitude=this.loc.lng,this.query.sort=e}},{key:"paginator",set:function(e){this.paginatorElement=e}},{key:"mapTemplate",set:function(e){this.mapTemplateElement=e}},{key:"circleRadius",get:function(){return 160934/(this.mapZoomLevel||1)}},{key:"filtersPanelStyles",get:function(){var e={"full-screen":this.showFilters,minimized:!this.showFilters};return e[this.searchBgClass]=!0,e}},{key:"hits",get:function(){return this.query.hits}},{key:"isDistanceSort",get:function(){return this.selectedSort&&"Distance"===this.selectedSort.name}},{key:"isInfoWindowOpen",get:function(){return null!=this.selectedMapResource}},{key:"isLastPage",get:function(){return!this.paginatorElement||!this.paginatorElement.hasNextPage()}},{key:"numResultsFrom",get:function(){return this.paginatorElement?this.paginatorElement.pageIndex*this.pageSize+1:0}},{key:"numResultsTo",get:function(){return this.paginatorElement?this.isLastPage?this.numTotalResults:(this.paginatorElement.pageIndex+1)*this.pageSize:this.numTotalResults}},{key:"numTotalResults",get:function(){return this.query&&this.query.total?this.query.total:0}},{key:"shouldHideVideo",get:function(){return!!localStorage.getItem("shouldHideTutorialVideo")}},{key:"shouldShowMap",get:function(){return this.selectedType&&["event","location"].includes(this.selectedType.name)||this.isDistanceSort}},{key:"ngAfterViewInit",value:function(){this.watchScrollEvents()}},{key:"ngOnDestroy",value:function(){}},{key:"getOptions",value:function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({value:n,label:e[n]});return t}},{key:"removeCategory",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.query.category=null,this._goToFirstPage(e)}},{key:"removeWords",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.query.words="",this._goToFirstPage(e)}},{key:"scrollToTopOfSearch",value:function(){document.getElementById("TopOfSearch").scrollIntoView()}},{key:"setDefaultMapLocation",value:function(e){var t=this;this.storedZip=localStorage.getItem("zipCode"),this.isZipCode(this.storedZip)?this.setZipLocation(this.storedZip,e):(this.setLocation(M7.default,this.defaultLoc),e&&e(),this.setGPSLocation(function(){t.gpsEnabled&&t.reSort("Distance",!0)}))}},{key:"reSort",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(this._queryParamsHaveChanged(this.queryParamMap)&&e&&e!==this.selectedSort.name||t)&&(this.selectedSort=this.sortMethods[e.toUpperCase()],this.query.start=0,this.query.sort=this.selectedSort.sortQuery,this.isDistanceSort&&this._updateDistanceSort(),this.mapQuerySubject.next(this.query),this.querySubject.next(this.query))}},{key:"selectAgeRange",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.query.ages=this.query&&e?[e]:[],this._goToFirstPage(t)}},{key:"selectLanguage",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.query.languages=e?[e]:[],this._goToFirstPage(t)}},{key:"selectCategory",value:function(e){this.query.category={id:e.id,name:e.name},this._goToFirstPage()}},{key:"selectType",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=uK.ALL_RESOURCES.name,i=!(e&&e!==n);i?(this.selectedTypeTabIndex=this.resourceTypes.findIndex(function(e){return e.name===n}),this.selectedType=this.resourceTypes[this.selectedTypeTabIndex],this.query.types=this.resourceTypesFilteredNames(),this.query.date=null,this.selectedSort=this.sortMethods.DISTANCE):(this.selectedTypeTabIndex=this.resourceTypes.findIndex(function(t){return t.name===e}),this.selectedType=this.resourceTypes[this.selectedTypeTabIndex],this.query.types=e===n?this.resourceTypesFilteredNames():[e],this.query.date=e===uK.EVENT.name?new Date:void 0,e===uK.LOCATION.name?this.selectedSort=this.sortMethods.DISTANCE:e===uK.RESOURCE.name?this.selectedSort=this.query.hasWords?this.sortMethods.RELEVANCE:this.sortMethods.UPDATED:e===uK.EVENT.name&&(this.selectedSort=this.sortMethods.DATE),this.query.sort=this.selectedSort.sortQuery),this._goToFirstPage(t),this.reSort(this.selectedSort.name,i)}},{key:"submitResource",value:function(){window.open("https://virginia.az1.qualtrics.com/jfe/form/SV_0JQAQjutv54EwnP","_blank")}},{key:"selectedCategory",get:function(){if(this.query)return this.query.category}},{key:"resourceTypesFiltered",get:function(){return this.resourceTypes.filter(function(e){return e.name!==uK.ALL_RESOURCES.name})}},{key:"resourceTypesFilteredNames",value:function(){return this.resourceTypesFiltered.map(function(e){return e.name})}},{key:"updatePage",value:function(e){this.query.size=e.pageSize,this.pageSize=e.pageSize,this.query.start=e.pageIndex*e.pageSize+1,this.query.sort=this.selectedSort.sortQuery,this.scrollToTopOfSearch(),this.querySubject.next(this.query)}},{key:"mapLoad",value:function(e){var t=this,n=document.createElement("div"),i=document.createElement("div");i.style.backgroundColor="#fff",i.style.border="2px solid #fff",i.style.borderRadius="3px",i.style.boxShadow="0 2px 6px rgba(0,0,0,.3)",i.style.cursor="pointer",i.style.marginBottom="6px",i.style.marginRight="12px",i.style.textAlign="center",i.title="Your Location",n.appendChild(i);var r=document.createElement("div");r.style.fontSize="16px",r.style.lineHeight="38px",r.style.paddingLeft="5px",r.style.paddingRight="5px",r.innerHTML='',i.appendChild(r),i.addEventListener("click",function(){console.log("map clicked."),t.mapQuerySubject.next(t.query)}),n.index=1,e.controls[google.maps.ControlPosition.RIGHT_BOTTOM].push(n),e.addListener("dragend",function(){t.setLocation(M7.map,{lat:t.mapBounds.getCenter().lat(),lng:t.mapBounds.getCenter().lng()}),t.mapQuerySubject.next(t.query),console.log("Map Dragged"),t.isDistanceSort&&(console.log("Map Dragged, re-sorting"),t._updateDistanceSort(),t.querySubject.next(t.query))})}},{key:"showBreadcrumbs",value:function(){return!(!this.query||!this.query.hasFilters)}},{key:"submitZip",value:function(e,t){var n=this;t.close(),e.stopPropagation(),localStorage.setItem("zipCode",this.storedZip),this.googleAnalyticsService.searchInteractionEvent("set_zip_code_location"),this.isZipCode(this.storedZip)?(this.mapZoomLevel=10,this.setZipLocation(this.storedZip,function(){n.reSort("Distance",!0)})):this.setLocation(M7.default,this.defaultLoc)}},{key:"useGPSLocation",value:function(e,t){var n=this;t.close(),e.stopPropagation(),this.googleAnalyticsService.searchInteractionEvent("set_gps_location"),this.setGPSLocation(function(){n.gpsEnabled&&n.reSort("Distance",!0)})}},{key:"isZipCode",value:function(e){return e&&""!==e&&/^\d{5}$/.test(e)}},{key:"showInfoWindow",value:function(e){var t=this;this.api.getResource(e.id).subscribe(function(n){t.selectedMapResource=n,t.selectedMapHit=e,t.googleAnalyticsService.mapEvent(e.id.toString())})}},{key:"closeInfoWindow",value:function(){this.selectedMapResource=null,this.selectedMapHit=null}},{key:"mapJitter",value:function(e,t){var n=e%2==0?1:-1;t&&(n*=-1);var i=1e4*Math.sin(e);return(i-Math.floor(i))/100*n}},{key:"updateZoom",value:function(e){this.mapZoomLevel=e,this.mapQuerySubject.next(this.query)}},{key:"selectTypeTab",value:function(e){this.selectType((e.index>0?this.resourceTypesFiltered[e.index-1]:uK.ALL_RESOURCES).name)}},{key:"updateResultsList",value:function(e){this.mapBounds=e}},{key:"geoBox",value:function(){if(this.mapBounds)return{top_left:{lat:this.mapBounds.getNorthEast().lat(),lon:this.mapBounds.getSouthWest().lng()},bottom_right:{lat:this.mapBounds.getSouthWest().lat(),lon:this.mapBounds.getNorthEast().lng()}}}},{key:"listMapResultsOnly",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];console.log("Restricting to mapped results",e),this.restrictToMappedResults=e,e?(this.googleAnalyticsService.searchInteractionEvent("search_as_map_moves"),this.query.geo_box=this.geoBox()):this.query.geo_box=null,t||this.querySubject.next(this.query)}},{key:"mapDockClass",value:function(e,t,n){var i=e.getBoundingClientRect(),r=t.getBoundingClientRect(),a=n.getBoundingClientRect(),o=this.scrollDirection?this.scrollDirection.toLowerCase():"";return(this._overlaps(i,r)?"align-top":this._overlaps(i,a)?"align-bottom":"docked")+" "+o}},{key:"focusOnInput",value:function(e){e.focus()}},{key:"watchScrollEvents",value:function(){var e=this,t=zg(window,"scroll").pipe(O4(10),q(function(e){return window.pageYOffset}),uO(),q(function(e){var t=n(e,2),i=t[0];return t[1]0&&void 0!==arguments[0])||arguments[0];e?localStorage.setItem("shouldHideTutorialVideo","".concat(e)):localStorage.removeItem("shouldHideTutorialVideo")}},{key:"showLocationWindow",value:function(){return this.locationMode===M7.default}},{key:"updateUrl",value:function(){var e=this._queryToQueryParams(this.query),t=this.router.createUrlTree([],{queryParams:e,queryParamsHandling:"merge",preserveFragment:!0});this.location.replaceState(t.toString())}},{key:"_queryToQueryParams",value:function(e){var t=S4()({circles:!0})(e),n={};return t.hasOwnProperty("words")&&t.words&&(n.words=t.words),n.types=t.types,n.ages=t.ages,n.languages=t.languages,n.sort=n.words?this.sortMethods.RELEVANCE.name:this.selectedSort.name,n.pageStart=t.start||0,n.zoom=this.mapZoomLevel,n.restrictToMap=this.restrictToMappedResults?"y":"n",this.loc&&(n.lat=this.loc.lat,n.lng=this.loc.lng),t.hasOwnProperty("category")&&t.category&&(n.category=t.category.id),n}},{key:"_queryParamsToQuery",value:function(e){var t=new mK({geo_box:void 0,words:"",ages:[],languages:[],sort:this.sortMethods.DISTANCE.sortQuery,start:0,types:this.resourceTypesFilteredNames()});if(t.size=this.pageSize,e&&e.keys){var n,i=s(e.keys);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(void 0!==e.get(r))switch(r){case"words":t.words=e.get(r),t.sort=this.sortMethods.RELEVANCE.sortQuery;break;case"category":t.category={id:parseInt(e.get(r),10)};break;case"ages":t.ages=e.getAll(r);break;case"languages":t.languages=e.getAll(r);break;case"sort":var a=e.get(r).toUpperCase();this.sortMethods[a]&&(t.sort=this.sortMethods[a].sortQuery);break;case"pageStart":t.start=parseInt(e.get(r),10);break;case"types":t.types=e.getAll(r);break;case"restrictToMap":this.restrictToMappedResults="y"===e.get("restrictToMap")}}}catch(o){i.e(o)}finally{i.f()}}return t}},{key:"_goToFirstPage",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.query.start=0,this.paginatorElement&&this.paginatorElement.firstPage(),e||(this.querySubject.next(this.query),this.mapQuerySubject.next(this.query))}},{key:"_overlaps",value:function(e,t){return t.tope.top||t.top>e.top&&t.bottome.bottom}},{key:"_queryParamsHaveChanged",value:function(e){var t=this._queryParamsToQuery(e),n=this._queryParamsToQuery(bY(this._queryToQueryParams(this.query)));return!this.prevQuery||t.equals(n)}},{key:"_loadRelatedStudies",value:function(){var e=this,t=S4()()(this.query);t.types=["study"],this.api.searchStudies(t).subscribe(function(t){t.hits.length>0?e.api.getStudy(t.hits[0].id).subscribe(function(t){e.highlightedStudy=t,e.changeDetectorRef.detectChanges()}):e.api.getStudiesByStatus("currently_enrolling").subscribe(function(t){e.highlightedStudy=t[Math.floor(Math.random()*Math.floor(t.length))],e.changeDetectorRef.detectChanges()})})}},{key:"_updatePaginator",value:function(){var e=this.query&&this.query.start-1,t=parseInt(this.queryParamMap.get("pageStart"),10)-1,n=this.queryParamMap.has("pageStart")?t:e;this.paginatorElement.pageIndex=n/this.pageSize,this.expandResults=!0,this.changeDetectorRef.detectChanges()}}]),e}()).\u0275fac=function(e){return new(e||D7)(ls(x$),ls(y$),ls(Jl),ls(h$),ls(Od),ls(Yf),ls(Pl),ls(oQ),ls(EX),ls(N4))},D7.\u0275cmp=pt({type:D7,selectors:[["app-search"]],viewQuery:function(e,t){var n;1&e&&(Ku(D5,1),Ku(M5,1)),2&e&&($u(n=Ju())&&(t.paginator=n.first),$u(n=Ju())&&(t.mapTemplate=n.first))},hostVars:1,hostBindings:function(e,t){2&e&&ol("@pageAnimations",t.animatePage)},decls:85,vars:58,consts:[["id","hero","fxLayout","column"],["searchHeader",""],["fxFlexAlign","center",3,"videoSize","videoId","instructions","links",4,"ngIf"],["fxLayout","row","fxLayout.lt-md","column","fxLayoutAlign","center center"],[3,"videoSize","videoId","instructions","links",4,"ngIf"],["fxLayout","column"],["variant","light-bg",3,"words","searchUpdated","categorySelected"],[3,"addLabel","addLink","currentUser",4,"ngIf"],["id","show-filters-button","mat-flat-button","","color","primary","fxHide","","fxShow.lt-md","",3,"click"],["fxLayout","column","fxLayoutAlign","center center","id","filters-container"],["id","filters","fxFlex.gt-sm","60%",3,"ngClass.lt-md"],["fxHide","","fxShow.lt-md",""],["fxLayoutAlign","end end"],["mat-button","",1,"done-button",3,"click"],["id","TopOfSearch","fxLayout","row","fxLayout.lt-md","column","fxLayoutGap","2em",1,"filters-row"],["fxLayout","row","fxLayout.lt-lg","column","fxLayoutGap","2em","fxLayoutGap.lt-lg","1em","fxShow","",1,"filter-select"],["fxHide","","fxShow.lt-md","","id","type-filter"],[3,"value","valueChange"],[3,"iconType","size",4,"ngIf"],["class","type-label",4,"ngIf"],[3,"value","click",4,"ngFor","ngForOf"],["id","topic-filter","fxFlex.lt-lg","100%",3,"ngClass.lt-md"],[3,"category","ngClass","categorySelected",4,"ngIf"],["id","age-filter","fxFlex.lt-lg","100%",3,"ngClass.lt-md"],[4,"ngIf"],["id","language-filter","fxFlex.lt-lg","100%",3,"ngClass.lt-md"],["fxHide","","fxShow.lt-md","",1,"sort-order-small"],[3,"selectedSort","sortMethods","sortMethodSelected"],["fxHide","","fxShow.lt-md","","fxLayoutAlign","center center"],["mat-flat-button","","color","accent",3,"click"],["fxShow","","fxHide.lt-md","","fxLayout","row","fxLayoutGap","2em","fxLayoutAlign","start end",1,"type-tabs-container"],["mat-align-tabs","start","fxHide.lt-md","","color","accent",3,"ngClass","selectedIndex","selectedTabChange","selectedIndexChange"],["mat-tab-label",""],[4,"ngFor","ngForOf"],["fxHide","","fxShow.lt-md","","id","results-vs-map"],[3,"value","change"],[3,"value"],[3,"value","disabled"],["id","content","fxLayout","row","fxLayoutAlign","start start"],["id","results","fxLayout","column","fxLayoutGap","10px","fxFlex","60%","fxFlex.lt-md","100%","fxShow","","fxHide.lt-md","",1,"search-results",3,"fxShow.lt-md"],[4,"ngIf","ngIfElse"],[3,"length","pageSize","pageSizeOptions","ngClass","page"],["paginator",""],["id","location-and-map","fxFlex","40%","fxFlex.lt-md","100%","fxShow","",3,"fxShow.lt-md","ngClass.gt-sm","ngStyle.gt-sm"],[1,"inset-shadow"],["id","list-mapped-results-button","mat-flat-button","",3,"color","ngClass","ngClass.gt-sm","ngClass.lt-md","fxHide","click"],["id","set-location",3,"ngClass","expanded","afterExpand",4,"ngIf"],["id","map","fxLayout","column","fxLayoutGap","2em"],["mapTypeId","roadmap",3,"latitude","longitude","streetViewControl","zoom","scrollwheel","mapReady","mapClick","zoomChange","boundsChange",4,"ngIf"],["id","studies-highlight",4,"ngIf"],["id","partners","fxLayout","row","fxLayout.lt-md","column","fxLayoutGap","3em","fxLayoutAlign","auto center",3,"ngStyle.lt-md"],["searchFooter",""],["fxLayout","column","fxLayoutAlign","start"],[1,"pad-0"],["fxLayoutAlign.gt-xs","row","fxLayout.lt-sm","row wrap","fxLayoutAlign","space-between center","fxLayoutGap","40px"],["fxFlex.lt-md","40%","fxLayoutAlign","center center",4,"ngFor","ngForOf"],[3,"title","subtitle","linkSize","click",4,"ngIf"],["id","scroll-spy"],["scrollSpy",""],["loadingMessage",""],["fxFlexAlign","center",3,"videoSize","videoId","instructions","links"],[3,"videoSize","videoId","instructions","links"],[3,"addLabel","addLink","currentUser"],[3,"iconType","size"],[1,"type-label"],[3,"value","click"],[3,"category","ngClass","categorySelected"],[3,"aggregations","label_title","label_any","label_map","label_icon","ngClass","isNotApplicable","notApplicableMessage","filterSelected"],[1,"type-buttons","all"],["fxLayout","column","fxLayoutGap","20px","fxLayoutAlign","center center","class","pad-4",4,"ngIf"],["id","sort-and-status","fxLayout","row","fxLayout.lt-md","column","fxLayoutAlign","space-between end",4,"ngIf"],["fxShow","","fxHide.lt-md","",1,"sort-order"],[3,"ageLabels","fxHide","fxShow","languageLabels","query","restrictToMappedResults","typeLabels","ageRangeChipClicked","categoryChipClicked","clearAllClicked","keywordChipClicked","languageChipClicked","mappedResultsChipClicked","typeChipClicked",4,"ngIf"],["fxLayout","column","fxLayoutGap","20px","fxLayoutAlign","center center",1,"pad-4"],["id","sort-and-status","fxLayout","row","fxLayout.lt-md","column","fxLayoutAlign","space-between end"],["class","search-result-status","fxShow","","fxHide.lt-md","",4,"ngIf"],["fxShow","","fxHide.lt-md","",1,"search-result-status"],[3,"ageLabels","fxHide","fxShow","languageLabels","query","restrictToMappedResults","typeLabels","ageRangeChipClicked","categoryChipClicked","clearAllClicked","keywordChipClicked","languageChipClicked","mappedResultsChipClicked","typeChipClicked"],[3,"hit","mapLoc","currentUser","ngClass",4,"ngFor","ngForOf"],[3,"hit","mapLoc","currentUser","ngClass"],["id","set-location",3,"ngClass","expanded","afterExpand"],["setLocationExpansionPanel",""],["fxLayout","column",3,"ngClass"],[1,"zipCodeField"],["matInput","","placeholder","Enter ZIP Code",3,"ngModel","ngModelChange","keyup.enter"],["zipCodeInput",""],["fxLayout","row","fxLayoutGap","10px","fxLayoutAlign","start center"],["mat-flat-button","","color","accent","id","btn_save",3,"click"],["mat-flat-button","","id","btn_gps",3,"click",4,"ngIf"],["mat-flat-button","","id","btn_gps",3,"click"],["mapTypeId","roadmap",3,"latitude","longitude","streetViewControl","zoom","scrollwheel","mapReady","mapClick","zoomChange","boundsChange"],["mapTemplate",""],[3,"imagePath","maxZoom"],[3,"latitude","longitude","iconUrl",4,"ngIf"],[3,"latitude","longitude","iconUrl"],["fillOpacity","0.1","zIndex","-1",3,"latitude","longitude","radius","fillColor","clickable","visible","circleClick"],[3,"latitude","longitude","iconUrl","markerClick"],[3,"isOpen","latitude","longitude","infoWindowClose"],[1,"title","mat-h2",3,"href","click"],[1,"chevron-link",3,"click"],["id","studies-highlight"],[3,"href"],["routerLinkActive","router-link-active",1,"chevron-link",3,"routerLink"],["fxFlex.lt-md","40%","fxLayoutAlign","center center"],[1,"resource-gatherer",3,"href","title","matTooltip"],[3,"alt","src"],[3,"title","subtitle","linkSize","click"]],template:function(e,t){if(1&e&&(ds(0,"div",0,1),os(2,I5,1,4,"app-tutorial-video",2),ds(3,"div",3),os(4,R5,1,4,"app-tutorial-video",4),ds(5,"div",5),ds(6,"app-search-box",6),ks("searchUpdated",function(){return t.querySubject.next(t.query)})("categorySelected",function(e){return t.selectCategory(e)}),hs(),os(7,L5,1,3,"app-add-button",7),ds(8,"button",8),ks("click",function(){return t.showFilters=!t.showFilters}),ds(9,"mat-icon"),Js(10,"filter_alt"),hs(),Js(11," Filter Search Results "),hs(),ds(12,"div",9),ds(13,"div",10),ds(14,"div",11),ds(15,"div",12),ds(16,"button",13),ks("click",function(){return t.toggleShowFilters()}),Js(17,"Done"),hs(),hs(),ds(18,"h2"),Js(19,"Filter Resources"),hs(),hs(),ds(20,"div",14),ds(21,"div",15),ds(22,"div",16),ds(23,"mat-form-field"),ds(24,"mat-label"),Js(25,"Resource types"),hs(),ds(26,"mat-select",17),ks("valueChange",function(e){return t.selectedType=e}),ds(27,"mat-select-trigger"),os(28,F5,1,2,"app-type-icon",18),os(29,N5,2,1,"span",19),hs(),os(30,V5,4,4,"mat-option",20),hs(),hs(),hs(),ds(31,"div",21),os(32,B5,1,2,"app-search-topics",22),hs(),ds(33,"div",23),os(34,H5,2,8,"div",24),hs(),ds(35,"div",25),os(36,z5,2,8,"div",24),hs(),hs(),hs(),ds(37,"div",26),ds(38,"app-search-sort",27),ks("sortMethodSelected",function(e){return t.reSort(e.name,!0)}),hs(),hs(),ds(39,"div",28),ds(40,"button",29),ks("click",function(){return t.toggleShowFilters()}),Js(41),hs(),hs(),hs(),hs(),hs(),os(42,G5,1,4,"app-tutorial-video",4),hs(),os(43,j5,1,4,"app-tutorial-video",2),ds(44,"div",30),ds(45,"mat-tab-group",31),ks("selectedTabChange",function(e){return t.selectTypeTab(e)})("selectedIndexChange",function(e){return t.selectedTypeTabIndex=e}),ds(46,"mat-tab"),os(47,U5,2,0,"ng-template",32),hs(),os(48,q5,2,0,"mat-tab",33),hs(),hs(),hs(),ds(49,"div",34),ds(50,"mat-button-toggle-group",35),ks("change",function(){return t.expandResults=!t.expandResults}),ds(51,"mat-button-toggle",36),os(52,Y5,2,1,"ng-container",24),os(53,Q5,2,1,"ng-container",24),hs(),ds(54,"mat-button-toggle",37),Js(55,"Map"),hs(),hs(),hs(),ds(56,"div",38),ds(57,"div",39),os(58,i7,6,4,"ng-container",40),ds(59,"mat-paginator",41,42),ks("page",function(e){return t.updatePage(e)}),hs(),hs(),ds(61,"div",43),fs(62,"span",44),ds(63,"button",45),ks("click",function(){return t.listMapResultsOnly(!t.restrictToMappedResults)}),os(64,r7,2,0,"mat-icon",24),os(65,a7,2,0,"mat-icon",24),Js(66," Limit results to map "),hs(),os(67,d7,15,9,"mat-expansion-panel",46),ds(68,"div",47),os(69,k7,7,11,"agm-map",48),os(70,C7,11,5,"div",49),hs(),hs(),hs(),ds(71,"div",50,51),ds(73,"div",52),ds(74,"h1"),Js(75,"Resource partners"),hs(),ds(76,"p",53),Js(77,"We are partnering with the following initiatives and organizations to identify resources that will improve outcomes for individuals with autism and their families."),hs(),ds(78,"div",54),os(79,x7,3,5,"span",55),hs(),hs(),os(80,S7,1,3,"app-border-box-tile",56),hs(),fs(81,"span",57,58),os(83,A7,1,0,"ng-template",null,59,ic)),2&e){var n=ss(1),i=ss(72),r=ss(82),a=ss(84);zs(t.searchBgClass),Oa(2),us("ngIf","above"===t.videoPlacement&&!t.shouldHideVideo),Oa(2),us("ngIf","left"===t.videoPlacement&&!t.shouldHideVideo),Oa(2),us("words",null==t.query?null:t.query.words),Oa(1),us("ngIf",t.currentUser&&t.currentUser.permissions.includes("create_resource")),Oa(6),us("ngClass.lt-md",t.filtersPanelStyles),Oa(13),us("value",t.selectedType),Oa(2),us("ngIf",t.selectedType),Oa(1),us("ngIf",t.selectedType),Oa(1),us("ngForOf",t.resourceTypes),Oa(1),us("ngClass.lt-md","filter-container"),Oa(1),us("ngIf",t.selectedCategory),Oa(1),us("ngClass.lt-md","filter-container"),Oa(1),us("ngIf",t.query),Oa(1),us("ngClass.lt-md","filter-container"),Oa(1),us("ngIf",t.query),Oa(2),us("selectedSort",t.selectedSort)("sortMethods",t.sortMethods),Oa(3),tl("",t.numTotalResults," Results"),Oa(1),us("ngIf","right"===t.videoPlacement&&!t.shouldHideVideo),Oa(1),us("ngIf","below"===t.videoPlacement&&!t.shouldHideVideo),Oa(2),us("ngClass","type-tabs")("selectedIndex",t.selectedTypeTabIndex),Oa(3),us("ngForOf",t.resourceTypesFiltered),Oa(2),us("value",t.expandResults),Oa(1),us("value",!0),Oa(1),us("ngIf",!t.restrictToMappedResults),Oa(1),us("ngIf",t.restrictToMappedResults),Oa(1),us("value",!1)("disabled",!t.shouldShowMap),Oa(3),us("fxShow.lt-md",!!t.expandResults),Oa(1),us("ngIf",!t.loading)("ngIfElse",a),Oa(1),us("length",t.numTotalResults)("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("ngClass",Au(54,O7,!t.query||0===t.numTotalResults)),Oa(2),us("fxShow.lt-md",!t.expandResults)("ngClass.gt-sm",t.mapDockClass(r,n,i))("ngStyle.gt-sm",Su(56,E7)),Oa(2),us("color",t.restrictToMappedResults?"accent":"")("ngClass","mat-elevation-z1")("ngClass.gt-sm","gt-sm")("ngClass.lt-md","lt-md")("fxHide",!t.shouldShowMap),Oa(1),us("ngIf",!t.restrictToMappedResults),Oa(1),us("ngIf",t.restrictToMappedResults),Oa(2),us("ngIf",t.shouldShowMap),Oa(2),us("ngIf",t.shouldShowMap),Oa(1),us("ngIf",t.highlightedStudy),Oa(1),us("ngStyle.lt-md",Su(57,T7)),Oa(8),us("ngForOf",t.resourceGatherers),Oa(1),us("ngIf",!t.loading)}},directives:[Xy,wh,eb,q4,kP,my,BR,v_,ly,n_,wT,hT,KL,XL,bh,$4,hz,yh,nz,ZH,DP,IP,GF,Sy,J4,U_,n5,BK,JA,h5,y5,P5,iZ,aR,oR,vM,wb,Zb,Nk,Am,Hm,Em,nm,um,jP,BP,PX,FX,CF,UJ,zZ],styles:["#hero[_ngcontent-%COMP%]{background-color:#ededed;padding-top:64px;margin-top:-64px;padding-left:16px;padding-right:16px}#hero[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{color:#232d4b;text-align:start;font-size:2.5rem;margin-bottom:0}#hero[_ngcontent-%COMP%] app-search-box[_ngcontent-%COMP%]{color:#000;width:100%}form.search-box[_ngcontent-%COMP%]{background:rgba(0,0,0,0);border-radius:5px;padding-top:1em;padding-bottom:1em;display:-ms-flexbox;display:flex;transition:padding-top .5s ease-in-out}form.search-box.hidden-results[_ngcontent-%COMP%]{padding-top:100px}form.search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%], form.search-box[_ngcontent-%COMP%] mat-hint[_ngcontent-%COMP%]{-ms-flex:2 0 auto;flex:2 0 auto}#tiles[_ngcontent-%COMP%]{padding-top:1em;padding-left:2em;padding-right:2em}.title[_ngcontent-%COMP%]{margin:0;color:#232d4b;font-weight:800;font-style:italic;text-transform:uppercase;line-height:1;font-size:1.625rem}button[_ngcontent-%COMP%]{-ms-flex:0 0 auto;flex:0 0 auto;border:none}mat-accordion[_ngcontent-%COMP%], mat-expansion-panel[_ngcontent-%COMP%]{width:100%;margin-bottom:1em}.filters[_ngcontent-%COMP%] #reset-filters[_ngcontent-%COMP%]{color:#e57200;font-weight:700;padding-left:0}.filters[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:1.5rem;margin-top:2em;margin-bottom:0}.filters[_ngcontent-%COMP%] .sort-order[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-top:1em}.filters[_ngcontent-%COMP%] h4.mat-subheader[_ngcontent-%COMP%]{font-size:1.25rem;line-height:1.5rem;margin-top:1em;margin-bottom:0;padding-left:0;padding-bottom:0}.filters[_ngcontent-%COMP%] h4.mat-subheader[_ngcontent-%COMP%]:first-of-type{margin-top:0}.filter-facet-item[_ngcontent-%COMP%], .sort-order[_ngcontent-%COMP%]{font-size:1em;line-height:1}app-search-filters-breadcrumbs[_ngcontent-%COMP%]{width:100%;padding-right:0;padding-left:0;margin:2em 1em 1em}.sort-order[_ngcontent-%COMP%]{grid-area:sort;justify-self:end}.sort-order[_ngcontent-%COMP%] mat-radio-button[_ngcontent-%COMP%]{height:36px;margin-top:0;padding:0} mat-paginator.mat-paginator .mat-paginator-page-size-select.mat-form-field-appearance-outline{width:84px} mat-paginator.mat-paginator .mat-paginator-page-size-select.mat-form-field-appearance-outline .mat-form-field-wrapper{padding-bottom:.75em} mat-paginator.mat-paginator .mat-paginator-page-size-select.mat-form-field-appearance-outline .mat-form-field-outline{top:.75em;bottom:-.25em} mat-paginator.mat-paginator .mat-paginator-page-size-select.mat-form-field-appearance-outline .mat-select-arrow-wrapper{-ms-transform:translateY(0);transform:translateY(0)} mat-paginator.mat-paginator .mat-paginator-page-size-select.mat-form-field-appearance-outline .mat-form-field-infix{padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0} .mat-option app-type-icon [class*=icofont-], .mat-select-trigger app-type-icon [class*=icofont-]{margin-right:.5em} .mat-option app-type-icon .mat-icon, .mat-select-trigger app-type-icon .mat-icon{margin-right:.5em;margin-top:-.25em} .mat-option .mat-select-value app-type-icon .mat-icon, .mat-select-trigger .mat-select-value app-type-icon .mat-icon{margin-top:.25em} .gm-style-iw-d, .gm-style-iw.gm-style-iw-c{max-height:50vh!important}@media (max-width:575px){ .gm-style-iw-d, .gm-style-iw.gm-style-iw-c{max-width:90vw!important}}@media (min-width:576px){ .gm-style-iw-d, .gm-style-iw.gm-style-iw-c{max-width:80vw!important}}@media (min-width:768px){ .gm-style-iw-d, .gm-style-iw.gm-style-iw-c{max-width:50vw!important}}@media (min-width:960px){ .gm-style-iw-d, .gm-style-iw.gm-style-iw-c{max-width:40vw!important}}@media (min-width:1200px){ .gm-style-iw-d, .gm-style-iw.gm-style-iw-c{max-width:30vw!important}} .mat-form-field-wrapper{padding-bottom:0} .type-tabs .mat-tab-label{color:#232d4b;margin:5px;opacity:1} .type-tabs .mat-tab-label:focus{outline:none}.type-buttons[_ngcontent-%COMP%]{text-transform:uppercase;margin:.25em 1em}.type-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#e57200;margin:.5em}#filters[_ngcontent-%COMP%], #partners[_ngcontent-%COMP%], #sort-and-status[_ngcontent-%COMP%], #type-buttons[_ngcontent-%COMP%]{margin:.5em 2em}.search-result-status[_ngcontent-%COMP%]{-ms-flex-pack:end;justify-content:flex-end}.type-tabs-container[_ngcontent-%COMP%]{height:74px}#content[_ngcontent-%COMP%]{position:relative}#location-and-map[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;right:0}#location-and-map.above[_ngcontent-%COMP%] #map[_ngcontent-%COMP%], #location-and-map.align-top[_ngcontent-%COMP%] #map[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}#location-and-map.docked.up[_ngcontent-%COMP%] #list-mapped-results-button[_ngcontent-%COMP%], #location-and-map.docked.up[_ngcontent-%COMP%] #set-location[_ngcontent-%COMP%]{top:194px}#location-and-map.docked.down[_ngcontent-%COMP%] #list-mapped-results-button[_ngcontent-%COMP%], #location-and-map.docked.down[_ngcontent-%COMP%] #set-location[_ngcontent-%COMP%]{top:74px}#location-and-map.docked[_ngcontent-%COMP%] #set-location[_ngcontent-%COMP%]{position:fixed;top:74px;left:calc(60% + 10px);width:240px}#location-and-map.docked[_ngcontent-%COMP%] #list-mapped-results-button[_ngcontent-%COMP%]{position:fixed;width:240px;top:74px;right:10px}#location-and-map.docked[_ngcontent-%COMP%] #map[_ngcontent-%COMP%]{position:fixed;top:64px;left:60%;right:0;bottom:0}#location-and-map.align-bottom[_ngcontent-%COMP%] #map[_ngcontent-%COMP%]{position:absolute;top:auto;bottom:0;left:0;right:0}#location-and-map.align-bottom[_ngcontent-%COMP%] #map[_ngcontent-%COMP%] agm-map[_ngcontent-%COMP%]{position:absolute;bottom:0}#location-and-map[_ngcontent-%COMP%] #list-mapped-results-button[_ngcontent-%COMP%]{position:absolute;z-index:1;width:240px;height:48px;transition:top .3s ease-in-out,margin-top .3s ease-in-out}#location-and-map[_ngcontent-%COMP%] #list-mapped-results-button.gt-sm[_ngcontent-%COMP%]{top:10px;right:10px}#location-and-map[_ngcontent-%COMP%] #list-mapped-results-button.lt-md[_ngcontent-%COMP%]{top:calc(100vh - 132px);left:10px}#location-and-map[_ngcontent-%COMP%] mat-expansion-panel#set-location{position:absolute;top:10px;left:10px;z-index:1;background-color:#fff;border-radius:5px;width:240px;transition:top .3s ease-in-out,margin-top .3s ease-in-out}#location-and-map[_ngcontent-%COMP%] mat-expansion-panel#set-location mat-expansion-panel-header{font-size:1em;height:48px!important}#location-and-map[_ngcontent-%COMP%] #map[_ngcontent-%COMP%]{height:100%}#location-and-map[_ngcontent-%COMP%] #map[_ngcontent-%COMP%] agm-map[_ngcontent-%COMP%]{height:calc(100vh - 64px);width:100%;z-index:0}#location-and-map[_ngcontent-%COMP%] .inset-shadow[_ngcontent-%COMP%]{position:absolute;top:0;right:0;bottom:0;left:0;box-shadow:inset 40px 20px 40px -40px rgba(0,0,0,.1);z-index:99;pointer-events:none}#scroll-spy[_ngcontent-%COMP%]{position:fixed;top:64px;bottom:0;left:0;right:0;pointer-events:none;background:rgba(0,0,0,0)}#filters.minimized[_ngcontent-%COMP%]{display:none!important}#filters.full-screen[_ngcontent-%COMP%]{display:block;position:fixed;top:0;right:0;bottom:0;left:0;height:100vh;width:100vw;background-color:#fff;z-index:1000;margin:0;padding:2rem;overflow-y:scroll}.filter-container[_ngcontent-%COMP%]{padding-top:2em;padding-bottom:1em;border-top:1px solid #ededed}#results-vs-map[_ngcontent-%COMP%], #results-vs-map[_ngcontent-%COMP%] .mat-button-toggle-group[_ngcontent-%COMP%], #type-filter[_ngcontent-%COMP%], #type-filter[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:100%}#results-vs-map[_ngcontent-%COMP%] .mat-button-toggle-group[_ngcontent-%COMP%] .mat-button-toggle[_ngcontent-%COMP%]{width:50%}.sort-order-small[_ngcontent-%COMP%]{width:100%}#design-options[_ngcontent-%COMP%]{padding:8px;position:fixed;top:0;left:50%;-ms-transform:translateX(-50%);transform:translateX(-50%);z-index:1000;background-color:#eee;border-radius:0 0 8px 8px}#design-options[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{padding:.2em .5em}#filters.black[_ngcontent-%COMP%] .mat-hint, #filters.gray[_ngcontent-%COMP%] .mat-hint, #filters.mountain[_ngcontent-%COMP%] .mat-hint, #filters.uva-blue[_ngcontent-%COMP%] .mat-hint, #filters.uva-orange[_ngcontent-%COMP%] .mat-hint, #hero.black[_ngcontent-%COMP%] .mat-hint, #hero.energy-burst-dark[_ngcontent-%COMP%] .mat-hint, #hero.energy-burst-light[_ngcontent-%COMP%] .mat-hint, #hero.gray[_ngcontent-%COMP%] .mat-hint, #hero.mountain[_ngcontent-%COMP%] .mat-hint, #hero.uva-blue[_ngcontent-%COMP%] .mat-hint, #hero.uva-orange[_ngcontent-%COMP%] .mat-hint, .black[_ngcontent-%COMP%] .mat-hint, .energy-burst-dark[_ngcontent-%COMP%] .mat-hint, .energy-burst-light[_ngcontent-%COMP%] .mat-hint, .gray[_ngcontent-%COMP%] .mat-hint, .mountain[_ngcontent-%COMP%] .mat-hint, .uva-blue[_ngcontent-%COMP%] .mat-hint, .uva-orange[_ngcontent-%COMP%] .mat-hint{color:#fff!important;font-style:italic}#filters.black[_ngcontent-%COMP%] .done-button, #filters.black[_ngcontent-%COMP%] .mat-form-field-label, #filters.black[_ngcontent-%COMP%] .mat-menu-trigger, #filters.black[_ngcontent-%COMP%] .mat-select-value-text, #filters.black[_ngcontent-%COMP%] .mat-tab-label, #filters.black[_ngcontent-%COMP%] .show-all, #filters.black[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, #filters.black[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, #filters.black[_ngcontent-%COMP%] h1, #filters.black[_ngcontent-%COMP%] h5, #filters.gray[_ngcontent-%COMP%] .done-button, #filters.gray[_ngcontent-%COMP%] .mat-form-field-label, #filters.gray[_ngcontent-%COMP%] .mat-menu-trigger, #filters.gray[_ngcontent-%COMP%] .mat-select-value-text, #filters.gray[_ngcontent-%COMP%] .mat-tab-label, #filters.gray[_ngcontent-%COMP%] .show-all, #filters.gray[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, #filters.gray[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, #filters.gray[_ngcontent-%COMP%] h1, #filters.gray[_ngcontent-%COMP%] h5, #filters.mountain[_ngcontent-%COMP%] .done-button, #filters.mountain[_ngcontent-%COMP%] .mat-form-field-label, #filters.mountain[_ngcontent-%COMP%] .mat-menu-trigger, #filters.mountain[_ngcontent-%COMP%] .mat-select-value-text, #filters.mountain[_ngcontent-%COMP%] .mat-tab-label, #filters.mountain[_ngcontent-%COMP%] .show-all, #filters.mountain[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, #filters.mountain[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, #filters.mountain[_ngcontent-%COMP%] h1, #filters.mountain[_ngcontent-%COMP%] h5, #filters.uva-blue[_ngcontent-%COMP%] .done-button, #filters.uva-blue[_ngcontent-%COMP%] .mat-form-field-label, #filters.uva-blue[_ngcontent-%COMP%] .mat-menu-trigger, #filters.uva-blue[_ngcontent-%COMP%] .mat-select-value-text, #filters.uva-blue[_ngcontent-%COMP%] .mat-tab-label, #filters.uva-blue[_ngcontent-%COMP%] .show-all, #filters.uva-blue[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, #filters.uva-blue[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, #filters.uva-blue[_ngcontent-%COMP%] h1, #filters.uva-blue[_ngcontent-%COMP%] h5, #hero.black[_ngcontent-%COMP%] .done-button, #hero.black[_ngcontent-%COMP%] .mat-form-field-label, #hero.black[_ngcontent-%COMP%] .mat-menu-trigger, #hero.black[_ngcontent-%COMP%] .mat-select-value-text, #hero.black[_ngcontent-%COMP%] .mat-tab-label, #hero.black[_ngcontent-%COMP%] .show-all, #hero.black[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, #hero.black[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, #hero.black[_ngcontent-%COMP%] h1, #hero.black[_ngcontent-%COMP%] h5, #hero.energy-burst-dark[_ngcontent-%COMP%] .done-button, #hero.energy-burst-dark[_ngcontent-%COMP%] .mat-form-field-label, #hero.energy-burst-dark[_ngcontent-%COMP%] .mat-menu-trigger, #hero.energy-burst-dark[_ngcontent-%COMP%] .mat-select-value-text, #hero.energy-burst-dark[_ngcontent-%COMP%] .mat-tab-label, #hero.energy-burst-dark[_ngcontent-%COMP%] .show-all, #hero.energy-burst-dark[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, #hero.energy-burst-dark[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, #hero.energy-burst-dark[_ngcontent-%COMP%] h1, #hero.energy-burst-dark[_ngcontent-%COMP%] h5, #hero.energy-burst-light[_ngcontent-%COMP%] .done-button, #hero.energy-burst-light[_ngcontent-%COMP%] .mat-form-field-label, #hero.energy-burst-light[_ngcontent-%COMP%] .mat-menu-trigger, #hero.energy-burst-light[_ngcontent-%COMP%] .mat-select-value-text, #hero.energy-burst-light[_ngcontent-%COMP%] .mat-tab-label, #hero.energy-burst-light[_ngcontent-%COMP%] .show-all, #hero.energy-burst-light[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, #hero.energy-burst-light[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, #hero.energy-burst-light[_ngcontent-%COMP%] h1, #hero.energy-burst-light[_ngcontent-%COMP%] h5, #hero.gray[_ngcontent-%COMP%] .done-button, #hero.gray[_ngcontent-%COMP%] .mat-form-field-label, #hero.gray[_ngcontent-%COMP%] .mat-menu-trigger, #hero.gray[_ngcontent-%COMP%] .mat-select-value-text, #hero.gray[_ngcontent-%COMP%] .mat-tab-label, #hero.gray[_ngcontent-%COMP%] .show-all, #hero.gray[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, #hero.gray[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, #hero.gray[_ngcontent-%COMP%] h1, #hero.gray[_ngcontent-%COMP%] h5, #hero.mountain[_ngcontent-%COMP%] .done-button, #hero.mountain[_ngcontent-%COMP%] .mat-form-field-label, #hero.mountain[_ngcontent-%COMP%] .mat-menu-trigger, #hero.mountain[_ngcontent-%COMP%] .mat-select-value-text, #hero.mountain[_ngcontent-%COMP%] .mat-tab-label, #hero.mountain[_ngcontent-%COMP%] .show-all, #hero.mountain[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, #hero.mountain[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, #hero.mountain[_ngcontent-%COMP%] h1, #hero.mountain[_ngcontent-%COMP%] h5, #hero.uva-blue[_ngcontent-%COMP%] .done-button, #hero.uva-blue[_ngcontent-%COMP%] .mat-form-field-label, #hero.uva-blue[_ngcontent-%COMP%] .mat-menu-trigger, #hero.uva-blue[_ngcontent-%COMP%] .mat-select-value-text, #hero.uva-blue[_ngcontent-%COMP%] .mat-tab-label, #hero.uva-blue[_ngcontent-%COMP%] .show-all, #hero.uva-blue[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, #hero.uva-blue[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, #hero.uva-blue[_ngcontent-%COMP%] h1, #hero.uva-blue[_ngcontent-%COMP%] h5, .black[_ngcontent-%COMP%] .done-button, .black[_ngcontent-%COMP%] .mat-form-field-label, .black[_ngcontent-%COMP%] .mat-menu-trigger, .black[_ngcontent-%COMP%] .mat-select-value-text, .black[_ngcontent-%COMP%] .mat-tab-label, .black[_ngcontent-%COMP%] .show-all, .black[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, .black[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, .black[_ngcontent-%COMP%] h1, .black[_ngcontent-%COMP%] h5, .energy-burst-dark[_ngcontent-%COMP%] .done-button, .energy-burst-dark[_ngcontent-%COMP%] .mat-form-field-label, .energy-burst-dark[_ngcontent-%COMP%] .mat-menu-trigger, .energy-burst-dark[_ngcontent-%COMP%] .mat-select-value-text, .energy-burst-dark[_ngcontent-%COMP%] .mat-tab-label, .energy-burst-dark[_ngcontent-%COMP%] .show-all, .energy-burst-dark[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, .energy-burst-dark[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, .energy-burst-dark[_ngcontent-%COMP%] h1, .energy-burst-dark[_ngcontent-%COMP%] h5, .energy-burst-light[_ngcontent-%COMP%] .done-button, .energy-burst-light[_ngcontent-%COMP%] .mat-form-field-label, .energy-burst-light[_ngcontent-%COMP%] .mat-menu-trigger, .energy-burst-light[_ngcontent-%COMP%] .mat-select-value-text, .energy-burst-light[_ngcontent-%COMP%] .mat-tab-label, .energy-burst-light[_ngcontent-%COMP%] .show-all, .energy-burst-light[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, .energy-burst-light[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, .energy-burst-light[_ngcontent-%COMP%] h1, .energy-burst-light[_ngcontent-%COMP%] h5, .gray[_ngcontent-%COMP%] .done-button, .gray[_ngcontent-%COMP%] .mat-form-field-label, .gray[_ngcontent-%COMP%] .mat-menu-trigger, .gray[_ngcontent-%COMP%] .mat-select-value-text, .gray[_ngcontent-%COMP%] .mat-tab-label, .gray[_ngcontent-%COMP%] .show-all, .gray[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, .gray[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, .gray[_ngcontent-%COMP%] h1, .gray[_ngcontent-%COMP%] h5, .mountain[_ngcontent-%COMP%] .done-button, .mountain[_ngcontent-%COMP%] .mat-form-field-label, .mountain[_ngcontent-%COMP%] .mat-menu-trigger, .mountain[_ngcontent-%COMP%] .mat-select-value-text, .mountain[_ngcontent-%COMP%] .mat-tab-label, .mountain[_ngcontent-%COMP%] .show-all, .mountain[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, .mountain[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, .mountain[_ngcontent-%COMP%] h1, .mountain[_ngcontent-%COMP%] h5, .uva-blue[_ngcontent-%COMP%] .done-button, .uva-blue[_ngcontent-%COMP%] .mat-form-field-label, .uva-blue[_ngcontent-%COMP%] .mat-menu-trigger, .uva-blue[_ngcontent-%COMP%] .mat-select-value-text, .uva-blue[_ngcontent-%COMP%] .mat-tab-label, .uva-blue[_ngcontent-%COMP%] .show-all, .uva-blue[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, .uva-blue[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, .uva-blue[_ngcontent-%COMP%] h1, .uva-blue[_ngcontent-%COMP%] h5{color:#fff!important}#filters.black[_ngcontent-%COMP%] .mat-menu-trigger, #filters.gray[_ngcontent-%COMP%] .mat-menu-trigger, #filters.mountain[_ngcontent-%COMP%] .mat-menu-trigger, #filters.uva-blue[_ngcontent-%COMP%] .mat-menu-trigger, #hero.black[_ngcontent-%COMP%] .mat-menu-trigger, #hero.energy-burst-dark[_ngcontent-%COMP%] .mat-menu-trigger, #hero.energy-burst-light[_ngcontent-%COMP%] .mat-menu-trigger, #hero.gray[_ngcontent-%COMP%] .mat-menu-trigger, #hero.mountain[_ngcontent-%COMP%] .mat-menu-trigger, #hero.uva-blue[_ngcontent-%COMP%] .mat-menu-trigger, .black[_ngcontent-%COMP%] .mat-menu-trigger, .energy-burst-dark[_ngcontent-%COMP%] .mat-menu-trigger, .energy-burst-light[_ngcontent-%COMP%] .mat-menu-trigger, .gray[_ngcontent-%COMP%] .mat-menu-trigger, .mountain[_ngcontent-%COMP%] .mat-menu-trigger, .uva-blue[_ngcontent-%COMP%] .mat-menu-trigger{background-color:rgba(0,0,0,.2)}#filters.light-gray[_ngcontent-%COMP%], #hero.light-gray[_ngcontent-%COMP%], .light-gray[_ngcontent-%COMP%]{background-color:#eee}#filters.white[_ngcontent-%COMP%], #hero.white[_ngcontent-%COMP%], .white[_ngcontent-%COMP%]{background-color:#fff}#filters.uva-blue[_ngcontent-%COMP%], #hero.uva-blue[_ngcontent-%COMP%], .uva-blue[_ngcontent-%COMP%]{background-color:#002f6c}#filters.uva-orange[_ngcontent-%COMP%], #hero.uva-orange[_ngcontent-%COMP%], .uva-orange[_ngcontent-%COMP%]{background-color:#e57200}#filters.black[_ngcontent-%COMP%], #hero.black[_ngcontent-%COMP%], .black[_ngcontent-%COMP%]{background-color:#000}#filters.gray[_ngcontent-%COMP%], #hero.gray[_ngcontent-%COMP%], .gray[_ngcontent-%COMP%]{background-color:#636466}#filters.mountain[_ngcontent-%COMP%], #hero.mountain[_ngcontent-%COMP%], .mountain[_ngcontent-%COMP%]{background-color:#6f7ea0}#filters.sky[_ngcontent-%COMP%], #hero.sky[_ngcontent-%COMP%], .sky[_ngcontent-%COMP%]{background-color:#e5eef3}#hero.energy-burst-dark[_ngcontent-%COMP%], .energy-burst-dark[_ngcontent-%COMP%]{background-image:url(https://curry.virginia.edu/sites/all/themes/curry/_files/css/i/sunrise-burst.jpg)}#hero.energy-burst-light[_ngcontent-%COMP%], .energy-burst-light[_ngcontent-%COMP%]{background-image:url(https://curry.virginia.edu/sites/all/themes/curry/_files/css/i/sunrise-burst-footer-crop.jpg)}.color-swatch[_ngcontent-%COMP%]{display:inline-block;width:24px;height:24px;outline:1px solid #eee}#show-filters-button[_ngcontent-%COMP%]{margin-bottom:1em}app-border-box-tile[_ngcontent-%COMP%]{transition:position 3s} .mat-tooltip{font-size:15px!important}.mat-progress-bar[_ngcontent-%COMP%]{height:6px}.loc-service[_ngcontent-%COMP%]{margin:2em}"],data:{animation:[uC("pageAnimations",[gC(":enter",[yC("#age-filter, #language-filter, #topic-filter",[fC({opacity:0,transform:"translateX(-100px)"}),(P7=[cC("500ms cubic-bezier(0.35, 0, 0.25, 1)",fC({opacity:1,transform:"none"}))],{type:12,timings:-30,animation:P7})])])])]}}),D7);function R7(e,t){if(1&e&&fs(0,"app-type-icon",20),2&e){var n=As();us("iconType",n.selectedStatus&&n.selectedStatus.name)("size",1)}}function L7(e,t){if(1&e&&(ds(0,"span",21),Js(1),hs()),2&e){var n=As();Oa(1),el(n.selectedStatus.label)}}function F7(e,t){if(1&e){var n=vs();ds(0,"mat-option",22),ks("click",function(){rn(n);var e=t.$implicit;return As().selectStatus(e)}),ds(1,"span",21),Js(2),hs(),hs()}if(2&e){var i=t.$implicit;us("value",i)("ngClass","sort-by-"+i.name.toLowerCase()),Oa(2),el(i.label)}}function N7(e,t){if(1&e&&(ds(0,"span",21),Js(1),hs()),2&e){var n=As();Oa(1),el(n.selectedAge.label)}}function V7(e,t){if(1&e){var n=vs();ds(0,"mat-option",11),ks("click",function(){rn(n);var e=t.$implicit;return As().selectAge(e)}),ds(1,"span",21),Js(2),hs(),hs()}if(2&e){var i=t.$implicit;us("value",i),Oa(2),el(i.label)}}function B7(e,t){if(1&e&&fs(0,"app-type-icon",20),2&e){var n=As();us("iconType",n.selectedStatus&&n.selectedStatus.name)("size",1)}}function H7(e,t){if(1&e&&(ds(0,"span",21),Js(1),hs()),2&e){var n=As();Oa(1),el(n.selectedStatus.label)}}function z7(e,t){if(1&e){var n=vs();ds(0,"mat-option",11),ks("click",function(){rn(n);var e=t.$implicit;return As().selectStatus(e)}),ds(1,"span",21),Js(2),hs(),hs()}if(2&e){var i=t.$implicit;us("value",i),Oa(2),el(i.label)}}function G7(e,t){if(1&e&&(ds(0,"span",21),Js(1),hs()),2&e){var n=As();Oa(1),el(n.selectedAge.label)}}function j7(e,t){if(1&e){var n=vs();ds(0,"mat-option",11),ks("click",function(){rn(n);var e=t.$implicit;return As().selectAge(e)}),ds(1,"span",21),Js(2),hs(),hs()}if(2&e){var i=t.$implicit;us("value",i),Oa(2),el(i.label)}}function U7(e,t){if(1&e&&fs(0,"app-add-button",23),2&e){var n=As();us("addLabel","Add Study")("addLink","studies/add")("currentUser",n.currentUser)}}function W7(e,t){if(1&e&&fs(0,"app-search-result",25),2&e){var n=t.$implicit,i=As(2);us("hit",n),is("data-study-status",i.selectedStatus.name)}}function q7(e,t){if(1&e&&(ps(0),os(1,W7,1,2,"app-search-result",24),ms()),2&e){var n=As();Oa(1),us("ngForOf",n.studyHits)}}function Y7(e,t){1&e&&(ds(0,"span"),Js(1,"that are enrolling"),hs())}function Q7(e,t){1&e&&(ds(0,"span"),Js(1,"that are in progress"),hs())}function X7(e,t){1&e&&(ds(0,"span"),Js(1,"where results are being analyzed"),hs())}function $7(e,t){1&e&&(ds(0,"span"),Js(1,"where results have been published"),hs())}function K7(e,t){if(1&e&&(ds(0,"p",26),Js(1," We don't have any Autism DRIVE studies "),os(2,Y7,2,0,"span",18),os(3,Q7,2,0,"span",18),os(4,X7,2,0,"span",18),os(5,$7,2,0,"span",18),Js(6," at this time, but we're working on it. Check back soon, as the status of our research is constantly changing! "),hs()),2&e){var n=As();is("data-study-status",n.selectedStatus.name),Oa(2),us("ngIf","currently_enrolling"===n.selectedStatus.name),Oa(1),us("ngIf","study_in_progress"===n.selectedStatus.name),Oa(1),us("ngIf","results_being_analyzed"===n.selectedStatus.name),Oa(1),us("ngIf","study_results_published"===n.selectedStatus.name)}}var Z7,J7,e8=((J7=function(){function e(t,n,i,r,a){var o=this;b(this,e),this.api=t,this.authenticationService=n,this.route=i,this.router=r,this.meta=a,this.authenticationService.currentUser.subscribe(function(e){return o.currentUser=e}),this.meta.updateTag({property:"og:image",content:location.origin+"/assets/studies/hero.jpg"},"property='og:image'"),this.meta.updateTag({property:"og:image:secure_url",content:location.origin+"/assets/studies/hero.jpg"},"property='og:image:secure_url'"),this.meta.updateTag({name:"twitter:image",content:location.origin+"/assets/studies/hero.jpg"},"name='twitter:image'"),this.studyStatuses=Object.keys(vK).map(function(e){return{name:e,label:vK[e]}}),this.Ages=Object.keys(cK.labels).map(function(e){return{name:e,label:cK.labels[e]}}),console.log(this.Ages),this.route.params.subscribe(function(e){"studyStatus"in e?(o.selectedStatus=o.studyStatuses.find(function(t){return t.name===e.studyStatus}),o.selectedAge="age"in e?o.Ages.find(function(t){return t.name===e.age}):void 0):(o.selectedStatus=o.studyStatuses[0],o.route.params.studyStatus=o.studyStatuses[0].name,o.selectedAge=void 0,o.router.navigate(["/studies/"+o.studyStatuses[0].name]))}),this.loadStudies()}return w(e,[{key:"ngOnInit",value:function(){}},{key:"loadStudies",value:function(){var e=this;this.selectedAge?this.api.getStudiesByAge(this.selectedStatus.name,this.selectedAge.name).subscribe(function(t){e.studyHits=e._studiesToHits(t)}):this.api.getStudiesByStatus(this.selectedStatus.name).subscribe(function(t){e.studyHits=e._studiesToHits(t)})}},{key:"selectStatus",value:function(e){this.selectedStatus=e,this.router.navigate(["/studies/"+e.name]),this.loadStudies()}},{key:"selectAge",value:function(e){this.selectedAge=e,this.router.navigate(e?["/studies/"+this.selectedStatus.name+"/"+e.name]:["/studies/"+this.selectedStatus.name]),this.loadStudies()}},{key:"_studiesToHits",value:function(e){var t=this;return e.map(function(e){return new gK({id:e.id,type:"study",ages:e.ages,title:e.short_title,content:e.description,description:e.short_description,last_updated:e.last_updated,highlights:null,url:"/study/".concat(e.id),label:"Research Studies",status:t.studyStatuses.find(function(t){return t.name===e.status}).label})})}}]),e}()).\u0275fac=function(e){return new(e||J7)(ls(x$),ls(y$),ls(oQ),ls(EX),ls(Yf))},J7.\u0275cmp=pt({type:J7,selectors:[["app-studies"]],decls:50,vars:20,consts:[["fxLayoutAlign","center","fxLayout","column"],["id","hero","ngClass.lt-md","margin-bottom-none","ngStyle.gt-md","padding-bottom:180px; margin-bottom:10px",1,"center-center","gradient-overlay","container","with-escaping-tiles"],[1,"hero-content"],[1,"desktop"],["fxLayout","row","fxLayoutGap","40px","fxLayoutAlign","left auto","id","TopOfSearch",1,"row","escaping-tiles-1x",2,"padding-left","6em","padding-right","2em","padding-top","2em"],["id","set-status",2,"margin-bottom","-1em"],[3,"value","valueChange"],[3,"iconType","size",4,"ngIf"],["class","type-label",4,"ngIf"],[3,"value","ngClass","click",4,"ngFor","ngForOf"],["placeholder","All Ages",3,"value","valueChange"],[3,"value","click"],[3,"value","click",4,"ngFor","ngForOf"],[1,"mobile_device_480px"],["fxLayout","column","fxLayoutGap","2px","fxLayoutAlign","center auto","id","TopOfSearch",1,"row","escaping-tiles-1x",2,"padding-left","2em","padding-right","2em"],[2,"margin-bottom","-1em"],["fxLayout","column","fxLayoutGap","40px","ngStyle.gt-md","padding-top:10px;",1,"studies"],[3,"addLabel","addLink","currentUser",4,"ngIf"],[4,"ngIf"],["class","no-results",4,"ngIf"],[3,"iconType","size"],[1,"type-label"],[3,"value","ngClass","click"],[3,"addLabel","addLink","currentUser"],[3,"hit",4,"ngFor","ngForOf"],[3,"hit"],[1,"no-results"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"div",1),ds(2,"div",2),ds(3,"h1"),Js(4,"Autism Research Studies"),hs(),hs(),hs(),ds(5,"div",3),ds(6,"div",4),ds(7,"mat-form-field",5),ds(8,"mat-label"),Js(9,"Study Status"),hs(),ds(10,"mat-select",6),ks("valueChange",function(e){return t.selectedStatus=e}),ds(11,"mat-select-trigger"),os(12,R7,1,2,"app-type-icon",7),os(13,L7,2,1,"span",8),hs(),os(14,F7,3,3,"mat-option",9),hs(),hs(),ds(15,"mat-form-field"),ds(16,"mat-label"),Js(17,"Age Range"),hs(),ds(18,"mat-select",10),ks("valueChange",function(e){return t.selectedAge=e}),ds(19,"mat-select-trigger"),os(20,N7,2,1,"span",8),hs(),ds(21,"mat-option",11),ks("click",function(){return t.selectAge(void 0)}),Js(22,"All Ages"),hs(),os(23,V7,3,2,"mat-option",12),hs(),hs(),hs(),hs(),ds(24,"div",13),fs(25,"p"),ds(26,"div",14),ds(27,"mat-form-field",15),ds(28,"mat-label"),Js(29,"Study Status"),hs(),ds(30,"mat-select",6),ks("valueChange",function(e){return t.selectedStatus=e}),ds(31,"mat-select-trigger"),os(32,B7,1,2,"app-type-icon",7),os(33,H7,2,1,"span",8),hs(),os(34,z7,3,2,"mat-option",12),hs(),hs(),ds(35,"mat-form-field"),ds(36,"mat-label"),Js(37,"Age Range"),hs(),ds(38,"mat-select",10),ks("valueChange",function(e){return t.selectedAge=e}),ds(39,"mat-select-trigger"),os(40,G7,2,1,"span",8),hs(),ds(41,"mat-option",11),ks("click",function(){return t.selectAge(void 0)}),Js(42,"All Ages"),hs(),os(43,j7,3,2,"mat-option",12),hs(),hs(),hs(),hs(),ds(44,"div",16),os(45,U7,1,3,"app-add-button",17),ds(46,"h2"),Js(47),hs(),os(48,q7,2,1,"ng-container",18),os(49,K7,7,5,"p",19),hs(),hs()),2&e&&(Oa(10),us("value",t.selectedStatus),Oa(2),us("ngIf",t.selectedStatus),Oa(1),us("ngIf",t.selectedStatus),Oa(1),us("ngForOf",t.studyStatuses),Oa(4),us("value",t.selectedAge),Oa(2),us("ngIf",t.selectedAge),Oa(1),us("value",void 0),Oa(2),us("ngForOf",t.Ages),Oa(7),us("value",t.selectedStatus),Oa(2),us("ngIf",t.selectedStatus),Oa(1),us("ngIf",t.selectedStatus),Oa(1),us("ngForOf",t.studyStatuses),Oa(4),us("value",t.selectedAge),Oa(2),us("ngIf",t.selectedAge),Oa(1),us("value",void 0),Oa(2),us("ngForOf",t.Ages),Oa(2),us("ngIf",t.currentUser&&t.currentUser.permissions.includes("create_study")),Oa(2),el(t.selectedStatus.label),Oa(1),us("ngIf",t.studyHits&&t.studyHits.length>0),Oa(1),us("ngIf",!t.studyHits||0===t.studyHits.length))},directives:[eb,Xy,ly,Sy,n_,wT,hT,KL,XL,wh,bh,JA,BK,yh,n5,iZ],styles:['#hero[_ngcontent-%COMP%]{background-image:url(/assets/studies/hero.jpg)}#hero[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{color:#fff}.studies[_ngcontent-%COMP%]{padding:5.5%}.studies[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:2.5rem}.studies[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]:after{content:"";background-color:#e57200;width:6.25rem;height:.125rem;display:block} .mat-form-field-wrapper{margin-bottom:-1.25em}.covid19-alert[_ngcontent-%COMP%]{margin:2%}.covid19-alert[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{max-width:960px}.mobile_device_480px[_ngcontent-%COMP%]{display:none}@media only screen and (max-device-width:480px){.mobile_device_480px[_ngcontent-%COMP%]{display:block}.desktop[_ngcontent-%COMP%]{display:none}}']}),J7),t8=((Z7=function(){function e(t,n){b(this,e),this.dialogRef=t,this.data=n}return w(e,[{key:"ngOnInit",value:function(){}},{key:"onNoClick",value:function(){this.dialogRef.close()}}]),e}()).\u0275fac=function(e){return new(e||Z7)(ls(ID),ls(zD))},Z7.\u0275cmp=pt({type:Z7,selectors:[["app-investigator-form"]],decls:24,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["matInput","",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","",3,"click"],["mat-flat-button","","color","primary","cdkFocusInitial","",3,"mat-dialog-close"]],template:function(e,t){1&e&&(ds(0,"h1",0),Js(1,"Edit Investigator"),hs(),ds(2,"div",1),ds(3,"mat-form-field"),ds(4,"mat-label"),Js(5,"Name:"),hs(),ds(6,"input",2),ks("ngModelChange",function(e){return t.data.si.investigator.name=e}),hs(),hs(),ds(7,"mat-form-field"),ds(8,"mat-label"),Js(9,"Title:"),hs(),ds(10,"input",2),ks("ngModelChange",function(e){return t.data.si.investigator.title=e}),hs(),hs(),ds(11,"mat-form-field"),ds(12,"mat-label"),Js(13,"Organization Name:"),hs(),ds(14,"input",2),ks("ngModelChange",function(e){return t.data.si.investigator.organization_name=e}),hs(),hs(),ds(15,"mat-form-field"),ds(16,"mat-label"),Js(17,"Bio Link:"),hs(),ds(18,"input",2),ks("ngModelChange",function(e){return t.data.si.investigator.bio_link=e}),hs(),hs(),hs(),ds(19,"div",3),ds(20,"button",4),ks("click",function(){return t.onNoClick()}),Js(21,"Cancel"),hs(),ds(22,"button",5),Js(23,"Save"),hs(),hs()),2&e&&(Oa(6),us("ngModel",t.data.si.investigator.name),Oa(4),us("ngModel",t.data.si.investigator.title),Oa(4),us("ngModel",t.data.si.investigator.organization_name),Oa(4),us("ngModel",t.data.si.investigator.bio_link),Oa(4),us("mat-dialog-close",t.data.si.investigator))},directives:[XD,$D,wT,hT,vM,wb,Zb,Nk,KD,kP,QD],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),Z7);function n8(e,t){if(1&e&&(ds(0,"div",7),Js(1),hs()),2&e){var n=As(2);Oa(1),el(n.errorMessage)}}function i8(e,t){if(1&e&&(ds(0,"footer",8),ds(1,"button",9),Js(2,"Next"),hs(),ds(3,"button",10),Js(4,"Cancel"),hs(),hs()),2&e){var n=As(2);Oa(3),us("mat-dialog-close",n.data.displaySurvey)}}function r8(e,t){1&e&&(ds(0,"footer"),fs(1,"app-loading"),hs())}function a8(e,t){if(1&e&&(ds(0,"formly-form",3),os(1,n8,2,1,"div",4),os(2,i8,5,1,"footer",5),os(3,r8,2,0,"footer",6),hs()),2&e){var n=As();us("form",n.form)("fields",n.fields)("model",n.model),Oa(1),us("ngIf",n.errorMessage),Oa(1),us("ngIf","form"===n.registerStateValue),Oa(1),us("ngIf","submitting"===n.registerStateValue)}}function o8(e,t){if(1&e&&(ds(0,"footer",11),ds(1,"h2"),Js(2,"Account Created!"),hs(),ds(3,"p"),Js(4,"Please check your email to complete the signin process."),hs(),ds(5,"button",12),Js(6," Continue to survey "),hs(),hs()),2&e){var n=As();Oa(5),us("mat-dialog-close",n.data.displaySurvey)}}var s8,l8=((s8=function(){function e(t,n,i,r,a,o){b(this,e),this.api=t,this.changeDetectorRef=n,this.route=i,this.googleAnalytics=r,this.dialogRef=a,this.data=o,this.errorMessage="",this.form=new Pk({}),this.model={},this.fields=[{key:"email",validators:{fieldMatch:{expression:function(e){var t=e.value;return t.emailConfirm===t.email||!t.emailConfirm||!t.email},message:"Email Does Not Match",errorPath:"emailConfirm"}},fieldGroup:[{key:"email",type:"input",templateOptions:{type:"email",label:"Email Address:",placeholder:"Enter email",required:!0},validators:{validation:["email"]}},{key:"emailConfirm",type:"input",templateOptions:{type:"email",label:"Confirm Email",placeholder:"Please re-enter your email",required:!0}}]}],this._stateSubject=new ep("form"),this.registerState=this._stateSubject.asObservable(),this.user=new v$({id:null,email:this.model.email,role:"User"})}return w(e,[{key:"ngOnInit",value:function(){}},{key:"submit",value:function(){var e=this;localStorage.removeItem("token_url"),this.form.valid&&(this._stateSubject.next("submitting"),this.registerState=this._stateSubject.asObservable(),this.errorMessage="",this.user.email=this.model.email.email,this.api.addUser(this.user).subscribe(function(t){e.user=t,t.hasOwnProperty("token_url")&&localStorage.setItem("token_url",t.token_url),e.googleAnalytics.accountEvent("register"),e._stateSubject.next("wait_for_email"),e.registerState=e._stateSubject.asObservable(),e.changeDetectorRef.detectChanges(),e.data.displaySurvey=!0},function(t){e._stateSubject.next("form"),e.registerState=e._stateSubject.asObservable(),e.errorMessage=t,e.changeDetectorRef.detectChanges()}))}},{key:"registerStateValue",get:function(){return this._stateSubject.value}}]),e}()).\u0275fac=function(e){return new(e||s8)(ls(x$),ls(Jl),ls(oQ),ls(h$),ls(ID),ls(zD))},s8.\u0275cmp=pt({type:s8,selectors:[["app-register-dialog"]],decls:5,vars:3,consts:[[3,"formGroup","ngSubmit"],[3,"form","fields","model",4,"ngIf"],["id","confirmation_message",4,"ngIf"],[3,"form","fields","model"],["id","error_message","class","display mat-error",4,"ngIf"],["fxLayout","column","fxLayoutGap","2%","fxLayoutAlign","center",4,"ngIf"],[4,"ngIf"],["id","error_message",1,"display","mat-error"],["fxLayout","column","fxLayoutGap","2%","fxLayoutAlign","center"],["mat-flat-button","","type","submit","color","primary","id","submit"],["mat-flat-button","","color","accent","id","cancel",3,"mat-dialog-close"],["id","confirmation_message"],["color","primary","mat-flat-button","","id","continue",3,"mat-dialog-close"]],template:function(e,t){1&e&&(ds(0,"h1"),Js(1,"Join Autism DRIVE"),hs(),ds(2,"form",0),ks("ngSubmit",function(){return t.submit()}),os(3,a8,4,6,"formly-form",1),os(4,o8,7,1,"footer",2),hs()),2&e&&(Oa(2),us("formGroup",t.form),Oa(1),us("ngIf","wait_for_email"!==t.registerStateValue),Oa(1),us("ngIf","wait_for_email"===t.registerStateValue))},directives:[Vk,Jb,qk,wh,yj,Xy,n_,eb,kP,QD,zZ],styles:[""]}),s8);function u8(e,t){if(1&e){var n=vs();ds(0,"div",3),ds(1,"p"),Js(2,"Joining Autism DRIVE is the first step toward participating in our clinical research. Once you join you will be able to see the link to participate."),hs(),ds(3,"button",4),ks("click",function(){return rn(n),As().openDialog()}),Js(4,"Join Autism DRIVE"),hs(),ds(5,"p"),Js(6,"Already a user? Sign in to see the link to participate."),hs(),ds(7,"button",5),ks("click",function(){return rn(n),As().goLogin()}),Js(8,"Sign In"),hs(),hs()}}function c8(e,t){if(1&e){var n=vs();ds(0,"button",7),ks("click",function(){return rn(n),As(2).goSurvey()}),Js(1,"Start Survey"),hs()}}function d8(e,t){if(1&e&&(ds(0,"div"),os(1,c8,2,0,"button",6),hs()),2&e){var n=As();Oa(1),us("ngIf",n.surveyLink)}}var h8,f8=((h8=function(){function e(t,n,i){b(this,e),this.router=t,this.googleAnalytics=n,this.dialog=i,this.currentUser=!1}return w(e,[{key:"ngOnInit",value:function(){}},{key:"goLogin",value:function(){this.router.navigate(["/login"],{queryParams:{returnUrl:this.router.url}})}},{key:"goSurvey",value:function(){this.surveyLink&&(this.googleAnalytics.studySurveyEvent(this.study),window.open(this.surveyLink,"_blank"))}},{key:"openDialog",value:function(){var e=this;this.dialog.open(l8,{width:"".concat(window.innerWidth,"px"),data:{displaySurvey:!1}}).afterClosed().subscribe(function(t){t&&(e.currentUser=!0,e.goSurvey())})}}]),e}()).\u0275fac=function(e){return new(e||h8)(ls(EX),ls(h$),ls(qD))},h8.\u0275cmp=pt({type:h8,selectors:[["app-study-survey-entry"]],inputs:{study:"study",currentUser:"currentUser",surveyLink:"surveyLink"},decls:5,vars:2,consts:[["fxFlex.gt-md","60%"],["fxLayout","column","fxLayoutGap","20px",4,"ngIf"],[4,"ngIf"],["fxLayout","column","fxLayoutGap","20px"],["mat-flat-button","","color","primary",3,"click"],["mat-flat-button","","color","accent",3,"click"],["mat-flat-button","","color","primary","id","survey-button",3,"click",4,"ngIf"],["mat-flat-button","","color","primary","id","survey-button",3,"click"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"h2"),Js(2,"Interested in Participating?"),hs(),os(3,u8,9,0,"div",1),os(4,d8,2,1,"div",2),hs()),2&e&&(Oa(3),us("ngIf",!t.currentUser),Oa(1),us("ngIf",t.currentUser))},directives:[v_,wh,Xy,n_,kP],styles:["#survey-button[_ngcontent-%COMP%]{margin:1em auto}"]}),h8);function p8(e,t){if(1&e){var n=vs();ds(0,"div",3),ds(1,"p"),Js(2,"Joining Autism DRIVE is the first step toward participating in our clinical research."),hs(),ds(3,"button",4),ks("click",function(){return rn(n),As(2).goRegister()}),Js(4,"Join Autism DRIVE"),hs(),ds(5,"p"),Js(6,"Already a user? Sign in"),hs(),ds(7,"button",5),ks("click",function(){return rn(n),As(2).goLogin()}),Js(8,"Sign In"),hs(),hs()}}function m8(e,t){if(1&e){var n=vs();ds(0,"div"),ds(1,"mat-card"),ds(2,"mat-card-title"),Js(3),hs(),ds(4,"mat-card-subtitle"),Js(5),Iu(6,"titlecase"),hs(),ds(7,"div",8),fs(8,"mat-progress-bar",9),ds(9,"button",10),ks("click",function(e){rn(n);var i=t.$implicit;return As(4).goEditEnroll(e,i)}),Js(10),hs(),hs(),hs(),hs()}if(2&e){var i=t.$implicit,r=As(4);Oa(1),Hs("mat-elevation-z0",!0),Oa(2),el(i.name||"No User Name Set"),Oa(2),el(r.currentUser.isSelf(i)?"You":Ru(6,9,i.relationship)),Oa(3),us("mode","determinate")("value",100*i.percent_complete),Oa(1),Ms("id","edit_enroll_",i.relationship,"_",i.id,""),Oa(1),tl("Edit ","self_guardian"===i.relationship?"guardian":"enrollment"," info")}}function g8(e,t){if(1&e){var n=vs();ds(0,"div"),ds(1,"h4"),Js(2,"Send Inquiry"),hs(),ds(3,"p"),Js(4,"Select the \u201cLearn More\u201d button for a member of the research team to contact you to learn more."),hs(),ds(5,"button",5),ks("click",function(){return rn(n),As(4).sendInquiry()}),Js(6,"Learn More"),hs(),hs()}}function v8(e,t){if(1&e&&(ds(0,"div"),ds(1,"p"),Js(2,"Please make sure that your profile is complete before indicating your interest in this study. The researchers have a much better chance of determining your eligibility if they can see complete details about you and/or your dependant."),hs(),os(3,m8,11,11,"div",7),os(4,g8,7,0,"div",6),hs()),2&e){var n=As(3);Oa(3),us("ngForOf",n.currentUser.participants),Oa(1),us("ngIf",n.haveUserContact)}}function y8(e,t){if(1&e){var n=vs();ds(0,"div"),ds(1,"p"),Js(2,'This study has an additional screener to complete in order to determine if you are eligible to participate. If you haven\'t already completed that screener, you can click the "Go to screener" button to be directed there.'),hs(),ds(3,"button",5),ks("click",function(){return rn(n),As(4).goEligibility()}),Js(4,"Go to screener"),hs(),hs()}}function _8(e,t){if(1&e&&(ds(0,"div"),ds(1,"p"),Js(2,"You have already sent an inquiry about this study. We\u2019ve let the researchers know that you are interested and they will contact you about next steps."),hs(),os(3,y8,5,0,"div",6),hs()),2&e){var n=As(3);Oa(3),us("ngIf",n.study.eligibility_url)}}function b8(e,t){1&e&&(ds(0,"div"),ds(1,"p"),Js(2,"Your profile is not currently eligible for enrolling in this Study."),hs(),hs())}function k8(e,t){if(1&e&&(ds(0,"div",3),os(1,v8,5,2,"div",6),os(2,_8,4,1,"div",6),os(3,b8,3,0,"div",6),hs()),2&e){var n=As(2);Oa(1),us("ngIf",!n.alreadyInquired&&!n.nonParticipant),Oa(1),us("ngIf",n.alreadyInquired),Oa(1),us("ngIf",n.nonParticipant)}}function w8(e,t){if(1&e&&(ds(0,"div",1),ds(1,"h2"),Js(2,"Interested in Enrolling?"),hs(),os(3,p8,9,0,"div",2),os(4,k8,4,3,"div",2),hs()),2&e){var n=As();Oa(3),us("ngIf",!n.currentUser),Oa(1),us("ngIf",n.currentUser)}}function C8(e,t){if(1&e){var n=vs();ds(0,"div"),ds(1,"p"),Js(2,'This study has an additional screener to complete in order to determine if you are eligible to participate. Click the "Go to screener" button to be directed there.'),hs(),ds(3,"button",5),ks("click",function(){return rn(n),As(2).goEligibility()}),Js(4,"Go to screener"),hs(),hs()}}function x8(e,t){if(1&e&&(ds(0,"div",1),ds(1,"h2"),Js(2,"Thank You"),hs(),ds(3,"p"),Js(4,"We\u2019ve let the researchers know that you are interested in the study."),hs(),os(5,C8,5,0,"div",6),hs()),2&e){var n=As();Oa(5),us("ngIf",n.study.eligibility_url)}}var S8,A8=((S8=function(){function e(t,n,i,r){var a=this;b(this,e),this.api=t,this.authenticationService=n,this.router=i,this.googleAnalytics=r,this.haveUserContact=!1,this.nonParticipant=!0,this.inquirySent=!1,this.alreadyInquired=!1,this.authenticationService.currentUser.subscribe(function(e){return a.currentUser=e})}return w(e,[{key:"ngOnInit",value:function(){this.refreshUserAndInquiries()}},{key:"refreshUserAndInquiries",value:function(){var e=this;this.currentUser&&(this.api.getUser(this.currentUser.id).subscribe(function(t){var n=new v$(t);e.currentUser=n,e.haveUserContact=n.checkContact(),e.nonParticipant=n.getSelf().relationship===p$.SELF_INTERESTED}),this.api.getUserStudyInquiries(this.currentUser.id).subscribe(function(t){t.forEach(function(t){t.study_id===e.study.id&&(e.alreadyInquired=!0)})}))}},{key:"goLogin",value:function(){this.router.navigate(["/login"],{queryParams:{returnUrl:this.router.url}})}},{key:"goRegister",value:function(){this.router.navigateByUrl("/register")}},{key:"sendInquiry",value:function(){this.api.sendStudyInquiryEmail(this.currentUser,this.study).subscribe(),this.googleAnalytics.studyInquiryEvent(this.study),this.inquirySent=!0}},{key:"goEditEnroll",value:function(e,t){t.relationship===p$.SELF_PARTICIPANT?(e.preventDefault(),this.router.navigate(["flow","self_intake",t.id])):t.relationship===p$.DEPENDENT?(e.preventDefault(),this.router.navigate(["flow","dependent_intake",t.id])):t.relationship===p$.SELF_PROFESSIONAL?(e.preventDefault(),this.router.navigate(["flow","professional_intake",t.id])):t.relationship===p$.SELF_GUARDIAN&&(e.preventDefault(),this.router.navigate(["flow","guardian_intake",t.id]))}},{key:"goEligibility",value:function(){this.study&&this.study.eligibility_url&&window.open(this.study.eligibility_url+"?user_id="+this.currentUser.id,"_blank")}}]),e}()).\u0275fac=function(e){return new(e||S8)(ls(x$),ls(y$),ls(EX),ls(h$))},S8.\u0275cmp=pt({type:S8,selectors:[["app-study-inquiry"]],inputs:{study:"study"},decls:2,vars:2,consts:[["fxFlex.gt-md","60%",4,"ngIf"],["fxFlex.gt-md","60%"],["fxLayout","column","fxLayoutGap","20px",4,"ngIf"],["fxLayout","column","fxLayoutGap","20px"],["mat-flat-button","","color","primary",3,"click"],["mat-flat-button","","color","accent",3,"click"],[4,"ngIf"],[4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutGap","1em"],[3,"mode","value"],["mat-flat-button","","color","primary",3,"id","click"]],template:function(e,t){1&e&&(os(0,w8,5,2,"div",0),os(1,x8,6,1,"div",0)),2&e&&(us("ngIf",!t.inquirySent),Oa(1),us("ngIf",t.inquirySent))},directives:[wh,v_,Xy,n_,kP,bh,jP,HP,zP,QF],pipes:[Qh],styles:[""]}),S8);function O8(e,t){if(1&e&&(ds(0,"h4"),Js(1),hs()),2&e){var n=As(2);Oa(1),el(n.study.organization_name)}}function E8(e,t){if(1&e&&fs(0,"app-edit-button",7),2&e){var n=As(2);us("editLabel","Edit Study")("editLink","study/edit/"+n.study.id.toString())("currentUser",n.currentUser)}}function T8(e,t){if(1&e&&(ds(0,"p"),ds(1,"b"),Js(2,"Click "),ds(3,"a",8),Js(4,"here"),hs(),Js(5," for the results"),hs(),hs()),2&e){var n=As(2);Oa(3),Ps("href",n.study.results_url,Pr)}}function P8(e,t){if(1&e&&(ds(0,"div"),ds(1,"h2"),Js(2,"Who We're Looking For"),hs(),ds(3,"markdown"),Js(4),hs(),hs()),2&e){var n=As(2);Oa(4),el(n.study.participant_description)}}function D8(e,t){if(1&e&&(ds(0,"div"),ds(1,"h2"),Js(2,"Why Participate?"),hs(),ds(3,"markdown"),Js(4),hs(),hs()),2&e){var n=As(2);Oa(4),el(n.study.benefit_description)}}function M8(e,t){if(1&e&&(ds(0,"a",8),Js(1),hs()),2&e){var n=As().$implicit;Ps("href",n.investigator.bio_link,Pr),Oa(1),el(n.investigator.name)}}function I8(e,t){if(1&e&&(ds(0,"b"),Js(1),hs()),2&e){var n=As().$implicit;Oa(1),el(n.investigator.name)}}function R8(e,t){if(1&e&&(ds(0,"span"),Js(1),hs()),2&e){var n=As().$implicit;Oa(1),tl(", ",n.investigator.title,"")}}function L8(e,t){if(1&e&&(ds(0,"span"),Js(1),hs()),2&e){var n=As().$implicit;Oa(1),tl(", ",n.investigator.organization_name,"")}}function F8(e,t){if(1&e){var n=vs();ds(0,"button",14),ks("click",function(){rn(n);var e=As().$implicit;return As(3).openDialog(e)}),ds(1,"mat-icon"),Js(2,"edit"),hs(),hs()}}function N8(e,t){if(1&e&&(ds(0,"div",10),ds(1,"div",11),ds(2,"p"),os(3,M8,2,2,"a",12),os(4,I8,2,1,"b",4),os(5,R8,2,1,"span",4),os(6,L8,2,1,"span",4),hs(),hs(),os(7,F8,3,0,"button",13),hs()),2&e){var n=t.$implicit,i=As(3);Oa(3),us("ngIf",n.investigator.bio_link),Oa(1),us("ngIf",!n.investigator.bio_link),Oa(1),us("ngIf",n.investigator.title),Oa(1),us("ngIf",n.investigator.organization_name),Oa(1),us("ngIf",i.currentUser&&i.currentUser.permissions.includes("edit_resource"))}}function V8(e,t){if(1&e&&(ds(0,"div"),ds(1,"h2"),Js(2,"About the Researchers"),hs(),os(3,N8,8,5,"div",9),hs()),2&e){var n=As(2);Oa(3),us("ngForOf",n.study.study_investigators)}}function B8(e,t){1&e&&(ds(0,"h2"),Js(1,"Where does this study take place?"),hs())}function H8(e,t){1&e&&(ds(0,"h2"),Js(1,"Where did this study take place?"),hs())}function z8(e,t){if(1&e&&(ds(0,"p"),Js(1),hs()),2&e){var n=As(3);Oa(1),tl("Number of Visits Required For Participation: ",n.study.num_visits,"")}}function G8(e,t){if(1&e&&(ds(0,"div"),os(1,B8,2,0,"h2",4),os(2,H8,2,0,"h2",4),ds(3,"p"),Js(4),hs(),os(5,z8,2,1,"p",4),hs()),2&e){var n=As(2);Oa(1),us("ngIf","currently_enrolling"===n.study.status||"study_in_progress"===n.study.status),Oa(1),us("ngIf","results_being_analyzed"===n.study.status||"study_results_published"===n.study.status),Oa(2),el(n.study.location),Oa(1),us("ngIf",n.study.num_visits)}}function j8(e,t){if(1&e&&(ds(0,"div"),fs(1,"app-study-survey-entry",15),hs()),2&e){var n=As(2);Oa(1),us("study",n.study)("currentUser",n.currentUser)("surveyLink",n.study.survey_url)}}function U8(e,t){if(1&e&&(ds(0,"div"),fs(1,"app-study-inquiry",16),hs()),2&e){var n=As(2);Oa(1),us("study",n.study)}}function W8(e,t){if(1&e&&(ds(0,"div",2),ds(1,"div",3),ds(2,"h1"),Js(3),hs(),os(4,O8,2,1,"h4",4),os(5,E8,1,3,"app-edit-button",5),ds(6,"p",6),Js(7),hs(),ds(8,"markdown"),Js(9),hs(),os(10,T8,6,1,"p",4),os(11,P8,5,1,"div",4),os(12,D8,5,1,"div",4),os(13,V8,4,1,"div",4),os(14,G8,6,4,"div",4),os(15,j8,2,3,"div",4),os(16,U8,2,1,"div",4),hs(),hs()),2&e){var n=As();Oa(3),el(n.study.title),Oa(1),us("ngIf",n.study.organization_name),Oa(1),us("ngIf",n.currentUser&&n.currentUser.permissions.includes("edit_study")),Oa(2),tl("Study Status: ",n.snakeToUpperCase(n.study.status),""),Oa(2),el(n.study.description),Oa(1),us("ngIf",n.study.results_url),Oa(1),us("ngIf","currently_enrolling"===n.study.status&&n.study.participant_description),Oa(1),us("ngIf","currently_enrolling"===n.study.status&&n.study.benefit_description),Oa(1),us("ngIf",n.study.study_investigators.length>0),Oa(1),us("ngIf",n.study.location),Oa(1),us("ngIf","currently_enrolling"===n.study.status&&n.study.survey_url),Oa(1),us("ngIf","currently_enrolling"===n.study.status&&!n.study.survey_url)}}function q8(e,t){1&e&&fs(0,"app-loading",17)}var Y8,Q8=((Y8=function(){function e(t,n,i,r,a){var o=this;b(this,e),this.api=t,this.route=n,this.router=i,this.authenticationService=r,this.dialog=a,this.loading=!0,this.authenticationService.currentUser.subscribe(function(e){return o.currentUser=e}),this.route.params.subscribe(function(e){o.loading=!0;var t=e.studyId?parseInt(e.studyId,10):null;isFinite(t)&&o.api.getStudy(t).subscribe(function(e){o.study=e,o.loading=!1})})}return w(e,[{key:"snakeToUpperCase",get:function(){return r2}},{key:"ngOnInit",value:function(){}},{key:"openDialog",value:function(e){var t=this;this.dialog.open(t8,{width:"".concat(window.innerWidth,"px"),data:{si:e}}).afterClosed().subscribe(function(n){n&&(e.investigator=n,t.api.updateInvestigator(e.investigator).subscribe())})}}]),e}()).\u0275fac=function(e){return new(e||Y8)(ls(x$),ls(oQ),ls(EX),ls(y$),ls(qD))},Y8.\u0275cmp=pt({type:Y8,selectors:[["app-study-detail"]],decls:2,vars:2,consts:[["class","container","id","study",4,"ngIf"],["message","Loading...",4,"ngIf"],["id","study",1,"container"],["id","study-details","fxFlex.gt-md","80%","fxFlex.gt-lg","60%","fxLayout","column","fxLayoutGap","15px",1,"row"],[4,"ngIf"],[3,"editLabel","editLink","currentUser",4,"ngIf"],[1,"status"],[3,"editLabel","editLink","currentUser"],["target","_blank",3,"href"],["fxLayout","row","fxLayoutGap","40px","fxLayoutAlign","start center",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutGap","40px","fxLayoutAlign","start center"],[1,"investigator"],["target","_blank",3,"href",4,"ngIf"],["mat-mini-fab","","type","button","color","primary","matTooltip","Edit Investigator",3,"click",4,"ngIf"],["mat-mini-fab","","type","button","color","primary","matTooltip","Edit Investigator",3,"click"],[3,"study","currentUser","surveyLink"],[3,"study"],["message","Loading..."]],template:function(e,t){1&e&&(os(0,W8,17,12,"div",0),os(1,q8,1,0,"app-loading",1)),2&e&&(us("ngIf",!t.loading&&t.study),Oa(1),us("ngIf",!t.study))},directives:[wh,v_,Xy,n_,QW,H2,bh,eb,kP,CF,BR,f8,A8,zZ],styles:[".mat-flat-button[_ngcontent-%COMP%]{margin-top:1em}.status[_ngcontent-%COMP%]{font-size:1.5em;font-weight:700;margin:1em 0;padding-bottom:1em}.investigator[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:.25em auto}h1[_ngcontent-%COMP%]{margin:1em 0}#study-details[_ngcontent-%COMP%]{margin:2em}"]}),Y8);function X8(e,t){1&e&&fs(0,"app-loading",3)}function $8(e,t){if(1&e){var n=vs();ds(0,"button",11),ks("click",function(){rn(n);var e=As(2);return e.form.valid?e.submit():e.highlightRequiredFields()}),Js(1,"Save"),hs()}}function K8(e,t){if(1&e){var n=vs();ds(0,"button",12),ks("click",function(){return rn(n),As(2).onCancel()}),Js(1,"Cancel"),hs()}}function Z8(e,t){if(1&e){var n=vs();ds(0,"button",13),ks("click",function(){return rn(n),As(2).showDelete()}),Js(1,"Delete"),hs()}}function J8(e,t){if(1&e){var n=vs();ds(0,"button",14),ks("click",function(){return rn(n),As(2).onDelete()}),Js(1,"Permanently Delete This Study!!! "),hs()}}function e6(e,t){if(1&e&&(ds(0,"form",4),ds(1,"h1"),Js(2,"Study Details"),hs(),fs(3,"formly-form",5),ds(4,"div",6),os(5,$8,2,0,"button",7),os(6,K8,2,0,"button",8),os(7,Z8,2,0,"button",9),os(8,J8,2,0,"button",10),hs(),hs()),2&e){var n=As();us("formGroup",n.form),Oa(3),us("form",n.form)("model",n.model)("fields",n.fields)("options",n.options),Oa(2),us("ngIf",n.form),Oa(1),us("ngIf",n.form),Oa(1),us("ngIf",!n.showConfirmDelete&&!n.createNew),Oa(1),us("ngIf",n.showConfirmDelete)}}var t6,n6=function(e){return e.LOADING="loading",e.SHOW_FORM="form",e}({}),i6=((t6=function(){function e(t,n,i,r){var a=this;b(this,e),this.api=t,this.route=n,this.router=i,this.deviceDetectorService=r,this.pageState=n6,this.state=n6.LOADING,this.showConfirmDelete=!1,this.model={},this.fields=[{key:"status",type:"select",templateOptions:{label:"Study Status",placeholder:"Please select the study status",options:[{value:"currently_enrolling",label:"Currently Enrolling"},{value:"study_in_progress",label:"Study in progress"},{value:"results_being_analyzed",label:"Results being analyzed"},{value:"study_results_published",label:"Study results published"}],required:!0}},{key:"title",type:"input",templateOptions:{label:"Title",placeholder:"Please enter the title of your study",required:!0}},{key:"short_title",type:"input",templateOptions:{label:"Short Title",placeholder:"Please enter the short display title of your study",required:!0,maxLength:55}},{key:"description",type:"textarea-auto-resize",templateOptions:{label:"Description",placeholder:"Please enter the description of your study",required:!0}},{key:"short_description",type:"textarea",templateOptions:{label:"Short Description",placeholder:"Please enter the short display description of your study",required:!0,maxLength:155}},{key:"participant_description",type:"textarea-auto-resize",templateOptions:{label:"Participant Description",placeholder:"Who are you looking for to participate in your study?"},expressionProperties:{"templateOptions.required":'model.status === "currently_enrolling"'}},{key:"benefit_description",type:"textarea",templateOptions:{label:"Benefit Description",placeholder:"How will participants benefit from your study?"},expressionProperties:{"templateOptions.required":'model.status === "currently_enrolling"'}},{key:"investigators",type:"select",templateOptions:{label:"Investigators",options:[],valueProp:"id",labelProp:"name",required:!0,multiple:!0},hooks:{onInit:function(e){e.templateOptions.options=a.api.getInvestigators()}}},{key:"additional_investigators",wrappers:["card"],templateOptions:{label:"Additional Investigator",description:"If your investigator does not appear in the list above, please add them here"},fieldGroup:[{type:"input",key:"name",templateOptions:{label:"Name"}},{type:"input",key:"title",templateOptions:{label:"Title"}},{type:"input",key:"organization_name",templateOptions:{label:"Organization Name"}},{type:"input",key:"bio_link",templateOptions:{label:"Bio Link"}}]},{key:"organization_name",type:"input",templateOptions:{label:"Organization",placeholder:"Please enter the name of the hosting organization"}},{key:"location",type:"input",templateOptions:{label:"Location Name",placeholder:"Please describe where the study will take place"}},{key:"num_visits",type:"input",templateOptions:{label:"Number of Visits",type:"number",placeholder:"Please list the number of visits required for participation in this study"}},{key:"coordinator_email",type:"input",templateOptions:{label:"Coordinator Email",placeholder:"Please enter the email address to which study inquires will be sent"},expressionProperties:{"templateOptions.required":'model.status === "currently_enrolling"'},validators:{validation:["email"]}},{key:"eligibility_url",type:"input",templateOptions:{label:"Eligibility Link",placeholder:"If you have an eligibilty screener, please enter the link"},validators:{validation:["url"]}},{key:"survey_url",type:"input",templateOptions:{label:"Survey Link",placeholder:"If this is an online survey study, please enter the link"},validators:{validation:["url"]}},{key:"results_url",type:"input",templateOptions:{label:"Results Url",placeholder:"Link to published results of the study"},validators:{validation:["url"]}},{key:"image_url",type:"input",templateOptions:{label:"Image Url",placeholder:"This is the link to the image used for current study display",description:"Something like: /assets/home/study7.jpg"}},{key:"categories",type:"multiselecttree",templateOptions:{label:"Topics",options:this.api.getCategoryTree(),valueProp:"id",labelProp:"name"}},{key:"ages",type:"multicheckbox",templateOptions:{label:"Age Ranges",type:"array",options:this.getOptions(cK.labels)}},{key:"languages",type:"multicheckbox",templateOptions:{label:"Languages",type:"array",options:this.getOptions(dK.labels)}}],this.createNew=!1}return w(e,[{key:"ngOnInit",value:function(){this.model.createNew=!1,this.loadData()}},{key:"getOptions",value:function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({value:n,label:e[n]});return t}},{key:"loadData",value:function(){var e=this;this.route.params.subscribe(function(t){if(t.studyId){var n=t.studyId;e.createNew=!1,e.model.createNew=!1,e.api.getStudy(n).subscribe(function(t){e.study=t,e.model=e.study,e.loadInvestigators(t),e.loadStudyCategories(t,function(){return e.loadForm()})})}else e.createNew=!0,e.model.createNew=!0,e.study={title:"",description:"",participant_description:"",benefit_description:"",investigators:[],location:"",categories:[],status:""},e.loadForm()})}},{key:"loadInvestigators",value:function(e){var t=this;this.model.investigators=[],e.study_investigators.length>0&&e.study_investigators.forEach(function(e){t.model.investigators.push(e.investigator.id)})}},{key:"loadStudyCategories",value:function(e,t){if(this.model.categories=[],e.study_categories.length>0){var n,i=s(e.study_categories);try{for(i.s();!(n=i.n()).done;){var r=n.value;this.model.categories.push(r.category),t()}}catch(a){i.e(a)}finally{i.f()}}else t()}},{key:"loadForm",value:function(){this.form=new Pk({}),this.options={formState:{mainModel:this.model}},this.state=this.pageState.SHOW_FORM}},{key:"updateStudyCategories",value:function(e){var t=[];return this.model.categories.forEach(function(n,i){!0===n&&t.push({study_id:e,category_id:i})}),this.api.updateStudyCategories(e,t)}},{key:"addStudyInvestigator",value:function(){var e=this.model.additional_investigators;return this.api.addInvestigator({name:e.name,title:e.title,organization_name:e.organization_name,bio_link:e.bio_link})}},{key:"updateStudyInvestigators",value:function(e){var t=[];return this.model.investigators.forEach(function(n){t.push({study_id:e,investigator_id:n})}),this.api.updateStudyInvestigators(e,t)}},{key:"submit",value:function(){this.form.valid&&(this.createNew?(this.createNew=!1,this.updateAndClose(this.api.addStudy(this.model))):this.updateAndClose(this.api.updateStudy(this.model)))}},{key:"updateAndClose",value:function(e){var t=this;e.subscribe(function(e){t.updatedStudy=e,t.model.id=e.id,t.model.additional_investigators.name?t.addStudyInvestigator().subscribe(function(n){t.model.investigators.push(n.id),t.updateStudyInvestigators(e.id).subscribe(function(){t.updateStudyCategories(e.id).subscribe(function(){return t.close()})})}):t.updateStudyInvestigators(e.id).subscribe(function(){t.updateStudyCategories(e.id).subscribe(function(){return t.close()})})})}},{key:"showDelete",value:function(){this.showConfirmDelete=!0}},{key:"onDelete",value:function(){var e=this;this.api.deleteStudy(this.study).subscribe(function(t){e.router.navigate(["studies"])})}},{key:"close",value:function(){this.router.navigate(this.updatedStudy&&this.updatedStudy.id?["study",this.updatedStudy.id]:["studies"])}},{key:"onCancel",value:function(){this.close()}},{key:"highlightRequiredFields",value:function(){for(var e=0,t=Object.keys(this.form.controls);e=r.getSiblings(i).length-1),Oa(3),us("matTooltip","Add sub-category to "+i.name),Oa(3),us("ngIf",!r.showConfirmDelete),Oa(1),us("ngIf",r.showConfirmDelete&&i.id===r.nodeToDelete.id)}}function d6(e,t){if(1&e){var n=vs();ds(0,"mat-tree-node",20),fs(1,"button",10),ds(2,"mat-form-field"),ds(3,"mat-label"),Js(4,"New item..."),hs(),fs(5,"input",21,22),hs(),ds(7,"button",6),ks("click",function(){rn(n);var e=t.$implicit,i=ss(6);return As(2).saveNode(e,i.value)}),Js(8,"Save"),hs(),ds(9,"button",7),ks("click",function(){return rn(n),As(2).cancelAdd()}),Js(10,"Cancel"),hs(),hs()}}function h6(e,t){if(1&e){var n=vs();ds(0,"mat-nested-tree-node",20),ds(1,"li"),ds(2,"div",9),ds(3,"button",23),ds(4,"mat-icon",24),Js(5),hs(),hs(),ds(6,"button",11),Js(7),hs(),ds(8,"a",12),Js(9),hs(),Js(10),ds(11,"button",13),ks("click",function(){rn(n);var e=t.$implicit;return As(2).moveItem(e,-1)}),ds(12,"mat-icon"),Js(13,"arrow_upward"),hs(),hs(),ds(14,"button",14),ks("click",function(){rn(n);var e=t.$implicit;return As(2).moveItem(e,1)}),ds(15,"mat-icon"),Js(16,"arrow_downward"),hs(),hs(),ds(17,"button",25),ks("click",function(){rn(n);var e=t.$implicit;return As(2).addNewItem(e)}),ds(18,"mat-icon"),Js(19,"add_circle"),hs(),hs(),hs(),ds(20,"ul"),gs(21,26),hs(),hs(),hs()}if(2&e){var i=t.$implicit,r=As(2);Oa(2),us("ngClass",Au(13,s6,i.id===r.highlightedNode)),Oa(1),is("aria-label","toggle "+i.name),Oa(2),tl(" ",r.treeControl.isExpanded(i)?"expand_more":"chevron_right"," "),Oa(2),el(i.name),Oa(1),us("queryParams",Au(15,l6,i.id))("routerLink",Su(17,u6)),Oa(1),tl(" ",i.all_resource_count," associated resources "),Oa(1),tl(" & ",i.study_count," associated studies "),Oa(1),us("disabled",i.display_order<=0),Oa(3),us("disabled",i.display_order>=r.getSiblings(i).length-1),Oa(3),us("matTooltip","Add sub-category to "+i.name),Oa(3),Hs("tree-select-invisible",!r.treeControl.isExpanded(i))}}function f6(e,t){if(1&e){var n=vs();ds(0,"div"),ds(1,"h1"),Js(2,"Topics Taxonomy"),hs(),ds(3,"p"),Js(4,"To add a topic, click the plus sign next to the parent topic and fill in the name"),hs(),ds(5,"p"),Js(6,"To delete a topic, use the button directly next to the topic; it is only possible to delete one topic at a time and only possible to delete topics with no associated children topics."),hs(),ds(7,"mat-tree",1),os(8,c6,19,16,"mat-tree-node",2),os(9,d6,11,0,"mat-tree-node",3),os(10,h6,22,18,"mat-nested-tree-node",3),hs(),ds(11,"div",4),ds(12,"mat-form-field"),ds(13,"mat-label"),Js(14,"New root item..."),hs(),ds(15,"input",5),ks("ngModelChange",function(e){return rn(n),As().rootValue=e}),hs(),hs(),ds(16,"button",6),ks("click",function(){rn(n);var e=As();return e.saveNode({name:"",parent_id:null},e.rootValue)}),Js(17,"Save"),hs(),ds(18,"button",7),ks("click",function(){return rn(n),As().rootValue=""}),Js(19,"Cancel"),hs(),hs(),hs()}if(2&e){var i=As();Oa(7),us("dataSource",i.dataSource)("treeControl",i.treeControl),Oa(2),us("matTreeNodeDefWhen",i.hasNoContent),Oa(1),us("matTreeNodeDefWhen",i.hasNestedChild),Oa(5),us("ngModel",i.rootValue)}}var p6,m6=((p6=function(){function e(t,n){var i=this;b(this,e),this.api=t,this.authenticationService=n,this.dataLoaded=!1,this.nodes={},this.showConfirmDelete=!1,this.rootValue="",this.checklistSelection=new xO(!0),this.hasNestedChild=function(e,t){return t.children&&t.children.length>0},this.hasNoContent=function(e,t){var n=""===t.name&&void 0===t.id;return""===t.name&&console.log({_nodeData:t}),n},this.treeControl=new Dz(function(e){return fp(e.children)}),this.dataSource=new pG,this.authenticationService.currentUser.subscribe(function(e){return i.currentUser=e}),this.getCategoryTree(!0)}return w(e,[{key:"ngOnInit",value:function(){}},{key:"getCategoryTree",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0;this.api.getCategoryTree().subscribe(function(i){return r6(e,void 0,void 0,regeneratorRuntime.mark(function e(){var r=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=!t,e.t0){e.next=5;break}return e.next=4,this.hasMissingDisplayOrder(i);case 4:e.t0=!e.sent;case 5:if(!e.t0){e.next=9;break}return e.next=8,this.walkTree(i,function(e,t){return r.nodes[e.id]=e,fp(!0)}).then(function(){r.dataSource.data=i,n&&n()});case 8:return e.abrupt("return",e.sent);case 9:return e.next=11,this.walkTree(i,function(e,t){return e.display_order=t,r.api.addCategory(e)}).then(function(){r.dataSource.data=i,n&&n()});case 11:case"end":return e.stop()}},e,this)}))})}},{key:"addNewItem",value:function(e){this.dataSource.data=this.insertNewChildNode(e,this.dataSource.data),this.refreshTree(),this.treeControl.expand(e)}},{key:"saveNode",value:function(e,t){var n=this;e.name=t,this.api.addCategory(e).subscribe(function(e){var t=e.id;n.rootValue="",n.getCategoryTree(!0,function(){n.refreshTree(),n.expandAncestorNodes(t),n.highlightedNode=t})})}},{key:"moveItem",value:function(e,t){var n=this,i=e.id,r=null===e.parent_id?this.dataSource.data:this.nodes[e.parent_id].children,a=e.display_order+t;if(!(r.length<=1||t<0&&a<0||t>0&&a===r.length)){var o=r[a];o.display_order=e.display_order,e.display_order=a,this.api.addCategory(o).subscribe(function(){n.api.addCategory(e).subscribe(function(){n.rootValue="",n.getCategoryTree(!1,function(){n.refreshTree(),n.highlightedNode=i,n.expandAncestorNodes(i)})})})}}},{key:"showDelete",value:function(e){this.showConfirmDelete=!0,this.nodeToDelete=e}},{key:"deleteNode",value:function(e){var t=this;this.api.deleteCategory(e.id).subscribe(function(e){t.showConfirmDelete=!1,t.nodeToDelete=null,t.getCategoryTree()})}},{key:"cancelDelete",value:function(){this.showConfirmDelete=!1,this.nodeToDelete=void 0}},{key:"cancelAdd",value:function(){this.dataSource.data=this.removeEmpty(this.dataSource.data),this.refreshTree()}},{key:"removeEmpty",value:function(e){var t=this;return e&&e.length>0?(e=e.filter(function(e){return""!==e.name})).map(function(e){return e.children=t.removeEmpty(e.children),e}):e}},{key:"insertNewChildNode",value:function(e,t){var n=this;if(t&&t.length>0){var i=t.findIndex(function(t){return t.id===e.id});return-1!==i?(t[i].children.push({name:"",parent_id:e.id}),t):t.map(function(t){return t.children=n.insertNewChildNode(e,t.children),t})}}},{key:"refreshTree",value:function(){var e=this.dataSource.data;this.dataSource.data=null,this.dataSource.data=e}},{key:"walkTree",value:function(e,t){return r6(this,void 0,void 0,regeneratorRuntime.mark(function n(){var i=this;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",e.map(function(e,n){return r6(i,void 0,void 0,regeneratorRuntime.mark(function i(){var r,a=this;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(this.nodes[e.id]=e,r=t(e,n),!(e.children&&e.children.length>0)){i.next=4;break}return i.abrupt("return",r.subscribe(function(){return r6(a,void 0,void 0,regeneratorRuntime.mark(function n(){return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.walkTree(e.children,t);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}},n,this)}))}));case 4:case"end":return i.stop()}},i,this)}))}));case 1:case"end":return n.stop()}},n)}))}},{key:"hasMissingDisplayOrder",value:function(e){return r6(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=!1,t.next=3,this.walkTree(e,function(e,t){return null==e.display_order&&(n=!0),fp(n)});case 3:return t.abrupt("return",n);case 4:case"end":return t.stop()}},t,this)}))}},{key:"getSiblings",value:function(e){if(null===e.parent_id)return this.dataSource.data;var t=this.nodes[e.parent_id];return t&&t.children&&t.children.length>=0?t.children:[]}},{key:"expandAncestorNodes",value:function(e){var t=this.nodes[e];if(null!==t.parent_id){var n=this.nodes[t.parent_id];this.treeControl.expand(n),null!==n.parent_id&&this.expandAncestorNodes(n.id)}}}]),e}()).\u0275fac=function(e){return new(e||p6)(ls(x$),ls(y$))},p6.\u0275cmp=pt({type:p6,selectors:[["app-taxonomy-admin"]],decls:1,vars:1,consts:[[4,"ngIf"],[1,"tree-select","taxonomy-admin",3,"dataSource","treeControl"],["matTreeNodeToggle","","matTreeNodePadding","",4,"matTreeNodeDef"],["matTreeNodePadding","",4,"matTreeNodeDef","matTreeNodeDefWhen"],["fxLayout","row"],["matInput","","placeholder","Ex. Topic Name",3,"ngModel","ngModelChange"],["mat-button","","color","primary",3,"click"],["mat-button","",3,"click"],["matTreeNodeToggle","","matTreeNodePadding",""],[3,"ngClass"],["disabled","","mat-icon-button",""],["matTreeNodeToggle","","mat-button",""],[1,"associated-records",3,"queryParams","routerLink"],["mat-icon-button","","color","primary","matTooltip","Move up",3,"disabled","click"],["mat-icon-button","","color","primary","matTooltip","Move down",3,"disabled","click"],["mat-icon-button","","color","primary",3,"matTooltip","click"],["color","warn","mat-icon-button","","type","button",3,"matTooltip","click",4,"ngIf"],["color","warn","mat-icon-button","","type","button",3,"matTooltip","click"],["color","warn","mat-flat-button","","type","button",3,"click"],["mat-flat-button","","type","button",3,"click"],["matTreeNodePadding",""],["matInput","","placeholder","Ex. Topic Name"],["itemValue",""],["mat-icon-button","","matTreeNodeToggle","",1,"toggle-node-button"],[1,"mat-icon-rtl-mirror"],["mat-icon-button","",3,"matTooltip","click"],["matTreeNodeOutlet",""]],template:function(e,t){1&e&&os(0,f6,20,5,"div",0),2&e&&us("ngIf",t.currentUser&&t.currentUser.permissions.includes("publish_resource"))},directives:[wh,uG,iG,Xy,wT,hT,vM,wb,Zb,Nk,kP,nG,dG,oG,yh,ly,PX,CF,BR,aG,lG],styles:[".tree-select-invisible[_ngcontent-%COMP%]{display:none}.tree-select[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .tree-select[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;margin-left:1rem;list-style-type:none}.tree-select[_ngcontent-%COMP%] li[_ngcontent-%COMP%] button.toggle-node-button[_ngcontent-%COMP%], .tree-select[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] button.toggle-node-button[_ngcontent-%COMP%]{outline:none!important}.associated-records[_ngcontent-%COMP%]{margin-left:.5em;margin-right:.5em}.highlight-node[_ngcontent-%COMP%]{background-color:#e4e7f2;-webkit-animation-name:fade-out;-webkit-animation:fade-out 5s forwards;animation:fade-out 5s forwards}@-webkit-keyframes fade-out{0%{background-color:#e4e7f2}to{background-color:rgba(0,0,0,0)}}@keyframes fade-out{0%{background-color:#e4e7f2}to{background-color:rgba(0,0,0,0)}}"]}),p6);function g6(e,t){1&e&&(ds(0,"h3",11),Js(1,"You must read and accept the following Terms & Conditions in order to continue creating an Autism DRIVE account."),hs())}function v6(e,t){1&e&&(ds(0,"div",12),fs(1,"ng2-pdfjs-viewer",13),hs())}function y6(e,t){1&e&&(ds(0,"div",14),fs(1,"ng2-pdfjs-viewer",15),hs())}function _6(e,t){1&e&&(ds(0,"div",16),fs(1,"ng2-pdfjs-viewer",17),hs())}function b6(e,t){if(1&e){var n=vs();ds(0,"button",18),ks("click",function(e){return rn(n),As().goProfile(e)}),Js(1," Cancel "),hs()}}function k6(e,t){if(1&e){var n=vs();ds(0,"button",19),ks("click",function(){return rn(n),As().addParticipantAndGoToFlow()}),Js(1," I agree "),hs()}}function w6(e,t){if(1&e){var n=vs();ds(0,"button",20),ks("click",function(e){return rn(n),As().goProfile(e)}),Js(1," Back to Profile "),hs()}}var C6,x6,S6=((x6=function(){function e(t,n,i,r,a){var o=this;b(this,e),this.router=t,this.route=n,this.authenticationService=i,this.api=r,this.googleAnalyticsService=a,this.preview=!1,this.route.params.subscribe(function(e){o.relationship=e.relationship,"preview"in e&&(o.preview=e.preview)}),this.authenticationService.currentUser.subscribe(function(e){o.user=e},function(e){console.error(e),o.user=null})}return w(e,[{key:"ngOnInit",value:function(){}},{key:"goProfile",value:function(e){e.preventDefault(),this.router.navigate(["profile"])}},{key:"getFlow",value:function(e){return e===p$.SELF_PARTICIPANT?"self_intake":e===p$.SELF_GUARDIAN?"guardian_intake":e===p$.DEPENDENT?"dependent_intake":e===p$.SELF_PROFESSIONAL?"professional_intake":e===p$.SELF_INTERESTED?"interested_intake":void 0}},{key:"addParticipantAndGoToFlow",value:function(){var e=this,t=new m$({user_id:this.user.id,user:this.user,last_updated:new Date,relationship:this.relationship,has_consented:!0}),n=this.getFlow(this.relationship);this.api.addParticipant(t).subscribe(function(t){e.googleAnalyticsService.flowStartEvent(n),e.user.participants.push(t),console.log("Navigating to flow/",n,"/",t.id),e.router.navigate(["flow",n,t.id])})}}]),e}()).\u0275fac=function(e){return new(e||x6)(ls(EX),ls(oQ),ls(y$),ls(x$),ls(h$))},x6.\u0275cmp=pt({type:x6,selectors:[["app-terms"]],decls:13,vars:7,consts:[["fxLayoutAlign","center center",1,"container","mat-typography","terms"],["fxFlex","80%"],["variant","dark-lg",3,"click"],["class","alert alert-warn",4,"ngIf"],["id","guardian-terms",4,"ngIf"],["id","self-terms",4,"ngIf"],["id","dependent-terms",4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutGap","2%","fxLayoutAlign","center center"],["mat-flat-button","","color","accent","class","btn-lg","id","terms-cancel-button",3,"click",4,"ngIf"],["mat-flat-button","","color","primary","class","btn-lg","id","agree-button",3,"click",4,"ngIf"],["mat-flat-button","","color","primary","class","btn-lg","id","profile-button",3,"click",4,"ngIf"],[1,"alert","alert-warn"],["id","guardian-terms"],["pdfSrc","../../../assets/terms/guardian_information_sheet.pdf"],["id","self-terms"],["pdfSrc","../../../assets/terms/adult_information_sheet.pdf"],["id","dependent-terms"],["pdfSrc","../../../assets/terms/child_information_sheet.pdf"],["mat-flat-button","","color","accent","id","terms-cancel-button",1,"btn-lg",3,"click"],["mat-flat-button","","color","primary","id","agree-button",1,"btn-lg",3,"click"],["mat-flat-button","","color","primary","id","profile-button",1,"btn-lg",3,"click"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"div",1),ds(2,"app-logo",2),ks("click",function(e){return t.goProfile(e)}),hs(),os(3,g6,2,0,"h3",3),ds(4,"h1"),Js(5,"Terms and Conditions"),hs(),os(6,v6,2,0,"div",4),os(7,y6,2,0,"div",5),os(8,_6,2,0,"div",6),ds(9,"div",7),os(10,b6,2,0,"button",8),os(11,k6,2,0,"button",9),os(12,w6,2,0,"button",10),hs(),hs(),hs()),2&e&&(Oa(3),us("ngIf",!t.preview),Oa(3),us("ngIf","self_guardian"==t.relationship),Oa(1),us("ngIf","self_participant"==t.relationship||"self_professional"==t.relationship||"self_interested"==t.relationship),Oa(1),us("ngIf","dependent"==t.relationship),Oa(2),us("ngIf",!t.preview),Oa(1),us("ngIf",!t.preview),Oa(1),us("ngIf",t.preview))},directives:[eb,v_,DJ,wh,Xy,n_,lW,kP],styles:[".container[_ngcontent-%COMP%]{min-height:100vh}#dependent-terms[_ngcontent-%COMP%], #guardian-terms[_ngcontent-%COMP%], #self-terms[_ngcontent-%COMP%]{margin-bottom:2em;height:100vh}"]}),x6),A6=((C6=function(){function e(t,n){b(this,e),this.router=t,this.authenticationService=n}return w(e,[{key:"ngOnInit",value:function(){this.authenticationService.logout()}},{key:"goHome",value:function(){this.router.navigate([""])}},{key:"goLogin",value:function(){this.router.navigate(["/login"])}}]),e}()).\u0275fac=function(e){return new(e||C6)(ls(EX),ls(y$))},C6.\u0275cmp=pt({type:C6,selectors:[["app-timedout"]],hostVars:1,hostBindings:function(e,t){2&e&&ol("@fadeTransition",t.title)},decls:9,vars:0,consts:[["fxLayout","row","fxLayout.xs","column","fxLayoutWrap","","fxLayoutGap","10px","fxLayoutAlign","center center",1,"container","mat-typography"],["fxFlex","50%",1,"message"],["variant","dark-lg",3,"click"],["mat-flat-button","","color","accent",3,"click"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"div",1),ds(2,"app-logo",2),ks("click",function(){return t.goHome()}),hs(),ds(3,"h1"),Js(4,"Your Autism DRIVE session has timed out."),hs(),ds(5,"p"),Js(6,"You will need to log in again to access your profile."),hs(),ds(7,"button",3),ks("click",function(){return t.goLogin()}),Js(8,"Ok"),hs(),hs(),hs())},directives:[Xy,n_,eb,v_,DJ,kP],styles:[".container[_ngcontent-%COMP%]{min-height:100vh}div.message[_ngcontent-%COMP%]{text-align:center}"],data:{animation:[l0()]}}),C6);function O6(e,t){1&e&&(ds(0,"th",14),Js(1," ID "),hs())}function E6(e,t){if(1&e&&(ds(0,"td",15),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.id," ")}}function T6(e,t){1&e&&(ds(0,"th",14),Js(1," Questionnaire Name "),hs())}function P6(e,t){if(1&e&&(ds(0,"td",15),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.questionnaire_name," ")}}function D6(e,t){1&e&&(ds(0,"th",14),Js(1," Questionnaire ID "),hs())}function M6(e,t){if(1&e&&(ds(0,"td",15),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.questionnaire_id," ")}}function I6(e,t){1&e&&(ds(0,"th",14),Js(1," Flow "),hs())}function R6(e,t){if(1&e&&(ds(0,"td",15),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.flow," ")}}function L6(e,t){1&e&&(ds(0,"th",14),Js(1," Participant ID "),hs())}function F6(e,t){if(1&e&&(ds(0,"td",15),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.participant_id," ")}}function N6(e,t){1&e&&(ds(0,"th",14),Js(1," User ID "),hs())}function V6(e,t){if(1&e&&(ds(0,"td",15),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.user_id," ")}}function B6(e,t){1&e&&(ds(0,"th",14),Js(1," Date Completed "),hs())}function H6(e,t){if(1&e&&(ds(0,"td",15),Js(1),Iu(2,"date"),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",Lu(2,1,n.date_completed,"short")," ")}}function z6(e,t){1&e&&(ds(0,"th",14),Js(1," Time On Task MS "),hs())}function G6(e,t){if(1&e&&(ds(0,"td",15),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.time_on_task_ms," ")}}function j6(e,t){1&e&&fs(0,"tr",16)}function U6(e,t){1&e&&fs(0,"tr",17)}function W6(e,t){if(1&e&&(ds(0,"div"),ds(1,"h5"),Js(2,"Step Log:"),hs(),ds(3,"table",1),ps(4,2),os(5,O6,2,0,"th",3),os(6,E6,2,1,"td",4),ms(),ps(7,5),os(8,T6,2,0,"th",3),os(9,P6,2,1,"td",4),ms(),ps(10,6),os(11,D6,2,0,"th",3),os(12,M6,2,1,"td",4),ms(),ps(13,7),os(14,I6,2,0,"th",3),os(15,R6,2,1,"td",4),ms(),ps(16,8),os(17,L6,2,0,"th",3),os(18,F6,2,1,"td",4),ms(),ps(19,9),os(20,N6,2,0,"th",3),os(21,V6,2,1,"td",4),ms(),ps(22,10),os(23,B6,2,0,"th",3),os(24,H6,3,4,"td",4),ms(),ps(25,11),os(26,z6,2,0,"th",3),os(27,G6,2,1,"td",4),ms(),os(28,j6,1,0,"tr",12),os(29,U6,1,0,"tr",13),hs(),hs()),2&e){var n=As();Oa(3),us("dataSource",n.dataSource),Oa(25),us("matHeaderRowDef",n.displayedColumns),Oa(1),us("matRowDefColumns",n.displayedColumns)}}var q6,Y6=((q6=function(){function e(t){b(this,e),this.api=t,this.displayedColumns=["id","questionnaire_name","questionnaire_id","flow","participant_id","user_id","date_completed","time_on_task_ms"]}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.api.getParticipantStepLog(this.participant).subscribe(function(t){e.participant.step_log=t,e.dataSource=new oH(t)})}}]),e}()).\u0275fac=function(e){return new(e||q6)(ls(x$))},q6.\u0275cmp=pt({type:q6,selectors:[["app-participant-detail"]],inputs:{participant:"participant"},decls:14,vars:11,consts:[[4,"ngIf"],["mat-table","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","questionnaire_name"],["matColumnDef","questionnaire_id"],["matColumnDef","flow"],["matColumnDef","participant_id"],["matColumnDef","user_id"],["matColumnDef","date_completed"],["matColumnDef","time_on_task_ms"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(ds(0,"p"),ds(1,"b"),Js(2),hs(),hs(),ds(3,"p"),Js(4),hs(),ds(5,"p"),Js(6),hs(),ds(7,"p"),Js(8),Iu(9,"date"),hs(),ds(10,"p"),Js(11),Iu(12,"percent"),hs(),os(13,W6,30,3,"div",0)),2&e&&(Oa(2),tl("Participant ID: ",t.participant.id,""),Oa(2),tl("Name: ",t.participant.name||"(None given)",""),Oa(2),tl("Relationship: ",t.participant.relationship,""),Oa(2),tl("Last Updated: ",Lu(9,6,t.participant.last_updated,"short"),""),Oa(3),tl("Percent Complete: ",Ru(12,9,t.participant.percent_complete),""),Oa(2),us("ngIf",t.participant.step_log&&t.participant.step_log.length>0))},directives:[wh,BB,WB,jB,zB,KB,JB,YB,XB,tH,iH],pipes:[$h,Kh],styles:["td.mat-cell[_ngcontent-%COMP%], th.mat-header-cell[_ngcontent-%COMP%]{padding:0 1em}"]}),q6);function Q6(e,t){if(1&e){var n=vs();ds(0,"div",9),ds(1,"mat-form-field"),ds(2,"mat-label"),Js(3,"Select an option"),hs(),ds(4,"mat-select",10),ks("valueChange",function(e){return rn(n),As(2).roleSelected=e}),ds(5,"mat-option",11),Js(6,"Admin"),hs(),ds(7,"mat-option",12),Js(8,"Test"),hs(),ds(9,"mat-option",13),Js(10,"Researcher"),hs(),ds(11,"mat-option",14),Js(12,"Editor"),hs(),ds(13,"mat-option",15),Js(14,"User"),hs(),hs(),hs(),ds(15,"button",3),ks("click",function(){return rn(n),As(2).saveSelection()}),Js(16," Save Selection "),hs(),hs()}if(2&e){var i=As(2);Oa(4),us("value",i.roleSelected)}}function X6(e,t){1&e&&(ds(0,"th",28),Js(1," ID "),hs())}function $6(e,t){if(1&e&&(ds(0,"td",29),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.id," ")}}function K6(e,t){1&e&&(ds(0,"th",28),Js(1," User ID "),hs())}function Z6(e,t){if(1&e&&(ds(0,"td",29),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.user_id," ")}}function J6(e,t){1&e&&(ds(0,"th",28),Js(1," Type "),hs())}function e9(e,t){if(1&e&&(ds(0,"td",29),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.type," ")}}function t9(e,t){1&e&&(ds(0,"th",28),Js(1," Tracking Code "),hs())}function n9(e,t){if(1&e&&(ds(0,"td",29),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.tracking_code," ")}}function i9(e,t){1&e&&(ds(0,"th",28),Js(1," Viewed "),hs())}function r9(e,t){if(1&e&&(ds(0,"td",29),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.viewed," ")}}function a9(e,t){1&e&&(ds(0,"th",28),Js(1," Date Viewed "),hs())}function o9(e,t){if(1&e&&(ds(0,"td",29),Js(1),Iu(2,"date"),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",Lu(2,1,n.date_viewed,"short")," ")}}function s9(e,t){1&e&&fs(0,"tr",30)}function l9(e,t){1&e&&fs(0,"tr",31)}function u9(e,t){if(1&e&&(ds(0,"div",16),ds(1,"h5"),Js(2,"User Email Log:"),hs(),ds(3,"table",17),ps(4,18),os(5,X6,2,0,"th",19),os(6,$6,2,1,"td",20),ms(),ps(7,21),os(8,K6,2,0,"th",19),os(9,Z6,2,1,"td",20),ms(),ps(10,22),os(11,J6,2,0,"th",19),os(12,e9,2,1,"td",20),ms(),ps(13,23),os(14,t9,2,0,"th",19),os(15,n9,2,1,"td",20),ms(),ps(16,24),os(17,i9,2,0,"th",19),os(18,r9,2,1,"td",20),ms(),ps(19,25),os(20,a9,2,0,"th",19),os(21,o9,3,4,"td",20),ms(),os(22,s9,1,0,"tr",26),os(23,l9,1,0,"tr",27),hs(),hs()),2&e){var n=As(2);Oa(3),us("dataSource",n.dataSource),Oa(19),us("matHeaderRowDef",n.displayedColumns),Oa(1),us("matRowDefColumns",n.displayedColumns)}}function c9(e,t){1&e&&(ds(0,"h2"),Js(1,"Related Participants:"),hs())}function d9(e,t){if(1&e&&(ds(0,"div",32),ds(1,"mat-card"),fs(2,"app-participant-detail",33),hs(),hs()),2&e){var n=t.$implicit;Oa(2),us("participant",n)}}function h9(e,t){if(1&e&&(ds(0,"div"),ds(1,"p",35),ds(2,"a",36),ds(3,"b"),Js(4),hs(),hs(),Js(5),Iu(6,"uppercase"),Iu(7,"date"),hs(),hs()),2&e){var n=t.$implicit;Oa(2),us("href","/#/resource/"+n.resource_id,Pr),Oa(2),nl("Resource #",n.resource_id," - ",n.resource_title,""),Oa(1),nl(" - Edit Type: ",Ru(6,5,n.type)," - Update Date: ",Lu(7,7,n.last_updated,"long")," ")}}function f9(e,t){if(1&e&&(ds(0,"mat-card"),ds(1,"mat-card-title"),Js(2,"Edit Log"),hs(),os(3,h9,8,10,"div",34),hs()),2&e){var n=As(2);Oa(3),us("ngForOf",n.resourceChangeLog)}}function p9(e,t){if(1&e&&(ds(0,"div"),ds(1,"p",35),ds(2,"a",36),ds(3,"b"),Js(4),hs(),hs(),ds(5,"i"),Js(6),Iu(7,"date"),hs(),hs(),ds(8,"p",35),Js(9),hs(),hs()),2&e){var n=t.$implicit;Oa(2),us("href","/#/resource/"+n.resource_id,Pr),Oa(2),nl("Resource #",n.resource_id," - ",n.resource.title,""),Oa(2),tl(" - note last updated: ",Lu(7,5,n.last_updated,"short"),""),Oa(3),el(n.note)}}function m9(e,t){if(1&e&&(ds(0,"mat-card"),ds(1,"mat-card-title"),Js(2,"Admin Notes"),hs(),ds(3,"mat-card-content"),os(4,p9,10,8,"div",34),hs(),hs()),2&e){var n=As(2);Oa(4),us("ngForOf",n.adminNotes)}}function g9(e,t){if(1&e){var n=vs();ds(0,"div",1),ds(1,"h1"),Js(2,"User:"),hs(),ds(3,"div",2),ds(4,"button",3),ks("click",function(){return rn(n),As().exportUserData()}),Js(5," Export User Data "),hs(),hs(),ds(6,"div",4),ds(7,"div"),ds(8,"p"),ds(9,"b"),Js(10),hs(),hs(),ds(11,"p"),Js(12),hs(),ds(13,"p"),Js(14),hs(),ds(15,"p"),Js(16),Iu(17,"date"),hs(),ds(18,"p"),Js(19),Iu(20,"date"),hs(),ds(21,"p"),Js(22),Iu(23,"date"),hs(),os(24,Q6,17,1,"div",5),hs(),os(25,u9,24,3,"div",6),hs(),os(26,c9,2,0,"h2",7),os(27,d9,3,1,"div",8),os(28,f9,4,1,"mat-card",7),os(29,m9,5,1,"mat-card",7),hs()}if(2&e){var i=As();Oa(10),tl("User ID: ",i.user.id,""),Oa(2),tl("User Email: ",i.user.email,""),Oa(2),tl("User Role: ",i.user.role,""),Oa(2),tl("Last Updated: ",Lu(17,12,i.user.last_updated,"short"),""),Oa(3),tl("Account Creation Date: ",Lu(20,15,i.user.registration_date,"short"),""),Oa(3),tl("Last Login: ",Lu(23,18,i.user.last_login,"short"),""),Oa(2),us("ngIf",i.currentUser&&i.currentUser.permissions.includes("user_roles")),Oa(1),us("ngIf",i.user.email_log&&i.user.email_log.length>0),Oa(1),us("ngIf",i.user.participants.length>0),Oa(1),us("ngForOf",i.user.participants),Oa(1),us("ngIf",i.resourceChangeLog&&i.resourceChangeLog.length>0),Oa(1),us("ngIf",i.adminNotes&&i.adminNotes.length>0)}}var v9,y9=((v9=function(){function e(t,n,i){var r=this;b(this,e),this.api=t,this.route=n,this.authenticationService=i,this.displayedColumns=["id","user_id","type","tracking_code","viewed","date_viewed"],this.authenticationService.currentUser.subscribe(function(e){return r.currentUser=e}),this.route.params.subscribe(function(e){var t=e.userId?parseInt(e.userId,10):null;isFinite(t)&&r.api.getUser(t).subscribe(function(e){r.user=e,r.roleSelected=e.role,r.api.getUserEmailLog(r.user).subscribe(function(e){r.user.email_log=e,r.dataSource=new oH(e)}),r.api.getUserAdminNotes(r.user.id).subscribe(function(e){r.adminNotes=e}),r.api.getUserResourceChangeLog(r.user.id).subscribe(function(e){r.resourceChangeLog=e}),r.user.participants.forEach(function(e){r.api.getParticipantStepLog(e).subscribe(function(t){e.step_log=t})})})})}return w(e,[{key:"ngOnInit",value:function(){}},{key:"exportUserData",value:function(){console.log("clicking the button for export user data"),this.api.exportUserQuestionnaire(this.user.id.toString()).subscribe(function(e){console.log("data",e);var t=e.headers.get("x-filename"),n=new Blob([e.body],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),i=URL.createObjectURL(n),r=document.createElement("a");r.href=i,r.download=t,window.document.body.appendChild(r),r.click(),window.document.body.removeChild(r),URL.revokeObjectURL(i)})}},{key:"saveSelection",value:function(){this.user.role=this.roleSelected,this.api.updateUser(this.user).subscribe()}}]),e}()).\u0275fac=function(e){return new(e||v9)(ls(x$),ls(oQ),ls(y$))},v9.\u0275cmp=pt({type:v9,selectors:[["app-user-admin-details"]],decls:1,vars:1,consts:[["class","user-admin-details","fxLayout","column",4,"ngIf"],["fxLayout","column",1,"user-admin-details"],["fxFlex","20%","fxLayoutGap","2em"],["mat-flat-button","","color","accent",3,"click"],["fxLayout","row"],["fxLayout","column",4,"ngIf"],["class","email-log",4,"ngIf"],[4,"ngIf"],["id","participants","id","participant-detail","fxFlex","40%","fxLayoutGap","2em",4,"ngFor","ngForOf"],["fxLayout","column"],[3,"value","valueChange"],["value","admin"],["value","test"],["value","researcher"],["value","editor"],["value","user"],[1,"email-log"],["mat-table","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","user_id"],["matColumnDef","type"],["matColumnDef","tracking_code"],["matColumnDef","viewed"],["matColumnDef","date_viewed"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],["id","participants","id","participant-detail","fxFlex","40%","fxLayoutGap","2em"],[3,"participant"],[4,"ngFor","ngForOf"],["mat-line",""],[3,"href"]],template:function(e,t){1&e&&os(0,g9,30,21,"div",0),2&e&&us("ngIf",t.user)},directives:[wh,Xy,v_,n_,kP,bh,wT,hT,KL,JA,BB,WB,jB,zB,KB,JB,YB,XB,tH,iH,jP,Y6,HP,bA,BP],pipes:[$h,Xh],styles:[".user-admin-details[_ngcontent-%COMP%]{margin:2em}mat-card[_ngcontent-%COMP%]{margin-bottom:1em}td.mat-cell[_ngcontent-%COMP%], th.mat-header-cell[_ngcontent-%COMP%]{padding:0 1em}.email-log[_ngcontent-%COMP%]{margin:0 2em}"]}),v9),_9=function(){function e(t){b(this,e),this.api=t,this.userSubject=new ep([]),this.countSubject=new ep(0),this.count$=this.countSubject.asObservable(),this.loadingSubject=new ep(!1),this.loading$=this.loadingSubject.asObservable()}return w(e,[{key:"connect",value:function(e){return this.userSubject.asObservable()}},{key:"disconnect",value:function(e){this.userSubject.complete(),this.loadingSubject.complete(),this.countSubject.complete()}},{key:"loadUsers",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"email",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"asc",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:10;this.loadingSubject.next(!0),this.api.findUsers(t,n,i,r,a).subscribe(function(t){console.log("UserDataSource loadUsers results",t),e.userSubject.next(t.items),e.countSubject.next(t.total),e.loadingSubject.next(!1)},function(t){e.userSubject.next(null),e.countSubject.next(0),e.loadingSubject.next(!1)})}}]),e}(),b9=["input"];function k9(e,t){1&e&&(ds(0,"div",24),fs(1,"mat-spinner"),hs())}function w9(e,t){1&e&&(ds(0,"mat-header-cell",25),Js(1,"ID"),hs())}function C9(e,t){if(1&e&&(ds(0,"mat-cell",26),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl("",n.id," ")}}function x9(e,t){1&e&&(ds(0,"mat-header-cell",25),Js(1,"Role"),hs())}function S9(e,t){if(1&e&&(ds(0,"mat-cell",27),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl("",n.role," ")}}function A9(e,t){1&e&&(ds(0,"mat-header-cell",25),Js(1,"Account Creation Date"),hs())}function O9(e,t){if(1&e&&(ds(0,"mat-cell",27),Js(1),Iu(2,"date"),hs()),2&e){var n=t.$implicit;Oa(1),tl("",Lu(2,1,n.registration_date,"short")," ")}}function E9(e,t){1&e&&(ds(0,"mat-header-cell",25),Js(1,"Last Updated"),hs())}function T9(e,t){if(1&e&&(ds(0,"mat-cell",27),Js(1),Iu(2,"date"),hs()),2&e){var n=t.$implicit;Oa(1),tl("",Lu(2,1,n.last_updated,"short")," ")}}function P9(e,t){1&e&&(ds(0,"mat-header-cell",25),Js(1,"Last Login"),hs())}function D9(e,t){if(1&e&&(ds(0,"mat-cell",27),Js(1),Iu(2,"date"),hs()),2&e){var n=t.$implicit;Oa(1),tl("",Lu(2,1,n.last_login,"short")," ")}}function M9(e,t){1&e&&(ds(0,"mat-header-cell",25),Js(1,"Email"),hs())}function I9(e,t){if(1&e&&(ds(0,"mat-cell",28),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl("",n.email," ")}}function R9(e,t){1&e&&(ds(0,"mat-header-cell",25),Js(1,"Number of Participants"),hs())}function L9(e,t){if(1&e&&(ds(0,"mat-cell",29),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.participant_count," ")}}function F9(e,t){1&e&&(ds(0,"mat-header-cell",25),Js(1,"Created Password"),hs())}function N9(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.created_password," ")}}function V9(e,t){1&e&&(ds(0,"mat-header-cell",25),Js(1,"Identity"),hs())}function B9(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.identity," ")}}function H9(e,t){1&e&&(ds(0,"mat-header-cell",25),Js(1,"Percent Self Registration Complete"),hs())}function z9(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),Iu(2,"percent"),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",Ru(2,1,n.percent_self_registration_complete)," ")}}function G9(e,t){1&e&&fs(0,"mat-header-row")}function j9(e,t){if(1&e){var n=vs();ds(0,"mat-row",30),ks("click",function(){rn(n);var e=t.$implicit;return As().onRowClicked(e)}),hs()}2&e&&Ds("id","user_row_",t.$implicit.id,"")}var U9,W9=function(){return[5,10,20]},q9=((U9=function(){function e(t,n){b(this,e),this.api=t,this.router=n,this.displayedColumns=["id","role","email","last_updated","registration_date","last_login","participant_count","created_password","identity","percent_self_registration_complete"],this.default_page_size=10,this.dataSource=new _9(this.api)}return w(e,[{key:"ngOnInit",value:function(){this.dataSource.loadUsers("","email","asc",0,this.default_page_size)}},{key:"onRowClicked",value:function(e){this.router.navigate(["admin/user",e.id])}},{key:"ngAfterViewInit",value:function(){var e=this;zg(this.input.nativeElement,"keyup").pipe(jg(150),Op(),Zg(function(){e.paginator.pageIndex=0,e.loadUsers()})).subscribe(),this.sort.sortChange.subscribe(function(){return e.paginator.pageIndex=0}),de(this.sort.sortChange,this.paginator.page).pipe(Zg(function(){return e.loadUsers()})).subscribe()}},{key:"loadUsers",value:function(){this.dataSource.loadUsers(this.input.nativeElement.value,this.sort.active,this.sort.direction,this.paginator.pageIndex,this.paginator.pageSize)}}]),e}()).\u0275fac=function(e){return new(e||U9)(ls(x$),ls(EX))},U9.\u0275cmp=pt({type:U9,selectors:[["app-user-admin"]],viewQuery:function(e,t){var n;1&e&&(Ku(GF,3),Ku(hV,3),Ku(b9,3)),2&e&&($u(n=Ju())&&(t.paginator=n.first),$u(n=Ju())&&(t.sort=n.first),$u(n=Ju())&&(t.input=n.first))},decls:41,vars:12,consts:[[1,"userList"],["matInput","","placeholder","Search Users"],["input",""],["class","spinner-container",4,"ngIf"],["matSort","","matSortActive","email","matSortDirection","asc","matSortDisableClear","",1,"users-table","mat-elevation-z8",3,"dataSource"],["matColumnDef","id"],["mat-sort-header","",4,"matHeaderCellDef"],["class","id-cell",4,"matCellDef"],["matColumnDef","role"],["class","role-cell",4,"matCellDef"],["matColumnDef","registration_date"],["matColumnDef","last_updated"],["matColumnDef","last_login"],["matColumnDef","email"],["class","email-cell",4,"matCellDef"],["matColumnDef","participant_count"],["class","participants-cell",4,"matCellDef"],["matColumnDef","created_password"],[4,"matCellDef"],["matColumnDef","identity"],["matColumnDef","percent_self_registration_complete"],[4,"matHeaderRowDef"],[3,"id","click",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions"],[1,"spinner-container"],["mat-sort-header",""],[1,"id-cell"],[1,"role-cell"],[1,"email-cell"],[1,"participants-cell"],[3,"id","click"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"mat-form-field"),fs(2,"input",1,2),hs(),os(4,k9,2,0,"div",3),Iu(5,"async"),ds(6,"mat-table",4),ps(7,5),os(8,w9,2,0,"mat-header-cell",6),os(9,C9,2,1,"mat-cell",7),ms(),ps(10,8),os(11,x9,2,0,"mat-header-cell",6),os(12,S9,2,1,"mat-cell",9),ms(),ps(13,10),os(14,A9,2,0,"mat-header-cell",6),os(15,O9,3,4,"mat-cell",9),ms(),ps(16,11),os(17,E9,2,0,"mat-header-cell",6),os(18,T9,3,4,"mat-cell",9),ms(),ps(19,12),os(20,P9,2,0,"mat-header-cell",6),os(21,D9,3,4,"mat-cell",9),ms(),ps(22,13),os(23,M9,2,0,"mat-header-cell",6),os(24,I9,2,1,"mat-cell",14),ms(),ps(25,15),os(26,R9,2,0,"mat-header-cell",6),os(27,L9,2,1,"mat-cell",16),ms(),ps(28,17),os(29,F9,2,0,"mat-header-cell",6),os(30,N9,2,1,"mat-cell",18),ms(),ps(31,19),os(32,V9,2,0,"mat-header-cell",6),os(33,B9,2,1,"mat-cell",18),ms(),ps(34,20),os(35,H9,2,0,"mat-header-cell",6),os(36,z9,3,3,"mat-cell",18),ms(),os(37,G9,1,0,"mat-header-row",21),os(38,j9,1,1,"mat-row",22),hs(),fs(39,"mat-paginator",23),Iu(40,"async"),hs()),2&e&&(Oa(4),us("ngIf",Ru(5,7,t.dataSource.loading$)),Oa(2),us("dataSource",t.dataSource),Oa(31),us("matHeaderRowDef",t.displayedColumns),Oa(1),us("matRowDefColumns",t.displayedColumns),Oa(1),us("length",Ru(40,9,t.dataSource.count$))("pageSize",t.default_page_size)("pageSizeOptions",Su(11,W9)))},directives:[wT,vM,wh,BB,hV,WB,jB,zB,KB,JB,GF,pN,YB,yV,XB,tH,iH],pipes:[qh,$h,Kh],styles:[".userList[_ngcontent-%COMP%]{text-align:center;margin:2em}.spinner-container[_ngcontent-%COMP%]{height:360px;width:390px;position:fixed}.users-table[_ngcontent-%COMP%]{min-height:360px;margin-top:10px}.spinner-container[_ngcontent-%COMP%] mat-spinner[_ngcontent-%COMP%]{margin:130px auto 0}mat-row[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:#fff1e3}.mat-column-role[_ngcontent-%COMP%]{-ms-flex:0 0 75px;flex:0 0 75px}.mat-column-id[_ngcontent-%COMP%]{-ms-flex:0 0 130px;flex:0 0 130px}"]}),U9);function Y9(e,t){1&e&&(ds(0,"div",4),fs(1,"mat-spinner"),hs())}function Q9(e,t){if(1&e&&fs(0,"app-news-item",10),2&e){var n=t.index;us("item",t.$implicit)("index",n)}}function X9(e,t){if(1&e&&(ds(0,"div",8),os(1,Q9,1,2,"app-news-item",9),hs()),2&e){var n=As(2);Oa(1),us("ngForOf",n.newsItems)}}function $9(e,t){1&e&&(ds(0,"div",11),ds(1,"h4"),Js(2,"Please check back for UVA Education content coming soon."),hs(),hs())}function K9(e,t){if(1&e&&(ds(0,"div"),ds(1,"div",5),os(2,X9,2,1,"div",6),os(3,$9,3,0,"div",7),hs(),hs()),2&e){var n=As();Oa(2),us("ngIf",n.newsItems.length>0),Oa(1),us("ngIf",!n.newsItems||0==n.newsItems.length)}}var Z9,J9,eee,tee,nee,iee,ree=((tee=function(){function e(t,n,i){var r=this;b(this,e),this.api=t,this.authenticationService=n,this.meta=i,this.loading=!0,this.authenticationService.currentUser.subscribe(function(e){return r.currentUser=e}),this.meta.updateTag({property:"og:image",content:location.origin+"/assets/education/uva_education.jpg"},"property='og:image'"),this.meta.updateTag({property:"og:image:secure_url",content:location.origin+"/assets/education/uva_education.jpg"},"property='og:image:secure_url'"),this.meta.updateTag({name:"twitter:image",content:location.origin+"/assets/education/uva_education.jpg"},"name='twitter:image'"),this.loadResources()}return w(e,[{key:"ngOnInit",value:function(){}},{key:"loadResources",value:function(){var e=this;this.api.getEducationResources().subscribe(function(t){e.edResources=t,e.newsItems=e._resourcesToNewsItems(e.edResources)||[],e.loading=!1})}},{key:"get_image",value:function(e){return e.video_code?"https://img.youtube.com/vi/"+e.video_code+"/hqdefault.jpg":"/assets/about/feature.jpg"}},{key:"_resourcesToNewsItems",value:function(e){var t=this;if(this.edResources&&this.edResources.length>0)return e.map(function(e){var n;return e.video_code&&(n="Watch this video"),{title:e.title,description:e.description.substr(0,100)+"...",url:"/".concat(e.type.toLowerCase(),"/").concat(e.id),type:uK.RESOURCE,img:t.get_image(e),imgClass:"center-center",label:n}})}}]),e}()).\u0275fac=function(e){return new(e||tee)(ls(x$),ls(y$),ls(Yf))},tee.\u0275cmp=pt({type:tee,selectors:[["app-uva-education"]],decls:6,vars:2,consts:[["id","hero",1,"gradient-overlay","container"],[1,"hero-content"],["class","pad-2","fxLayoutAlign","center center",4,"ngIf"],[4,"ngIf"],["fxLayoutAlign","center center",1,"pad-2"],[1,"container","uva-education"],["class","row","fxFlex","87%",4,"ngIf"],["class","pad-2",4,"ngIf"],["fxFlex","87%",1,"row"],[3,"item","index",4,"ngFor","ngForOf"],[3,"item","index"],[1,"pad-2"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"div",1),ds(2,"h1"),Js(3,"Webinars"),hs(),hs(),hs(),os(4,Y9,2,0,"div",2),os(5,K9,4,2,"div",3)),2&e&&(Oa(4),us("ngIf",t.loading),Oa(1),us("ngIf",t.newsItems))},directives:[wh,eb,pN,v_,bh,YJ],styles:["#hero[_ngcontent-%COMP%]{background-image:url(/assets/education/uva_education.jpg);background-position:50% 33%;padding:80px 0}#hero[_ngcontent-%COMP%] .hero-content[_ngcontent-%COMP%]{color:#fff;width:50%}"]}),tee),aee=((eee=function(){function e(t,n){var i=this;b(this,e),this.router=t,this.authenticationService=n,this.authenticationService.currentUser.subscribe(function(e){return i.currentUser=e})}return w(e,[{key:"canActivate",value:function(e,t){return!!this.currentUser||(console.log("On AuthGuard, and there is no user, sending to login!"),this.router.navigate(["/login"],{queryParams:{returnUrl:t.url}}),!1)}}]),e}()).\u0275fac=function(e){return new(e||eee)(Ni(EX),Ni(y$))},eee.\u0275prov=Le({token:eee,factory:eee.\u0275fac,providedIn:"root"}),eee),oee=((J9=function(){function e(t,n){b(this,e),this.router=t,this.configService=n}return w(e,[{key:"canActivate",value:function(e,t){return!this.configService||!this.configService.mirroring||(this.router.navigate(["/mirrored"]),!1)}}]),e}()).\u0275fac=function(e){return new(e||J9)(Ni(EX),Ni(d$))},J9.\u0275prov=Le({token:J9,factory:J9.\u0275fac,providedIn:"root"}),J9),see=((Z9=function(){function e(t,n){var i=this;b(this,e),this.router=t,this.authenticationService=n,this.authenticationService.currentUser.subscribe(function(e){return i.currentUser=e})}return w(e,[{key:"canActivate",value:function(e,t){return this.currentUser?!!e.data.roles.includes(this.currentUser.role)||(this.router.navigate(["/profile"]),!1):(this.router.navigate(["/login"],{queryParams:{returnUrl:t.url}}),!1)}}]),e}()).\u0275fac=function(e){return new(e||Z9)(Ni(EX),Ni(y$))},Z9.\u0275prov=Le({token:Z9,factory:Z9.\u0275fac,providedIn:"root"}),Z9),lee=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:$J,data:{title:"Welcome to Autism DRIVE"},canActivate:[oee]},{path:"uva-education",component:ree,data:{title:"Autism DRIVE UVA Education"},canActivate:[oee]},{path:"about",component:b$,data:{title:"About Autism DRIVE"},canActivate:[oee]},{path:"forgot-password",component:NJ,data:{title:"Log in to Autism DRIVE",hideHeader:!0}},{path:"login",component:n0,data:{title:"Log in to Autism DRIVE",hideHeader:!0}},{path:"reset_password/:role/:email_token",component:N0,data:{title:"Reset your Autism DRIVE password",hideHeader:!0}},{path:"profile",component:i2,data:{title:"Your Autism DRIVE Account"},canActivate:[aee,oee]},{path:"flow/complete",component:IZ,data:{title:"Enrollment complete"},canActivate:[aee,oee]},{path:"flow/:flowName/:participantId",component:TJ,data:{title:"Your Autism DRIVE Account"},canActivate:[aee,oee]},{path:"register",component:A2,data:{title:"Create an Autism DRIVE Account",hideHeader:!0}},{path:"event/:resourceId",component:h4,data:{title:"Autism DRIVE Event Details"}},{path:"location/:resourceId",component:h4,data:{title:"Autism DRIVE Location Details"}},{path:"resource/:resourceId",component:h4,data:{title:"Autism DRIVE Resource Details"}},{path:":resourceType/:resourceId/edit",component:C4,data:{title:"Edit Resource",roles:["admin","editor"]},canActivate:[see]},{path:"resources/add",component:C4,data:{title:"Add Resource",roles:["admin","editor"]},canActivate:[see]},{path:"covid19-resources",component:uZ,data:{title:"Autism DRIVE COVID-19 Resources"}},{path:"covid19-resources/:category",component:uZ,data:{title:"Autism DRIVE COVID-19 Resources"}},{path:"studies",component:e8,data:{title:"Autism DRIVE Studies"}},{path:"studies/add",component:i6,data:{title:"Create an Autism DRIVE Study",roles:["admin"]},canActivate:[see]},{path:"studies/:studyStatus",component:e8,data:{title:"Autism DRIVE Studies"}},{path:"studies/:studyStatus/:age",component:e8,data:{title:"Autism DRIVE Studies"}},{path:"study/:studyId",component:Q8,data:{title:"Autism DRIVE Study Details"}},{path:"study/edit/:studyId",component:i6,data:{title:"Edit Study",roles:["admin"]},canActivate:[see]},{path:"terms/:relationship",component:S6,data:{title:"Agree to Terms and Conditions for an Autism DRIVE Account",hideHeader:!0}},{path:"logout",component:d0,data:{title:"You have been logged out.",hideHeader:!0}},{path:"timedout",component:A6,data:{title:"Your session has timed out.",hideHeader:!0}},{path:"search",component:I7,data:{title:"Search Autism DRIVE"}},{path:"search/:query",component:I7,data:{title:"Search Autism DRIVE Resources"}},{path:"admin",component:lK,data:{title:"Autism DRIVE Admin Home",roles:["admin"]},canActivate:[see],children:[{path:"",redirectTo:"data-admin",pathMatch:"full"},{path:"data-admin",component:_2,data:{title:"Autism DRIVE Data Admin",roles:["admin"]},canActivate:[see]},{path:"user-admin",component:q9,data:{title:"Autism DRIVE User Admin",roles:["admin"]},canActivate:[see]},{path:"participant-admin",component:M0,data:{title:"Autism DRIVE Participant Admin",roles:["admin"]},canActivate:[see]},{path:"taxonomy-admin",component:m6,data:{title:"Autism DRIVE Taxonomy Admin",roles:["admin"]},canActivate:[see]},{path:"import-export-status",component:aK,data:{title:"Autism DRIVE Import/Export Admin",roles:["admin"]},canActivate:[see]},{path:"email-log",component:OZ,data:{title:"Autism DRIVE Email Log Admin",roles:["admin"]},canActivate:[see]}]},{path:"admin/user/:userId",component:y9,data:{title:"User Admin Details",roles:["admin","researcher"]},canActivate:[see]},{path:"mirrored",component:h0,data:{title:"Mirrored Server Details"}}],uee=((iee=function e(){b(this,e)}).\u0275fac=function(e){return new(e||iee)},iee.\u0275mod=yt({type:iee}),iee.\u0275inj=Ne({imports:[[QX.forRoot(lee,{useHash:!0,scrollPositionRestoration:"enabled"})],QX]}),iee),cee=((nee=function(){function e(t){b(this,e),this.ngZone=t}return w(e,[{key:"setInterval",value:function(e,t){var n=this;this.ngZone.runOutsideAngular(function(){n.interval=window.setInterval(function(){n.ngZone.run(e)},t)})}},{key:"clearInterval",value:function(){window.clearInterval(this.interval)}}]),e}()).\u0275fac=function(e){return new(e||nee)(Ni(Oc))},nee.\u0275prov=Le({token:nee,factory:nee.\u0275fac,providedIn:"root"}),nee);function dee(e,t){if(1&e&&fs(0,"div",19),2&e){var n=As();us("@toggleBackground",n.onHomeScreen()&&n.headerViewportState)}}function hee(e,t){1&e&&(ds(0,"div",26),Js(1,"THIS IS A MIRRORED SERVER"),hs())}function fee(e,t){if(1&e&&(ds(0,"mat-toolbar-row",20),ds(1,"div",21),ds(2,"a",22),ds(3,"span",23),Js(4,"About UVA STAR"),hs(),ds(5,"span",24),Js(6,"Learn about the UVA STAR project"),hs(),hs(),hs(),fs(7,"span",5),os(8,hee,2,0,"div",25),hs()),2&e){var n=As();us("@toggleUvaHeader",n.headerExpandedState),Oa(8),us("ngIf",n.config.mirroring)}}var pee=function(){return["/register"]};function mee(e,t){1&e&&(ds(0,"li"),ds(1,"a",34),ds(2,"span",23),Js(3,"Join"),hs(),ds(4,"span",24),Js(5,"Join Us"),hs(),hs(),hs()),2&e&&(Oa(1),us("routerLink",Su(1,pee)))}function gee(e,t){if(1&e){var n=vs();ds(0,"li"),ds(1,"a",35),ks("click",function(){return rn(n),As(2).goLogin()}),Js(2," Sign in "),hs(),hs()}}var vee=function(){return["/profile"]};function yee(e,t){1&e&&(ds(0,"li"),ds(1,"a",36),ds(2,"mat-icon"),Js(3,"account_circle"),hs(),Js(4," Profile "),hs(),hs()),2&e&&(Oa(1),us("routerLink",Su(1,vee)))}function _ee(e,t){if(1&e){var n=vs();ds(0,"li"),ds(1,"a",37),ks("click",function(e){return rn(n),As(2).goLogout(e)}),ds(2,"mat-icon"),Js(3,"exit_to_app"),hs(),Js(4," Logout "),hs(),hs()}}var bee=function(){return["/admin"]};function kee(e,t){1&e&&(ds(0,"li"),ds(1,"a",38),ds(2,"mat-icon"),Js(3,"build"),hs(),Js(4," Admin "),hs(),hs()),2&e&&(Oa(1),us("routerLink",Su(1,bee)))}var wee=function(){return["/about"]},Cee=function(){return["/studies"]},xee=function(){return["/search"]},See=function(){return["/uva-education"]};function Aee(e,t){if(1&e&&(ds(0,"div",27),ds(1,"ul"),ds(2,"li"),ds(3,"a",28),ds(4,"span",23),Js(5,"About"),hs(),ds(6,"span",24),Js(7,"About Autism DRIVE"),hs(),hs(),hs(),ds(8,"li"),ds(9,"a",29),ds(10,"span",23),Js(11,"Studies"),hs(),ds(12,"span",30),Js(13,"Current Studies"),hs(),hs(),hs(),ds(14,"li"),ds(15,"a",31),ds(16,"span",23),Js(17,"Resources"),hs(),ds(18,"span",24),Js(19,"Find Resources"),hs(),hs(),hs(),ds(20,"li"),ds(21,"a",32),Js(22," Webinars "),hs(),hs(),os(23,mee,6,2,"li",33),os(24,gee,3,0,"li",33),os(25,yee,5,2,"li",33),os(26,_ee,5,0,"li",33),os(27,kee,5,2,"li",33),hs(),hs()),2&e){var n=As();Oa(3),us("routerLink",Su(9,wee)),Oa(6),us("routerLink",Su(10,Cee)),Oa(6),us("routerLink",Su(11,xee)),Oa(6),us("routerLink",Su(12,See)),Oa(2),us("ngIf",!n.currentUser),Oa(1),us("ngIf",!n.currentUser),Oa(1),us("ngIf",n.currentUser),Oa(1),us("ngIf",n.currentUser),Oa(1),us("ngIf",n.currentUser&&"admin"==n.currentUser.role)}}function Oee(e,t){1&e&&(ds(0,"mat-toolbar-row",39),ds(1,"p",40),Js(2," A centralized system for autism research & resources for individuals, families & professionals. "),hs(),ds(3,"p",41),Js(4," Autism research & resources for "),fs(5,"br",42),Js(6," individuals, families & professionals. "),hs(),hs()),2&e&&us("@toggleTaglineToolbar",As().taglineToolbarState)}function Eee(e,t){if(1&e){var n=vs();ds(0,"a",43),ks("click",function(){return rn(n),As().toggleMenu()}),ds(1,"mat-icon"),Js(2,"person_add"),hs(),Js(3," Join Us "),hs()}2&e&&us("routerLink",Su(1,pee))}var Tee=function(){return["/login"]};function Pee(e,t){if(1&e){var n=vs();ds(0,"a",44),ks("click",function(){return rn(n),As().toggleMenu()}),ds(1,"mat-icon"),Js(2,"account_circle"),hs(),Js(3," Sign in "),hs()}2&e&&us("routerLink",Su(1,Tee))}function Dee(e,t){if(1&e){var n=vs();ds(0,"a",45),ks("click",function(){return rn(n),As().toggleMenu()}),ds(1,"mat-icon"),Js(2,"build"),hs(),Js(3," Admin "),hs()}2&e&&us("routerLink",Su(1,bee))}function Mee(e,t){if(1&e){var n=vs();ds(0,"a",46),ks("click",function(){return rn(n),As().toggleMenu()}),ds(1,"mat-icon"),Js(2,"account_circle"),hs(),Js(3," Visit Profile "),hs()}2&e&&us("routerLink",Su(1,vee))}function Iee(e,t){if(1&e){var n=vs();ds(0,"a",47),ks("click",function(e){return rn(n),As().goLogout(e)})("click",function(){return rn(n),As().toggleMenu()}),ds(1,"mat-icon"),Js(2,"exit_to_app"),hs(),Js(3," Logout "),hs()}}var Ree,Lee=function(e){return{mirroring:e}},Fee=function(){return{}},Nee=function(){return{top:0}},Vee=function(){return{top:0,minHeight:"64px"}},Bee="0px 5px 5px 0px rgba(0, 0, 0, 0.3)",Hee=R4.Hidden+"-"+L4.Collapsed,zee=R4.Hidden+"-"+L4.Expanded,Gee=R4.Visible+"-"+L4.Collapsed,jee=R4.Visible+"-"+L4.Expanded,Uee=((Ree=function(){function e(t,n,i,r,a,o){b(this,e),this.authenticationService=n,this.router=i,this.api=r,this.config=a,this.headerExpanded=!0,this.menuVisible=!1,this.mobileQuery=o.matchMedia("(max-width: 959px)"),this.mdMediaQuery=o.matchMedia("(min-width: 960px) and (max-width: 1279px)"),this.lgMediaQuery=o.matchMedia("(min-width: 1280px)"),this._mobileQueryListener=function(){return t.detectChanges()},this._mdMediaQueryListener=function(){return t.detectChanges()},this._lgMediaQueryListener=function(){return t.detectChanges()},this.mobileQuery.addListener(this._mobileQueryListener),this.mdMediaQuery.addListener(this._mdMediaQueryListener),this.lgMediaQuery.addListener(this._lgMediaQueryListener)}return w(e,[{key:"viewportWidth",get:function(){return this.mobileQuery.matches?I4.Small:this.mdMediaQuery.matches?I4.Medium:this.lgMediaQuery.matches?I4.Large:void 0}},{key:"headerViewportState",get:function(){return"".concat(this.headerExpanded?L4.Expanded:L4.Collapsed,"-").concat(this.viewportWidth)}},{key:"menuState",get:function(){return"".concat(this.menuVisible?R4.Visible:R4.Hidden,"-").concat(this.headerExpanded?L4.Expanded:L4.Collapsed,"-").concat(this.viewportWidth)}},{key:"headerExpandedState",get:function(){return this.headerExpanded?L4.Expanded:L4.Collapsed}},{key:"taglineToolbarState",get:function(){return"".concat(this.menuVisible?R4.Visible:R4.Hidden,"-").concat(this.headerExpanded?L4.Expanded:L4.Collapsed,"-").concat(this.viewportWidth)}},{key:"ngAfterViewInit",value:function(){this.watchScrollEvents()}},{key:"ngOnDestroy",value:function(){this.mobileQuery.removeListener(this._mobileQueryListener),this.mdMediaQuery.removeListener(this._mdMediaQueryListener),this.lgMediaQuery.removeListener(this._lgMediaQueryListener)}},{key:"goLogout",value:function(e){e.preventDefault(),this.authenticationService.logout(),this.router.navigate(["logout"])}},{key:"goLogin",value:function(){var e=/^\/login/.test(this.router.url),t=/^\/logout/.test(this.router.url),n=/^\/home/.test(this.router.url),i=/^\/timedout/.test(this.router.url);n||e||t||i?this.router.navigate(["/login"]):this.router.navigate(["/login"],{queryParams:{returnUrl:this.router.url}})}},{key:"toggleMenu",value:function(){this.menuVisible=!this.menuVisible}},{key:"onHomeScreen",value:function(){return/^\/home/.test(this.router.url)}},{key:"watchScrollEvents",value:function(){var e=this,t=zg(window,"scroll").pipe(O4(10),q(function(e){return window.pageYOffset}),uO(),q(function(e){var t=n(e,2),i=t[0];return t[1] *",cC("500ms ease-in-out"))]),uC("toggleUvaHeader",[pC(L4.Collapsed,fC({top:"-40px",height:"40px"})),pC(L4.Expanded,fC({top:"0px",height:"40px"})),gC("* => *",cC("500ms ease-in-out"))]),uC("toggleMenuBar",[pC(Hee+"-"+I4.Small,fC({top:"0px",height:"64px","box-shadow":Bee})),pC(zee+"-"+I4.Small,fC({top:"0px",height:"64px","box-shadow":"none"})),pC(Gee+"-"+I4.Small,fC({top:"0px",height:"64px","box-shadow":"none"})),pC(jee+"-"+I4.Small,fC({top:"0px",height:"64px","box-shadow":"none"})),pC(Hee+"-"+I4.Medium,fC({top:"0px",height:"64px","box-shadow":Bee})),pC(zee+"-"+I4.Medium,fC({top:"40px",height:"64px","box-shadow":"none"})),pC(Gee+"-"+I4.Medium,fC({top:"0px",height:"64px","box-shadow":"none"})),pC(jee+"-"+I4.Medium,fC({top:"40px",height:"64px","box-shadow":"none"})),pC(Hee+"-"+I4.Large,fC({top:"0px",height:"64px","box-shadow":Bee})),pC(zee+"-"+I4.Large,fC({top:"40px",height:"64px","box-shadow":"none"})),pC(Gee+"-"+I4.Large,fC({top:"0px",height:"64px","box-shadow":"none"})),pC(jee+"-"+I4.Large,fC({top:"40px",height:"64px","box-shadow":"none"})),gC("* => *",cC("500ms ease-in-out"))]),uC("toggleTaglineToolbar",[pC(Hee+"-"+I4.Small,fC({top:"0px",height:"40px","box-shadow":"none"})),pC(zee+"-"+I4.Small,fC({top:"104px",height:"64px","box-shadow":Bee})),pC(Hee+"-"+I4.Medium,fC({top:"0px",height:"40px","box-shadow":"none"})),pC(zee+"-"+I4.Medium,fC({top:"104px",height:"40px","box-shadow":Bee})),pC(Hee+"-"+I4.Large,fC({top:"0px",height:"40px","box-shadow":"none"})),pC(zee+"-"+I4.Large,fC({top:"104px",height:"40px","box-shadow":Bee})),pC(Gee+"-"+I4.Small,fC({top:"0px",height:"40px","box-shadow":"none"})),pC(jee+"-"+I4.Small,fC({top:"104px",height:"64px","box-shadow":"none"})),pC(Gee+"-"+I4.Medium,fC({top:"0px",height:"40px","box-shadow":"none"})),pC(jee+"-"+I4.Medium,fC({top:"104px",height:"40px","box-shadow":"none"})),pC(Gee+"-"+I4.Large,fC({top:"0px",height:"40px","box-shadow":"none"})),pC(jee+"-"+I4.Large,fC({top:"104px",height:"40px","box-shadow":"none"})),gC("* => *",cC("500ms ease-in-out"))]),uC("toggleBackground",[pC(L4.Collapsed+"-"+I4.Small,fC({top:"0px",height:"64px"})),pC(L4.Expanded+"-"+I4.Small,fC({top:"0px",height:"64px"})),pC(L4.Collapsed+"-"+I4.Medium,fC({top:"0px",height:"64px"})),pC(L4.Expanded+"-"+I4.Medium,fC({top:"0px",height:"144px"})),pC(L4.Collapsed+"-"+I4.Large,fC({top:"0px",height:"64px"})),pC(L4.Expanded+"-"+I4.Large,fC({top:"0px",height:"144px"})),gC("* => *",cC("500ms ease-out"))])]}}),Ree);function Wee(e,t){1&e&&(ds(0,"div"),Js(1,"Currently running in Development Mode."),hs())}function qee(e,t){1&e&&(ds(0,"div"),Js(1,"Currently running in Test mode."),hs())}function Yee(e,t){1&e&&(ds(0,"div"),Js(1,"This is a mirrored server with de-identified data."),hs())}var Qee,Xee,$ee=((Xee=function e(t){b(this,e),this.config=t}).\u0275fac=function(e){return new(e||Xee)(ls(d$))},Xee.\u0275cmp=pt({type:Xee,selectors:[["app-footer"]],decls:17,vars:3,consts:[[1,"global-footer"],[1,"funded-by"],["href","https://curry.virginia.edu/faculty-research/centers-labs-projects/supporting-transformative-autism-research-star","target","_blank"],["src","/assets/logo/UVA_STAR-logo.svg",1,"footer-logo"],[1,"footer-contact"],[1,"address"],["href","tel:434-297-8178",1,"tel"],["href","mailto:autismdrive@virginia.edu",1,"email"],[4,"ngIf"]],template:function(e,t){1&e&&(ds(0,"footer",0),ds(1,"div",1),Js(2,"Funded by"),hs(),ds(3,"a",2),fs(4,"img",3),hs(),ds(5,"div",4),ds(6,"address",5),Js(7,"417 Emmet Street, Charlottesville, VA 22904"),hs(),ds(8,"a",6),Js(9,"434-297-8178"),hs(),ds(10,"a",7),Js(11,"autismdrive@virginia.edu"),hs(),hs(),ds(12,"p"),Js(13,"\xa9 2019 BY THE RECTOR AND VISITORS OF THE UNIVERSITY OF VIRGINIA"),hs(),os(14,Wee,2,0,"div",8),os(15,qee,2,0,"div",8),os(16,Yee,2,0,"div",8),hs()),2&e&&(Oa(14),us("ngIf",t.config.development),Oa(1),us("ngIf",t.config.testing),Oa(1),us("ngIf",t.config.mirroring))},directives:[wh],styles:['footer[_ngcontent-%COMP%]{margin:50px 10px 10px;text-align:center;position:relative}footer[_ngcontent-%COMP%]:before{background-image:url(/assets/theme/orange-dotted-border-x.png);background-repeat:repeat-x;width:100%;height:4px;display:block;position:absolute;left:0;content:"";top:-2em}.funded-by[_ngcontent-%COMP%]{text-align:left;margin:1em auto -1em}@media (max-width:959px){.funded-by[_ngcontent-%COMP%]{width:290px}}@media (min-width:960px){.funded-by[_ngcontent-%COMP%]{width:417px}}@media (max-width:959px){.footer-logo[_ngcontent-%COMP%]{width:320px}}@media (min-width:960px){.footer-logo[_ngcontent-%COMP%]{width:457px}}.footer-contact[_ngcontent-%COMP%]{margin:0 auto 1.25rem;max-width:15.625rem}.footer-contact[_ngcontent-%COMP%] .address[_ngcontent-%COMP%], .footer-contact[_ngcontent-%COMP%] .email[_ngcontent-%COMP%], .footer-contact[_ngcontent-%COMP%] .tel[_ngcontent-%COMP%]{color:#4e4e4e;line-height:1.5;font-style:italic;display:inline}.footer-contact[_ngcontent-%COMP%] .address[_ngcontent-%COMP%]:after, .footer-contact[_ngcontent-%COMP%] .tel[_ngcontent-%COMP%]:after{content:"|";display:inline-block;margin:0 .325em 0 .5em}@media screen and (min-width:45em){.footer-contact[_ngcontent-%COMP%]{max-width:none;margin:0 auto .625rem}}']}),Xee),Kee=((Qee=function(){function e(t,n,i,r,a,o,s){var l=this;b(this,e),this.authenticationService=t,this.api=n,this.router=i,this.googleAnalyticsService=r,this.configService=a,this.meta=o,this.route=s,this.title="star-drive",this.hideHeader=!1,this.googleAnalyticsService.init(),this.router.events.subscribe(function(e){(e instanceof gY||e instanceof vY)&&e.snapshot&&e.snapshot.data&&(l.hideHeader=!!e.snapshot.data.hideHeader)}),this.authenticationService.currentUser.subscribe(function(e){return l.currentUser=e}),this.meta.addTags([{property:"og:url",content:location.origin},{property:"og:image",content:location.origin+"/assets/home/hero-family.jpg"},{property:"og:image:secure_url",content:location.origin+"/assets/home/hero-family.jpg"},{name:"twitter:image",content:location.origin+"/assets/home/hero-family.jpg"}])}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.router.events.subscribe(function(t){if(t instanceof rY){var n=e.route.snapshot.firstChild.data.title;document.querySelector("body").classList.toggle("is-home","/home"===e.router.url),n&&(e.meta.updateTag({property:"og:title",content:n},"property='og:title'"),e.meta.updateTag({name:"twitter:text:title",content:n},"name='twitter:text:title'")),e.meta.updateTag({property:"og:url",content:location.href},"property='og:url'")}})}}]),e}()).\u0275fac=function(e){return new(e||Qee)(ls(y$),ls(x$),ls(EX),ls(h$),ls(d$),ls(Yf),ls(oQ))},Qee.\u0275cmp=pt({type:Qee,selectors:[["app-root"]],decls:5,vars:1,consts:[[3,"currentUser"],[1,"content"]],template:function(e,t){1&e&&(ds(0,"div"),fs(1,"app-header",0),ds(2,"div",1),fs(3,"router-outlet"),hs(),fs(4,"app-footer"),hs()),2&e&&(Oa(1),us("currentUser",t.currentUser))},directives:[Uee,NX,$ee],styles:[":not(body.is-home) .content{padding-top:64px}"]}),Qee),Zee=["fieldComponent"];function Jee(e,t){}function ete(e,t){if(1&e&&(ds(0,"div",2),fs(1,"formly-validation-message",3),hs()),2&e){var n=As();Oa(1),us("field",n.field)}}var tte,nte=((tte=function(e){f(n,e);var t=m(n);function n(){return b(this,n),t.apply(this,arguments)}return n}(Cj)).\u0275fac=function(e){return ite(e||tte)},tte.\u0275cmp=pt({type:tte,selectors:[["app-group-validation-wrapper"]],viewQuery:function(e,t){var n;1&e&&Ku(Zee,3,du),2&e&&$u(n=Ju())&&(t.fieldComponent=n.first)},features:[jo],decls:3,vars:1,consts:[["fieldComponent",""],["class","mat-error",4,"ngIf"],[1,"mat-error"],[3,"field"]],template:function(e,t){1&e&&(os(0,Jee,0,0,"ng-template",null,0,ic),os(2,ete,2,1,"div",1)),2&e&&(Oa(2),us("ngIf",t.showError))},directives:[wh,Oj],styles:[""]}),tte),ite=fi(nte);function rte(e,t){return function(){return new Promise(function(n){var i="./api/config";"override_config_url"in eq&&(i=eq.override_config_url),e.get(i).pipe(q(function(e){t.fromProperties(e),n(!0)}),uR(function(e,t){return console.log("Failed to load configuration, unable to find ./api/config"),n(!1),fp({})})).subscribe()})}}var ate,ote=function(){var e=function e(){b(this,e)};return e.config={extras:{showError:Zq},types:[{name:"repeat",component:Rq},{name:"multiselecttree",component:_q,wrappers:["card"]},{name:"autocomplete",component:aq,wrappers:["form-field"]},{name:"textarea-auto-resize",component:Lq,wrappers:["form-field"]}],validators:[{name:"phone",validation:qq},{name:"email",validation:Hq},{name:"url",validation:Uq},{name:"multicheckbox",validation:Qq},{name:"emailConfirm",validation:Gq}],validationMessages:[{name:"phone",message:Yq},{name:"email",message:zq},{name:"emailConfirm",message:jq},{name:"url",message:Wq},{name:"multicheckbox",message:Xq},{name:"required",message:"This field is required."},{name:"min",message:$q},{name:"max",message:Kq}],wrappers:[{name:"help",component:dq},{name:"card",component:lq},{name:"group-validation",component:nte}]},e.\u0275prov=Le({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),ste=((ate=function e(t){b(this,e),t.getContainerElement().classList.add("stardrive-theme")}).\u0275fac=function(e){return new(e||ate)(Ni(uE))},ate.\u0275mod=yt({type:ate,bootstrap:[Kee]}),ate.\u0275inj=Ne({providers:[x$,V4,$h,EW,h$,cee,N4,{provide:oc,useFactory:rte,deps:[vg,d$],multi:!0},{provide:_g,useClass:f$,multi:!0},{provide:_g,useClass:_$,multi:!0},{provide:Im,useExisting:d$},{provide:bT,useValue:{appearance:"outline"}}],imports:[[Lm.forRoot(),zm,NS,Uf,Zh,pb,rW,QU,Fj.forRoot(ote.config),$k,Mg,XW.forRoot(),dP,mP,CP,RP,WP,cD,CD,NI,oM,sR,CT,lR,HR,yM,iL,OL,yA,jF,KF,mN,PN,JL,KN,JN,_V,CV,aH,xz,Pz,SF,fG,JW,uW,Kk,oW,PG,uee]]}),ate);eq.production&&function(){if(Bc)throw new Error("Cannot enable prod mode after platform setup.");Vc=!1}(),Gf().bootstrapModule(ste).catch(function(e){return console.error(e)})},zn8P:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}},[[0,0]]])}(); \ No newline at end of file +!function(){function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(e){return r(e)||o(e)||l(e)||i()}function n(e,t){return r(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);i=!0);}catch(l){r=!0,a=l}finally{try{i||null==s.return||s.return()}finally{if(r)throw a}}return n}(e,t)||l(e,t)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(e){if(Array.isArray(e))return e}function a(e){return function(e){if(Array.isArray(e))return u(e)}(e)||o(e)||l(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function s(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=l(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function l(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:"m",n=i.distanceConversion[t];if(n)return e*n;throw new Error("Invalid unit used for distance conversion.")}},"45h8":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n("wI44")),r=a(n("me/f"));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,n){var a=(0,i.default)(t,e),o=(0,i.default)(e,n),s=(0,i.default)(t,n),l=Math.acos((0,r.default)((a*a+s*s-o*o)/(2*a*s))),u=Math.acos((0,r.default)((o*o+s*s-a*a)/(2*o*s)));return l>Math.PI/2?a:u>Math.PI/2?o:Math.sin(l)*a}},"5hfJ":function(e,t,n){"use strict";function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:"m",n=i.areaConversion[t];if(n)return e*n;throw new Error("Invalid unit used for area conversion.")}},"5vw/":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n("wI44"))&&i.__esModule?i:{default:i};t.default=function(e,t,n){return(0,r.default)(e,t)3&&void 0!==arguments[3]?arguments[3]:6371e3,u=(0,i.default)(e),c=(0,r.default)(e),d=t/l,h=(0,a.default)(n),f=(0,a.default)(u),p=(0,a.default)(c),m=Math.asin(Math.sin(f)*Math.cos(d)+Math.cos(f)*Math.sin(d)*Math.cos(h)),g=p+Math.atan2(Math.sin(h)*Math.sin(d)*Math.cos(f),Math.cos(d)-Math.sin(f)*Math.sin(m)),v=(0,o.default)(g);return(vs.MAXLON)&&(g=(g+3*Math.PI)%(2*Math.PI)-Math.PI,v=(0,o.default)(g)),{latitude:(0,o.default)(m),longitude:v}}},"9Og4":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("jH9d");t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"kmh";switch(t){case"kmh":return e*i.timeConversion.h*i.distanceConversion.km;case"mph":return e*i.timeConversion.h*i.distanceConversion.mi;default:return e}}},AFAK:function(e,t,n){"use strict";function i(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}e.exports=function(e){return(e=e||{}).circles?function(e){var t=[],n=[];return e.proto?function e(a){if("object"!=typeof a||null===a)return a;if(a instanceof Date)return new Date(a);if(Array.isArray(a))return r(a,e);if(a instanceof Map)return new Map(r(Array.from(a),e));if(a instanceof Set)return new Set(r(Array.from(a),e));var o={};for(var s in t.push(a),n.push(o),a){var l=a[s];if("object"!=typeof l||null===l)o[s]=l;else if(l instanceof Date)o[s]=new Date(l);else if(l instanceof Map)o[s]=new Map(r(Array.from(l),e));else if(l instanceof Set)o[s]=new Set(r(Array.from(l),e));else if(ArrayBuffer.isView(l))o[s]=i(l);else{var u=t.indexOf(l);o[s]=-1!==u?n[u]:e(l)}}return t.pop(),n.pop(),o}:function e(a){if("object"!=typeof a||null===a)return a;if(a instanceof Date)return new Date(a);if(Array.isArray(a))return r(a,e);if(a instanceof Map)return new Map(r(Array.from(a),e));if(a instanceof Set)return new Set(r(Array.from(a),e));var o={};for(var s in t.push(a),n.push(o),a)if(!1!==Object.hasOwnProperty.call(a,s)){var l=a[s];if("object"!=typeof l||null===l)o[s]=l;else if(l instanceof Date)o[s]=new Date(l);else if(l instanceof Map)o[s]=new Map(r(Array.from(l),e));else if(l instanceof Set)o[s]=new Set(r(Array.from(l),e));else if(ArrayBuffer.isView(l))o[s]=i(l);else{var u=t.indexOf(l);o[s]=-1!==u?n[u]:e(l)}}return t.pop(),n.pop(),o};function r(e,r){for(var a=Object.keys(e),o=new Array(a.length),s=0;se.length)&&(t=e.length);for(var n=0,i=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(i=e[Symbol.iterator]()).next.bind(i)}var i=function(e){var t={exports:{}};return function(e){e.exports={defaults:{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},getDefaults:function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},changeDefaults:function(t){e.exports.defaults=t}}}(t),t.exports}(),r=/[&<>"']/,a=/[&<>"']/g,o=/[<>"']|&(?!#?\w+;)/,s=/[<>"']|&(?!#?\w+;)/g,l={"&":"&","<":"<",">":">",'"':""","'":"'"},u=function(e){return l[e]},c=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function d(e){return e.replace(c,function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}var h=/(^|[^\[])\^/g,f=/[^\w:]/g,p=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,m={},g=/^[^:]+:\/*[^/]*$/,v=/^([^:]+:)[\s\S]*$/,y=/^([^:]+:\/*[^/]*)[\s\S]*$/;function _(e,t,n){var i=e.length;if(0===i)return"";for(var r=0;r=0&&"\\"===n[r];)i=!i;return i?"|":" |"}).split(/ \|/),i=0;if(n.length>t)n.splice(t);else for(;n.length1?{type:"space",raw:t[0]}:{raw:"\n"}},t.code=function(e,t){var n=this.rules.block.code.exec(e);if(n){var i=t[t.length-1];if(i&&"paragraph"===i.type)return{raw:n[0],text:n[0].trimRight()};var r=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:x(r,"\n")}}},t.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],i=function(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var i=n[1];return t.split("\n").map(function(e){var t=e.match(/^\s+/);return null===t?e:t[0].length>=i.length?e.slice(i.length):e}).join("\n")}(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim():t[2],text:i}}},t.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var n=t[2].trim();if(/#$/.test(n)){var i=x(n,"#");this.options.pedantic?n=i.trim():i&&!/ $/.test(i)||(n=i.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n}}},t.nptable=function(e){var t=this.rules.block.nptable.exec(e);if(t){var n={type:"table",header:S(t[1].replace(/^ *| *\| *$/g,"")),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[],raw:t[0]};if(n.header.length===n.align.length){var i,r=n.align.length;for(i=0;i ?/gm,"");return{type:"blockquote",raw:t[0],text:n}}},t.list=function(e){var t=this.rules.block.list.exec(e);if(t){var n,i,r,a,o,s,l,u,c=t[0],d=t[2],h=d.length>1,f={type:"list",raw:c,ordered:h,start:h?+d.slice(0,-1):"",loose:!1,items:[]},p=t[0].match(this.rules.block.item),m=!1,g=p.length;r=this.rules.block.listItemStart.exec(p[0]);for(var v=0;vr[1].length:a[1].length>r[0].length||a[1].length>3){p.splice(v,2,p[v]+"\n"+p[v+1]),v--,g--;continue}(!this.options.pedantic||this.options.smartLists?a[2][a[2].length-1]!==d[d.length-1]:h===(1===a[2].length))&&(o=p.slice(v+1).join("\n"),f.raw=f.raw.substring(0,f.raw.length-o.length),v=g-1),r=a}i=n.length,~(n=n.replace(/^ *([*+-]|\d+[.)]) ?/,"")).indexOf("\n ")&&(i-=n.length,n=n.replace(this.options.pedantic?/^ {1,4}/gm:new RegExp("^ {1,"+i+"}","gm"),"")),s=m||/\n\n(?!\s*$)/.test(n),v!==g-1&&(m="\n"===n.charAt(n.length-1),s||(s=m)),s&&(f.loose=!0),this.options.gfm&&(u=void 0,(l=/^\[[ xX]\] /.test(n))&&(u=" "!==n[1],n=n.replace(/^\[[ xX]\] +/,""))),f.items.push({type:"list_item",raw:c,task:l,checked:u,loose:s,text:n})}return f}},t.html=function(e){var t=this.rules.block.html.exec(e);if(t)return{type:this.options.sanitize?"paragraph":"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):A(t[0]):t[0]}},t.def=function(e){var t=this.rules.block.def.exec(e);if(t)return t[3]&&(t[3]=t[3].substring(1,t[3].length-1)),{tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}},t.table=function(e){var t=this.rules.block.table.exec(e);if(t){var n={type:"table",header:S(t[1].replace(/^ *| *\| *$/g,"")),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=t[0];var i,r=n.align.length;for(i=0;i/i.test(i[0])&&(t=!1),!n&&/^<(pre|code|kbd|script)(\s|>)/i.test(i[0])?n=!0:n&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(i[0])&&(n=!1),{type:this.options.sanitize?"text":"html",raw:i[0],inLink:t,inRawBlock:n,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):A(i[0]):i[0]}},t.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var n=t[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;var i=x(n.slice(0,-1),"\\");if((n.length-i.length)%2==0)return}else{var r=function(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=e.length,i=0,r=0;r-1){var a=(0===t[0].indexOf("!")?5:4)+t[1].length+r;t[2]=t[2].substring(0,r),t[0]=t[0].substring(0,a).trim(),t[3]=""}}var o=t[2],s="";if(this.options.pedantic){var l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);l&&(o=l[1],s=l[3])}else s=t[3]?t[3].slice(1,-1):"";return o=o.trim(),/^$/.test(n)?o.slice(1):o.slice(1,-1)),O(t,{href:o?o.replace(this.rules.inline._escapes,"$1"):o,title:s?s.replace(this.rules.inline._escapes,"$1"):s},t[0])}},t.reflink=function(e,t){var n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){var i=(n[2]||n[1]).replace(/\s+/g," ");if(!(i=t[i.toLowerCase()])||!i.href){var r=n[0].charAt(0);return{type:"text",raw:r,text:r}}return O(n,i,n[0])}},t.strong=function(e,t,n){void 0===n&&(n="");var i=this.rules.inline.strong.start.exec(e);if(i&&(!i[1]||i[1]&&(""===n||this.rules.inline.punctuation.exec(n)))){t=t.slice(-1*e.length);var r,a="**"===i[0]?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;for(a.lastIndex=0;null!=(i=a.exec(t));)if(r=this.rules.inline.strong.middle.exec(t.slice(0,i.index+3)))return{type:"strong",raw:e.slice(0,r[0].length),text:e.slice(2,r[0].length-2)}}},t.em=function(e,t,n){void 0===n&&(n="");var i=this.rules.inline.em.start.exec(e);if(i&&(!i[1]||i[1]&&(""===n||this.rules.inline.punctuation.exec(n)))){t=t.slice(-1*e.length);var r,a="*"===i[0]?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;for(a.lastIndex=0;null!=(i=a.exec(t));)if(r=this.rules.inline.em.middle.exec(t.slice(0,i.index+2)))return{type:"em",raw:e.slice(0,r[0].length),text:e.slice(1,r[0].length-1)}}},t.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var n=t[2].replace(/\n/g," "),i=/[^ ]/.test(n),r=/^ /.test(n)&&/ $/.test(n);return i&&r&&(n=n.substring(1,n.length-1)),n=A(n,!0),{type:"codespan",raw:t[0],text:n}}},t.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},t.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2]}},t.autolink=function(e,t){var n,i,r=this.rules.inline.autolink.exec(e);if(r)return i="@"===r[2]?"mailto:"+(n=A(this.options.mangle?t(r[1]):r[1])):n=A(r[1]),{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}},t.url=function(e,t){var n;if(n=this.rules.inline.url.exec(e)){var i,r;if("@"===n[2])r="mailto:"+(i=A(this.options.mangle?t(n[0]):n[0]));else{var a;do{a=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(a!==n[0]);i=A(n[0]),r="www."===n[1]?"http://"+i:i}return{type:"link",raw:n[0],text:i,href:r,tokens:[{type:"text",raw:i,text:i}]}}},t.inlineText=function(e,t,n){var i,r=this.rules.inline.text.exec(e);if(r)return i=t?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):A(r[0]):r[0]:A(this.options.smartypants?n(r[0]):r[0]),{type:"text",raw:r[0],text:i}},e}(),T={exec:function(){}},P=function(e,t){e=e.source||e,t=t||"";var n={replace:function(t,i){return i=(i=i.source||i).replace(h,"$1"),e=e.replace(t,i),n},getRegex:function(){return new RegExp(e,t)}};return n},D=w,M={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?! {0,3}bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:T,table:T,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};M.def=P(M.def).replace("label",M._label).replace("title",M._title).getRegex(),M.bullet=/(?:[*+-]|\d{1,9}[.)])/,M.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,M.item=P(M.item,"gm").replace(/bull/g,M.bullet).getRegex(),M.listItemStart=P(/^( *)(bull)/).replace("bull",M.bullet).getRegex(),M.list=P(M.list).replace(/bull/g,M.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+M.def.source+")").getRegex(),M._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",M._comment=/|$)/,M.html=P(M.html,"i").replace("comment",M._comment).replace("tag",M._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),M.paragraph=P(M._paragraph).replace("hr",M.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",M._tag).getRegex(),M.blockquote=P(M.blockquote).replace("paragraph",M.paragraph).getRegex(),M.normal=D({},M),M.gfm=D({},M.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n {0,3}([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n {0,3}\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),M.gfm.nptable=P(M.gfm.nptable).replace("hr",M.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",M._tag).getRegex(),M.gfm.table=P(M.gfm.table).replace("hr",M.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",M._tag).getRegex(),M.pedantic=D({},M.normal,{html:P("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",M._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:T,paragraph:P(M.normal._paragraph).replace("hr",M.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",M.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var I={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:T,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation_\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation*\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation_\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation*\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:T,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~"};I.punctuation=P(I.punctuation).replace(/punctuation/g,I._punctuation).getRegex(),I._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",I._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",I._comment=P(M._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),I.em.start=P(I.em.start).replace(/punctuation/g,I._punctuation).getRegex(),I.em.middle=P(I.em.middle).replace(/punctuation/g,I._punctuation).replace(/overlapSkip/g,I._overlapSkip).getRegex(),I.em.endAst=P(I.em.endAst,"g").replace(/punctuation/g,I._punctuation).getRegex(),I.em.endUnd=P(I.em.endUnd,"g").replace(/punctuation/g,I._punctuation).getRegex(),I.strong.start=P(I.strong.start).replace(/punctuation/g,I._punctuation).getRegex(),I.strong.middle=P(I.strong.middle).replace(/punctuation/g,I._punctuation).replace(/overlapSkip/g,I._overlapSkip).getRegex(),I.strong.endAst=P(I.strong.endAst,"g").replace(/punctuation/g,I._punctuation).getRegex(),I.strong.endUnd=P(I.strong.endUnd,"g").replace(/punctuation/g,I._punctuation).getRegex(),I.blockSkip=P(I._blockSkip,"g").getRegex(),I.overlapSkip=P(I._overlapSkip,"g").getRegex(),I._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,I._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,I._email=/[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])?)+(?![-_])/,I.autolink=P(I.autolink).replace("scheme",I._scheme).replace("email",I._email).getRegex(),I._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,I.tag=P(I.tag).replace("comment",I._comment).replace("attribute",I._attribute).getRegex(),I._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,I._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,I._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,I.link=P(I.link).replace("label",I._label).replace("href",I._href).replace("title",I._title).getRegex(),I.reflink=P(I.reflink).replace("label",I._label).getRegex(),I.reflinkSearch=P(I.reflinkSearch,"g").replace("reflink",I.reflink).replace("nolink",I.nolink).getRegex(),I.normal=D({},I),I.pedantic=D({},I.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:P(/^!?\[(label)\]\((.*?)\)/).replace("label",I._label).getRegex(),reflink:P(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",I._label).getRegex()}),I.gfm=D({},I.normal,{escape:P(I.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\1;)1&t&&(n+=e),t>>=1,e+=e;return n+e};function B(e){return e.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026")}function H(e){var t,n,i="",r=e.length;for(t=0;t.5&&(n="x"+n.toString(16)),i+="&#"+n+";";return i}var z=function(){function t(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||L,this.options.tokenizer=this.options.tokenizer||new E,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var t={block:F.normal,inline:N.normal};this.options.pedantic?(t.block=F.pedantic,t.inline=N.pedantic):this.options.gfm&&(t.block=F.gfm,t.inline=this.options.breaks?N.breaks:N.gfm),this.tokenizer.rules=t}t.lex=function(e,n){return new t(n).lex(e)},t.lexInline=function(e,n){return new t(n).inlineTokens(e)};var n,i,r=t.prototype;return r.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens,!0),this.inline(this.tokens),this.tokens},r.blockTokens=function(e,t,n){var i,r,a,o;for(void 0===t&&(t=[]),void 0===n&&(n=!0),this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(i=this.tokenizer.space(e))e=e.substring(i.raw.length),i.type&&t.push(i);else if(i=this.tokenizer.code(e,t))e=e.substring(i.raw.length),i.type?t.push(i):((o=t[t.length-1]).raw+="\n"+i.raw,o.text+="\n"+i.text);else if(i=this.tokenizer.fences(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.heading(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.nptable(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.hr(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.blockquote(e))e=e.substring(i.raw.length),i.tokens=this.blockTokens(i.text,[],n),t.push(i);else if(i=this.tokenizer.list(e)){for(e=e.substring(i.raw.length),a=i.items.length,r=0;r0)for(;null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(l));)u.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,a.index)+"["+V("a",a[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(a=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,a.index)+"["+V("a",a[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;e;)if(o||(s=""),o=!1,r=this.tokenizer.escape(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.tag(e,n,i))e=e.substring(r.raw.length),n=r.inLink,i=r.inRawBlock,t.push(r);else if(r=this.tokenizer.link(e))e=e.substring(r.raw.length),"link"===r.type&&(r.tokens=this.inlineTokens(r.text,[],!0,i)),t.push(r);else if(r=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(r.raw.length),"link"===r.type&&(r.tokens=this.inlineTokens(r.text,[],!0,i)),t.push(r);else if(r=this.tokenizer.strong(e,l,s))e=e.substring(r.raw.length),r.tokens=this.inlineTokens(r.text,[],n,i),t.push(r);else if(r=this.tokenizer.em(e,l,s))e=e.substring(r.raw.length),r.tokens=this.inlineTokens(r.text,[],n,i),t.push(r);else if(r=this.tokenizer.codespan(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.br(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.del(e))e=e.substring(r.raw.length),r.tokens=this.inlineTokens(r.text,[],n,i),t.push(r);else if(r=this.tokenizer.autolink(e,H))e=e.substring(r.raw.length),t.push(r);else if(n||!(r=this.tokenizer.url(e,H))){if(r=this.tokenizer.inlineText(e,i,B))e=e.substring(r.raw.length),s=r.raw.slice(-1),o=!0,t.push(r);else if(e){var c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}throw new Error(c)}}else e=e.substring(r.raw.length),t.push(r);return t},n=t,(i=[{key:"rules",get:function(){return{block:F,inline:N}}}])&&e(n,i),t}(),G=i.defaults,j=function(e,t,n){if(e){var i;try{i=decodeURIComponent(d(n)).replace(f,"").toLowerCase()}catch(r){return null}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return null}t&&!p.test(n)&&(n=function(e,t){m[" "+e]||(m[" "+e]=g.test(e)?e+"/":_(e,"/",!0));var n=-1===(e=m[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(v,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(y,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(r){return null}return n},U=b,W=function(){function e(e){this.options=e||G}var t=e.prototype;return t.code=function(e,t,n){var i=(t||"").match(/\S*/)[0];if(this.options.highlight){var r=this.options.highlight(e,i);null!=r&&r!==e&&(n=!0,e=r)}return e=e.replace(/\n$/,"")+"\n",i?'
    '+(n?e:U(e,!0))+"
    \n":"
    "+(n?e:U(e,!0))+"
    \n"},t.blockquote=function(e){return"
    \n"+e+"
    \n"},t.html=function(e){return e},t.heading=function(e,t,n,i){return this.options.headerIds?"'+e+"\n":""+e+"\n"},t.hr=function(){return this.options.xhtml?"
    \n":"
    \n"},t.list=function(e,t,n){var i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"},t.listitem=function(e){return"
  • "+e+"
  • \n"},t.checkbox=function(e){return" "},t.paragraph=function(e){return"

    "+e+"

    \n"},t.table=function(e,t){return t&&(t=""+t+""),"\n\n"+e+"\n"+t+"
    \n"},t.tablerow=function(e){return"\n"+e+"\n"},t.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"\n"},t.strong=function(e){return""+e+""},t.em=function(e){return""+e+""},t.codespan=function(e){return""+e+""},t.br=function(){return this.options.xhtml?"
    ":"
    "},t.del=function(e){return""+e+""},t.link=function(e,t,n){if(null===(e=j(this.options.sanitize,this.options.baseUrl,e)))return n;var i='"+n+""},t.image=function(e,t,n){if(null===(e=j(this.options.sanitize,this.options.baseUrl,e)))return n;var i=''+n+'":">")},t.text=function(e){return e},e}(),q=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,n){return""+n},t.image=function(e,t,n){return""+n},t.br=function(){return""},e}(),Y=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var n=e,i=0;if(this.seen.hasOwnProperty(n)){i=this.seen[e];do{n=e+"-"+ ++i}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=i,this.seen[n]=0),n},t.slug=function(e,t){void 0===t&&(t={});var n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)},e}(),Q=i.defaults,X=k,$=function(){function e(e){this.options=e||Q,this.options.renderer=this.options.renderer||new W,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new q,this.slugger=new Y}e.parse=function(t,n){return new e(n).parse(t)},e.parseInline=function(t,n){return new e(n).parseInline(t)};var t=e.prototype;return t.parse=function(e,t){void 0===t&&(t=!0);var n,i,r,a,o,s,l,u,c,d,h,f,p,m,g,v,y,_,b="",k=e.length;for(n=0;n0&&"text"===g.tokens[0].type?(g.tokens[0].text=_+" "+g.tokens[0].text,g.tokens[0].tokens&&g.tokens[0].tokens.length>0&&"text"===g.tokens[0].tokens[0].type&&(g.tokens[0].tokens[0].text=_+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:_}):m+=_),m+=this.parse(g.tokens,p),c+=this.renderer.listitem(m,y,v);b+=this.renderer.list(c,h,f);continue;case"html":b+=this.renderer.html(d.text);continue;case"paragraph":b+=this.renderer.paragraph(this.parseInline(d.tokens));continue;case"text":for(c=d.tokens?this.parseInline(d.tokens):d.text;n+1An error occurred:

    "+J(l.message+"",!0)+"
    ";throw l}}return ie.options=ie.setOptions=function(e){return K(ie.defaults,e),te(ie.defaults),ie},ie.getDefaults=ee,ie.defaults=ne,ie.use=function(e){var t=K({},e);if(e.renderer&&function(){var n=ie.defaults.renderer||new W,i=function(t){var i=n[t];n[t]=function(){for(var r=arguments.length,a=new Array(r),o=0;oAn error occurred:

    "+J(i.message+"",!0)+"
    ";throw i}},ie.Parser=$,ie.parser=$.parse,ie.Renderer=W,ie.TextRenderer=q,ie.Lexer=z,ie.lexer=z.lex,ie.Tokenizer=E,ie.Slugger=Y,ie.parse=ie,ie}()},Fqnj:function(e,t,n){"use strict";function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);nMath.PI&&(n=n>0?-1*(2*Math.PI-n):2*Math.PI+n),((0,o.default)(Math.atan2(n,s))+360)%360}},Nrgg:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n("wI44"))&&i.__esModule?i:{default:i};t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.default,i=n(e,t),a=Number(t.time)-Number(e.time),o=i/a*1e3;return o}},OTo6:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n("JKJh"))&&i.__esModule?i:{default:i};t.default=function(e){var t=(0,r.default)(e),n=t.minLng+(t.maxLng-t.minLng)/2;return{latitude:parseFloat((t.minLat+(t.maxLat-t.minLat)/2).toFixed(6)),longitude:parseFloat(n.toFixed(6))}}},"QTq/":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("jH9d"),r=o(n("M7lk")),a=o(n("KcL1"));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){var n=(0,r.default)(e,i.longitudeKeys);if(null!=n){var o=e[n];return!0===t?o:(0,a.default)(o)}}},"SJ/V":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n("wI44"))&&i.__esModule?i:{default:i};t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.default;return n="function"==typeof n?n:r.default,t.slice().sort(function(t,i){return n(e,t)-n(e,i)})}},ZPc1:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n("SJ/V"))&&i.__esModule?i:{default:i};t.default=function(e,t){return(0,r.default)(e,t)[0]}},Zdlu:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){var t=e.toString().trim();return!isNaN(parseFloat(t))&&parseFloat(t)===Number(t)}},"c+JA":function(e,t){function n(e,t,i){this.extend(n,google.maps.OverlayView),this.map_=e,this.markers_=[],this.clusters_=[],this.sizes=[53,56,66,78,90],this.styles_=[],this.ready_=!1;var r=i||{};this.gridSize_=r.gridSize||60,this.minClusterSize_=r.minimumClusterSize||2,this.maxZoom_=r.maxZoom||null,this.styles_=r.styles||[],this.imagePath_=r.imagePath||this.MARKER_CLUSTER_IMAGE_PATH_,this.imageExtension_=r.imageExtension||this.MARKER_CLUSTER_IMAGE_EXTENSION_,this.zoomOnClick_=!0,null!=r.zoomOnClick&&(this.zoomOnClick_=r.zoomOnClick),this.averageCenter_=!1,null!=r.averageCenter&&(this.averageCenter_=r.averageCenter),this.setupStyles_(),this.setMap(e),this.prevZoom_=this.map_.getZoom();var a=this;google.maps.event.addListener(this.map_,"zoom_changed",function(){var e=a.map_.getZoom();a.prevZoom_!=e&&(a.prevZoom_=e,a.resetViewport())}),google.maps.event.addListener(this.map_,"idle",function(){a.redraw()}),t&&t.length&&this.addMarkers(t,!1)}function i(e){this.markerClusterer_=e,this.map_=e.getMap(),this.gridSize_=e.getGridSize(),this.minClusterSize_=e.getMinClusterSize(),this.averageCenter_=e.isAverageCenter(),this.center_=null,this.markers_=[],this.bounds_=null,this.clusterIcon_=new r(this,e.getStyles(),e.getGridSize())}function r(e,t,n){e.getMarkerClusterer().extend(r,google.maps.OverlayView),this.styles_=t,this.padding_=n||0,this.cluster_=e,this.center_=null,this.map_=e.getMap(),this.div_=null,this.sums_=null,this.visible_=!1,this.setMap(this.map_)}n.prototype.MARKER_CLUSTER_IMAGE_PATH_="http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/images/m",n.prototype.MARKER_CLUSTER_IMAGE_EXTENSION_="png",n.prototype.extend=function(e,t){return(function(e){for(var t in e.prototype)this.prototype[t]=e.prototype[t];return this}).apply(e,[t])},n.prototype.onAdd=function(){this.setReady_(!0)},n.prototype.draw=function(){},n.prototype.setupStyles_=function(){if(!this.styles_.length)for(var e,t=0;e=this.sizes[t];t++)this.styles_.push({url:this.imagePath_+(t+1)+"."+this.imageExtension_,height:e,width:e})},n.prototype.fitMapToMarkers=function(){for(var e,t=this.getMarkers(),n=new google.maps.LatLngBounds,i=0;e=t[i];i++)n.extend(e.getPosition());this.map_.fitBounds(n)},n.prototype.setStyles=function(e){this.styles_=e},n.prototype.getStyles=function(){return this.styles_},n.prototype.isZoomOnClick=function(){return this.zoomOnClick_},n.prototype.isAverageCenter=function(){return this.averageCenter_},n.prototype.getMarkers=function(){return this.markers_},n.prototype.getTotalMarkers=function(){return this.markers_.length},n.prototype.setMaxZoom=function(e){this.maxZoom_=e},n.prototype.getMaxZoom=function(){return this.maxZoom_},n.prototype.calculator_=function(e,t){for(var n=0,i=e.length,r=i;0!==r;)r=parseInt(r/10,10),n++;return{text:i,index:n=Math.min(n,t)}},n.prototype.setCalculator=function(e){this.calculator_=e},n.prototype.getCalculator=function(){return this.calculator_},n.prototype.addMarkers=function(e,t){for(var n,i=0;n=e[i];i++)this.pushMarkerTo_(n);t||this.redraw()},n.prototype.pushMarkerTo_=function(e){if(e.isAdded=!1,e.draggable){var t=this;google.maps.event.addListener(e,"dragend",function(){e.isAdded=!1,t.repaint()})}this.markers_.push(e)},n.prototype.addMarker=function(e,t){this.pushMarkerTo_(e),t||this.redraw()},n.prototype.removeMarker_=function(e){var t=-1;if(this.markers_.indexOf)t=this.markers_.indexOf(e);else for(var n,i=0;n=this.markers_[i];i++)if(n==e){t=i;break}return-1!=t&&(e.setMap(null),this.markers_.splice(t,1),!0)},n.prototype.removeMarker=function(e,t){var n=this.removeMarker_(e);return!(t||!n||(this.resetViewport(),this.redraw(),0))},n.prototype.removeMarkers=function(e,t){for(var n,i=!1,r=0;n=e[r];r++){var a=this.removeMarker_(n);i=i||a}if(!t&&i)return this.resetViewport(),this.redraw(),!0},n.prototype.setReady_=function(e){this.ready_||(this.ready_=e,this.createClusters_())},n.prototype.getTotalClusters=function(){return this.clusters_.length},n.prototype.getMap=function(){return this.map_},n.prototype.setMap=function(e){this.map_=e},n.prototype.getGridSize=function(){return this.gridSize_},n.prototype.setGridSize=function(e){this.gridSize_=e},n.prototype.getMinClusterSize=function(){return this.minClusterSize_},n.prototype.setMinClusterSize=function(e){this.minClusterSize_=e},n.prototype.getExtendedBounds=function(e){var t=this.getProjection(),n=new google.maps.LatLng(e.getNorthEast().lat(),e.getNorthEast().lng()),i=new google.maps.LatLng(e.getSouthWest().lat(),e.getSouthWest().lng()),r=t.fromLatLngToDivPixel(n);r.x+=this.gridSize_,r.y-=this.gridSize_;var a=t.fromLatLngToDivPixel(i);a.x-=this.gridSize_,a.y+=this.gridSize_;var o=t.fromDivPixelToLatLng(r),s=t.fromDivPixelToLatLng(a);return e.extend(o),e.extend(s),e},n.prototype.isMarkerInBounds_=function(e,t){return t.contains(e.getPosition())},n.prototype.clearMarkers=function(){this.resetViewport(!0),this.markers_=[]},n.prototype.resetViewport=function(e){for(var t,n=0;t=this.clusters_[n];n++)t.remove();var i;for(n=0;i=this.markers_[n];n++)i.isAdded=!1,e&&i.setMap(null);this.clusters_=[]},n.prototype.repaint=function(){var e=this.clusters_.slice();this.clusters_.length=0,this.resetViewport(),this.redraw(),window.setTimeout(function(){for(var t,n=0;t=e[n];n++)t.remove()},0)},n.prototype.redraw=function(){this.createClusters_()},n.prototype.distanceBetweenPoints_=function(e,t){if(!e||!t)return 0;var n=(t.lat()-e.lat())*Math.PI/180,i=(t.lng()-e.lng())*Math.PI/180,r=Math.sin(n/2)*Math.sin(n/2)+Math.cos(e.lat()*Math.PI/180)*Math.cos(t.lat()*Math.PI/180)*Math.sin(i/2)*Math.sin(i/2);return 2*Math.atan2(Math.sqrt(r),Math.sqrt(1-r))*6371},n.prototype.addToClosestCluster_=function(e){for(var t,n=4e4,r=null,a=(e.getPosition(),0);t=this.clusters_[a];a++){var o=t.getCenter();if(o){var s=this.distanceBetweenPoints_(o,e.getPosition());s=this.minClusterSize_&&e.setMap(null),this.updateIcon(),!0},i.prototype.getMarkerClusterer=function(){return this.markerClusterer_},i.prototype.getBounds=function(){for(var e,t=new google.maps.LatLngBounds(this.center_,this.center_),n=this.getMarkers(),i=0;e=n[i];i++)t.extend(e.getPosition());return t},i.prototype.remove=function(){this.clusterIcon_.remove(),this.markers_.length=0,delete this.markers_},i.prototype.getSize=function(){return this.markers_.length},i.prototype.getMarkers=function(){return this.markers_},i.prototype.getCenter=function(){return this.center_},i.prototype.calculateBounds_=function(){var e=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(e)},i.prototype.isMarkerInClusterBounds=function(e){return this.bounds_.contains(e.getPosition())},i.prototype.getMap=function(){return this.map_},i.prototype.updateIcon=function(){var e=this.map_.getZoom(),t=this.markerClusterer_.getMaxZoom();if(t&&e>t)for(var n,i=0;n=this.markers_[i];i++)n.setMap(this.map_);else if(this.markers_.length0&&this.anchor_[0]0&&this.anchor_[1]1&&void 0!==arguments[1]?arguments[1]:{longitude:r.longitudeKeys,latitude:r.latitudeKeys,altitude:r.altitudeKeys},n=(0,a.default)(e,t.longitude),i=(0,a.default)(e,t.latitude),o=(0,a.default)(e,t.altitude);return s({latitude:i,longitude:n},o?{altitude:o}:{})}},fCuW:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n("wI44"))&&i.__esModule?i:{default:i};t.default=function(e,t,n){return(0,r.default)(t,e)+(0,r.default)(e,n)===(0,r.default)(t,n)}},fxgB:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=l(n("2o5z")),r=l(n("QTq/")),a=l(n("jDUc")),o=l(n("6D9Q")),s=n("jH9d");function l(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){var n,l,u=(0,i.default)(e),c=(0,r.default)(e),d=(0,a.default)(u),h=(0,a.default)(c),f=t/s.earthRadius,p=d-f,m=d+f,g=(0,a.default)(s.MAXLAT),v=(0,a.default)(s.MINLAT),y=(0,a.default)(s.MAXLON),_=(0,a.default)(s.MINLON);if(p>v&&my&&(l-=2*Math.PI)}else p=Math.max(p,v),m=Math.min(m,g),n=_,l=y;return[{latitude:(0,o.default)(p),longitude:(0,o.default)(n)},{latitude:(0,o.default)(m),longitude:(0,o.default)(l)}]}},i8yS:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n("2o5z")),r=s(n("QTq/")),a=s(n("jDUc")),o=s(n("6D9Q"));function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){if(!1===Array.isArray(e)||0===e.length)return!1;var t=e.length,n=e.reduce(function(e,t){var n=(0,a.default)((0,i.default)(t)),o=(0,a.default)((0,r.default)(t));return{X:e.X+Math.cos(n)*Math.cos(o),Y:e.Y+Math.cos(n)*Math.sin(o),Z:e.Z+Math.sin(n)}},{X:0,Y:0,Z:0}),s=n.X/t,l=n.Y/t,u=n.Z/t;return{longitude:(0,o.default)(Math.atan2(l,s)),latitude:(0,o.default)(Math.atan2(u,Math.sqrt(s*s+l*l)))}}},jDUc:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){return e*Math.PI/180}},jH9d:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.areaConversion=t.timeConversion=t.distanceConversion=t.altitudeKeys=t.latitudeKeys=t.longitudeKeys=t.MAXLON=t.MINLON=t.MAXLAT=t.MINLAT=t.earthRadius=t.sexagesimalPattern=void 0,t.sexagesimalPattern=/^([0-9]{1,3})\xb0\s*([0-9]{1,3}(?:\.(?:[0-9]{1,}))?)['\u2032]\s*(([0-9]{1,3}(\.([0-9]{1,}))?)["\u2033]\s*)?([NEOSW]?)$/,t.earthRadius=6378137,t.MINLAT=-90,t.MAXLAT=90,t.MINLON=-180,t.MAXLON=180,t.longitudeKeys=["lng","lon","longitude",0],t.latitudeKeys=["lat","latitude",1],t.altitudeKeys=["alt","altitude","elevation","elev",2],t.distanceConversion={m:1,km:.001,cm:100,mm:1e3,mi:1/1609.344,sm:1/1852.216,ft:100/30.48,in:100/2.54,yd:1/.9144},t.timeConversion={m:60,h:3600,d:86400};var i={m2:1,km2:1e-6,ha:1e-4,a:.01,ft2:10.763911,yd2:1.19599,in2:1550.0031};t.areaConversion=i,i.sqm=i.m2,i.sqkm=i.km2,i.sqft=i.ft2,i.sqyd=i.yd2,i.sqin=i.in2},jIQF:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={computeDestinationPoint:!0,convertArea:!0,convertDistance:!0,convertSpeed:!0,decimalToSexagesimal:!0,findNearest:!0,getAreaOfPolygon:!0,getBounds:!0,getBoundsOfDistance:!0,getCenter:!0,getCenterOfBounds:!0,getCompassDirection:!0,getCoordinateKey:!0,getCoordinateKeys:!0,getDistance:!0,getDistanceFromLine:!0,getGreatCircleBearing:!0,getLatitude:!0,getLongitude:!0,getPathLength:!0,getPreciseDistance:!0,getRhumbLineBearing:!0,getRoughCompassDirection:!0,getSpeed:!0,isDecimal:!0,isPointInLine:!0,isPointInPolygon:!0,isPointNearLine:!0,isPointWithinRadius:!0,isSexagesimal:!0,isValidCoordinate:!0,isValidLatitude:!0,isValidLongitude:!0,orderByDistance:!0,sexagesimalToDecimal:!0,toDecimal:!0,toRad:!0,toDeg:!0,wktToPolygon:!0};Object.defineProperty(t,"computeDestinationPoint",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"convertArea",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"convertDistance",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"convertSpeed",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"decimalToSexagesimal",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"findNearest",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"getAreaOfPolygon",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"getBounds",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"getBoundsOfDistance",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"getCenter",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"getCenterOfBounds",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"getCompassDirection",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"getCoordinateKey",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"getCoordinateKeys",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"getDistance",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"getDistanceFromLine",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"getGreatCircleBearing",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"getLatitude",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(t,"getLongitude",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"getPathLength",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(t,"getPreciseDistance",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"getRhumbLineBearing",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"getRoughCompassDirection",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(t,"getSpeed",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(t,"isDecimal",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(t,"isPointInLine",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(t,"isPointInPolygon",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(t,"isPointNearLine",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(t,"isPointWithinRadius",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(t,"isSexagesimal",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(t,"isValidCoordinate",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(t,"isValidLatitude",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(t,"isValidLongitude",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(t,"orderByDistance",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(t,"sexagesimalToDecimal",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(t,"toDecimal",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(t,"toRad",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(t,"toDeg",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(t,"wktToPolygon",{enumerable:!0,get:function(){return G.default}});var r=U(n("95co")),a=U(n("5kFF")),o=U(n("3Q5m")),s=U(n("9Og4")),l=U(n("Fqnj")),u=U(n("ZPc1")),c=U(n("t3RW")),d=U(n("JKJh")),h=U(n("fxgB")),f=U(n("i8yS")),p=U(n("OTo6")),m=U(n("mpC8")),g=U(n("M7lk")),v=U(n("eRSq")),y=U(n("wI44")),_=U(n("45h8")),b=U(n("+eSx")),k=U(n("2o5z")),w=U(n("QTq/")),C=U(n("m5sM")),x=U(n("mbFH")),S=U(n("NBE3")),A=U(n("z+Es")),O=U(n("Nrgg")),E=U(n("Zdlu")),T=U(n("fCuW")),P=U(n("HkEB")),D=U(n("G31G")),M=U(n("5vw/")),I=U(n("dkTa")),R=U(n("vONA")),L=U(n("sCiF")),F=U(n("mSAH")),N=U(n("SJ/V")),V=U(n("rT3r")),B=U(n("KcL1")),H=U(n("jDUc")),z=U(n("6D9Q")),G=U(n("5hfJ")),j=n("jH9d");function U(e){return e&&e.__esModule?e:{default:e}}Object.keys(j).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return j[e]}}))})},m5sM:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n("wI44"))&&i.__esModule?i:{default:i};function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.default;return e.reduce(function(e,n){return"object"===a(e)&&null!==e.last&&(e.distance+=t(n,e.last)),e.last=n,e},{last:null,distance:0}).distance}},mSAH:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n("Zdlu")),r=s(n("dkTa")),a=s(n("rT3r")),o=n("jH9d");function s(e){return e&&e.__esModule?e:{default:e}}t.default=function e(t){return(0,i.default)(t)?!(parseFloat(t)>o.MAXLON||t2&&void 0!==arguments[2]?arguments[2]:1;n=void 0===n||isNaN(n)?1:n;var s,l,u,c,d,h,f,p=(0,i.default)(e),m=(0,r.default)(e),g=(0,i.default)(t),v=(0,r.default)(t),y=6356752.314245,_=1/298.257223563,b=(0,a.default)(v-m),k=Math.atan((1-_)*Math.tan((0,a.default)(parseFloat(p)))),w=Math.atan((1-_)*Math.tan((0,a.default)(parseFloat(g)))),C=Math.sin(k),x=Math.cos(k),S=Math.sin(w),A=Math.cos(w),O=b,E=100;do{var T=Math.sin(O),P=Math.cos(O);if(0===(h=Math.sqrt(A*T*(A*T)+(x*S-C*A*P)*(x*S-C*A*P))))return 0;s=C*S+x*A*P,l=Math.atan2(h,s),d=s-2*C*S/(c=1-(u=x*A*T/h)*u),isNaN(d)&&(d=0);var D=_/16*c*(4+_*(4-3*c));f=O,O=b+(1-D)*_*u*(l+D*h*(d+D*s*(2*d*d-1)))}while(Math.abs(O-f)>1e-12&&--E>0);if(0===E)return NaN;var M=c*(o.earthRadius*o.earthRadius-y*y)/(y*y),I=1+M/16384*(4096+M*(M*(320-175*M)-768)),R=M/1024*(256+M*(M*(74-47*M)-128)),L=R*h*(d+R/4*(s*(2*d*d-1)-R/6*d*(4*h*h-3)*(4*d*d-3))),F=y*I*(l-L);return Math.round(F/n)*n}},"me/f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){return e>1?1:e<-1?-1:e}},mpC8:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n("NBE3"))&&i.__esModule?i:{default:i};t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.default,i="function"==typeof n?n(e,t):(0,r.default)(e,t);if(isNaN(i))throw new Error("Could not calculate bearing for given points. Check your bearing function");switch(Math.round(i/22.5)){case 1:return"NNE";case 2:return"NE";case 3:return"ENE";case 4:return"E";case 5:return"ESE";case 6:return"SE";case 7:return"SSE";case 8:return"S";case 9:return"SSW";case 10:return"SW";case 11:return"WSW";case 12:return"W";case 13:return"WNW";case 14:return"NW";case 15:return"NNW";default:return"N"}}},rT3r:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("jH9d");t.default=function(e){var t=new RegExp(i.sexagesimalPattern).exec(e);if(null==t)throw new Error("Given value is not in sexagesimal format");var n=Number(t[2])/60||0,r=Number(t[4])/3600||0,a=parseFloat(t[1])+n+r;return["S","W"].includes(t[7])?-a:a}},sCiF:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n("Zdlu")),r=s(n("dkTa")),a=s(n("rT3r")),o=n("jH9d");function s(e){return e&&e.__esModule?e:{default:e}}t.default=function e(t){return(0,i.default)(t)?!(parseFloat(t)>o.MAXLAT||t2){for(var n,s,l,u=0;u=2)return(0,a.default)(e[0])&&(0,r.default)(e[1]);if(void 0===n||void 0===o)return!1;var s=e[o],l=e[n];return void 0!==l&&void 0!==s&&!1!==(0,r.default)(l)&&!1!==(0,a.default)(s)}},wI44:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=l(n("2o5z")),r=l(n("QTq/")),a=l(n("jDUc")),o=l(n("me/f")),s=n("jH9d");function l(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;n=void 0===n||isNaN(n)?1:n;var l=(0,i.default)(e),u=(0,r.default)(e),c=(0,i.default)(t),d=(0,r.default)(t),h=Math.acos((0,o.default)(Math.sin((0,a.default)(c))*Math.sin((0,a.default)(l))+Math.cos((0,a.default)(c))*Math.cos((0,a.default)(l))*Math.cos((0,a.default)(u)-(0,a.default)(d))))*s.earthRadius;return Math.round(h/n)*n}},"z+Es":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){return/^NNE|NE|NNW|N$/.test(e)?"N":/^ENE|E|ESE|SE$/.test(e)?"E":/^SSE|S|SSW|SW$/.test(e)?"S":/^WSW|W|WNW|NW$/.test(e)?"W":void 0}},zUnb:function(i,r,o){"use strict";function l(e){return"function"==typeof e}o.r(r);var u=!1,p={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){var t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else u&&console.log("RxJS: Back to a better error behavior. Thank you. <3");u=e},get useDeprecatedSynchronousErrorHandling(){return u}};function y(e){setTimeout(function(){throw e},0)}var k={closed:!0,next:function(e){},error:function(e){if(p.useDeprecatedSynchronousErrorHandling)throw e;y(e)},complete:function(){}},C=Array.isArray||function(e){return e&&"number"==typeof e.length};function x(e){return null!==e&&"object"==typeof e}var S,A=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}(),O=((S=function(){function e(t){b(this,e),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return w(e,[{key:"unsubscribe",value:function(){var t;if(!this.closed){var n=this._parentOrParents,i=this._ctorUnsubscribe,r=this._unsubscribe,a=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(var o=0;o2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(i){return i.pipe(ae(function(n,i){return te(e(n,i)).pipe(q(function(e,r){return t(n,e,i,r)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new oe(e,n))})}var oe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;b(this,e),this.project=t,this.concurrent=n}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new se(e,this.project,this.concurrent))}}]),e}(),se=function(e){f(n,e);var t=m(n);function n(e,i){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return b(this,n),(r=t.call(this,e)).project=i,r.concurrent=a,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return w(n,[{key:"_next",value:function(e){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(ie),le=ae;function ue(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return ae(I,e)}function ce(e,t){return t?ee(e,t):new N(X(e))}function de(){for(var e=arguments.length,t=new Array(e),n=0;n1&&"number"==typeof t[t.length-1]&&(i=t.pop())):"number"==typeof a&&(i=t.pop()),null===r&&1===t.length&&t[0]instanceof N?t[0]:ue(i)(ce(t,r))}function he(){return function(e){return e.lift(new pe(e))}}var fe,pe=function(){function e(t){b(this,e),this.connectable=t}return w(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var i=new me(e,n),r=t.subscribe(i);return i.closed||(i.connection=n.connect()),r}}]),e}(),me=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this,e)).connectable=i,r}return w(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null}}]),n}(P),ge=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this)).source=e,r.subjectFactory=i,r._refCount=0,r._isComplete=!1,r}return w(n,[{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 O).add(this.source.subscribe(new ye(this.getSubject(),this))),e.closed&&(this._connection=null,e=O.EMPTY)),e}},{key:"refCount",value:function(){return he()(this)}}]),n}(N),ve={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(fe=ge.prototype)._subscribe},_isComplete:{value:fe._isComplete,writable:!0},getSubject:{value:fe.getSubject},connect:{value:fe.connect},refCount:{value:fe.refCount}},ye=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this,e)).connectable=i,r}return w(n,[{key:"_error",value:function(e){this._unsubscribe(),h(_(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),h(_(n.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()}}}]),n}(G);function _e(e,t){return function(n){var i;if(i="function"==typeof e?e:function(){return e},"function"==typeof t)return n.lift(new be(i,t));var r=Object.create(n,ve);return r.source=n,r.subjectFactory=i,r}}var be=function(){function e(t,n){b(this,e),this.subjectFactory=t,this.selector=n}return w(e,[{key:"call",value:function(e,t){var n=this.selector,i=this.subjectFactory(),r=n(i).subscribe(e);return r.add(t.subscribe(i)),r}}]),e}();function ke(){return new j}function we(){return function(e){return he()(_e(ke)(e))}}function Ce(e){for(var t in e)if(e[t]===Ce)return t;throw Error("Could not find renamed property on target object.")}function xe(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Se(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Se).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return"".concat(e.overriddenName);if(e.name)return"".concat(e.name);var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Ae(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var Oe=Ce({__forward_ref__:Ce});function Ee(e){return e.__forward_ref__=Ee,e.toString=function(){return Se(this())},e}function Te(e){return Pe(e)?e():e}function Pe(e){return"function"==typeof e&&e.hasOwnProperty(Oe)&&e.__forward_ref__===Ee}var De=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this,function(e,t){return"".concat(e?"NG0".concat(e,": "):"").concat(t)}(e,i))).code=e,r}return n}(c(Error));function Me(e){return"string"==typeof e?e:null==e?"":String(e)}function Ie(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Me(e)}function Re(e,t){var n=t?" in ".concat(t):"";throw new De("201","No provider for ".concat(Ie(e)," found").concat(n))}function Le(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}var Fe=Le;function Ne(e){return{providers:e.providers||[],imports:e.imports||[]}}function Ve(e){return Be(e,Ge)||Be(e,Ue)}function Be(e,t){return e.hasOwnProperty(t)?e[t]:null}function He(e){return e&&(e.hasOwnProperty(je)||e.hasOwnProperty(We))?e[je]:null}var ze,Ge=Ce({"\u0275prov":Ce}),je=Ce({"\u0275inj":Ce}),Ue=Ce({ngInjectableDef:Ce}),We=Ce({ngInjectorDef:Ce}),qe=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 Ye(e){var t=ze;return ze=e,t}function Qe(e,t,n){var i=Ve(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&qe.Optional?null:void 0!==t?t:void Re(Se(e),"Injector")}function Xe(e){return{toString:e}.toString()}var $e=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),Ke=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),Ze="undefined"!=typeof globalThis&&globalThis,Je="undefined"!=typeof window&&window,et="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,tt="undefined"!=typeof global&&global,nt=Ze||tt||Je||et,it={},rt=[],at=[],ot=Ce({"\u0275cmp":Ce}),st=Ce({"\u0275dir":Ce}),lt=Ce({"\u0275pipe":Ce}),ut=Ce({"\u0275mod":Ce}),ct=Ce({"\u0275loc":Ce}),dt=Ce({"\u0275fac":Ce}),ht=Ce({__NG_ELEMENT_ID__:Ce}),ft=0;function pt(e){return Xe(function(){var t={},n={type:e.type,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:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===$e.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||at,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Ke.Emulated,id:"c",styles:e.styles||at,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,r=e.features,a=e.pipes;return n.id+=ft++,n.inputs=_t(e.inputs,t),n.outputs=_t(e.outputs),r&&r.forEach(function(e){return e(n)}),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map(mt)}:null,n.pipeDefs=a?function(){return("function"==typeof a?a():a).map(gt)}:null,n})}function mt(e){return wt(e)||function(e){return e[st]||null}(e)}function gt(e){return function(e){return e[lt]||null}(e)}var vt={};function yt(e){var t={type:e.type,bootstrap:e.bootstrap||at,declarations:e.declarations||at,imports:e.imports||at,exports:e.exports||at,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&Xe(function(){vt[e.id]=e.type}),t}function _t(e,t){if(null==e)return it;var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i],a=r;Array.isArray(r)&&(a=r[1],r=r[0]),n[r]=i,t&&(t[r]=a)}return n}var bt=pt;function kt(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function wt(e){return e[ot]||null}function Ct(e,t){var n=e[ut]||null;if(!n&&!0===t)throw new Error("Type ".concat(Se(e)," does not have '\u0275mod' property."));return n}function xt(e){return Array.isArray(e)&&"object"==typeof e[1]}function St(e){return Array.isArray(e)&&!0===e[1]}function At(e){return 0!=(8&e.flags)}function Ot(e){return 2==(2&e.flags)}function Et(e){return 1==(1&e.flags)}function Tt(e){return null!==e.template}function Pt(e,t){return e.hasOwnProperty(dt)?e[dt]:null}var Dt,Mt=function(){function e(t,n,i){b(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=i}return w(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function It(){return Rt}function Rt(e){return e.type.prototype.ngOnChanges&&(e.setInput=Ft),Lt}function Lt(){var e=Nt(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===it)e.previous=t;else for(var i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function Ft(e,t,n,i){var r=Nt(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:it,current:null}),a=r.current||(r.current={}),o=r.previous,s=this.declaredInputs[n],l=o[s];a[s]=new Mt(l&&l.currentValue,t,o===it),e[i]=t}function Nt(e){return e.__ngSimpleChanges__||null}function Vt(){return void 0!==Dt?Dt:"undefined"!=typeof document?document:void 0}function Bt(e){return!!e.listen}It.ngInherit=!0;var Ht={createRenderer:function(e,t){return Vt()}};function zt(e){for(;Array.isArray(e);)e=e[0];return e}function Gt(e,t){return zt(t[e])}function jt(e,t){return zt(t[e.index])}function Ut(e,t){return e.data[t]}function Wt(e,t){return e[t]}function qt(e,t){var n=t[e];return xt(n)?n:n[0]}function Yt(e){var t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Qt(e){return 4==(4&e[2])}function Xt(e){return 128==(128&e[2])}function $t(e,t){return null==t?null:e[t]}function Kt(e){e[18]=0}function Zt(e,t){e[5]+=t;for(var n=e,i=e[3];null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}var Jt={lFrame:xn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function en(){return Jt.bindingsEnabled}function tn(){return Jt.lFrame.lView}function nn(){return Jt.lFrame.tView}function rn(e){Jt.lFrame.contextLView=e}function an(){for(var e=on();null!==e&&64===e.type;)e=e.parent;return e}function on(){return Jt.lFrame.currentTNode}function sn(e,t){var n=Jt.lFrame;n.currentTNode=e,n.isParent=t}function ln(){return Jt.lFrame.isParent}function un(){Jt.lFrame.isParent=!1}function cn(){return Jt.isInCheckNoChangesMode}function dn(e){Jt.isInCheckNoChangesMode=e}function hn(){var e=Jt.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function fn(){return Jt.lFrame.bindingIndex}function pn(){return Jt.lFrame.bindingIndex++}function mn(e){var t=Jt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function gn(e){Jt.lFrame.currentDirectiveIndex=e}function vn(e){var t=Jt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function yn(){return Jt.lFrame.currentQueryIndex}function _n(e){Jt.lFrame.currentQueryIndex=e}function bn(e){var t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function kn(e,t,n){if(n&qe.SkipSelf){for(var i=t,r=e;!(null!==(i=i.parent)||n&qe.Host||(i=bn(r),null===i)||(r=r[15],10&i.type)););if(null===i)return!1;t=i,e=r}var a=Jt.lFrame=Cn();return a.currentTNode=t,a.lView=e,!0}function wn(e){var t=Cn(),n=e[1];Jt.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Cn(){var e=Jt.lFrame,t=null===e?null:e.child;return null===t?xn(e):t}function xn(e){var t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Sn(){var e=Jt.lFrame;return Jt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var An=Sn;function On(){var e=Sn();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function En(){return Jt.lFrame.selectedIndex}function Tn(e){Jt.lFrame.selectedIndex=e}function Pn(){var e=Jt.lFrame;return Ut(e.tView,e.selectedIndex)}function Dn(){Jt.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function Mn(){Jt.lFrame.currentNamespace=null}function In(e,t){for(var n=t.directiveStart,i=t.directiveEnd;n=i)break}else t[s]<0&&(e[18]+=65536),(o>11>16&&(3&e[2])===t&&(e[2]+=2048,a.call(o)):a.call(o)}var Bn=function e(t,n,i){b(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i};function Hn(e,t,n){for(var i=Bt(e),r=0;rt){o=a-1;break}}}for(;a>16,i=t;n>0;)i=i[15],n--;return i}var Qn=!0;function Xn(e){var t=Qn;return Qn=e,t}var $n=0;function Kn(e,t){var n=Jn(e,t);if(-1!==n)return n;var i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,Zn(i.data,e),Zn(t,null),Zn(i.blueprint,null));var r=ei(e,t),a=e.injectorIndex;if(Wn(r))for(var o=qn(r),s=Yn(r,t),l=s[1].data,u=0;u<8;u++)t[a+u]=s[o+u]|l[o+u];return t[a+8]=r,a}function Zn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Jn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function ei(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=0,i=null,r=t;null!==r;){var a=r[1],o=a.type;if(null===(i=2===o?a.declTNode:1===o?r[6]:null))return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function ti(e,t,n){!function(e,t,n){var i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(ht)&&(i=n[ht]),null==i&&(i=n[ht]=$n++);var r=255&i;t.data[e+(r>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:qe.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==e){var a=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(ht)?e[ht]:void 0;return"number"==typeof t?t>=0?255&t:oi:t}(n);if("function"==typeof a){if(!kn(t,e,i))return i&qe.Host?ni(r,n,i):ii(t,n,i,r);try{var o=a();if(null!=o||i&qe.Optional)return o;Re(n)}finally{An()}}else if("number"==typeof a){var s=null,l=Jn(e,t),u=-1,c=i&qe.Host?t[16][6]:null;for((-1===l||i&qe.SkipSelf)&&(-1!==(u=-1===l?ei(e,t):t[l+8])&&di(i,!1)?(s=t[1],l=qn(u),t=Yn(u,t)):l=-1);-1!==l;){var d=t[1];if(ci(a,l,d.data)){var h=si(l,t,n,s,i,c);if(h!==ai)return h}-1!==(u=t[l+8])&&di(i,t[1].data[l+8]===c)&&ci(a,l,t)?(s=d,l=qn(u),t=Yn(u,t)):l=-1}}}return ii(t,n,i,r)}var ai={};function oi(){return new hi(an(),tn())}function si(e,t,n,i,r,a){var o=t[1],s=o.data[e+8],l=li(s,o,n,null==i?Ot(s)&&Qn:i!=o&&0!=(3&s.type),r&qe.Host&&a===s);return null!==l?ui(t,o,l,s):ai}function li(e,t,n,i,r){for(var a=e.providerIndexes,o=t.data,s=1048575&a,l=e.directiveStart,u=a>>20,c=r?s+u:e.directiveEnd,d=i?s:s+u;d=l&&h.type===n)return d}if(r){var f=o[l];if(f&&Tt(f)&&f.type===n)return l}return null}function ui(e,t,n,i){var r=e[n],a=t.data;if(r instanceof Bn){var o=r;o.resolving&&function(e,t){throw new De("200","Circular dependency in DI detected for ".concat(e))}(Ie(a[n]));var s=Xn(o.canSeeViewProviders);o.resolving=!0;var l=o.injectImpl?Ye(o.injectImpl):null;kn(e,i,qe.Default);try{r=e[n]=o.factory(void 0,a,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){var i=t.type.prototype,r=i.ngOnChanges,a=i.ngOnInit,o=i.ngDoCheck;if(r){var s=Rt(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}a&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,a),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,a[n],t)}finally{null!==l&&Ye(l),Xn(s),o.resolving=!1,An()}}return r}function ci(e,t,n){return!!(n[t+(e>>5)]&1<=e.length?e.push(n):e.splice(t,0,n)}function Ai(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Oi(e,t){for(var n=[],i=0;i=0?e[1|i]=n:function(e,t,n,i){var r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i=~i,t,n),i}function Ti(e,t){var n=Pi(e,t);if(n>=0)return e[1|n]}function Pi(e,t){return function(e,t,n){for(var i=0,r=e.length>>1;r!==i;){var a=i+(r-i>>1),o=e[a<<1];if(t===o)return a<<1;o>t?r=a:i=a+1}return~(r<<1)}(e,t)}var Di,Mi={},Ii=/\n/gm,Ri=Ce({provide:String,useValue:Ce});function Li(e){var t=Di;return Di=e,t}function Fi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qe.Default;if(void 0===Di)throw new Error("inject() must be called from an injection context");return null===Di?Qe(e,void 0,t):Di.get(e,t&qe.Optional?null:void 0,t)}function Ni(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qe.Default;return(ze||Fi)(Te(e),t)}var Vi=Ni;function Bi(e){for(var t=[],n=0;n"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();vr.hasOwnProperty(t)&&!fr.hasOwnProperty(t)&&(this.buf.push(""))}},{key:"chars",value:function(e){this.buf.push(Sr(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}(),Cr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,xr=/([^\#-~ |!])/g;function Sr(e){return e.replace(/&/g,"&").replace(Cr,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(xr,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}function Ar(e,t){var n=null;try{hr=hr||function(e){var t=new or(e);return function(){try{return!!(new window.DOMParser).parseFromString(qi(""),"text/html")}catch(e){return!1}}()?new ar(t):t}(e);var i=t?String(t):"";n=hr.getInertBodyElement(i);var r=5,a=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=a,a=n.innerHTML,n=hr.getInertBodyElement(i)}while(i!==a);return qi((new wr).sanitizeChildren(Or(n)||n))}finally{if(n)for(var o=Or(n)||n;o.firstChild;)o.removeChild(o.firstChild)}}function Or(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Er=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function Tr(e){var t=Mr();return t?Qi(t.sanitize(Er.HTML,e)||""):ir(e,"HTML")?Qi(nr(e)):Ar(Vt(),Me(e))}function Pr(e){var t=Mr();return t?t.sanitize(Er.URL,e)||"":ir(e,"URL")?nr(e):ur(Me(e))}function Dr(e){var t=Mr();if(t)return Xi(t.sanitize(Er.RESOURCE_URL,e)||"");if(ir(e,"ResourceURL"))return Xi(nr(e));throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)")}function Mr(){var e=tn();return e&&e[12]}function Ir(e){return e.ngDebugContext}function Rr(e){return e.ngOriginalError}function Lr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i0&&(e[i-1][4]=r[4]);var o=Ai(e,10+t);da(r[1],n=r,n[11],2,null,null),n[0]=null,n[6]=null;var s=o[19];null!==s&&s.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function Kr(e,t){if(!(256&t[2])){var n=t[11];Bt(n)&&n.destroyNode&&da(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return Zr(e[1],e);for(;t;){var n=null;if(xt(t))n=t[13];else{var i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)xt(t)&&Zr(t[1],t),t=t[3];null===t&&(t=e),xt(t)&&Zr(t[1],t),n=t&&t[4]}t=n}}(t)}}function Zr(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 i=0;i=0?i[r=u]():i[r=-u].unsubscribe(),a+=2}else{var c=i[r=n[a+1]];n[a].call(c)}if(null!==i){for(var d=r+1;da?"":r[c+1].toLowerCase();var h=8&i?d:null;if(h&&-1!==ma(h,u,0)||2&i&&u!==d){if(ba(i))return!1;o=!0}}}}else{if(!o&&!ba(i)&&!ba(l))return!1;if(o&&ba(l))continue;o=!1,i=l|1&i}}return ba(i)||o}function ba(e){return 0==(1&e)}function ka(e,t,n,i){if(null===t)return-1;var r=0;if(i||!n){for(var a=!1;r-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],i=0;i0?'="'+s+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""===r||ba(o)||(t+=xa(a,r),r=""),i=o,a=a||!ba(i);n++}return""!==r&&(t+=xa(a,r)),t}var Aa={};function Oa(e){Ea(nn(),tn(),En()+e,cn())}function Ea(e,t,n,i){if(!i)if(3==(3&t[2])){var r=e.preOrderCheckHooks;null!==r&&Rn(t,r,n)}else{var a=e.preOrderHooks;null!==a&&Ln(t,a,0,n)}Tn(n)}function Ta(e,t){return e<<17|t<<2}function Pa(e){return e>>17&32767}function Da(e){return 2|e}function Ma(e){return(131068&e)>>2}function Ia(e,t){return-131069&e|t<<2}function Ra(e){return 1|e}function La(e,t){var n=e.contentQueries;if(null!==n)for(var i=0;i20&&Ea(e,t,20,cn()),n(i,r)}finally{Tn(a)}}function ja(e,t,n){if(At(t))for(var i=t.directiveEnd,r=t.directiveStart;r2&&void 0!==arguments[2]?arguments[2]:jt,i=t.localNames;if(null!==i)for(var r=t.index+1,a=0;a0;){var n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=l&&s.push(l),s.push(i,r,o)}}function Ja(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function eo(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function to(e,t,n){if(n){if(t.exportAs)for(var i=0;i0&&uo(n)}}function uo(e){for(var t=Ur(e);null!==t;t=Wr(t))for(var n=10;n0&&uo(i)}var a=e[1].components;if(null!==a)for(var o=0;o0&&uo(s)}}function co(e,t){var n=qt(t,e),i=n[1];!function(e,t){for(var n=t.length;n1&&void 0!==arguments[1]?arguments[1]:Mi;if(t===Mi){var n=new Error("NullInjectorError: No provider for ".concat(Se(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),Eo=new _i("Set Injector scope."),To={},Po={},Do=[];function Mo(){return void 0===So&&(So=new Oo),So}function Io(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return new Ro(e,n,t||Mo(),i)}var Ro=function(){function e(t,n,i){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;b(this,e),this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var o=[];n&&xi(n,function(e){return r.processProvider(e,t,n)}),xi([t],function(e){return r.processInjectorType(e,[],o)}),this.records.set(Ao,No(void 0,this));var s=this.records.get(Eo);this.scope=null!=s?s.value:null,this.source=a||("object"==typeof t?null:Se(t))}return w(e,[{key:"destroyed",get:function(){return this._destroyed}},{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]:Mi,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:qe.Default;this.assertNotDestroyed();var i,r=Li(this);try{if(!(n&qe.SkipSelf)){var a=this.records.get(e);if(void 0===a){var o=("function"==typeof(i=e)||"object"==typeof i&&i instanceof _i)&&Ve(e);a=o&&this.injectableDefInScope(o)?No(Lo(e),To):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(n&qe.Self?Mo():this.parent).get(e,t=n&qe.Optional&&t===Mi?null:t)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(Se(e)),r)throw s;return function(e,t,n,i){var r=e.ngTempTokenPath;throw t.__source&&r.unshift(t.__source),e.message=function(e,t,n){var i=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 r=Se(t);if(Array.isArray(t))r=t.map(Se).join(" -> ");else if("object"==typeof t){var a=[];for(var o in t)if(t.hasOwnProperty(o)){var s=t[o];a.push(o+":"+("string"==typeof s?JSON.stringify(s):Se(s)))}r="{".concat(a.join(", "),"}")}return"".concat(n).concat(i?"("+i+")":"","[").concat(r,"]: ").concat(e.replace(Ii,"\n "))}("\n"+e.message,r,"R3InjectorError",i),e.ngTokenPath=r,e.ngTempTokenPath=null,e}(s,e,0,this.source)}throw s}finally{Li(r)}}},{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(Se(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 i=this;if(!(e=Te(e)))return!1;var r=He(e),a=null==r&&e.ngModule||void 0,o=void 0===a?e:a,s=-1!==n.indexOf(o);if(void 0!==a&&(r=He(a)),null==r)return!1;if(null!=r.imports&&!s){var l;n.push(o);try{xi(r.imports,function(e){i.processInjectorType(e,t,n)&&(void 0===l&&(l=[]),l.push(e))})}finally{}if(void 0!==l)for(var u=function(e){var t=l[e],n=t.ngModule,r=t.providers;xi(r,function(e){return i.processProvider(e,n,r||Do)})},c=0;c0){var n=Oi(t,"?");throw new Error("Can't resolve all parameters for ".concat(Se(e),": (").concat(n.join(", "),")."))}var i=function(e){var t=e&&(e[Ge]||e[Ue]);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.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "').concat(n,'" class.')),t}return null}(e);return null!==i?function(){return i.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function Fo(e,t,n){var i,r;if(Bo(e)){var o=Te(e);return Pt(o)||Lo(o)}if(Vo(e))i=function(){return Te(e.useValue)};else if((r=e)&&r.useFactory)i=function(){return e.useFactory.apply(e,a(Bi(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))i=function(){return Ni(Te(e.useExisting))};else{var s=Te(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Pt(s)||Lo(s);i=function(){return d(s,a(Bi(e.deps)))}}return i}function No(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function Vo(e){return null!==e&&"object"==typeof e&&Ri in e}function Bo(e){return"function"==typeof e}var Ho=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,i=arguments.length>3?arguments[3]:void 0,r=Io(e,t,n,i);return r._resolveInjectorDefTypes(),r}({name:n},t,e,n)},zo=function(){var e=function(){function e(){b(this,e)}return w(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?Ho(e,t,""):Ho(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=Mi,e.NULL=new Oo,e.\u0275prov=Le({token:e,providedIn:"any",factory:function(){return Ni(Ao)}}),e.__NG_ELEMENT_ID__=-1,e}();function Go(e,t){In(Yt(e)[1],an())}function jo(e){for(var t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0,i=[e];t;){var r=void 0;if(Tt(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){i.push(r);var a=e;a.inputs=Uo(e.inputs),a.declaredInputs=Uo(e.declaredInputs),a.outputs=Uo(e.outputs);var o=r.hostBindings;o&&Yo(e,o);var s=r.viewQuery,l=r.contentQueries;if(s&&Wo(e,s),l&&qo(e,l),xe(e.inputs,r.inputs),xe(e.declaredInputs,r.declaredInputs),xe(e.outputs,r.outputs),Tt(r)&&r.data.animation){var u=e.data;u.animation=(u.animation||[]).concat(r.data.animation)}}var c=r.features;if(c)for(var d=0;d=0;i--){var r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=jn(r.hostAttrs,n=jn(n,r.hostAttrs))}}(i)}function Uo(e){return e===it?{}:e===at?[]:e}function Wo(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,i){t(e,i),n(e,i)}:t}function qo(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,i,r){t(e,i,r),n(e,i,r)}:t}function Yo(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,i){t(e,i),n(e,i)}:t}var Qo=null;function Xo(){if(!Qo){var e=nt.Symbol;if(e&&e.iterator)Qo=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n1&&void 0!==arguments[1]?arguments[1]:qe.Default,n=tn();return null===n?Ni(e,t):ri(an(),n,Te(e),t)}function us(e,t,n){var i=tn();return es(i,pn(),t)&&$a(nn(),Pn(),i,e,t,i[11],n,!1),us}function cs(e,t,n,i,r){var a=r?"class":"style";wo(e,n,t.inputs[a],a,i)}function ds(e,t,n,i){var r=tn(),a=nn(),o=20+e,s=r[11],l=r[o]=Qr(s,t,Jt.lFrame.currentNamespace),u=a.firstCreatePass?function(e,t,n,i,r,a,o){var s=t.consts,l=Na(t,e,2,r,$t(s,a));return Ka(t,n,l,$t(s,o)),null!==l.attrs&&xo(l,l.attrs,!1),null!==l.mergedAttrs&&xo(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(o,a,r,0,t,n,i):a.data[o];sn(u,!0);var c=u.mergedAttrs;null!==c&&Hn(s,l,c);var d=u.classes;null!==d&&pa(s,l,d);var h=u.styles;null!==h&&fa(s,l,h),64!=(64&u.flags)&&oa(a,r,l,u),0===Jt.lFrame.elementDepthCount&&Nr(l,r),Jt.lFrame.elementDepthCount++,Et(u)&&(Ua(a,r,u),ja(a,u,r)),null!==i&&Wa(r,u)}function hs(){var e=an();ln()?un():sn(e=e.parent,!1);var t=e;Jt.lFrame.elementDepthCount--;var n=nn();n.firstCreatePass&&(In(n,e),At(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&cs(n,t,tn(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&cs(n,t,tn(),t.stylesWithoutHost,!1)}function fs(e,t,n,i){ds(e,t,n,i),hs()}function ps(e,t,n){var i=tn(),r=nn(),a=e+20,o=r.firstCreatePass?function(e,t,n,i,r){var a=t.consts,o=$t(a,i),s=Na(t,e,8,"ng-container",o);return null!==o&&xo(s,o,!0),Ka(t,n,s,$t(a,r)),null!==t.queries&&t.queries.elementStart(t,s),s}(a,r,i,t,n):r.data[a];sn(o,!0);var s=i[a]=i[11].createComment("");oa(r,i,s,o),Nr(s,i),Et(o)&&(Ua(r,i,o),ja(r,o,i)),null!=n&&Wa(i,o)}function ms(){var e=an(),t=nn();ln()?un():sn(e=e.parent,!1),t.firstCreatePass&&(In(t,e),At(e)&&t.queries.elementEnd(e))}function gs(e,t,n){ps(e,t,n),ms()}function vs(){return tn()}function ys(e){return!!e&&"function"==typeof e.then}function _s(e){return!!e&&"function"==typeof e.subscribe}var bs=_s;function ks(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=tn(),a=nn(),o=an();return Cs(a,r,r[11],o,e,t,n,i),ks}function ws(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=an(),a=tn(),o=nn();return Cs(o,a,bo(vn(o.data),r,a),r,e,t,n,i),ws}function Cs(e,t,n,i,r,a){var o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,l=Et(i),u=e.firstCreatePass&&_o(e),c=yo(t),d=!0;if(3&i.type){var h=jt(i,t),f=s?s(h):it,p=f.target||h,m=c.length,g=s?function(e){return s(zt(e[i.index])).target}:i.index;if(Bt(n)){var v=null;if(!s&&l&&(v=function(e,t,n,i){var r=e.cleanup;if(null!=r)for(var a=0;al?s[l]:null}"string"==typeof o&&(a+=2)}return null}(e,t,r,i.index)),null!==v)(v.__ngLastListenerFn__||v).__ngNextListenerFn__=a,v.__ngLastListenerFn__=a,d=!1;else{a=Ss(i,t,a,!1);var y=n.listen(f.name||p,r,a);c.push(a,y),u&&u.push(r,g,m,m+1)}}else a=Ss(i,t,a,!0),p.addEventListener(r,a,o),c.push(a),u&&u.push(r,g,m,o)}else a=Ss(i,t,a,!1);var _,b=i.outputs;if(d&&null!==b&&(_=b[r])){var k=_.length;if(k)for(var w=0;w0&&void 0!==arguments[0]?arguments[0]:1;return function(e){return(Jt.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,Jt.lFrame.contextLView))[8]}(e)}function Os(e,t){for(var n=null,i=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),r=0;r1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=tn(),r=nn(),a=Na(r,20+e,16,null,n||null);null===a.projection&&(a.projection=t),un(),64!=(64&a.flags)&&function(e,t,n){ha(t[11],0,t,n,Jr(e,n,t),ra(n.parent||t[6],n,t))}(r,i,a)}function Ps(e,t,n){return Ds(e,"",t,"",n),Ps}function Ds(e,t,n,i,r){var a=tn(),o=rs(a,t,n,i);return o!==Aa&&$a(nn(),Pn(),a,e,o,a[11],r,!1),Ds}function Ms(e,t,n,i,r,a,o){var s=tn(),l=as(s,t,n,i,r,a);return l!==Aa&&$a(nn(),Pn(),s,e,l,s[11],o,!1),Ms}function Is(e,t,n,i,r){for(var a=e[n+1],o=null===t,s=i?Pa(a):Ma(a),l=!1;0!==s&&(!1===l||o);){var u=e[s+1];Rs(e[s],t)&&(l=!0,e[s+1]=i?Ra(u):Da(u)),s=i?Pa(u):Ma(u)}l&&(e[n+1]=i?Da(a):Ra(a))}function Rs(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Pi(e,t)>=0}var Ls={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Fs(e){return e.substring(Ls.key,Ls.keyEnd)}function Ns(e,t){var n=Ls.textEnd;return n===t?-1:(t=Ls.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,Ls.key=t,n),Vs(e,t,n))}function Vs(e,t,n){for(;t=0;n=Ns(t,n))Ei(e,Fs(t),!0)}function js(e,t,n,i){var r=tn(),a=nn(),o=mn(2);a.firstUpdatePass&&qs(a,e,o,i),t!==Aa&&es(r,o,t)&&Xs(a,a.data[En()],r,r[11],e,r[o+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Se(nr(e)))),e}(t,n),i,o)}function Us(e,t,n,i){var r=nn(),a=mn(2);r.firstUpdatePass&&qs(r,null,a,i);var o=tn();if(n!==Aa&&es(o,a,n)){var s=r.data[En()];if(Zs(s,i)&&!Ws(r,a)){var l=i?s.classesWithoutHost:s.stylesWithoutHost;null!==l&&(n=Ae(l,n||"")),cs(r,s,o,n,i)}else!function(e,t,n,i,r,a,o,s){r===Aa&&(r=rt);for(var l=0,u=0,c=0=e.expandoStartIndex}function qs(e,t,n,i){var r=e.data;if(null===r[n+1]){var a=r[En()],o=Ws(e,n);Zs(a,i)&&null===t&&!o&&(t=!1),t=function(e,t,n,i){var r=vn(e),a=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=Qs(n=Ys(null,e,t,n,i),t.attrs,i),a=null);else{var o=t.directiveStylingLast;if(-1===o||e[o]!==r)if(n=Ys(r,e,t,n,i),null===a){var s=function(e,t,n){var i=n?t.classBindings:t.styleBindings;if(0!==Ma(i))return e[Pa(i)]}(e,t,i);void 0!==s&&Array.isArray(s)&&function(e,t,n,i){e[Pa(n?t.classBindings:t.styleBindings)]=i}(e,t,i,s=Qs(s=Ys(null,e,t,s[1],i),t.attrs,i))}else a=function(e,t,n){for(var i,r=t.directiveEnd,a=1+t.directiveStylingLast;a0)&&(c=!0)}else u=n;if(r)if(0!==l){var h=Pa(e[s+1]);e[i+1]=Ta(h,s),0!==h&&(e[h+1]=Ia(e[h+1],i)),e[s+1]=131071&e[s+1]|i<<17}else e[i+1]=Ta(s,0),0!==s&&(e[s+1]=Ia(e[s+1],i)),s=i;else e[i+1]=Ta(l,0),0===s?s=i:e[l+1]=Ia(e[l+1],i),l=i;c&&(e[i+1]=Da(e[i+1])),Is(e,u,i,!0),Is(e,u,i,!1),function(e,t,n,i,r){var a=r?e.residualClasses:e.residualStyles;null!=a&&"string"==typeof t&&Pi(a,t)>=0&&(n[i+1]=Ra(n[i+1]))}(t,u,e,i,a),o=Ta(s,l),a?t.classBindings=o:t.styleBindings=o}(r,a,t,n,o,i)}}function Ys(e,t,n,i,r){var a=null,o=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s0;){var l=e[r],u=Array.isArray(l),c=u?l[1]:l,d=null===c,h=n[r+1];h===Aa&&(h=d?rt:void 0);var f=d?Ti(h,i):c===i?h:void 0;if(u&&!Ks(f)&&(f=Ti(l,i)),Ks(f)&&(o=f,s))return o;var p=e[r+1];r=s?Pa(p):Ma(p)}if(null!==t){var m=a?t.residualClasses:t.residualStyles;null!=m&&(o=Ti(m,i))}return o}function Ks(e){return void 0!==e}function Zs(e,t){return 0!=(e.flags&(t?16:32))}function Js(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=tn(),i=nn(),r=e+20,a=i.firstCreatePass?Na(i,r,1,t,null):i.data[r],o=n[r]=function(e,t){return Bt(e)?e.createText(t):e.createTextNode(t)}(n[11],t);oa(i,n,o,a),sn(a,!1)}function el(e){return tl("",e,""),el}function tl(e,t,n){var i=tn(),r=rs(i,e,t,n);return r!==Aa&&Co(i,En(),r),tl}function nl(e,t,n,i,r){var a=tn(),o=as(a,e,t,n,i,r);return o!==Aa&&Co(a,En(),o),nl}function il(e,t,n,i,r,a,o){var s=tn(),l=function(e,t,n,i,r,a,o,s){var l=ns(e,fn(),n,r,o);return mn(3),l?t+Me(n)+i+Me(r)+a+Me(o)+s:Aa}(s,e,t,n,i,r,a,o);return l!==Aa&&Co(s,En(),l),il}function rl(e,t,n){Us(Ei,Gs,rs(tn(),e,t,n),!0)}function al(e,t,n){var i=tn();return es(i,pn(),t)&&$a(nn(),Pn(),i,e,t,i[11],n,!0),al}function ol(e,t,n){var i=tn();if(es(i,pn(),t)){var r=nn(),a=Pn();$a(r,a,i,e,t,bo(vn(r.data),a,i),n,!0)}return ol}var sl=["en",[["a","p"],["AM","PM"],void 0],[["AM","PM"],void 0,void 0],[["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"]],void 0,[["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"]],void 0,[["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}",void 0,"{1} 'at' {0}",void 0],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],ll={};function ul(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=cl(t);if(n)return n;var i=t.split("-")[0];if(n=cl(i))return n;if("en"===i)return sl;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}function cl(e){return e in ll||(ll[e]=nt.ng&&nt.ng.common&&nt.ng.common.locales&&nt.ng.common.locales[e]),ll[e]}var dl=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({});function hl(e){var t;null==(t=e)&&function(e,t,n,i){throw new Error("ASSERTION ERROR: ".concat("Expected localeId to be defined"," [Expected=> null != ").concat(t," <=Actual]"))}(0,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}function fl(e,t,n,i,r){if(e=Te(e),Array.isArray(e))for(var a=0;a>20;if(Bo(e)||!e.multi){var p=new Bn(u,r,ls),m=gl(l,t,r?d:d+f,h);-1===m?(ti(Kn(c,s),o,l),pl(o,e,t.length),t.push(l),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(p),s.push(p)):(n[m]=p,s[m]=p)}else{var g=gl(l,t,d+f,h),v=gl(l,t,d,d+f),y=g>=0&&n[g],_=v>=0&&n[v];if(r&&!_||!r&&!y){ti(Kn(c,s),o,l);var b=function(e,t,n,i,r){var a=new Bn(e,n,ls);return a.multi=[],a.index=t,a.componentProviders=0,ml(a,r,i&&!n),a}(r?yl:vl,n.length,r,i,u);!r&&_&&(n[v].providerFactory=b),pl(o,e,t.length,0),t.push(l),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(b),s.push(b)}else pl(o,e,g>-1?g:v,ml(n[r?v:g],u,!r&&i));!r&&i&&_&&n[v].componentProviders++}}}function pl(e,t,n,i){var r=Bo(t);if(r||t.useClass){var a=(t.useClass||t).prototype.ngOnDestroy;if(a){var o=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){var s=o.indexOf(n);-1===s?o.push(n,[i,a]):o[s+1].push(i,a)}else o.push(n,a)}}}function ml(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function gl(e,t,n,i){for(var r=n;r1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,i){return function(e,t,n){var i=nn();if(i.firstCreatePass){var r=Tt(e);fl(n,i.data,i.blueprint,r,!0),fl(t,i.data,i.blueprint,r,!1)}}(n,i?i(e):e,t)}}}var kl=function e(){b(this,e)},wl=function(){function e(){b(this,e)}return w(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(Se(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),Cl=function(){var e=function e(){b(this,e)};return e.NULL=new wl,e}();function xl(){}function Sl(e,t){return new Ol(jt(e,t))}var Al=function(){return Sl(an(),tn())},Ol=function(){var e=function e(t){b(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=Al,e}();function El(e){return e instanceof Ol?e.nativeElement:e}var Tl=function e(){b(this,e)},Pl=function(){var e=function e(){b(this,e)};return e.__NG_ELEMENT_ID__=function(){return Dl()},e}(),Dl=function(){var e=tn(),t=qt(an().index,e);return function(e){return e[11]}(xt(t)?t:e)},Ml=function(){var e=function e(){b(this,e)};return e.\u0275prov=Le({token:e,providedIn:"root",factory:function(){return null}}),e}(),Il=function e(t){b(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},Rl=new Il("11.2.8"),Ll=function(){function e(){b(this,e)}return w(e,[{key:"supports",value:function(e){return Ko(e)}},{key:"create",value:function(e){return new Nl(e)}}]),e}(),Fl=function(e,t){return t},Nl=function(){function e(t){b(this,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=t||Fl}return w(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,i=0,r=null;t||n;){var a=!n||t&&t.currentIndex4&&void 0!==arguments[4]&&arguments[4];null!==n;){var o=t[n.index];if(null!==o&&i.push(zt(o)),St(o))for(var s=10;s-1&&($r(e,n),Ai(t,n))}this._attachedToViewContainer=!1}Kr(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){Qa(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){fo(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){po(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){dn(!0);try{po(e,t,n)}finally{dn(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,da(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}]),e}(),Kl=function(e){f(n,e);var t=m(n);function n(e){var i;return b(this,n),(i=t.call(this,e))._view=e,i}return w(n,[{key:"detectChanges",value:function(){mo(this._view)}},{key:"checkNoChanges",value:function(){!function(e){dn(!0);try{mo(e)}finally{dn(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}($l),Zl=eu,Jl=function(){var e=function e(){b(this,e)};return e.__NG_ELEMENT_ID__=Zl,e.__ChangeDetectorRef__=!0,e}();function eu(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(e,t,n){if(!n&&Ot(e)){var i=qt(e.index,t);return new $l(i,i)}return 47&e.type?new $l(t[16],t):null}(an(),tn(),e)}var tu=[new Gl],nu=new ql([new Ll]),iu=new Ql(tu),ru=function(){return su(an(),tn())},au=function(){var e=function e(){b(this,e)};return e.__NG_ELEMENT_ID__=ru,e}(),ou=function(e){f(n,e);var t=m(n);function n(e,i,r){var a;return b(this,n),(a=t.call(this))._declarationLView=e,a._declarationTContainer=i,a.elementRef=r,a}return w(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=Fa(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(t)),Ba(t,n,e),new $l(n)}}]),n}(au);function su(e,t){return 4&e.type?new ou(t,e,Sl(e,t)):null}var lu=function e(){b(this,e)},uu=function e(){b(this,e)},cu=function(){return mu(an(),tn())},du=function(){var e=function e(){b(this,e)};return e.__NG_ELEMENT_ID__=cu,e}(),hu=function(e){f(n,e);var t=m(n);function n(e,i,r){var a;return b(this,n),(a=t.call(this))._lContainer=e,a._hostTNode=i,a._hostLView=r,a}return w(n,[{key:"element",get:function(){return Sl(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new hi(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var e=ei(this._hostTNode,this._hostLView);if(Wn(e)){var t=Yn(e,this._hostLView),n=qn(e);return new hi(t[1].data[n+8],t)}return new hi(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){var t=fu(this._lContainer);return null!==t&&t[e]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(e,t,n){var i=e.createEmbeddedView(t||{});return this.insert(i,n),i}},{key:"createComponent",value:function(e,t,n,i,r){var a=n||this.parentInjector;if(!r&&null==e.ngModule&&a){var o=a.get(lu,null);o&&(r=o)}var s=e.create(a,i,void 0,r);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var i=e._lView,r=i[1];if(St(i[3])){var a=this.indexOf(e);if(-1!==a)this.detach(a);else{var o=i[3],s=new n(o,o[6],o[3]);s.detach(s.indexOf(e))}}var l=this._adjustIndex(t),u=this._lContainer;!function(e,t,n,i){var r=10+i,a=n.length;i>0&&(n[r-1][4]=t),i1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}}]),n}(du);function fu(e){return e[8]}function pu(e){return e[8]||(e[8]=[])}function mu(e,t){var n,i=t[e.index];if(St(i))n=i;else{var r;if(8&e.type)r=zt(i);else{var a=t[11];r=a.createComment("");var o=jt(e,t);ea(a,ia(a,o),r,function(e,t){return Bt(e)?e.nextSibling(t):t.nextSibling}(a,o),!1)}t[e.index]=n=so(i,t,r,e),ho(t,n)}return new hu(n,e,t)}var gu={},vu=function(e){f(n,e);var t=m(n);function n(e){var i;return b(this,n),(i=t.call(this)).ngModule=e,i}return w(n,[{key:"resolveComponentFactory",value:function(e){var t=wt(e);return new bu(t,this.ngModule)}}]),n}(Cl);function yu(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var _u=new _i("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Vr}}),bu=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this)).componentDef=e,r.ngModule=i,r.componentType=e.type,r.selector=e.selectors.map(Sa).join(","),r.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],r.isBoundToModule=!!i,r}return w(n,[{key:"inputs",get:function(){return yu(this.componentDef.inputs)}},{key:"outputs",get:function(){return yu(this.componentDef.outputs)}},{key:"create",value:function(e,t,n,i){var r,a,o=(i=i||this.ngModule)?function(e,t){return{get:function(n,i,r){var a=e.get(n,gu,r);return a!==gu||i===gu?a:t.get(n,i,r)}}}(e,i.injector):e,s=o.get(Tl,Ht),l=o.get(Ml,null),u=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",d=n?function(e,t,n){if(Bt(e))return e.selectRootElement(t,n===Ke.ShadowDom);var i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(u,n,this.componentDef.encapsulation):Qr(s.createRenderer(null,this.componentDef),c,function(e){var t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),h=this.componentDef.onPush?576:528,f={components:[],scheduler:Vr,clean:vo,playerHandler:null,flags:0},p=Ya(0,null,null,1,0,null,null,null,null,null),m=Fa(null,p,f,h,null,null,s,u,l,o);wn(m);try{var g=function(e,t,n,i,r,a){var o=n[1];n[20]=e;var s=Na(o,20,2,"#host",null),l=s.mergedAttrs=t.hostAttrs;null!==l&&(xo(s,l,!0),null!==e&&(Hn(r,e,l),null!==s.classes&&pa(r,e,s.classes),null!==s.styles&&fa(r,e,s.styles)));var u=i.createRenderer(e,t),c=Fa(n,qa(t),null,t.onPush?64:16,n[20],s,i,u,null,null);return o.firstCreatePass&&(ti(Kn(s,n),o,t.type),eo(o,s),no(s,n.length,1)),ho(n,c),n[20]=c}(d,this.componentDef,m,s,u);if(d)if(n)Hn(u,d,["ng-version",Rl.full]);else{var v=function(e){for(var t=[],n=[],i=1,r=2;i0&&pa(u,d,_.join(" "))}if(a=Ut(p,20),void 0!==t)for(var b=a.projection=[],k=0;k1&&void 0!==arguments[1]?arguments[1]:zo.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:qe.Default;return e===zo||e===lu||e===Ao?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)}}]),n}(lu),xu=function(e){f(n,e);var t=m(n);function n(e){var i,r,a;return b(this,n),(i=t.call(this)).moduleType=e,null!==Ct(e)&&(r=e,a=new Set,function e(t){var n=Ct(t,!0),i=n.id;null!==i&&(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(Se(t)," vs ").concat(Se(t.name)))}(i,wu.get(i),t),wu.set(i,t));var r,o=s(Hr(n.imports));try{for(o.s();!(r=o.n()).done;){var l=r.value;a.has(l)||(a.add(l),e(l))}}catch(u){o.e(u)}finally{o.f()}}(r)),i}return w(n,[{key:"create",value:function(e){return new Cu(this.moduleType,e)}}]),n}(uu);function Su(e,t,n){var i=hn()+e,r=tn();return r[i]===Aa?Jo(r,i,n?t.call(n):t()):function(e,t){return e[t]}(r,i)}function Au(e,t,n,i){return Du(tn(),hn(),e,t,n,i)}function Ou(e,t,n,i,r){return Mu(tn(),hn(),e,t,n,i,r)}function Eu(e,t,n,i,r,a){return function(e,t,n,i,r,a,o,s){var l=t+n;return ns(e,l,r,a,o)?Jo(e,l+3,s?i.call(s,r,a,o):i(r,a,o)):Pu(e,l+3)}(tn(),hn(),e,t,n,i,r,a)}function Tu(e,t,n,i,r,a,o){return function(e,t,n,i,r,a,o,s,l){var u=t+n;return function(e,t,n,i,r,a){var o=ts(e,t,n,i);return ts(e,t+2,r,a)||o}(e,u,r,a,o,s)?Jo(e,u+4,l?i.call(l,r,a,o,s):i(r,a,o,s)):Pu(e,u+4)}(tn(),hn(),e,t,n,i,r,a,o)}function Pu(e,t){var n=e[t];return n===Aa?void 0:n}function Du(e,t,n,i,r,a){var o=t+n;return es(e,o,r)?Jo(e,o+1,a?i.call(a,r):i(r)):Pu(e,o+1)}function Mu(e,t,n,i,r,a,o){var s=t+n;return ts(e,s,r,a)?Jo(e,s+2,o?i.call(o,r,a):i(r,a)):Pu(e,s+2)}function Iu(e,t){var n,i=nn(),r=e+20;i.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var i=t[n];if(e===i.name)return i}throw new De("302","The pipe '".concat(e,"' could not be found!"))}(t,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(r,n.onDestroy)):n=i.data[r];var a=n.factory||(n.factory=Pt(n.type)),o=Ye(ls);try{var s=Xn(!1),l=a();return Xn(s),function(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(i,tn(),r,l),l}finally{Ye(o)}}function Ru(e,t,n){var i=e+20,r=tn(),a=Wt(r,i);return Nu(r,Fu(r,i)?Du(r,hn(),t,a.transform,n,a):a.transform(n))}function Lu(e,t,n,i){var r=e+20,a=tn(),o=Wt(a,r);return Nu(a,Fu(a,r)?Mu(a,hn(),t,o.transform,n,i,o):o.transform(n,i))}function Fu(e,t){return e[1].data[t].pure}function Nu(e,t){return $o.isWrapped(t)&&(t=$o.unwrap(t),e[fn()]=Aa),t}var Vu=function(e){f(n,e);var t=m(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return b(this,n),(e=t.call(this)).__isAsync=i,e}return w(n,[{key:"emit",value:function(e){h(_(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,i){var r,a=function(e){return null},o=function(){return null};e&&"object"==typeof e?(r=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(a=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(o=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(r=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},t&&(a=this.__isAsync?function(e){setTimeout(function(){return t(e)})}:function(e){t(e)}),i&&(o=this.__isAsync?function(){setTimeout(function(){return i()})}:function(){i()}));var s=h(_(n.prototype),"subscribe",this).call(this,r,a,o);return e instanceof O&&e.add(s),s}}]),n}(j);function Bu(){return this._results[Xo()]()}var Hu=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];b(this,e),this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var n=Xo(),i=e.prototype;i[n]||(i[n]=Bu)}return w(e,[{key:"changes",get:function(){return this._changes||(this._changes=new Vu)}},{key:"get",value:function(e){return this._results[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,t){this.dirty=!1;var n=Ci(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:[];b(this,e),this.queries=t}return w(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var i=null!==t.contentQueries?t.contentQueries[0]:n.length,r=[],a=0;a2&&void 0!==arguments[2]?arguments[2]:null;b(this,e),this.predicate=t,this.flags=n,this.read=i},Uu=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];b(this,e),this.queries=t}return w(e,[{key:"elementStart",value:function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;b(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return w(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!=(1&this.metadata.flags)){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var n=this.metadata.predicate;if(Array.isArray(n))for(var i=0;i0)i.push(o[s/2]);else{for(var u=a[s+1],c=t[-l],d=10;d0&&(r=setTimeout(function(){i._callbacks=i._callbacks.filter(function(e){return e.timeoutId!==r}),e(i._didWork,i.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,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)(Ni(Oc))},e.\u0275prov=Le({token:e,factory:e.\u0275fac}),e}(),Fc=function(){var e=function(){function e(){b(this,e),this._applications=new Map,Nc.addToWindow(this)}return w(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 Nc.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Le({token:e,factory:e.\u0275fac}),e}(),Nc=new(function(){function e(){b(this,e)}return w(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),Vc=!0,Bc=!1;function Hc(){return Bc=!0,Vc}var zc=new _i("AllowMultipleToken"),Gc=function e(t,n){b(this,e),this.name=t,this.token=n};function jc(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="Platform: ".concat(t),r=new _i(i);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=Uc();if(!a||a.injector.get(zc,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{var o=n.concat(t).concat({provide:r,useValue:!0},{provide:Eo,useValue:"platform"});!function(e){if(Ic&&!Ic.destroyed&&!Ic.injector.get(zc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Ic=e.get(Wc);var t=e.get(dc,null);t&&t.forEach(function(e){return e()})}(zo.create({providers:o,name:i}))}return function(e){var t=Uc();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}(r)}}function Uc(){return Ic&&!Ic.destroyed?Ic:null}var Wc=function(){var e=function(){function e(t){b(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return w(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,i,r=this,a=(n=t?t.ngZone:void 0,i={ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1},"noop"===n?new Rc:("zone.js"===n?void 0:n)||new Oc({enableLongStackTrace:Hc(),shouldCoalesceEventChangeDetection:!!(null==i?void 0:i.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==i?void 0:i.ngZoneRunCoalescing)})),o=[{provide:Oc,useValue:a}];return a.run(function(){var t=zo.create({providers:o,parent:r.injector,name:e.moduleType.name}),n=e.create(t),i=n.injector.get(Fr,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return a.runOutsideAngular(function(){var e=a.onError.subscribe({next:function(e){i.handleError(e)}});n.onDestroy(function(){Xc(r._modules,n),e.unsubscribe()})}),function(e,t,i){try{var a=((o=n.injector.get(sc)).runInitializers(),o.donePromise.then(function(){return hl(n.injector.get(mc,"en-US")||"en-US"),r._moduleDoBootstrap(n),n}));return ys(a)?a.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):a}catch(s){throw t.runOutsideAngular(function(){return e.handleError(s)}),s}var o}(i,a)})}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=qc({},n);return function(e,t,n){var i=new xu(n);return Promise.resolve(i)}(0,0,e).then(function(e){return t.bootstrapModuleFactory(e,i)})}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(Qc);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(Se(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:"injector",get:function(){return this._injector}},{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:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ni(zo))},e.\u0275prov=Le({token:e,factory:e.\u0275fac}),e}();function qc(e,t){return Array.isArray(t)?t.reduce(qc,e):Object.assign(Object.assign({},e),t)}var Yc,Qc=((Yc=function(){function e(t,n,i,r,a){var o=this;b(this,e),this._zone=t,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){o._zone.run(function(){o.tick()})}});var s=new N(function(e){o._stable=o._zone.isStable&&!o._zone.hasPendingMacrotasks&&!o._zone.hasPendingMicrotasks,o._zone.runOutsideAngular(function(){e.next(o._stable),e.complete()})}),l=new N(function(e){var t;o._zone.runOutsideAngular(function(){t=o._zone.onStable.subscribe(function(){Oc.assertNotInAngularZone(),Ac(function(){o._stable||o._zone.hasPendingMacrotasks||o._zone.hasPendingMicrotasks||(o._stable=!0,e.next(!0))})})});var n=o._zone.onUnstable.subscribe(function(){Oc.assertInAngularZone(),o._stable&&(o._stable=!1,o._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=de(s,l.pipe(we()))}return w(e,[{key:"bootstrap",value:function(e,t){var n,i=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 kl?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var r=n.isBoundToModule?void 0:this._injector.get(lu),a=n.create(zo.NULL,[],t||n.selector,r),o=a.location.nativeElement,s=a.injector.get(Lc,null),l=s&&a.injector.get(Fc);return s&&l&&l.registerApplication(o,s),a.onDestroy(function(){i.detachView(a.hostView),Xc(i.components,a),l&&l.unregisterApplication(o)}),this._loadComponent(a),a}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=s(this._views);try{for(n.s();!(t=n.n()).done;)t.value.detectChanges()}catch(i){n.e(i)}finally{n.f()}}catch(r){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(r)})}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;Xc(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(fc,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(e){return e.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),e}()).\u0275fac=function(e){return new(e||Yc)(Ni(Oc),Ni(zo),Ni(Fr),Ni(Cl),Ni(sc))},Yc.\u0275prov=Le({token:Yc,factory:Yc.\u0275fac}),Yc);function Xc(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var $c=function e(){b(this,e)},Kc=function e(){b(this,e)},Zc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Jc=function(){var e=function(){function e(t,n){b(this,e),this._compiler=t,this._config=n||Zc}return w(e,[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var t=this,i=n(e.split("#"),2),r=i[0],a=i[1];return void 0===a&&(a="default"),o("zn8P")(r).then(function(e){return e[a]}).then(function(e){return ed(e,r,a)}).then(function(e){return t._compiler.compileModuleAsync(e)})}},{key:"loadFactory",value:function(e){var t=n(e.split("#"),2),i=t[0],r=t[1],a="NgFactory";return void 0===r&&(r="default",a=""),o("zn8P")(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(function(e){return e[r+a]}).then(function(e){return ed(e,i,r)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ni(xc),Ni(Kc,8))},e.\u0275prov=Le({token:e,factory:e.\u0275fac}),e}();function ed(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var td=jc(null,"core",[{provide:hc,useValue:"unknown"},{provide:Wc,deps:[zo]},{provide:Fc,deps:[]},{provide:pc,deps:[]}]),nd=[{provide:Qc,useClass:Qc,deps:[Oc,zo,Fr,Cl,sc]},{provide:_u,deps:[Oc],useFactory:function(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:sc,useClass:sc,deps:[[new Ui,oc]]},{provide:xc,useClass:xc,deps:[]},uc,{provide:ql,useFactory:function(){return nu},deps:[]},{provide:Ql,useFactory:function(){return iu},deps:[]},{provide:mc,useFactory:function(e){return hl(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new ji(mc),new Ui,new Wi]]},{provide:gc,useValue:"USD"}],id=function(){var e=function e(t){b(this,e)};return e.\u0275fac=function(t){return new(t||e)(Ni(Qc))},e.\u0275mod=yt({type:e}),e.\u0275inj=Ne({providers:nd}),e}(),rd=null;function ad(){return rd}var od,sd=new _i("DocumentToken"),ld=((od=function e(){b(this,e)}).\u0275fac=function(e){return new(e||od)},od.\u0275prov=Le({factory:ud,token:od,providedIn:"platform"}),od);function ud(){return Ni(hd)}var cd,dd=new _i("Location Initialized"),hd=((cd=function(e){f(n,e);var t=m(n);function n(e){var i;return b(this,n),(i=t.call(this))._doc=e,i._init(),i}return w(n,[{key:"_init",value:function(){this.location=ad().getLocation(),this._history=ad().getHistory()}},{key:"getBaseHrefFromDOM",value:function(){return ad().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){ad().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}},{key:"onHashChange",value:function(e){ad().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(e){this.location.pathname=e}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(e,t,n){fd()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){fd()?this._history.replaceState(e,t,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"getState",value:function(){return this._history.state}}]),n}(ld)).\u0275fac=function(e){return new(e||cd)(Ni(sd))},cd.\u0275prov=Le({factory:pd,token:cd,providedIn:"platform"}),cd);function fd(){return!!window.history.pushState}function pd(){return new hd(Ni(sd))}function md(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function gd(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function vd(e){return e&&"?"!==e[0]?"?"+e:e}var yd,_d=((yd=function e(){b(this,e)}).\u0275fac=function(e){return new(e||yd)},yd.\u0275prov=Le({factory:bd,token:yd,providedIn:"root"}),yd);function bd(e){var t=Ni(sd).location;return new Sd(Ni(ld),t&&t.origin||"")}var kd,wd,Cd,xd=new _i("appBaseHref"),Sd=((Cd=function(e){f(n,e);var t=m(n);function n(e,i){var r;if(b(this,n),(r=t.call(this))._platformLocation=e,null==i&&(i=r._platformLocation.getBaseHrefFromDOM()),null==i)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.");return r._baseHref=i,g(r)}return w(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return md(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+vd(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+vd(i));this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+vd(i));this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(_d)).\u0275fac=function(e){return new(e||Cd)(Ni(ld),Ni(xd,8))},Cd.\u0275prov=Le({token:Cd,factory:Cd.\u0275fac}),Cd),Ad=((wd=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this))._platformLocation=e,r._baseHref="",null!=i&&(r._baseHref=i),r}return w(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=md(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+vd(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+vd(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(_d)).\u0275fac=function(e){return new(e||wd)(Ni(ld),Ni(xd,8))},wd.\u0275prov=Le({token:wd,factory:wd.\u0275fac}),wd),Od=((kd=function(){function e(t,n){var i=this;b(this,e),this._subject=new Vu,this._urlChangeListeners=[],this._platformStrategy=t;var r=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=gd(Td(r)),this._platformStrategy.onPopState(function(e){i._subject.emit({url:i.path(!0),pop:!0,state:e.state,type:e.type})})}return w(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+vd(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,Td(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+vd(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+vd(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._urlChangeSubscription||(this._urlChangeSubscription=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}()).\u0275fac=function(e){return new(e||kd)(Ni(_d),Ni(ld))},kd.normalizeQueryParams=vd,kd.joinWithSlash=md,kd.stripTrailingSlash=gd,kd.\u0275prov=Le({factory:Ed,token:kd,providedIn:"root"}),kd);function Ed(){return new Od(Ni(_d),Ni(ld))}function Td(e){return e.replace(/\/index.html$/,"")}var Pd=function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e}({}),Dd=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),Md=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}({}),Id=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}({}),Rd=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}({}),Ld=function(e){return e[e.Decimal=0]="Decimal",e[e.Group=1]="Group",e[e.List=2]="List",e[e.PercentSign=3]="PercentSign",e[e.PlusSign=4]="PlusSign",e[e.MinusSign=5]="MinusSign",e[e.Exponential=6]="Exponential",e[e.SuperscriptingExponent=7]="SuperscriptingExponent",e[e.PerMille=8]="PerMille",e[e[1/0]=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup",e}({});function Fd(e,t){return zd(ul(e)[dl.DateFormat],t)}function Nd(e,t){return zd(ul(e)[dl.TimeFormat],t)}function Vd(e,t){return zd(ul(e)[dl.DateTimeFormat],t)}function Bd(e,t){var n=ul(e),i=n[dl.NumberSymbols][t];if(void 0===i){if(t===Ld.CurrencyDecimal)return n[dl.NumberSymbols][Ld.Decimal];if(t===Ld.CurrencyGroup)return n[dl.NumberSymbols][Ld.Group]}return i}function Hd(e){if(!e[dl.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(e[dl.LocaleId],'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.'))}function zd(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 Gd(e){var t=n(e.split(":"),2);return{hours:+t[0],minutes:+t[1]}}var jd=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ud={},Wd=/((?:[^GyYMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|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]*)/,qd=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}({}),Yd=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}({}),Qd=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}({});function Xd(e,t,i,r){var a=function(e){if(lh(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){var t=n(e.split("-").map(function(e){return+e}),3),i=t[0],r=t[1],a=void 0===r?1:r,o=t[2];return $d(i,a-1,void 0===o?1:o)}var s,l=parseFloat(e);if(!isNaN(e-l))return new Date(l);if(s=e.match(jd))return function(e){var t=new Date(0),n=0,i=0,r=e[8]?t.setUTCFullYear:t.setFullYear,a=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),i=Number(e[9]+e[11])),r.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));var o=Number(e[4]||0)-n,s=Number(e[5]||0)-i,l=Number(e[6]||0),u=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return a.call(t,o,s,l,u),t}(s)}var u=new Date(e);if(!lh(u))throw new Error('Unable to convert "'.concat(e,'" into a date'));return u}(e);t=Kd(i,t)||t;for(var o,s=[];t;){if(!(o=Wd.exec(t))){s.push(t);break}var l=(s=s.concat(o.slice(1))).pop();if(!l)break;t=l}var u=a.getTimezoneOffset();r&&(u=sh(r,u),a=function(e,t,n){var i=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(sh(t,i)-i))}(a,r));var c="";return s.forEach(function(e){var t=function(e){if(oh[e])return oh[e];var t;switch(e){case"G":case"GG":case"GGG":t=th(Qd.Eras,Id.Abbreviated);break;case"GGGG":t=th(Qd.Eras,Id.Wide);break;case"GGGGG":t=th(Qd.Eras,Id.Narrow);break;case"y":t=eh(Yd.FullYear,1,0,!1,!0);break;case"yy":t=eh(Yd.FullYear,2,0,!0,!0);break;case"yyy":t=eh(Yd.FullYear,3,0,!1,!0);break;case"yyyy":t=eh(Yd.FullYear,4,0,!1,!0);break;case"Y":t=ah(1);break;case"YY":t=ah(2,!0);break;case"YYY":t=ah(3);break;case"YYYY":t=ah(4);break;case"M":case"L":t=eh(Yd.Month,1,1);break;case"MM":case"LL":t=eh(Yd.Month,2,1);break;case"MMM":t=th(Qd.Months,Id.Abbreviated);break;case"MMMM":t=th(Qd.Months,Id.Wide);break;case"MMMMM":t=th(Qd.Months,Id.Narrow);break;case"LLL":t=th(Qd.Months,Id.Abbreviated,Md.Standalone);break;case"LLLL":t=th(Qd.Months,Id.Wide,Md.Standalone);break;case"LLLLL":t=th(Qd.Months,Id.Narrow,Md.Standalone);break;case"w":t=rh(1);break;case"ww":t=rh(2);break;case"W":t=rh(1,!0);break;case"d":t=eh(Yd.Date,1);break;case"dd":t=eh(Yd.Date,2);break;case"E":case"EE":case"EEE":t=th(Qd.Days,Id.Abbreviated);break;case"EEEE":t=th(Qd.Days,Id.Wide);break;case"EEEEE":t=th(Qd.Days,Id.Narrow);break;case"EEEEEE":t=th(Qd.Days,Id.Short);break;case"a":case"aa":case"aaa":t=th(Qd.DayPeriods,Id.Abbreviated);break;case"aaaa":t=th(Qd.DayPeriods,Id.Wide);break;case"aaaaa":t=th(Qd.DayPeriods,Id.Narrow);break;case"b":case"bb":case"bbb":t=th(Qd.DayPeriods,Id.Abbreviated,Md.Standalone,!0);break;case"bbbb":t=th(Qd.DayPeriods,Id.Wide,Md.Standalone,!0);break;case"bbbbb":t=th(Qd.DayPeriods,Id.Narrow,Md.Standalone,!0);break;case"B":case"BB":case"BBB":t=th(Qd.DayPeriods,Id.Abbreviated,Md.Format,!0);break;case"BBBB":t=th(Qd.DayPeriods,Id.Wide,Md.Format,!0);break;case"BBBBB":t=th(Qd.DayPeriods,Id.Narrow,Md.Format,!0);break;case"h":t=eh(Yd.Hours,1,-12);break;case"hh":t=eh(Yd.Hours,2,-12);break;case"H":t=eh(Yd.Hours,1);break;case"HH":t=eh(Yd.Hours,2);break;case"m":t=eh(Yd.Minutes,1);break;case"mm":t=eh(Yd.Minutes,2);break;case"s":t=eh(Yd.Seconds,1);break;case"ss":t=eh(Yd.Seconds,2);break;case"S":t=eh(Yd.FractionalSeconds,1);break;case"SS":t=eh(Yd.FractionalSeconds,2);break;case"SSS":t=eh(Yd.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=nh(qd.Short);break;case"ZZZZZ":t=nh(qd.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=nh(qd.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=nh(qd.Long);break;default:return null}return oh[e]=t,t}(e);c+=t?t(a,i,u):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function $d(e,t,n){var i=new Date(0);return i.setFullYear(e,t,n),i.setHours(0,0,0),i}function Kd(e,t){var n=function(e){return ul(e)[dl.LocaleId]}(e);if(Ud[n]=Ud[n]||{},Ud[n][t])return Ud[n][t];var i="";switch(t){case"shortDate":i=Fd(e,Rd.Short);break;case"mediumDate":i=Fd(e,Rd.Medium);break;case"longDate":i=Fd(e,Rd.Long);break;case"fullDate":i=Fd(e,Rd.Full);break;case"shortTime":i=Nd(e,Rd.Short);break;case"mediumTime":i=Nd(e,Rd.Medium);break;case"longTime":i=Nd(e,Rd.Long);break;case"fullTime":i=Nd(e,Rd.Full);break;case"short":var r=Kd(e,"shortTime"),a=Kd(e,"shortDate");i=Zd(Vd(e,Rd.Short),[r,a]);break;case"medium":var o=Kd(e,"mediumTime"),s=Kd(e,"mediumDate");i=Zd(Vd(e,Rd.Medium),[o,s]);break;case"long":var l=Kd(e,"longTime"),u=Kd(e,"longDate");i=Zd(Vd(e,Rd.Long),[l,u]);break;case"full":var c=Kd(e,"fullTime"),d=Kd(e,"fullDate");i=Zd(Vd(e,Rd.Full),[c,d])}return i&&(Ud[n][t]=i),i}function Zd(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(e,n){return null!=t&&n in t?t[n]:e})),e}function Jd(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",i=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,a="";(e<0||r&&e<=0)&&(r?e=1-e:(e=-e,a=n));for(var o=String(e);o.length2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(a,o){var s,l=function(e,t){switch(e){case Yd.FullYear:return t.getFullYear();case Yd.Month:return t.getMonth();case Yd.Date:return t.getDate();case Yd.Hours:return t.getHours();case Yd.Minutes:return t.getMinutes();case Yd.Seconds:return t.getSeconds();case Yd.FractionalSeconds:return t.getMilliseconds();case Yd.Day:return t.getDay();default:throw new Error('Unknown DateType value "'.concat(e,'".'))}}(e,a);if((n>0||l>-n)&&(l+=n),e===Yd.Hours)0===l&&-12===n&&(l=12);else if(e===Yd.FractionalSeconds)return s=t,Jd(l,3).substr(0,s);var u=Bd(o,Ld.MinusSign);return Jd(l,t,u,i,r)}}function th(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Md.Format,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(a,o){return function(e,t,i,r,a,o){switch(i){case Qd.Months:return function(e,t,n){var i=ul(e),r=zd([i[dl.MonthsFormat],i[dl.MonthsStandalone]],t);return zd(r,n)}(t,a,r)[e.getMonth()];case Qd.Days:return function(e,t,n){var i=ul(e),r=zd([i[dl.DaysFormat],i[dl.DaysStandalone]],t);return zd(r,n)}(t,a,r)[e.getDay()];case Qd.DayPeriods:var s=e.getHours(),l=e.getMinutes();if(o){var u=function(e){var t=ul(e);return Hd(t),(t[dl.ExtraData][2]||[]).map(function(e){return"string"==typeof e?Gd(e):[Gd(e[0]),Gd(e[1])]})}(t),c=function(e,t,n){var i=ul(e);Hd(i);var r=zd([i[dl.ExtraData][0],i[dl.ExtraData][1]],t)||[];return zd(r,n)||[]}(t,a,r),d=u.findIndex(function(e){if(Array.isArray(e)){var t=n(e,2),i=t[0],r=t[1],a=s>=i.hours&&l>=i.minutes,o=s0?Math.floor(r/60):Math.ceil(r/60);switch(e){case qd.Short:return(r>=0?"+":"")+Jd(o,2,a)+Jd(Math.abs(r%60),2,a);case qd.ShortGMT:return"GMT"+(r>=0?"+":"")+Jd(o,1,a);case qd.Long:return"GMT"+(r>=0?"+":"")+Jd(o,2,a)+":"+Jd(Math.abs(r%60),2,a);case qd.Extended:return 0===i?"Z":(r>=0?"+":"")+Jd(o,2,a)+":"+Jd(Math.abs(r%60),2,a);default:throw new Error('Unknown zone width "'.concat(e,'"'))}}}function ih(e){return $d(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function rh(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,i){var r,a,o;if(t){var s=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,l=n.getDate();r=1+Math.floor((l+s)/7)}else{var u=ih(n),c=(a=u.getFullYear(),o=$d(a,0,1).getDay(),$d(a,0,1+(o<=4?4:11)-o)),d=u.getTime()-c.getTime();r=1+Math.round(d/6048e5)}return Jd(r,e,Bd(i,Ld.MinusSign))}}function ah(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,i){return Jd(ih(n).getFullYear(),e,Bd(i,Ld.MinusSign),t)}}var oh={};function sh(e,t){e=e.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function lh(e){return e instanceof Date&&!isNaN(e.valueOf())}var uh=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function ch(e){var t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}var dh,hh=function e(){b(this,e)},fh=((dh=function(e){f(n,e);var t=m(n);function n(e){var i;return b(this,n),(i=t.call(this)).locale=e,i}return w(n,[{key:"getPluralCategory",value:function(e,t){switch(function(e){return ul(e)[dl.PluralCase]}(t||this.locale)(e)){case Dd.Zero:return"zero";case Dd.One:return"one";case Dd.Two:return"two";case Dd.Few:return"few";case Dd.Many:return"many";default:return"other"}}}]),n}(hh)).\u0275fac=function(e){return new(e||dh)(Ni(mc))},dh.\u0275prov=Le({token:dh,factory:dh.\u0275fac}),dh);function ph(e,t){t=encodeURIComponent(t);var i,r=s(e.split(";"));try{for(r.s();!(i=r.n()).done;){var a=i.value,o=a.indexOf("="),l=n(-1==o?[a,""]:[a.slice(0,o),a.slice(o+1)],2),u=l[0],c=l[1];if(u.trim()===t)return decodeURIComponent(c)}}catch(d){r.e(d)}finally{r.f()}return null}var mh,gh,vh,yh=((mh=function(){function e(t,n,i,r){b(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=i,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return w(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&&(Ko(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{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(Se(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)})}}]),e}()).\u0275fac=function(e){return new(e||mh)(ls(ql),ls(Ql),ls(Ol),ls(Pl))},mh.\u0275dir=bt({type:mh,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),mh),_h=function(){function e(t,n,i,r){b(this,e),this.$implicit=t,this.ngForOf=n,this.index=i,this.count=r}return w(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}(),bh=((gh=function(){function e(t,n,i){b(this,e),this._viewContainer=t,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return w(e,[{key:"ngForOf",set:function(e){this._ngForOf=e,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"ngForTemplate",set:function(e){e&&(this._template=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(i){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,i,r){if(null==e.previousIndex){var a=t._viewContainer.createEmbeddedView(t._template,new _h(null,t._ngForOf,-1,-1),null===r?void 0:r),o=new kh(e,a);n.push(o)}else if(null==r)t._viewContainer.remove(null===i?void 0:i);else if(null!==i){var s=t._viewContainer.get(i);t._viewContainer.move(s,r);var l=new kh(e,s);n.push(l)}});for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:qe.Default,t=eu(!0);if(null!=t||e&qe.Optional)return t;Re("ChangeDetectorRef")}())},Nh.\u0275pipe=kt({name:"async",type:Nh,pure:!1}),Nh),Yh=/(?:[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,Qh=((Gh=function(){function e(){b(this,e)}return w(e,[{key:"transform",value:function(t){if(null==t)return null;if("string"!=typeof t)throw Fh(e,t);return t.replace(Yh,function(e){return e[0].toUpperCase()+e.substr(1).toLowerCase()})}}]),e}()).\u0275fac=function(e){return new(e||Gh)},Gh.\u0275pipe=kt({name:"titlecase",type:Gh,pure:!0}),Gh),Xh=((zh=function(){function e(){b(this,e)}return w(e,[{key:"transform",value:function(t){if(null==t)return null;if("string"!=typeof t)throw Fh(e,t);return t.toUpperCase()}}]),e}()).\u0275fac=function(e){return new(e||zh)},zh.\u0275pipe=kt({name:"uppercase",type:zh,pure:!0}),zh),$h=((Hh=function(){function e(t){b(this,e),this.locale=t}return w(e,[{key:"transform",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mediumDate",i=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if(null==t||""===t||t!=t)return null;try{return Xd(t,n,r||this.locale,i)}catch(a){throw Fh(e,a.message)}}}]),e}()).\u0275fac=function(e){return new(e||Hh)(ls(mc))},Hh.\u0275pipe=kt({name:"date",type:Hh,pure:!0}),Hh),Kh=((Bh=function(){function e(t){b(this,e),this._locale=t}return w(e,[{key:"transform",value:function(t,n,i){if(!function(e){return!(null==e||""===e||e!=e)}(t))return null;i=i||this._locale;try{return function(e,t,n){return function(e,t,n,i,r,a){var o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s="",l=!1;if(isFinite(e)){var u=function(e){var t,n,i,r,a,o=Math.abs(e)+"",s=0;for((n=o.indexOf("."))>-1&&(o=o.replace(".","")),(i=o.search(/e/i))>0?(n<0&&(n=i),n+=+o.slice(i+1),o=o.substring(0,i)):n<0&&(n=o.length),i=0;"0"===o.charAt(i);i++);if(i===(a=o.length))t=[0],n=1;else{for(a--;"0"===o.charAt(a);)a--;for(n-=i,t=[],r=0;i<=a;i++,r++)t[r]=Number(o.charAt(i))}return n>22&&(t=t.splice(0,21),s=n-1,n=1),{digits:t,exponent:s,integerLen:n}}(e);o&&(u=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}(u));var c=t.minInt,d=t.minFrac,h=t.maxFrac;if(a){var f=a.match(uh);if(null===f)throw new Error("".concat(a," is not a valid digit info"));var p=f[1],m=f[3],g=f[5];null!=p&&(c=ch(p)),null!=m&&(d=ch(m)),null!=g?h=ch(g):null!=m&&d>h&&(h=d)}!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 i=e.digits,r=i.length-e.integerLen,a=Math.min(Math.max(t,r),n),o=a+e.integerLen,s=i[o];if(o>0){i.splice(Math.max(e.integerLen,o));for(var l=o;l=5)if(o-1<0){for(var c=0;c>o;c--)i.unshift(0),e.integerLen++;i.unshift(1),e.integerLen++}else i[o-1]++;for(;r=h?i.pop():d=!1),t>=10?1:0},0);f&&(i.unshift(f),e.integerLen++)}(u,d,h);var v=u.digits,y=u.integerLen,_=u.exponent,b=[];for(l=v.every(function(e){return!e});y0?b=v.splice(y,v.length):(b=v,v=[0]);var k=[];for(v.length>=t.lgSize&&k.unshift(v.splice(-t.lgSize,v.length).join(""));v.length>t.gSize;)k.unshift(v.splice(-t.gSize,v.length).join(""));v.length&&k.unshift(v.join("")),s=k.join(Bd(n,i)),b.length&&(s+=Bd(n,r)+b.join("")),_&&(s+=Bd(n,Ld.Exponential)+"+"+_)}else s=Bd(n,Ld.Infinity);return s=e<0&&!l?t.negPre+s+t.negSuf:t.posPre+s+t.posSuf}(e,function(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},i=e.split(";"),r=i[0],a=i[1],o=-1!==r.indexOf(".")?r.split("."):[r.substring(0,r.lastIndexOf("0")+1),r.substring(r.lastIndexOf("0")+1)],s=o[0],l=o[1]||"";n.posPre=s.substr(0,s.indexOf("#"));for(var u=0;u1&&void 0!==arguments[1])||arguments[1],i=e.findTestabilityInTree(t,n);if(null==i)throw new Error("Could not find testability for element.");return i},nt.getAllAngularTestabilities=function(){return e.getAllTestabilities()},nt.getAllAngularRootElements=function(){return e.getAllRootElements()},nt.frameworkStabilizers||(nt.frameworkStabilizers=[]),nt.frameworkStabilizers.push(function(e){var t=nt.getAllAngularTestabilities(),n=t.length,i=!1,r=function(t){i=i||t,0==--n&&e(i)};t.forEach(function(e){e.whenStable(r)})})}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var i=e.getTestability(t);return null!=i?i:n?ad().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){var t;t=new e,Nc=t}}]),e}(),mf=new _i("EventManagerPlugins"),gf=((sf=function(){function e(t,n){var i=this;b(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(e){return e.manager=i}),this._plugins=t.slice().reverse()}return w(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,i=0;i-1&&(t.splice(n,1),a+=e+".")}),a+=r,0!=t.length||0===r.length)return null;var o={};return o.domEventName=i,o.fullKey=a,o}},{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&&Nf.hasOwnProperty(t)&&(t=Nf[t]))}return Ff[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Lf.forEach(function(i){i!=n&&(0,Vf[i])(e)&&(t+=i+".")}),t+=n}},{key:"eventCallback",value:function(e,t,i){return function(r){n.getEventFullKey(r)===e&&i.runGuarded(function(){return t(r)})}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(vf)).\u0275fac=function(e){return new(e||Ef)(Ni(sd))},Ef.\u0275prov=Le({token:Ef,factory:Ef.\u0275fac}),Ef),Hf=((Of=function e(){b(this,e)}).\u0275fac=function(e){return new(e||Of)},Of.\u0275prov=Le({factory:function(){return Ni(zf)},token:Of,providedIn:"root"}),Of),zf=((Af=function(e){f(n,e);var t=m(n);function n(e){var i;return b(this,n),(i=t.call(this))._doc=e,i}return w(n,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case Er.NONE:return t;case Er.HTML:return ir(t,"HTML")?nr(t):Ar(this._doc,String(t)).toString();case Er.STYLE:return ir(t,"Style")?nr(t):t;case Er.SCRIPT:if(ir(t,"Script"))return nr(t);throw new Error("unsafe value used in a script context");case Er.URL:return rr(t),ir(t,"URL")?nr(t):ur(String(t));case Er.RESOURCE_URL:if(ir(t,"ResourceURL"))return nr(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(e," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return new Ki(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return new Zi(e)}},{key:"bypassSecurityTrustScript",value:function(e){return new Ji(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return new er(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return new tr(e)}}]),n}(Hf)).\u0275fac=function(e){return new(e||Af)(Ni(sd))},Af.\u0275prov=Le({factory:function(){return e=Ni(Ao),new zf(e.get(sd));var e},token:Af,providedIn:"root"}),Af),Gf=jc(td,"browser",[{provide:hc,useValue:"browser"},{provide:dc,useValue:function(){cf.makeCurrent(),pf.init()},multi:!0},{provide:sd,useFactory:function(){return function(e){Dt=e}(document),document},deps:[]}]),jf=[[],{provide:Eo,useValue:"root"},{provide:Fr,useFactory:function(){return new Fr},deps:[]},{provide:mf,useClass:Rf,multi:!0,deps:[sd,Oc,hc]},{provide:mf,useClass:Bf,multi:!0,deps:[sd]},[],{provide:Pf,useClass:Pf,deps:[gf,_f,lc]},{provide:Tl,useExisting:Pf},{provide:yf,useExisting:_f},{provide:_f,useClass:_f,deps:[sd]},{provide:Lc,useClass:Lc,deps:[Oc]},{provide:gf,useClass:gf,deps:[mf,Oc]},[]],Uf=((Tf=function(){function e(t){if(b(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 w(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:lc,useValue:t.appId},{provide:hf,useExisting:lc},ff]}}}]),e}()).\u0275fac=function(e){return new(e||Tf)(Ni(Tf,12))},Tf.\u0275mod=yt({type:Tf}),Tf.\u0275inj=Ne({providers:jf,imports:[Zh,id]}),Tf);function Wf(){return new Yf(Ni(sd))}var qf,Yf=((qf=function(){function e(t){b(this,e),this._doc=t,this._dom=ad()}return w(e,[{key:"addTag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?this._getOrCreateElement(e,t):null}},{key:"addTags",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?e.reduce(function(e,i){return i&&e.push(t._getOrCreateElement(i,n)),e},[]):[]}},{key:"getTag",value:function(e){return e&&this._doc.querySelector("meta[".concat(e,"]"))||null}},{key:"getTags",value:function(e){if(!e)return[];var t=this._doc.querySelectorAll("meta[".concat(e,"]"));return t?[].slice.call(t):[]}},{key:"updateTag",value:function(e,t){if(!e)return null;t=t||this._parseSelector(e);var n=this.getTag(t);return n?this._setMetaElementAttributes(e,n):this._getOrCreateElement(e,!0)}},{key:"removeTag",value:function(e){this.removeTagElement(this.getTag(e))}},{key:"removeTagElement",value:function(e){e&&this._dom.remove(e)}},{key:"_getOrCreateElement",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t){var n=this._parseSelector(e),i=this.getTag(n);if(i&&this._containsAttributes(e,i))return i}var r=this._dom.createElement("meta");return this._setMetaElementAttributes(e,r),this._doc.getElementsByTagName("head")[0].appendChild(r),r}},{key:"_setMetaElementAttributes",value:function(e,t){var n=this;return Object.keys(e).forEach(function(i){return t.setAttribute(n._getMetaKeyMap(i),e[i])}),t}},{key:"_parseSelector",value:function(e){var t=e.name?"name":"property";return"".concat(t,'="').concat(e[t],'"')}},{key:"_containsAttributes",value:function(e,t){var n=this;return Object.keys(e).every(function(i){return t.getAttribute(n._getMetaKeyMap(i))===e[i]})}},{key:"_getMetaKeyMap",value:function(e){return Qf[e]||e}}]),e}()).\u0275fac=function(e){return new(e||qf)(Ni(sd))},qf.\u0275prov=Le({factory:Wf,token:qf,providedIn:"root"}),qf),Qf={httpEquiv:"http-equiv"};function Xf(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r=0;s--)(r=e[s])&&(o=(a<3?r(o):a>3?r(t,n,o):r(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o}function Kf(e,t){return function(n,i){t(n,i,e)}}function Zf(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function Jf(e,t,n,i){return new(n||(n=Promise))(function(r,a){function o(e){try{l(i.next(e))}catch(t){a(t)}}function s(e){try{l(i.throw(e))}catch(t){a(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((i=i.apply(e,t||[])).next())})}"undefined"!=typeof window&&window;var ep=function(e){f(n,e);var t=m(n);function n(e){var i;return b(this,n),(i=t.call(this))._value=e,i}return w(n,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(e){var t=h(_(n.prototype),"_subscribe",this).call(this,e);return t&&!t.closed&&e.next(this._value),t}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new H;return this._value}},{key:"next",value:function(e){h(_(n.prototype),"next",this).call(this,this._value=e)}}]),n}(j),tp=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r.pending=!1,r}return w(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n,i=!1;try{this.work(e)}catch(r){i=!0,n=!!r&&r||new Error(r)}if(i)return this.unsubscribe(),n}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),n}(function(e){f(n,e);var t=m(n);function n(e,i){return b(this,n),t.call(this)}return w(n,[{key:"schedule",value:function(e){return this}}]),n}(O)),np=function(){var e=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;b(this,e),this.SchedulerAction=t,this.now=n}return w(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}]),e}();return e.now=function(){return Date.now()},e}(),ip=function(e){f(n,e);var t=m(n);function n(e){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:np.now;return b(this,n),(i=t.call(this,e,function(){return n.delegate&&n.delegate!==v(i)?n.delegate.now():r()})).actions=[],i.active=!1,i.scheduled=void 0,i}return w(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,t,i):h(_(n.prototype),"schedule",this).call(this,e,t,i)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}]),n}(np),rp=new ip(tp);function ap(e){return!C(e)&&e-parseFloat(e)+1>=0}function op(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=-1;return ap(t)?i=Number(t)<1?1:Number(t):W(t)&&(n=t),W(n)||(n=rp),new N(function(t){var r=ap(e)?e:+e-n.now();return n.schedule(sp,r,{index:0,period:i,subscriber:t})})}function sp(e){var t=e.index,n=e.period,i=e.subscriber;if(i.next(t),!i.closed){if(-1===n)return i.complete();e.index=t+1,this.schedule(e,n)}}function lp(e,t,n){return n?lp(e,t).pipe(q(function(e){return C(e)?n.apply(void 0,a(e)):n(e)})):new N(function(n){var i,r=function(){for(var e=arguments.length,t=new Array(e),i=0;i1&&void 0!==arguments[1]?arguments[1]:0;return t>0?h(_(n.prototype),"schedule",this).call(this,e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}},{key:"execute",value:function(e,t){return t>0||this.closed?h(_(n.prototype),"execute",this).call(this,e,t):this._execute(e,t)}},{key:"requestAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0||null===i&&this.delay>0?h(_(n.prototype),"requestAsyncId",this).call(this,e,t,i):e.flush(this)}}]),n}(tp),cp=new(function(e){f(n,e);var t=m(n);function n(){return b(this,n),t.apply(this,arguments)}return n}(ip))(up),dp=new N(function(e){return e.complete()});function hp(e){return e?function(e){return new N(function(t){return e.schedule(function(){return t.complete()})})}(e):dp}function fp(){for(var e=arguments.length,t=new Array(e),n=0;n2&&void 0!==arguments[2]?arguments[2]:0;return b(this,n),(r=t.call(this,e)).scheduler=i,r.delay=a,r}return w(n,[{key:"scheduleMessage",value:function(e){this.destination.add(this.scheduler.schedule(n.dispatch,this.delay,new _p(e,this.destination)))}},{key:"_next",value:function(e){this.scheduleMessage(vp.createNext(e))}},{key:"_error",value:function(e){this.scheduleMessage(vp.createError(e)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(vp.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()}}]),n}(P),_p=function e(t,n){b(this,e),this.notification=t,this.destination=n},bp=function(e){f(n,e);var t=m(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,a=arguments.length>2?arguments[2]:void 0;return b(this,n),(e=t.call(this)).scheduler=a,e._events=[],e._infiniteTimeWindow=!1,e._bufferSize=i<1?1:i,e._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(e._infiniteTimeWindow=!0,e.next=e.nextInfiniteTimeWindow):e.next=e.nextTimeWindow,e}return w(n,[{key:"nextInfiniteTimeWindow",value:function(e){if(!this.isStopped){var t=this._events;t.push(e),t.length>this._bufferSize&&t.shift()}h(_(n.prototype),"next",this).call(this,e)}},{key:"nextTimeWindow",value:function(e){this.isStopped||(this._events.push(new kp(this._getNow(),e)),this._trimBufferThenGetEvents()),h(_(n.prototype),"next",this).call(this,e)}},{key:"_subscribe",value:function(e){var t,n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,a=i.length;if(this.closed)throw new H;if(this.isStopped||this.hasError?t=O.EMPTY:(this.observers.push(e),t=new z(this,e)),r&&e.add(e=new yp(e,r)),n)for(var o=0;ot&&(a=Math.max(a,r-t)),a>0&&i.splice(0,a),i}}]),n}(j),kp=function e(t,n){b(this,e),this.time=t,this.value=n},wp=function(){function e(t){b(this,e),this.notifier=t}return w(e,[{key:"call",value:function(e,t){var n=new Cp(e),i=t.subscribe(n);return i.add(re(this.notifier,new ne(n))),i}}]),e}(),Cp=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments)).hasValue=!1,e}return w(n,[{key:"_next",value:function(e){this.value=e,this.hasValue=!0}},{key:"notifyNext",value:function(){this.emitValue()}},{key:"notifyComplete",value:function(){this.emitValue()}},{key:"emitValue",value:function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))}}]),n}(ie);function xp(e,t){return"function"==typeof t?function(n){return n.pipe(xp(function(n,i){return te(e(n,i)).pipe(q(function(e,r){return t(n,e,i,r)}))}))}:function(t){return t.lift(new Sp(e))}}var Sp=function(){function e(t){b(this,e),this.project=t}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new Ap(e,this.project))}}]),e}(),Ap=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this,e)).project=i,r.index=0,r}return w(n,[{key:"_next",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=this.innerSubscription;t&&t.unsubscribe();var n=new ne(this),i=this.destination;i.add(n),this.innerSubscription=re(e,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}},{key:"_complete",value:function(){var e=this.innerSubscription;e&&!e.closed||h(_(n.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=void 0}},{key:"notifyComplete",value:function(){this.innerSubscription=void 0,this.isStopped&&h(_(n.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(e){this.destination.next(e)}}]),n}(ie);function Op(e,t){return function(n){return n.lift(new Ep(e,t))}}var Ep=function(){function e(t,n){b(this,e),this.compare=t,this.keySelector=n}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new Tp(e,this.compare,this.keySelector))}}]),e}(),Tp=function(e){f(n,e);var t=m(n);function n(e,i,r){var a;return b(this,n),(a=t.call(this,e)).keySelector=r,a.hasKey=!1,"function"==typeof i&&(a.compare=i),a}return w(n,[{key:"compare",value:function(e,t){return e===t}},{key:"_next",value:function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(r){return this.destination.error(r)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,t)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))}}]),n}(P);function Pp(e){return function(t){return t.lift(new Dp(e))}}var Dp=function(){function e(t){b(this,e),this.notifier=t}return w(e,[{key:"call",value:function(e,t){var n=new Mp(e),i=re(this.notifier,new ne(n));return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n}}]),e}(),Mp=function(e){f(n,e);var t=m(n);function n(e){var i;return b(this,n),(i=t.call(this,e)).seenValue=!1,i}return w(n,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),n}(ie);function Ip(){return ue(1)(fp.apply(void 0,arguments))}function Rp(){for(var e=arguments.length,t=new Array(e),n=0;nthis.total&&this.destination.next(e)}}]),n}(P),Kp=["*"],Zp=((Bp=function e(){b(this,e)}).\u0275fac=function(e){return new(e||Bp)},Bp.\u0275prov=Le({token:Bp,factory:function(e){return Bp.\u0275fac(e)}}),Bp),Jp=((Vp=function(){function e(t,n){var i=this;b(this,e),this._loader=t,this._zone=n,this._map=new Promise(function(e){i._mapResolver=e})}return w(e,[{key:"createMap",value:function(e,t){var n=this;return this._zone.runOutsideAngular(function(){return n._loader.load().then(function(){var i=new google.maps.Map(e,t);n._mapResolver(i)})})}},{key:"setMapOptions",value:function(e){var t=this;return this._zone.runOutsideAngular(function(){t._map.then(function(t){t.setOptions(e)})})}},{key:"createMarker",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this._zone.runOutsideAngular(function(){return e._map.then(function(e){return n&&(t.map=e),new google.maps.Marker(t)})})}},{key:"createInfoWindow",value:function(e){var t=this;return this._zone.runOutsideAngular(function(){return t._map.then(function(){return new google.maps.InfoWindow(e)})})}},{key:"createCircle",value:function(e){var t=this;return this._zone.runOutsideAngular(function(){return t._map.then(function(t){return"string"==typeof e.strokePosition&&(e.strokePosition=google.maps.StrokePosition[e.strokePosition]),e.map=t,new google.maps.Circle(e)})})}},{key:"createRectangle",value:function(e){var t=this;return this._zone.runOutsideAngular(function(){return t._map.then(function(t){return e.map=t,new google.maps.Rectangle(e)})})}},{key:"createPolyline",value:function(e){var t=this;return this._zone.runOutsideAngular(function(){return t.getNativeMap().then(function(t){var n=new google.maps.Polyline(e);return n.setMap(t),n})})}},{key:"createPolygon",value:function(e){var t=this;return this._zone.runOutsideAngular(function(){return t.getNativeMap().then(function(t){var n=new google.maps.Polygon(e);return n.setMap(t),n})})}},{key:"createDataLayer",value:function(e){var t=this;return this._zone.runOutsideAngular(function(){return t._map.then(function(t){var n=new google.maps.Data(e);return n.setMap(t),n})})}},{key:"createTransitLayer",value:function(e){var t=this;return this._zone.runOutsideAngular(function(){return t._map.then(function(t){var n=new google.maps.TransitLayer;return n.setMap(e.visible?t:null),n})})}},{key:"createBicyclingLayer",value:function(e){var t=this;return this._zone.runOutsideAngular(function(){return t._map.then(function(t){var n=new google.maps.BicyclingLayer;return n.setMap(e.visible?t:null),n})})}},{key:"containsLocation",value:function(e,t){return google.maps.geometry.poly.containsLocation(e,t)}},{key:"subscribeToMapEvent",value:function(e){var t=this;return new N(function(n){t._map.then(function(i){i.addListener(e,function(e){t._zone.run(function(){return n.next(e)})})})})}},{key:"clearInstanceListeners",value:function(){var e=this;return this._zone.runOutsideAngular(function(){e._map.then(function(e){google.maps.event.clearInstanceListeners(e)})})}},{key:"setCenter",value:function(e){var t=this;return this._zone.runOutsideAngular(function(){return t._map.then(function(t){return t.setCenter(e)})})}},{key:"getZoom",value:function(){var e=this;return this._zone.runOutsideAngular(function(){return e._map.then(function(e){return e.getZoom()})})}},{key:"getBounds",value:function(){var e=this;return this._zone.runOutsideAngular(function(){return e._map.then(function(e){return e.getBounds()})})}},{key:"getMapTypeId",value:function(){var e=this;return this._zone.runOutsideAngular(function(){return e._map.then(function(e){return e.getMapTypeId()})})}},{key:"setZoom",value:function(e){var t=this;return this._zone.runOutsideAngular(function(){return t._map.then(function(t){return t.setZoom(e)})})}},{key:"getCenter",value:function(){var e=this;return this._zone.runOutsideAngular(function(){return e._map.then(function(e){return e.getCenter()})})}},{key:"panTo",value:function(e){var t=this;return this._zone.runOutsideAngular(function(){return t._map.then(function(t){return t.panTo(e)})})}},{key:"panBy",value:function(e,t){var n=this;return this._zone.runOutsideAngular(function(){return n._map.then(function(n){return n.panBy(e,t)})})}},{key:"fitBounds",value:function(e,t){var n=this;return this._zone.runOutsideAngular(function(){return n._map.then(function(n){return n.fitBounds(e,t)})})}},{key:"panToBounds",value:function(e,t){var n=this;return this._zone.runOutsideAngular(function(){return n._map.then(function(n){return n.panToBounds(e,t)})})}},{key:"getNativeMap",value:function(){return this._map}},{key:"triggerMapEvent",value:function(e){return this._map.then(function(t){return google.maps.event.trigger(t,e)})}}]),e}()).\u0275fac=function(e){return new(e||Vp)(Ni(Zp),Ni(Oc))},Vp.\u0275prov=Le({token:Vp,factory:function(e){return Vp.\u0275fac(e)}}),Vp=$f([Zf("design:paramtypes",[Zp,Oc])],Vp)),em=((Np=function(){function e(t){b(this,e),this._wrapper=t,this._layers=new Map}return w(e,[{key:"addTransitLayer",value:function(e,t){var n=this._wrapper.createTransitLayer(t);this._layers.set(e,n)}},{key:"addBicyclingLayer",value:function(e,t){var n=this._wrapper.createBicyclingLayer(t);this._layers.set(e,n)}},{key:"deleteLayer",value:function(e){var t=this;return this._layers.get(e).then(function(n){n.setMap(null),t._layers.delete(e)})}},{key:"toggleLayerVisibility",value:function(e,t){var n=this;return this._layers.get(e).then(function(e){return t.visible?n._wrapper.getNativeMap().then(function(t){e.setMap(t)}):void e.setMap(null)})}}]),e}()).\u0275fac=function(e){return new(e||Np)(Ni(Jp))},Np.\u0275prov=Le({token:Np,factory:function(e){return Np.\u0275fac(e)}}),Np=$f([Zf("design:paramtypes",[Jp])],Np)),tm=((Fp=function(){function e(t,n){b(this,e),this._apiWrapper=t,this._zone=n,this._circles=new Map}return w(e,[{key:"addCircle",value:function(e){this._circles.set(e,this._apiWrapper.createCircle({center:{lat:e.latitude,lng:e.longitude},clickable:e.clickable,draggable:e.draggable,editable:e.editable,fillColor:e.fillColor,fillOpacity:e.fillOpacity,radius:e.radius,strokeColor:e.strokeColor,strokeOpacity:e.strokeOpacity,strokePosition:e.strokePosition,strokeWeight:e.strokeWeight,visible:e.visible,zIndex:e.zIndex}))}},{key:"removeCircle",value:function(e){var t=this;return this._circles.get(e).then(function(n){n.setMap(null),t._circles.delete(e)})}},{key:"setOptions",value:function(e,t){return this._circles.get(e).then(function(e){"string"==typeof t.strokePosition&&(t.strokePosition=google.maps.StrokePosition[t.strokePosition]),e.setOptions(t)})}},{key:"getBounds",value:function(e){return this._circles.get(e).then(function(e){return e.getBounds()})}},{key:"getCenter",value:function(e){return this._circles.get(e).then(function(e){return e.getCenter()})}},{key:"getRadius",value:function(e){return this._circles.get(e).then(function(e){return e.getRadius()})}},{key:"setCenter",value:function(e){return this._circles.get(e).then(function(t){return t.setCenter({lat:e.latitude,lng:e.longitude})})}},{key:"setEditable",value:function(e){return this._circles.get(e).then(function(t){return t.setEditable(e.editable)})}},{key:"setDraggable",value:function(e){return this._circles.get(e).then(function(t){return t.setDraggable(e.draggable)})}},{key:"setVisible",value:function(e){return this._circles.get(e).then(function(t){return t.setVisible(e.visible)})}},{key:"setRadius",value:function(e){return this._circles.get(e).then(function(t){return t.setRadius(e.radius)})}},{key:"getNativeCircle",value:function(e){return this._circles.get(e)}},{key:"createEventObservable",value:function(e,t){var n=this;return new N(function(i){var r=null;return n._circles.get(t).then(function(t){r=t.addListener(e,function(e){return n._zone.run(function(){return i.next(e)})})}),function(){null!==r&&r.remove()}})}}]),e}()).\u0275fac=function(e){return new(e||Fp)(Ni(Jp),Ni(Oc))},Fp.\u0275prov=Le({token:Fp,factory:function(e){return Fp.\u0275fac(e)}}),Fp=$f([Zf("design:paramtypes",[Jp,Oc])],Fp)),nm=((Gp=Hp=function(){function e(t){b(this,e),this._manager=t,this.clickable=!0,this.draggable=!1,this.editable=!1,this.radius=0,this.strokePosition="CENTER",this.strokeWeight=0,this.visible=!0,this.centerChange=new Vu,this.circleClick=new Vu,this.circleDblClick=new Vu,this.drag=new Vu,this.dragEnd=new Vu,this.dragStart=new Vu,this.mouseDown=new Vu,this.mouseMove=new Vu,this.mouseOut=new Vu,this.mouseOver=new Vu,this.mouseUp=new Vu,this.radiusChange=new Vu,this.rightClick=new Vu,this._circleAddedToManager=!1,this._eventSubscriptions=[]}return w(e,[{key:"ngOnInit",value:function(){this._manager.addCircle(this),this._circleAddedToManager=!0,this._registerEventListeners()}},{key:"ngOnChanges",value:function(e){this._circleAddedToManager&&((e.latitude||e.longitude)&&this._manager.setCenter(this),e.editable&&this._manager.setEditable(this),e.draggable&&this._manager.setDraggable(this),e.visible&&this._manager.setVisible(this),e.radius&&this._manager.setRadius(this),this._updateCircleOptionsChanges(e))}},{key:"_updateCircleOptionsChanges",value:function(e){var t={},n=Object.keys(e).filter(function(e){return-1!==Hp._mapOptions.indexOf(e)});n.forEach(function(n){t[n]=e[n].currentValue}),n.length>0&&this._manager.setOptions(this,t)}},{key:"_registerEventListeners",value:function(){var e=this,t=new Map;t.set("center_changed",this.centerChange),t.set("click",this.circleClick),t.set("dblclick",this.circleDblClick),t.set("drag",this.drag),t.set("dragend",this.dragEnd),t.set("dragstart",this.dragStart),t.set("mousedown",this.mouseDown),t.set("mousemove",this.mouseMove),t.set("mouseout",this.mouseOut),t.set("mouseover",this.mouseOver),t.set("mouseup",this.mouseUp),t.set("radius_changed",this.radiusChange),t.set("rightclick",this.rightClick),t.forEach(function(t,n){e._eventSubscriptions.push(e._manager.createEventObservable(n,e).subscribe(function(i){switch(n){case"radius_changed":e._manager.getRadius(e).then(function(e){return t.emit(e)});break;case"center_changed":e._manager.getCenter(e).then(function(e){return t.emit({lat:e.lat(),lng:e.lng()})});break;default:t.emit({coords:{lat:i.latLng.lat(),lng:i.latLng.lng()}})}}))})}},{key:"ngOnDestroy",value:function(){this._eventSubscriptions.forEach(function(e){e.unsubscribe()}),this._eventSubscriptions=null,this._manager.removeCircle(this)}},{key:"getBounds",value:function(){return this._manager.getBounds(this)}},{key:"getCenter",value:function(){return this._manager.getCenter(this)}}]),e}()).\u0275fac=function(e){return new(e||Gp)(ls(tm))},Gp.\u0275dir=bt({type:Gp,selectors:[["agm-circle"]],inputs:{clickable:"clickable",draggable:["circleDraggable","draggable"],editable:"editable",radius:"radius",strokePosition:"strokePosition",strokeWeight:"strokeWeight",visible:"visible",latitude:"latitude",longitude:"longitude",fillColor:"fillColor",fillOpacity:"fillOpacity",strokeColor:"strokeColor",strokeOpacity:"strokeOpacity",zIndex:"zIndex"},outputs:{centerChange:"centerChange",circleClick:"circleClick",circleDblClick:"circleDblClick",drag:"drag",dragEnd:"dragEnd",dragStart:"dragStart",mouseDown:"mouseDown",mouseMove:"mouseMove",mouseOut:"mouseOut",mouseOver:"mouseOver",mouseUp:"mouseUp",radiusChange:"radiusChange",rightClick:"rightClick"},features:[It]}),Gp._mapOptions=["fillColor","fillOpacity","strokeColor","strokeOpacity","strokePosition","strokeWeight","visible","zIndex","clickable"],Gp=Hp=$f([Zf("design:paramtypes",[tm])],Gp)),im=((zp=function(){function e(t,n){b(this,e),this._wrapper=t,this._zone=n,this._layers=new Map}return w(e,[{key:"addDataLayer",value:function(e){var t=this,n=this._wrapper.createDataLayer({style:e.style}).then(function(n){return e.geoJson&&t.getDataFeatures(n,e.geoJson).then(function(e){return n.features=e}),n});this._layers.set(e,n)}},{key:"deleteDataLayer",value:function(e){var t=this;this._layers.get(e).then(function(n){n.setMap(null),t._layers.delete(e)})}},{key:"updateGeoJson",value:function(e,t){var n=this;this._layers.get(e).then(function(e){e.forEach(function(t){e.remove(t);var n=e.features.indexOf(t,0);n>-1&&e.features.splice(n,1)}),n.getDataFeatures(e,t).then(function(t){return e.features=t})})}},{key:"setDataOptions",value:function(e,t){this._layers.get(e).then(function(e){e.setControlPosition(t.controlPosition),e.setControls(t.controls),e.setDrawingMode(t.drawingMode),e.setStyle(t.style)})}},{key:"createEventObservable",value:function(e,t){var n=this;return new N(function(i){n._layers.get(t).then(function(t){t.addListener(e,function(e){return n._zone.run(function(){return i.next(e)})})})})}},{key:"getDataFeatures",value:function(e,t){return new Promise(function(n,i){if("object"==typeof t)try{n(e.addGeoJson(t))}catch(r){i(r)}else"string"==typeof t?e.loadGeoJson(t,null,n):i("Impossible to extract features from geoJson: wrong argument type")})}}]),e}()).\u0275fac=function(e){return new(e||zp)(Ni(Jp),Ni(Oc))},zp.\u0275prov=Le({token:zp,factory:function(e){return zp.\u0275fac(e)}}),zp=$f([Zf("design:paramtypes",[Jp,Oc])],zp)),rm=function e(){b(this,e)},am=((Wp=function(){function e(t){var n,i,r=this;b(this,e),this._boundsChangeSampleTime$=new ep(200),this._includeInBounds$=new ep(new Map),this.bounds$=te(t.load()).pipe(le(function(){return r._includeInBounds$}),(n=this._boundsChangeSampleTime$.pipe(xp(function(e){return op(0,e)})),function(e){return e.lift(new wp(n))}),q(function(e){return r._generateBounds(e)}),(i={bufferSize:1,windowTime:void 0,refCount:!1,scheduler:void 0},function(e){return e.lift(function(e){var t,n,i=e.bufferSize,r=void 0===i?Number.POSITIVE_INFINITY:i,a=e.windowTime,o=void 0===a?Number.POSITIVE_INFINITY:a,s=e.refCount,l=e.scheduler,u=0,c=!1,d=!1;return function(e){var i;u++,!t||c?(c=!1,t=new bp(r,o,l),i=t.subscribe(this),n=e.subscribe({next:function(e){t.next(e)},error:function(e){c=!0,t.error(e)},complete:function(){d=!0,n=void 0,t.complete()}}),d&&(n=void 0)):i=t.subscribe(this),this.add(function(){u--,i.unsubscribe(),i=void 0,n&&!d&&s&&0===u&&(n.unsubscribe(),n=void 0,t=void 0)})}}(i))}))}return w(e,[{key:"_generateBounds",value:function(e){var t=new google.maps.LatLngBounds;return e.forEach(function(e){return t.extend(e)}),t}},{key:"addToBounds",value:function(e){var t=this._createIdentifier(e);if(!this._includeInBounds$.value.has(t)){var n=this._includeInBounds$.value;n.set(t,e),this._includeInBounds$.next(n)}}},{key:"removeFromBounds",value:function(e){var t=this._includeInBounds$.value;t.delete(this._createIdentifier(e)),this._includeInBounds$.next(t)}},{key:"changeFitBoundsChangeSampleTime",value:function(e){this._boundsChangeSampleTime$.next(e)}},{key:"getBounds$",value:function(){return this.bounds$}},{key:"_createIdentifier",value:function(e){return"".concat(e.lat,"+").concat(e.lng)}}]),e}()).\u0275fac=function(e){return new(e||Wp)(Ni(Zp))},Wp.\u0275prov=Le({token:Wp,factory:function(e){return Wp.\u0275fac(e)}}),Wp=$f([Zf("design:paramtypes",[Zp])],Wp)),om=((Up=function(){function e(t,n){b(this,e),this._mapsWrapper=t,this._zone=n,this._markers=new Map}return w(e,[{key:"convertAnimation",value:function(e){return Jf(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",null===e?null:this._mapsWrapper.getNativeMap().then(function(){return google.maps.Animation[e]}));case 1:case"end":return t.stop()}},t,this)}))}},{key:"deleteMarker",value:function(e){var t=this,n=this._markers.get(e);return null==n?Promise.resolve():n.then(function(n){return t._zone.run(function(){n.setMap(null),t._markers.delete(e)})})}},{key:"updateMarkerPosition",value:function(e){return this._markers.get(e).then(function(t){return t.setPosition({lat:e.latitude,lng:e.longitude})})}},{key:"updateTitle",value:function(e){return this._markers.get(e).then(function(t){return t.setTitle(e.title)})}},{key:"updateLabel",value:function(e){return this._markers.get(e).then(function(t){t.setLabel(e.label)})}},{key:"updateDraggable",value:function(e){return this._markers.get(e).then(function(t){return t.setDraggable(e.draggable)})}},{key:"updateIcon",value:function(e){return this._markers.get(e).then(function(t){return t.setIcon(e.iconUrl)})}},{key:"updateOpacity",value:function(e){return this._markers.get(e).then(function(t){return t.setOpacity(e.opacity)})}},{key:"updateVisible",value:function(e){return this._markers.get(e).then(function(t){return t.setVisible(e.visible)})}},{key:"updateZIndex",value:function(e){return this._markers.get(e).then(function(t){return t.setZIndex(e.zIndex)})}},{key:"updateClickable",value:function(e){return this._markers.get(e).then(function(t){return t.setClickable(e.clickable)})}},{key:"updateAnimation",value:function(e){return Jf(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._markers.get(e);case 2:return t.t0=t.sent,t.next=5,this.convertAnimation(e.animation);case 5:t.t1=t.sent,t.t0.setAnimation.call(t.t0,t.t1);case 7:case"end":return t.stop()}},t,this)}))}},{key:"addMarker",value:function(e){var t=this,n=new Promise(function(n){return Jf(t,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=this._mapsWrapper,t.t1={lat:e.latitude,lng:e.longitude},t.t2=e.label,t.t3=e.draggable,t.t4=e.iconUrl,t.t5=e.opacity,t.t6=e.visible,t.t7=e.zIndex,t.t8=e.title,t.t9=e.clickable,t.next=12,this.convertAnimation(e.animation);case 12:return t.t10=t.sent,t.t11={position:t.t1,label:t.t2,draggable:t.t3,icon:t.t4,opacity:t.t5,visible:t.t6,zIndex:t.t7,title:t.t8,clickable:t.t9,animation:t.t10},t.abrupt("return",t.t0.createMarker.call(t.t0,t.t11).then(n));case 15:case"end":return t.stop()}},t,this)}))});this._markers.set(e,n)}},{key:"getNativeMarker",value:function(e){return this._markers.get(e)}},{key:"createEventObservable",value:function(e,t){var n=this;return new N(function(i){n._markers.get(t).then(function(t){t.addListener(e,function(e){return n._zone.run(function(){return i.next(e)})})})})}}]),e}()).\u0275fac=function(e){return new(e||Up)(Ni(Jp),Ni(Oc))},Up.\u0275prov=Le({token:Up,factory:function(e){return Up.\u0275fac(e)}}),Up=$f([Zf("design:paramtypes",[Jp,Oc])],Up)),sm=((jp=function(){function e(t,n,i){b(this,e),this._mapsWrapper=t,this._zone=n,this._markerManager=i,this._infoWindows=new Map}return w(e,[{key:"deleteInfoWindow",value:function(e){var t=this,n=this._infoWindows.get(e);return null==n?Promise.resolve():n.then(function(n){return t._zone.run(function(){n.close(),t._infoWindows.delete(e)})})}},{key:"setPosition",value:function(e){return this._infoWindows.get(e).then(function(t){return t.setPosition({lat:e.latitude,lng:e.longitude})})}},{key:"setZIndex",value:function(e){return this._infoWindows.get(e).then(function(t){return t.setZIndex(e.zIndex)})}},{key:"open",value:function(e){var t=this;return this._infoWindows.get(e).then(function(n){return null!=e.hostMarker?t._markerManager.getNativeMarker(e.hostMarker).then(function(e){return t._mapsWrapper.getNativeMap().then(function(t){return n.open(t,e)})}):t._mapsWrapper.getNativeMap().then(function(e){return n.open(e)})})}},{key:"close",value:function(e){return this._infoWindows.get(e).then(function(e){return e.close()})}},{key:"setOptions",value:function(e,t){return this._infoWindows.get(e).then(function(e){return e.setOptions(t)})}},{key:"addInfoWindow",value:function(e){var t={content:e.content,maxWidth:e.maxWidth,zIndex:e.zIndex,disableAutoPan:e.disableAutoPan};"number"==typeof e.latitude&&"number"==typeof e.longitude&&(t.position={lat:e.latitude,lng:e.longitude});var n=this._mapsWrapper.createInfoWindow(t);this._infoWindows.set(e,n)}},{key:"createEventObservable",value:function(e,t){var n=this;return new N(function(i){n._infoWindows.get(t).then(function(t){t.addListener(e,function(e){return n._zone.run(function(){return i.next(e)})})})})}}]),e}()).\u0275fac=function(e){return new(e||jp)(Ni(Jp),Ni(Oc),Ni(om))},jp.\u0275prov=Le({token:jp,factory:function(e){return jp.\u0275fac(e)}}),jp=$f([Zf("design:paramtypes",[Jp,Oc,om])],jp)),lm=0,um=((Qp=qp=function(){function e(t,n){b(this,e),this._infoWindowManager=t,this._el=n,this.isOpen=!1,this.infoWindowClose=new Vu,this._infoWindowAddedToManager=!1,this._id=(lm++).toString()}return w(e,[{key:"ngOnInit",value:function(){this.content=this._el.nativeElement.querySelector(".agm-info-window-content"),this._infoWindowManager.addInfoWindow(this),this._infoWindowAddedToManager=!0,this._updateOpenState(),this._registerEventListeners()}},{key:"ngOnChanges",value:function(e){this._infoWindowAddedToManager&&((e.latitude||e.longitude)&&"number"==typeof this.latitude&&"number"==typeof this.longitude&&this._infoWindowManager.setPosition(this),e.zIndex&&this._infoWindowManager.setZIndex(this),e.isOpen&&this._updateOpenState(),this._setInfoWindowOptions(e))}},{key:"_registerEventListeners",value:function(){var e=this;this._infoWindowManager.createEventObservable("closeclick",this).subscribe(function(){e.isOpen=!1,e.infoWindowClose.emit()})}},{key:"_updateOpenState",value:function(){this.isOpen?this.open():this.close()}},{key:"_setInfoWindowOptions",value:function(e){var t={};Object.keys(e).filter(function(e){return-1!==qp._infoWindowOptionsInputs.indexOf(e)}).forEach(function(n){t[n]=e[n].currentValue}),this._infoWindowManager.setOptions(this,t)}},{key:"open",value:function(){return this._infoWindowManager.open(this)}},{key:"close",value:function(){var e=this;return this._infoWindowManager.close(this).then(function(){e.infoWindowClose.emit()})}},{key:"id",value:function(){return this._id}},{key:"toString",value:function(){return"AgmInfoWindow-"+this._id.toString()}},{key:"ngOnDestroy",value:function(){this._infoWindowManager.deleteInfoWindow(this)}}]),e}()).\u0275fac=function(e){return new(e||Qp)(ls(sm),ls(Ol))},Qp.\u0275cmp=pt({type:Qp,selectors:[["agm-info-window"]],inputs:{isOpen:"isOpen",latitude:"latitude",longitude:"longitude",disableAutoPan:"disableAutoPan",zIndex:"zIndex",maxWidth:"maxWidth"},outputs:{infoWindowClose:"infoWindowClose"},features:[It],ngContentSelectors:Kp,decls:2,vars:0,consts:[[1,"agm-info-window-content"]],template:function(e,t){1&e&&(Es(),ds(0,"div",0),Ts(1),hs())},encapsulation:2}),Qp._infoWindowOptionsInputs=["disableAutoPan","maxWidth"],Qp=qp=$f([Zf("design:paramtypes",[sm,Ol])],Qp)),cm=((Yp=function(){function e(t,n){b(this,e),this._wrapper=t,this._zone=n,this._layers=new Map}return w(e,[{key:"addKmlLayer",value:function(e){var t=this._wrapper.getNativeMap().then(function(t){return new google.maps.KmlLayer({clickable:e.clickable,map:t,preserveViewport:e.preserveViewport,screenOverlays:e.screenOverlays,suppressInfoWindows:e.suppressInfoWindows,url:e.url,zIndex:e.zIndex})});this._layers.set(e,t)}},{key:"setOptions",value:function(e,t){this._layers.get(e).then(function(e){return e.setOptions(t)})}},{key:"deleteKmlLayer",value:function(e){var t=this;this._layers.get(e).then(function(n){n.setMap(null),t._layers.delete(e)})}},{key:"createEventObservable",value:function(e,t){var n=this;return new N(function(i){n._layers.get(t).then(function(t){t.addListener(e,function(e){return n._zone.run(function(){return i.next(e)})})})})}}]),e}()).\u0275fac=function(e){return new(e||Yp)(Ni(Jp),Ni(Oc))},Yp.\u0275prov=Le({token:Yp,factory:function(e){return Yp.\u0275fac(e)}}),Yp=$f([Zf("design:paramtypes",[Jp,Oc])],Yp));function dm(e){var t=["insert_at","remove_at","set_at"];return lp(function(n){return t.map(function(t){return e.addListener(t,function(i,r){return n.apply(e,[{newArr:e.getArray(),evName:t,index:i,previous:r}])})})},function(e,t){return t.forEach(function(e){return e.remove()})})}var hm,fm,pm,mm,gm,vm,ym,_m,bm,km,wm,Cm=((hm=function(){function e(t,n){b(this,e),this._mapsWrapper=t,this._zone=n,this._polygons=new Map}return w(e,[{key:"addPolygon",value:function(e){var t=this._mapsWrapper.createPolygon({clickable:e.clickable,draggable:e.draggable,editable:e.editable,fillColor:e.fillColor,fillOpacity:e.fillOpacity,geodesic:e.geodesic,paths:e.paths,strokeColor:e.strokeColor,strokeOpacity:e.strokeOpacity,strokeWeight:e.strokeWeight,visible:e.visible,zIndex:e.zIndex});this._polygons.set(e,t)}},{key:"updatePolygon",value:function(e){var t=this,n=this._polygons.get(e);return null==n?Promise.resolve():n.then(function(n){return t._zone.run(function(){n.setPaths(e.paths)})})}},{key:"setPolygonOptions",value:function(e,t){return this._polygons.get(e).then(function(e){e.setOptions(t)})}},{key:"deletePolygon",value:function(e){var t=this,n=this._polygons.get(e);return null==n?Promise.resolve():n.then(function(n){return t._zone.run(function(){n.setMap(null),t._polygons.delete(e)})})}},{key:"getPath",value:function(e){return this._polygons.get(e).then(function(e){return e.getPath().getArray()})}},{key:"getPaths",value:function(e){return this._polygons.get(e).then(function(e){return e.getPaths().getArray().map(function(e){return e.getArray()})})}},{key:"createEventObservable",value:function(e,t){var n=this;return new N(function(i){n._polygons.get(t).then(function(t){t.addListener(e,function(e){return n._zone.run(function(){return i.next(e)})})})})}},{key:"createPathEventObservable",value:function(e){return Jf(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._polygons.get(e);case 2:return n=t.sent.getPaths(),t.abrupt("return",dm(n).pipe(Rp({newArr:n.getArray()}),xp(function(e){return de.apply(void 0,a(e.newArr.map(function(t,n){return dm(t).pipe(q(function(t){return{parentMVEvent:e,chMVCEvent:t,pathIndex:n}}))}))).pipe(Rp({parentMVEvent:e,chMVCEvent:null,pathIndex:null}))}),Lp(1),q(function(e){var t,n=e.parentMVEvent,i=e.chMVCEvent,r=e.pathIndex;return i?(t={newArr:n.newArr.map(function(e){return e.getArray().map(function(e){return e.toJSON()})}),pathIndex:r,eventName:i.evName,index:i.index},i.previous&&(t.previous=i.previous)):(t={newArr:n.newArr.map(function(e){return e.getArray().map(function(e){return e.toJSON()})}),eventName:n.evName,index:n.index},n.previous&&(t.previous=n.previous.getArray())),t})));case 4:case"end":return t.stop()}},t,this)}))}}]),e}()).\u0275fac=function(e){return new(e||hm)(Ni(Jp),Ni(Oc))},hm.\u0275prov=Le({token:hm,factory:function(e){return hm.\u0275fac(e)}}),hm=$f([Zf("design:paramtypes",[Jp,Oc])],hm)),xm=((mm=fm=function(){function e(t,n){b(this,e),this._mapsWrapper=t,this._zone=n,this._polylines=new Map}return w(e,[{key:"addPolyline",value:function(e){var t=this,i=this._mapsWrapper.getNativeMap().then(function(){return[fm._convertPoints(e),fm._convertIcons(e)]}).then(function(i){var r=n(i,2),a=r[0],o=r[1];return t._mapsWrapper.createPolyline({clickable:e.clickable,draggable:e.draggable,editable:e.editable,geodesic:e.geodesic,strokeColor:e.strokeColor,strokeOpacity:e.strokeOpacity,strokeWeight:e.strokeWeight,visible:e.visible,zIndex:e.zIndex,path:a,icons:o})});this._polylines.set(e,i)}},{key:"updatePolylinePoints",value:function(e){var t=this,n=fm._convertPoints(e),i=this._polylines.get(e);return null==i?Promise.resolve():i.then(function(e){return t._zone.run(function(){e.setPath(n)})})}},{key:"updateIconSequences",value:function(e){return Jf(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n,i,r=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._mapsWrapper.getNativeMap();case 2:if(n=fm._convertIcons(e),null==(i=this._polylines.get(e))){t.next=5;break}return t.abrupt("return",i.then(function(e){return r._zone.run(function(){return e.setOptions({icons:n})})}));case 5:case"end":return t.stop()}},t,this)}))}},{key:"setPolylineOptions",value:function(e,t){return this._polylines.get(e).then(function(e){e.setOptions(t)})}},{key:"deletePolyline",value:function(e){var t=this,n=this._polylines.get(e);return null==n?Promise.resolve():n.then(function(n){return t._zone.run(function(){n.setMap(null),t._polylines.delete(e)})})}},{key:"getMVCPath",value:function(e){return Jf(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._polylines.get(e);case 2:return t.abrupt("return",t.sent.getPath());case 3:case"end":return t.stop()}},t,this)}))}},{key:"getPath",value:function(e){return Jf(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getMVCPath(e);case 2:return t.abrupt("return",t.sent.getArray());case 3:case"end":return t.stop()}},t,this)}))}},{key:"createEventObservable",value:function(e,t){var n=this;return new N(function(i){n._polylines.get(t).then(function(t){t.addListener(e,function(e){return n._zone.run(function(){return i.next(e)})})})})}},{key:"createPathEventObservable",value:function(e){return Jf(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=dm,t.next=3,this.getMVCPath(e);case 3:return t.t1=t.sent,t.abrupt("return",(0,t.t0)(t.t1));case 5:case"end":return t.stop()}},t,this)}))}}],[{key:"_convertPoints",value:function(e){return e._getPoints().map(function(e){return{lat:e.latitude,lng:e.longitude}})}},{key:"_convertPath",value:function(e){var t=google.maps.SymbolPath[e];return"number"==typeof t?t:e}},{key:"_convertIcons",value:function(e){var t=e._getIcons().map(function(e){return{fixedRotation:e.fixedRotation,offset:e.offset,repeat:e.repeat,icon:{anchor:new google.maps.Point(e.anchorX,e.anchorY),fillColor:e.fillColor,fillOpacity:e.fillOpacity,path:fm._convertPath(e.path),rotation:e.rotation,scale:e.scale,strokeColor:e.strokeColor,strokeOpacity:e.strokeOpacity,strokeWeight:e.strokeWeight}}});return t.forEach(function(e){Object.entries(e).forEach(function(t){var i=n(t,2),r=i[0];void 0===i[1]&&delete e[r]}),void 0!==e.icon.anchor.x&&void 0!==e.icon.anchor.y||delete e.icon.anchor}),t}}]),e}()).\u0275fac=function(e){return new(e||mm)(Ni(Jp),Ni(Oc))},mm.\u0275prov=Le({token:mm,factory:function(e){return mm.\u0275fac(e)}}),mm=fm=$f([Zf("design:paramtypes",[Jp,Oc])],mm)),Sm=((pm=function(){function e(t,n){b(this,e),this._apiWrapper=t,this._zone=n,this._rectangles=new Map}return w(e,[{key:"addRectangle",value:function(e){this._rectangles.set(e,this._apiWrapper.createRectangle({bounds:{north:e.north,east:e.east,south:e.south,west:e.west},clickable:e.clickable,draggable:e.draggable,editable:e.editable,fillColor:e.fillColor,fillOpacity:e.fillOpacity,strokeColor:e.strokeColor,strokeOpacity:e.strokeOpacity,strokePosition:e.strokePosition,strokeWeight:e.strokeWeight,visible:e.visible,zIndex:e.zIndex}))}},{key:"removeRectangle",value:function(e){var t=this;return this._rectangles.get(e).then(function(n){n.setMap(null),t._rectangles.delete(e)})}},{key:"setOptions",value:function(e,t){return this._rectangles.get(e).then(function(e){return e.setOptions(t)})}},{key:"getBounds",value:function(e){return this._rectangles.get(e).then(function(e){return e.getBounds()})}},{key:"setBounds",value:function(e){return this._rectangles.get(e).then(function(t){return t.setBounds({north:e.north,east:e.east,south:e.south,west:e.west})})}},{key:"setEditable",value:function(e){return this._rectangles.get(e).then(function(t){return t.setEditable(e.editable)})}},{key:"setDraggable",value:function(e){return this._rectangles.get(e).then(function(t){return t.setDraggable(e.draggable)})}},{key:"setVisible",value:function(e){return this._rectangles.get(e).then(function(t){return t.setVisible(e.visible)})}},{key:"createEventObservable",value:function(e,t){var n=this;return N.create(function(i){var r=null;return n._rectangles.get(t).then(function(t){r=t.addListener(e,function(e){return n._zone.run(function(){return i.next(e)})})}),function(){null!==r&&r.remove()}})}}]),e}()).\u0275fac=function(e){return new(e||pm)(Ni(Jp),Ni(Oc))},pm.\u0275prov=Le({token:pm,factory:function(e){return pm.\u0275fac(e)}}),pm=$f([Zf("design:paramtypes",[Jp,Oc])],pm)),Am=((vm=gm=function(){function e(t,n,i,r,a){b(this,e),this._elem=t,this._mapsWrapper=n,this._platformId=i,this._fitBoundsService=r,this._zone=a,this.longitude=0,this.latitude=0,this.zoom=8,this.draggable=!0,this.disableDoubleClickZoom=!1,this.disableDefaultUI=!1,this.scrollwheel=!0,this.keyboardShortcuts=!0,this.styles=[],this.usePanning=!1,this.fitBounds=!1,this.scaleControl=!1,this.mapTypeControl=!1,this.panControl=!1,this.rotateControl=!1,this.fullscreenControl=!1,this.mapTypeId="roadmap",this.clickableIcons=!0,this.showDefaultInfoWindow=!0,this.gestureHandling="auto",this.tilt=0,this._observableSubscriptions=[],this.mapClick=new Vu,this.mapRightClick=new Vu,this.mapDblClick=new Vu,this.centerChange=new Vu,this.boundsChange=new Vu,this.mapTypeIdChange=new Vu,this.idle=new Vu,this.zoomChange=new Vu,this.mapReady=new Vu,this.tilesLoaded=new Vu}return w(e,[{key:"ngOnInit",value:function(){if(!ef(this._platformId)){var e=this._elem.nativeElement.querySelector(".agm-map-container-inner");this._initMapInstance(e)}}},{key:"_initMapInstance",value:function(e){var t=this;this._mapsWrapper.createMap(e,{center:{lat:this.latitude||0,lng:this.longitude||0},zoom:this.zoom,minZoom:this.minZoom,maxZoom:this.maxZoom,controlSize:this.controlSize,disableDefaultUI:this.disableDefaultUI,disableDoubleClickZoom:this.disableDoubleClickZoom,scrollwheel:this.scrollwheel,backgroundColor:this.backgroundColor,draggable:this.draggable,draggableCursor:this.draggableCursor,draggingCursor:this.draggingCursor,keyboardShortcuts:this.keyboardShortcuts,styles:this.styles,zoomControl:this.zoomControl,zoomControlOptions:this.zoomControlOptions,streetViewControl:this.streetViewControl,streetViewControlOptions:this.streetViewControlOptions,scaleControl:this.scaleControl,scaleControlOptions:this.scaleControlOptions,mapTypeControl:this.mapTypeControl,mapTypeControlOptions:this.mapTypeControlOptions,panControl:this.panControl,panControlOptions:this.panControlOptions,rotateControl:this.rotateControl,rotateControlOptions:this.rotateControlOptions,fullscreenControl:this.fullscreenControl,fullscreenControlOptions:this.fullscreenControlOptions,mapTypeId:this.mapTypeId,clickableIcons:this.clickableIcons,gestureHandling:this.gestureHandling,tilt:this.tilt,restriction:this.restriction}).then(function(){return t._mapsWrapper.getNativeMap()}).then(function(e){return t.mapReady.emit(e)}),this._handleMapCenterChange(),this._handleMapZoomChange(),this._handleMapMouseEvents(),this._handleBoundsChange(),this._handleMapTypeIdChange(),this._handleTilesLoadedEvent(),this._handleIdleEvent()}},{key:"ngOnDestroy",value:function(){this._observableSubscriptions.forEach(function(e){return e.unsubscribe()}),this._mapsWrapper.clearInstanceListeners(),this._fitBoundsSubscription&&this._fitBoundsSubscription.unsubscribe()}},{key:"ngOnChanges",value:function(e){this._updateMapOptionsChanges(e),this._updatePosition(e)}},{key:"_updateMapOptionsChanges",value:function(e){var t={};Object.keys(e).filter(function(e){return-1!==gm._mapOptionsAttributes.indexOf(e)}).forEach(function(n){t[n]=e[n].currentValue}),this._mapsWrapper.setMapOptions(t)}},{key:"triggerResize",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return new Promise(function(n){setTimeout(function(){return e._mapsWrapper.triggerMapEvent("resize").then(function(){t&&(null!=e.fitBounds?e._fitBounds():e._setCenter()),n()})})})}},{key:"_updatePosition",value:function(e){(null!=e.latitude||null!=e.longitude||e.fitBounds)&&("fitBounds"in e?this._fitBounds():"number"==typeof this.latitude&&"number"==typeof this.longitude&&this._setCenter())}},{key:"_setCenter",value:function(){var e={lat:this.latitude,lng:this.longitude};this.usePanning?this._mapsWrapper.panTo(e):this._mapsWrapper.setCenter(e)}},{key:"_fitBounds",value:function(){switch(this.fitBounds){case!0:this._subscribeToFitBoundsUpdates();break;case!1:this._fitBoundsSubscription&&this._fitBoundsSubscription.unsubscribe();break;default:this._updateBounds(this.fitBounds,this.fitBoundsPadding)}}},{key:"_subscribeToFitBoundsUpdates",value:function(){var e=this;this._zone.runOutsideAngular(function(){e._fitBoundsSubscription=e._fitBoundsService.getBounds$().subscribe(function(t){e._zone.run(function(){return e._updateBounds(t,e.fitBoundsPadding)})})})}},{key:"_updateBounds",value:function(e,t){if(e){if(this._isLatLngBoundsLiteral(e)&&"undefined"!=typeof google&&google&&google.maps&&google.maps.LatLngBounds){var n=new google.maps.LatLngBounds;n.union(e),e=n}this.usePanning?this._mapsWrapper.panToBounds(e,t):this._mapsWrapper.fitBounds(e,t)}}},{key:"_isLatLngBoundsLiteral",value:function(e){return null!=e&&void 0===e.extend}},{key:"_handleMapCenterChange",value:function(){var e=this,t=this._mapsWrapper.subscribeToMapEvent("center_changed").subscribe(function(){e._mapsWrapper.getCenter().then(function(t){e.latitude=t.lat(),e.longitude=t.lng(),e.centerChange.emit({lat:e.latitude,lng:e.longitude})})});this._observableSubscriptions.push(t)}},{key:"_handleBoundsChange",value:function(){var e=this,t=this._mapsWrapper.subscribeToMapEvent("bounds_changed").subscribe(function(){e._mapsWrapper.getBounds().then(function(t){e.boundsChange.emit(t)})});this._observableSubscriptions.push(t)}},{key:"_handleMapTypeIdChange",value:function(){var e=this,t=this._mapsWrapper.subscribeToMapEvent("maptypeid_changed").subscribe(function(){e._mapsWrapper.getMapTypeId().then(function(t){e.mapTypeIdChange.emit(t)})});this._observableSubscriptions.push(t)}},{key:"_handleMapZoomChange",value:function(){var e=this,t=this._mapsWrapper.subscribeToMapEvent("zoom_changed").subscribe(function(){e._mapsWrapper.getZoom().then(function(t){e.zoom=t,e.zoomChange.emit(t)})});this._observableSubscriptions.push(t)}},{key:"_handleIdleEvent",value:function(){var e=this,t=this._mapsWrapper.subscribeToMapEvent("idle").subscribe(function(){e.idle.emit(void 0)});this._observableSubscriptions.push(t)}},{key:"_handleTilesLoadedEvent",value:function(){var e=this,t=this._mapsWrapper.subscribeToMapEvent("tilesloaded").subscribe(function(){return e.tilesLoaded.emit(void 0)});this._observableSubscriptions.push(t)}},{key:"_handleMapMouseEvents",value:function(){var e=this;[{name:"click",emitter:this.mapClick},{name:"rightclick",emitter:this.mapRightClick},{name:"dblclick",emitter:this.mapDblClick}].forEach(function(t){var n=e._mapsWrapper.subscribeToMapEvent(t.name).subscribe(function(n){var i={coords:{lat:n.latLng.lat(),lng:n.latLng.lng()},placeId:n.placeId};i.placeId&&!e.showDefaultInfoWindow&&n.stop(),t.emitter.emit(i)});e._observableSubscriptions.push(n)})}}]),e}()).\u0275fac=function(e){return new(e||vm)(ls(Ol),ls(Jp),ls(hc),ls(am),ls(Oc))},vm.\u0275cmp=pt({type:vm,selectors:[["agm-map"]],hostVars:2,hostBindings:function(e,t){2&e&&Hs("sebm-google-map-container",!0)},inputs:{longitude:"longitude",latitude:"latitude",zoom:"zoom",draggable:["mapDraggable","draggable"],disableDoubleClickZoom:"disableDoubleClickZoom",disableDefaultUI:"disableDefaultUI",scrollwheel:"scrollwheel",keyboardShortcuts:"keyboardShortcuts",styles:"styles",usePanning:"usePanning",fitBounds:"fitBounds",scaleControl:"scaleControl",mapTypeControl:"mapTypeControl",panControl:"panControl",rotateControl:"rotateControl",fullscreenControl:"fullscreenControl",mapTypeId:"mapTypeId",clickableIcons:"clickableIcons",showDefaultInfoWindow:"showDefaultInfoWindow",gestureHandling:"gestureHandling",tilt:"tilt",minZoom:"minZoom",maxZoom:"maxZoom",controlSize:"controlSize",backgroundColor:"backgroundColor",draggableCursor:"draggableCursor",draggingCursor:"draggingCursor",zoomControl:"zoomControl",zoomControlOptions:"zoomControlOptions",streetViewControl:"streetViewControl",streetViewControlOptions:"streetViewControlOptions",fitBoundsPadding:"fitBoundsPadding",scaleControlOptions:"scaleControlOptions",mapTypeControlOptions:"mapTypeControlOptions",panControlOptions:"panControlOptions",rotateControlOptions:"rotateControlOptions",fullscreenControlOptions:"fullscreenControlOptions",restriction:"restriction"},outputs:{mapClick:"mapClick",mapRightClick:"mapRightClick",mapDblClick:"mapDblClick",centerChange:"centerChange",boundsChange:"boundsChange",mapTypeIdChange:"mapTypeIdChange",idle:"idle",zoomChange:"zoomChange",mapReady:"mapReady",tilesLoaded:"tilesLoaded"},features:[bl([tm,im,im,am,Jp,sm,cm,em,om,Cm,xm,Sm]),It],ngContentSelectors:Kp,decls:3,vars:0,consts:[[1,"agm-map-container-inner","sebm-google-map-container-inner"],[1,"agm-map-content"]],template:function(e,t){1&e&&(Es(),fs(0,"div",0),ds(1,"div",1),Ts(2),hs())},styles:[".agm-map-container-inner[_ngcontent-%COMP%] {\n width: inherit;\n height: inherit;\n }\n .agm-map-content[_ngcontent-%COMP%] {\n display:none;\n }"]}),vm._mapOptionsAttributes=["disableDoubleClickZoom","scrollwheel","draggable","draggableCursor","draggingCursor","keyboardShortcuts","zoomControl","zoomControlOptions","styles","streetViewControl","streetViewControlOptions","zoom","mapTypeControl","mapTypeControlOptions","minZoom","maxZoom","panControl","panControlOptions","rotateControl","rotateControlOptions","fullscreenControl","fullscreenControlOptions","scaleControl","scaleControlOptions","mapTypeId","clickableIcons","gestureHandling","tilt","restriction"],vm=gm=$f([Kf(2,ji(hc)),Zf("design:paramtypes",[Ol,Jp,Object,am,Oc])],vm)),Om=0,Em=((_m=ym=function(){function e(t){b(this,e),this._markerManager=t,this.draggable=!1,this.visible=!0,this.openInfoWindow=!0,this.opacity=1,this.zIndex=1,this.clickable=!0,this.animationChange=new Vu,this.markerClick=new Vu,this.markerDblClick=new Vu,this.markerRightClick=new Vu,this.dragStart=new Vu,this.drag=new Vu,this.dragEnd=new Vu,this.mouseOver=new Vu,this.mouseOut=new Vu,this.infoWindow=new Hu,this._markerAddedToManger=!1,this._observableSubscriptions=[],this._fitBoundsDetails$=new bp(1),this._id=(Om++).toString()}return w(e,[{key:"ngAfterContentInit",value:function(){var e=this;this.handleInfoWindowUpdate(),this.infoWindow.changes.subscribe(function(){return e.handleInfoWindowUpdate()})}},{key:"handleInfoWindowUpdate",value:function(){var e=this;if(this.infoWindow.length>1)throw new Error("Expected no more than one info window.");this.infoWindow.forEach(function(t){t.hostMarker=e})}},{key:"ngOnChanges",value:function(e){if("string"==typeof this.latitude&&(this.latitude=Number(this.latitude)),"string"==typeof this.longitude&&(this.longitude=Number(this.longitude)),"number"==typeof this.latitude&&"number"==typeof this.longitude){if(!this._markerAddedToManger)return this._markerManager.addMarker(this),this._updateFitBoundsDetails(),this._markerAddedToManger=!0,void this._addEventListeners();(e.latitude||e.longitude)&&(this._markerManager.updateMarkerPosition(this),this._updateFitBoundsDetails()),e.title&&this._markerManager.updateTitle(this),e.label&&this._markerManager.updateLabel(this),e.draggable&&this._markerManager.updateDraggable(this),e.iconUrl&&this._markerManager.updateIcon(this),e.opacity&&this._markerManager.updateOpacity(this),e.visible&&this._markerManager.updateVisible(this),e.zIndex&&this._markerManager.updateZIndex(this),e.clickable&&this._markerManager.updateClickable(this),e.animation&&this._markerManager.updateAnimation(this)}}},{key:"getFitBoundsDetails$",value:function(){return this._fitBoundsDetails$.asObservable()}},{key:"_updateFitBoundsDetails",value:function(){this._fitBoundsDetails$.next({latLng:{lat:this.latitude,lng:this.longitude}})}},{key:"_addEventListeners",value:function(){var e=this,t=this._markerManager.createEventObservable("click",this).subscribe(function(){e.openInfoWindow&&e.infoWindow.forEach(function(e){return e.open()}),e.markerClick.emit(e)});this._observableSubscriptions.push(t);var n=this._markerManager.createEventObservable("dblclick",this).subscribe(function(){e.markerDblClick.emit(null)});this._observableSubscriptions.push(n);var i=this._markerManager.createEventObservable("rightclick",this).subscribe(function(){e.markerRightClick.emit(null)});this._observableSubscriptions.push(i);var r=this._markerManager.createEventObservable("dragstart",this).subscribe(function(t){e.dragStart.emit({coords:{lat:t.latLng.lat(),lng:t.latLng.lng()}})});this._observableSubscriptions.push(r);var a=this._markerManager.createEventObservable("drag",this).subscribe(function(t){e.drag.emit({coords:{lat:t.latLng.lat(),lng:t.latLng.lng()}})});this._observableSubscriptions.push(a);var o=this._markerManager.createEventObservable("dragend",this).subscribe(function(t){e.dragEnd.emit({coords:{lat:t.latLng.lat(),lng:t.latLng.lng()}})});this._observableSubscriptions.push(o);var s=this._markerManager.createEventObservable("mouseover",this).subscribe(function(t){e.mouseOver.emit({coords:{lat:t.latLng.lat(),lng:t.latLng.lng()}})});this._observableSubscriptions.push(s);var l=this._markerManager.createEventObservable("mouseout",this).subscribe(function(t){e.mouseOut.emit({coords:{lat:t.latLng.lat(),lng:t.latLng.lng()}})});this._observableSubscriptions.push(l);var u=this._markerManager.createEventObservable("animation_changed",this).subscribe(function(){e.animationChange.emit(e.animation)});this._observableSubscriptions.push(u)}},{key:"id",value:function(){return this._id}},{key:"toString",value:function(){return"AgmMarker-"+this._id.toString()}},{key:"ngOnDestroy",value:function(){this._markerManager.deleteMarker(this),this._observableSubscriptions.forEach(function(e){return e.unsubscribe()})}}]),e}()).\u0275fac=function(e){return new(e||_m)(ls(om))},_m.\u0275dir=bt({type:_m,selectors:[["agm-marker"]],contentQueries:function(e,t,n){var i;1&e&&Zu(n,um,0),2&e&&$u(i=Ju())&&(t.infoWindow=i)},inputs:{latitude:"latitude",longitude:"longitude",title:"title",label:"label",draggable:["markerDraggable","draggable"],iconUrl:"iconUrl",openInfoWindow:"openInfoWindow",opacity:"opacity",visible:"visible",zIndex:"zIndex",animation:"animation",clickable:["markerClickable","clickable"]},outputs:{markerClick:"markerClick",dragStart:"dragStart",drag:"drag",dragEnd:"dragEnd",mouseOver:"mouseOver",mouseOut:"mouseOut",animationChange:"animationChange",markerDblClick:"markerDblClick",markerRightClick:"markerRightClick"},features:[bl([{provide:rm,useExisting:Ee(function(){return ym})}]),It]}),_m=ym=$f([Zf("design:paramtypes",[om])],_m)),Tm=function(){function e(){b(this,e)}return w(e,[{key:"getNativeWindow",value:function(){return window}}]),e}(),Pm=function(){function e(){b(this,e)}return w(e,[{key:"getNativeDocument",value:function(){return document}}]),e}(),Dm=[Tm,Pm],Mm=function(e){return e[e.HTTP=1]="HTTP",e[e.HTTPS=2]="HTTPS",e[e.AUTO=3]="AUTO",e}({}),Im=new _i("angular-google-maps LAZY_MAPS_API_CONFIG"),Rm=((bm=function(e){f(n,e);var t=m(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;return b(this,n),(e=t.call(this)).localeId=o,e._SCRIPT_ID="agmGoogleMapsApiScript",e.callbackName="agmLazyMapsAPILoader",e._config=i||{},e._windowRef=r,e._documentRef=a,e}return w(n,[{key:"load",value:function(){var e=this._windowRef.getNativeWindow();if(e.google&&e.google.maps)return Promise.resolve();if(this._scriptLoadingPromise)return this._scriptLoadingPromise;var t=this._documentRef.getNativeDocument().getElementById(this._SCRIPT_ID);if(t)return this._assignScriptLoadingPromise(t),this._scriptLoadingPromise;var n=this._documentRef.getNativeDocument().createElement("script");return n.type="text/javascript",n.async=!0,n.defer=!0,n.id=this._SCRIPT_ID,n.src=this._getScriptSrc(this.callbackName),this._assignScriptLoadingPromise(n),this._documentRef.getNativeDocument().body.appendChild(n),this._scriptLoadingPromise}},{key:"_assignScriptLoadingPromise",value:function(e){var t=this;this._scriptLoadingPromise=new Promise(function(n,i){t._windowRef.getNativeWindow()[t.callbackName]=function(){n()},e.onerror=function(e){i(e)}})}},{key:"_getScriptSrc",value:function(e){var t;switch(this._config&&this._config.protocol||Mm.HTTPS){case Mm.AUTO:t="";break;case Mm.HTTP:t="http:";break;case Mm.HTTPS:t="https:"}var n={v:this._config.apiVersion||"quarterly",callback:e,key:this._config.apiKey,client:this._config.clientId,channel:this._config.channel,libraries:this._config.libraries,region:this._config.region,language:this._config.language||"en-US"!==this.localeId?this.localeId:null};return"".concat(t,"//").concat(this._config.hostAndPath||"maps.googleapis.com/maps/api/js","?").concat(Object.keys(n).filter(function(e){return null!=n[e]}).filter(function(e){return!Array.isArray(n[e])||Array.isArray(n[e])&&n[e].length>0}).map(function(e){var t=n[e];return Array.isArray(t)?{key:e,value:t.join(",")}:{key:e,value:n[e]}}).map(function(e){return"".concat(e.key,"=").concat(e.value)}).join("&"))}}]),n}(Zp)).\u0275fac=function(e){return new(e||bm)(Ni(Im,8),Ni(Tm),Ni(Pm),Ni(mc))},bm.\u0275prov=Le({token:bm,factory:function(e){return bm.\u0275fac(e)}}),bm=$f([Kf(0,Ui()),Kf(0,ji(Im)),Kf(3,ji(mc)),Zf("design:paramtypes",[Object,Tm,Pm,String])],bm)),Lm=((wm=km=function(){function e(){b(this,e)}return w(e,null,[{key:"forRoot",value:function(e){return{ngModule:km,providers:[].concat(Dm,[{provide:Zp,useClass:Rm},{provide:Im,useValue:e}])}}}]),e}()).\u0275fac=function(e){return new(e||wm)},wm.\u0275mod=yt({type:wm}),wm.\u0275inj=Ne({}),wm);o("c+JA");var Fm,Nm,Vm,Bm=((Vm=function(e){f(i,e);var t=m(i);function i(e,n){var r;return b(this,i),(r=t.call(this,e,n))._mapsWrapper=e,r._zone=n,r._clustererInstance=new Promise(function(e){r._resolver=e}),r}return w(i,[{key:"init",value:function(e){var t=this;this._mapsWrapper.getNativeMap().then(function(n){var i=new MarkerClusterer(n,[],e);t._resolver(i)})}},{key:"getClustererInstance",value:function(){return this._clustererInstance}},{key:"addMarker",value:function(e){var t=this.getClustererInstance(),i=this._mapsWrapper.createMarker({position:{lat:e.latitude,lng:e.longitude},label:e.label,draggable:e.draggable,icon:e.iconUrl,opacity:e.opacity,visible:e.visible,zIndex:e.zIndex,title:e.title,clickable:e.clickable},!1);Promise.all([t,i]).then(function(e){var t=n(e,2),i=t[0],r=t[1];return i.addMarker(r)}),this._markers.set(e,i)}},{key:"deleteMarker",value:function(e){var t=this,n=this._markers.get(e);return null==n?Promise.resolve():n.then(function(n){t._zone.run(function(){n.setMap(null),t.getClustererInstance().then(function(i){i.removeMarker(n),t._markers.delete(e)})})})}},{key:"clearMarkers",value:function(){return this.getClustererInstance().then(function(e){e.clearMarkers()})}},{key:"setGridSize",value:function(e){this.getClustererInstance().then(function(t){t.setGridSize(e.gridSize)})}},{key:"setMaxZoom",value:function(e){this.getClustererInstance().then(function(t){t.setMaxZoom(e.maxZoom)})}},{key:"setStyles",value:function(e){this.getClustererInstance().then(function(t){t.setStyles(e.styles)})}},{key:"setZoomOnClick",value:function(e){this.getClustererInstance().then(function(t){void 0!==e.zoomOnClick&&(t.zoomOnClick_=e.zoomOnClick)})}},{key:"setAverageCenter",value:function(e){this.getClustererInstance().then(function(t){void 0!==e.averageCenter&&(t.averageCenter_=e.averageCenter)})}},{key:"setImagePath",value:function(e){this.getClustererInstance().then(function(t){void 0!==e.imagePath&&(t.imagePath_=e.imagePath)})}},{key:"setMinimumClusterSize",value:function(e){this.getClustererInstance().then(function(t){void 0!==e.minimumClusterSize&&(t.minimumClusterSize_=e.minimumClusterSize)})}},{key:"setImageExtension",value:function(e){this.getClustererInstance().then(function(t){void 0!==e.imageExtension&&(t.imageExtension_=e.imageExtension)})}},{key:"createClusterEventObservable",value:function(e){var t=this;return N.create(function(n){t._zone.runOutsideAngular(function(){t._clustererInstance.then(function(i){i.addListener(e,function(e){return t._zone.run(function(){return n.next(e)})})})})})}},{key:"setCalculator",value:function(e){this.getClustererInstance().then(function(t){"function"==typeof e.calculator&&t.setCalculator(e.calculator)})}}]),i}(om)).\u0275fac=function(e){return new(e||Vm)(Ni(Jp),Ni(Oc))},Vm.\u0275prov=Le({token:Vm,factory:function(e){return Vm.\u0275fac(e)}}),Vm=$f([Zf("design:paramtypes",[Jp,Oc])],Vm)),Hm=((Nm=function(){function e(t){b(this,e),this._clusterManager=t,this.clusterClick=new Vu,this._observableSubscriptions=[]}return w(e,[{key:"ngOnDestroy",value:function(){this._clusterManager.clearMarkers(),this._observableSubscriptions.forEach(function(e){return e.unsubscribe()})}},{key:"ngOnChanges",value:function(e){e.gridSize&&this._clusterManager.setGridSize(this),e.maxZoom&&this._clusterManager.setMaxZoom(this),e.zoomOnClick&&this._clusterManager.setZoomOnClick(this),e.averageCenter&&this._clusterManager.setAverageCenter(this),e.minimumClusterSize&&this._clusterManager.setMinimumClusterSize(this),e.imagePath&&this._clusterManager.setImagePath(this),e.imageExtension&&this._clusterManager.setImageExtension(this),e.calculator&&this._clusterManager.setCalculator(this),e.styles&&this._clusterManager.setStyles(this)}},{key:"_addEventListeners",value:function(){var e=this;[{name:"clusterclick",handler:function(){return e.clusterClick.emit()}}].forEach(function(t){var n=e._clusterManager.createClusterEventObservable(t.name).subscribe(t.handler);e._observableSubscriptions.push(n)})}},{key:"ngOnInit",value:function(){this._addEventListeners(),this._clusterManager.init({gridSize:this.gridSize,maxZoom:this.maxZoom,zoomOnClick:this.zoomOnClick,averageCenter:this.averageCenter,minimumClusterSize:this.minimumClusterSize,styles:this.styles,imagePath:this.imagePath,imageExtension:this.imageExtension,calculator:this.calculator})}}]),e}()).\u0275fac=function(e){return new(e||Nm)(ls(Bm))},Nm.\u0275dir=bt({type:Nm,selectors:[["agm-marker-cluster"]],inputs:{gridSize:"gridSize",maxZoom:"maxZoom",zoomOnClick:"zoomOnClick",averageCenter:"averageCenter",minimumClusterSize:"minimumClusterSize",styles:"styles",calculator:"calculator",imagePath:"imagePath",imageExtension:"imageExtension"},outputs:{clusterClick:"clusterClick"},features:[bl([Bm,{provide:om,useExisting:Bm},sm]),It]}),Nm=$f([Zf("design:paramtypes",[Bm])],Nm)),zm=((Fm=function e(){b(this,e)}).\u0275fac=function(e){return new(e||Fm)},Fm.\u0275mod=yt({type:Fm}),Fm.\u0275inj=Ne({imports:[[Lm]]}),Fm);function Gm(e,t){return ae(e,t,1)}function jm(e,t){return function(n){return n.lift(new Um(e,t))}}var Um=function(){function e(t,n){b(this,e),this.predicate=t,this.thisArg=n}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new Wm(e,this.predicate,this.thisArg))}}]),e}(),Wm=function(e){f(n,e);var t=m(n);function n(e,i,r){var a;return b(this,n),(a=t.call(this,e)).predicate=i,a.thisArg=r,a.count=0,a}return w(n,[{key:"_next",value:function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}]),n}(P),qm=function e(){b(this,e)},Ym=function e(){b(this,e)},Qm=function(){function e(t){var n=this;b(this,e),this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){n.headers=new Map,t.split("\n").forEach(function(e){var t=e.indexOf(":");if(t>0){var i=e.slice(0,t),r=i.toLowerCase(),a=e.slice(t+1).trim();n.maybeSetNormalizedName(i,r),n.headers.has(r)?n.headers.get(r).push(a):n.headers.set(r,[a])}})}:function(){n.headers=new Map,Object.keys(t).forEach(function(e){var i=t[e],r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(n.headers.set(r,i),n.maybeSetNormalizedName(e,r))})}:this.headers=new Map}return w(e,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,t){return this.clone({name:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({name:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({name:e,value:t,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var i=("a"===e.op?this.headers.get(t):void 0)||[];i.push.apply(i,a(n)),this.headers.set(t,i);break;case"d":var r=e.value;if(r){var o=this.headers.get(t);if(!o)return;0===(o=o.filter(function(e){return-1===r.indexOf(e)})).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}}},{key:"forEach",value:function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})}}]),e}(),Xm=function(){function e(){b(this,e)}return w(e,[{key:"encodeKey",value:function(e){return $m(e)}},{key:"encodeValue",value:function(e){return $m(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}();function $m(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var Km=function(){function e(){var t=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(b(this,e),this.updates=null,this.cloneFrom=null,this.encoder=i.encoder||new Xm,i.fromString){if(i.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){var i=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(function(e){var r=e.indexOf("="),a=n(-1==r?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,r)),t.decodeValue(e.slice(r+1))],2),o=a[0],s=a[1],l=i.get(o)||[];l.push(s),i.set(o,l)}),i}(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(function(e){var n=i.fromObject[e];t.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}return w(e,[{key:"has",value:function(e){return this.init(),this.map.has(e)}},{key:"get",value:function(e){this.init();var t=this.map.get(e);return t?t[0]:null}},{key:"getAll",value:function(e){return this.init(),this.map.get(e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(e,t){return this.clone({param:e,value:t,op:"a"})}},{key:"appendAll",value:function(e){var t=[];return Object.keys(e).forEach(function(n){var i=e[n];Array.isArray(i)?i.forEach(function(e){t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:i,op:"a"})}),this.clone(t)}},{key:"set",value:function(e,t){return this.clone({param:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({param:e,value:t,op:"d"})}},{key:"toString",value:function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).filter(function(e){return""!==e}).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}},{key:"init",value:function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(t.value),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var i=e.map.get(t.param)||[],r=i.indexOf(t.value);-1!==r&&i.splice(r,1),i.length>0?e.map.set(t.param,i):e.map.delete(t.param)}}),this.cloneFrom=this.updates=null)}}]),e}();function Zm(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function Jm(e){return"undefined"!=typeof Blob&&e instanceof Blob}function eg(e){return"undefined"!=typeof FormData&&e instanceof FormData}var tg=function(){function e(t,n,i,r){var a;if(b(this,e),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,a=r):a=i,a&&(this.reportProgress=!!a.reportProgress,this.withCredentials=!!a.withCredentials,a.responseType&&(this.responseType=a.responseType),a.headers&&(this.headers=a.headers),a.params&&(this.params=a.params)),this.headers||(this.headers=new Qm),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=t.method||this.method,i=t.url||this.url,r=t.responseType||this.responseType,a=void 0!==t.body?t.body:this.body,o=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,s=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,l=t.headers||this.headers,u=t.params||this.params;return void 0!==t.setHeaders&&(l=Object.keys(t.setHeaders).reduce(function(e,n){return e.set(n,t.setHeaders[n])},l)),t.setParams&&(u=Object.keys(t.setParams).reduce(function(e,n){return e.set(n,t.setParams[n])},u)),new e(n,i,a,{params:u,headers:l,reportProgress:s,responseType:r,withCredentials:o})}}]),e}(),ng=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({}),ig=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";b(this,e),this.headers=t.headers||new Qm,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300},rg=function(e){f(n,e);var t=m(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return b(this,n),(e=t.call(this,i)).type=ng.ResponseHeader,e}return w(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(ig),ag=function(e){f(n,e);var t=m(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return b(this,n),(e=t.call(this,i)).type=ng.Response,e.body=void 0!==i.body?i.body:null,e}return w(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(ig),og=function(e){f(n,e);var t=m(n);function n(e){var i;return b(this,n),(i=t.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",i.ok=!1,i.message=i.status>=200&&i.status<300?"Http failure during parsing for ".concat(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),i.error=e.error||null,i}return n}(ig);function sg(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var lg,ug,cg,dg,hg,fg,pg,mg,gg,vg=((lg=function(){function e(t){b(this,e),this.handler=t}return w(e,[{key:"request",value:function(e,t){var n,i,r,a=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e instanceof tg?n=e:(i=o.headers instanceof Qm?o.headers:new Qm(o.headers),o.params&&(r=o.params instanceof Km?o.params:new Km({fromObject:o.params})),n=new tg(e,t,void 0!==o.body?o.body:null,{headers:i,params:r,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials}));var s=fp(n).pipe(Gm(function(e){return a.handler.handle(e)}));if(e instanceof tg||"events"===o.observe)return s;var l=s.pipe(jm(function(e){return e instanceof ag}));switch(o.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return l.pipe(q(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return l.pipe(q(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return l.pipe(q(function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return l.pipe(q(function(e){return e.body}))}case"response":return l;default:throw new Error("Unreachable: unhandled observe type ".concat(o.observe,"}"))}}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,t)}},{key:"head",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,t)}},{key:"jsonp",value:function(e,t){return this.request("JSONP",e,{params:(new Km).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,t)}},{key:"patch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,sg(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,sg(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,sg(n,t))}}]),e}()).\u0275fac=function(e){return new(e||lg)(Ni(qm))},lg.\u0275prov=Le({token:lg,factory:lg.\u0275fac}),lg),yg=function(){function e(t,n){b(this,e),this.next=t,this.interceptor=n}return w(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),_g=new _i("HTTP_INTERCEPTORS"),bg=((ug=function(){function e(){b(this,e)}return w(e,[{key:"intercept",value:function(e,t){return t.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||ug)},ug.\u0275prov=Le({token:ug,factory:ug.\u0275fac}),ug),kg=/^\)\]\}',?\n/,wg=function e(){b(this,e)},Cg=((dg=function(){function e(){b(this,e)}return w(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}()).\u0275fac=function(e){return new(e||dg)},dg.\u0275prov=Le({token:dg,factory:dg.\u0275fac}),dg),xg=((cg=function(){function e(t){b(this,e),this.xhrFactory=t}return w(e,[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new N(function(n){var i=t.xhrFactory.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach(function(e,t){return i.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var r=e.detectContentTypeHeader();null!==r&&i.setRequestHeader("Content-Type",r)}if(e.responseType){var a=e.responseType.toLowerCase();i.responseType="json"!==a?a:"text"}var o=e.serializeBody(),s=null,l=function(){if(null!==s)return s;var t=1223===i.status?204:i.status,n=i.statusText||"OK",r=new Qm(i.getAllResponseHeaders()),a=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(i)||e.url;return s=new rg({headers:r,status:t,statusText:n,url:a})},u=function(){var t=l(),r=t.headers,a=t.status,o=t.statusText,s=t.url,u=null;204!==a&&(u=void 0===i.response?i.responseText:i.response),0===a&&(a=u?200:0);var c=a>=200&&a<300;if("json"===e.responseType&&"string"==typeof u){var d=u;u=u.replace(kg,"");try{u=""!==u?JSON.parse(u):null}catch(h){u=d,c&&(c=!1,u={error:h,text:u})}}c?(n.next(new ag({body:u,headers:r,status:a,statusText:o,url:s||void 0})),n.complete()):n.error(new og({error:u,headers:r,status:a,statusText:o,url:s||void 0}))},c=function(e){var t=l().url,r=new og({error:e,status:i.status||0,statusText:i.statusText||"Unknown Error",url:t||void 0});n.error(r)},d=!1,h=function(t){d||(n.next(l()),d=!0);var r={type:ng.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(r.total=t.total),"text"===e.responseType&&i.responseText&&(r.partialText=i.responseText),n.next(r)},f=function(e){var t={type:ng.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return i.addEventListener("load",u),i.addEventListener("error",c),i.addEventListener("timeout",c),i.addEventListener("abort",c),e.reportProgress&&(i.addEventListener("progress",h),null!==o&&i.upload&&i.upload.addEventListener("progress",f)),i.send(o),n.next({type:ng.Sent}),function(){i.removeEventListener("error",c),i.removeEventListener("abort",c),i.removeEventListener("load",u),i.removeEventListener("timeout",c),e.reportProgress&&(i.removeEventListener("progress",h),null!==o&&i.upload&&i.upload.removeEventListener("progress",f)),i.readyState!==i.DONE&&i.abort()}})}}]),e}()).\u0275fac=function(e){return new(e||cg)(Ni(wg))},cg.\u0275prov=Le({token:cg,factory:cg.\u0275fac}),cg),Sg=new _i("XSRF_COOKIE_NAME"),Ag=new _i("XSRF_HEADER_NAME"),Og=function e(){b(this,e)},Eg=((gg=function(){function e(t,n,i){b(this,e),this.doc=t,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return w(e,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=ph(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}()).\u0275fac=function(e){return new(e||gg)(Ni(sd),Ni(hc),Ni(Sg))},gg.\u0275prov=Le({token:gg,factory:gg.\u0275fac}),gg),Tg=((mg=function(){function e(t,n){b(this,e),this.tokenService=t,this.headerName=n}return w(e,[{key:"intercept",value:function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var i=this.tokenService.getToken();return null===i||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,i)})),t.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||mg)(Ni(Og),Ni(Ag))},mg.\u0275prov=Le({token:mg,factory:mg.\u0275fac}),mg),Pg=((pg=function(){function e(t,n){b(this,e),this.backend=t,this.injector=n,this.chain=null}return w(e,[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(_g,[]);this.chain=t.reduceRight(function(e,t){return new yg(e,t)},this.backend)}return this.chain.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||pg)(Ni(Ym),Ni(zo))},pg.\u0275prov=Le({token:pg,factory:pg.\u0275fac}),pg),Dg=((fg=function(){function e(){b(this,e)}return w(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:Tg,useClass:bg}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:Sg,useValue:t.cookieName}:[],t.headerName?{provide:Ag,useValue:t.headerName}:[]]}}}]),e}()).\u0275fac=function(e){return new(e||fg)},fg.\u0275mod=yt({type:fg}),fg.\u0275inj=Ne({providers:[Tg,{provide:_g,useExisting:Tg,multi:!0},{provide:Og,useClass:Eg},{provide:Sg,useValue:"XSRF-TOKEN"},{provide:Ag,useValue:"X-XSRF-TOKEN"}]}),fg),Mg=((hg=function e(){b(this,e)}).\u0275fac=function(e){return new(e||hg)},hg.\u0275mod=yt({type:hg}),hg.\u0275inj=Ne({providers:[vg,{provide:qm,useClass:Pg},xg,{provide:Ym,useExisting:xg},Cg,{provide:wg,useExisting:Cg}],imports:[[Dg.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),hg),Ig=1,Rg=Promise.resolve(),Lg={};function Fg(e){return e in Lg&&(delete Lg[e],!0)}var Ng=function(e){var t=Ig++;return Lg[t]=!0,Rg.then(function(){return Fg(t)&&e()}),t},Vg=function(e){Fg(e)},Bg=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r}return w(n,[{key:"requestAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?h(_(n.prototype),"requestAsyncId",this).call(this,e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=Ng(e.flush.bind(e,null))))}},{key:"recycleAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return h(_(n.prototype),"recycleAsyncId",this).call(this,e,t,i);0===e.actions.length&&(Vg(t),e.scheduled=void 0)}}]),n}(tp),Hg=new(function(e){f(n,e);var t=m(n);function n(){return b(this,n),t.apply(this,arguments)}return w(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i1?Array.prototype.slice.call(arguments):e)},i,n)})}function Gg(e,t,n,i,r){var a;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var o=e;e.addEventListener(t,n,r),a=function(){return o.removeEventListener(t,n,r)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var s=e;e.on(t,n),a=function(){return s.off(t,n)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){var l=e;e.addListener(t,n),a=function(){return l.removeListener(t,n)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var u=0,c=e.length;u1&&void 0!==arguments[1]?arguments[1]:rp;return function(n){return n.lift(new Ug(e,t))}}var Ug=function(){function e(t,n){b(this,e),this.dueTime=t,this.scheduler=n}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new Wg(e,this.dueTime,this.scheduler))}}]),e}(),Wg=function(e){f(n,e);var t=m(n);function n(e,i,r){var a;return b(this,n),(a=t.call(this,e)).dueTime=i,a.scheduler=r,a.debouncedSubscription=null,a.lastValue=null,a.hasValue=!1,a}return w(n,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(qg,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}},{key:"clearDebounce",value:function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}]),n}(P);function qg(e){e.debouncedNext()}var Yg=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}();function Qg(e){return function(t){return 0===e?hp():t.lift(new Xg(e))}}var Xg=function(){function e(t){if(b(this,e),this.total=t,this.total<0)throw new Yg}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new $g(e,this.total))}}]),e}(),$g=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return w(n,[{key:"_next",value:function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}]),n}(P);function Kg(){}function Zg(e,t,n){return function(i){return i.lift(new tv(e,t,n))}}var Jg,ev,tv=function(){function e(t,n,i){b(this,e),this.nextOrObserver=t,this.error=n,this.complete=i}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new nv(e,this.nextOrObserver,this.error,this.complete))}}]),e}(),nv=function(e){f(n,e);var t=m(n);function n(e,i,r,a){var o;return b(this,n),(o=t.call(this,e))._tapNext=Kg,o._tapError=Kg,o._tapComplete=Kg,o._tapError=r||Kg,o._tapComplete=a||Kg,l(i)?(o._context=v(o),o._tapNext=i):i&&(o._context=i,o._tapNext=i.next||Kg,o._tapError=i.error||Kg,o._tapComplete=i.complete||Kg),o}return w(n,[{key:"_next",value:function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}},{key:"_error",value:function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}]),n}(P),iv={provide:fc,useFactory:function(e,t){return function(){if(Jh(t)){var n=Array.from(e.querySelectorAll("[class*=".concat(rv,"]"))),i=/\bflex-layout-.+?\b/g;n.forEach(function(e){e.classList.contains("".concat(rv,"ssr"))&&e.parentNode?e.parentNode.removeChild(e):e.className.replace(i,"")})}}},deps:[sd,hc],multi:!0},rv="flex-layout-",av=((Jg=function e(){b(this,e)}).\u0275fac=function(e){return new(e||Jg)},Jg.\u0275mod=yt({type:Jg}),Jg.\u0275inj=Ne({providers:[iv]}),Jg),ov=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;b(this,e),this.matches=t,this.mediaQuery=n,this.mqAlias=i,this.suffix=r,this.priority=a,this.property=""}return w(e,[{key:"clone",value:function(){return new e(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}]),e}(),sv=((ev=function(){function e(){b(this,e),this.stylesheet=new Map}return w(e,[{key:"addStyleToElement",value:function(e,t,n){var i=this.stylesheet.get(e);i?i.set(t,n):this.stylesheet.set(e,new Map([[t,n]]))}},{key:"clearStyles",value:function(){this.stylesheet.clear()}},{key:"getStyleForElement",value:function(e,t){var n=this.stylesheet.get(e),i="";if(n){var r=n.get(t);"number"!=typeof r&&"string"!=typeof r||(i=r+"")}return i}}]),e}()).\u0275fac=function(e){return new(e||ev)},ev.\u0275prov=Le({factory:function(){return new ev},token:ev,providedIn:"root"}),ev),lv={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},uv=new _i("Flex Layout token, config options for the library",{providedIn:"root",factory:function(){return lv}}),cv=new _i("FlexLayoutServerLoaded",{providedIn:"root",factory:function(){return!1}}),dv=new _i("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:function(){return null}});function hv(e,t){return e=e?e.clone():new ov,t&&(e.mqAlias=t.alias,e.mediaQuery=t.mediaQuery,e.suffix=t.suffix,e.priority=t.priority),e}var fv=["row","column","row-reverse","column-reverse"];function pv(e){if(e)switch(e.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":e="wrap-reverse";break;case"no":case"none":case"nowrap":e="nowrap";break;default:e="wrap"}return e}var mv,gv=((mv=function(){function e(t,n,i,r){b(this,e),this.elementRef=t,this.styleBuilder=n,this.styler=i,this.marshal=r,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new j,this.styleCache=new Map}return w(e,[{key:"parentElement",get:function(){return this.elementRef.nativeElement.parentElement}},{key:"nativeElement",get:function(){return this.elementRef.nativeElement}},{key:"activatedValue",get:function(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)},set:function(e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,this.marshal.activatedAlias)}},{key:"ngOnChanges",value:function(e){var t=this;Object.keys(e).forEach(function(n){if(-1!==t.inputs.indexOf(n)){var i=n.split(".").slice(1).join(".");t.setValue(e[n].currentValue,i)}})}},{key:"ngOnDestroy",value:function(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}},{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),e)}},{key:"addStyles",value:function(e,t){var n=this.styleBuilder,i=n.shouldCache,r=this.styleCache.get(e);r&&i||(r=n.buildStyles(e,t),i&&this.styleCache.set(e,r)),this.mru=Object.assign({},r),this.applyStyleToElement(r),n.sideEffect(e,r,t)}},{key:"clearStyles",value:function(){var e=this;Object.keys(this.mru).forEach(function(t){e.mru[t]=""}),this.applyStyleToElement(this.mru),this.mru={}}},{key:"triggerUpdate",value:function(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}},{key:"getFlexFlowDirection",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e){var i=this.styler.getFlowDirection(e),r=n(i,2),a=r[0],o=r[1];if(!o&&t){var s=function(e){var t=function(e){var t=n((e=e?e.toLowerCase():"").split(" "),3),i=t[0],r=t[1],a=t[2];return fv.find(function(e){return e===i})||(i=fv[0]),"inline"===r&&(r="inline"!==a?a:"",a="inline"),[i,pv(r),!!a]}(e),i=n(t,3);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];return{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":e,"flex-wrap":t||null}}(i[0],i[1],i[2])}(a);this.styler.applyStyleToElements(s,[e])}return a.trim()}return"row"}},{key:"hasWrap",value:function(e){return this.styler.hasWrap(e)}},{key:"applyStyleToElement",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.nativeElement;this.styler.applyStyleToElement(n,e,t)}},{key:"setValue",value:function(e,t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,t)}},{key:"updateWithValue",value:function(e){this.currentValue!==e&&(this.addStyles(e),this.currentValue=e)}}]),e}()).\u0275fac=function(e){!function(){throw new Error("invalid")}()},mv.\u0275dir=bt({type:mv,features:[It]}),mv),vv=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],yv="(orientation: portrait) and (max-width: 599.98px)",_v="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",bv="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",kv="(orientation: portrait) and (min-width: 840px)",wv="(orientation: landscape) and (min-width: 1280px)",Cv={HANDSET:"".concat(yv,", (orientation: landscape) and (max-width: 959.98px)"),TABLET:"".concat(_v," , ").concat(bv),WEB:"".concat(kv,", ").concat(wv," "),HANDSET_PORTRAIT:"".concat(yv),TABLET_PORTRAIT:"".concat(_v," "),WEB_PORTRAIT:"".concat(kv),HANDSET_LANDSCAPE:"(orientation: landscape) and (max-width: 959.98px)",TABLET_LANDSCAPE:"".concat(bv),WEB_LANDSCAPE:"".concat(wv)},xv=[{alias:"handset",priority:2e3,mediaQuery:Cv.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:Cv.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:Cv.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:Cv.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:Cv.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:Cv.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:Cv.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:Cv.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:Cv.WEB_PORTRAIT,overlapping:!0}],Sv=/(\.|-|_)/g;function Av(e){var t=e.length>0?e.charAt(0):"",n=e.length>1?e.slice(1):"";return t.toUpperCase()+n}var Ov=new _i("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:function(){var e=Vi(dv),t=Vi(uv),n=[].concat.apply([],(e||[]).map(function(e){return Array.isArray(e)?e:[e]}));return function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i={};return e.forEach(function(e){i[e.alias]=e}),n.forEach(function(e){i[e.alias]?function(e){if(null==e)throw TypeError("Cannot convert undefined or null to object");for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i1&&void 0!==arguments[1]&&arguments[1];if(e&&e.length){var i=this._observable$.pipe(jm(function(t){return!n||e.indexOf(t.mediaQuery)>-1}));return de(new N(function(n){var i=t.registerQuery(e);if(i.length){var r=i.pop();i.forEach(function(e){n.next(e)}),t.source.next(r)}n.complete()}),i)}return this._observable$}},{key:"registerQuery",value:function(e){var t=this,n=Array.isArray(e)?e:[e],i=[];return function(e,t){var n=e.filter(function(e){return!Lv[e]});if(n.length>0){var i=n.join(", ");try{var r=t.createElement("style");r.setAttribute("type","text/css"),r.styleSheet||r.appendChild(t.createTextNode("\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ".concat(i," {.fx-query-test{ }}\n"))),t.head.appendChild(r),n.forEach(function(e){return Lv[e]=r})}catch(a){console.error(a)}}}(n,this._document),n.forEach(function(e){var n=function(n){t._zone.run(function(){return t.source.next(new ov(n.matches,e))})},r=t.registry.get(e);r||((r=t.buildMQL(e)).addListener(n),t.pendingRemoveListenerFns.push(function(){return r.removeListener(n)}),t.registry.set(e,r)),r.matches&&i.push(new ov(!0,e))}),i}},{key:"ngOnDestroy",value:function(){for(var e;e=this.pendingRemoveListenerFns.pop();)e()}},{key:"buildMQL",value:function(e){return function(e,t){return t&&window.matchMedia("all").addListener?window.matchMedia(e):{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){},onchange:null,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){return!1}}}(e,Jh(this._platformId))}}]),e}()).\u0275fac=function(e){return new(e||Pv)(Ni(Oc),Ni(hc),Ni(sd))},Pv.\u0275prov=Le({factory:function(){return new Pv(Ni(Oc),Ni(hc),Ni(sd))},token:Pv,providedIn:"root"}),Pv),Lv={},Fv={alias:"print",mediaQuery:"print",priority:1e3},Nv=((Mv=function(){function e(t,n,i){b(this,e),this.breakpoints=t,this.layoutConfig=n,this._document=i,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new Vv,this.deactivations=[]}return w(e,[{key:"withPrintQuery",value:function(e){return[].concat(a(e),["print"])}},{key:"isPrintEvent",value:function(e){return e.mediaQuery.startsWith("print")}},{key:"printAlias",get:function(){return this.layoutConfig.printWithBreakpoints||[]}},{key:"printBreakPoints",get:function(){var e=this;return this.printAlias.map(function(t){return e.breakpoints.findByAlias(t)}).filter(function(e){return null!==e})}},{key:"getEventBreakpoints",value:function(e){var t=e.mediaQuery,n=this.breakpoints.findByQuery(t);return(n?[].concat(a(this.printBreakPoints),[n]):this.printBreakPoints).sort(Ev)}},{key:"updateEvent",value:function(e){var t=this.breakpoints.findByQuery(e.mediaQuery);return this.isPrintEvent(e)&&(t=this.getEventBreakpoints(e)[0],e.mediaQuery=t?t.mediaQuery:""),hv(e,t)}},{key:"registerBeforeAfterPrintHooks",value:function(e){var t=this;if(this._document.defaultView&&!this.registeredBeforeAfterPrintHooks){this.registeredBeforeAfterPrintHooks=!0;var n=function(){t.isPrinting||(t.isPrintingBeforeAfterEvent=!0,t.startPrinting(e,t.getEventBreakpoints(new ov(!0,"print"))),e.updateStyles())},i=function(){t.isPrintingBeforeAfterEvent=!1,t.isPrinting&&(t.stopPrinting(e),e.updateStyles())};this._document.defaultView.addEventListener("beforeprint",n),this._document.defaultView.addEventListener("afterprint",i),this.beforePrintEventListeners.push(n),this.afterPrintEventListeners.push(i)}}},{key:"interceptEvents",value:function(e){var t=this;return this.registerBeforeAfterPrintHooks(e),function(n){t.isPrintEvent(n)?n.matches&&!t.isPrinting?(t.startPrinting(e,t.getEventBreakpoints(n)),e.updateStyles()):n.matches||!t.isPrinting||t.isPrintingBeforeAfterEvent||(t.stopPrinting(e),e.updateStyles()):t.collectActivations(n)}}},{key:"blockPropagation",value:function(){var e=this;return function(t){return!(e.isPrinting||e.isPrintEvent(t))}}},{key:"startPrinting",value:function(e,t){this.isPrinting=!0,e.activatedBreakpoints=this.queue.addPrintBreakpoints(t)}},{key:"stopPrinting",value:function(e){e.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}},{key:"collectActivations",value:function(e){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(e.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{var t=this.breakpoints.findByQuery(e.mediaQuery);t&&(this.deactivations.push(t),this.deactivations.sort(Ev))}}},{key:"ngOnDestroy",value:function(){var e=this;this.beforePrintEventListeners.forEach(function(t){return e._document.defaultView.removeEventListener("beforeprint",t)}),this.afterPrintEventListeners.forEach(function(t){return e._document.defaultView.removeEventListener("afterprint",t)})}}]),e}()).\u0275fac=function(e){return new(e||Mv)(Ni(Iv),Ni(uv),Ni(sd))},Mv.\u0275prov=Le({factory:function(){return new Mv(Ni(Iv),Ni(uv),Ni(sd))},token:Mv,providedIn:"root"}),Mv),Vv=function(){function e(){b(this,e),this.printBreakpoints=[]}return w(e,[{key:"addPrintBreakpoints",value:function(e){var t=this;return e.push(Fv),e.sort(Ev),e.forEach(function(e){return t.addBreakpoint(e)}),this.printBreakpoints}},{key:"addBreakpoint",value:function(e){e&&void 0===this.printBreakpoints.find(function(t){return t.mediaQuery===e.mediaQuery})&&(this.printBreakpoints=function(e){return!!e&&e.mediaQuery.startsWith("print")}(e)?[e].concat(a(this.printBreakpoints)):[].concat(a(this.printBreakpoints),[e]))}},{key:"clear",value:function(){this.printBreakpoints=[]}}]),e}();function Bv(e){for(var t in e){var n=e[t]||"";switch(t){case"display":e.display="flex"===n?["-webkit-flex","flex"]:"inline-flex"===n?["-webkit-inline-flex","inline-flex"]:n;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":e["-webkit-"+t]=n;break;case"flex-direction":n=n||"row",e["-webkit-flex-direction"]=n,e["flex-direction"]=n;break;case"order":e.order=e["-webkit-"+t]=isNaN(+n)?"0":n}}return e}var Hv,zv=((Hv=function(){function e(t,n,i,r){b(this,e),this._serverStylesheet=t,this._serverModuleLoaded=n,this._platformId=i,this.layoutConfig=r}return w(e,[{key:"applyStyleToElement",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i={};"string"==typeof t&&(i[t]=n,t=i),i=this.layoutConfig.disableVendorPrefixes?t:Bv(t),this._applyMultiValueStyleToElement(i,e)}},{key:"applyStyleToElements",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=this.layoutConfig.disableVendorPrefixes?e:Bv(e);n.forEach(function(e){t._applyMultiValueStyleToElement(i,e)})}},{key:"getFlowDirection",value:function(e){var t=this.lookupStyle(e,"flex-direction");return[t||"row",this.lookupInlineStyle(e,"flex-direction")||ef(this._platformId)&&this._serverModuleLoaded?t:""]}},{key:"hasWrap",value:function(e){return"wrap"===this.lookupStyle(e,"flex-wrap")}},{key:"lookupAttributeValue",value:function(e,t){return e.getAttribute(t)||""}},{key:"lookupInlineStyle",value:function(e,t){return Jh(this._platformId)?e.style.getPropertyValue(t):this._getServerStyle(e,t)}},{key:"lookupStyle",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i="";return e&&((i=this.lookupInlineStyle(e,t))||(Jh(this._platformId)?n||(i=getComputedStyle(e).getPropertyValue(t)):this._serverModuleLoaded&&(i=this._serverStylesheet.getStyleForElement(e,t)))),i?i.trim():""}},{key:"_applyMultiValueStyleToElement",value:function(e,t){var n=this;Object.keys(e).sort().forEach(function(i){var r=e[i],a=Array.isArray(r)?r:[r];a.sort();var o,l=s(a);try{for(l.s();!(o=l.n()).done;){var u=o.value;u=u?u+"":"",Jh(n._platformId)||!n._serverModuleLoaded?Jh(n._platformId)?t.style.setProperty(i,u):n._setServerStyle(t,i,u):n._serverStylesheet.addStyleToElement(t,i,u)}}catch(c){l.e(c)}finally{l.f()}})}},{key:"_setServerStyle",value:function(e,t,n){t=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();var i=this._readStyleAttribute(e);i[t]=n||"",this._writeStyleAttribute(e,i)}},{key:"_getServerStyle",value:function(e,t){return this._readStyleAttribute(e)[t]||""}},{key:"_readStyleAttribute",value:function(e){var t={},n=e.getAttribute("style");if(n)for(var i=n.split(/;+/g),r=0;r0){var o=a.indexOf(":");if(-1===o)throw new Error("Invalid CSS style: ".concat(a));t[a.substr(0,o).trim()]=a.substr(o+1).trim()}}return t}},{key:"_writeStyleAttribute",value:function(e,t){var n="";for(var i in t)t[i]&&(n+=i+":"+t[i]+";");e.setAttribute("style",n)}}]),e}()).\u0275fac=function(e){return new(e||Hv)(Ni(sv),Ni(cv),Ni(hc),Ni(uv))},Hv.\u0275prov=Le({factory:function(){return new Hv(Ni(sv),Ni(cv),Ni(hc),Ni(uv))},token:Hv,providedIn:"root"}),Hv),Gv=function(){function e(){b(this,e),this.shouldCache=!0}return w(e,[{key:"sideEffect",value:function(e,t,n){}}]),e}();function jv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"1",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"1",i=[t,n,e],r=e.indexOf("calc");if(r>0){i[2]=Uv(e.substring(r).trim());var a=e.substr(0,r).trim().split(" ");2==a.length&&(i[0]=a[0],i[1]=a[1])}else if(0==r)i[2]=Uv(e.trim());else{var o=e.split(" ");i=3===o.length?o:[t,n,e]}return i}function Uv(e){return e.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}var Wv,qv=((Wv=function(){function e(t,n,i){b(this,e),this.matchMedia=t,this.breakpoints=n,this.hook=i,this.activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new j,this.observeActivations()}return w(e,[{key:"activatedAlias",get:function(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}},{key:"onMediaChange",value:function(e){var t=this.findByQuery(e.mediaQuery);t&&((e=hv(e,t)).matches&&-1===this.activatedBreakpoints.indexOf(t)?(this.activatedBreakpoints.push(t),this.activatedBreakpoints.sort(Ev),this.updateStyles()):e.matches||-1===this.activatedBreakpoints.indexOf(t)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(t),1),this.activatedBreakpoints.sort(Ev),this.updateStyles()))}},{key:"init",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];Yv(this.updateMap,e,t,n),Yv(this.clearMap,e,t,i),this.buildElementKeyMap(e,t),this.watchExtraTriggers(e,t,r)}},{key:"getValue",value:function(e,t,n){var i=this.elementMap.get(e);if(i){var r=void 0!==n?i.get(n):this.getActivatedValues(i,t);if(r)return r.get(t)}}},{key:"hasValue",value:function(e,t){var n=this.elementMap.get(e);if(n){var i=this.getActivatedValues(n,t);if(i)return void 0!==i.get(t)||!1}return!1}},{key:"setValue",value:function(e,t,n,i){var r=this.elementMap.get(e);if(r){var a=(r.get(i)||new Map).set(t,n);r.set(i,a),this.elementMap.set(e,r)}else r=(new Map).set(i,(new Map).set(t,n)),this.elementMap.set(e,r);var o=this.getValue(e,t);void 0!==o&&this.updateElement(e,t,o)}},{key:"trackValue",value:function(e,t){return this.subject.asObservable().pipe(jm(function(n){return n.element===e&&n.key===t}))}},{key:"updateStyles",value:function(){var e=this;this.elementMap.forEach(function(t,n){var i=new Set(e.elementKeyMap.get(n)),r=e.getActivatedValues(t);r&&r.forEach(function(t,r){e.updateElement(n,r,t),i.delete(r)}),i.forEach(function(i){if(r=e.getActivatedValues(t,i)){var a=r.get(i);e.updateElement(n,i,a)}else e.clearElement(n,i)})})}},{key:"clearElement",value:function(e,t){var n=this.clearMap.get(e);if(n){var i=n.get(t);i&&(i(),this.subject.next({element:e,key:t,value:""}))}}},{key:"updateElement",value:function(e,t,n){var i=this.updateMap.get(e);if(i){var r=i.get(t);r&&(r(n),this.subject.next({element:e,key:t,value:n}))}}},{key:"releaseElement",value:function(e){var t=this.watcherMap.get(e);t&&(t.forEach(function(e){return e.unsubscribe()}),this.watcherMap.delete(e));var n=this.elementMap.get(e);n&&(n.forEach(function(e,t){return n.delete(t)}),this.elementMap.delete(e))}},{key:"triggerUpdate",value:function(e,t){var n=this,i=this.elementMap.get(e);if(i){var r=this.getActivatedValues(i,t);r&&(t?this.updateElement(e,t,r.get(t)):r.forEach(function(t,i){return n.updateElement(e,i,t)}))}}},{key:"buildElementKeyMap",value:function(e,t){var n=this.elementKeyMap.get(e);n||(n=new Set,this.elementKeyMap.set(e,n)),n.add(t)}},{key:"watchExtraTriggers",value:function(e,t,n){var i=this;if(n&&n.length){var r=this.watcherMap.get(e);if(r||(r=new Map,this.watcherMap.set(e,r)),!r.get(t)){var o=de.apply(void 0,a(n)).subscribe(function(){var n=i.getValue(e,t);i.updateElement(e,t,n)});r.set(t,o)}}}},{key:"findByQuery",value:function(e){return this.breakpoints.findByQuery(e)}},{key:"getActivatedValues",value:function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0;return $v(e)?Number(e):t}function $v(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function Kv(e){return Array.isArray(e)?e:[e]}function Zv(e){return null==e?"":"string"==typeof e?e:"".concat(e,"px")}function Jv(e){return e instanceof Ol?e.nativeElement:e}function ey(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\s+/,n=[];if(null!=e){var i,r=Array.isArray(e)?e:"".concat(e).split(t),a=s(r);try{for(a.s();!(i=a.n()).done;){var o=i.value,l="".concat(o).trim();l&&n.push(l)}}catch(u){a.e(u)}finally{a.f()}}return n}new Map;var ty,ny,iy,ry,ay,oy=((ty=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o,s,l){var u;return b(this,n),(u=t.call(this,e,null,i,r)).ngClassInstance=l,u.DIRECTIVE_KEY="ngClass",u.ngClassInstance||(u.ngClassInstance=new yh(a,o,e,s)),u.init(),u.setValue("",""),u}return w(n,[{key:"klass",set:function(e){this.ngClassInstance.klass=e,this.setValue(e,"")}},{key:"updateWithValue",value:function(e){this.ngClassInstance.ngClass=e,this.ngClassInstance.ngDoCheck()}},{key:"ngDoCheck",value:function(){this.ngClassInstance.ngDoCheck()}}]),n}(gv)).\u0275fac=function(e){return new(e||ty)(ls(Ol),ls(zv),ls(qv),ls(ql),ls(Ql),ls(Pl),ls(yh,10))},ty.\u0275dir=bt({type:ty,inputs:{klass:["class","klass"]},features:[jo]}),ty),sy=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"],ly=((ny=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments)).inputs=sy,e}return n}(oy)).\u0275fac=function(e){return uy(e||ny)},ny.\u0275dir=bt({type:ny,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[jo]}),ny),uy=fi(ly),cy=((iy=function(e){f(n,e);var t=m(n);function n(){return b(this,n),t.apply(this,arguments)}return w(n,[{key:"buildStyles",value:function(e,t){return{display:"true"===e?t.display||(t.isServer?"initial":""):"none"}}}]),n}(Gv)).\u0275fac=function(e){return dy(e||iy)},iy.\u0275prov=Le({factory:function(){return new iy},token:iy,providedIn:"root"}),iy),dy=fi(cy),hy=((ry=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o,s,l){var u;return b(this,n),(u=t.call(this,e,i,r,a)).layoutConfig=o,u.platformId=s,u.serverModuleLoaded=l,u.DIRECTIVE_KEY="show-hide",u.display="",u.hasLayout=!1,u.hasFlexChild=!1,u}return w(n,[{key:"ngAfterViewInit",value:function(){this.trackExtraTriggers();for(var e=Array.from(this.nativeElement.children),t=0;t0&&void 0!==arguments[0])||arguments[0];if(""!==e){var t=ef(this.platformId);this.addStyles(e?"true":"false",{display:this.display,isServer:t}),t&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display",""),this.marshal.triggerUpdate(this.parentElement,"layout-gap")}}}]),n}(gv)).\u0275fac=function(e){return new(e||ry)(ls(Ol),ls(cy),ls(zv),ls(qv),ls(uv),ls(hc),ls(cv))},ry.\u0275dir=bt({type:ry,features:[jo,It]}),ry),fy=new WeakMap,py=["fxShow","fxShow.print","fxShow.xs","fxShow.sm","fxShow.md","fxShow.lg","fxShow.xl","fxShow.lt-sm","fxShow.lt-md","fxShow.lt-lg","fxShow.lt-xl","fxShow.gt-xs","fxShow.gt-sm","fxShow.gt-md","fxShow.gt-lg","fxHide","fxHide.print","fxHide.xs","fxHide.sm","fxHide.md","fxHide.lg","fxHide.xl","fxHide.lt-sm","fxHide.lt-md","fxHide.lt-lg","fxHide.lt-xl","fxHide.gt-xs","fxHide.gt-sm","fxHide.gt-md","fxHide.gt-lg"],my=((ay=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments)).inputs=py,e}return n}(hy)).\u0275fac=function(e){return gy(e||ay)},ay.\u0275dir=bt({type:ay,selectors:[["","fxShow",""],["","fxShow.print",""],["","fxShow.xs",""],["","fxShow.sm",""],["","fxShow.md",""],["","fxShow.lg",""],["","fxShow.xl",""],["","fxShow.lt-sm",""],["","fxShow.lt-md",""],["","fxShow.lt-lg",""],["","fxShow.lt-xl",""],["","fxShow.gt-xs",""],["","fxShow.gt-sm",""],["","fxShow.gt-md",""],["","fxShow.gt-lg",""],["","fxHide",""],["","fxHide.print",""],["","fxHide.xs",""],["","fxHide.sm",""],["","fxHide.md",""],["","fxHide.lg",""],["","fxHide.xl",""],["","fxHide.lt-sm",""],["","fxHide.lt-md",""],["","fxHide.lt-lg",""],["","fxHide.lt-xl",""],["","fxHide.gt-xs",""],["","fxHide.gt-sm",""],["","fxHide.gt-md",""],["","fxHide.gt-lg",""]],inputs:{fxShow:"fxShow","fxShow.print":"fxShow.print","fxShow.xs":"fxShow.xs","fxShow.sm":"fxShow.sm","fxShow.md":"fxShow.md","fxShow.lg":"fxShow.lg","fxShow.xl":"fxShow.xl","fxShow.lt-sm":"fxShow.lt-sm","fxShow.lt-md":"fxShow.lt-md","fxShow.lt-lg":"fxShow.lt-lg","fxShow.lt-xl":"fxShow.lt-xl","fxShow.gt-xs":"fxShow.gt-xs","fxShow.gt-sm":"fxShow.gt-sm","fxShow.gt-md":"fxShow.gt-md","fxShow.gt-lg":"fxShow.gt-lg",fxHide:"fxHide","fxHide.print":"fxHide.print","fxHide.xs":"fxHide.xs","fxHide.sm":"fxHide.sm","fxHide.md":"fxHide.md","fxHide.lg":"fxHide.lg","fxHide.xl":"fxHide.xl","fxHide.lt-sm":"fxHide.lt-sm","fxHide.lt-md":"fxHide.lt-md","fxHide.lt-lg":"fxHide.lt-lg","fxHide.lt-xl":"fxHide.lt-xl","fxHide.gt-xs":"fxHide.gt-xs","fxHide.gt-sm":"fxHide.gt-sm","fxHide.gt-md":"fxHide.gt-md","fxHide.gt-lg":"fxHide.gt-lg"},features:[jo]}),ay),gy=fi(my),vy=function e(t,n){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];b(this,e),this.key=t,this.value=n,this.key=i?t.replace(/['"]/g,"").trim():t.trim(),this.value=i?n.replace(/['"]/g,"").trim():n.trim(),this.value=this.value.replace(/;/,"")};function yy(e){var t=typeof e;return"object"===t?e.constructor===Array?"array":e.constructor===Set?"set":"object":t}function _y(e){var n=t(e.split(":")),i=n[0],r=n.slice(1);return new vy(i,r.join(":"))}function by(e,t){return t.key&&(e[t.key]=t.value),e}var ky,wy,Cy=((ky=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o,s,l,u,c){var d;b(this,n),(d=t.call(this,e,null,i,r)).sanitizer=a,d.ngStyleInstance=l,d.DIRECTIVE_KEY="ngStyle",d.ngStyleInstance||(d.ngStyleInstance=new Rh(e,o,s)),d.init();var h=d.nativeElement.getAttribute("style")||"";return d.fallbackStyles=d.buildStyleMap(h),d.isServer=u&&ef(c),d}return w(n,[{key:"updateWithValue",value:function(e){var t=this.buildStyleMap(e);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),t),this.isServer&&this.applyStyleToElement(t),this.ngStyleInstance.ngDoCheck()}},{key:"clearStyles",value:function(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}},{key:"buildStyleMap",value:function(e){var t,n,i,r=this,a=function(e){return r.sanitizer.sanitize(Er.STYLE,e)||""};if(e)switch(yy(e)){case"string":return Oy(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:";";return String(e).trim().split(t).map(function(e){return e.trim()}).filter(function(e){return""!==e})}(e),a);case"array":return Oy(e,a);case"set":default:return n=a,i=[],"set"===yy(t=e)?t.forEach(function(e){return i.push(e)}):Object.keys(t).forEach(function(e){i.push("".concat(e,":").concat(t[e]))}),function(e,t){return e.map(_y).filter(function(e){return!!e}).map(function(e){return t&&(e.value=t(e.value)),e}).reduce(by,{})}(i,n)}return{}}},{key:"ngDoCheck",value:function(){this.ngStyleInstance.ngDoCheck()}}]),n}(gv)).\u0275fac=function(e){return new(e||ky)(ls(Ol),ls(zv),ls(qv),ls(Hf),ls(Ql),ls(Pl),ls(Rh,10),ls(cv),ls(hc))},ky.\u0275dir=bt({type:ky,features:[jo]}),ky),xy=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"],Sy=((wy=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments)).inputs=xy,e}return n}(Cy)).\u0275fac=function(e){return Ay(e||wy)},wy.\u0275dir=bt({type:wy,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[jo]}),wy),Ay=fi(Sy);function Oy(e,t){return e.map(_y).filter(function(e){return!!e}).map(function(e){return t&&(e.value=t(e.value)),e}).reduce(by,{})}var Ey,Ty,Py,Dy=((Ey=function e(){b(this,e)}).\u0275fac=function(e){return new(e||Ey)},Ey.\u0275mod=yt({type:Ey}),Ey.\u0275inj=Ne({imports:[[av]]}),Ey),My=new _i("cdk-dir-doc",{providedIn:"root",factory:function(){return Vi(sd)}}),Iy=((Py=function(){function e(t){if(b(this,e),this.value="ltr",this.change=new Vu,t){var n=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||n;this.value="ltr"===i||"rtl"===i?i:"ltr"}}return w(e,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),e}()).\u0275fac=function(e){return new(e||Py)(Ni(My,8))},Py.\u0275prov=Le({factory:function(){return new Py(Ni(My,8))},token:Py,providedIn:"root"}),Py),Ry=((Ty=function e(){b(this,e)}).\u0275fac=function(e){return new(e||Ty)},Ty.\u0275mod=yt({type:Ty}),Ty.\u0275inj=Ne({}),Ty),Ly=["row","column","row-reverse","column-reverse"];function Fy(e){var t=n((e=e?e.toLowerCase():"").split(" "),3),i=t[0],r=t[1],a=t[2];return Ly.find(function(e){return e===i})||(i=Ly[0]),"inline"===r&&(r="inline"!==a?a:"",a="inline"),[i,Vy(r),!!a]}function Ny(e){return n(Fy(e),1)[0].indexOf("row")>-1}function Vy(e){if(e)switch(e.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":e="wrap-reverse";break;case"no":case"none":case"nowrap":e="nowrap";break;default:e="wrap"}return e}var By,Hy,zy,Gy,jy,Uy,Wy=((By=function(e){f(i,e);var t=m(i);function i(){return b(this,i),t.apply(this,arguments)}return w(i,[{key:"buildStyles",value:function(e){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];return{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":e,"flex-wrap":t||null}}((t=n(Fy(e),3))[0],t[1],t[2]);var t}}]),i}(Gv)).\u0275fac=function(e){return qy(e||By)},By.\u0275prov=Le({factory:function(){return new By},token:By,providedIn:"root"}),By),qy=fi(Wy),Yy=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"],Qy=((zy=function(e){f(n,e);var t=m(n);function n(e,i,r,a){var o;return b(this,n),(o=t.call(this,e,r,i,a)).DIRECTIVE_KEY="layout",o.styleCache=Ky,o.init(),o}return n}(gv)).\u0275fac=function(e){return new(e||zy)(ls(Ol),ls(zv),ls(Wy),ls(qv))},zy.\u0275dir=bt({type:zy,features:[jo]}),zy),Xy=((Hy=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments)).inputs=Yy,e}return n}(Qy)).\u0275fac=function(e){return $y(e||Hy)},Hy.\u0275dir=bt({type:Hy,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[jo]}),Hy),$y=fi(Xy),Ky=new Map,Zy={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null},Jy=((Gy=function(e){f(i,e);var t=m(i);function i(e){var n;return b(this,i),(n=t.call(this))._styler=e,n}return w(i,[{key:"buildStyles",value:function(e,t){return e.endsWith(l_)?(i=e=e.slice(0,e.indexOf(l_)),r=t.directionality,a=n(i.split(" "),2),o=a[0],l="0px",u=(s=function(e){return"-".concat(e)})(a[1]||o),c="0px","rtl"===r?c=s(o):l=s(o),{margin:"0px ".concat(l," ").concat(u," ").concat(c)}):{};var i,r,a,o,s,l,u,c}},{key:"sideEffect",value:function(e,t,i){var r,a,o,s,l,u,c,d=i.items;if(e.endsWith(l_)){var h=(r=e=e.slice(0,e.indexOf(l_)),a=i.directionality,o=n(r.split(" "),2),s=o[0],l=o[1],u="0px",c="0px","rtl"===a?c=s:u=s,{padding:"0px ".concat(u," ").concat(l||s," ").concat(c)});this._styler.applyStyleToElements(h,i.items)}else{var f=d.pop(),p=function(e,t){var n=u_(t.directionality,t.layout),i=Object.assign({},Zy);return i[n]=e,i}(e,i);this._styler.applyStyleToElements(p,d),this._styler.applyStyleToElements(Zy,[f])}}}]),i}(Gv)).\u0275fac=function(e){return new(e||Gy)(Ni(zv))},Gy.\u0275prov=Le({factory:function(){return new Gy(Ni(zv))},token:Gy,providedIn:"root"}),Gy),e_=["fxLayoutGap","fxLayoutGap.xs","fxLayoutGap.sm","fxLayoutGap.md","fxLayoutGap.lg","fxLayoutGap.xl","fxLayoutGap.lt-sm","fxLayoutGap.lt-md","fxLayoutGap.lt-lg","fxLayoutGap.lt-xl","fxLayoutGap.gt-xs","fxLayoutGap.gt-sm","fxLayoutGap.gt-md","fxLayoutGap.gt-lg"],t_=((Uy=function(t){f(i,t);var n=m(i);function i(e,t,r,a,o,s){var l;b(this,i),(l=n.call(this,e,o,a,s)).zone=t,l.directionality=r,l.styleUtils=a,l.layout="row",l.DIRECTIVE_KEY="layout-gap",l.observerSubject=new j;var u=[l.directionality.change,l.observerSubject.asObservable()];return l.init(u),l.marshal.trackValue(l.nativeElement,"layout").pipe(Pp(l.destroySubject)).subscribe(l.onLayoutChange.bind(v(l))),l}return w(i,[{key:"childrenNodes",get:function(){for(var e=this.nativeElement.children,t=[],n=e.length;n--;)t[n]=e[n];return t}},{key:"ngAfterContentInit",value:function(){this.buildChildObservable(),this.triggerUpdate()}},{key:"ngOnDestroy",value:function(){h(_(i.prototype),"ngOnDestroy",this).call(this),this.observer&&this.observer.disconnect()}},{key:"onLayoutChange",value:function(e){var t=this,n=e.value.split(" ");this.layout=n[0],Ly.find(function(e){return e===t.layout})||(this.layout="row"),this.triggerUpdate()}},{key:"updateWithValue",value:function(e){var t=this,n=this.childrenNodes.filter(function(e){return 1===e.nodeType&&t.willDisplay(e)}).sort(function(e,n){var i=+t.styler.lookupStyle(e,"order"),r=+t.styler.lookupStyle(n,"order");return isNaN(i)||isNaN(r)||i===r?0:i>r?1:-1});if(n.length>0){var i=this.directionality.value,r=this.layout;"row"===r&&"rtl"===i?this.styleCache=r_:"row"===r&&"rtl"!==i?this.styleCache=o_:"column"===r&&"rtl"===i?this.styleCache=a_:"column"===r&&"rtl"!==i&&(this.styleCache=s_),this.addStyles(e,{directionality:i,items:n,layout:r})}}},{key:"clearStyles",value:function(){var t=Object.keys(this.mru).length>0,n=t?"padding":u_(this.directionality.value,this.layout);t&&h(_(i.prototype),"clearStyles",this).call(this),this.styleUtils.applyStyleToElements(e({},n,""),this.childrenNodes)}},{key:"willDisplay",value:function(e){var t=this.marshal.getValue(e,"show-hide");return!0===t||void 0===t&&"none"!==this.styleUtils.lookupStyle(e,"display")}},{key:"buildChildObservable",value:function(){var e=this;this.zone.runOutsideAngular(function(){"undefined"!=typeof MutationObserver&&(e.observer=new MutationObserver(function(t){t.some(function(e){return e.addedNodes&&e.addedNodes.length>0||e.removedNodes&&e.removedNodes.length>0})&&e.observerSubject.next()}),e.observer.observe(e.nativeElement,{childList:!0}))})}}]),i}(gv)).\u0275fac=function(e){return new(e||Uy)(ls(Ol),ls(Oc),ls(Iy),ls(zv),ls(Jy),ls(qv))},Uy.\u0275dir=bt({type:Uy,features:[jo]}),Uy),n_=((jy=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments)).inputs=e_,e}return n}(t_)).\u0275fac=function(e){return i_(e||jy)},jy.\u0275dir=bt({type:jy,selectors:[["","fxLayoutGap",""],["","fxLayoutGap.xs",""],["","fxLayoutGap.sm",""],["","fxLayoutGap.md",""],["","fxLayoutGap.lg",""],["","fxLayoutGap.xl",""],["","fxLayoutGap.lt-sm",""],["","fxLayoutGap.lt-md",""],["","fxLayoutGap.lt-lg",""],["","fxLayoutGap.lt-xl",""],["","fxLayoutGap.gt-xs",""],["","fxLayoutGap.gt-sm",""],["","fxLayoutGap.gt-md",""],["","fxLayoutGap.gt-lg",""]],inputs:{fxLayoutGap:"fxLayoutGap","fxLayoutGap.xs":"fxLayoutGap.xs","fxLayoutGap.sm":"fxLayoutGap.sm","fxLayoutGap.md":"fxLayoutGap.md","fxLayoutGap.lg":"fxLayoutGap.lg","fxLayoutGap.xl":"fxLayoutGap.xl","fxLayoutGap.lt-sm":"fxLayoutGap.lt-sm","fxLayoutGap.lt-md":"fxLayoutGap.lt-md","fxLayoutGap.lt-lg":"fxLayoutGap.lt-lg","fxLayoutGap.lt-xl":"fxLayoutGap.lt-xl","fxLayoutGap.gt-xs":"fxLayoutGap.gt-xs","fxLayoutGap.gt-sm":"fxLayoutGap.gt-sm","fxLayoutGap.gt-md":"fxLayoutGap.gt-md","fxLayoutGap.gt-lg":"fxLayoutGap.gt-lg"},features:[jo]}),jy),i_=fi(n_),r_=new Map,a_=new Map,o_=new Map,s_=new Map,l_=" grid";function u_(e,t){switch(t){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":return"rtl"===e?"margin-left":"margin-right";case"row-reverse":return"rtl"===e?"margin-right":"margin-left";default:return"rtl"===e?"margin-left":"margin-right"}}function c_(e){if(null==e)throw TypeError("Cannot convert undefined or null to object");for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i-1?"column":"row",l=Ny(s)?"max-width":"max-height",u=Ny(s)?"min-width":"min-height",c=String(o).indexOf("calc")>-1,d=c||"auto"===o,h=String(o).indexOf("%")>-1&&!c,f=String(o).indexOf("px")>-1||String(o).indexOf("rem")>-1||String(o).indexOf("em")>-1||String(o).indexOf("vw")>-1||String(o).indexOf("vh")>-1,p=c||f;a="0"==a?0:a;var m=!(r="0"==r?0:r)&&!a,g={},v={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(o||""){case"":var y=!1!==this.layoutConfig.useColumnBasisZero;o="row"===s?"0%":y?"0.000000001px":"auto";break;case"initial":case"nogrow":r=0,o="auto";break;case"grow":o="100%";break;case"noshrink":a=0,o="auto";break;case"auto":break;case"none":r=0,a=0,o="auto";break;default:p||h||isNaN(o)||(o+="%"),"0%"===o&&(p=!0),"0px"===o&&(o="0%"),g=c_(v,c?{"flex-grow":r,"flex-shrink":a,"flex-basis":p?o:"100%"}:{flex:"".concat(r," ").concat(a," ").concat(p?o:"100%")})}return g.flex||g["flex-grow"]||(g=c_(v,c?{"flex-grow":r,"flex-shrink":a,"flex-basis":o}:{flex:"".concat(r," ").concat(a," ").concat(o)})),"0%"!==o&&"0px"!==o&&"0.000000001px"!==o&&"auto"!==o&&(g[u]=m||p&&r?o:null,g[l]=m||!d&&a?o:null),g[u]||g[l]?n.hasWrap&&(g[c?"flex-basis":"flex"]=g[l]?c?g[l]:"".concat(r," ").concat(a," ").concat(g[l]):c?g[u]:"".concat(r," ").concat(a," ").concat(g[u])):g=c_(v,c?{"flex-grow":r,"flex-shrink":a,"flex-basis":o}:{flex:"".concat(r," ").concat(a," ").concat(o)}),c_(g,{"box-sizing":"border-box"})}}]),i}(Gv)).\u0275fac=function(e){return new(e||d_)(Ni(uv))},d_.\u0275prov=Le({factory:function(){return new d_(Ni(uv))},token:d_,providedIn:"root"}),d_),m_=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"],g_=((f_=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o){var s;return b(this,n),(s=t.call(this,e,a,i,o)).layoutConfig=r,s.marshal=o,s.DIRECTIVE_KEY="flex",s.direction=void 0,s.wrap=void 0,s.flexGrow="1",s.flexShrink="1",s.init(),s}return w(n,[{key:"shrink",get:function(){return this.flexShrink},set:function(e){this.flexShrink=e||"1",this.triggerReflow()}},{key:"grow",get:function(){return this.flexGrow},set:function(e){this.flexGrow=e||"1",this.triggerReflow()}},{key:"ngOnInit",value:function(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(Pp(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(Pp(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}},{key:"onLayoutChange",value:function(e){var t=e.value.split(" ");this.direction=t[0],this.wrap=void 0!==t[1]&&"wrap"===t[1],this.triggerUpdate()}},{key:"updateWithValue",value:function(e){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));var t=this.direction,n=t.startsWith("row"),i=this.wrap;n&&i?this.styleCache=k_:n&&!i?this.styleCache=__:!n&&i?this.styleCache=w_:n||i||(this.styleCache=b_);var r=jv(String(e).replace(";",""),this.flexGrow,this.flexShrink);this.addStyles(r.join(" "),{direction:t,hasWrap:i})}},{key:"triggerReflow",value:function(){var e=this.activatedValue;if(void 0!==e){var t=jv(e+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,t.join(" "))}}}]),n}(gv)).\u0275fac=function(e){return new(e||f_)(ls(Ol),ls(zv),ls(uv),ls(p_),ls(qv))},f_.\u0275dir=bt({type:f_,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[jo]}),f_),v_=((h_=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments)).inputs=m_,e}return n}(g_)).\u0275fac=function(e){return y_(e||h_)},h_.\u0275dir=bt({type:h_,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[jo]}),h_),y_=fi(v_),__=new Map,b_=new Map,k_=new Map,w_=new Map;new Map;var C_,x_,S_,A_,O_,E_,T_=((C_=function(t){f(i,t);var n=m(i);function i(){return b(this,i),n.apply(this,arguments)}return w(i,[{key:"buildStyles",value:function(t,n){""===t&&(t="0");var i=String(t).indexOf("%")>-1;String(t).indexOf("px")>-1||i||isNaN(+t)||(t+="%");var r=n.isRtl?"margin-right":"margin-left";return Ny(n.layout)?e({},r,"".concat(t)):{"margin-top":"".concat(t)}}}]),i}(Gv)).\u0275fac=function(e){return P_(e||C_)},C_.\u0275prov=Le({factory:function(){return new C_},token:C_,providedIn:"root"}),C_),P_=fi(T_),D_=["fxFlexOffset","fxFlexOffset.xs","fxFlexOffset.sm","fxFlexOffset.md","fxFlexOffset.lg","fxFlexOffset.xl","fxFlexOffset.lt-sm","fxFlexOffset.lt-md","fxFlexOffset.lt-lg","fxFlexOffset.lt-xl","fxFlexOffset.gt-xs","fxFlexOffset.gt-sm","fxFlexOffset.gt-md","fxFlexOffset.gt-lg"],M_=((S_=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o){var s;return b(this,n),(s=t.call(this,e,r,o,a)).directionality=i,s.DIRECTIVE_KEY="flex-offset",s.init([s.directionality.change]),s.parentElement&&s.marshal.trackValue(s.parentElement,"layout-gap").pipe(Pp(s.destroySubject)).subscribe(s.triggerUpdate.bind(v(s))),s}return w(n,[{key:"updateWithValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.getFlexFlowDirection(this.parentElement,!0),n="rtl"===this.directionality.value;"row"===t&&n?this.styleCache=L_:"row"!==t||n?"column"===t&&n?this.styleCache=F_:"column"!==t||n||(this.styleCache=V_):this.styleCache=N_,this.addStyles(e+"",{layout:t,isRtl:n})}}]),n}(gv)).\u0275fac=function(e){return new(e||S_)(ls(Ol),ls(Iy),ls(T_),ls(qv),ls(zv))},S_.\u0275dir=bt({type:S_,features:[jo]}),S_),I_=((x_=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments)).inputs=D_,e}return n}(M_)).\u0275fac=function(e){return R_(e||x_)},x_.\u0275dir=bt({type:x_,selectors:[["","fxFlexOffset",""],["","fxFlexOffset.xs",""],["","fxFlexOffset.sm",""],["","fxFlexOffset.md",""],["","fxFlexOffset.lg",""],["","fxFlexOffset.xl",""],["","fxFlexOffset.lt-sm",""],["","fxFlexOffset.lt-md",""],["","fxFlexOffset.lt-lg",""],["","fxFlexOffset.lt-xl",""],["","fxFlexOffset.gt-xs",""],["","fxFlexOffset.gt-sm",""],["","fxFlexOffset.gt-md",""],["","fxFlexOffset.gt-lg",""]],inputs:{fxFlexOffset:"fxFlexOffset","fxFlexOffset.xs":"fxFlexOffset.xs","fxFlexOffset.sm":"fxFlexOffset.sm","fxFlexOffset.md":"fxFlexOffset.md","fxFlexOffset.lg":"fxFlexOffset.lg","fxFlexOffset.xl":"fxFlexOffset.xl","fxFlexOffset.lt-sm":"fxFlexOffset.lt-sm","fxFlexOffset.lt-md":"fxFlexOffset.lt-md","fxFlexOffset.lt-lg":"fxFlexOffset.lt-lg","fxFlexOffset.lt-xl":"fxFlexOffset.lt-xl","fxFlexOffset.gt-xs":"fxFlexOffset.gt-xs","fxFlexOffset.gt-sm":"fxFlexOffset.gt-sm","fxFlexOffset.gt-md":"fxFlexOffset.gt-md","fxFlexOffset.gt-lg":"fxFlexOffset.gt-lg"},features:[jo]}),x_),R_=fi(I_),L_=new Map,F_=new Map,N_=new Map,V_=new Map,B_=((A_=function(e){f(n,e);var t=m(n);function n(){return b(this,n),t.apply(this,arguments)}return w(n,[{key:"buildStyles",value:function(e){var t={};switch(e=e||"stretch"){case"start":t["align-self"]="flex-start";break;case"end":t["align-self"]="flex-end";break;default:t["align-self"]=e}return t}}]),n}(Gv)).\u0275fac=function(e){return H_(e||A_)},A_.\u0275prov=Le({factory:function(){return new A_},token:A_,providedIn:"root"}),A_),H_=fi(B_),z_=["fxFlexAlign","fxFlexAlign.xs","fxFlexAlign.sm","fxFlexAlign.md","fxFlexAlign.lg","fxFlexAlign.xl","fxFlexAlign.lt-sm","fxFlexAlign.lt-md","fxFlexAlign.lt-lg","fxFlexAlign.lt-xl","fxFlexAlign.gt-xs","fxFlexAlign.gt-sm","fxFlexAlign.gt-md","fxFlexAlign.gt-lg"],G_=((O_=function(e){f(n,e);var t=m(n);function n(e,i,r,a){var o;return b(this,n),(o=t.call(this,e,r,i,a)).DIRECTIVE_KEY="flex-align",o.styleCache=j_,o.init(),o}return n}(gv)).\u0275fac=function(e){return new(e||O_)(ls(Ol),ls(zv),ls(B_),ls(qv))},O_.\u0275dir=bt({type:O_,features:[jo]}),O_),j_=new Map,U_=((E_=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments)).inputs=z_,e}return n}(G_)).\u0275fac=function(e){return W_(e||E_)},E_.\u0275dir=bt({type:E_,selectors:[["","fxFlexAlign",""],["","fxFlexAlign.xs",""],["","fxFlexAlign.sm",""],["","fxFlexAlign.md",""],["","fxFlexAlign.lg",""],["","fxFlexAlign.xl",""],["","fxFlexAlign.lt-sm",""],["","fxFlexAlign.lt-md",""],["","fxFlexAlign.lt-lg",""],["","fxFlexAlign.lt-xl",""],["","fxFlexAlign.gt-xs",""],["","fxFlexAlign.gt-sm",""],["","fxFlexAlign.gt-md",""],["","fxFlexAlign.gt-lg",""]],inputs:{fxFlexAlign:"fxFlexAlign","fxFlexAlign.xs":"fxFlexAlign.xs","fxFlexAlign.sm":"fxFlexAlign.sm","fxFlexAlign.md":"fxFlexAlign.md","fxFlexAlign.lg":"fxFlexAlign.lg","fxFlexAlign.xl":"fxFlexAlign.xl","fxFlexAlign.lt-sm":"fxFlexAlign.lt-sm","fxFlexAlign.lt-md":"fxFlexAlign.lt-md","fxFlexAlign.lt-lg":"fxFlexAlign.lt-lg","fxFlexAlign.lt-xl":"fxFlexAlign.lt-xl","fxFlexAlign.gt-xs":"fxFlexAlign.gt-xs","fxFlexAlign.gt-sm":"fxFlexAlign.gt-sm","fxFlexAlign.gt-md":"fxFlexAlign.gt-md","fxFlexAlign.gt-lg":"fxFlexAlign.gt-lg"},features:[jo]}),E_),W_=fi(U_);new Map;var q_,Y_,Q_,X_,$_=((q_=function(e){f(i,e);var t=m(i);function i(){return b(this,i),t.apply(this,arguments)}return w(i,[{key:"buildStyles",value:function(e,t){var i={},r=n(e.split(" "),2),a=r[0],o=r[1];switch(a){case"center":i["justify-content"]="center";break;case"space-around":i["justify-content"]="space-around";break;case"space-between":i["justify-content"]="space-between";break;case"space-evenly":i["justify-content"]="space-evenly";break;case"end":case"flex-end":i["justify-content"]="flex-end";break;case"start":case"flex-start":default:i["justify-content"]="flex-start"}switch(o){case"start":case"flex-start":i["align-items"]=i["align-content"]="flex-start";break;case"center":i["align-items"]=i["align-content"]="center";break;case"end":case"flex-end":i["align-items"]=i["align-content"]="flex-end";break;case"space-between":i["align-content"]="space-between",i["align-items"]="stretch";break;case"space-around":i["align-content"]="space-around",i["align-items"]="stretch";break;case"baseline":i["align-content"]="stretch",i["align-items"]="baseline";break;case"stretch":default:i["align-items"]=i["align-content"]="stretch"}return c_(i,{display:t.inline?"inline-flex":"flex","flex-direction":t.layout,"box-sizing":"border-box","max-width":"stretch"===o?Ny(t.layout)?null:"100%":null,"max-height":"stretch"===o&&Ny(t.layout)?"100%":null})}}]),i}(Gv)).\u0275fac=function(e){return K_(e||q_)},q_.\u0275prov=Le({factory:function(){return new q_},token:q_,providedIn:"root"}),q_),K_=fi($_),Z_=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"],J_=((Q_=function(e){f(n,e);var t=m(n);function n(e,i,r,a){var o;return b(this,n),(o=t.call(this,e,r,i,a)).DIRECTIVE_KEY="layout-align",o.layout="row",o.inline=!1,o.init(),o.marshal.trackValue(o.nativeElement,"layout").pipe(Pp(o.destroySubject)).subscribe(o.onLayoutChange.bind(v(o))),o}return w(n,[{key:"updateWithValue",value:function(e){var t=this.layout||"row",n=this.inline;"row"===t&&n?this.styleCache=ob:"row"!==t||n?"row-reverse"===t&&n?this.styleCache=lb:"row-reverse"!==t||n?"column"===t&&n?this.styleCache=sb:"column"!==t||n?"column-reverse"===t&&n?this.styleCache=ub:"column-reverse"!==t||n||(this.styleCache=ab):this.styleCache=ib:this.styleCache=rb:this.styleCache=nb,this.addStyles(e,{layout:t,inline:n})}},{key:"onLayoutChange",value:function(e){var t=this,n=e.value.split(" ");this.layout=n[0],this.inline=e.value.includes("inline"),Ly.find(function(e){return e===t.layout})||(this.layout="row"),this.triggerUpdate()}}]),n}(gv)).\u0275fac=function(e){return new(e||Q_)(ls(Ol),ls(zv),ls($_),ls(qv))},Q_.\u0275dir=bt({type:Q_,features:[jo]}),Q_),eb=((Y_=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments)).inputs=Z_,e}return n}(J_)).\u0275fac=function(e){return tb(e||Y_)},Y_.\u0275dir=bt({type:Y_,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[jo]}),Y_),tb=fi(eb),nb=new Map,ib=new Map,rb=new Map,ab=new Map,ob=new Map,sb=new Map,lb=new Map,ub=new Map,cb=((X_=function e(){b(this,e)}).\u0275fac=function(e){return new(e||X_)},X_.\u0275mod=yt({type:X_}),X_.\u0275inj=Ne({imports:[[av,Ry]]}),X_);new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map;var db,hb=((db=function e(){b(this,e)}).\u0275fac=function(e){return new(e||db)},db.\u0275mod=yt({type:db}),db.\u0275inj=Ne({imports:[[av]]}),db);new Il("11.0.0-beta.33");var fb,pb=((fb=function(){function e(t,n){b(this,e),ef(n)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}return w(e,null,[{key:"withConfig",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{ngModule:e,providers:t.serverLoaded?[{provide:uv,useValue:Object.assign(Object.assign({},lv),t)},{provide:dv,useValue:n,multi:!0},{provide:cv,useValue:!0}]:[{provide:uv,useValue:Object.assign(Object.assign({},lv),t)},{provide:dv,useValue:n,multi:!0}]}}}]),e}()).\u0275fac=function(e){return new(e||fb)(Ni(cv),Ni(hc))},fb.\u0275mod=yt({type:fb}),fb.\u0275inj=Ne({imports:[[cb,Dy,hb],cb,Dy,hb]}),fb);function mb(){for(var e=arguments.length,t=new Array(e),n=0;ne?{max:{max:e,actual:t.value}}:null}}(e)}},{key:"required",value:function(e){return Tb(e)}},{key:"requiredTrue",value:function(e){return function(e){return!0===e.value?null:{required:!0}}(e)}},{key:"email",value:function(e){return function(e){return Cb(e.value)||Ob.test(e.value)?null:{email:!0}}(e)}},{key:"minLength",value:function(e){return function(e){return function(t){return Cb(t.value)||!xb(t.value)?null:t.value.lengthe?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}}(e)}},{key:"pattern",value:function(e){return function(e){return e?("string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),function(e){if(Cb(e.value))return null;var i=e.value;return t.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}):Pb;var t,n}(e)}},{key:"nullValidator",value:function(e){return null}},{key:"compose",value:function(e){return Fb(e)}},{key:"composeAsync",value:function(e){return Vb(e)}}]),e}();function Tb(e){return Cb(e.value)?{required:!0}:null}function Pb(e){return null}function Db(e){return null!=e}function Mb(e){var t=ys(e)?te(e):e;return bs(t),t}function Ib(e){var t={};return e.forEach(function(e){t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function Rb(e,t){return t.map(function(t){return t(e)})}function Lb(e){return e.map(function(e){return function(e){return!e.validate}(e)?e:function(t){return e.validate(t)}})}function Fb(e){if(!e)return null;var t=e.filter(Db);return 0==t.length?null:function(e){return Ib(Rb(e,t))}}function Nb(e){return null!=e?Fb(Lb(e)):null}function Vb(e){if(!e)return null;var t=e.filter(Db);return 0==t.length?null:function(e){return mb(Rb(e,t).map(Mb)).pipe(q(Ib))}}function Bb(e){return null!=e?Vb(Lb(e)):null}function Hb(e,t){return null===e?[t]:Array.isArray(e)?[].concat(a(e),[t]):[e,t]}function zb(e){return e._rawValidators}function Gb(e){return e._rawAsyncValidators}var jb,Ub,Wb,qb,Yb=((Ub=function(){function e(){b(this,e),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return w(e,[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"_setValidators",value:function(e){this._rawValidators=e||[],this._composedValidatorFn=Nb(this._rawValidators)}},{key:"_setAsyncValidators",value:function(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Bb(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(e){this._onDestroyCallbacks.push(e)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(e){return e()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(e){this.control&&this.control.reset(e)}},{key:"hasError",value:function(e,t){return!!this.control&&this.control.hasError(e,t)}},{key:"getError",value:function(e,t){return this.control?this.control.getError(e,t):null}}]),e}()).\u0275fac=function(e){return new(e||Ub)},Ub.\u0275dir=bt({type:Ub}),Ub),Qb=((jb=function(e){f(n,e);var t=m(n);function n(){return b(this,n),t.apply(this,arguments)}return w(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(Yb)).\u0275fac=function(e){return Xb(e||jb)},jb.\u0275dir=bt({type:jb,features:[jo]}),jb),Xb=fi(Qb),$b=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments))._parent=null,e.name=null,e.valueAccessor=null,e}return n}(Yb),Kb=function(){function e(t){b(this,e),this._cd=t}return w(e,[{key:"is",value:function(e){var t,n;return!!(null===(n=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===n?void 0:n[e])}}]),e}(),Zb=((qb=function(e){f(n,e);var t=m(n);function n(e){return b(this,n),t.call(this,e)}return n}(Kb)).\u0275fac=function(e){return new(e||qb)(ls($b,2))},qb.\u0275dir=bt({type:qb,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&Hs("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[jo]}),qb),Jb=((Wb=function(e){f(n,e);var t=m(n);function n(e){return b(this,n),t.call(this,e)}return n}(Kb)).\u0275fac=function(e){return new(e||Wb)(ls(Qb,10))},Wb.\u0275dir=bt({type:Wb,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&Hs("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[jo]}),Wb);function ek(e,t){ik(e,t,!0),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(function(n){e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&ak(e,t)})}(e,t),function(e,t){var n=function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)};e.registerOnChange(n),t._registerOnDestroy(function(){e._unregisterOnChange(n)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&ak(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function(e,t){if(t.valueAccessor.setDisabledState){var n=function(e){t.valueAccessor.setDisabledState(e)};e.registerOnDisabledChange(n),t._registerOnDestroy(function(){e._unregisterOnDisabledChange(n)})}}(e,t)}function tk(e,t){var n=function(){};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),rk(e,t,!0),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(function(){}))}function nk(e,t){e.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function ik(e,t,n){var i=zb(e);null!==t.validator?e.setValidators(Hb(i,t.validator)):"function"==typeof i&&e.setValidators([i]);var r=Gb(e);if(null!==t.asyncValidator?e.setAsyncValidators(Hb(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]),n){var a=function(){return e.updateValueAndValidity()};nk(t._rawValidators,a),nk(t._rawAsyncValidators,a)}}function rk(e,t,n){var i=!1;if(null!==e){if(null!==t.validator){var r=zb(e);if(Array.isArray(r)&&r.length>0){var a=r.filter(function(e){return e!==t.validator});a.length!==r.length&&(i=!0,e.setValidators(a))}}if(null!==t.asyncValidator){var o=Gb(e);if(Array.isArray(o)&&o.length>0){var s=o.filter(function(e){return e!==t.asyncValidator});s.length!==o.length&&(i=!0,e.setAsyncValidators(s))}}}if(n){var l=function(){};nk(t._rawValidators,l),nk(t._rawAsyncValidators,l)}return i}function ak(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function ok(e,t){ik(e,t,!1)}function sk(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}function lk(e,t){e._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function uk(e,t){return t?(Array.isArray(t),t.forEach(function(e){e.constructor===wb?n=e:Object.getPrototypeOf(e.constructor)===yb?i=e:r=e}),r||i||n||null):null;var n,i,r}function ck(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}function dk(e){return(mk(e)?e.validators:e)||null}function hk(e){return Array.isArray(e)?Nb(e):e||null}function fk(e,t){return(mk(t)?t.asyncValidators:e)||null}function pk(e){return Array.isArray(e)?Bb(e):e||null}function mk(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var gk,vk,yk,_k,bk,kk,wk,Ck,xk,Sk,Ak,Ok,Ek=function(){function e(t,n){b(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=hk(this._rawValidators),this._composedAsyncValidatorFn=pk(this._rawAsyncValidators)}return w(e,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(e){this._rawValidators=this._composedValidatorFn=e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}},{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:"setValidators",value:function(e){this._rawValidators=e,this._composedValidatorFn=hk(e)}},{key:"setAsyncValidators",value:function(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=pk(e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(e){return e.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!0)})}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild(function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!1)})}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=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(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.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(e){var t=this;if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;var n=Mb(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){t._hasOwnPendingAsyncValidator=!1,t.setErrors(n,{emitEvent:e})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;var i=e;return t.forEach(function(e){i=i instanceof Pk?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof Dk&&i.at(e)||null}),i}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new Vu,this.statusChanges=new Vu}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls(function(t){return t.status===e})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(e){return e.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(e){return e.touched})}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){mk(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),e}(),Tk=function(e){f(n,e);var t=m(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0;return b(this,n),(e=t.call(this,dk(r),fk(a,r)))._onChange=[],e._applyFormState(i),e._setUpdateStrategy(r),e._initObservables(),e.updateValueAndValidity({onlySelf:!0,emitEvent:!!a}),e}return w(n,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(e){return e(t.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_unregisterOnChange",value:function(e){ck(this._onChange,e)}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_unregisterOnDisabledChange",value:function(e){ck(this._onDisabledChange,e)}},{key:"_forEachChild",value:function(e){}},{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(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),n}(Ek),Pk=function(e){f(n,e);var t=m(n);function n(e,i,r){var a;return b(this,n),(a=t.call(this,dk(i),fk(r,i))).controls=e,a._initObservables(),a._setUpdateStrategy(i),a._setUpControls(),a.updateValueAndValidity({onlySelf:!0,emitEvent:!!r}),a}return w(n,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach(function(i){t._throwIfControlMissing(i),t.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(Object.keys(e).forEach(function(i){t.controls[i]&&t.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof Tk?t.value:t.getRawValue(),e})}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach(function(n){var i=t.controls[n];i&&e(i,n)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,n=Object.keys(this.controls);t0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}]),n}(Ek),Dk=function(e){f(n,e);var t=m(n);function n(e,i,r){var a;return b(this,n),(a=t.call(this,dk(i),fk(r,i))).controls=e,a._initObservables(),a._setUpdateStrategy(i),a._setUpControls(),a.updateValueAndValidity({onlySelf:!0,emitEvent:!!r}),a}return w(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}},{key:"removeAt",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach(function(e,i){t._throwIfControlMissing(i),t.at(i).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(e.forEach(function(e,i){t.at(i)&&t.at(i).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map(function(e){return e instanceof Tk?e.value:e.getRawValue()})}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild(function(e){return e._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index ".concat(e))}},{key:"_forEachChild",value:function(e){this.controls.forEach(function(t,n){e(t,n)})}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})}},{key:"_anyControls",value:function(e){return this.controls.some(function(t){return t.enabled&&e(t)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var e,t=s(this.controls);try{for(t.s();!(e=t.n()).done;){if(e.value.enabled)return!1}}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}]),n}(Ek),Mk={provide:Qb,useExisting:Ee(function(){return Rk})},Ik=Promise.resolve(null),Rk=((gk=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this)).submitted=!1,r._directives=[],r.ngSubmit=new Vu,r.form=new Pk({},Nb(e),Bb(i)),r}return w(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{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}},{key:"addControl",value:function(e){var t=this;Ik.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),ek(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){var t=this;Ik.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),ck(t._directives,e)})}},{key:"addFormGroup",value:function(e){var t=this;Ik.then(function(){var n=t._findContainer(e.path),i=new Pk({});ok(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(e){var t=this;Ik.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){var n=this;Ik.then(function(){n.form.get(e.path).setValue(t)})}},{key:"setValue",value:function(e){this.control.setValue(e)}},{key:"onSubmit",value:function(e){return this.submitted=!0,lk(this.form,this._directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(e){return e.pop(),e.length?this.form.get(e):this.form}}]),n}(Qb)).\u0275fac=function(e){return new(e||gk)(ls(Sb,10),ls(Ab,10))},gk.\u0275dir=bt({type:gk,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&ks("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[bl([Mk]),jo]}),gk),Lk={provide:$b,useExisting:Ee(function(){return Nk})},Fk=Promise.resolve(null),Nk=((yk=function(e){f(n,e);var t=m(n);function n(e,i,r,a){var o;return b(this,n),(o=t.call(this)).control=new Tk,o._registered=!1,o.update=new Vu,o._parent=e,o._setValidators(i),o._setAsyncValidators(r),o.valueAccessor=uk(0,a),o}return w(n,[{key:"ngOnChanges",value:function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),sk(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?function(e,t){return[].concat(a(t.path),[e])}(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{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(){ek(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(e){var t=this;Fk.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(e){var t=this,n=e.isDisabled.currentValue,i=""===n||n&&"false"!==n;Fk.then(function(){i&&!t.control.disabled?t.control.disable():!i&&t.control.disabled&&t.control.enable()})}}]),n}($b)).\u0275fac=function(e){return new(e||yk)(ls(Qb,9),ls(Sb,10),ls(Ab,10),ls(_b,10))},yk.\u0275dir=bt({type:yk,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[bl([Lk]),jo,It]}),yk),Vk=((vk=function e(){b(this,e)}).\u0275fac=function(e){return new(e||vk)},vk.\u0275dir=bt({type:vk,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),vk),Bk={provide:_b,useExisting:Ee(function(){return Hk}),multi:!0},Hk=((bk=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this))._renderer=e,r._elementRef=i,r.onChange=function(e){},r.onTouched=function(){},r}return w(n,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),n}(yb)).\u0275fac=function(e){return new(e||bk)(ls(Pl),ls(Ol))},bk.\u0275dir=bt({type:bk,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&ks("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[bl([Bk]),jo]}),bk),zk=((_k=function e(){b(this,e)}).\u0275fac=function(e){return new(e||_k)},_k.\u0275mod=yt({type:_k}),_k.\u0275inj=Ne({}),_k),Gk=new _i("NgModelWithFormControlWarning"),jk={provide:$b,useExisting:Ee(function(){return Uk})},Uk=((kk=function(e){f(n,e);var t=m(n);function n(e,i,r,a){var o;return b(this,n),(o=t.call(this))._ngModelWarningConfig=a,o.update=new Vu,o._ngModelWarningSent=!1,o._setValidators(e),o._setAsyncValidators(i),o.valueAccessor=uk(0,r),o}return w(n,[{key:"isDisabled",set:function(e){}},{key:"ngOnChanges",value:function(e){if(this._isControlChanged(e)){var t=e.form.previousValue;t&&tk(t,this,!1),ek(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}sk(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.form&&tk(this.form,this,!1)}},{key:"path",get:function(){return[]}},{key:"control",get:function(){return this.form}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_isControlChanged",value:function(e){return e.hasOwnProperty("form")}}]),n}($b)).\u0275fac=function(e){return new(e||kk)(ls(Sb,10),ls(Ab,10),ls(_b,10),ls(Gk,8))},kk.\u0275dir=bt({type:kk,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[bl([jk]),jo,It]}),kk._ngModelWarningSentOnce=!1,kk),Wk={provide:Qb,useExisting:Ee(function(){return qk})},qk=((wk=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this)).validators=e,r.asyncValidators=i,r.submitted=!1,r._onCollectionChange=function(){return r._updateDomValue()},r.directives=[],r.form=null,r.ngSubmit=new Vu,r._setValidators(e),r._setAsyncValidators(i),r}return w(n,[{key:"ngOnChanges",value:function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(rk(this.form,this,!1),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(e){var t=this.form.get(e.path);return ek(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){tk(e.control||null,e,!1),ck(this.directives,e)}},{key:"addFormGroup",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormGroup",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"addFormArray",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormArray",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormArray",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){this.form.get(e.path).setValue(t)}},{key:"onSubmit",value:function(e){return this.submitted=!0,lk(this.form,this.directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_updateDomValue",value:function(){var e=this;this.directives.forEach(function(t){var n=t.control,i=e.form.get(t.path);n!==i&&(tk(n||null,t),i instanceof Tk&&(ek(i,t),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(e){var t=this.form.get(e.path);ok(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(e){if(this.form){var t=this.form.get(e.path);t&&function(e,t){return rk(e,t,!1)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){ik(this.form,this,!1),this._oldForm&&rk(this._oldForm,this,!1)}},{key:"_checkFormPresent",value:function(){}}]),n}(Qb)).\u0275fac=function(e){return new(e||wk)(ls(Sb,10),ls(Ab,10))},wk.\u0275dir=bt({type:wk,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&ks("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[bl([Wk]),jo,It]}),wk),Yk={provide:Sb,useExisting:Ee(function(){return Qk}),multi:!0},Qk=((Ok=function(){function e(){b(this,e),this._required=!1}return w(e,[{key:"required",get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&"false"!="".concat(e),this._onChange&&this._onChange()}},{key:"validate",value:function(e){return this.required?Tb(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}}]),e}()).\u0275fac=function(e){return new(e||Ok)},Ok.\u0275dir=bt({type:Ok,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&is("required",t.required?"":null)},inputs:{required:"required"},features:[bl([Yk])]}),Ok),Xk=((Ak=function e(){b(this,e)}).\u0275fac=function(e){return new(e||Ak)},Ak.\u0275mod=yt({type:Ak}),Ak.\u0275inj=Ne({imports:[[zk]]}),Ak),$k=((Sk=function e(){b(this,e)}).\u0275fac=function(e){return new(e||Sk)},Sk.\u0275mod=yt({type:Sk}),Sk.\u0275inj=Ne({imports:[Xk]}),Sk),Kk=((xk=function(){function e(){b(this,e)}return w(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:[{provide:Gk,useValue:t.warnOnNgModelWithFormControl}]}}}]),e}()).\u0275fac=function(e){return new(e||xk)},xk.\u0275mod=yt({type:xk}),xk.\u0275inj=Ne({imports:[Xk]}),xk);function Zk(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i-1&&t!==n._activeItemIndex&&(n._activeItemIndex=t)}})}return w(e,[{key:"skipPredicate",value:function(e){return this._skipPredicateFn=e,this}},{key:"withWrap",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=e,this}},{key:"withVerticalOrientation",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=e,this}},{key:"withHorizontalOrientation",value:function(e){return this._horizontal=e,this}},{key:"withAllowedModifierKeys",value:function(e){return this._allowedModifierKeys=e,this}},{key:"withTypeAhead",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Zg(function(t){return e._pressedLetters.push(t)}),jg(t),jm(function(){return e._pressedLetters.length>0}),q(function(){return e._pressedLetters.join("")})).subscribe(function(t){for(var n=e._getItemsArray(),i=1;i0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=e,this}},{key:"setActiveItem",value:function(e){var t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(e){var t=this,n=e.keyCode,i=["altKey","ctrlKey","metaKey","shiftKey"].every(function(n){return!e[n]||t._allowedModifierKeys.indexOf(n)>-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;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||Zk(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(n>=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],e.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{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(e){var t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e),i=t[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}},{key:"_setActiveItemByDelta",value:function(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}},{key:"_setActiveInWrapMode",value:function(e){for(var t=this._getItemsArray(),n=1;n<=t.length;n++){var i=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[i]))return void this.setActiveItem(i)}}},{key:"_setActiveInDefaultMode",value:function(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}},{key:"_setActiveItemByIndex",value:function(e,t){var n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}}},{key:"_getItemsArray",value:function(){return this._items instanceof Hu?this._items.toArray():this._items}}]),e}(),Mw=function(e){f(n,e);var t=m(n);function n(){return b(this,n),t.apply(this,arguments)}return w(n,[{key:"setActiveItem",value:function(e){this.activeItem&&this.activeItem.setInactiveStyles(),h(_(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.setActiveStyles()}}]),n}(Dw),Iw=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments))._origin="program",e}return w(n,[{key:"setFocusOrigin",value:function(e){return this._origin=e,this}},{key:"setActiveItem",value:function(e){h(_(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.focus(this._origin)}}]),n}(Dw),Rw=((Pw=function(){function e(t){b(this,e),this._platform=t}return w(e,[{key:"isDisabled",value:function(e){return e.hasAttribute("disabled")}},{key:"isVisible",value:function(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}},{key:"isTabbable",value:function(e){if(!this._platform.isBrowser)return!1;var t,n=function(e){try{return e.frameElement}catch(lte){return null}}((t=e).ownerDocument&&t.ownerDocument.defaultView||window);if(n){if(-1===Fw(n))return!1;if(!this.isVisible(n))return!1}var i=e.nodeName.toLowerCase(),r=Fw(e);return e.hasAttribute("contenteditable")?-1!==r:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(e){var t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&("audio"===i?!!e.hasAttribute("controls")&&-1!==r:"video"===i?-1!==r&&(null!==r||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}},{key:"isFocusable",value:function(e,t){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||Lw(e))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}]),e}()).\u0275fac=function(e){return new(e||Pw)(Ni(ow))},Pw.\u0275prov=Le({factory:function(){return new Pw(Ni(ow))},token:Pw,providedIn:"root"}),Pw);function Lw(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function Fw(e){if(!Lw(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var Nw,Vw,Bw=function(){function e(t,n,i,r){var a=this,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];b(this,e),this._element=t,this._checker=n,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return a.focusLastTabbableElement()},this.endAnchorListener=function(){return a.focusFirstTabbableElement()},this._enabled=!0,o||this.attachAnchors()}return w(e,[{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"destroy",value:function(){var e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var e=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){e._startAnchor||(e._startAnchor=e._createAnchor(),e._startAnchor.addEventListener("focus",e.startAnchorListener)),e._endAnchor||(e._endAnchor=e._createAnchor(),e._endAnchor.addEventListener("focus",e.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 e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusInitialElement())})})}},{key:"focusFirstTabbableElementWhenReady",value:function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusFirstTabbableElement())})})}},{key:"focusLastTabbableElementWhenReady",value:function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusLastTabbableElement())})})}},{key:"_getRegionBoundary",value:function(e){for(var t=this._element.querySelectorAll("[cdk-focus-region-".concat(e,"], [cdkFocusRegion").concat(e,"], [cdk-focus-").concat(e,"]")),n=0;n=0;n--){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(i)return i}return null}},{key:"_createAnchor",value:function(){var e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}},{key:"_toggleAnchorTabIndex",value:function(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"_executeOnStable",value:function(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe(Qg(1)).subscribe(e)}}]),e}(),Hw=((Vw=function(){function e(t,n,i){b(this,e),this._checker=t,this._ngZone=n,this._document=i}return w(e,[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Bw(e,this._checker,this._ngZone,this._document,t)}}]),e}()).\u0275fac=function(e){return new(e||Vw)(Ni(Rw),Ni(Oc),Ni(sd))},Vw.\u0275prov=Le({factory:function(){return new Vw(Ni(Rw),Ni(Oc),Ni(sd))},token:Vw,providedIn:"root"}),Vw),zw=((Nw=function(){function e(t,n,i){b(this,e),this._elementRef=t,this._focusTrapFactory=n,this._previouslyFocusedElement=null,this._document=i,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}return w(e,[{key:"enabled",get:function(){return this.focusTrap.enabled},set:function(e){this.focusTrap.enabled=Qv(e)}},{key:"autoCapture",get:function(){return this._autoCapture},set:function(e){this._autoCapture=Qv(e)}},{key:"ngOnDestroy",value:function(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}},{key:"ngAfterContentInit",value:function(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}},{key:"ngDoCheck",value:function(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}},{key:"ngOnChanges",value:function(e){var t=e.autoCapture;t&&!t.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}},{key:"_captureFocus",value:function(){this._previouslyFocusedElement=this._document.activeElement,this.focusTrap.focusInitialElementWhenReady()}}]),e}()).\u0275fac=function(e){return new(e||Nw)(ls(Ol),ls(Hw),ls(sd))},Nw.\u0275dir=bt({type:Nw,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[It]}),Nw);"undefined"!=typeof Element&∈var Gw,jw,Uw=new _i("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Ww=new _i("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),qw=((jw=function(){function e(t,n,i,r){b(this,e),this._ngZone=n,this._defaultOptions=r,this._document=i,this._liveElement=t||this._createLiveElement()}return w(e,[{key:"announce",value:function(e){for(var t,i,r,a=this,o=this._defaultOptions,s=arguments.length,l=new Array(s>1?s-1:0),u=1;u1&&void 0!==arguments[1]&&arguments[1],n=Jv(e);if(!this._platform.isBrowser||1!==n.nodeType)return fp(null);var i=fw(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return t&&(r.checkChildren=!0),r.subject;var a={checkChildren:t,subject:new j,rootNode:i};return this._elementInfo.set(n,a),this._registerGlobalListeners(a),a.subject}},{key:"stopMonitoring",value:function(e){var t=Jv(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(e,t,i){var r=this,a=Jv(e);a===this._getDocument().activeElement?this._getClosestElementsInfo(a).forEach(function(e){var i=n(e,2),a=i[0],o=i[1];return r._originChanged(a,t,o)}):(this._setOriginForCurrentEventQueue(t),"function"==typeof a.focus&&a.focus(i))}},{key:"ngOnDestroy",value:function(){var e=this;this._elementInfo.forEach(function(t,n){return e.stopMonitoring(n)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(e,t,n){n?e.classList.add(t):e.classList.remove(t)}},{key:"_getFocusOrigin",value:function(e){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"}},{key:"_setClasses",value:function(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)}},{key:"_setOriginForCurrentEventQueue",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){t._origin=e,0===t._detectionMode&&(t._originTimeoutId=setTimeout(function(){return t._origin=null},1))})}},{key:"_wasCausedByTouch",value:function(e){var t=eC(e);return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(e,t){var n=this._elementInfo.get(t);n&&(n.checkChildren||t===eC(e))&&this._originChanged(t,this._getFocusOrigin(e),n)}},{key:"_onBlur",value:function(e,t){var n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(e,t){this._ngZone.run(function(){return e.next(t)})}},{key:"_registerGlobalListeners",value:function(e){var t=this;if(this._platform.isBrowser){var n=e.rootNode,i=this._rootNodeFocusListenerCount.get(n)||0;i||this._ngZone.runOutsideAngular(function(){n.addEventListener("focus",t._rootNodeFocusAndBlurListener,Zw),n.addEventListener("blur",t._rootNodeFocusAndBlurListener,Zw)}),this._rootNodeFocusListenerCount.set(n,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(function(){var e=t._getDocument(),n=t._getWindow();e.addEventListener("keydown",t._documentKeydownListener,Zw),e.addEventListener("mousedown",t._documentMousedownListener,Zw),e.addEventListener("touchstart",t._documentTouchstartListener,Zw),n.addEventListener("focus",t._windowFocusListener)})}}},{key:"_removeGlobalListeners",value:function(e){var t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){var n=this._rootNodeFocusListenerCount.get(t);n>1?this._rootNodeFocusListenerCount.set(t,n-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Zw),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Zw),this._rootNodeFocusListenerCount.delete(t))}if(!--this._monitoredElementCount){var i=this._getDocument(),r=this._getWindow();i.removeEventListener("keydown",this._documentKeydownListener,Zw),i.removeEventListener("mousedown",this._documentMousedownListener,Zw),i.removeEventListener("touchstart",this._documentTouchstartListener,Zw),r.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}},{key:"_originChanged",value:function(e,t,n){this._setClasses(e,t),this._emitOrigin(n.subject,t),this._lastFocusOrigin=t}},{key:"_getClosestElementsInfo",value:function(e){var t=[];return this._elementInfo.forEach(function(n,i){(i===e||n.checkChildren&&i.contains(e))&&t.push([i,n])}),t}}]),e}()).\u0275fac=function(e){return new(e||$w)(Ni(Oc),Ni(ow),Ni(sd,8),Ni(Kw,8))},$w.\u0275prov=Le({factory:function(){return new $w(Ni(Oc),Ni(ow),Ni(sd,8),Ni(Kw,8))},token:$w,providedIn:"root"}),$w);function eC(e){return e.composedPath?e.composedPath()[0]:e.target}var tC,nC,iC,rC=((iC=function(){function e(t,n){b(this,e),this._elementRef=t,this._focusMonitor=n,this.cdkFocusChange=new Vu}return w(e,[{key:"ngAfterViewInit",value:function(){var e=this,t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,1===t.nodeType&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(t){return e.cdkFocusChange.emit(t)})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||iC)(ls(Ol),ls(Jw))},iC.\u0275dir=bt({type:iC,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),iC),aC=((nC=function(){function e(t,n){b(this,e),this._platform=t,this._document=n}return w(e,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);var t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),i){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 e=this._document.body.classList;e.remove("cdk-high-contrast-active"),e.remove("cdk-high-contrast-black-on-white"),e.remove("cdk-high-contrast-white-on-black");var t=this.getHighContrastMode();1===t?(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-black-on-white")):2===t&&(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-white-on-black"))}}}]),e}()).\u0275fac=function(e){return new(e||nC)(Ni(ow),Ni(sd))},nC.\u0275prov=Le({factory:function(){return new nC(Ni(ow),Ni(sd))},token:nC,providedIn:"root"}),nC),oC=((tC=function e(t){b(this,e),t._applyBodyHighContrastModeCssClasses()}).\u0275fac=function(e){return new(e||tC)(Ni(aC))},tC.\u0275mod=yt({type:tC}),tC.\u0275inj=Ne({imports:[[sw,kw]]}),tC),sC=new Il("11.2.7"),lC=function e(){b(this,e)};function uC(e,t){return{type:7,name:e,definitions:t,options:{}}}function cC(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function dC(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:3,steps:e,options:t}}function hC(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function fC(e){return{type:6,styles:e,offset:null}}function pC(e,t,n){return{type:0,name:e,styles:t,options:n}}function mC(e){return{type:5,steps:e}}function gC(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:n}}function vC(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}function yC(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:t,options:n}}function _C(e){Promise.resolve(null).then(e)}var bC=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;b(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+n}return w(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{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 e=this;_C(function(){return e._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(e){return e()}),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(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){}},{key:"setPosition",value:function(e){this._position=this.totalTime?e*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),kC=function(){function e(t){var n=this;b(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var i=0,r=0,a=0,o=this.players.length;0==o?_C(function(){return n._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++i==o&&n._onFinish()}),e.onDestroy(function(){++r==o&&n._onDestroy()}),e.onStart(function(){++a==o&&n._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return w(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(e){return e.init()})}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})}},{key:"pause",value:function(){this.players.forEach(function(e){return e.pause()})}},{key:"restart",value:function(){this.players.forEach(function(e){return e.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}},{key:"getPosition",value:function(){var e=this.players.reduce(function(e,t){return null===e||t.totalTime>e.totalTime?t:e},null);return null!=e?e.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}();function wC(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function CC(e){switch(e.length){case 0:return new bC;case 1:return e[0];default:return new kC(e)}}function xC(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=[],s=[],l=-1,u=null;if(i.forEach(function(e){var n=e.offset,i=n==l,c=i&&u||{};Object.keys(e).forEach(function(n){var i=n,s=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,o),s){case"!":s=r[n];break;case"*":s=a[n];break;default:s=t.normalizeStyleValue(n,i,s,o)}c[i]=s}),i||s.push(c),u=c,l=n}),o.length){var c="\n - ";throw new Error("Unable to animate due to the following errors:".concat(c).concat(o.join(c)))}return s}function SC(e,t,n,i){switch(t){case"start":e.onStart(function(){return i(n&&AC(n,"start",e))});break;case"done":e.onDone(function(){return i(n&&AC(n,"done",e))});break;case"destroy":e.onDestroy(function(){return i(n&&AC(n,"destroy",e))})}}function AC(e,t,n){var i=n.totalTime,r=OC(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==i?e.totalTime:i,!!n.disabled),a=e._data;return null!=a&&(r._data=a),r}function OC(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:t,fromState:n,toState:i,phaseName:r,totalTime:a,disabled:!!o}}function EC(e,t,n){var i;return e instanceof Map?(i=e.get(t))||e.set(t,i=n):(i=e[t])||(i=e[t]=n),i}function TC(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var PC=function(e,t){return!1},DC=function(e,t){return!1},MC=function(e,t,n){return[]},IC=wC();(IC||"undefined"!=typeof Element)&&(PC=function(e,t){return e.contains(t)},DC=function(){if(IC||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,n){return t.apply(e,[n])}:DC}(),MC=function(e,t,n){var i=[];if(n)for(var r=e.querySelectorAll(t),a=0;a1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function QC(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var i in e)n[i]=e[i];else YC(e,n);return n}function XC(e,t,n){return n?t+":"+n+";":""}function $C(e){for(var t="",n=0;n *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t) *"}}(e,n);if("function"==typeof i)return void t.push(i);e=i}var r=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'.concat(e,'" is not supported')),t;var a=r[1],o=r[2],s=r[3];t.push(hx(a,s)),"<"!=o[0]||"*"==a&&"*"==s||t.push(hx(s,a))}(e,r,i)}):r.push(n),r),animation:a,queryCount:t.queryCount,depCount:t.depCount,options:yx(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return lx(n,e,t)}),options:yx(e.options)}}},{key:"visitGroup",value:function(e,t){var n=this,i=t.currentTime,r=0,a=e.steps.map(function(e){t.currentTime=i;var a=lx(n,e,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:3,steps:a,options:yx(e.options)}}},{key:"visitAnimate",value:function(e,t){var n,i=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return _x(qC(e,t).duration,0,"");var i=e;if(i.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var r=_x(0,0,"");return r.dynamic=!0,r.strValue=i,r}return _x((n=n||qC(i,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;var r=e.styles?e.styles:fC({});if(5==r.type)n=this.visitKeyframes(r,t);else{var a=e.styles,o=!1;if(!a){o=!0;var s={};i.easing&&(s.easing=i.easing),a=fC(s)}t.currentTime+=i.duration+i.delay;var l=this.visitStyle(a,t);l.isEmptyStep=o,n=l}return t.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}},{key:"visitStyle",value:function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}},{key:"_makeStyleAst",value:function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?"*"==e?n.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):n.push(e)}):n.push(e.styles);var i=!1,r=null;return n.forEach(function(e){if(vx(e)){var t=e,n=t.easing;if(n&&(r=n,delete t.easing),!i)for(var a in t)if(t[a].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:i,options:null}}},{key:"_validateStyleAst",value:function(e,t){var n=this,i=t.currentAnimateTimings,r=t.currentTime,a=t.currentTime;i&&a>0&&(a-=i.duration+i.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(i){if(n._driver.validateStyleProperty(i)){var o,s,l,u,c,d=t.collectedStyles[t.currentQuerySelector],h=d[i],f=!0;h&&(a!=r&&a>=h.startTime&&r<=h.endTime&&(t.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(h.startTime,'ms" and "').concat(h.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(a,'ms" and "').concat(r,'ms"')),f=!1),a=h.startTime),f&&(d[i]={startTime:a,endTime:r}),t.options&&(o=e[i],s=t.options,l=t.errors,u=s.params||{},(c=tx(o)).length&&c.forEach(function(e){u.hasOwnProperty(e)||l.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))}))}else t.errors.push('The provided animation property "'.concat(i,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(e,t){var n=this,i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),i;var r=0,a=[],o=!1,s=!1,l=0,u=e.steps.map(function(e){var i=n._makeStyleAst(e,t),u=null!=i.offset?i.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(vx(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(vx(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(i.styles),c=0;return null!=u&&(r++,c=i.offset=u),s=s||c<0||c>1,o=o||c0&&r0?r==h?1:d*r:a[r],s=o*m;t.currentTime=f+p.delay+s,p.duration=s,n._validateStyleAst(e,t),e.offset=o,i.styles.push(e)}),i}},{key:"visitReference",value:function(e,t){return{type:8,animation:lx(this,JC(e.animation),t),options:yx(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:yx(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:yx(e.options)}}},{key:"visitQuery",value:function(e,t){var i=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;var a=n(function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace(fx,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(e){return".ng-trigger-"+e.substr(1)}).replace(/:animating/g,".ng-animating"),t]}(e.selector),2),o=a[0],s=a[1];t.currentQuerySelector=i.length?i+" "+o:o,EC(t.collectedStyles,t.currentQuerySelector,{});var l=lx(this,JC(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:l,originalSelector:e.selector,options:yx(e.options)}}},{key:"visitStagger",value:function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:qC(e.timings,t.errors,!0);return{type:12,animation:lx(this,JC(e.animation),t),timings:n,options:null}}}]),e}(),gx=function e(t){b(this,e),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 vx(e){return!Array.isArray(e)&&"object"==typeof e}function yx(e){var t;return e?(e=YC(e)).params&&(e.params=(t=e.params)?YC(t):null):e={},e}function _x(e,t,n){return{duration:e,delay:t,easing:n}}function bx(e,t,n,i,r,a){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:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:r,delay:a,totalTime:r+a,easing:o,subTimeline:s}}var kx=function(){function e(){b(this,e),this._map=new Map}return w(e,[{key:"consume",value:function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t}},{key:"append",value:function(e,t){var n,i=this._map.get(e);i||this._map.set(e,i=[]),(n=i).push.apply(n,a(t))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),wx=new RegExp(":enter","g"),Cx=new RegExp(":leave","g");function xx(e,t,n,i,r){var a=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,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new Sx).buildKeyframes(e,t,n,i,r,a,o,s,l,u)}var Sx=function(){function e(){b(this,e)}return w(e,[{key:"buildKeyframes",value:function(e,t,n,i,r,a,o,s,l){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];l=l||new kx;var c=new Ox(e,t,l,i,r,u,[]);c.options=s,c.currentTimeline.setStyles([a],null,c.errors,s),lx(this,n,c);var d=c.timelines.filter(function(e){return e.containsAnimation()});if(d.length&&Object.keys(o).length){var h=d[d.length-1];h.allowOnlyTimelineStyles()||h.setStyles([o],null,c.errors,s)}return d.length?d.map(function(e){return e.buildKeyframes()}):[bx(t,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,t){}},{key:"visitState",value:function(e,t){}},{key:"visitTransition",value:function(e,t){}},{key:"visitAnimateChild",value:function(e,t){var n=t.subInstructions.consume(t.element);if(n){var i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,a=this._visitSubInstructions(n,i,i.options);r!=a&&t.transformIntoNewTimeline(a)}t.previousNode=e}},{key:"visitAnimateRef",value:function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}},{key:"_visitSubInstructions",value:function(e,t,n){var i=t.currentTimeline.currentTime,r=null!=n.duration?UC(n.duration):null,a=null!=n.delay?UC(n.delay):null;return 0!==r&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,r,a);i=Math.max(i,n.duration+n.delay)}),i}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),lx(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var n=this,i=t.subContextCount,r=t,a=e.options;if(a&&(a.params||a.delay)&&((r=t.createSubContext(a)).transformIntoNewTimeline(),null!=a.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Ax);var o=UC(a.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(function(e){return lx(n,e,r)}),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var n=this,i=[],r=t.currentTimeline.currentTime,a=e.options&&e.options.delay?UC(e.options.delay):0;e.steps.forEach(function(o){var s=t.createSubContext(e.options);a&&s.delayNextStep(a),lx(n,o,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(r),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var n=e.strValue;return qC(t.params?nx(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());var r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var r=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var n=t.currentAnimateTimings,i=t.currentTimeline.duration,r=n.duration,a=t.createSubContext().currentTimeline;a.easing=n.easing,e.styles.forEach(function(e){a.forwardTime((e.offset||0)*r),a.setStyles(e.styles,e.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(i+r),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var n=this,i=t.currentTimeline.currentTime,r=e.options||{},a=r.delay?UC(r.delay):0;a&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Ax);var o=i,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=s.length;var l=null;s.forEach(function(i,r){t.currentQueryIndex=r;var s=t.createSubContext(e.options,i);a&&s.delayNextStep(a),i===t.element&&(l=s.currentTimeline),lx(n,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,s.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var n=t.parentContext,i=t.currentTimeline,r=e.timings,a=Math.abs(r.duration),o=a*(t.currentQueryTotal-1),s=a*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=o-s;break;case"full":s=n.currentStaggerTime}var l=t.currentTimeline;s&&l.delayNextStep(s);var u=l.currentTime;lx(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-u+(i.startTime-n.currentTimeline.startTime)}}]),e}(),Ax={},Ox=function(){function e(t,n,i,r,a,o,s,l){b(this,e),this._driver=t,this.element=n,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=a,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ax,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Ex(this._driver,n,0),s.push(this.currentTimeline)}return w(e,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(e,t){var n=this;if(e){var i=e,r=this.options;null!=i.duration&&(r.duration=UC(i.duration)),null!=i.delay&&(r.delay=UC(i.delay));var a=i.params;if(a){var o=r.params;o||(o=this.options.params={}),Object.keys(a).forEach(function(e){t&&o.hasOwnProperty(e)||(o[e]=nx(a[e],o,n.errors))})}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e}},{key:"createSubContext",value:function(){var t=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,r=n||this.element,a=new e(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return a.previousNode=this.previousNode,a.currentAnimateTimings=this.currentAnimateTimings,a.options=this._copyOptions(),a.updateOptions(t),a.currentQueryIndex=this.currentQueryIndex,a.currentQueryTotal=this.currentQueryTotal,a.parentContext=this,this.subContextCount++,a}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=Ax,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,n){var i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new Tx(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,t,n,i,r,o){var s=[];if(i&&s.push(this.element),e.length>0){e=(e=e.replace(wx,"."+this._enterClassName)).replace(Cx,"."+this._leaveClassName);var l=this._driver.query(this.element,e,1!=n);0!==n&&(l=n<0?l.slice(l.length+n,l.length):l.slice(0,n)),s.push.apply(s,a(l))}return r||0!=s.length||o.push('`query("'.concat(t,'")` returned zero elements. (Use `query("').concat(t,'", { optional: true })` if you wish to allow this.)')),s}}]),e}(),Ex=function(){function e(t,n,i,r){b(this,e),this._driver=t,this.element=n,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return w(e,[{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:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,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(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||"*",t._currentKeyframe[e]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,n,i){var r=this;t&&(this._previousKeyframe.easing=t);var a=i&&i.params||{},o=function(e,t){var n,i={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){i[e]="*"}):QC(e,!1,i)}),i}(e,this._globalTimelineStyles);Object.keys(o).forEach(function(e){var t=nx(o[e],a,n);r._pendingStyles[e]=t,r._localTimelineStyles.hasOwnProperty(e)||(r._backFill[e]=r._globalTimelineStyles.hasOwnProperty(e)?r._globalTimelineStyles[e]:"*"),r._updateStyle(e,t)})}},{key:"applyStylesToKeyframe",value:function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}},{key:"mergeTimelineCollectedStyles",value:function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var i=t._styleSummary[n],r=e._styleSummary[n];(!i||r.time>i.time)&&t._updateStyle(n,r.value)})}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach(function(a,o){var s=QC(a,!0);Object.keys(s).forEach(function(e){var i=s[e];"!"==i?t.add(e):"*"==i&&n.add(e)}),i||(s.offset=o/e.duration),r.push(s)});var a=t.size?ix(t.values()):[],o=n.size?ix(n.values()):[];if(i){var s=r[0],l=YC(s);s.offset=0,l.offset=1,r=[s,l]}return bx(this.element,r,a,o,this.duration,this.startTime,this.easing,!1)}}]),e}(),Tx=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o,s){var l,u=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return b(this,n),(l=t.call(this,e,i,s.delay)).element=i,l.keyframes=r,l.preStyleProps=a,l.postStyleProps=o,l._stretchStartingKeyframe=u,l.timings={duration:s.duration,delay:s.delay,easing:s.easing},l}return w(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var e=this.keyframes,t=this.timings,n=t.delay,i=t.duration,r=t.easing;if(this._stretchStartingKeyframe&&n){var a=[],o=i+n,s=n/o,l=QC(e[0],!1);l.offset=0,a.push(l);var u=QC(e[0],!1);u.offset=Px(s),a.push(u);for(var c=e.length-1,d=1;d<=c;d++){var h=QC(e[d],!1);h.offset=Px((n+h.offset*i)/o),a.push(h)}i=o,n=0,r="",e=a}return bx(this.element,e,this.preStyleProps,this.postStyleProps,i,n,r,!0)}}]),n}(Ex);function Px(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,t-1);return Math.round(e*n)/n}var Dx=function e(){b(this,e)},Mx=function(e){f(n,e);var t=m(n);function n(){return b(this,n),t.apply(this,arguments)}return w(n,[{key:"normalizePropertyName",value:function(e,t){return ax(e)}},{key:"normalizeStyleValue",value:function(e,t,n,i){var r="",a=n.toString().trim();if(Ix[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var o=n.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&0==o[1].length&&i.push("Please provide a CSS unit value for ".concat(e,":").concat(n))}return a+r}}]),n}(Dx),Ix=function(e){var t={};return e.forEach(function(e){return t[e]=!0}),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","));function Rx(e,t,n,i,r,a,o,s,l,u,c,d,h){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:a,toState:i,toStyles:o,timelines:s,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:d,errors:h}}var Lx={},Fx=function(){function e(t,n,i){b(this,e),this._triggerName=t,this.ast=n,this._stateStyles=i}return w(e,[{key:"match",value:function(e,t,n,i){return function(e,t,n,i,r){return e.some(function(e){return e(t,n,i,r)})}(this.ast.matchers,e,t,n,i)}},{key:"buildStyles",value:function(e,t,n){var i=this._stateStyles["*"],r=this._stateStyles[e],a=i?i.buildStyles(t,n):{};return r?r.buildStyles(t,n):a}},{key:"build",value:function(e,t,n,i,r,a,o,s,l,u){var c=[],d=this.ast.options&&this.ast.options.params||Lx,h=this.buildStyles(n,o&&o.params||Lx,c),f=s&&s.params||Lx,p=this.buildStyles(i,f,c),m=new Set,g=new Map,v=new Map,y="void"===i,_={params:Object.assign(Object.assign({},d),f)},b=u?[]:xx(e,t,this.ast.animation,r,a,h,p,_,l,c),k=0;if(b.forEach(function(e){k=Math.max(e.duration+e.delay,k)}),c.length)return Rx(t,this._triggerName,n,i,y,h,p,[],[],g,v,k,c);b.forEach(function(e){var n=e.element,i=EC(g,n,{});e.preStyleProps.forEach(function(e){return i[e]=!0});var r=EC(v,n,{});e.postStyleProps.forEach(function(e){return r[e]=!0}),n!==t&&m.add(n)});var w=ix(m.values());return Rx(t,this._triggerName,n,i,y,h,p,b,w,g,v,k)}}]),e}(),Nx=function(){function e(t,n){b(this,e),this.styles=t,this.defaultParams=n}return w(e,[{key:"buildStyles",value:function(e,t){var n={},i=YC(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(i[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var r=e;Object.keys(r).forEach(function(e){var a=r[e];a.length>1&&(a=nx(a,i,t)),n[e]=a})}}),n}}]),e}(),Vx=function(){function e(t,n){var i=this;b(this,e),this.name=t,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach(function(e){i.states[e.name]=new Nx(e.style,e.options&&e.options.params||{})}),Bx(this.states,"true","1"),Bx(this.states,"false","0"),n.transitions.forEach(function(e){i.transitionFactories.push(new Fx(t,e,i.states))}),this.fallbackTransition=new Fx(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return w(e,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(e,t,n,i){return this.transitionFactories.find(function(r){return r.match(e,t,n,i)})||null}},{key:"matchStyles",value:function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}]),e}();function Bx(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var Hx=new kx,zx=function(){function e(t,n,i){b(this,e),this.bodyNode=t,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}return w(e,[{key:"register",value:function(e,t){var n=[],i=px(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: ".concat(n.join("\n")));this._animations[e]=i}},{key:"_buildPlayer",value:function(e,t,n){var i=e.element,r=xC(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=[],o=this._animations[e],s=new Map;if(o?(n=xx(this._driver,t,o,"ng-enter","ng-leave",{},{},r,Hx,a)).forEach(function(e){var t=EC(s,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(a.push("The requested animation doesn't exist or has already been destroyed"),n=[]),a.length)throw new Error("Unable to create the animation due to the following errors: ".concat(a.join("\n")));s.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=i._driver.computeStyle(t,n,"*")})});var l=CC(n.map(function(e){var t=s.get(e.element);return i._buildPlayer(e,{},t)}));return this._playersById[e]=l,l.onDestroy(function(){return i.destroy(e)}),this.players.push(l),l}},{key:"destroy",value:function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by ".concat(e));return t}},{key:"listen",value:function(e,t,n,i){var r=OC(t,"","","");return SC(this._getPlayer(e),n,r,i),function(){}}},{key:"command",value:function(e,t,n,i){if("register"!=n)if("create"!=n){var r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,i[0]||{});else this.register(e,i[0])}}]),e}(),Gx=[],jx={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ux={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Wx=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";b(this,e),this.namespaceId=n;var i,r=t&&t.hasOwnProperty("value");if(this.value=null!=(i=r?t.value:t)?i:null,r){var a=YC(t);delete a.value,this.options=a}else this.options={};this.options.params||(this.options.params={})}return w(e,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}}}]),e}(),qx=new Wx("void"),Yx=function(){function e(t,n,i){b(this,e),this.id=t,this.hostElement=n,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,eS(n,this._hostClassName)}return w(e,[{key:"listen",value:function(e,t,n,i){var r,a=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(t,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(t,'" because the provided event is undefined!'));if("start"!=(r=n)&&"done"!=r)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(t,'" is not supported!'));var o=EC(this._elementListeners,e,[]),s={name:t,phase:n,callback:i};o.push(s);var l=EC(this._engine.statesByElement,e,{});return l.hasOwnProperty(t)||(eS(e,"ng-trigger"),eS(e,"ng-trigger-"+t),l[t]=qx),function(){a._engine.afterFlush(function(){var e=o.indexOf(s);e>=0&&o.splice(e,1),a._triggers[t]||delete l[t]})}}},{key:"register",value:function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}},{key:"_getTrigger",value:function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return t}},{key:"trigger",value:function(e,t,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=this._getTrigger(t),o=new Xx(this.id,t,e),s=this._engine.statesByElement.get(e);s||(eS(e,"ng-trigger"),eS(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));var l=s[t],u=new Wx(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),s[t]=u,l||(l=qx),"void"===u.value||l.value!==u.value){var c=EC(this._engine.playersByElement,e,[]);c.forEach(function(e){e.namespaceId==i.id&&e.triggerName==t&&e.queued&&e.destroy()});var d=a.matchTransition(l.value,u.value,e,u.params),h=!1;if(!d){if(!r)return;d=a.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:d,fromState:l,toState:u,player:o,isFallbackTransition:h}),h||(eS(e,"ng-animate-queued"),o.onStart(function(){tS(e,"ng-animate-queued")})),o.onDone(function(){var t=i.players.indexOf(o);t>=0&&i.players.splice(t,1);var n=i._engine.playersByElement.get(e);if(n){var r=n.indexOf(o);r>=0&&n.splice(r,1)}}),this.players.push(o),c.push(o),o}if(!function(e,t){var n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(var r=0;r=0){for(var i=!1,r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}},{key:"register",value:function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}},{key:"registerTrigger",value:function(e,t,n){var i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}},{key:"destroy",value:function(e,t){var n=this;if(e){var i=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(i);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return i.destroy(t)})}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var i=Object.keys(n),r=0;r=0&&this.collectedLeaveElements.splice(a,1)}if(e){var o=this._fetchNamespace(e);o&&o.insertNode(t,n)}i&&this.collectEnterElement(t)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),eS(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),tS(e,"ng-animate-disabled"))}},{key:"removeNode",value:function(e,t,n,i){if($x(t)){var r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),n){var a=this.namespacesByHostElement.get(t);a&&a.id!==e&&a.removeNode(t,i)}}else this._onRemovalComplete(t,i)}},{key:"markElementAsRemoved",value:function(e,t,n,i){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,n,i,r){return $x(t)?this._fetchNamespace(e).listen(t,n,i,r):function(){}}},{key:"_buildInstruction",value:function(e,t,n,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,r)}},{key:"destroyInnerAnimations",value:function(e){var t=this,n=this.driver.query(e,".ng-trigger",!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,".ng-animating",!0)).forEach(function(e){return t.finishActiveQueriedAnimationOnElement(e)})}},{key:"destroyActiveAnimationsForElement",value:function(e){var t=this.playersByElement.get(e);t&&t.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach(function(e){return e.finish()})}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise(function(t){if(e.players.length)return CC(e.players).onDone(function(){return t()});t()})}},{key:"processLeaveNode",value:function(e){var t=this,n=e.__ng_removed;if(n&&n.setForRemoval){if(e.__ng_removed=jx,n.namespaceId){this.destroyInnerAnimations(e);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(function(e){t.markElementAsDisabled(e,!1)})}},{key:"flush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i=0;O--)this._namespaceList[O].drainQueuedTransitions(t).forEach(function(e){var t=e.player,a=e.element;if(S.push(t),n.collectedEnterElements.length){var o=a.__ng_removed;if(o&&o.setForMove)return void t.destroy()}var d=!h||!n.driver.containsElement(h,a),f=C.get(a),p=m.get(a),g=n._buildInstruction(e,i,p,f,d);if(g.errors&&g.errors.length)A.push(g);else{if(d)return t.onStart(function(){return ZC(a,g.fromStyles)}),t.onDestroy(function(){return KC(a,g.toStyles)}),void r.push(t);if(e.isFallbackTransition)return t.onStart(function(){return ZC(a,g.fromStyles)}),t.onDestroy(function(){return KC(a,g.toStyles)}),void r.push(t);g.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),i.append(a,g.timelines),s.push({instruction:g,player:t,element:a}),g.queriedElements.forEach(function(e){return EC(l,e,[]).push(t)}),g.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var i=u.get(t);i||u.set(t,i=new Set),n.forEach(function(e){return i.add(e)})}}),g.postStyleProps.forEach(function(e,t){var n=Object.keys(e),i=c.get(t);i||c.set(t,i=new Set),n.forEach(function(e){return i.add(e)})})}});if(A.length){var E=[];A.forEach(function(e){E.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach(function(e){return E.push("- ".concat(e,"\n"))})}),S.forEach(function(e){return e.destroy()}),this.reportError(E)}var T=new Map,P=new Map;s.forEach(function(e){var t=e.element;i.has(t)&&(P.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,T))}),r.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){EC(T,t,[]).push(e),e.destroy()})});var D=v.filter(function(e){return rS(e,u,c)}),M=new Map;Zx(M,this.driver,_,c,"*").forEach(function(e){rS(e,u,c)&&D.push(e)});var I=new Map;p.forEach(function(e,t){Zx(I,n.driver,new Set(e),u,"!")}),D.forEach(function(e){var t=M.get(e),n=I.get(e);M.set(e,Object.assign(Object.assign({},t),n))});var R=[],L=[],F={};s.forEach(function(e){var t=e.element,a=e.player,s=e.instruction;if(i.has(t)){if(d.has(t))return a.onDestroy(function(){return KC(t,s.toStyles)}),a.disabled=!0,a.overrideTotalTime(s.totalTime),void r.push(a);var l=F;if(P.size>1){for(var u=t,c=[];u=u.parentNode;){var h=P.get(u);if(h){l=h;break}c.push(u)}c.forEach(function(e){return P.set(e,l)})}var f=n._buildAnimation(a.namespaceId,s,T,o,I,M);if(a.setRealPlayer(f),l===F)R.push(a);else{var p=n.playersByElement.get(l);p&&p.length&&(a.parentPlayer=CC(p)),r.push(a)}}else ZC(t,s.fromStyles),a.onDestroy(function(){return KC(t,s.toStyles)}),L.push(a),d.has(t)&&r.push(a)}),L.forEach(function(e){var t=o.get(e.element);if(t&&t.length){var n=CC(t);e.setRealPlayer(n)}}),r.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var N=0;N0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new bC(e.duration,e.delay)}}]),e}(),Xx=function(){function e(t,n,i){b(this,e),this.namespaceId=t,this.triggerName=n,this.element=i,this._player=new bC,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return w(e,[{key:"setRealPlayer",value:function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return SC(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})}},{key:"_queueEvent",value:function(e,t){EC(this._queuedCallbacks,e,[]).push(t)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{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(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)}}]),e}();function $x(e){return e&&1===e.nodeType}function Kx(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function Zx(e,t,n,i,r){var a=[];n.forEach(function(e){return a.push(Kx(e))});var o=[];i.forEach(function(n,i){var a={};n.forEach(function(e){var n=a[e]=t.computeStyle(i,e,r);n&&0!=n.length||(i.__ng_removed=Ux,o.push(i))}),e.set(i,a)});var s=0;return n.forEach(function(e){return Kx(e,a[s++])}),o}function Jx(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var i=new Set(t),r=new Map;function a(e){if(!e)return 1;var t=r.get(e);if(t)return t;var o=e.parentNode;return t=n.has(o)?o:i.has(o)?1:a(o),r.set(e,t),t}return t.forEach(function(e){var t=a(e);1!==t&&n.get(t).push(e)}),n}function eS(e,t){if(e.classList)e.classList.add(t);else{var n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function tS(e,t){if(e.classList)e.classList.remove(t);else{var n=e.$$classes;n&&delete n[t]}}function nS(e,t,n){CC(n).onDone(function(){return e.processLeaveNode(t)})}function iS(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),e}();function oS(e,t){var n=null,i=null;return Array.isArray(t)&&t.length?(n=lS(t[0]),t.length>1&&(i=lS(t[t.length-1]))):t&&(n=lS(t)),n||i?new sS(e,n,i):null}var sS=function(){var e=function(){function e(t,n,i){b(this,e),this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;var r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}return w(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&KC(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(KC(this._element,this._initialStyles),this._endStyles&&(KC(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(ZC(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ZC(this._element,this._endStyles),this._endStyles=null),KC(this._element,this._initialStyles),this._state=3)}}]),e}();return e.initialStylesByElement=new WeakMap,e}();function lS(e){for(var t=null,n=Object.keys(e),i=0;i=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),pS(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){var n=gS(e,"").split(","),i=fS(n,t);i>=0&&(n.splice(i,1),mS(e,"",n.join(",")))}(this._element,this._name))}}]),e}();function dS(e,t,n){mS(e,"PlayState",n,hS(e,t))}function hS(e,t){var n=gS(e,"");return n.indexOf(",")>0?fS(n.split(","),t):fS([n],t)}function fS(e,t){for(var n=0;n=0)return n;return-1}function pS(e,t,n){n?e.removeEventListener("animationend",t):e.addEventListener("animationend",t)}function mS(e,t,n,i){var r="animation"+t;if(null!=i){var a=e.style[r];if(a.length){var o=a.split(",");o[i]=n,n=o.join(",")}}e.style[r]=n}function gS(e,t){return e.style["animation"+t]||""}var vS=function(){function e(t,n,i,r,a,o,s,l){b(this,e),this.element=t,this.keyframes=n,this.animationName=i,this._duration=r,this._delay=a,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=r+a,this._buildStyler()}return w(e,[{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{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(e){return e()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(e){return e()}),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(e){this._styler.setPosition(e)}},{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 e=this;this._styler=new cS(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return e.finish()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}},{key:"beforeDestroy",value:function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(i){"offset"!=i&&(t[i]=n?e._finalStyles[i]:ux(e.element,i))})}this.currentSnapshot=t}}]),e}(),yS=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this)).element=e,r._startingStyles={},r.__initialized=!1,r._styles=HC(i),r}return w(n,[{key:"init",value:function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(t){e._startingStyles[t]=e.element.style[t]}),h(_(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(t){return e.element.style.setProperty(t,e._styles[t])}),h(_(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)}),this._startingStyles=null,h(_(n.prototype),"destroy",this).call(this))}}]),n}(bC),_S=function(){function e(){b(this,e),this._count=0,this._head=document.querySelector("head")}return w(e,[{key:"validateStyleProperty",value:function(e){return FC(e)}},{key:"matchesElement",value:function(e,t){return NC(e,t)}},{key:"containsElement",value:function(e,t){return VC(e,t)}},{key:"query",value:function(e,t,n){return BC(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"buildKeyframeElement",value:function(e,t,n){n=n.map(function(e){return HC(e)});var i="@keyframes ".concat(t," {\n"),r="";n.forEach(function(e){r=" ";var t=parseFloat(e.offset);i+="".concat(r).concat(100*t,"% {\n"),r+=" ",Object.keys(e).forEach(function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(i+="".concat(r,"animation-timing-function: ").concat(n,";\n")));default:return void(i+="".concat(r).concat(t,": ").concat(n,";\n"))}}),i+="".concat(r,"}\n")}),i+="}\n";var a=document.createElement("style");return a.textContent=i,a}},{key:"animate",value:function(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=a.filter(function(e){return e instanceof vS}),s={};ox(n,i)&&o.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return s[e]=t[e]})});var l=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach(function(e){Object.keys(e).forEach(function(n){"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=sx(e,t,s));if(0==n)return new yS(e,l);var u="gen_css_kf_"+this._count++,c=this.buildKeyframeElement(e,u,t);document.querySelector("head").appendChild(c);var d=oS(e,t),h=new vS(e,t,u,n,i,r,l,d);return h.onDestroy(function(){var e;(e=c).parentNode.removeChild(e)}),h}}]),e}(),bS=function(){function e(t,n,i,r){b(this,e),this.element=t,this.keyframes=n,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}return w(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(e,t,n){return e.animate(t,n)}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),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(e){return e()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:ux(e.element,n))}),this.currentSnapshot=t}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),kS=function(){function e(){b(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(wS().toString()),this._cssKeyframesDriver=new _S}return w(e,[{key:"validateStyleProperty",value:function(e){return FC(e)}},{key:"matchesElement",value:function(e,t){return NC(e,t)}},{key:"containsElement",value:function(e,t){return VC(e,t)}},{key:"query",value:function(e,t,n){return BC(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"overrideWebAnimationsSupport",value:function(e){this._isNativeImpl=e}},{key:"animate",value:function(e,t,n,i,r){var a=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(e,t,n,i,r,a);var s={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(s.easing=r);var l={},u=a.filter(function(e){return e instanceof bS});ox(n,i)&&u.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return l[e]=t[e]})});var c=oS(e,t=sx(e,t=t.map(function(e){return QC(e,!1)}),l));return new bS(e,t,s,c)}}]),e}();function wS(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var CS,xS=((CS=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this))._nextAnimationId=0,r._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Ke.None,styles:[],data:{animation:[]}}),r}return w(n,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?hC(e):e;return OS(this._renderer,null,t,"register",[n]),new SS(t,this._renderer)}}]),n}(lC)).\u0275fac=function(e){return new(e||CS)(Ni(Tl),Ni(sd))},CS.\u0275prov=Le({token:CS,factory:CS.\u0275fac}),CS),SS=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this))._id=e,r._renderer=i,r}return w(n,[{key:"create",value:function(e,t){return new AS(this._id,e,t||{},this._renderer)}}]),n}(function(){return function e(){b(this,e)}}()),AS=function(){function e(t,n,i,r){b(this,e),this.id=t,this.element=n,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}return w(e,[{key:"_listen",value:function(e,t){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),t)}},{key:"_command",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i=0&&e3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i)}},{key:"removeChild",value:function(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}},{key:"selectRootElement",value:function(e,t){return this.delegate.selectRootElement(e,t)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setAttribute",value:function(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}},{key:"removeAttribute",value:function(e,t,n){this.delegate.removeAttribute(e,t,n)}},{key:"addClass",value:function(e,t){this.delegate.addClass(e,t)}},{key:"removeClass",value:function(e,t){this.delegate.removeClass(e,t)}},{key:"setStyle",value:function(e,t,n,i){this.delegate.setStyle(e,t,n,i)}},{key:"removeStyle",value:function(e,t,n){this.delegate.removeStyle(e,t,n)}},{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)&&"@.disabled"==t?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}},{key:"setValue",value:function(e,t){this.delegate.setValue(e,t)}},{key:"listen",value:function(e,t,n){return this.delegate.listen(e,t,n)}},{key:"disableAnimations",value:function(e,t){this.engine.disableAnimations(e,t)}}]),e}(),IS=function(e){f(i,e);var t=m(i);function i(e,n,r,a){var o;return b(this,i),(o=t.call(this,n,r,a)).factory=e,o.namespaceId=n,o}return w(i,[{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&"@.disabled"==t?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}},{key:"listen",value:function(e,t,i){var r,a,o=this;if("@"==t.charAt(0)){var s,l=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e),u=t.substr(1),c="";return"@"!=u.charAt(0)&&(a=(r=u).indexOf("."),u=(s=n([r.substring(0,a),r.substr(a+1)],2))[0],c=s[1]),this.engine.listen(this.namespaceId,l,u,c,function(e){o.factory.scheduleListenerCallback(e._data||-1,i,e)})}return this.delegate.listen(e,t,i)}}]),i}(MS),RS=((TS=function(e){f(n,e);var t=m(n);function n(e,i,r){return b(this,n),t.call(this,e.body,i,r)}return n}(aS)).\u0275fac=function(e){return new(e||TS)(Ni(sd),Ni(jC),Ni(Dx))},TS.\u0275prov=Le({token:TS,factory:TS.\u0275fac}),TS),LS=new _i("AnimationModuleType"),FS=[{provide:jC,useFactory:function(){return"function"==typeof wS()?new kS:new _S}},{provide:LS,useValue:"BrowserAnimations"},{provide:lC,useClass:xS},{provide:Dx,useFactory:function(){return new Mx}},{provide:aS,useClass:RS},{provide:Tl,useFactory:function(e,t,n){return new DS(e,t,n)},deps:[Pf,aS,Oc]}],NS=((PS=function e(){b(this,e)}).\u0275fac=function(e){return new(e||PS)},PS.\u0275mod=yt({type:PS}),PS.\u0275inj=Ne({providers:FS,imports:[Uf]}),PS),VS=["*",[["mat-option"],["ng-container"]]],BS=["*","mat-option, ng-container"];function HS(e,t){if(1&e&&fs(0,"mat-pseudo-checkbox",4),2&e){var n=As();us("state",n.selected?"checked":"unchecked")("disabled",n.disabled)}}function zS(e,t){if(1&e&&(ds(0,"span",5),Js(1),hs()),2&e){var n=As();Oa(1),tl("(",n.group.label,")")}}var GS,jS=["*"],US=function(){var e=function e(){b(this,e)};return e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",e}(),WS=function(){var e=function e(){b(this,e)};return e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms",e}(),qS=new Il("11.2.7"),YS=new _i("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),QS=((GS=function(){function e(t,n,i){b(this,e),this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=n,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return w(e,[{key:"_getWindow",value:function(){var e=this._document.defaultView||window;return"object"==typeof e&&e?e:null}},{key:"_checksAreEnabled",value:function(){return Hc()&&!this._isTestEnv()}},{key:"_isTestEnv",value:function(){var e=this._getWindow();return e&&(e.__karma__||e.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){if(this._checksAreEnabled()&&!1!==this._sanityChecks&&this._sanityChecks.theme&&this._document.body&&"function"==typeof getComputedStyle){var e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);var t=getComputedStyle(e);t&&"none"!==t.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(e)}}},{key:"_checkCdkVersionMatch",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&qS.full!==sC.full&&console.warn("The Angular Material version ("+qS.full+") does not match the Angular CDK version ("+sC.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),e}()).\u0275fac=function(e){return new(e||GS)(Ni(aC),Ni(YS,8),Ni(sd))},GS.\u0275mod=yt({type:GS}),GS.\u0275inj=Ne({imports:[[Ry],Ry]}),GS);function XS(e){return function(e){f(n,e);var t=m(n);function n(){var e;b(this,n);for(var i=arguments.length,r=new Array(i),a=0;a1&&void 0!==arguments[1]?arguments[1]:0;return function(e){f(i,e);var n=m(i);function i(){var e;b(this,i);for(var r=arguments.length,a=new Array(r),o=0;o0?n:e}}]),e}(),rA=new _i("mat-date-formats");try{tA="undefined"!=typeof Intl}catch(lte){tA=!1}var aA={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"]},oA=uA(31,function(e){return String(e+1)}),sA={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},lA=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function uA(e,t){for(var n=Array(e),i=0;i9999)&&(e=this.clone(e)).setFullYear(Math.max(1,Math.min(9999,e.getFullYear()))),t=Object.assign(Object.assign({},t),{timeZone:"utc"});var n=new Intl.DateTimeFormat(this.locale,t);return this._stripDirectionalityCharacters(this._format(n,e))}return this._stripDirectionalityCharacters(e.toDateString())}},{key:"addCalendarYears",value:function(e,t){return this.addCalendarMonths(e,12*t)}},{key:"addCalendarMonths",value:function(e,t){var n=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(n)!=((this.getMonth(e)+t)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n}},{key:"addCalendarDays",value:function(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}},{key:"toIso8601",value:function(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}},{key:"deserialize",value:function(e){if("string"==typeof e){if(!e)return null;if(lA.test(e)){var t=new Date(e);if(this.isValid(t))return t}}return h(_(n.prototype),"deserialize",this).call(this,e)}},{key:"isDateInstance",value:function(e){return e instanceof Date}},{key:"isValid",value:function(e){return!isNaN(e.getTime())}},{key:"invalid",value:function(){return new Date(NaN)}},{key:"_createDateWithOverflow",value:function(e,t,n){var i=new Date;return i.setFullYear(e,t,n),i.setHours(0,0,0,0),i}},{key:"_2digit",value:function(e){return("00"+e).slice(-2)}},{key:"_stripDirectionalityCharacters",value:function(e){return e.replace(/[\u200e\u200f]/g,"")}},{key:"_format",value:function(e,t){var n=new Date;return n.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(n)}}]),n}(iA)).\u0275fac=function(e){return new(e||dA)(Ni(nA,8),Ni(ow))},dA.\u0275prov=Le({token:dA,factory:dA.\u0275fac}),dA),gA=((cA=function e(){b(this,e)}).\u0275fac=function(e){return new(e||cA)},cA.\u0275mod=yt({type:cA}),cA.\u0275inj=Ne({providers:[{provide:iA,useClass:mA}],imports:[[sw]]}),cA),vA={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"}}},yA=((pA=function e(){b(this,e)}).\u0275fac=function(e){return new(e||pA)},pA.\u0275mod=yt({type:pA}),pA.\u0275inj=Ne({providers:[{provide:rA,useValue:vA}],imports:[[gA]]}),pA),_A=((fA=function(){function e(){b(this,e)}return w(e,[{key:"isErrorState",value:function(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}]),e}()).\u0275fac=function(e){return new(e||fA)},fA.\u0275prov=Le({factory:function(){return new fA},token:fA,providedIn:"root"}),fA),bA=((hA=function e(){b(this,e)}).\u0275fac=function(e){return new(e||hA)},hA.\u0275dir=bt({type:hA,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),hA);function kA(e,t,n){var i=e.nativeElement.classList;n?i.add(t):i.remove(t)}var wA,CA,xA,SA,AA,OA,EA,TA,PA,DA=((wA=function e(){b(this,e)}).\u0275fac=function(e){return new(e||wA)},wA.\u0275mod=yt({type:wA}),wA.\u0275inj=Ne({imports:[[QS],QS]}),wA),MA=function(){function e(t,n,i){b(this,e),this._renderer=t,this.element=n,this.config=i,this.state=3}return w(e,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),e}(),IA={enterDuration:450,exitDuration:400},RA=cw({passive:!0}),LA=["mousedown","touchstart"],FA=["mouseup","mouseleave","touchend","touchcancel"],NA=function(){function e(t,n,i,r){b(this,e),this._target=t,this._ngZone=n,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Jv(i))}return w(e,[{key:"fadeInRipple",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),a=Object.assign(Object.assign({},IA),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);var o=i.radius||function(e,t,n){var i=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),r=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(i*i+r*r)}(e,t,r),s=e-r.left,l=t-r.top,u=a.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=s-o+"px",c.style.top=l-o+"px",c.style.height=2*o+"px",c.style.width=2*o+"px",null!=i.color&&(c.style.backgroundColor=i.color),c.style.transitionDuration="".concat(u,"ms"),this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";var d=new MA(this,c,i);return d.state=0,this._activeRipples.add(d),i.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone(function(){var e=d===n._mostRecentTransientRipple;d.state=1,i.persistent||e&&n._isPointerDown||d.fadeOut()},u),d}},{key:"fadeOutRipple",value:function(e){var t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),t){var n=e.element,i=Object.assign(Object.assign({},IA),e.config.animation);n.style.transitionDuration="".concat(i.exitDuration,"ms"),n.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(function(){e.state=3,n.parentNode.removeChild(n)},i.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(e){return e.fadeOut()})}},{key:"setupTriggerEvents",value:function(e){var t=Jv(e);t&&t!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(LA))}},{key:"handleEvent",value:function(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(FA),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(e){var t=Qw(e),n=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(e,t)})}},{key:"_registerEvents",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){e.forEach(function(e){t._triggerElement.addEventListener(e,t,RA)})})}},{key:"_removeTriggerEvents",value:function(){var e=this;this._triggerElement&&(LA.forEach(function(t){e._triggerElement.removeEventListener(t,e,RA)}),this._pointerUpEventsRegistered&&FA.forEach(function(t){e._triggerElement.removeEventListener(t,e,RA)}))}}]),e}(),VA=new _i("mat-ripple-global-options"),BA=((AA=function(){function e(t,n,i,r,a){b(this,e),this._elementRef=t,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new NA(this,n,t,i)}return w(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}]),e}()).\u0275fac=function(e){return new(e||AA)(ls(Ol),ls(Oc),ls(ow),ls(VA,8),ls(LS,8))},AA.\u0275dir=bt({type:AA,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&Hs("mat-ripple-unbounded",t.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"]}),AA),HA=((SA=function e(){b(this,e)}).\u0275fac=function(e){return new(e||SA)},SA.\u0275mod=yt({type:SA}),SA.\u0275inj=Ne({imports:[[QS,sw],QS]}),SA),zA=((xA=function e(t){b(this,e),this._animationMode=t,this.state="unchecked",this.disabled=!1}).\u0275fac=function(e){return new(e||xA)(ls(LS,8))},xA.\u0275cmp=pt({type:xA,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&Hs("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},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}),xA),GA=((CA=function e(){b(this,e)}).\u0275fac=function(e){return new(e||CA)},CA.\u0275mod=yt({type:CA}),CA.\u0275inj=Ne({imports:[[QS]]}),CA),jA=new _i("MAT_OPTION_PARENT_COMPONENT"),UA=XS(function e(){b(this,e)}),WA=0,qA=((OA=function(e){f(n,e);var t=m(n);function n(e){var i,r;return b(this,n),(i=t.call(this))._labelId="mat-optgroup-label-"+WA++,i._inert=null!==(r=null==e?void 0:e.inertGroups)&&void 0!==r&&r,i}return n}(UA)).\u0275fac=function(e){return new(e||OA)(ls(jA,8))},OA.\u0275dir=bt({type:OA,inputs:{label:"label"},features:[jo]}),OA),YA=new _i("MatOptgroup"),QA=((EA=function(e){f(n,e);var t=m(n);function n(){return b(this,n),t.apply(this,arguments)}return n}(qA)).\u0275fac=function(e){return XA(e||EA)},EA.\u0275cmp=pt({type:EA,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-optgroup"],hostVars:5,hostBindings:function(e,t){2&e&&(is("role",t._inert?null:"group")("aria-disabled",t._inert?null:t.disabled.toString())("aria-labelledby",t._inert?null:t._labelId),Hs("mat-optgroup-disabled",t.disabled))},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[bl([{provide:YA,useExisting:EA}]),jo],ngContentSelectors:BS,decls:4,vars:2,consts:[["aria-hidden","true",1,"mat-optgroup-label",3,"id"]],template:function(e,t){1&e&&(Es(VS),ds(0,"span",0),Js(1),Ts(2),hs(),Ts(3,1)),2&e&&(us("id",t._labelId),Oa(1),tl("",t.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}),EA),XA=fi(QA),$A=0,KA=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];b(this,e),this.source=t,this.isUserInput=n},ZA=((PA=function(){function e(t,n,i,r){b(this,e),this._element=t,this._changeDetectorRef=n,this._parent=i,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+$A++,this.onSelectionChange=new Vu,this._stateChanges=new j}return w(e,[{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(e){this._disabled=Qv(e)}},{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()}},{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(e,t){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(t)}},{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(e){13!==e.keyCode&&32!==e.keyCode||Zk(e)||(this._selectViaInteraction(),e.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 e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new KA(this,e))}}]),e}()).\u0275fac=function(e){return new(e||PA)(ls(Ol),ls(Jl),ls(void 0),ls(qA))},PA.\u0275dir=bt({type:PA,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),PA),JA=((TA=function(e){f(n,e);var t=m(n);function n(e,i,r,a){return b(this,n),t.call(this,e,i,r,a)}return n}(ZA)).\u0275fac=function(e){return new(e||TA)(ls(Ol),ls(Jl),ls(jA,8),ls(YA,8))},TA.\u0275cmp=pt({type:TA,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&ks("click",function(){return t._selectViaInteraction()})("keydown",function(e){return t._handleKeydown(e)}),2&e&&(al("id",t.id),is("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),Hs("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[jo],ngContentSelectors:jS,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,t){1&e&&(Es(),os(0,HS,1,2,"mat-pseudo-checkbox",0),ds(1,"span",1),Ts(2),hs(),os(3,zS,2,1,"span",2),fs(4,"div",3)),2&e&&(us("ngIf",t.multiple),Oa(3),us("ngIf",t.group&&t.group._inert),Oa(1),us("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[wh,BA,zA],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}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.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}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),TA);function eO(e,t,n){if(n.length){for(var i=t.toArray(),r=n.toArray(),a=0,o=0;on+i?Math.max(0,e-i+t):n}var nO,iO=((nO=function e(){b(this,e)}).\u0275fac=function(e){return new(e||nO)},nO.\u0275mod=yt({type:nO}),nO.\u0275inj=Ne({imports:[[HA,Zh,QS,GA]]}),nO);function rO(e){return new N(function(t){var n;try{n=e()}catch(i){return void t.error(i)}return(n?te(n):hp()).subscribe(t)})}function aO(e){return!!e&&(e instanceof N||"function"==typeof e.lift&&"function"==typeof e.subscribe)}var oO=function(){function e(t){b(this,e),this.durationSelector=t}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new sO(e,this.durationSelector))}}]),e}(),sO=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this,e)).durationSelector=i,r.hasValue=!1,r}return w(n,[{key:"_next",value:function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t;try{t=(0,this.durationSelector)(e)}catch(i){return this.destination.error(i)}var n=re(t,new ne(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}},{key:"clearThrottle",value:function(){var e=this.value,t=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}},{key:"notifyNext",value:function(){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),n}(ie);function lO(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rp;return t=function(){return op(e,n)},function(e){return e.lift(new oO(t))}}function uO(){return function(e){return e.lift(new cO)}}var cO=function(){function e(){b(this,e)}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new dO(e))}}]),e}(),dO=function(e){f(n,e);var t=m(n);function n(e){var i;return b(this,n),(i=t.call(this,e)).hasPrev=!1,i}return w(n,[{key:"_next",value:function(e){var t;this.hasPrev?t=[this.prev,e]:this.hasPrev=!0,this.prev=e,t&&this.destination.next(t)}}]),n}(P),hO=function e(){b(this,e)};function fO(e){return e&&"function"==typeof e.connect}var pO,mO,gO,vO,yO,_O,bO,kO,wO,CO=function(){function e(){b(this,e)}return w(e,[{key:"applyChanges",value:function(e,t,n,i,r){e.forEachOperation(function(e,i,a){var o,s;if(null==e.previousIndex){var l=n(e,i,a);o=t.createEmbeddedView(l.templateRef,l.context,l.index),s=1}else null==a?(t.remove(i),s=3):(o=t.get(i),t.move(o,a),s=2);r&&r({context:null==o?void 0:o.context,operation:s,record:e})})}},{key:"detach",value:function(){}}]),e}(),xO=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];b(this,e),this._multiple=n,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new j,i&&i.length&&(n?i.forEach(function(e){return t._markSelected(e)}):this._markSelected(i[0]),this._selectedToEmit.length=0)}return w(e,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new N(function(n){e._globalSubscription||e._addGlobalListener();var i=t>0?e._scrolled.pipe(lO(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){i.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}}):fp()}},{key:"ngOnDestroy",value:function(){var e=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(t,n){return e.deregister(n)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(e,t){var n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(jm(function(e){return!e||n.indexOf(e)>-1}))}},{key:"getAncestorScrollContainers",value:function(e){var t=this,n=[];return this.scrollContainers.forEach(function(i,r){t._scrollableContainsElement(r,e)&&n.push(r)}),n}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(e,t){var n=Jv(t),i=e.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var e=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return zg(e._getWindow().document,"scroll").subscribe(function(){return e._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),e}()).\u0275fac=function(e){return new(e||_O)(Ni(Oc),Ni(ow),Ni(sd,8))},_O.\u0275prov=Le({factory:function(){return new _O(Ni(Oc),Ni(ow),Ni(sd,8))},token:_O,providedIn:"root"}),_O),EO=((yO=function(){function e(t,n,i,r){var a=this;b(this,e),this.elementRef=t,this.scrollDispatcher=n,this.ngZone=i,this.dir=r,this._destroyed=new j,this._elementScrolled=new N(function(e){return a.ngZone.runOutsideAngular(function(){return zg(a.elementRef.nativeElement,"scroll").pipe(Pp(a._destroyed)).subscribe(e)})})}return w(e,[{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(e){var t=this.elementRef.nativeElement,n=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=n?e.end:e.start),null==e.right&&(e.right=n?e.start:e.end),null!=e.bottom&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),n&&0!=hw()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==hw()?e.left=e.right:1==hw()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}},{key:"_applyScrollToOptions",value:function(e){var t=this.elementRef.nativeElement;dw()?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}},{key:"measureScrollOffset",value:function(e){var t=this.elementRef.nativeElement;if("top"==e)return t.scrollTop;if("bottom"==e)return t.scrollHeight-t.clientHeight-t.scrollTop;var n=this.dir&&"rtl"==this.dir.value;return"start"==e?e=n?"right":"left":"end"==e&&(e=n?"left":"right"),n&&2==hw()?"left"==e?t.scrollWidth-t.clientWidth-t.scrollLeft:t.scrollLeft:n&&1==hw()?"left"==e?t.scrollLeft+t.scrollWidth-t.clientWidth:-t.scrollLeft:"left"==e?t.scrollLeft:t.scrollWidth-t.clientWidth-t.scrollLeft}}]),e}()).\u0275fac=function(e){return new(e||yO)(ls(Ol),ls(OO),ls(Oc),ls(Iy,8))},yO.\u0275dir=bt({type:yO,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),yO),TO=((vO=function(){function e(t,n,i){var r=this;b(this,e),this._platform=t,this._change=new j,this._changeListener=function(e){r._change.next(e)},this._document=i,n.runOutsideAngular(function(){if(t.isBrowser){var e=r._getWindow();e.addEventListener("resize",r._changeListener),e.addEventListener("orientationchange",r._changeListener)}r.change().subscribe(function(){return r._updateViewportSize()})})}return w(e,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}},{key:"getViewportRect",value:function(){var e=this.getViewportScrollPosition(),t=this.getViewportSize(),n=t.width,i=t.height;return{top:e.top,left:e.left,bottom:e.top+i,right:e.left+n,height:i,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var e=this._document,t=this._getWindow(),n=e.documentElement,i=n.getBoundingClientRect();return{top:-i.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,left:-i.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return e>0?this._change.pipe(lO(e)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}]),e}()).\u0275fac=function(e){return new(e||vO)(Ni(ow),Ni(Oc),Ni(sd,8))},vO.\u0275prov=Le({factory:function(){return new vO(Ni(ow),Ni(Oc),Ni(sd,8))},token:vO,providedIn:"root"}),vO),PO=((gO=function e(){b(this,e)}).\u0275fac=function(e){return new(e||gO)},gO.\u0275mod=yt({type:gO}),gO.\u0275inj=Ne({}),gO),DO=((mO=function e(){b(this,e)}).\u0275fac=function(e){return new(e||mO)},mO.\u0275mod=yt({type:mO}),mO.\u0275inj=Ne({imports:[[Ry,sw,PO],Ry,PO]}),mO),MO=function(){function e(){b(this,e)}return w(e,[{key:"attach",value:function(e){return this._attachedHost=e,e.attach(this)}},{key:"detach",value:function(){var e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(e){this._attachedHost=e}}]),e}(),IO=function(e){f(n,e);var t=m(n);function n(e,i,r,a){var o;return b(this,n),(o=t.call(this)).component=e,o.viewContainerRef=i,o.injector=r,o.componentFactoryResolver=a,o}return n}(MO),RO=function(e){f(n,e);var t=m(n);function n(e,i,r){var a;return b(this,n),(a=t.call(this)).templateRef=e,a.viewContainerRef=i,a.context=r,a}return w(n,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=t,h(_(n.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(){return this.context=void 0,h(_(n.prototype),"detach",this).call(this)}}]),n}(MO),LO=function(e){f(n,e);var t=m(n);function n(e){var i;return b(this,n),(i=t.call(this)).element=e instanceof Ol?e.nativeElement:e,i}return n}(MO),FO=function(){function e(){b(this,e),this._isDisposed=!1,this.attachDomPortal=null}return w(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(e){return e instanceof IO?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof RO?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof LO?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}},{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(e){this._disposeFn=e}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),e}(),NO=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o){var s,l;return b(this,n),(l=t.call(this)).outletElement=e,l._componentFactoryResolver=i,l._appRef=r,l._defaultInjector=a,l.attachDomPortal=function(e){var t=e.element,i=l._document.createComment("dom-portal");t.parentNode.insertBefore(i,t),l.outletElement.appendChild(t),h((s=v(l),_(n.prototype)),"setDisposeFn",s).call(s,function(){i.parentNode&&i.parentNode.replaceChild(t,i)})},l._document=o,l}return w(n,[{key:"attachComponentPortal",value:function(e){var t,n=this,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);return e.viewContainerRef?(t=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(function(){return t.destroy()})):(t=i.create(e.injector||this._defaultInjector),this._appRef.attachView(t.hostView),this.setDisposeFn(function(){n._appRef.detachView(t.hostView),t.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(t)),t}},{key:"attachTemplatePortal",value:function(e){var t=this,n=e.viewContainerRef,i=n.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach(function(e){return t.outletElement.appendChild(e)}),i.detectChanges(),this.setDisposeFn(function(){var e=n.indexOf(i);-1!==e&&n.remove(e)}),i}},{key:"dispose",value:function(){h(_(n.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(e){return e.hostView.rootNodes[0]}}]),n}(FO),VO=((wO=function(e){f(n,e);var t=m(n);function n(e,i){return b(this,n),t.call(this,e,i)}return n}(RO)).\u0275fac=function(e){return new(e||wO)(ls(au),ls(du))},wO.\u0275dir=bt({type:wO,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[jo]}),wO),BO=((kO=function(e){f(n,e);var t=m(n);function n(e,i,r){var a,o;return b(this,n),(o=t.call(this))._componentFactoryResolver=e,o._viewContainerRef=i,o._isInitialized=!1,o.attached=new Vu,o.attachDomPortal=function(e){var t=e.element,i=o._document.createComment("dom-portal");e.setAttachedHost(v(o)),t.parentNode.insertBefore(i,t),o._getRootNode().appendChild(t),h((a=v(o),_(n.prototype)),"setDisposeFn",a).call(a,function(){i.parentNode&&i.parentNode.replaceChild(t,i)})},o._document=r,o}return w(n,[{key:"portal",get:function(){return this._attachedPortal},set:function(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&h(_(n.prototype),"detach",this).call(this),e&&h(_(n.prototype),"attach",this).call(this,e),this._attachedPortal=e)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){h(_(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(e){e.setAttachedHost(this);var t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),r=t.createComponent(i,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),h(_(n.prototype),"setDisposeFn",this).call(this,function(){return r.destroy()}),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}},{key:"attachTemplatePortal",value:function(e){var t=this;e.setAttachedHost(this);var i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return h(_(n.prototype),"setDisposeFn",this).call(this,function(){return t._viewContainerRef.clear()}),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}},{key:"_getRootNode",value:function(){var e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}]),n}(FO)).\u0275fac=function(e){return new(e||kO)(ls(Cl),ls(du),ls(sd))},kO.\u0275dir=bt({type:kO,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[jo]}),kO),HO=((bO=function e(){b(this,e)}).\u0275fac=function(e){return new(e||bO)},bO.\u0275mod=yt({type:bO}),bO.\u0275inj=Ne({}),bO),zO=function(){function e(t,n){b(this,e),this.predicate=t,this.inclusive=n}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new GO(e,this.predicate,this.inclusive))}}]),e}(),GO=function(e){f(n,e);var t=m(n);function n(e,i,r){var a;return b(this,n),(a=t.call(this,e)).predicate=i,a.inclusive=r,a.index=0,a}return w(n,[{key:"_next",value:function(e){var t,n=this.destination;try{t=this.predicate(e,this.index++)}catch(i){return void n.error(i)}this.nextOrComplete(e,t)}},{key:"nextOrComplete",value:function(e,t){var n=this.destination;Boolean(t)?n.next(e):(this.inclusive&&n.next(e),n.complete())}}]),n}(P),jO=dw(),UO=function(){function e(t,n){b(this,e),this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=n}return w(e,[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=Zv(-this._previousScrollPosition.left),e.style.top=Zv(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var e=this._document.documentElement,t=e.style,n=this._document.body.style,i=t.scrollBehavior||"",r=n.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),jO&&(t.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),jO&&(t.scrollBehavior=i,n.scrollBehavior=r)}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}]),e}(),WO=function(){function e(t,n,i,r){var a=this;b(this,e),this._scrollDispatcher=t,this._ngZone=n,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=function(){a.disable(),a._overlayRef.hasAttached()&&a._ngZone.run(function(){return a._overlayRef.detach()})}}return w(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;if(!this._scrollSubscription){var t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(function(){var t=e._viewportRuler.getViewportScrollPosition().top;Math.abs(t-e._initialScrollPosition)>e._config.threshold?e._detach():e._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),qO=function(){function e(){b(this,e)}return w(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function YO(e,t){return t.some(function(t){return e.bottomt.bottom||e.rightt.right})}function QO(e,t){return t.some(function(t){return e.topt.bottom||e.leftt.right})}var XO,$O,KO,ZO,JO,eE=function(){function e(t,n,i,r){b(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this._config=r,this._scrollSubscription=null}return w(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(e._overlayRef.updatePosition(),e._config&&e._config.autoClose){var t=e._overlayRef.overlayElement.getBoundingClientRect(),n=e._viewportRuler.getViewportSize(),i=n.width,r=n.height;YO(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(e.disable(),e._ngZone.run(function(){return e._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),tE=((XO=function e(t,n,i,r){var a=this;b(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new qO},this.close=function(e){return new WO(a._scrollDispatcher,a._ngZone,a._viewportRuler,e)},this.block=function(){return new UO(a._viewportRuler,a._document)},this.reposition=function(e){return new eE(a._scrollDispatcher,a._viewportRuler,a._ngZone,e)},this._document=r}).\u0275fac=function(e){return new(e||XO)(Ni(OO),Ni(TO),Ni(Oc),Ni(sd))},XO.\u0275prov=Le({factory:function(){return new XO(Ni(OO),Ni(TO),Ni(Oc),Ni(sd))},token:XO,providedIn:"root"}),XO),nE=function e(t){if(b(this,e),this.scrollStrategy=new qO,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t)for(var n=0,i=Object.keys(t);n-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}]),e}()).\u0275fac=function(e){return new(e||ZO)(Ni(sd))},ZO.\u0275prov=Le({factory:function(){return new ZO(Ni(sd))},token:ZO,providedIn:"root"}),ZO),oE=((KO=function(e){f(n,e);var t=m(n);function n(e){var i;return b(this,n),(i=t.call(this,e))._keydownListener=function(e){for(var t=i._attachedOverlays,n=t.length-1;n>-1;n--)if(t[n]._keydownEvents.observers.length>0){t[n]._keydownEvents.next(e);break}},i}return w(n,[{key:"add",value:function(e){h(_(n.prototype),"add",this).call(this,e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),n}(aE)).\u0275fac=function(e){return new(e||KO)(Ni(sd))},KO.\u0275prov=Le({factory:function(){return new KO(Ni(sd))},token:KO,providedIn:"root"}),KO),sE=(($O=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this,e))._platform=i,r._cursorStyleIsSet=!1,r._clickListener=function(e){for(var t=e.composedPath?e.composedPath()[0]:e.target,n=r._attachedOverlays.slice(),i=n.length-1;i>-1;i--){var a=n[i];if(!(a._outsidePointerEvents.observers.length<1)&&a.hasAttached()){if(a.overlayElement.contains(t))break;a._outsidePointerEvents.next(e)}}},r}return w(n,[{key:"add",value:function(e){h(_(n.prototype),"add",this).call(this,e),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._document.body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}]),n}(aE)).\u0275fac=function(e){return new(e||$O)(Ni(sd),Ni(ow))},$O.\u0275prov=Le({factory:function(){return new $O(Ni(sd),Ni(ow))},token:$O,providedIn:"root"}),$O),lE=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),uE=((JO=function(){function e(t,n){b(this,e),this._platform=n,this._document=t}return w(e,[{key:"ngOnDestroy",value:function(){var e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){if(this._platform.isBrowser||lE)for(var e=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]'),t=0;tp&&(p=v,f=g)}}catch(y){m.e(y)}finally{m.f()}return this._isPushed=!1,void this._applyPosition(f.position,f.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(e.position,e.originPoint);this._applyPosition(e.position,e.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&fE(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 e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}},{key:"withScrollableContainers",value:function(e){return this._scrollables=e,this}},{key:"withPositions",value:function(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(e){return this._viewportMargin=e,this}},{key:"withFlexibleDimensions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=e,this}},{key:"withGrowAfterOpen",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=e,this}},{key:"withPush",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=e,this}},{key:"withLockedPosition",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=e,this}},{key:"setOrigin",value:function(e){return this._origin=e,this}},{key:"withDefaultOffsetX",value:function(e){return this._offsetX=e,this}},{key:"withDefaultOffsetY",value:function(e){return this._offsetY=e,this}},{key:"withTransformOriginOn",value:function(e){return this._transformOriginSelector=e,this}},{key:"_getOriginPoint",value:function(e,t){var n;if("center"==t.originX)n=e.left+e.width/2;else{var i=this._isRtl()?e.right:e.left,r=this._isRtl()?e.left:e.right;n="start"==t.originX?i:r}return{x:n,y:"center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom}}},{key:"_getOverlayPoint",value:function(e,t,n){var i,r;return i="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,r="center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height,{x:e.x+i,y:e.y+r}}},{key:"_getOverlayFit",value:function(e,t,n,i){var r=mE(t),a=e.x,o=e.y,s=this._getOffset(i,"x"),l=this._getOffset(i,"y");s&&(a+=s),l&&(o+=l);var u=0-o,c=o+r.height-n.height,d=this._subtractOverflows(r.width,0-a,a+r.width-n.width),h=this._subtractOverflows(r.height,u,c),f=d*h;return{visibleArea:f,isCompletelyWithinViewport:r.width*r.height===f,fitsInViewportVertically:h===r.height,fitsInViewportHorizontally:d==r.width}}},{key:"_canFitWithFlexibleDimensions",value:function(e,t,n){if(this._hasFlexibleDimensions){var i=n.bottom-t.y,r=n.right-t.x,a=pE(this._overlayRef.getConfig().minHeight),o=pE(this._overlayRef.getConfig().minWidth),s=e.fitsInViewportHorizontally||null!=o&&o<=r;return(e.fitsInViewportVertically||null!=a&&a<=i)&&s}return!1}},{key:"_pushOverlayOnScreen",value:function(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};var i,r,a=mE(t),o=this._viewportRect,s=Math.max(e.x+a.width-o.width,0),l=Math.max(e.y+a.height-o.height,0),u=Math.max(o.top-n.top-e.y,0),c=Math.max(o.left-n.left-e.x,0);return i=a.width<=o.width?c||-s:e.xd&&!this._isInitialRender&&!this._growAfterOpen&&(i=e.y-d/2)}if("end"===t.overlayX&&!u||"start"===t.overlayX&&u)s=l.width-e.x+this._viewportMargin,a=e.x-this._viewportMargin;else if("start"===t.overlayX&&!u||"end"===t.overlayX&&u)o=e.x,a=l.right-e.x;else{var h=Math.min(l.right-e.x+l.left,e.x),f=this._lastBoundingBoxSize.width;a=2*h,o=e.x-h,a>f&&!this._isInitialRender&&!this._growAfterOpen&&(o=e.x-f/2)}return{top:i,left:o,bottom:r,right:s,width:a,height:n}}},{key:"_setBoundingBoxStyles",value:function(e,t){var n=this._calculateBoundingBoxRect(e,t);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));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 r=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;i.height=Zv(n.height),i.top=Zv(n.top),i.bottom=Zv(n.bottom),i.width=Zv(n.width),i.left=Zv(n.left),i.right=Zv(n.right),i.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",i.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",r&&(i.maxHeight=Zv(r)),a&&(i.maxWidth=Zv(a))}this._lastBoundingBoxSize=n,fE(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){fE(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){fE(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(e,t){var n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(i){var o=this._viewportRuler.getViewportScrollPosition();fE(n,this._getExactOverlayY(t,e,o)),fE(n,this._getExactOverlayX(t,e,o))}else n.position="static";var s="",l=this._getOffset(t,"x"),u=this._getOffset(t,"y");l&&(s+="translateX(".concat(l,"px) ")),u&&(s+="translateY(".concat(u,"px)")),n.transform=s.trim(),a.maxHeight&&(i?n.maxHeight=Zv(a.maxHeight):r&&(n.maxHeight="")),a.maxWidth&&(i?n.maxWidth=Zv(a.maxWidth):r&&(n.maxWidth="")),fE(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(e,t,n){var i={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));var a=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=a,"bottom"===e.overlayY?i.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":i.top=Zv(r.y),i}},{key:"_getExactOverlayX",value:function(e,t,n){var i={left:"",right:""},r=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),"right"===(this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left")?i.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":i.left=Zv(r.x),i}},{key:"_getScrollVisibility",value:function(){var e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(function(e){return e.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:QO(e,n),isOriginOutsideView:YO(e,n),isOverlayClipped:QO(t,n),isOverlayOutsideView:YO(t,n)}}},{key:"_subtractOverflows",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}},{key:"left",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}},{key:"right",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}},{key:"width",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}},{key:"height",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}},{key:"centerHorizontally",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(e),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(e),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),i=n.width,r=n.height,a=n.maxWidth,o=n.maxHeight,s=!("100%"!==i&&"100vw"!==i||a&&"100%"!==a&&"100vw"!==a),l=!("100%"!==r&&"100vh"!==r||o&&"100%"!==o&&"100vh"!==o);e.position=this._cssPosition,e.marginLeft=s?"0":this._leftOffset,e.marginTop=l?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,s?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=l?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),CE=((vE=function(){function e(t,n,i,r){b(this,e),this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=r}return w(e,[{key:"global",value:function(){return new wE}},{key:"connectedTo",value:function(e,t,n){return new kE(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(e){return new hE(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),e}()).\u0275fac=function(e){return new(e||vE)(Ni(TO),Ni(sd),Ni(ow),Ni(uE))},vE.\u0275prov=Le({factory:function(){return new vE(Ni(TO),Ni(sd),Ni(ow),Ni(uE))},token:vE,providedIn:"root"}),vE),xE=0,SE=((gE=function(){function e(t,n,i,r,a,o,s,l,u,c,d){b(this,e),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=r,this._keyboardDispatcher=a,this._injector=o,this._ngZone=s,this._document=l,this._directionality=u,this._location=c,this._outsideClickDispatcher=d}return w(e,[{key:"create",value:function(e){var t=this._createHostElement(),n=this._createPaneElement(t),i=this._createPortalOutlet(n),r=new nE(e);return r.direction=r.direction||this._directionality.value,new cE(i,t,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(e){var t=this._document.createElement("div");return t.id="cdk-overlay-"+xE++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}},{key:"_createHostElement",value:function(){var e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}},{key:"_createPortalOutlet",value:function(e){return this._appRef||(this._appRef=this._injector.get(Qc)),new NO(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),e}()).\u0275fac=function(e){return new(e||gE)(Ni(tE),Ni(uE),Ni(Cl),Ni(CE),Ni(oE),Ni(zo),Ni(Oc),Ni(sd),Ni(Iy),Ni(Od),Ni(sE))},gE.\u0275prov=Le({token:gE,factory:gE.\u0275fac}),gE),AE=[{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"}],OE=new _i("cdk-connected-overlay-scroll-strategy"),EE=((_E=function e(t){b(this,e),this.elementRef=t}).\u0275fac=function(e){return new(e||_E)(ls(Ol))},_E.\u0275dir=bt({type:_E,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),_E),TE=((yE=function(){function e(t,n,i,r,a){b(this,e),this._overlay=t,this._dir=a,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=O.EMPTY,this._attachSubscription=O.EMPTY,this._detachSubscription=O.EMPTY,this._positionSubscription=O.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new Vu,this.positionChange=new Vu,this.attach=new Vu,this.detach=new Vu,this.overlayKeydown=new Vu,this.overlayOutsideClick=new Vu,this._templatePortal=new RO(n,i),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}return w(e,[{key:"offsetX",get:function(){return this._offsetX},set:function(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=Qv(e)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(e){this._lockPosition=Qv(e)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(e){this._flexibleDimensions=Qv(e)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(e){this._growAfterOpen=Qv(e)}},{key:"push",get:function(){return this._push},set:function(e){this._push=Qv(e)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}},{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var e=this;this.positions&&this.positions.length||(this.positions=AE);var t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(function(){return e.attach.emit()}),this._detachSubscription=t.detachments().subscribe(function(){return e.detach.emit()}),t.keydownEvents().subscribe(function(t){e.overlayKeydown.next(t),27!==t.keyCode||e.disableClose||Zk(t)||(t.preventDefault(),e._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(t){e.overlayOutsideClick.next(t)})}},{key:"_buildConfig",value:function(){var e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new nE({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}},{key:"_updatePositionStrategy",value:function(e){var t=this,n=this.positions.map(function(e){return{originX:e.originX,originY:e.originY,overlayX:e.overlayX,overlayY:e.overlayY,offsetX:e.offsetX||t.offsetX,offsetY:e.offsetY||t.offsetY,panelClass:e.panelClass||void 0}});return e.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 e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e}},{key:"_attachOverlay",value:function(){var e=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(function(t){e.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return n.lift(new zO(e,t))}}(function(){return e.positionChange.observers.length>0})).subscribe(function(t){e.positionChange.emit(t),0===e.positionChange.observers.length&&e._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||yE)(ls(SE),ls(au),ls(du),ls(OE),ls(Iy,8))},yE.\u0275dir=bt({type:yE,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],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",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[It]}),yE),PE={provide:OE,deps:[SE],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},DE=((bE=function e(){b(this,e)}).\u0275fac=function(e){return new(e||bE)},bE.\u0275mod=yt({type:bE}),bE.\u0275inj=Ne({providers:[SE,PE],imports:[[Ry,HO,DO],DO]}),bE),ME=["underline"],IE=["connectionContainer"],RE=["inputContainer"],LE=["label"];function FE(e,t){1&e&&(ps(0),ds(1,"div",14),fs(2,"div",15),fs(3,"div",16),fs(4,"div",17),hs(),ds(5,"div",18),fs(6,"div",15),fs(7,"div",16),fs(8,"div",17),hs(),ms())}function NE(e,t){1&e&&(ds(0,"div",19),Ts(1,1),hs())}function VE(e,t){if(1&e&&(ps(0),Ts(1,2),ds(2,"span"),Js(3),hs(),ms()),2&e){var n=As(2);Oa(3),el(n._control.placeholder)}}function BE(e,t){1&e&&Ts(0,3,["*ngSwitchCase","true"])}function HE(e,t){1&e&&(ds(0,"span",23),Js(1," *"),hs())}function zE(e,t){if(1&e){var n=vs();ds(0,"label",20,21),ks("cdkObserveContent",function(){return rn(n),As().updateOutlineGap()}),os(2,VE,4,1,"ng-container",12),os(3,BE,1,0,"ng-content",12),os(4,HE,2,0,"span",22),hs()}if(2&e){var i=As();Hs("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),us("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),is("for",i._control.id)("aria-owns",i._control.id),Oa(2),us("ngSwitchCase",!1),Oa(1),us("ngSwitchCase",!0),Oa(1),us("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function GE(e,t){1&e&&(ds(0,"div",24),Ts(1,4),hs())}function jE(e,t){if(1&e&&(ds(0,"div",25,26),fs(2,"span",27),hs()),2&e){var n=As();Oa(2),Hs("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function UE(e,t){1&e&&(ds(0,"div"),Ts(1,5),hs()),2&e&&us("@transitionMessages",As()._subscriptAnimationState)}function WE(e,t){if(1&e&&(ds(0,"div",31),Js(1),hs()),2&e){var n=As(2);us("id",n._hintLabelId),Oa(1),el(n.hintLabel)}}function qE(e,t){if(1&e&&(ds(0,"div",28),os(1,WE,2,2,"div",29),Ts(2,6),fs(3,"div",30),Ts(4,7),hs()),2&e){var n=As();us("@transitionMessages",n._subscriptAnimationState),Oa(1),us("ngIf",n.hintLabel)}}var YE,QE,XE,$E,KE,ZE,JE,eT,tT,nT=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],iT=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],rT=0,aT=new _i("MatError"),oT=((YE=function e(){b(this,e),this.id="mat-error-"+rT++}).\u0275fac=function(e){return new(e||YE)},YE.\u0275dir=bt({type:YE,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&is("id",t.id)},inputs:{id:"id"},features:[bl([{provide:aT,useExisting:YE}])]}),YE),sT={transitionMessages:uC("transitionMessages",[pC("enter",fC({opacity:1,transform:"translateY(0%)"})),gC("void => enter",[fC({opacity:0,transform:"translateY(-5px)"}),cC("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},lT=((QE=function e(){b(this,e)}).\u0275fac=function(e){return new(e||QE)},QE.\u0275dir=bt({type:QE}),QE),uT=0,cT=new _i("MatHint"),dT=((KE=function e(){b(this,e),this.align="start",this.id="mat-hint-"+uT++}).\u0275fac=function(e){return new(e||KE)},KE.\u0275dir=bt({type:KE,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(is("id",t.id)("align",null),Hs("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[bl([{provide:cT,useExisting:KE}])]}),KE),hT=(($E=function e(){b(this,e)}).\u0275fac=function(e){return new(e||$E)},$E.\u0275dir=bt({type:$E,selectors:[["mat-label"]]}),$E),fT=((XE=function e(){b(this,e)}).\u0275fac=function(e){return new(e||XE)},XE.\u0275dir=bt({type:XE,selectors:[["mat-placeholder"]]}),XE),pT=new _i("MatPrefix"),mT=((ZE=function e(){b(this,e)}).\u0275fac=function(e){return new(e||ZE)},ZE.\u0275dir=bt({type:ZE,selectors:[["","matPrefix",""]],features:[bl([{provide:pT,useExisting:ZE}])]}),ZE),gT=new _i("MatSuffix"),vT=((JE=function e(){b(this,e)}).\u0275fac=function(e){return new(e||JE)},JE.\u0275dir=bt({type:JE,selectors:[["","matSuffix",""]],features:[bl([{provide:gT,useExisting:JE}])]}),JE),yT=0,_T=$S(function e(t){b(this,e),this._elementRef=t},"primary"),bT=new _i("MAT_FORM_FIELD_DEFAULT_OPTIONS"),kT=new _i("MatFormField"),wT=((tT=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o,s,l,u){var c;return b(this,n),(c=t.call(this,e))._elementRef=e,c._changeDetectorRef=i,c._dir=a,c._defaults=o,c._platform=s,c._ngZone=l,c._outlineGapCalculationNeededImmediately=!1,c._outlineGapCalculationNeededOnStable=!1,c._destroyed=new j,c._showAlwaysAnimate=!1,c._subscriptAnimationState="",c._hintLabel="",c._hintLabelId="mat-hint-"+yT++,c._labelId="mat-form-field-label-"+yT++,c.floatLabel=c._getDefaultFloatLabelState(),c._animationsEnabled="NoopAnimations"!==u,c.appearance=o&&o.appearance?o.appearance:"legacy",c._hideRequiredMarker=!(!o||null==o.hideRequiredMarker)&&o.hideRequiredMarker,c}return w(n,[{key:"appearance",get:function(){return this._appearance},set:function(e){var t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(e){this._hideRequiredMarker=Qv(e)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(e){this._hintLabel=e,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(e){this._explicitFormFieldControl=e}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var e=this;this._validateControlChild();var t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(t.controlType)),t.stateChanges.pipe(Rp(null)).subscribe(function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Pp(this._destroyed)).subscribe(function(){return e._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.pipe(Pp(e._destroyed)).subscribe(function(){e._outlineGapCalculationNeededOnStable&&e.updateOutlineGap()})}),de(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){e._outlineGapCalculationNeededOnStable=!0,e._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Rp(null)).subscribe(function(){e._processHints(),e._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Rp(null)).subscribe(function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Pp(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?e._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return e.updateOutlineGap()})}):e.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(e){var t=this._control?this._control.ngControl:null;return t&&t[e]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&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 e=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,zg(this._label.nativeElement,"transitionend").pipe(Qg(1)).subscribe(function(){e._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push.apply(e,a(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var t=this._hintChildren?this._hintChildren.find(function(e){return"start"===e.align}):null,n=this._hintChildren?this._hintChildren.find(function(e){return"end"===e.align}):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&e.push.apply(e,a(this._errorChildren.map(function(e){return e.id})));this._control.setDescribedByIds(e)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var e=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var t=0,n=0,i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),a=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);for(var s=this._getStartEnd(o),l=e.children,u=this._getStartEnd(l[0].getBoundingClientRect()),c=0,d=0;d0?.75*c+10:0}for(var h=0;h1&&void 0!==arguments[1]?arguments[1]:rp,i=(t=e)instanceof Date&&!isNaN(+t)?+e-n.now():Math.abs(e);return function(e){return e.lift(new ST(i,n))}}var ST=function(){function e(t,n){b(this,e),this.delay=t,this.scheduler=n}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new AT(e,this.delay,this.scheduler))}}]),e}(),AT=function(e){f(n,e);var t=m(n);function n(e,i,r){var a;return b(this,n),(a=t.call(this,e)).delay=i,a.scheduler=r,a.queue=[],a.active=!1,a.errored=!1,a}return w(n,[{key:"_schedule",value:function(e){this.active=!0,this.destination.add(e.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}},{key:"scheduleNotification",value:function(e){if(!0!==this.errored){var t=this.scheduler,n=new OT(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}}},{key:"_next",value:function(e){this.scheduleNotification(vp.createNext(e))}},{key:"_error",value:function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(vp.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){for(var t=e.source,n=t.queue,i=e.scheduler,r=e.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var a=Math.max(0,n[0].time-i.now());this.schedule(e,a)}else this.unsubscribe(),t.active=!1}}]),n}(P),OT=function e(t,n){b(this,e),this.time=t,this.notification=n},ET=["panel"];function TT(e,t){if(1&e&&(ds(0,"div",0,1),Ts(2),hs()),2&e){var n=t.id,i=As();us("id",i.id)("ngClass",i._classList),is("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(n))}}var PT,DT,MT,IT,RT,LT,FT,NT,VT,BT,HT,zT,GT,jT,UT,WT,qT,QT,XT,$T,KT=["*"],ZT=0,JT=function e(t,n){b(this,e),this.source=t,this.option=n},eP=KS(function e(){b(this,e)}),tP=new _i("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}}),nP=((DT=function(e){f(n,e);var t=m(n);function n(e,i,r,a){var o;return b(this,n),(o=t.call(this))._changeDetectorRef=e,o._elementRef=i,o._activeOptionChanges=O.EMPTY,o.showPanel=!1,o._isOpen=!1,o.displayWith=null,o.optionSelected=new Vu,o.opened=new Vu,o.closed=new Vu,o.optionActivated=new Vu,o._classList={},o.id="mat-autocomplete-"+ZT++,o.inertGroups=(null==a?void 0:a.SAFARI)||!1,o._autoActiveFirstOption=!!r.autoActiveFirstOption,o}return w(n,[{key:"isOpen",get:function(){return this._isOpen&&this.showPanel}},{key:"autoActiveFirstOption",get:function(){return this._autoActiveFirstOption},set:function(e){this._autoActiveFirstOption=Qv(e)}},{key:"classList",set:function(e){this._classList=e&&e.length?ey(e).reduce(function(e,t){return e[t]=!0,e},{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}},{key:"ngAfterContentInit",value:function(){var e=this;this._keyManager=new Mw(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(function(t){e.optionActivated.emit({source:e,option:e.options.toArray()[t]||null})}),this._setVisibility()}},{key:"ngOnDestroy",value:function(){this._activeOptionChanges.unsubscribe()}},{key:"_setScrollTop",value:function(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}},{key:"_getScrollTop",value:function(){return this.panel?this.panel.nativeElement.scrollTop:0}},{key:"_setVisibility",value:function(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}},{key:"_emitSelectEvent",value:function(e){var t=new JT(this,e);this.optionSelected.emit(t)}},{key:"_getPanelAriaLabelledby",value:function(e){return this.ariaLabel?null:this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}},{key:"_setVisibilityClasses",value:function(e){e[this._visibleClass]=this.showPanel,e[this._hiddenClass]=!this.showPanel}}]),n}(eP)).\u0275fac=function(e){return new(e||DT)(ls(Jl),ls(Ol),ls(tP),ls(ow))},DT.\u0275dir=bt({type:DT,viewQuery:function(e,t){var n;1&e&&(Ku(au,3),Ku(ET,1)),2&e&&($u(n=Ju())&&(t.template=n.first),$u(n=Ju())&&(t.panel=n.first))},inputs:{displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[jo]}),DT),iP=((PT=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments))._visibleClass="mat-autocomplete-visible",e._hiddenClass="mat-autocomplete-hidden",e}return n}(nP)).\u0275fac=function(e){return rP(e||PT)},PT.\u0275cmp=pt({type:PT,selectors:[["mat-autocomplete"]],contentQueries:function(e,t,n){var i;1&e&&(Zu(n,YA,1),Zu(n,JA,1)),2&e&&($u(i=Ju())&&(t.optionGroups=i),$u(i=Ju())&&(t.options=i))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[bl([{provide:jA,useExisting:PT}]),jo],ngContentSelectors:KT,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(e,t){1&e&&(Es(),os(0,TT,3,4,"ng-template"))},directives:[yh],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}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),PT),rP=fi(iP),aP=new _i("mat-autocomplete-scroll-strategy"),oP={provide:aP,deps:[SE],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},sP={provide:_b,useExisting:Ee(function(){return uP}),multi:!0},lP=((IT=function(){function e(t,n,i,r,o,s,l,u,c,d,h){var f=this;b(this,e),this._element=t,this._overlay=n,this._viewContainerRef=i,this._zone=r,this._changeDetectorRef=o,this._dir=l,this._formField=u,this._document=c,this._viewportRuler=d,this._defaults=h,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=O.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new j,this._windowBlurHandler=function(){f._canOpenOnNextFocus=f._document.activeElement!==f._element.nativeElement||f.panelOpen},this._onChange=function(){},this._onTouched=function(){},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=rO(function(){return f.autocomplete&&f.autocomplete.options?de.apply(void 0,a(f.autocomplete.options.map(function(e){return e.onSelectionChange}))):f._zone.onStable.pipe(Qg(1),xp(function(){return f.optionSelections}))}),this._scrollStrategy=s}return w(e,[{key:"autocompleteDisabled",get:function(){return this._autocompleteDisabled},set:function(e){this._autocompleteDisabled=Qv(e)}},{key:"ngAfterViewInit",value:function(){var e=this,t=this._getWindow();void 0!==t&&this._zone.runOutsideAngular(function(){return t.addEventListener("blur",e._windowBlurHandler)})}},{key:"ngOnChanges",value:function(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}},{key:"ngOnDestroy",value:function(){var e=this._getWindow();void 0!==e&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}},{key:"panelOpen",get:function(){return this._overlayAttached&&this.autocomplete.showPanel}},{key:"openPanel",value:function(){this._attachOverlay(),this._floatLabel()}},{key:"closePanel",value:function(){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())}},{key:"updatePosition",value:function(){this._overlayAttached&&this._overlayRef.updatePosition()}},{key:"panelClosingActions",get:function(){var e=this;return de(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(jm(function(){return e._overlayAttached})),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(jm(function(){return e._overlayAttached})):fp()).pipe(q(function(e){return e instanceof KA?e:null}))}},{key:"activeOption",get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}},{key:"_getOutsideClickStream",value:function(){var e=this;return de(zg(this._document,"click"),zg(this._document,"auxclick"),zg(this._document,"touchend")).pipe(jm(function(t){var n=e._isInsideShadowRoot&&t.composedPath?t.composedPath()[0]:t.target,i=e._formField?e._formField._elementRef.nativeElement:null,r=e.connectedTo?e.connectedTo.elementRef.nativeElement:null;return e._overlayAttached&&n!==e._element.nativeElement&&(!i||!i.contains(n))&&(!r||!r.contains(n))&&!!e._overlayRef&&!e._overlayRef.overlayElement.contains(n)}))}},{key:"writeValue",value:function(e){var t=this;Promise.resolve(null).then(function(){return t._setTriggerValue(e)})}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this._element.nativeElement.disabled=e}},{key:"_handleKeydown",value:function(e){var t=e.keyCode;if(27!==t||Zk(e)||e.preventDefault(),this.activeOption&&13===t&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){var n=this.autocomplete._keyManager.activeItem,i=38===t||40===t;this.panelOpen||9===t?this.autocomplete._keyManager.onKeydown(e):i&&this._canOpen()&&this.openPanel(),(i||this.autocomplete._keyManager.activeItem!==n)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}},{key:"_handleInput",value:function(e){var t=e.target,n=t.value;"number"===t.type&&(n=""==n?null:parseFloat(n)),this._previousValue!==n&&(this._previousValue=n,this._onChange(n),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}},{key:"_handleFocus",value:function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}},{key:"_floatLabel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}},{key:"_resetLabel",value:function(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}},{key:"_subscribeToClosingActions",value:function(){var e=this;return de(this._zone.onStable.pipe(Qg(1)),this.autocomplete.options.changes.pipe(Zg(function(){return e._positionStrategy.reapplyLastPosition()}),xT(0))).pipe(xp(function(){var t=e.panelOpen;return e._resetActiveItem(),e.autocomplete._setVisibility(),e.panelOpen&&(e._overlayRef.updatePosition(),t!==e.panelOpen&&e.autocomplete.opened.emit()),e.panelClosingActions}),Qg(1)).subscribe(function(t){return e._setValueAndClose(t)})}},{key:"_destroyPanel",value:function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}},{key:"_setTriggerValue",value:function(e){var t=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e,n=null!=t?t:"";this._formField?this._formField._control.value=n:this._element.nativeElement.value=n,this._previousValue=n}},{key:"_setValueAndClose",value:function(e){e&&e.source&&(this._clearPreviousSelectedOption(e.source),this._setTriggerValue(e.source.value),this._onChange(e.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(e.source)),this.closePanel()}},{key:"_clearPreviousSelectedOption",value:function(e){this.autocomplete.options.forEach(function(t){t!==e&&t.selected&&t.deselect()})}},{key:"_attachOverlay",value:function(){var e,t=this;null==this._isInsideShadowRoot&&(this._isInsideShadowRoot=!!fw(this._element.nativeElement));var n=this._overlayRef;n?(this._positionStrategy.setOrigin(this._getConnectedElement()),n.updateSize({width:this._getPanelWidth()})):(this._portal=new RO(this.autocomplete.template,this._viewContainerRef,{id:null===(e=this._formField)||void 0===e?void 0:e.getLabelId()}),n=this._overlay.create(this._getOverlayConfig()),this._overlayRef=n,n.keydownEvents().subscribe(function(e){(27===e.keyCode&&!Zk(e)||38===e.keyCode&&Zk(e,"altKey"))&&(t._resetActiveItem(),t._closeKeyEventStream.next(),e.stopPropagation(),e.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(function(){t.panelOpen&&n&&n.updateSize({width:t._getPanelWidth()})})),n&&!n.hasAttached()&&(n.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());var i=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&i!==this.panelOpen&&this.autocomplete.opened.emit()}},{key:"_getOverlayConfig",value:function(){var e;return new nE({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(e=this._defaults)||void 0===e?void 0:e.overlayPanelClass})}},{key:"_getOverlayPosition",value:function(){var e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}},{key:"_setStrategyPositions",value:function(e){var t,n=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],i=this._aboveClass,r=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:i},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:i}];t="above"===this.position?r:"below"===this.position?n:[].concat(n,r),e.withPositions(t)}},{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(){var e=this.autocomplete;e.autoActiveFirstOption?e._keyManager.setFirstItemActive():e._keyManager.setActiveItem(-1)}},{key:"_canOpen",value:function(){var e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this._autocompleteDisabled}},{key:"_getWindow",value:function(){var e;return(null===(e=this._document)||void 0===e?void 0:e.defaultView)||window}},{key:"_scrollToOption",value:function(e){var t=this.autocomplete,n=eO(e,t.options,t.optionGroups);if(0===e&&1===n)t._setScrollTop(0);else{var i=t.options.toArray()[e];if(i){var r=i._getHostElement(),a=tO(r.offsetTop,r.offsetHeight,t._getScrollTop(),t.panel.nativeElement.offsetHeight);t._setScrollTop(a)}}}}]),e}()).\u0275fac=function(e){return new(e||IT)(ls(Ol),ls(SE),ls(du),ls(Oc),ls(Jl),ls(aP),ls(Iy,8),ls(kT,9),ls(sd,8),ls(TO),ls(tP,8))},IT.\u0275dir=bt({type:IT,inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},features:[It]}),IT),uP=((MT=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments))._aboveClass="mat-autocomplete-panel-above",e}return n}(lP)).\u0275fac=function(e){return cP(e||MT)},MT.\u0275dir=bt({type:MT,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(e,t){1&e&&ks("focusin",function(){return t._handleFocus()})("blur",function(){return t._onTouched()})("input",function(e){return t._handleInput(e)})("keydown",function(e){return t._handleKeydown(e)}),2&e&&is("autocomplete",t.autocompleteAttribute)("role",t.autocompleteDisabled?null:"combobox")("aria-autocomplete",t.autocompleteDisabled?null:"list")("aria-activedescendant",t.panelOpen&&t.activeOption?t.activeOption.id:null)("aria-expanded",t.autocompleteDisabled?null:t.panelOpen.toString())("aria-owns",t.autocompleteDisabled||!t.panelOpen||null==t.autocomplete?null:t.autocomplete.id)("aria-haspopup",!t.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[bl([sP]),jo]}),MT),cP=fi(uP),dP=((RT=function e(){b(this,e)}).\u0275fac=function(e){return new(e||RT)},RT.\u0275mod=yt({type:RT}),RT.\u0275inj=Ne({providers:[oP],imports:[[DE,iO,QS,Zh],PO,iO,QS]}),RT),hP=0,fP=XS(function e(){b(this,e)}),pP=((FT=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o){var s;return b(this,n),(s=t.call(this))._ngZone=e,s._elementRef=i,s._ariaDescriber=r,s._renderer=a,s._animationMode=o,s._hasContent=!1,s._color="primary",s._overlap=!0,s.position="above after",s.size="medium",s._id=hP++,s}return w(n,[{key:"color",get:function(){return this._color},set:function(e){this._setColor(e),this._color=e}},{key:"overlap",get:function(){return this._overlap},set:function(e){this._overlap=Qv(e)}},{key:"description",get:function(){return this._description},set:function(e){if(e!==this._description){var t=this._badgeElement;this._updateHostAriaDescription(e,this._description),this._description=e,t&&(e?t.setAttribute("aria-label",e):t.removeAttribute("aria-label"))}}},{key:"hidden",get:function(){return this._hidden},set:function(e){this._hidden=Qv(e)}},{key:"isAbove",value:function(){return-1===this.position.indexOf("below")}},{key:"isAfter",value:function(){return-1===this.position.indexOf("before")}},{key:"ngOnChanges",value:function(e){var t=e.content;if(t){var n=t.currentValue;this._hasContent=null!=n&&"".concat(n).trim().length>0,this._updateTextContent()}}},{key:"ngOnDestroy",value:function(){var e=this._badgeElement;e&&(this.description&&this._ariaDescriber.removeDescription(e,this.description),this._renderer.destroyNode&&this._renderer.destroyNode(e))}},{key:"getBadgeElement",value:function(){return this._badgeElement}},{key:"_updateTextContent",value:function(){return this._badgeElement?this._badgeElement.textContent=this._stringifyContent():this._badgeElement=this._createBadgeElement(),this._badgeElement}},{key:"_createBadgeElement",value:function(){var e=this._renderer.createElement("span");return this._clearExistingBadges("mat-badge-content"),e.setAttribute("id","mat-badge-content-".concat(this._id)),e.classList.add("mat-badge-content"),e.textContent=this._stringifyContent(),"NoopAnimations"===this._animationMode&&e.classList.add("_mat-animation-noopable"),this.description&&e.setAttribute("aria-label",this.description),this._elementRef.nativeElement.appendChild(e),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){e.classList.add("mat-badge-active")})}):e.classList.add("mat-badge-active"),e}},{key:"_updateHostAriaDescription",value:function(e,t){var n=this._updateTextContent();t&&this._ariaDescriber.removeDescription(n,t),e&&this._ariaDescriber.describe(n,e)}},{key:"_setColor",value:function(e){if(e!==this._color){var t=this._elementRef.nativeElement.classList;this._color&&t.remove("mat-badge-".concat(this._color)),e&&t.add("mat-badge-".concat(e))}}},{key:"_clearExistingBadges",value:function(e){for(var t=this._elementRef.nativeElement,n=t.children.length;n--;){var i=t.children[n];i.classList.contains(e)&&t.removeChild(i)}}},{key:"_stringifyContent",value:function(){var e=this.content;return null==e?"":"".concat(e)}}]),n}(fP)).\u0275fac=function(e){return new(e||FT)(ls(Oc),ls(Ol),ls(Ow),ls(Pl),ls(LS,8))},FT.\u0275dir=bt({type:FT,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(e,t){2&e&&Hs("mat-badge-overlap",t.overlap)("mat-badge-above",t.isAbove())("mat-badge-below",!t.isAbove())("mat-badge-before",!t.isAfter())("mat-badge-after",t.isAfter())("mat-badge-small","small"===t.size)("mat-badge-medium","medium"===t.size)("mat-badge-large","large"===t.size)("mat-badge-hidden",t.hidden||!t._hasContent)("mat-badge-disabled",t.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],position:["matBadgePosition","position"],size:["matBadgeSize","size"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],description:["matBadgeDescription","description"],hidden:["matBadgeHidden","hidden"],content:["matBadge","content"]},features:[jo,It]}),FT),mP=((LT=function e(){b(this,e)}).\u0275fac=function(e){return new(e||LT)},LT.\u0275mod=yt({type:LT}),LT.\u0275inj=Ne({imports:[[oC,QS],QS]}),LT),gP=["mat-button",""],vP=["*"],yP=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .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.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-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.mat-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.mat-button-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.mat-button-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}.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:inline-flex;justify-content:center;align-items:center;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}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n",_P=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],bP=$S(XS(KS(function e(t){b(this,e),this._elementRef=t}))),kP=((BT=function(e){f(n,e);var t=m(n);function n(e,i,r){var a;b(this,n),(a=t.call(this,e))._focusMonitor=i,a._animationMode=r,a.isRoundButton=a._hasHostAttributes("mat-fab","mat-mini-fab"),a.isIconButton=a._hasHostAttributes("mat-icon-button");var o,l=s(_P);try{for(l.s();!(o=l.n()).done;){var u=o.value;a._hasHostAttributes(u)&&a._getHostElement().classList.add(u)}}catch(c){l.e(c)}finally{l.f()}return e.nativeElement.classList.add("mat-button-base"),a.isRoundButton&&(a.color="accent"),a}return w(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.multiple||!this.selected||e.checked||(this.selected.checked=!1),this._selectionModel?t?this._selectionModel.select(e):this._selectionModel.deselect(e):r=!0,r?Promise.resolve().then(function(){return n._updateModelValue(i)}):this._updateModelValue(i)}},{key:"_isSelected",value:function(e){return this._selectionModel&&this._selectionModel.isSelected(e)}},{key:"_isPrechecked",value:function(e){return void 0!==this._rawValue&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(function(t){return null!=e.value&&t===e.value}):e.value===this._rawValue)}},{key:"_setSelectionByValue",value:function(e){var t=this;this._rawValue=e,this._buttonToggles&&(this.multiple&&e?(Array.isArray(e),this._clearSelection(),e.forEach(function(e){return t._selectValue(e)})):(this._clearSelection(),this._selectValue(e)))}},{key:"_clearSelection",value:function(){this._selectionModel.clear(),this._buttonToggles.forEach(function(e){return e.checked=!1})}},{key:"_selectValue",value:function(e){var t=this._buttonToggles.find(function(t){return null!=t.value&&t.value===e});t&&(t.checked=!0,this._selectionModel.select(t))}},{key:"_updateModelValue",value:function(e){e&&this._emitChangeEvent(),this.valueChange.emit(this.value)}}]),e}()).\u0275fac=function(e){return new(e||HT)(ls(Jl),ls(AP,8))},HT.\u0275dir=bt({type:HT,selectors:[["mat-button-toggle-group"]],contentQueries:function(e,t,n){var i;1&e&&Zu(n,IP,1),2&e&&$u(i=Ju())&&(t._buttonToggles=i)},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(e,t){2&e&&(is("aria-disabled",t.disabled),Hs("mat-button-toggle-vertical",t.vertical)("mat-button-toggle-group-appearance-standard","standard"===t.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[bl([EP,{provide:OP,useExisting:HT}])]}),HT),MP=KS(function e(){b(this,e)}),IP=((GT=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o,s){var l;b(this,n),(l=t.call(this))._changeDetectorRef=i,l._elementRef=r,l._focusMonitor=a,l._isSingleSelector=!1,l._checked=!1,l.ariaLabelledby=null,l._disabled=!1,l.change=new Vu;var u=Number(o);return l.tabIndex=u||0===u?u:null,l.buttonToggleGroup=e,l.appearance=s&&s.appearance?s.appearance:"standard",l}return w(n,[{key:"buttonId",get:function(){return"".concat(this.id,"-button")}},{key:"appearance",get:function(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance},set:function(e){this._appearance=e}},{key:"checked",get:function(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked},set:function(e){var t=Qv(e);t!==this._checked&&(this._checked=t,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(e){this._disabled=Qv(e)}},{key:"ngOnInit",value:function(){var e=this.buttonToggleGroup;this._isSingleSelector=e&&!e.multiple,this.id=this.id||"mat-button-toggle-"+TP++,this._isSingleSelector&&(this.name=e.name),e&&(e._isPrechecked(this)?this.checked=!0:e._isSelected(this)!==this._checked&&e._syncButtonToggle(this,this._checked))}},{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){var e=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),e&&e._isSelected(this)&&e._syncButtonToggle(this,!1,!1,!0)}},{key:"focus",value:function(e){this._buttonElement.nativeElement.focus(e)}},{key:"_onButtonClick",value:function(){var e=!!this._isSingleSelector||!this._checked;e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new PP(this,this.value))}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),n}(MP)).\u0275fac=function(e){return new(e||GT)(ls(OP,8),ls(Jl),ls(Ol),ls(Jw),mi("tabindex"),ls(AP,8))},GT.\u0275cmp=pt({type:GT,selectors:[["mat-button-toggle"]],viewQuery:function(e,t){var n;1&e&&Ku(xP,1),2&e&&$u(n=Ju())&&(t._buttonElement=n.first)},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(e,t){1&e&&ks("focus",function(){return t.focus()}),2&e&&(is("aria-label",null)("aria-labelledby",null)("id",t.id)("name",null),Hs("mat-button-toggle-standalone",!t.buttonToggleGroup)("mat-button-toggle-checked",t.checked)("mat-button-toggle-disabled",t.disabled)("mat-button-toggle-appearance-standard","standard"===t.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:[jo],ngContentSelectors:SP,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(e,t){if(1&e&&(Es(),ds(0,"button",0,1),ks("click",function(){return t._onButtonClick()}),ds(2,"span",2),Ts(3),hs(),hs(),fs(4,"span",3),fs(5,"span",4)),2&e){var n=ss(1);us("id",t.buttonId)("disabled",t.disabled||null),is("tabindex",t.disabled?-1:t.tabIndex)("aria-pressed",t.checked)("name",t.name||null)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby),Oa(5),us("matRippleTrigger",n)("matRippleDisabled",t.disableRipple||t.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{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 500px}.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}),GT),RP=((zT=function e(){b(this,e)}).\u0275fac=function(e){return new(e||zT)},zT.\u0275mod=yt({type:zT}),zT.\u0275inj=Ne({imports:[[QS,HA],QS]}),zT),LP=["*",[["mat-card-footer"]]],FP=["*","mat-card-footer"],NP=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],VP=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],BP=(($T=function e(){b(this,e)}).\u0275fac=function(e){return new(e||$T)},$T.\u0275dir=bt({type:$T,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),$T),HP=((XT=function e(){b(this,e)}).\u0275fac=function(e){return new(e||XT)},XT.\u0275dir=bt({type:XT,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),XT),zP=((QT=function e(){b(this,e)}).\u0275fac=function(e){return new(e||QT)},QT.\u0275dir=bt({type:QT,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),QT),GP=((qT=function e(){b(this,e)}).\u0275fac=function(e){return new(e||qT)},qT.\u0275dir=bt({type:qT,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),qT),jP=((WT=function e(t){b(this,e),this._animationMode=t}).\u0275fac=function(e){return new(e||WT)(ls(LS,8))},WT.\u0275cmp=pt({type:WT,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(e,t){2&e&&Hs("_mat-animation-noopable","NoopAnimations"===t._animationMode)},exportAs:["matCard"],ngContentSelectors:FP,decls:2,vars:0,template:function(e,t){1&e&&(Es(LP),Ts(0),Ts(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:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-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}),WT),UP=((UT=function e(){b(this,e)}).\u0275fac=function(e){return new(e||UT)},UT.\u0275cmp=pt({type:UT,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:VP,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(e,t){1&e&&(Es(NP),Ts(0),ds(1,"div",0),Ts(2,1),hs(),Ts(3,2))},encapsulation:2,changeDetection:0}),UT),WP=((jT=function e(){b(this,e)}).\u0275fac=function(e){return new(e||jT)},jT.\u0275mod=yt({type:jT}),jT.\u0275inj=Ne({imports:[[QS],QS]}),jT),qP=["input"],YP=function(){return{enterDuration:150}},QP=["*"],XP=new _i("mat-checkbox-default-options",{providedIn:"root",factory:$P});function $P(){return{color:"accent",clickAction:"check-indeterminate"}}var KP,ZP,JP,eD,tD,nD,iD=0,rD={color:"accent",clickAction:"check-indeterminate"},aD={provide:_b,useExisting:Ee(function(){return lD}),multi:!0},oD=function e(){b(this,e)},sD=ZS($S(KS(XS(function e(t){b(this,e),this._elementRef=t})))),lD=((JP=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o,s,l){var u;return b(this,n),(u=t.call(this,e))._changeDetectorRef=i,u._focusMonitor=r,u._ngZone=a,u._animationMode=s,u._options=l,u.ariaLabel="",u.ariaLabelledby=null,u._uniqueId="mat-checkbox-"+ ++iD,u.id=u._uniqueId,u.labelPosition="after",u.name=null,u.change=new Vu,u.indeterminateChange=new Vu,u._onTouched=function(){},u._currentAnimationClass="",u._currentCheckState=0,u._controlValueAccessorChangeFn=function(){},u._checked=!1,u._disabled=!1,u._indeterminate=!1,u._options=u._options||rD,u.color=u.defaultColor=u._options.color||rD.color,u.tabIndex=parseInt(o)||0,u}return w(n,[{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"required",get:function(){return this._required},set:function(e){this._required=Qv(e)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(t){t||Promise.resolve().then(function(){e._onTouched(),e._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}},{key:"ngAfterViewChecked",value:function(){}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"checked",get:function(){return this._checked},set:function(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(e){var t=Qv(e);t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}},{key:"indeterminate",get:function(){return this._indeterminate},set:function(e){var t=e!=this._indeterminate;this._indeterminate=Qv(e),t&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"writeValue",value:function(e){this.checked=!!e}},{key:"registerOnChange",value:function(e){this._controlValueAccessorChangeFn=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e}},{key:"_getAriaChecked",value:function(){return this.checked?"true":this.indeterminate?"mixed":"false"}},{key:"_transitionCheckState",value:function(e){var t=this._currentCheckState,n=this._elementRef.nativeElement;if(t!==e&&(this._currentAnimationClass.length>0&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,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 e=new oD;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}},{key:"toggle",value:function(){this.checked=!this.checked}},{key:"_onInputClick",value:function(e){var t,n=this,i=null===(t=this._options)||void 0===t?void 0:t.clickAction;e.stopPropagation(),this.disabled||"noop"===i?this.disabled||"noop"!==i||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==i&&Promise.resolve().then(function(){n._indeterminate=!1,n.indeterminateChange.emit(n._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}},{key:"_onInteractionEvent",value:function(e){e.stopPropagation()}},{key:"_getAnimationClassForCheckStateTransition",value:function(e,t){if("NoopAnimations"===this._animationMode)return"";var n="";switch(e){case 0:if(1===t)n="unchecked-checked";else{if(3!=t)return"";n="unchecked-indeterminate"}break;case 2:n=1===t?"unchecked-checked":"unchecked-indeterminate";break;case 1:n=2===t?"checked-unchecked":"checked-indeterminate";break;case 3:n=1===t?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-".concat(n)}},{key:"_syncIndeterminate",value:function(e){var t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}}]),n}(sD)).\u0275fac=function(e){return new(e||JP)(ls(Ol),ls(Jl),ls(Jw),ls(Oc),mi("tabindex"),ls(LS,8),ls(XP,8))},JP.\u0275cmp=pt({type:JP,selectors:[["mat-checkbox"]],viewQuery:function(e,t){var n;1&e&&(Ku(qP,1),Ku(BA,1)),2&e&&($u(n=Ju())&&(t._inputElement=n.first),$u(n=Ju())&&(t.ripple=n.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(e,t){2&e&&(al("id",t.id),is("tabindex",null),Hs("mat-checkbox-indeterminate",t.indeterminate)("mat-checkbox-checked",t.checked)("mat-checkbox-disabled",t.disabled)("mat-checkbox-label-before","before"==t.labelPosition)("_mat-animation-noopable","NoopAnimations"===t._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",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[bl([aD]),jo],ngContentSelectors:QP,decls:17,vars:20,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(e,t){if(1&e&&(Es(),ds(0,"label",0,1),ds(2,"span",2),ds(3,"input",3,4),ks("change",function(e){return t._onInteractionEvent(e)})("click",function(e){return t._onInputClick(e)}),hs(),ds(5,"span",5),fs(6,"span",6),hs(),fs(7,"span",7),ds(8,"span",8),Dn(),ds(9,"svg",9),fs(10,"path",10),hs(),Mn(),fs(11,"span",11),hs(),hs(),ds(12,"span",12,13),ks("cdkObserveContent",function(){return t._onLabelTextChange()}),ds(14,"span",14),Js(15,"\xa0"),hs(),Ts(16),hs(),hs()),2&e){var n=ss(1),i=ss(13);is("for",t.inputId),Oa(2),Hs("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),Oa(1),us("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),is("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked())("aria-describedby",t.ariaDescribedby),Oa(2),us("matRippleTrigger",n)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",Su(19,YP))}},directives:[BA,bw],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{display:inline-block;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}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .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);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;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}),JP),uD=((ZP=function e(){b(this,e)}).\u0275fac=function(e){return new(e||ZP)},ZP.\u0275mod=yt({type:ZP}),ZP.\u0275inj=Ne({}),ZP),cD=((KP=function e(){b(this,e)}).\u0275fac=function(e){return new(e||KP)},KP.\u0275mod=yt({type:KP}),KP.\u0275inj=Ne({imports:[[HA,QS,kw,uD],QS,uD]}),KP),dD=["*"],hD=new _i("MatChipRemove"),fD=new _i("MatChipAvatar"),pD=new _i("MatChipTrailingIcon"),mD=ZS($S(KS(function e(t){b(this,e),this._elementRef=t}),"primary"),-1),gD=((eD=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o,s,l,u){var c;return b(this,n),(c=t.call(this,e))._elementRef=e,c._ngZone=i,c._changeDetectorRef=o,c._hasFocus=!1,c.chipListSelectable=!0,c._chipListMultiple=!1,c._chipListDisabled=!1,c._selected=!1,c._selectable=!0,c._disabled=!1,c._removable=!0,c._onFocus=new j,c._onBlur=new j,c.selectionChange=new Vu,c.destroyed=new Vu,c.removed=new Vu,c._addHostClassName(),c._chipRippleTarget=s.createElement("div"),c._chipRippleTarget.classList.add("mat-chip-ripple"),c._elementRef.nativeElement.appendChild(c._chipRippleTarget),c._chipRipple=new NA(v(c),i,c._chipRippleTarget,r),c._chipRipple.setupTriggerEvents(e),c.rippleConfig=a||{},c._animationsDisabled="NoopAnimations"===l,c.tabIndex=null!=u&&parseInt(u)||-1,c}return w(n,[{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}},{key:"selected",get:function(){return this._selected},set:function(e){var t=Qv(e);t!==this._selected&&(this._selected=t,this._dispatchSelectionChange())}},{key:"value",get:function(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent},set:function(e){this._value=e}},{key:"selectable",get:function(){return this._selectable&&this.chipListSelectable},set:function(e){this._selectable=Qv(e)}},{key:"disabled",get:function(){return this._chipListDisabled||this._disabled},set:function(e){this._disabled=Qv(e)}},{key:"removable",get:function(){return this._removable},set:function(e){this._removable=Qv(e)}},{key:"ariaSelected",get:function(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}},{key:"_addHostClassName",value:function(){var e=this._elementRef.nativeElement;e.hasAttribute("mat-basic-chip")||"mat-basic-chip"===e.tagName.toLowerCase()?e.classList.add("mat-basic-chip"):e.classList.add("mat-standard-chip")}},{key:"ngOnDestroy",value:function(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"selectViaInteraction",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}},{key:"toggleSelected",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._selected=!this.selected,this._dispatchSelectionChange(e),this._changeDetectorRef.markForCheck(),this.selected}},{key:"focus",value:function(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}},{key:"remove",value:function(){this.removable&&this.removed.emit({chip:this})}},{key:"_handleClick",value:function(e){this.disabled?e.preventDefault():e.stopPropagation()}},{key:"_handleKeydown",value:function(e){if(!this.disabled)switch(e.keyCode){case 46:case 8:this.remove(),e.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),e.preventDefault()}}},{key:"_blur",value:function(){var e=this;this._ngZone.onStable.pipe(Qg(1)).subscribe(function(){e._ngZone.run(function(){e._hasFocus=!1,e._onBlur.next({chip:e})})})}},{key:"_dispatchSelectionChange",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectionChange.emit({source:this,isUserInput:e,selected:this._selected})}}]),n}(mD)).\u0275fac=function(e){return new(e||eD)(ls(Ol),ls(Oc),ls(ow),ls(VA,8),ls(Jl),ls(sd),ls(LS,8),mi("tabindex"))},eD.\u0275dir=bt({type:eD,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,t,n){var i;1&e&&(Zu(n,fD,1),Zu(n,pD,1),Zu(n,hD,1)),2&e&&($u(i=Ju())&&(t.avatar=i.first),$u(i=Ju())&&(t.trailingIcon=i.first),$u(i=Ju())&&(t.removeIcon=i.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(e,t){1&e&&ks("click",function(e){return t._handleClick(e)})("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t.focus()})("blur",function(){return t._blur()}),2&e&&(is("tabindex",t.disabled?null:t.tabIndex)("disabled",t.disabled||null)("aria-disabled",t.disabled.toString())("aria-selected",t.ariaSelected),Hs("mat-chip-selected",t.selected)("mat-chip-with-avatar",t.avatar)("mat-chip-with-trailing-icon",t.trailingIcon||t.removeIcon)("mat-chip-disabled",t.disabled)("_mat-animation-noopable",t._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[jo]}),eD),vD=new _i("mat-chips-default-options"),yD=JS(function e(t,n,i,r){b(this,e),this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}),_D=0,bD=function e(t,n){b(this,e),this.source=t,this.value=n},kD=((tD=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o,s,l){var u;return b(this,n),(u=t.call(this,s,a,o,l))._elementRef=e,u._changeDetectorRef=i,u._dir=r,u.ngControl=l,u.controlType="mat-chip-list",u._lastDestroyedChipIndex=null,u._destroyed=new j,u._uid="mat-chip-list-"+_D++,u._tabIndex=0,u._userTabIndex=null,u._onTouched=function(){},u._onChange=function(){},u._multiple=!1,u._compareWith=function(e,t){return e===t},u._required=!1,u._disabled=!1,u.ariaOrientation="horizontal",u._selectable=!0,u.change=new Vu,u.valueChange=new Vu,u.ngControl&&(u.ngControl.valueAccessor=v(u)),u}return w(n,[{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"role",get:function(){return this.empty?null:"listbox"}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=Qv(e),this._syncChipsState()}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){this.writeValue(e),this._value=e}},{key:"id",get:function(){return this._chipInput?this._chipInput.id:this._uid}},{key:"required",get:function(){return this._required},set:function(e){this._required=Qv(e),this.stateChanges.next()}},{key:"placeholder",get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"focused",get:function(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}},{key:"empty",get:function(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}},{key:"shouldLabelFloat",get:function(){return!this.empty||this.focused}},{key:"disabled",get:function(){return this.ngControl?!!this.ngControl.disabled:this._disabled},set:function(e){this._disabled=Qv(e),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(e){var t=this;this._selectable=Qv(e),this.chips&&this.chips.forEach(function(e){return e.chipListSelectable=t._selectable})}},{key:"tabIndex",set:function(e){this._userTabIndex=e,this._tabIndex=e}},{key:"chipSelectionChanges",get:function(){return de.apply(void 0,a(this.chips.map(function(e){return e.selectionChange})))}},{key:"chipFocusChanges",get:function(){return de.apply(void 0,a(this.chips.map(function(e){return e._onFocus})))}},{key:"chipBlurChanges",get:function(){return de.apply(void 0,a(this.chips.map(function(e){return e._onBlur})))}},{key:"chipRemoveChanges",get:function(){return de.apply(void 0,a(this.chips.map(function(e){return e.destroyed})))}},{key:"ngAfterContentInit",value:function(){var e=this;this._keyManager=new Iw(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Pp(this._destroyed)).subscribe(function(t){return e._keyManager.withHorizontalOrientation(t)}),this._keyManager.tabOut.pipe(Pp(this._destroyed)).subscribe(function(){e._allowFocusEscape()}),this.chips.changes.pipe(Rp(null),Pp(this._destroyed)).subscribe(function(){e.disabled&&Promise.resolve().then(function(){e._syncChipsState()}),e._resetChips(),e._initializeSelection(),e._updateTabIndex(),e._updateFocusForDestroyedChips(),e.stateChanges.next()})}},{key:"ngOnInit",value:function(){this._selectionModel=new xO(this.multiple,void 0,!1),this.stateChanges.next()}},{key:"ngDoCheck",value:function(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}},{key:"registerInput",value:function(e){this._chipInput=e,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",e.id)}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"writeValue",value:function(e){this.chips&&this._setSelectionByValue(e,!1)}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this.stateChanges.next()}},{key:"onContainerClick",value:function(e){this._originatesFromChip(e)||this.focus()}},{key:"focus",value:function(e){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(e),this.stateChanges.next()))}},{key:"_focusInput",value:function(e){this._chipInput&&this._chipInput.focus(e)}},{key:"_keydown",value:function(e){var t=e.target;8===e.keyCode&&this._isInputEmpty(t)?(this._keyManager.setLastItemActive(),e.preventDefault()):t&&t.classList.contains("mat-chip")&&(this._keyManager.onKeydown(e),this.stateChanges.next())}},{key:"_updateTabIndex",value:function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}},{key:"_updateFocusForDestroyedChips",value:function(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){var e=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(e)}else this.focus();this._lastDestroyedChipIndex=null}},{key:"_isValidIndex",value:function(e){return e>=0&&e1&&void 0!==arguments[1])||arguments[1];if(this._clearSelection(),this.chips.forEach(function(e){return e.deselect()}),Array.isArray(e))e.forEach(function(e){return t._selectValue(e,n)}),this._sortValues();else{var i=this._selectValue(e,n);i&&n&&this._keyManager.setActiveItem(i)}}},{key:"_selectValue",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.chips.find(function(n){return null!=n.value&&t._compareWith(n.value,e)});return i&&(n?i.selectViaInteraction():i.select(),this._selectionModel.select(i)),i}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then(function(){(e.ngControl||e._value)&&(e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value,!1),e.stateChanges.next())})}},{key:"_clearSelection",value:function(e){this._selectionModel.clear(),this.chips.forEach(function(t){t!==e&&t.deselect()}),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach(function(t){t.selected&&e._selectionModel.select(t)}),this.stateChanges.next())}},{key:"_propagateChanges",value:function(e){var t;t=Array.isArray(this.selected)?this.selected.map(function(e){return e.value}):this.selected?this.selected.value:e,this._value=t,this.change.emit(new bD(this,t)),this.valueChange.emit(t),this._onChange(t),this._changeDetectorRef.markForCheck()}},{key:"_blur",value:function(){var e=this;this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(function(){e.focused||e._markAsTouched()}):this._markAsTouched())}},{key:"_markAsTouched",value:function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_allowFocusEscape",value:function(){var e=this;-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(function(){e._tabIndex=e._userTabIndex||0,e._changeDetectorRef.markForCheck()}))}},{key:"_resetChips",value:function(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}},{key:"_dropSubscriptions",value:function(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}},{key:"_listenToChipsSelection",value:function(){var e=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(function(t){t.source.selected?e._selectionModel.select(t.source):e._selectionModel.deselect(t.source),e.multiple||e.chips.forEach(function(t){!e._selectionModel.isSelected(t)&&t.selected&&t.deselect()}),t.isUserInput&&e._propagateChanges()})}},{key:"_listenToChipsFocus",value:function(){var e=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe(function(t){var n=e.chips.toArray().indexOf(t.chip);e._isValidIndex(n)&&e._keyManager.updateActiveItem(n),e.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(function(){e._blur(),e.stateChanges.next()})}},{key:"_listenToChipsRemoved",value:function(){var e=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(function(t){var n=t.chip,i=e.chips.toArray().indexOf(t.chip);e._isValidIndex(i)&&n._hasFocus&&(e._lastDestroyedChipIndex=i)})}},{key:"_originatesFromChip",value:function(e){for(var t=e.target;t&&t!==this._elementRef.nativeElement;){if(t.classList.contains("mat-chip"))return!0;t=t.parentElement}return!1}},{key:"_hasFocusedChip",value:function(){return this.chips&&this.chips.some(function(e){return e._hasFocus})}},{key:"_syncChipsState",value:function(){var e=this;this.chips&&this.chips.forEach(function(t){t._chipListDisabled=e._disabled,t._chipListMultiple=e.multiple})}}]),n}(yD)).\u0275fac=function(e){return new(e||tD)(ls(Ol),ls(Jl),ls(Iy,8),ls(Rk,8),ls(qk,8),ls(_A),ls($b,10))},tD.\u0275cmp=pt({type:tD,selectors:[["mat-chip-list"]],contentQueries:function(e,t,n){var i;1&e&&Zu(n,gD,1),2&e&&$u(i=Ju())&&(t.chips=i)},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(e,t){1&e&&ks("focus",function(){return t.focus()})("blur",function(){return t._blur()})("keydown",function(e){return t._keydown(e)}),2&e&&(al("id",t._uid),is("tabindex",t.disabled?null:t._tabIndex)("aria-describedby",t._ariaDescribedby||null)("aria-required",t.role?t.required:null)("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-multiselectable",t.multiple)("role",t.role)("aria-orientation",t.ariaOrientation),Hs("mat-chip-list-disabled",t.disabled)("mat-chip-list-invalid",t.errorState)("mat-chip-list-required",t.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[bl([{provide:lT,useExisting:tD}]),jo],ngContentSelectors:dD,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(e,t){1&e&&(Es(),ds(0,"div",0),Ts(1),hs())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),tD),wD={separatorKeyCodes:[13]},CD=((nD=function e(){b(this,e)}).\u0275fac=function(e){return new(e||nD)},nD.\u0275mod=yt({type:nD}),nD.\u0275inj=Ne({providers:[_A,{provide:vD,useValue:wD}],imports:[[QS]]}),nD);function xD(e,t){}var SD,AD,OD=function e(){b(this,e),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},ED={dialogContainer:uC("dialogContainer",[pC("void, exit",fC({opacity:0,transform:"scale(0.7)"})),pC("enter",fC({transform:"none"})),gC("* => enter",cC("150ms cubic-bezier(0, 0, 0.2, 1)",fC({transform:"none",opacity:1}))),gC("* => void, * => exit",cC("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",fC({opacity:0})))])},TD=((AD=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o,s){var l;return b(this,n),(l=t.call(this))._elementRef=e,l._focusTrapFactory=i,l._changeDetectorRef=r,l._config=o,l._focusMonitor=s,l._animationStateChanged=new Vu,l._elementFocusedBeforeDialogWasOpened=null,l._closeInteractionType=null,l.attachDomPortal=function(e){return l._portalOutlet.hasAttached(),l._portalOutlet.attachDomPortal(e)},l._ariaLabelledBy=o.ariaLabelledBy||null,l._document=a,l}return w(n,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){var t=this._getActiveElement(),n=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==n&&!n.contains(t)||(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._getActiveElement())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var e=this._elementRef.nativeElement,t=this._getActiveElement();return e===t||e.contains(t)}},{key:"_getActiveElement",value:function(){var e,t=this._document.activeElement;return(null===(e=null==t?void 0:t.shadowRoot)||void 0===e?void 0:e.activeElement)||t}}]),n}(FO)).\u0275fac=function(e){return new(e||AD)(ls(Ol),ls(Hw),ls(Jl),ls(sd,8),ls(OD),ls(Jw))},AD.\u0275dir=bt({type:AD,viewQuery:function(e,t){var n;1&e&&Ku(BO,3),2&e&&$u(n=Ju())&&(t._portalOutlet=n.first)},features:[jo]}),AD),PD=((SD=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments))._state="enter",e}return w(n,[{key:"_onAnimationDone",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:n})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:n}))}},{key:"_onAnimationStart",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:n}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:n})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(TD)).\u0275fac=function(e){return DD(e||SD)},SD.\u0275cmp=pt({type:SD,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&ws("@dialogContainer.start",function(e){return t._onAnimationStart(e)})("@dialogContainer.done",function(e){return t._onAnimationDone(e)}),2&e&&(al("id",t._id),is("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),ol("@dialogContainer",t._state))},features:[jo],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&os(0,xD,0,0,"ng-template",0)},directives:[BO],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;box-sizing:content-box;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:[ED.dialogContainer]}}),SD),DD=fi(PD),MD=0,ID=function(){function e(t,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-"+MD++;b(this,e),this._overlayRef=t,this._containerInstance=n,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new j,this._afterClosed=new j,this._beforeClosed=new j,this._state=0,n._id=r,n._animationStateChanged.pipe(jm(function(e){return"opened"===e.state}),Qg(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),n._animationStateChanged.pipe(jm(function(e){return"closed"===e.state}),Qg(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),i._finishDialogClose()}),t.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()}),t.keydownEvents().pipe(jm(function(e){return 27===e.keyCode&&!i.disableClose&&!Zk(e)})).subscribe(function(e){e.preventDefault(),RD(i,"keyboard")}),t.backdropClick().subscribe(function(){i.disableClose?i._containerInstance._recaptureFocus():RD(i,"mouse")})}return w(e,[{key:"close",value:function(e){var t=this;this._result=e,this._containerInstance._animationStateChanged.pipe(jm(function(e){return"closing"===e.state}),Qg(1)).subscribe(function(n){t._beforeClosed.next(e),t._beforeClosed.complete(),t._overlayRef.detachBackdrop(),t._closeFallbackTimeout=setTimeout(function(){return t._finishDialogClose()},n.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(e){var t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:e,height:t}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(e){return this._overlayRef.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this._overlayRef.removePanelClass(e),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),e}();function RD(e,t,n){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=t),e.close(n)}var LD,FD,ND,VD,BD,HD,zD=new _i("MatDialogData"),GD=new _i("mat-dialog-default-options"),jD=new _i("mat-dialog-scroll-strategy"),UD={provide:jD,deps:[SE],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},WD=((HD=function(){function e(t,n,i,r,a,o,s,l,u){var c=this;b(this,e),this._overlay=t,this._injector=n,this._defaultOptions=i,this._parentDialog=r,this._overlayContainer=a,this._dialogRefConstructor=s,this._dialogContainerType=l,this._dialogDataToken=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new j,this._afterOpenedAtThisLevel=new j,this._ariaHiddenElements=new Map,this.afterAllClosed=rO(function(){return c.openDialogs.length?c._getAfterAllClosed():c._getAfterAllClosed().pipe(Rp(void 0))}),this._scrollStrategy=o}return w(e,[{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:"_getAfterAllClosed",value:function(){var e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(e,t){var n=this;(t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new OD)).id&&this.getDialogById(t.id);var i=this._createOverlay(t),r=this._attachDialogContainer(i,t),a=this._attachDialogContent(e,r,i,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.afterClosed().subscribe(function(){return n._removeOpenDialog(a)}),this.afterOpened.next(a),r._initializeWithAttachedContent(),a}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(e){return this.openDialogs.find(function(t){return t.id===e})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(e){var t=this._getOverlayConfig(e);return this._overlay.create(t)}},{key:"_getOverlayConfig",value:function(e){var t=new nE({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}},{key:"_attachDialogContainer",value:function(e,t){var n=zo.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:OD,useValue:t}]}),i=new IO(this._dialogContainerType,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(i).instance}},{key:"_attachDialogContent",value:function(e,t,n,i){var r=new this._dialogRefConstructor(n,t,i.id);if(e instanceof au)t.attachTemplatePortal(new RO(e,null,{$implicit:i.data,dialogRef:r}));else{var a=this._createInjector(i,r,t),o=t.attachComponentPortal(new IO(e,i.viewContainerRef,a));r.componentInstance=o.instance}return r.updateSize(i.width,i.height).updatePosition(i.position),r}},{key:"_createInjector",value:function(e,t,n){var i=e&&e.viewContainerRef&&e.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return!e.direction||i&&i.get(Iy,null)||r.push({provide:Iy,useValue:{value:e.direction,change:fp()}}),zo.create({parent:i||this._injector,providers:r})}},{key:"_removeOpenDialog",value:function(e){var t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var t=e.parentElement.children,n=t.length-1;n>-1;n--){var i=t[n];i===e||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(e){for(var t=e.length;t--;)e[t].close()}}]),e}()).\u0275fac=function(e){return new(e||HD)(ls(SE),ls(zo),ls(void 0),ls(void 0),ls(uE),ls(void 0),ls(wi),ls(wi),ls(_i))},HD.\u0275dir=bt({type:HD}),HD),qD=((BD=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o,s,l){return b(this,n),t.call(this,e,i,a,s,l,o,ID,PD,zD)}return n}(WD)).\u0275fac=function(e){return new(e||BD)(Ni(SE),Ni(zo),Ni(Od,8),Ni(GD,8),Ni(jD),Ni(BD,12),Ni(uE))},BD.\u0275prov=Le({token:BD,factory:BD.\u0275fac}),BD),YD=0,QD=((VD=function(){function e(t,n,i){b(this,e),this.dialogRef=t,this._elementRef=n,this._dialog=i,this.type="button"}return w(e,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=ZD(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(e){var t=e._matDialogClose||e._matDialogCloseResult;t&&(this.dialogResult=t.currentValue)}},{key:"_onButtonClick",value:function(e){RD(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}}]),e}()).\u0275fac=function(e){return new(e||VD)(ls(ID,8),ls(Ol),ls(qD))},VD.\u0275dir=bt({type:VD,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,t){1&e&&ks("click",function(e){return t._onButtonClick(e)}),2&e&&is("aria-label",t.ariaLabel||null)("type",t.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[It]}),VD),XD=((ND=function(){function e(t,n,i){b(this,e),this._dialogRef=t,this._elementRef=n,this._dialog=i,this.id="mat-dialog-title-"+YD++}return w(e,[{key:"ngOnInit",value:function(){var e=this;this._dialogRef||(this._dialogRef=ZD(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var t=e._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=e.id)})}}]),e}()).\u0275fac=function(e){return new(e||ND)(ls(ID,8),ls(Ol),ls(qD))},ND.\u0275dir=bt({type:ND,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&al("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),ND),$D=((FD=function e(){b(this,e)}).\u0275fac=function(e){return new(e||FD)},FD.\u0275dir=bt({type:FD,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),FD),KD=((LD=function e(){b(this,e)}).\u0275fac=function(e){return new(e||LD)},LD.\u0275dir=bt({type:LD,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),LD);function ZD(e,t){for(var n=e.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?t.find(function(e){return e.id===n.id}):null}var JD,eM,tM,nM,iM,rM,aM,oM=((JD=function e(){b(this,e)}).\u0275fac=function(e){return new(e||JD)},JD.\u0275mod=yt({type:JD}),JD.\u0275inj=Ne({providers:[qD,UD],imports:[[DE,HO,QS],QS]}),JD),sM=cw({passive:!0}),lM=((iM=function(){function e(t,n){b(this,e),this._platform=t,this._ngZone=n,this._monitoredElements=new Map}return w(e,[{key:"monitor",value:function(e){var t=this;if(!this._platform.isBrowser)return dp;var n=Jv(e),i=this._monitoredElements.get(n);if(i)return i.subject;var r=new j,a="cdk-text-field-autofilled",o=function(e){"cdk-text-field-autofill-start"!==e.animationName||n.classList.contains(a)?"cdk-text-field-autofill-end"===e.animationName&&n.classList.contains(a)&&(n.classList.remove(a),t._ngZone.run(function(){return r.next({target:e.target,isAutofilled:!1})})):(n.classList.add(a),t._ngZone.run(function(){return r.next({target:e.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){n.addEventListener("animationstart",o,sM),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:r,unlisten:function(){n.removeEventListener("animationstart",o,sM)}}),r}},{key:"stopMonitoring",value:function(e){var t=Jv(e),n=this._monitoredElements.get(t);n&&(n.unlisten(),n.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}},{key:"ngOnDestroy",value:function(){var e=this;this._monitoredElements.forEach(function(t,n){return e.stopMonitoring(n)})}}]),e}()).\u0275fac=function(e){return new(e||iM)(Ni(ow),Ni(Oc))},iM.\u0275prov=Le({factory:function(){return new iM(Ni(ow),Ni(Oc))},token:iM,providedIn:"root"}),iM),uM=((nM=function(){function e(t,n,i,r){b(this,e),this._elementRef=t,this._platform=n,this._ngZone=i,this._destroyed=new j,this._enabled=!0,this._previousMinRows=-1,this._document=r,this._textareaElement=this._elementRef.nativeElement,this._measuringClass=n.FIREFOX?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring"}return w(e,[{key:"minRows",get:function(){return this._minRows},set:function(e){this._minRows=Xv(e),this._setMinHeight()}},{key:"maxRows",get:function(){return this._maxRows},set:function(e){this._maxRows=Xv(e),this._setMaxHeight()}},{key:"enabled",get:function(){return this._enabled},set:function(e){e=Qv(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}},{key:"_setMinHeight",value:function(){var e=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.minHeight=e)}},{key:"_setMaxHeight",value:function(){var e=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.maxHeight=e)}},{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(function(){zg(e._getWindow(),"resize").pipe(lO(16),Pp(e._destroyed)).subscribe(function(){return e.resizeToFitContent(!0)})}))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_cacheTextareaLineHeight",value:function(){if(!this._cachedLineHeight){var e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,this._textareaElement.parentNode.removeChild(e),this._setMinHeight(),this._setMaxHeight()}}},{key:"ngDoCheck",value:function(){this._platform.isBrowser&&this.resizeToFitContent()}},{key:"resizeToFitContent",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._enabled&&(this._cacheTextareaLineHeight(),this._cachedLineHeight)){var n=this._elementRef.nativeElement,i=n.value;if(t||this._minRows!==this._previousMinRows||i!==this._previousValue){var r=n.placeholder;n.classList.add(this._measuringClass),n.placeholder="",n.style.height=n.scrollHeight-4+"px",n.classList.remove(this._measuringClass),n.placeholder=r,this._ngZone.runOutsideAngular(function(){"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(function(){return e._scrollToCaretPosition(n)}):setTimeout(function(){return e._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:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_scrollToCaretPosition",value:function(e){var t=e.selectionStart,n=e.selectionEnd,i=this._getDocument();this._destroyed.isStopped||i.activeElement!==e||e.setSelectionRange(t,n)}}]),e}()).\u0275fac=function(e){return new(e||nM)(ls(Ol),ls(ow),ls(Oc),ls(sd,8))},nM.\u0275dir=bt({type:nM,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&ks("input",function(){return t._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"]},exportAs:["cdkTextareaAutosize"]}),nM),cM=((tM=function e(){b(this,e)}).\u0275fac=function(e){return new(e||tM)},tM.\u0275mod=yt({type:tM}),tM.\u0275inj=Ne({imports:[[sw]]}),tM),dM=((eM=function(e){f(n,e);var t=m(n);function n(){return b(this,n),t.apply(this,arguments)}return w(n,[{key:"matAutosizeMinRows",get:function(){return this.minRows},set:function(e){this.minRows=e}},{key:"matAutosizeMaxRows",get:function(){return this.maxRows},set:function(e){this.maxRows=e}},{key:"matAutosize",get:function(){return this.enabled},set:function(e){this.enabled=e}},{key:"matTextareaAutosize",get:function(){return this.enabled},set:function(e){this.enabled=e}}]),n}(uM)).\u0275fac=function(e){return hM(e||eM)},eM.\u0275dir=bt({type:eM,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:[jo]}),eM),hM=fi(dM),fM=new _i("MAT_INPUT_VALUE_ACCESSOR"),pM=["button","checkbox","file","hidden","image","radio","range","reset","submit"],mM=0,gM=JS(function e(t,n,i,r){b(this,e),this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}),vM=((aM=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o,s,l,u,c,d){var h;b(this,n),(h=t.call(this,s,a,o,r))._elementRef=e,h._platform=i,h.ngControl=r,h._autofillMonitor=u,h._formField=d,h._uid="mat-input-"+mM++,h.focused=!1,h.stateChanges=new j,h.controlType="mat-input",h.autofilled=!1,h._disabled=!1,h._required=!1,h._type="text",h._readonly=!1,h._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(e){return uw().has(e)});var f=h._elementRef.nativeElement,p=f.nodeName.toLowerCase();return h._inputValueAccessor=l||f,h._previousNativeValue=h.value,h.id=h.id,i.IOS&&c.runOutsideAngular(function(){e.nativeElement.addEventListener("keyup",function(e){var t=e.target;t.value||t.selectionStart||t.selectionEnd||(t.setSelectionRange(1,1),t.setSelectionRange(0,0))})}),h._isServer=!h._platform.isBrowser,h._isNativeSelect="select"===p,h._isTextarea="textarea"===p,h._isNativeSelect&&(h.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select"),h}return w(n,[{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(e){this._disabled=Qv(e),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid}},{key:"required",get:function(){return this._required},set:function(e){this._required=Qv(e)}},{key:"type",get:function(){return this._type},set:function(e){this._type=e||"text",this._validateType(),!this._isTextarea&&uw().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(e){this._readonly=Qv(e)}},{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(t){e.autofilled=t.isAutofilled,e.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(),this._dirtyCheckPlaceholder()}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_focusChanged",value:function(e){e===this.focused||this.readonly&&e||(this.focused=e,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_dirtyCheckPlaceholder",value:function(){var e,t,n=(null===(t=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===t?void 0:t.call(e))?null:this.placeholder;if(n!==this._previousPlaceholder){var i=this._elementRef.nativeElement;this._previousPlaceholder=n,n?i.setAttribute("placeholder",n):i.removeAttribute("placeholder")}}},{key:"_dirtyCheckNativeValue",value:function(){var e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}},{key:"_validateType",value:function(){pM.indexOf(this._type)}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var e=this._elementRef.nativeElement.validity;return e&&e.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}},{key:"setDescribedByIds",value:function(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}}]),n}(gM)).\u0275fac=function(e){return new(e||aM)(ls(Ol),ls(ow),ls($b,10),ls(Rk,8),ls(qk,8),ls(_A),ls(fM,10),ls(lM),ls(Oc),ls(kT,8))},aM.\u0275dir=bt({type:aM,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(e,t){1&e&&ks("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(al("disabled",t.disabled)("required",t.required),is("id",t.id)("data-placeholder",t.placeholder)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.errorState&&!t.empty)("aria-required",t.required),Hs("mat-input-server",t._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[bl([{provide:lT,useExisting:aM}]),jo,It]}),aM),yM=((rM=function e(){b(this,e)}).\u0275fac=function(e){return new(e||rM)},rM.\u0275mod=yt({type:rM}),rM.\u0275inj=Ne({providers:[_A],imports:[[cM,CT,QS],cM,CT]}),rM),_M=["mat-calendar-body",""];function bM(e,t){if(1&e&&(ds(0,"tr",2),ds(1,"td",3),Js(2),hs(),hs()),2&e){var n=As();Oa(1),Bs("padding-top",n._cellPadding)("padding-bottom",n._cellPadding),is("colspan",n.numCols),Oa(1),tl(" ",n.label," ")}}function kM(e,t){if(1&e&&(ds(0,"td",7),Js(1),hs()),2&e){var n=As(2);Bs("padding-top",n._cellPadding)("padding-bottom",n._cellPadding),is("colspan",n._firstRowOffset),Oa(1),tl(" ",n._firstRowOffset>=n.labelMinRequiredCells?n.label:""," ")}}function wM(e,t){if(1&e){var n=vs();ds(0,"td",8),ks("click",function(e){rn(n);var i=t.$implicit;return As(2)._cellClicked(i,e)}),ds(1,"div",9),Js(2),hs(),fs(3,"div",10),hs()}if(2&e){var i=t.$implicit,r=t.index,a=As().index,o=As();Bs("width",o._cellWidth)("padding-top",o._cellPadding)("padding-bottom",o._cellPadding),Hs("mat-calendar-body-disabled",!i.enabled)("mat-calendar-body-active",o._isActiveCell(a,r))("mat-calendar-body-range-start",o._isRangeStart(i.compareValue))("mat-calendar-body-range-end",o._isRangeEnd(i.compareValue))("mat-calendar-body-in-range",o._isInRange(i.compareValue))("mat-calendar-body-comparison-bridge-start",o._isComparisonBridgeStart(i.compareValue,a,r))("mat-calendar-body-comparison-bridge-end",o._isComparisonBridgeEnd(i.compareValue,a,r))("mat-calendar-body-comparison-start",o._isComparisonStart(i.compareValue))("mat-calendar-body-comparison-end",o._isComparisonEnd(i.compareValue))("mat-calendar-body-in-comparison-range",o._isInComparisonRange(i.compareValue))("mat-calendar-body-preview-start",o._isPreviewStart(i.compareValue))("mat-calendar-body-preview-end",o._isPreviewEnd(i.compareValue))("mat-calendar-body-in-preview",o._isInPreview(i.compareValue)),us("ngClass",i.cssClasses)("tabindex",o._isActiveCell(a,r)?0:-1),is("data-mat-row",a)("data-mat-col",r)("aria-label",i.ariaLabel)("aria-disabled",!i.enabled||null)("aria-selected",o._isSelected(i.compareValue)),Oa(1),Hs("mat-calendar-body-selected",o._isSelected(i.compareValue))("mat-calendar-body-comparison-identical",o._isComparisonIdentical(i.compareValue))("mat-calendar-body-today",o.todayValue===i.compareValue),Oa(1),tl(" ",i.displayValue," ")}}function CM(e,t){if(1&e&&(ds(0,"tr",4),os(1,kM,2,6,"td",5),os(2,wM,4,46,"td",6),hs()),2&e){var n=t.$implicit,i=t.index,r=As();Oa(1),us("ngIf",0===i&&r._firstRowOffset),Oa(1),us("ngForOf",n)}}function xM(e,t){if(1&e&&(ds(0,"th",5),Js(1),hs()),2&e){var n=t.$implicit;is("aria-label",n.long),Oa(1),el(n.narrow)}}var SM=["*"];function AM(e,t){}function OM(e,t){if(1&e){var n=vs();ds(0,"mat-month-view",5),ks("activeDateChange",function(e){return rn(n),As().activeDate=e})("_userSelection",function(e){return rn(n),As()._dateSelected(e)}),hs()}if(2&e){var i=As();us("activeDate",i.activeDate)("selected",i.selected)("dateFilter",i.dateFilter)("maxDate",i.maxDate)("minDate",i.minDate)("dateClass",i.dateClass)("comparisonStart",i.comparisonStart)("comparisonEnd",i.comparisonEnd)}}function EM(e,t){if(1&e){var n=vs();ds(0,"mat-year-view",6),ks("activeDateChange",function(e){return rn(n),As().activeDate=e})("monthSelected",function(e){return rn(n),As()._monthSelectedInYearView(e)})("selectedChange",function(e){return rn(n),As()._goToDateInView(e,"month")}),hs()}if(2&e){var i=As();us("activeDate",i.activeDate)("selected",i.selected)("dateFilter",i.dateFilter)("maxDate",i.maxDate)("minDate",i.minDate)("dateClass",i.dateClass)}}function TM(e,t){if(1&e){var n=vs();ds(0,"mat-multi-year-view",7),ks("activeDateChange",function(e){return rn(n),As().activeDate=e})("yearSelected",function(e){return rn(n),As()._yearSelectedInMultiYearView(e)})("selectedChange",function(e){return rn(n),As()._goToDateInView(e,"year")}),hs()}if(2&e){var i=As();us("activeDate",i.activeDate)("selected",i.selected)("dateFilter",i.dateFilter)("maxDate",i.maxDate)("minDate",i.minDate)("dateClass",i.dateClass)}}function PM(e,t){}var DM=["button"];function MM(e,t){1&e&&(Dn(),ds(0,"svg",3),fs(1,"path",4),hs())}var IM,RM,LM=[[["","matDatepickerToggleIcon",""]]],FM=["[matDatepickerToggleIcon]"],NM=((IM=function(){function e(){b(this,e),this.changes=new j,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 20 years",this.nextMultiYearLabel="Next 20 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}return w(e,[{key:"formatYearRange",value:function(e,t){return"".concat(e," \u2013 ").concat(t)}}]),e}()).\u0275fac=function(e){return new(e||IM)},IM.\u0275prov=Le({factory:function(){return new IM},token:IM,providedIn:"root"}),IM),VM=function e(t,n,i,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t,s=arguments.length>6?arguments[6]:void 0;b(this,e),this.value=t,this.displayValue=n,this.ariaLabel=i,this.enabled=r,this.cssClasses=a,this.compareValue=o,this.rawValue=s},BM=((RM=function(){function e(t,n){var i=this;b(this,e),this._elementRef=t,this._ngZone=n,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new Vu,this.previewChange=new Vu,this._enterHandler=function(e){if(i._skipNextFocus&&"focus"===e.type)i._skipNextFocus=!1;else if(e.target&&i.isRange){var t=i._getCellFromElement(e.target);t&&i._ngZone.run(function(){return i.previewChange.emit({value:t.enabled?t:null,event:e})})}},this._leaveHandler=function(e){null!==i.previewEnd&&i.isRange&&e.target&&HM(e.target)&&i._ngZone.run(function(){return i.previewChange.emit({value:null,event:e})})},n.runOutsideAngular(function(){var e=t.nativeElement;e.addEventListener("mouseenter",i._enterHandler,!0),e.addEventListener("focus",i._enterHandler,!0),e.addEventListener("mouseleave",i._leaveHandler,!0),e.addEventListener("blur",i._leaveHandler,!0)})}return w(e,[{key:"_cellClicked",value:function(e,t){e.enabled&&this.selectedValueChange.emit({value:e.value,event:t})}},{key:"_isSelected",value:function(e){return this.startValue===e||this.endValue===e}},{key:"ngOnChanges",value:function(e){var t=e.numCols,n=this.rows,i=this.numCols;(e.rows||t)&&(this._firstRowOffset=n&&n.length&&n[0].length?i-n[0].length:0),(e.cellAspectRatio||t||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/i+"%"),!t&&this._cellWidth||(this._cellWidth=100/i+"%")}},{key:"ngOnDestroy",value:function(){var e=this._elementRef.nativeElement;e.removeEventListener("mouseenter",this._enterHandler,!0),e.removeEventListener("focus",this._enterHandler,!0),e.removeEventListener("mouseleave",this._leaveHandler,!0),e.removeEventListener("blur",this._leaveHandler,!0)}},{key:"_isActiveCell",value:function(e,t){var n=e*this.numCols+t;return e&&(n-=this._firstRowOffset),n==this.activeCell}},{key:"_focusActiveCell",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.pipe(Qg(1)).subscribe(function(){var n=e._elementRef.nativeElement.querySelector(".mat-calendar-body-active");n&&(t||(e._skipNextFocus=!0),n.focus())})})}},{key:"_isRangeStart",value:function(e){return zM(e,this.startValue,this.endValue)}},{key:"_isRangeEnd",value:function(e){return GM(e,this.startValue,this.endValue)}},{key:"_isInRange",value:function(e){return jM(e,this.startValue,this.endValue,this.isRange)}},{key:"_isComparisonStart",value:function(e){return zM(e,this.comparisonStart,this.comparisonEnd)}},{key:"_isComparisonBridgeStart",value:function(e,t,n){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;var i=this.rows[t][n-1];if(!i){var r=this.rows[t-1];i=r&&r[r.length-1]}return i&&!this._isRangeEnd(i.compareValue)}},{key:"_isComparisonBridgeEnd",value:function(e,t,n){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;var i=this.rows[t][n+1];if(!i){var r=this.rows[t+1];i=r&&r[0]}return i&&!this._isRangeStart(i.compareValue)}},{key:"_isComparisonEnd",value:function(e){return GM(e,this.comparisonStart,this.comparisonEnd)}},{key:"_isInComparisonRange",value:function(e){return jM(e,this.comparisonStart,this.comparisonEnd,this.isRange)}},{key:"_isComparisonIdentical",value:function(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}},{key:"_isPreviewStart",value:function(e){return zM(e,this.previewStart,this.previewEnd)}},{key:"_isPreviewEnd",value:function(e){return GM(e,this.previewStart,this.previewEnd)}},{key:"_isInPreview",value:function(e){return jM(e,this.previewStart,this.previewEnd,this.isRange)}},{key:"_getCellFromElement",value:function(e){var t;if(HM(e)?t=e:HM(e.parentNode)&&(t=e.parentNode),t){var n=t.getAttribute("data-mat-row"),i=t.getAttribute("data-mat-col");if(n&&i)return this.rows[parseInt(n)][parseInt(i)]}return null}}]),e}()).\u0275fac=function(e){return new(e||RM)(ls(Ol),ls(Oc))},RM.\u0275cmp=pt({type:RM,selectors:[["","mat-calendar-body",""]],hostAttrs:["role","grid","aria-readonly","true",1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",previewStart:"previewStart",previewEnd:"previewEnd",label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[It],attrs:_M,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(e,t){1&e&&(os(0,bM,3,6,"tr",0),os(1,CM,3,2,"tr",1)),2&e&&(us("ngIf",t._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n'],encapsulation:2,changeDetection:0}),RM);function HM(e){return"TD"===e.nodeName}function zM(e,t,n){return null!==n&&t!==n&&e=t&&e===n}function jM(e,t,n,i){return i&&null!==t&&null!==n&&t!==n&&e>=t&&e<=n}var UM,WM,qM,YM,QM=function e(t,n){b(this,e),this.start=t,this.end=n},XM=((WM=function(){function e(t,n){b(this,e),this.selection=t,this._adapter=n,this._selectionChanged=new j,this.selectionChanged=this._selectionChanged,this.selection=t}return w(e,[{key:"updateSelection",value:function(e,t){this.selection=e,this._selectionChanged.next({selection:e,source:t})}},{key:"ngOnDestroy",value:function(){this._selectionChanged.complete()}},{key:"_isValidDateInstance",value:function(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}},{key:"clone",value:function(){return null}}]),e}()).\u0275fac=function(e){return new(e||WM)(Ni(void 0),Ni(iA))},WM.\u0275prov=Le({token:WM,factory:WM.\u0275fac}),WM),$M=((UM=function(e){f(n,e);var t=m(n);function n(e){return b(this,n),t.call(this,null,e)}return w(n,[{key:"add",value:function(e){h(_(n.prototype),"updateSelection",this).call(this,e,this)}},{key:"isValid",value:function(){return null!=this.selection&&this._isValidDateInstance(this.selection)}},{key:"isComplete",value:function(){return null!=this.selection}},{key:"clone",value:function(){var e=new n(this._adapter);return e.updateSelection(this.selection,this),e}}]),n}(XM)).\u0275fac=function(e){return new(e||UM)(Ni(iA))},UM.\u0275prov=Le({token:UM,factory:UM.\u0275fac}),UM),KM={provide:XM,deps:[[new Ui,new Wi,XM],iA],useFactory:function(e,t){return e||new $M(t)}},ZM=new _i("MAT_DATE_RANGE_SELECTION_STRATEGY"),JM=((YM=function(){function e(t,n,i,r,a){b(this,e),this._changeDetectorRef=t,this._dateFormats=n,this._dateAdapter=i,this._dir=r,this._rangeStrategy=a,this._rerenderSubscription=O.EMPTY,this.selectedChange=new Vu,this._userSelection=new Vu,this.activeDateChange=new Vu,this._activeDate=this._dateAdapter.today()}return w(e,[{key:"activeDate",get:function(){return this._activeDate},set:function(e){var t=this._activeDate,n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),this._hasSameMonthAndYear(t,this._activeDate)||this._init()}},{key:"selected",get:function(){return this._selected},set:function(e){this._selected=e instanceof QM?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}},{key:"minDate",get:function(){return this._minDate},set:function(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}},{key:"maxDate",get:function(){return this._maxDate},set:function(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}},{key:"ngAfterContentInit",value:function(){var e=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Rp(null)).subscribe(function(){return e._init()})}},{key:"ngOnChanges",value:function(e){var t=e.comparisonStart||e.comparisonEnd;t&&!t.firstChange&&this._setRanges(this.selected)}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_dateSelected",value:function(e){var t,n,i=e.value,r=this._dateAdapter.getYear(this.activeDate),a=this._dateAdapter.getMonth(this.activeDate),o=this._dateAdapter.createDate(r,a,i);this._selected instanceof QM?(t=this._getDateInCurrentMonth(this._selected.start),n=this._getDateInCurrentMonth(this._selected.end)):t=n=this._getDateInCurrentMonth(this._selected),t===i&&n===i||this.selectedChange.emit(o),this._userSelection.emit({value:o,event:e.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}},{key:"_handleCalendarBodyKeydown",value:function(e){var t=this._activeDate,n=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),e.preventDefault()));case 27:return void(null==this._previewEnd||Zk(e)||(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e}),e.preventDefault(),e.stopPropagation()));default:return}this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()}},{key:"_init",value:function(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();var e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}},{key:"_focusActiveCell",value:function(e){this._matCalendarBody._focusActiveCell(e)}},{key:"_previewChanged",value:function(e){var t=e.event,n=e.value;if(this._rangeStrategy){var i=this._rangeStrategy.createPreview(n?n.rawValue:null,this.selected,t);this._previewStart=this._getCellCompareValue(i.start),this._previewEnd=this._getCellCompareValue(i.end),this._changeDetectorRef.detectChanges()}}},{key:"_initWeekdays",value:function(){var e=this._dateAdapter.getFirstDayOfWeek(),t=this._dateAdapter.getDayOfWeekNames("narrow"),n=this._dateAdapter.getDayOfWeekNames("long").map(function(e,n){return{long:e,narrow:t[n]}});this._weekdays=n.slice(e).concat(n.slice(0,e))}},{key:"_createWeekCells",value:function(){var e=this._dateAdapter.getNumDaysInMonth(this.activeDate),t=this._dateAdapter.getDateNames();this._weeks=[[]];for(var n=0,i=this._firstWeekOffset;n=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}},{key:"_getDateInCurrentMonth",value:function(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}},{key:"_hasSameMonthAndYear",value:function(e,t){return!(!e||!t||this._dateAdapter.getMonth(e)!=this._dateAdapter.getMonth(t)||this._dateAdapter.getYear(e)!=this._dateAdapter.getYear(t))}},{key:"_getCellCompareValue",value:function(e){if(e){var t=this._dateAdapter.getYear(e),n=this._dateAdapter.getMonth(e),i=this._dateAdapter.getDate(e);return new Date(t,n,i).getTime()}return null}},{key:"_isRtl",value:function(){return this._dir&&"rtl"===this._dir.value}},{key:"_setRanges",value:function(e){e instanceof QM?(this._rangeStart=this._getCellCompareValue(e.start),this._rangeEnd=this._getCellCompareValue(e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}}]),e}()).\u0275fac=function(e){return new(e||YM)(ls(Jl),ls(rA,8),ls(iA,8),ls(Iy,8),ls(ZM,8))},YM.\u0275cmp=pt({type:YM,selectors:[["mat-month-view"]],viewQuery:function(e,t){var n;1&e&&Ku(BM,1),2&e&&$u(n=Ju())&&(t._matCalendarBody=n.first)},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[It],decls:7,vars:13,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["colspan","7","aria-hidden","true",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keydown"],["scope","col"]],template:function(e,t){1&e&&(ds(0,"table",0),ds(1,"thead",1),ds(2,"tr"),os(3,xM,2,2,"th",2),hs(),ds(4,"tr"),fs(5,"th",3),hs(),hs(),ds(6,"tbody",4),ks("selectedValueChange",function(e){return t._dateSelected(e)})("previewChange",function(e){return t._previewChanged(e)})("keydown",function(e){return t._handleCalendarBodyKeydown(e)}),hs(),hs()),2&e&&(Oa(3),us("ngForOf",t._weekdays),Oa(3),us("label",t._monthLabel)("rows",t._weeks)("todayValue",t._todayDate)("startValue",t._rangeStart)("endValue",t._rangeEnd)("comparisonStart",t._comparisonRangeStart)("comparisonEnd",t._comparisonRangeEnd)("previewStart",t._previewStart)("previewEnd",t._previewEnd)("isRange",t._isRange)("labelMinRequiredCells",3)("activeCell",t._dateAdapter.getDate(t.activeDate)-1))},directives:[bh,BM],encapsulation:2,changeDetection:0}),YM),eI=((qM=function(){function e(t,n,i){b(this,e),this._changeDetectorRef=t,this._dateAdapter=n,this._dir=i,this._rerenderSubscription=O.EMPTY,this.selectedChange=new Vu,this.yearSelected=new Vu,this.activeDateChange=new Vu,this._activeDate=this._dateAdapter.today()}return w(e,[{key:"activeDate",get:function(){return this._activeDate},set:function(e){var t=this._activeDate,n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),tI(this._dateAdapter,t,this._activeDate,this.minDate,this.maxDate)||this._init()}},{key:"selected",get:function(){return this._selected},set:function(e){this._selected=e instanceof QM?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}},{key:"minDate",get:function(){return this._minDate},set:function(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}},{key:"maxDate",get:function(){return this._maxDate},set:function(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}},{key:"ngAfterContentInit",value:function(){var e=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Rp(null)).subscribe(function(){return e._init()})}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_init",value:function(){var e=this;this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());var t=this._dateAdapter.getYear(this._activeDate)-nI(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(var n=0,i=[];n<24;n++)i.push(t+n),4==i.length&&(this._years.push(i.map(function(t){return e._createCellForYear(t)})),i=[]);this._changeDetectorRef.markForCheck()}},{key:"_yearSelected",value:function(e){var t=e.value;this.yearSelected.emit(this._dateAdapter.createDate(t,0,1));var n=this._dateAdapter.getMonth(this.activeDate),i=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(t,n,1));this.selectedChange.emit(this._dateAdapter.createDate(t,n,Math.min(this._dateAdapter.getDate(this.activeDate),i)))}},{key:"_handleCalendarBodyKeydown",value:function(e){var t=this._activeDate,n=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-nI(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-nI(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?240:24);break;case 13:case 32:this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e});break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()}},{key:"_getActiveCell",value:function(){return nI(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}},{key:"_focusActiveCell",value:function(){this._matCalendarBody._focusActiveCell()}},{key:"_createCellForYear",value:function(e){var t=this._dateAdapter.createDate(e,0,1),n=this._dateAdapter.getYearName(t),i=this.dateClass?this.dateClass(t,"multi-year"):void 0;return new VM(e,n,n,this._shouldEnableYear(e),i)}},{key:"_shouldEnableYear",value:function(e){if(null==e||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&en||e===n&&t>i}return!1}},{key:"_isYearAndMonthBeforeMinDate",value:function(e,t){if(this.minDate){var n=this._dateAdapter.getYear(this.minDate),i=this._dateAdapter.getMonth(this.minDate);return e enter",cC("120ms cubic-bezier(0, 0, 0.2, 1)",fC({opacity:1,transform:"scale(1, 1)"}))),gC("* => void",cC("100ms linear",fC({opacity:0})))]),fadeInCalendar:uC("fadeInCalendar",[pC("void",fC({opacity:0})),pC("enter",fC({opacity:1})),gC("void => *",cC("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},wI=0,CI=new _i("mat-datepicker-scroll-strategy"),xI={provide:CI,deps:[SE],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},SI=$S(function e(t){b(this,e),this._elementRef=t}),AI=((uI=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o,s){var l;return b(this,n),(l=t.call(this,e))._changeDetectorRef=i,l._globalModel=r,l._dateAdapter=a,l._rangeSelectionStrategy=o,l._subscriptions=new O,l._animationState="enter",l._animationDone=new j,l._actionsPortal=null,l._closeButtonText=(null==s?void 0:s.closeCalendarLabel)||"Close calendar",l}return w(n,[{key:"ngOnInit",value:function(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel}},{key:"ngAfterViewInit",value:function(){var e=this;this._subscriptions.add(this.datepicker.stateChanges.subscribe(function(){e._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}},{key:"ngOnDestroy",value:function(){this._subscriptions.unsubscribe(),this._animationDone.complete()}},{key:"_handleUserSelection",value:function(e){var t=this._model.selection,n=e.value,i=t instanceof QM;if(i&&this._rangeSelectionStrategy){var r=this._rangeSelectionStrategy.selectionFinished(n,t,e.event);this._model.updateSelection(r,this)}else!n||!i&&this._dateAdapter.sameDate(n,t)||this._model.add(n);this._model&&!this._model.isComplete()||this._actionsPortal||this.datepicker.close()}},{key:"_startExitAnimation",value:function(){this._animationState="void",this._changeDetectorRef.markForCheck()}},{key:"_getSelected",value:function(){return this._model.selection}},{key:"_applyPendingSelection",value:function(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}]),n}(SI)).\u0275fac=function(e){return new(e||uI)(ls(Ol),ls(Jl),ls(XM),ls(iA),ls(ZM,8),ls(NM))},uI.\u0275cmp=pt({type:uI,selectors:[["mat-datepicker-content"]],viewQuery:function(e,t){var n;1&e&&Ku(bI,1),2&e&&$u(n=Ju())&&(t._calendar=n.first)},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(e,t){1&e&&ws("@transformPanel.done",function(){return t._animationDone.next()}),2&e&&(ol("@transformPanel",t._animationState),Hs("mat-datepicker-content-touch",t.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[jo],decls:5,vars:20,consts:[["cdkTrapFocus","",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"mat-calendar",1),ks("yearSelected",function(e){return t.datepicker._selectYear(e)})("monthSelected",function(e){return t.datepicker._selectMonth(e)})("viewChanged",function(e){return t.datepicker._viewChanged(e)})("_userSelection",function(e){return t._handleUserSelection(e)}),hs(),os(2,PM,0,0,"ng-template",2),ds(3,"button",3),ks("focus",function(){return t._closeButtonFocused=!0})("blur",function(){return t._closeButtonFocused=!1})("click",function(){return t.datepicker.close()}),Js(4),hs(),hs()),2&e&&(Hs("mat-datepicker-content-container-with-actions",t._actionsPortal),Oa(1),us("id",t.datepicker.id)("ngClass",t.datepicker.panelClass)("startAt",t.datepicker.startAt)("startView",t.datepicker.startView)("minDate",t.datepicker._getMinDate())("maxDate",t.datepicker._getMaxDate())("dateFilter",t.datepicker._getDateFilter())("headerComponent",t.datepicker.calendarHeaderComponent)("selected",t._getSelected())("dateClass",t.datepicker.dateClass)("comparisonStart",t.comparisonStart)("comparisonEnd",t.comparisonEnd)("@fadeInCalendar","enter"),Oa(1),us("cdkPortalOutlet",t._actionsPortal),Oa(1),Hs("cdk-visually-hidden",!t._closeButtonFocused),us("color",t.color||"primary"),Oa(1),el(t._closeButtonText))},directives:[zw,bI,yh,BO,kP],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;overflow:auto;margin:-24px}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],encapsulation:2,data:{animation:[kI.transformPanel,kI.fadeInCalendar]},changeDetection:0}),uI),OI=((lI=function(){function e(t,n,i,r,a,o,s,l,u){b(this,e),this._dialog=t,this._overlay=n,this._ngZone=i,this._viewContainerRef=r,this._dateAdapter=o,this._dir=s,this._document=l,this._model=u,this._inputStateChanges=O.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new Vu,this.monthSelected=new Vu,this.viewChanged=new Vu(!0),this.openedStream=new Vu,this.closedStream=new Vu,this._opened=!1,this.id="mat-datepicker-"+wI++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass="".concat(this.id,"-backdrop"),this.stateChanges=new j,this._scrollStrategy=a}return w(e,[{key:"startAt",get:function(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)},set:function(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}},{key:"color",get:function(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)},set:function(e){this._color=e}},{key:"touchUi",get:function(){return this._touchUi},set:function(e){this._touchUi=Qv(e)}},{key:"disabled",get:function(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled},set:function(e){var t=Qv(e);t!==this._disabled&&(this._disabled=t,this.stateChanges.next(void 0))}},{key:"restoreFocus",get:function(){return this._restoreFocus},set:function(e){this._restoreFocus=Qv(e)}},{key:"panelClass",get:function(){return this._panelClass},set:function(e){this._panelClass=ey(e)}},{key:"opened",get:function(){return this._opened},set:function(e){Qv(e)?this.open():this.close()}},{key:"_getMinDate",value:function(){return this.datepickerInput&&this.datepickerInput.min}},{key:"_getMaxDate",value:function(){return this.datepickerInput&&this.datepickerInput.max}},{key:"_getDateFilter",value:function(){return this.datepickerInput&&this.datepickerInput.dateFilter}},{key:"ngOnChanges",value:function(e){var t=e.xPosition||e.yPosition;t&&!t.firstChange&&this._popupRef&&(this._setConnectedPositions(this._popupRef.getConfig().positionStrategy),this.opened&&this._popupRef.updatePosition()),this.stateChanges.next(void 0)}},{key:"ngOnDestroy",value:function(){this._destroyPopup(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}},{key:"select",value:function(e){this._model.add(e)}},{key:"_selectYear",value:function(e){this.yearSelected.emit(e)}},{key:"_selectMonth",value:function(e){this.monthSelected.emit(e)}},{key:"_viewChanged",value:function(e){this.viewChanged.emit(e)}},{key:"registerInput",value:function(e){var t=this;return this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(function(){return t.stateChanges.next(void 0)}),this._model}},{key:"registerActions",value:function(e){this._actionsPortal=e}},{key:"removeActions",value:function(e){e===this._actionsPortal&&(this._actionsPortal=null)}},{key:"open",value:function(){this._opened||this.disabled||(this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this.touchUi?this._openAsDialog():this._openAsPopup(),this._opened=!0,this.openedStream.emit())}},{key:"close",value:function(){var e=this;if(this._opened){if(this._popupComponentRef&&this._popupRef){var t=this._popupComponentRef.instance;t._startExitAnimation(),t._animationDone.pipe(Qg(1)).subscribe(function(){return e._destroyPopup()})}this._dialogRef&&(this._dialogRef.close(),this._dialogRef=null);var n=function(){e._opened&&(e._opened=!1,e.closedStream.emit(),e._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(n)):n()}}},{key:"_applyPendingSelection",value:function(){var e,t,n=(null===(e=this._popupComponentRef)||void 0===e?void 0:e.instance)||(null===(t=this._dialogRef)||void 0===t?void 0:t.componentInstance);null==n||n._applyPendingSelection()}},{key:"_openAsDialog",value:function(){var e=this;this._dialogRef&&this._dialogRef.close(),this._dialogRef=this._dialog.open(AI,{direction:this._dir?this._dir.value:"ltr",viewContainerRef:this._viewContainerRef,panelClass:"mat-datepicker-dialog",hasBackdrop:!0,disableClose:!1,backdropClass:["cdk-overlay-dark-backdrop",this._backdropHarnessClass],width:"",height:"",minWidth:"",minHeight:"",maxWidth:"80vw",maxHeight:"",position:{},autoFocus:!1,restoreFocus:!1}),this._dialogRef.afterClosed().subscribe(function(){return e.close()}),this._forwardContentValues(this._dialogRef.componentInstance)}},{key:"_openAsPopup",value:function(){var e=this,t=new IO(AI,this._viewContainerRef);this._destroyPopup(),this._createPopup(),this._popupComponentRef=this._popupRef.attach(t),this._forwardContentValues(this._popupComponentRef.instance),this._ngZone.onStable.pipe(Qg(1)).subscribe(function(){e._popupRef.updatePosition()})}},{key:"_forwardContentValues",value:function(e){e.datepicker=this,e.color=this.color,e._actionsPortal=this._actionsPortal}},{key:"_createPopup",value:function(){var e=this,t=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition(),n=new nE({positionStrategy:this._setConnectedPositions(t),hasBackdrop:!0,backdropClass:["mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:this._scrollStrategy(),panelClass:"mat-datepicker-popup"});this._popupRef=this._overlay.create(n),this._popupRef.overlayElement.setAttribute("role","dialog"),de(this._popupRef.backdropClick(),this._popupRef.detachments(),this._popupRef.keydownEvents().pipe(jm(function(t){return 27===t.keyCode&&!Zk(t)||e.datepickerInput&&Zk(t,"altKey")&&38===t.keyCode}))).subscribe(function(t){t&&t.preventDefault(),e.close()})}},{key:"_destroyPopup",value:function(){this._popupRef&&(this._popupRef.dispose(),this._popupRef=this._popupComponentRef=null)}},{key:"_setConnectedPositions",value:function(e){var t="end"===this.xPosition?"end":"start",n="start"===t?"end":"start",i="above"===this.yPosition?"bottom":"top",r="top"===i?"bottom":"top";return e.withPositions([{originX:t,originY:r,overlayX:t,overlayY:i},{originX:t,originY:i,overlayX:t,overlayY:r},{originX:n,originY:r,overlayX:n,overlayY:i},{originX:n,originY:i,overlayX:n,overlayY:r}])}}]),e}()).\u0275fac=function(e){return new(e||lI)(ls(qD),ls(SE),ls(Oc),ls(du),ls(CI),ls(iA,8),ls(Iy,8),ls(sd,8),ls(XM))},lI.\u0275dir=bt({type:lI,inputs:{startView:"startView",xPosition:"xPosition",yPosition:"yPosition",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",restoreFocus:"restoreFocus",panelClass:"panelClass",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[It]}),lI),EI=((sI=function(e){f(n,e);var t=m(n);function n(){return b(this,n),t.apply(this,arguments)}return n}(OI)).\u0275fac=function(e){return TI(e||sI)},sI.\u0275cmp=pt({type:sI,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[bl([KM,{provide:OI,useExisting:sI}]),jo],decls:0,vars:0,template:function(e,t){},encapsulation:2,changeDetection:0}),sI),TI=fi(EI),PI=function e(t,n){b(this,e),this.target=t,this.targetElement=n,this.value=this.target.value},DI=((cI=function(){function e(t,n,i){var r=this;b(this,e),this._elementRef=t,this._dateAdapter=n,this._dateFormats=i,this.dateChange=new Vu,this.dateInput=new Vu,this.stateChanges=new j,this._onTouched=function(){},this._validatorOnChange=function(){},this._cvaOnChange=function(){},this._valueChangesSubscription=O.EMPTY,this._localeSubscription=O.EMPTY,this._parseValidator=function(){return r._lastValueValid?null:{matDatepickerParse:{text:r._elementRef.nativeElement.value}}},this._filterValidator=function(e){var t=r._dateAdapter.getValidDateOrNull(r._dateAdapter.deserialize(e.value));return!t||r._matchesFilter(t)?null:{matDatepickerFilter:!0}},this._minValidator=function(e){var t=r._dateAdapter.getValidDateOrNull(r._dateAdapter.deserialize(e.value)),n=r._getMinDate();return!n||!t||r._dateAdapter.compareDate(n,t)<=0?null:{matDatepickerMin:{min:n,actual:t}}},this._maxValidator=function(e){var t=r._dateAdapter.getValidDateOrNull(r._dateAdapter.deserialize(e.value)),n=r._getMaxDate();return!n||!t||r._dateAdapter.compareDate(n,t)>=0?null:{matDatepickerMax:{max:n,actual:t}}},this._lastValueValid=!1,this._localeSubscription=n.localeChanges.subscribe(function(){r._assignValueProgrammatically(r.value)})}return w(e,[{key:"value",get:function(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue},set:function(e){this._assignValueProgrammatically(e)}},{key:"disabled",get:function(){return!!this._disabled||this._parentDisabled()},set:function(e){var t=Qv(e),n=this._elementRef.nativeElement;this._disabled!==t&&(this._disabled=t,this.stateChanges.next(void 0)),t&&this._isInitialized&&n.blur&&n.blur()}},{key:"_getValidators",value:function(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}},{key:"_registerModel",value:function(e){var t=this;this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(function(e){if(t._shouldHandleChangeEvent(e)){var n=t._getValueFromModel(e.selection);t._lastValueValid=t._isValidValue(n),t._cvaOnChange(n),t._onTouched(),t._formatValue(n),t.dateInput.emit(new PI(t,t._elementRef.nativeElement)),t.dateChange.emit(new PI(t,t._elementRef.nativeElement))}})}},{key:"ngAfterViewInit",value:function(){this._isInitialized=!0}},{key:"ngOnChanges",value:function(e){(function(e,t){for(var n=0,i=Object.keys(e);n collapsed, void => collapsed",cC("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),bodyExpansion:uC("bodyExpansion",[pC("collapsed, void",fC({height:"0px",visibility:"hidden"})),pC("expanded",fC({height:"*",visibility:"visible"})),gC("expanded <=> collapsed, void => collapsed",cC("225ms cubic-bezier(0.4,0.0,0.2,1)"))])},nR=((YI=function e(t){b(this,e),this._template=t}).\u0275fac=function(e){return new(e||YI)(ls(au))},YI.\u0275dir=bt({type:YI,selectors:[["ng-template","matExpansionPanelContent",""]]}),YI),iR=0,rR=new _i("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),aR=((KI=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o,s,l){var u;return b(this,n),(u=t.call(this,e,i,r))._viewContainerRef=a,u._animationMode=s,u._hideToggle=!1,u.afterExpand=new Vu,u.afterCollapse=new Vu,u._inputChanges=new j,u._headerId="mat-expansion-panel-header-"+iR++,u._bodyAnimationDone=new j,u.accordion=e,u._document=o,u._bodyAnimationDone.pipe(Op(function(e,t){return e.fromState===t.fromState&&e.toState===t.toState})).subscribe(function(e){"void"!==e.fromState&&("expanded"===e.toState?u.afterExpand.emit():"collapsed"===e.toState&&u.afterCollapse.emit())}),l&&(u.hideToggle=l.hideToggle),u}return w(n,[{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(e){this._hideToggle=Qv(e)}},{key:"togglePosition",get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(e){this._togglePosition=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 e=this;this._lazyContent&&this.opened.pipe(Rp(null),jm(function(){return e.expanded&&!e._portal}),Qg(1)).subscribe(function(){e._portal=new RO(e._lazyContent._template,e._viewContainerRef)})}},{key:"ngOnChanges",value:function(e){this._inputChanges.next(e)}},{key:"ngOnDestroy",value:function(){h(_(n.prototype),"ngOnDestroy",this).call(this),this._bodyAnimationDone.complete(),this._inputChanges.complete()}},{key:"_containsFocus",value:function(){if(this._body){var e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}}]),n}(HI)).\u0275fac=function(e){return new(e||KI)(ls(eR,12),ls(Jl),ls(SO),ls(du),ls(sd),ls(LS,8),ls(rR,8))},KI.\u0275cmp=pt({type:KI,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,n){var i;1&e&&Zu(n,nR,1),2&e&&$u(i=Ju())&&(t._lazyContent=i.first)},viewQuery:function(e,t){var n;1&e&&Ku(GI,1),2&e&&$u(n=Ju())&&(t._body=n.first)},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,t){2&e&&Hs("mat-expanded",t.expanded)("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-expansion-panel-spacing",t._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[bl([{provide:eR,useValue:void 0}]),jo,It],ngContentSelectors:WI,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(Es(UI),Ts(0),ds(1,"div",0,1),ks("@bodyExpansion.done",function(e){return t._bodyAnimationDone.next(e)}),ds(3,"div",2),Ts(4,1),os(5,jI,0,0,"ng-template",3),hs(),Ts(6,2),hs()),2&e&&(Oa(1),us("@bodyExpansion",t._getExpandedState())("id",t.id),is("aria-labelledby",t._headerId),Oa(4),us("cdkPortalOutlet",t._portal))},directives:[BO],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);position:relative}.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:[tR.bodyExpansion]},changeDetection:0}),KI),oR=(($I=function(){function e(t,n,i,r,a,o){var s=this;b(this,e),this.panel=t,this._element=n,this._focusMonitor=i,this._changeDetectorRef=r,this._animationMode=o,this._parentChangeSubscription=O.EMPTY;var l=t.accordion?t.accordion._stateChanges.pipe(jm(function(e){return!(!e.hideToggle&&!e.togglePosition)})):dp;this._parentChangeSubscription=de(t.opened,t.closed,l,t._inputChanges.pipe(jm(function(e){return!!(e.hideToggle||e.disabled||e.togglePosition)}))).subscribe(function(){return s._changeDetectorRef.markForCheck()}),t.closed.pipe(jm(function(){return t._containsFocus()})).subscribe(function(){return i.focusVia(n,"program")}),a&&(this.expandedHeight=a.expandedHeight,this.collapsedHeight=a.collapsedHeight)}return w(e,[{key:"disabled",get:function(){return this.panel.disabled}},{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:"_getHeaderHeight",value:function(){var e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}},{key:"_keydown",value:function(e){switch(e.keyCode){case 32:case 13:Zk(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._element).subscribe(function(t){t&&e.panel.accordion&&e.panel.accordion._handleHeaderFocus(e)})}},{key:"ngOnDestroy",value:function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}]),e}()).\u0275fac=function(e){return new(e||$I)(ls(aR,1),ls(Ol),ls(Jw),ls(Jl),ls(rR,8),ls(LS,8))},$I.\u0275cmp=pt({type:$I,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&ks("click",function(){return t._toggle()})("keydown",function(e){return t._keydown(e)}),2&e&&(is("id",t.panel._headerId)("tabindex",t.disabled?-1:0)("aria-controls",t._getPanelId())("aria-expanded",t._isExpanded())("aria-disabled",t.panel.disabled),Bs("height",t._getHeaderHeight()),Hs("mat-expanded",t._isExpanded())("mat-expansion-toggle-indicator-after","after"===t._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===t._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:JI,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,t){1&e&&(Es(ZI),ds(0,"span",0),Ts(1),Ts(2,1),Ts(3,2),hs(),os(4,qI,1,1,"span",1)),2&e&&(Oa(4),us("ngIf",t._showToggle()))},directives:[wh],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.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}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}\n'],encapsulation:2,data:{animation:[tR.indicatorRotate]},changeDetection:0}),$I),sR=((XI=function e(){b(this,e)}).\u0275fac=function(e){return new(e||XI)},XI.\u0275mod=yt({type:XI}),XI.\u0275inj=Ne({imports:[[Zh,QS,zI,HO]]}),XI),lR=((QI=function e(){b(this,e)}).\u0275fac=function(e){return new(e||QI)},QI.\u0275mod=yt({type:QI}),QI.\u0275inj=Ne({imports:[[DA,QS],DA,QS]}),QI);function uR(e){return function(t){var n=new cR(e),i=t.lift(n);return n.caught=i}}var cR=function(){function e(t){b(this,e),this.selector=t}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new dR(e,this.selector,this.caught))}}]),e}(),dR=function(e){f(n,e);var t=m(n);function n(e,i,r){var a;return b(this,n),(a=t.call(this,e)).selector=i,a.caught=r,a}return w(n,[{key:"error",value:function(e){if(!this.isStopped){var t;try{t=this.selector(e,this.caught)}catch(a){return void h(_(n.prototype),"error",this).call(this,a)}this._unsubscribeAndRecycle();var i=new ne(this);this.add(i);var r=re(t,i);r!==i&&this.add(r)}}}]),n}(ie);function hR(e){return function(t){return t.lift(new fR(e))}}var fR=function(){function e(t){b(this,e),this.callback=t}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new pR(e,this.callback))}}]),e}(),pR=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this,e)).add(new O(i)),r}return n}(P),mR=["*"];function gR(e){return Error('Unable to find icon with the name "'.concat(e,'"'))}function vR(e){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was \"".concat(e,'".'))}function yR(e){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was \"".concat(e,'".'))}var _R,bR=function e(t,n,i){b(this,e),this.url=t,this.svgText=n,this.options=i},kR=((_R=function(){function e(t,n,i,r){b(this,e),this._httpClient=t,this._sanitizer=n,this._errorHandler=r,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=i}return w(e,[{key:"addSvgIcon",value:function(e,t,n){return this.addSvgIconInNamespace("",e,t,n)}},{key:"addSvgIconLiteral",value:function(e,t,n){return this.addSvgIconLiteralInNamespace("",e,t,n)}},{key:"addSvgIconInNamespace",value:function(e,t,n,i){return this._addSvgIconConfig(e,t,new bR(n,null,i))}},{key:"addSvgIconResolver",value:function(e){return this._resolvers.push(e),this}},{key:"addSvgIconLiteralInNamespace",value:function(e,t,n,i){var r=this._sanitizer.sanitize(Er.HTML,n);if(!r)throw yR(n);return this._addSvgIconConfig(e,t,new bR("",r,i))}},{key:"addSvgIconSet",value:function(e,t){return this.addSvgIconSetInNamespace("",e,t)}},{key:"addSvgIconSetLiteral",value:function(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}},{key:"addSvgIconSetInNamespace",value:function(e,t,n){return this._addSvgIconSetConfig(e,new bR(t,null,n))}},{key:"addSvgIconSetLiteralInNamespace",value:function(e,t,n){var i=this._sanitizer.sanitize(Er.HTML,t);if(!i)throw yR(t);return this._addSvgIconSetConfig(e,new bR("",i,n))}},{key:"registerFontClassAlias",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return this._fontCssClassesByAlias.set(e,t),this}},{key:"classNameForFontAlias",value:function(e){return this._fontCssClassesByAlias.get(e)||e}},{key:"setDefaultFontSetClass",value:function(e){return this._defaultFontSetClass=e,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(e){var t=this,n=this._sanitizer.sanitize(Er.RESOURCE_URL,e);if(!n)throw vR(e);var i=this._cachedIconsByUrl.get(n);return i?fp(wR(i)):this._loadSvgIconFromConfig(new bR(e,null)).pipe(Zg(function(e){return t._cachedIconsByUrl.set(n,e)}),q(function(e){return wR(e)}))}},{key:"getNamedSvgIcon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=CR(t,e),i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);if(i=this._getIconConfigFromResolvers(t,e))return this._svgIconConfigs.set(n,i),this._getSvgFromConfig(i);var r=this._iconSetConfigs.get(t);return r?this._getSvgFromIconSetConfigs(e,r):pp(gR(n))}},{key:"ngOnDestroy",value:function(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(e){return e.svgText?fp(wR(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(q(function(e){return wR(e)}))}},{key:"_getSvgFromIconSetConfigs",value:function(e,t){var n=this,i=this._extractIconWithNameFromAnySet(e,t);return i?fp(i):mb(t.filter(function(e){return!e.svgText}).map(function(e){return n._loadSvgIconSetFromConfig(e).pipe(uR(function(t){var i=n._sanitizer.sanitize(Er.RESOURCE_URL,e.url);return n._errorHandler.handleError(new Error("Loading icon set URL: ".concat(i," failed: ").concat(t.message))),fp(null)}))})).pipe(q(function(){var i=n._extractIconWithNameFromAnySet(e,t);if(!i)throw gR(e);return i}))}},{key:"_extractIconWithNameFromAnySet",value:function(e,t){for(var n=t.length-1;n>=0;n--){var i=t[n];if(i.svgText&&i.svgText.indexOf(e)>-1){var r=this._svgElementFromConfig(i),a=this._extractSvgIconFromSet(r,e,i.options);if(a)return a}}return null}},{key:"_loadSvgIconFromConfig",value:function(e){var t=this;return this._fetchIcon(e).pipe(Zg(function(t){return e.svgText=t}),q(function(){return t._svgElementFromConfig(e)}))}},{key:"_loadSvgIconSetFromConfig",value:function(e){return e.svgText?fp(null):this._fetchIcon(e).pipe(Zg(function(t){return e.svgText=t}))}},{key:"_extractSvgIconFromSet",value:function(e,t,n){var i=e.querySelector('[id="'.concat(t,'"]'));if(!i)return null;var r=i.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,n);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),n);var a=this._svgElementFromString("");return a.appendChild(r),this._setSvgAttributes(a,n)}},{key:"_svgElementFromString",value:function(e){var t=this._document.createElement("DIV");t.innerHTML=e;var n=t.querySelector("svg");if(!n)throw Error(" tag not found");return n}},{key:"_toSvgElement",value:function(e){for(var t=this._svgElementFromString(""),n=e.attributes,i=0;i*,.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}.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;flex:auto;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-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.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}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-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',WR=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],qR=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],YR=XS(KS(function e(){b(this,e)})),QR=KS(function e(){b(this,e)}),XR=new _i("MatList"),$R=new _i("MatNavList"),KR=((ER=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments))._stateChanges=new j,e}return w(n,[{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}(YR)).\u0275fac=function(e){return ZR(e||ER)},ER.\u0275cmp=pt({type:ER,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[bl([{provide:$R,useExisting:ER}]),jo,It],ngContentSelectors:jR,decls:1,vars:0,template:function(e,t){1&e&&(Es(),Ts(0))},styles:[UR],encapsulation:2,changeDetection:0}),ER),ZR=fi(KR),JR=((IR=function(e){f(n,e);var t=m(n);function n(e){var i;return b(this,n),(i=t.call(this))._elementRef=e,i._stateChanges=new j,"action-list"===i._getListType()&&e.nativeElement.classList.add("mat-action-list"),i}return w(n,[{key:"_getListType",value:function(){var e=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===e?"list":"mat-action-list"===e?"action-list":null}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}(YR)).\u0275fac=function(e){return new(e||IR)(ls(Ol))},IR.\u0275cmp=pt({type:IR,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[bl([{provide:XR,useExisting:IR}]),jo,It],ngContentSelectors:jR,decls:1,vars:0,template:function(e,t){1&e&&(Es(),Ts(0))},styles:[UR],encapsulation:2,changeDetection:0}),IR),eL=((MR=function e(){b(this,e)}).\u0275fac=function(e){return new(e||MR)},MR.\u0275dir=bt({type:MR,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),MR),tL=((DR=function e(){b(this,e)}).\u0275fac=function(e){return new(e||DR)},DR.\u0275dir=bt({type:DR,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),DR),nL=((PR=function(e){f(n,e);var t=m(n);function n(e,i,r,a){var o;b(this,n),(o=t.call(this))._element=e,o._isInteractiveList=!1,o._destroyed=new j,o._disabled=!1,o._isInteractiveList=!!(r||a&&"action-list"===a._getListType()),o._list=r||a;var s=o._getHostElement();return"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),o._list&&o._list._stateChanges.pipe(Pp(o._destroyed)).subscribe(function(){i.markForCheck()}),o}return w(n,[{key:"disabled",get:function(){return this._disabled||!(!this._list||!this._list.disabled)},set:function(e){this._disabled=Qv(e)}},{key:"ngAfterContentInit",value:function(){!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat";e.changes.pipe(Rp(e)).subscribe(function(e){var i=e.length;kA(t,"".concat(n,"-2-line"),!1),kA(t,"".concat(n,"-3-line"),!1),kA(t,"".concat(n,"-multi-line"),!1),2===i||3===i?kA(t,"".concat(n,"-").concat(i,"-line"),!0):i>3&&kA(t,"".concat(n,"-multi-line"),!0)})}(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}}]),n}(QR)).\u0275fac=function(e){return new(e||PR)(ls(Ol),ls(Jl),ls($R,8),ls(XR,8))},PR.\u0275cmp=pt({type:PR,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,t,n){var i;1&e&&(Zu(n,eL,1),Zu(n,tL,1),Zu(n,bA,1)),2&e&&($u(i=Ju())&&(t._avatar=i.first),$u(i=Ju())&&(t._icon=i.first),$u(i=Ju())&&(t._lines=i))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(e,t){2&e&&Hs("mat-list-item-disabled",t.disabled)("mat-list-item-avatar",t._avatar||t._icon)("mat-list-item-with-avatar",t._avatar||t._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[jo],ngContentSelectors:qR,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(e,t){1&e&&(Es(WR),ds(0,"div",0),fs(1,"div",1),Ts(2),ds(3,"div",2),Ts(4,1),hs(),Ts(5,2),hs()),2&e&&(Oa(1),us("matRippleTrigger",t._getHostElement())("matRippleDisabled",t._isRippleDisabled()))},directives:[BA],encapsulation:2,changeDetection:0}),PR),iL=((TR=function e(){b(this,e)}).\u0275fac=function(e){return new(e||TR)},TR.\u0275mod=yt({type:TR}),TR.\u0275inj=Ne({imports:[[DA,HA,QS,GA,Zh],DA,QS,GA,GR]}),TR),rL=["mat-menu-item",""],aL=["*"];function oL(e,t){if(1&e){var n=vs();ds(0,"div",0),ks("keydown",function(e){return rn(n),As()._handleKeydown(e)})("click",function(){return rn(n),As().closed.emit("click")})("@transformMenu.start",function(e){return rn(n),As()._onAnimationStart(e)})("@transformMenu.done",function(e){return rn(n),As()._onAnimationDone(e)}),ds(1,"div",1),Ts(2),hs(),hs()}if(2&e){var i=As();us("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),is("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}var sL,lL,uL,cL,dL,hL,fL={transformMenu:uC("transformMenu",[pC("void",fC({opacity:0,transform:"scale(0.8)"})),gC("void => enter",cC("120ms cubic-bezier(0, 0, 0.2, 1)",fC({opacity:1,transform:"scale(1)"}))),gC("* => void",cC("100ms 25ms linear",fC({opacity:0})))]),fadeInItems:uC("fadeInItems",[pC("showing",fC({opacity:1})),gC("void => *",[fC({opacity:0}),cC("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},pL=new _i("MatMenuContent"),mL=new _i("MAT_MENU_PANEL"),gL=KS(XS(function e(){b(this,e)})),vL=((sL=function(e){f(n,e);var t=m(n);function n(e,i,r,a){var o;return b(this,n),(o=t.call(this))._elementRef=e,o._focusMonitor=r,o._parentMenu=a,o.role="menuitem",o._hovered=new j,o._focused=new j,o._highlighted=!1,o._triggersSubmenu=!1,a&&a.addItem&&a.addItem(v(o)),o}return w(n,[{key:"focus",value:function(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{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(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var e,t,n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons"),r=0;r0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.pipe(Qg(1)).subscribe(function(){return e._focusFirstItem(t)}):this._focusFirstItem(t)}},{key:"_focusFirstItem",value:function(e){var t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.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(e){var t="mat-elevation-z".concat(Math.min(4+e,24)),n=Object.keys(this._classList).find(function(e){return e.startsWith("mat-elevation-z")});n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[t]=!0,this._previousElevation=t)}},{key:"setPositionClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,n=this._classList;n["mat-menu-before"]="before"===e,n["mat-menu-after"]="after"===e,n["mat-menu-above"]="above"===t,n["mat-menu-below"]="below"===t}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(e){this._animationDone.next(e),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var e=this;this._allItems.changes.pipe(Rp(this._allItems)).subscribe(function(t){e._directDescendantItems.reset(t.filter(function(t){return t._parentMenu===e})),e._directDescendantItems.notifyOnChanges()})}}]),e}()).\u0275fac=function(e){return new(e||uL)(ls(Ol),ls(Oc),ls(yL))},uL.\u0275dir=bt({type:uL,contentQueries:function(e,t,n){var i;1&e&&(Zu(n,pL,1),Zu(n,vL,1),Zu(n,vL,0)),2&e&&($u(i=Ju())&&(t.lazyContent=i.first),$u(i=Ju())&&(t._allItems=i),$u(i=Ju())&&(t.items=i))},viewQuery:function(e,t){var n;1&e&&Ku(au,1),2&e&&$u(n=Ju())&&(t.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"}}),uL),kL=((lL=function(e){f(n,e);var t=m(n);function n(e,i,r){return b(this,n),t.call(this,e,i,r)}return n}(bL)).\u0275fac=function(e){return new(e||lL)(ls(Ol),ls(Oc),ls(yL))},lL.\u0275cmp=pt({type:lL,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&is("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[bl([{provide:mL,useExisting:lL}]),jo],ngContentSelectors:aL,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(Es(),os(0,oL,3,6,"ng-template"))},directives:[yh],styles:['mat-menu{display:none}.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{margin-top:1px}.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:[fL.transformMenu,fL.fadeInItems]},changeDetection:0}),lL),wL=new _i("mat-menu-scroll-strategy"),CL={provide:wL,deps:[SE],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},xL=cw({passive:!0}),SL=((hL=function(){function e(t,n,i,r,a,o,s,l){var u=this;b(this,e),this._overlay=t,this._element=n,this._viewContainerRef=i,this._menuItemInstance=o,this._dir=s,this._focusMonitor=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=O.EMPTY,this._hoverSubscription=O.EMPTY,this._menuCloseSubscription=O.EMPTY,this._handleTouchStart=function(e){Xw(e)||(u._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new Vu,this.onMenuOpen=this.menuOpened,this.menuClosed=new Vu,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=a instanceof bL?a:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,xL),o&&(o._triggersSubmenu=this.triggersSubmenu())}return w(e,[{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(e){this.menu=e}},{key:"menu",get:function(){return this._menu},set:function(e){var t=this;e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(function(e){t._destroyMenu(e),"click"!==e&&"tab"!==e||!t._parentMaterialMenu||t._parentMaterialMenu.closed.emit(e)})))}},{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,xL),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var e=this;if(!this._menuOpen){this._checkMenu();var t=this._createOverlay(),n=t.getConfig();this._setPosition(n.positionStrategy),n.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(function(){return e.closeMenu()}),this._initMenu(),this.menu instanceof bL&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"_destroyMenu",value:function(e){var t=this;if(this._overlayRef&&this.menuOpen){var n=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==e&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,n instanceof bL?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe(jm(function(e){return"void"===e.toState}),Qg(1),Pp(n.lazyContent._attached)).subscribe({next:function(){return n.lazyContent.detach()},complete:function(){return t._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),n.lazyContent&&n.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var e=0,t=this.menu.parentMenu;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}},{key:"_setIsMenuOpen",value:function(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=e)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new nE({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(e){var t=this;this.menu.setPositionClasses&&e.positionChanges.subscribe(function(e){t.menu.setPositionClasses("start"===e.connectionPair.overlayX?"after":"before","top"===e.connectionPair.overlayY?"below":"above")})}},{key:"_setPosition",value:function(e){var t=n("before"===this.menu.xPosition?["end","start"]:["start","end"],2),i=t[0],r=t[1],a=n("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),o=a[0],s=a[1],l=o,u=s,c=i,d=r,h=0;this.triggersSubmenu()?(d=i="before"===this.menu.xPosition?"start":"end",r=c="end"===i?"start":"end",h="bottom"===o?8:-8):this.menu.overlapTrigger||(l="top"===o?"bottom":"top",u="top"===s?"bottom":"top"),e.withPositions([{originX:i,originY:l,overlayX:c,overlayY:o,offsetY:h},{originX:r,originY:l,overlayX:d,overlayY:o,offsetY:h},{originX:i,originY:u,overlayX:c,overlayY:s,offsetY:-h},{originX:r,originY:u,overlayX:d,overlayY:s,offsetY:-h}])}},{key:"_menuClosingActions",value:function(){var e=this,t=this._overlayRef.backdropClick(),n=this._overlayRef.detachments();return de(t,this._parentMaterialMenu?this._parentMaterialMenu.closed:fp(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(jm(function(t){return t!==e._menuItemInstance}),jm(function(){return e._menuOpen})):fp(),n)}},{key:"_handleMousedown",value:function(e){Qw(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}},{key:"_handleKeydown",value:function(e){var t=e.keyCode;13!==t&&32!==t||(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}},{key:"_handleClick",value:function(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var e=this;this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(jm(function(t){return t===e._menuItemInstance&&!t.disabled}),xT(0,Hg)).subscribe(function(){e._openedBy="mouse",e.menu instanceof bL&&e.menu._isAnimating?e.menu._animationDone.pipe(Qg(1),xT(0,Hg),Pp(e._parentMaterialMenu._hovered())).subscribe(function(){return e.openMenu()}):e.openMenu()}))}},{key:"_getPortal",value:function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new RO(this.menu.templateRef,this._viewContainerRef)),this._portal}}]),e}()).\u0275fac=function(e){return new(e||hL)(ls(SE),ls(Ol),ls(du),ls(wL),ls(mL,8),ls(vL,10),ls(Iy,8),ls(Jw))},hL.\u0275dir=bt({type:hL,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(e,t){1&e&&ks("mousedown",function(e){return t._handleMousedown(e)})("keydown",function(e){return t._handleKeydown(e)})("click",function(e){return t._handleClick(e)}),2&e&&is("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.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"]}),hL),AL=((dL=function e(){b(this,e)}).\u0275fac=function(e){return new(e||dL)},dL.\u0275mod=yt({type:dL}),dL.\u0275inj=Ne({providers:[CL],imports:[QS]}),dL),OL=((cL=function e(){b(this,e)}).\u0275fac=function(e){return new(e||cL)},cL.\u0275mod=yt({type:cL}),cL.\u0275inj=Ne({providers:[CL],imports:[[Zh,QS,HA,DE,AL],PO,QS,AL]}),cL),EL=["trigger"],TL=["panel"];function PL(e,t){if(1&e&&(ds(0,"span",8),Js(1),hs()),2&e){var n=As();Oa(1),el(n.placeholder)}}function DL(e,t){if(1&e&&(ds(0,"span",12),Js(1),hs()),2&e){var n=As(2);Oa(1),el(n.triggerValue)}}function ML(e,t){1&e&&Ts(0,0,["*ngSwitchCase","true"])}function IL(e,t){1&e&&(ds(0,"span",9),os(1,DL,2,1,"span",10),os(2,ML,1,0,"ng-content",11),hs()),2&e&&(us("ngSwitch",!!As().customTrigger),Oa(2),us("ngSwitchCase",!0))}function RL(e,t){if(1&e){var n=vs();ds(0,"div",13),ds(1,"div",14,15),ks("@transformPanel.done",function(e){return rn(n),As()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return rn(n),As()._handleKeydown(e)}),Ts(3,1),hs(),hs()}if(2&e){var i=As();us("@transformPanelWrap",void 0),Oa(1),rl("mat-select-panel ",i._getPanelTheme(),""),Bs("transform-origin",i._transformOrigin)("font-size",i._triggerFontSize,"px"),us("ngClass",i.panelClass)("@transformPanel",i.multiple?"showing-multiple":"showing"),is("id",i.id+"-panel")("aria-multiselectable",i.multiple)("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby())}}var LL,FL,NL,VL,BL=[[["mat-select-trigger"]],"*"],HL=["mat-select-trigger","*"],zL={transformPanelWrap:uC("transformPanelWrap",[gC("* => void",yC("@transformPanel",[vC()],{optional:!0}))]),transformPanel:uC("transformPanel",[pC("void",fC({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),pC("showing",fC({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),pC("showing-multiple",fC({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),gC("void => *",cC("120ms cubic-bezier(0, 0, 0.2, 1)")),gC("* => void",cC("100ms 25ms linear",fC({opacity:0})))])},GL=0,jL=new _i("mat-select-scroll-strategy"),UL=new _i("MAT_SELECT_CONFIG"),WL={provide:jL,deps:[SE],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},qL=function e(t,n){b(this,e),this.source=t,this.value=n},YL=KS(ZS(XS(JS(function e(t,n,i,r,a){b(this,e),this._elementRef=t,this._defaultErrorStateMatcher=n,this._parentForm=i,this._parentFormGroup=r,this.ngControl=a})))),QL=new _i("MatSelectTrigger"),XL=((NL=function e(){b(this,e)}).\u0275fac=function(e){return new(e||NL)},NL.\u0275dir=bt({type:NL,selectors:[["mat-select-trigger"]],features:[bl([{provide:QL,useExisting:NL}])]}),NL),$L=((FL=function(e){f(n,e);var t=m(n);function n(e,i,r,o,s,l,u,c,d,h,f,p,m,g){var y,_,k,w;return b(this,n),(y=t.call(this,s,o,u,c,h))._viewportRuler=e,y._changeDetectorRef=i,y._ngZone=r,y._dir=l,y._parentFormField=d,y.ngControl=h,y._liveAnnouncer=m,y._defaultOptions=g,y._panelOpen=!1,y._compareWith=function(e,t){return e===t},y._uid="mat-select-"+GL++,y._triggerAriaLabelledBy=null,y._destroy=new j,y._onChange=function(){},y._onTouched=function(){},y._valueId="mat-select-value-"+GL++,y._panelDoneAnimatingStream=new j,y._overlayPanelClass=(null===(_=y._defaultOptions)||void 0===_?void 0:_.overlayPanelClass)||"",y._focused=!1,y.controlType="mat-select",y._required=!1,y._multiple=!1,y._disableOptionCentering=null!==(w=null===(k=y._defaultOptions)||void 0===k?void 0:k.disableOptionCentering)&&void 0!==w&&w,y.ariaLabel="",y.optionSelectionChanges=rO(function(){var e=y.options;return e?e.changes.pipe(Rp(e),xp(function(){return de.apply(void 0,a(e.map(function(e){return e.onSelectionChange})))})):y._ngZone.onStable.pipe(Qg(1),xp(function(){return y.optionSelectionChanges}))}),y.openedChange=new Vu,y._openedStream=y.openedChange.pipe(jm(function(e){return e}),q(function(){})),y._closedStream=y.openedChange.pipe(jm(function(e){return!e}),q(function(){})),y.selectionChange=new Vu,y.valueChange=new Vu,y.ngControl&&(y.ngControl.valueAccessor=v(y)),null!=(null==g?void 0:g.typeaheadDebounceInterval)&&(y._typeaheadDebounceInterval=g.typeaheadDebounceInterval),y._scrollStrategyFactory=p,y._scrollStrategy=y._scrollStrategyFactory(),y.tabIndex=parseInt(f)||0,y.id=y.id,y}return w(n,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(e){this._required=Qv(e),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=Qv(e)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(e){this._disableOptionCentering=Qv(e)}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(e){this._typeaheadDebounceInterval=Xv(e)}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var e=this;this._selectionModel=new xO(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Op(),Pp(this._destroy)).subscribe(function(){return e._panelDoneAnimating(e.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var e=this;this._initKeyManager(),this._selectionModel.changed.pipe(Pp(this._destroy)).subscribe(function(e){e.added.forEach(function(e){return e.select()}),e.removed.forEach(function(e){return e.deselect()})}),this.options.changes.pipe(Rp(null),Pp(this._destroy)).subscribe(function(){e._resetOptions(),e._initializeSelection()})}},{key:"ngDoCheck",value:function(){var e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){var t=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?t.setAttribute("aria-labelledby",e):t.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(e){e.disabled&&this.stateChanges.next(),e.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(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}},{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(e){this.value=e}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetectorRef.markForCheck(),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 e=this._selectionModel.selected.map(function(e){return e.viewValue});return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}},{key:"_handleClosedKeydown",value:function(e){var t=e.keyCode,n=40===t||38===t||37===t||39===t,i=13===t||32===t,r=this._keyManager;if(!r.isTyping()&&i&&!Zk(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){var a=this.selected;r.onKeydown(e);var o=this.selected;o&&a!==o&&this._liveAnnouncer.announce(o.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(e){var t=this._keyManager,n=e.keyCode,i=40===n||38===n,r=t.isTyping();if(i&&e.altKey)e.preventDefault(),this.close();else if(r||13!==n&&32!==n||!t.activeItem||Zk(e))if(!r&&this._multiple&&65===n&&e.ctrlKey){e.preventDefault();var a=this.options.some(function(e){return!e.disabled&&!e.selected});this.options.forEach(function(e){e.disabled||(a?e.select():e.deselect())})}else{var o=t.activeItemIndex;t.onKeydown(e),this._multiple&&i&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==o&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.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 e=this;this.overlayDir.positionChange.pipe(Qg(1)).subscribe(function(){e._changeDetectorRef.detectChanges(),e._positioningSettled()})}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then(function(){e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value),e.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(e){var t=this;if(this._selectionModel.selected.forEach(function(e){return e.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(function(e){return t._selectValue(e)}),this._sortValues();else{var n=this._selectValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(e){var t=this,n=this.options.find(function(n){if(t._selectionModel.isSelected(n))return!1;try{return null!=n.value&&t._compareWith(n.value,e)}catch(i){return!1}});return n&&this._selectionModel.select(n),n}},{key:"_initKeyManager",value:function(){var e=this;this._keyManager=new Mw(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Pp(this._destroy)).subscribe(function(){e.panelOpen&&(!e.multiple&&e._keyManager.activeItem&&e._keyManager.activeItem._selectViaInteraction(),e.focus(),e.close())}),this._keyManager.change.pipe(Pp(this._destroy)).subscribe(function(){e._panelOpen&&e.panel?e._scrollOptionIntoView(e._keyManager.activeItemIndex||0):e._panelOpen||e.multiple||!e._keyManager.activeItem||e._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var e=this,t=de(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Pp(t)).subscribe(function(t){e._onSelect(t.source,t.isUserInput),t.isUserInput&&!e.multiple&&e._panelOpen&&(e.close(),e.focus())}),de.apply(void 0,a(this.options.map(function(e){return e._stateChanges}))).pipe(Pp(t)).subscribe(function(){e._changeDetectorRef.markForCheck(),e.stateChanges.next()})}},{key:"_onSelect",value:function(e,t){var n=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(n!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;if(this.multiple){var t=this.options.toArray();this._selectionModel.sort(function(n,i){return e.sortComparator?e.sortComparator(n,i,t):t.indexOf(n)-t.indexOf(i)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(e){var t;t=this.multiple?this.selected.map(function(e){return e.value}):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_getPanelAriaLabelledby",value:function(){var e;if(this.ariaLabel)return null;var t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var e;if(this.ariaLabel)return null;var t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId(),n=(t?t+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}},{key:"_panelDoneAnimating",value:function(e){this.openedChange.emit(e)}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),n}(YL)).\u0275fac=function(e){return new(e||FL)(ls(TO),ls(Jl),ls(Oc),ls(_A),ls(Ol),ls(Iy,8),ls(Rk,8),ls(qk,8),ls(kT,8),ls($b,10),mi("tabindex"),ls(jL),ls(qw),ls(UL,8))},FL.\u0275dir=bt({type:FL,viewQuery:function(e,t){var n;1&e&&(Ku(EL,1),Ku(TL,1),Ku(TE,1)),2&e&&($u(n=Ju())&&(t.trigger=n.first),$u(n=Ju())&&(t.panel=n.first),$u(n=Ju())&&(t.overlayDir=n.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[jo,It]}),FL),KL=((LL=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments))._scrollTop=0,e._triggerFontSize=0,e._transformOrigin="top",e._offsetY=0,e._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],e}return w(n,[{key:"_calculateOverlayScroll",value:function(e,t,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*e-t+i/2),n)}},{key:"ngOnInit",value:function(){var e=this;h(_(n.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe(Pp(this._destroy)).subscribe(function(){e.panelOpen&&(e._triggerRect=e.trigger.nativeElement.getBoundingClientRect(),e._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var e=this;h(_(n.prototype),"_canOpen",this).call(this)&&(h(_(n.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(Qg(1)).subscribe(function(){e._triggerFontSize&&e.overlayDir.overlayRef&&e.overlayDir.overlayRef.overlayElement&&(e.overlayDir.overlayRef.overlayElement.style.fontSize="".concat(e._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(e){var t=eO(e,this.options,this.optionGroups),n=this._getItemHeight();this.panel.nativeElement.scrollTop=tO((e+t)*n,n,this.panel.nativeElement.scrollTop,256)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(e){this.panelOpen?this._scrollTop=0:(this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),h(_(n.prototype),"_panelDoneAnimating",this).call(this,e)}},{key:"_getChangeEvent",value:function(e){return new qL(this,e)}},{key:"_calculateOverlayOffsetX",value:function(){var e,t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?56:32;if(this.multiple)e=40;else if(this.disableOptionCentering)e=16;else{var a=this._selectionModel.selected[0]||this.options.first;e=a&&a.group?32:16}i||(e*=-1);var o=0-(t.left+e-(i?r:0)),s=t.right+e-n.width+(i?0:r);o>0?e+=o+8:s>0&&(e-=s+8),this.overlayDir.offsetX=Math.round(e),this.overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(e,t,n){var i,r=this._getItemHeight(),a=(r-this._triggerRect.height)/2,o=Math.floor(256/r);return this.disableOptionCentering?0:(i=0===this._scrollTop?e*r:this._scrollTop===n?(e-(this._getItemCount()-o))*r+(r-(this._getItemCount()*r-256)%r):t-r/2,Math.round(-1*i-a))}},{key:"_checkOverlayWithinViewport",value:function(e){var t=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,a=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*t,256)-a-this._triggerRect.height;o>r?this._adjustPanelUp(o,r):a>i?this._adjustPanelDown(a,i,e):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(e,t){var n=Math.round(e-t);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(e,t,n){var i=Math.round(e-t);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:"_calculateOverlayPosition",value:function(){var e,t=this._getItemHeight(),n=this._getItemCount(),i=Math.min(n*t,256),r=n*t-i;e=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),e+=eO(e,this.options,this.optionGroups);var a=i/2;this._scrollTop=this._calculateOverlayScroll(e,a,r),this._offsetY=this._calculateOverlayOffsetY(e,a,r),this._checkOverlayWithinViewport(r)}},{key:"_getOriginBasedOnOption",value:function(){var e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return"50% ".concat(Math.abs(this._offsetY)-t+e/2,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),n}($L)).\u0275fac=function(e){return ZL(e||LL)},LL.\u0275cmp=pt({type:LL,selectors:[["mat-select"]],contentQueries:function(e,t,n){var i;1&e&&(Zu(n,QL,1),Zu(n,JA,1),Zu(n,YA,1)),2&e&&($u(i=Ju())&&(t.customTrigger=i.first),$u(i=Ju())&&(t.options=i),$u(i=Ju())&&(t.optionGroups=i))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&ks("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(is("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),Hs("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[bl([{provide:lT,useExisting:LL},{provide:jA,useExisting:LL}]),jo],ngContentSelectors:HL,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",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,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(Es(BL),ds(0,"div",0,1),ks("click",function(){return t.toggle()}),ds(3,"div",2),os(4,PL,2,1,"span",3),os(5,IL,3,2,"span",4),hs(),ds(6,"div",5),fs(7,"div",6),hs(),hs(),os(8,RL,4,14,"ng-template",7),ks("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){var n=ss(1);is("aria-owns",t.panelOpen?t.id+"-panel":null),Oa(3),us("ngSwitch",t.empty),is("id",t._valueId),Oa(1),us("ngSwitchCase",!0),Oa(1),us("ngSwitchCase",!1),Oa(3),us("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[EE,Dh,Mh,TE,Ih,yh],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;outline:0}.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}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[zL.transformPanelWrap,zL.transformPanel]},changeDetection:0}),LL),ZL=fi(KL),JL=((VL=function e(){b(this,e)}).\u0275fac=function(e){return new(e||VL)},VL.\u0275mod=yt({type:VL}),VL.\u0275inj=Ne({providers:[WL],imports:[[Zh,DE,iO,QS],PO,CT,iO,QS]}),VL),eF=function(e){f(n,e);var t=m(n);function n(){return b(this,n),t.apply(this,arguments)}return w(n,[{key:"notifyNext",value:function(e,t,n,i,r){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}]),n}(P),tF=function(e){f(n,e);var t=m(n);function n(e,i,r){var a;return b(this,n),(a=t.call(this)).parent=e,a.outerValue=i,a.outerIndex=r,a.index=0,a}return w(n,[{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()}}]),n}(P);function nF(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new tF(e,n,i);if(!r.closed)return t instanceof N?t.subscribe(r):J(t)(r)}var iF={};function rF(){for(var e=arguments.length,t=new Array(e),n=0;n visible",cC("200ms cubic-bezier(0, 0, 0.2, 1)",mC([fC({opacity:0,transform:"scale(0)",offset:0}),fC({opacity:.5,transform:"scale(0.99)",offset:.5}),fC({opacity:1,transform:"scale(1)",offset:1})]))),gC("* => hidden",cC("100ms cubic-bezier(0, 0, 0.2, 1)",fC({opacity:0})))])},_F=cw({passive:!0}),bF=new _i("mat-tooltip-scroll-strategy"),kF={provide:bF,deps:[SE],useFactory:function(e){return function(){return e.scrollStrategies.reposition({scrollThrottle:20})}}},wF=new _i("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),CF=((vF=function(){function e(t,n,i,r,a,o,s,l,u,c,d,h){var f=this;b(this,e),this._overlay=t,this._elementRef=n,this._scrollDispatcher=i,this._viewContainerRef=r,this._ngZone=a,this._platform=o,this._ariaDescriber=s,this._focusMonitor=l,this._dir=c,this._defaultOptions=d,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new j,this._handleKeydown=function(e){f._isTooltipVisible()&&27===e.keyCode&&!Zk(e)&&(e.preventDefault(),e.stopPropagation(),f._ngZone.run(function(){return f.hide(0)}))},this._scrollStrategy=u,d&&(d.position&&(this.position=d.position),d.touchGestures&&(this.touchGestures=d.touchGestures)),a.runOutsideAngular(function(){n.nativeElement.addEventListener("keydown",f._handleKeydown)})}return w(e,[{key:"position",get:function(){return this._position},set:function(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=Qv(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(e){var t=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){t._ariaDescriber.describe(t._elementRef.nativeElement,t.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var e=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Pp(this._destroyed)).subscribe(function(t){t?"keyboard"===t&&e._ngZone.run(function(){return e.show()}):e._ngZone.run(function(){return e.hide(0)})})}},{key:"ngOnDestroy",value:function(){var e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),e.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(t){var i=n(t,2),r=i[0],a=i[1];e.removeEventListener(r,a,_F)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}},{key:"show",value:function(){var e=this,t=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 IO(xF,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Pp(this._destroyed)).subscribe(function(){return e._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(e)}},{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 e=this;if(this._overlayRef)return this._overlayRef;var t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return n.positionChanges.pipe(Pp(this._destroyed)).subscribe(function(t){e._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&e._tooltipInstance.isVisible()&&e._ngZone.run(function(){return e.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(Pp(this._destroyed)).subscribe(function(){return e._detach()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(){var e=this._overlayRef.getConfig().positionStrategy,t=this._getOrigin(),n=this._getOverlayPosition();e.withPositions([Object.assign(Object.assign({},t.main),n.main),Object.assign(Object.assign({},t.fallback),n.fallback)])}},{key:"_getOrigin",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n||"below"==n?e={originX:"center",originY:"above"==n?"top":"bottom"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={originX:"start",originY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={originX:"end",originY:"center"});var i=this._invertPosition(e.originX,e.originY);return{main:e,fallback:{originX:i.x,originY:i.y}}}},{key:"_getOverlayPosition",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n?e={overlayX:"center",overlayY:"bottom"}:"below"==n?e={overlayX:"center",overlayY:"top"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={overlayX:"end",overlayY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={overlayX:"start",overlayY:"center"});var i=this._invertPosition(e.overlayX,e.overlayY);return{main:e,fallback:{overlayX:i.x,overlayY:i.y}}}},{key:"_updateTooltipMessage",value:function(){var e=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Qg(1),Pp(this._destroyed)).subscribe(function(){e._tooltipInstance&&e._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var e=this;!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){e._setupPointerExitEventsIfNeeded(),e.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){e._setupPointerExitEventsIfNeeded(),clearTimeout(e._touchstartTimeout),e._touchstartTimeout=setTimeout(function(){return e.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var e,t=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var n=[];if(this._platformSupportsMouseEvents())n.push(["mouseleave",function(){return t.hide()}],["wheel",function(e){return t._wheelListener(e)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var i=function(){clearTimeout(t._touchstartTimeout),t.hide(t._defaultOptions.touchendHideDelay)};n.push(["touchend",i],["touchcancel",i])}this._addListeners(n),(e=this._passiveListeners).push.apply(e,n)}}},{key:"_addListeners",value:function(e){var t=this;e.forEach(function(e){var i=n(e,2),r=i[0],a=i[1];t._elementRef.nativeElement.addEventListener(r,a,_F)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(e){if(this._isTooltipVisible()){var t=(this._document||document).elementFromPoint(e.clientX,e.clientY),n=this._elementRef.nativeElement;t===n||n.contains(t)||this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var e=this.touchGestures;if("off"!==e){var t=this._elementRef.nativeElement,n=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==e&&t.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}]),e}()).\u0275fac=function(e){return new(e||vF)(ls(SE),ls(Ol),ls(OO),ls(du),ls(Oc),ls(ow),ls(Ow),ls(Jw),ls(bF),ls(Iy,8),ls(wF,8),ls(sd))},vF.\u0275dir=bt({type:vF,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),vF),xF=((gF=function(){function e(t,n){b(this,e),this._changeDetectorRef=t,this._breakpointObserver=n,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new j,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}return w(e,[{key:"show",value:function(e){var t=this;this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){t._visibility="visible",t._showTimeoutId=null,t._markForCheck()},e)}},{key:"hide",value:function(e){var t=this;this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(function(){t._visibility="hidden",t._hideTimeoutId=null,t._markForCheck()},e)}},{key:"afterHidden",value:function(){return this._onHide}},{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(e){var t=e.toState;"hidden"!==t||this.isVisible()||this._onHide.next(),"visible"!==t&&"hidden"!==t||(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),e}()).\u0275fac=function(e){return new(e||gF)(ls(Jl),ls(fF))},gF.\u0275cmp=pt({type:gF,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&ks("click",function(){return t._handleBodyInteraction()},!1,Br)("auxclick",function(){return t._handleBodyInteraction()},!1,Br),2&e&&Bs("zoom","visible"===t._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){var n;(1&e&&(ds(0,"div",0),ks("@state.start",function(){return t._animationStart()})("@state.done",function(e){return t._animationDone(e)}),Iu(1,"async"),Js(2),hs()),2&e)&&(Hs("mat-tooltip-handset",null==(n=Ru(1,5,t._isHandset))?null:n.matches),us("ngClass",t.tooltipClass)("@state",t._visibility),Oa(2),el(t.message))},directives:[yh],pipes:[qh],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:[yF.tooltipState]},changeDetection:0}),gF),SF=((mF=function e(){b(this,e)}).\u0275fac=function(e){return new(e||mF)},mF.\u0275mod=yt({type:mF}),mF.\u0275inj=Ne({providers:[kF],imports:[[oC,Zh,DE,QS],QS,PO]}),mF);function AF(e,t){if(1&e&&(ds(0,"mat-option",19),Js(1),hs()),2&e){var n=t.$implicit;us("value",n),Oa(1),tl(" ",n," ")}}function OF(e,t){if(1&e){var n=vs();ds(0,"mat-form-field",16),ds(1,"mat-select",17),ks("selectionChange",function(e){return rn(n),As(2)._changePageSize(e.value)}),os(2,AF,2,2,"mat-option",18),hs(),hs()}if(2&e){var i=As(2);us("appearance",i._formFieldAppearance)("color",i.color),Oa(1),us("value",i.pageSize)("disabled",i.disabled)("aria-label",i._intl.itemsPerPageLabel),Oa(1),us("ngForOf",i._displayedPageSizeOptions)}}function EF(e,t){if(1&e&&(ds(0,"div",20),Js(1),hs()),2&e){var n=As(2);Oa(1),el(n.pageSize)}}function TF(e,t){if(1&e&&(ds(0,"div",12),ds(1,"div",13),Js(2),hs(),os(3,OF,3,6,"mat-form-field",14),os(4,EF,2,1,"div",15),hs()),2&e){var n=As();Oa(2),tl(" ",n._intl.itemsPerPageLabel," "),Oa(1),us("ngIf",n._displayedPageSizeOptions.length>1),Oa(1),us("ngIf",n._displayedPageSizeOptions.length<=1)}}function PF(e,t){if(1&e){var n=vs();ds(0,"button",21),ks("click",function(){return rn(n),As().firstPage()}),Dn(),ds(1,"svg",7),fs(2,"path",22),hs(),hs()}if(2&e){var i=As();us("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),is("aria-label",i._intl.firstPageLabel)}}function DF(e,t){if(1&e){var n=vs();Dn(),Mn(),ds(0,"button",23),ks("click",function(){return rn(n),As().lastPage()}),Dn(),ds(1,"svg",7),fs(2,"path",24),hs(),hs()}if(2&e){var i=As();us("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),is("aria-label",i._intl.lastPageLabel)}}var MF,IF,RF,LF,FF,NF=((MF=function e(){b(this,e),this.changes=new j,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(e,t,n){if(0==n||0==t)return"0 of ".concat(n);var i=e*t;return"".concat(i+1," \u2013 ").concat(i<(n=Math.max(n,0))?Math.min(i+t,n):i+t," of ").concat(n)}}).\u0275fac=function(e){return new(e||MF)},MF.\u0275prov=Le({factory:function(){return new MF},token:MF,providedIn:"root"}),MF),VF={provide:NF,deps:[[new Ui,new Wi,NF]],useFactory:function(e){return e||new NF}},BF=new _i("MAT_PAGINATOR_DEFAULT_OPTIONS"),HF=XS(eA(function e(){b(this,e)})),zF=((LF=function(e){f(n,e);var t=m(n);function n(e,i,r){var a;if(b(this,n),(a=t.call(this))._intl=e,a._changeDetectorRef=i,a._pageIndex=0,a._length=0,a._pageSizeOptions=[],a._hidePageSize=!1,a._showFirstLastButtons=!1,a.page=new Vu,a._intlChanges=e.changes.subscribe(function(){return a._changeDetectorRef.markForCheck()}),r){var o=r.pageSize,s=r.pageSizeOptions,l=r.hidePageSize,u=r.showFirstLastButtons;null!=o&&(a._pageSize=o),null!=s&&(a._pageSizeOptions=s),null!=l&&(a._hidePageSize=l),null!=u&&(a._showFirstLastButtons=u)}return g(a)}return w(n,[{key:"pageIndex",get:function(){return this._pageIndex},set:function(e){this._pageIndex=Math.max(Xv(e),0),this._changeDetectorRef.markForCheck()}},{key:"length",get:function(){return this._length},set:function(e){this._length=Xv(e),this._changeDetectorRef.markForCheck()}},{key:"pageSize",get:function(){return this._pageSize},set:function(e){this._pageSize=Math.max(Xv(e),0),this._updateDisplayedPageSizeOptions()}},{key:"pageSizeOptions",get:function(){return this._pageSizeOptions},set:function(e){this._pageSizeOptions=(e||[]).map(function(e){return Xv(e)}),this._updateDisplayedPageSizeOptions()}},{key:"hidePageSize",get:function(){return this._hidePageSize},set:function(e){this._hidePageSize=Qv(e)}},{key:"showFirstLastButtons",get:function(){return this._showFirstLastButtons},set:function(e){this._showFirstLastButtons=Qv(e)}},{key:"ngOnInit",value:function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe()}},{key:"nextPage",value:function(){if(this.hasNextPage()){var e=this.pageIndex;this.pageIndex++,this._emitPageEvent(e)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var e=this.pageIndex;this.pageIndex--,this._emitPageEvent(e)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var e=this.getNumberOfPages()-1;return this.pageIndex1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;return Math.max(t,Math.min(n,e))}var $F,KF=(($F=function e(){b(this,e)}).\u0275fac=function(e){return new(e||$F)},$F.\u0275mod=yt({type:$F}),$F.\u0275inj=Ne({imports:[[Zh,QS],QS]}),$F);function ZF(e,t){if(1&e&&(Dn(),fs(0,"circle",3)),2&e){var n=As();Bs("animation-name","mat-progress-spinner-stroke-rotate-"+n._spinnerAnimationLabel)("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),is("r",n._getCircleRadius())}}function JF(e,t){if(1&e&&(Dn(),fs(0,"circle",3)),2&e){var n=As();Bs("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),is("r",n._getCircleRadius())}}function eN(e,t){if(1&e&&(Dn(),fs(0,"circle",3)),2&e){var n=As();Bs("animation-name","mat-progress-spinner-stroke-rotate-"+n._spinnerAnimationLabel)("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),is("r",n._getCircleRadius())}}function tN(e,t){if(1&e&&(Dn(),fs(0,"circle",3)),2&e){var n=As();Bs("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),is("r",n._getCircleRadius())}}var nN,iN,rN,aN,oN,sN,lN,uN,cN=".mat-progress-spinner{display:block;position:relative;overflow:hidden}.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}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{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] svg{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] svg{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",dN=$S(function e(t){b(this,e),this._elementRef=t},"primary"),hN=new _i("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),fN=((rN=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o){var s;b(this,n),(s=t.call(this,e))._elementRef=e,s._document=r,s._diameter=100,s._value=0,s._fallbackAnimation=!1,s.mode="determinate";var l=n._diameters;return s._spinnerAnimationLabel=s._getSpinnerAnimationLabel(),l.has(r.head)||l.set(r.head,new Set([100])),s._fallbackAnimation=i.EDGE||i.TRIDENT,s._noopAnimations="NoopAnimations"===a&&!!o&&!o._forceAnimations,o&&(o.diameter&&(s.diameter=o.diameter),o.strokeWidth&&(s.strokeWidth=o.strokeWidth)),s}return w(n,[{key:"diameter",get:function(){return this._diameter},set:function(e){this._diameter=Xv(e),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(e){this._strokeWidth=Xv(e)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(e){this._value=Math.max(0,Math.min(100,Xv(e)))}},{key:"ngOnInit",value:function(){var e=this._elementRef.nativeElement;this._styleRoot=fw(e)||this._document.head,this._attachStyleNode(),e.classList.add("mat-progress-spinner-indeterminate".concat(this._fallbackAnimation?"-fallback":"","-animation"))}},{key:"_getCircleRadius",value:function(){return(this.diameter-10)/2}},{key:"_getViewBox",value:function(){var e=2*this._getCircleRadius()+this.strokeWidth;return"0 0 ".concat(e," ").concat(e)}},{key:"_getStrokeCircumference",value:function(){return 2*Math.PI*this._getCircleRadius()}},{key:"_getStrokeDashOffset",value:function(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}},{key:"_getCircleStrokeWidth",value:function(){return this.strokeWidth/this.diameter*100}},{key:"_attachStyleNode",value:function(){var e=this._styleRoot,t=this._diameter,i=n._diameters,r=i.get(e);if(!r||!r.has(t)){var a=this._document.createElement("style");a.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),a.textContent=this._getAnimationText(),e.appendChild(a),r||(r=new Set,i.set(e,r)),r.add(t)}}},{key:"_getAnimationText",value:function(){var e=this._getStrokeCircumference();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*e).replace(/END_VALUE/g,""+.2*e).replace(/DIAMETER/g,"".concat(this._spinnerAnimationLabel))}},{key:"_getSpinnerAnimationLabel",value:function(){return this.diameter.toString().replace(".","_")}}]),n}(dN)).\u0275fac=function(e){return new(e||rN)(ls(Ol),ls(ow),ls(sd,8),ls(LS,8),ls(hN))},rN.\u0275cmp=pt({type:rN,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(e,t){2&e&&(is("aria-valuemin","determinate"===t.mode?0:null)("aria-valuemax","determinate"===t.mode?100:null)("aria-valuenow","determinate"===t.mode?t.value:null)("mode",t.mode),Bs("width",t.diameter,"px")("height",t.diameter,"px"),Hs("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[jo],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",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(e,t){1&e&&(Dn(),ds(0,"svg",0),os(1,ZF,1,9,"circle",1),os(2,JF,1,7,"circle",2),hs()),2&e&&(Bs("width",t.diameter,"px")("height",t.diameter,"px"),us("ngSwitch","indeterminate"===t.mode),is("viewBox",t._getViewBox()),Oa(1),us("ngSwitchCase",!0),Oa(1),us("ngSwitchCase",!1))},directives:[Dh,Mh],styles:[cN],encapsulation:2,changeDetection:0}),rN._diameters=new WeakMap,rN),pN=((iN=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o){var s;return b(this,n),(s=t.call(this,e,i,r,a,o)).mode="indeterminate",s}return n}(fN)).\u0275fac=function(e){return new(e||iN)(ls(Ol),ls(ow),ls(sd,8),ls(LS,8),ls(hN))},iN.\u0275cmp=pt({type:iN,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,t){2&e&&(Bs("width",t.diameter,"px")("height",t.diameter,"px"),Hs("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color"},features:[jo],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",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(e,t){1&e&&(Dn(),ds(0,"svg",0),os(1,eN,1,9,"circle",1),os(2,tN,1,7,"circle",2),hs()),2&e&&(Bs("width",t.diameter,"px")("height",t.diameter,"px"),us("ngSwitch","indeterminate"===t.mode),is("viewBox",t._getViewBox()),Oa(1),us("ngSwitchCase",!0),Oa(1),us("ngSwitchCase",!1))},directives:[Dh,Mh],styles:[cN],encapsulation:2,changeDetection:0}),iN),mN=((nN=function e(){b(this,e)}).\u0275fac=function(e){return new(e||nN)},nN.\u0275mod=yt({type:nN}),nN.\u0275inj=Ne({imports:[[QS,Zh],QS]}),nN),gN=["input"],vN=function(){return{enterDuration:150}},yN=["*"],_N=new _i("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}}),bN=0,kN={provide:_b,useExisting:Ee(function(){return SN}),multi:!0},wN=function e(t,n){b(this,e),this.source=t,this.value=n},CN=new _i("MatRadioGroup"),xN=((oN=function(){function e(t){b(this,e),this._changeDetector=t,this._value=null,this._name="mat-radio-group-"+bN++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=function(){},this.onTouched=function(){},this.change=new Vu}return w(e,[{key:"name",get:function(){return this._name},set:function(e){this._name=e,this._updateRadioButtonNames()}},{key:"labelPosition",get:function(){return this._labelPosition},set:function(e){this._labelPosition="before"===e?"before":"after",this._markRadiosForCheck()}},{key:"value",get:function(){return this._value},set:function(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}},{key:"_checkSelectedRadioButton",value:function(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}},{key:"selected",get:function(){return this._selected},set:function(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=Qv(e),this._markRadiosForCheck()}},{key:"required",get:function(){return this._required},set:function(e){this._required=Qv(e),this._markRadiosForCheck()}},{key:"ngAfterContentInit",value:function(){this._isInitialized=!0}},{key:"_touch",value:function(){this.onTouched&&this.onTouched()}},{key:"_updateRadioButtonNames",value:function(){var e=this;this._radios&&this._radios.forEach(function(t){t.name=e.name,t._markForCheck()})}},{key:"_updateSelectedRadioFromValue",value:function(){var e=this;this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(function(t){t.checked=e.value===t.value,t.checked&&(e._selected=t)}))}},{key:"_emitChangeEvent",value:function(){this._isInitialized&&this.change.emit(new wN(this._selected,this._value))}},{key:"_markRadiosForCheck",value:function(){this._radios&&this._radios.forEach(function(e){return e._markForCheck()})}},{key:"writeValue",value:function(e){this.value=e,this._changeDetector.markForCheck()}},{key:"registerOnChange",value:function(e){this._controlValueAccessorChangeFn=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetector.markForCheck()}}]),e}()).\u0275fac=function(e){return new(e||oN)(ls(Jl))},oN.\u0275dir=bt({type:oN,inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"}}),oN),SN=((aN=function(e){f(n,e);var t=m(n);function n(){return b(this,n),t.apply(this,arguments)}return n}(xN)).\u0275fac=function(e){return AN(e||aN)},aN.\u0275dir=bt({type:aN,selectors:[["mat-radio-group"]],contentQueries:function(e,t,n){var i;1&e&&Zu(n,TN,1),2&e&&$u(i=Ju())&&(t._radios=i)},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[bl([kN,{provide:CN,useExisting:aN}]),jo]}),aN),AN=fi(SN),ON=KS(ZS(function e(t){b(this,e),this._elementRef=t})),EN=((uN=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o,s,l,u){var c;return b(this,n),(c=t.call(this,i))._changeDetector=r,c._focusMonitor=a,c._radioDispatcher=o,c._animationMode=s,c._providerOverride=l,c._uniqueId="mat-radio-"+ ++bN,c.id=c._uniqueId,c.change=new Vu,c._checked=!1,c._value=null,c._removeUniqueSelectionListener=function(){},c.radioGroup=e,u&&(c.tabIndex=Xv(u,0)),c._removeUniqueSelectionListener=o.listen(function(e,t){e!==c.id&&t===c.name&&(c.checked=!1)}),c}return w(n,[{key:"checked",get:function(){return this._checked},set:function(e){var t=Qv(e);this._checked!==t&&(this._checked=t,t&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!t&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),t&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}},{key:"value",get:function(){return this._value},set:function(e){this._value!==e&&(this._value=e,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}},{key:"labelPosition",get:function(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"},set:function(e){this._labelPosition=e}},{key:"disabled",get:function(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled},set:function(e){this._setDisabled(Qv(e))}},{key:"required",get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(e){this._required=Qv(e)}},{key:"color",get:function(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"},set:function(e){this._color=e}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"focus",value:function(e,t){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}},{key:"_markForCheck",value:function(){this._changeDetector.markForCheck()}},{key:"ngOnInit",value:function(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(t){!t&&e.radioGroup&&e.radioGroup._touch()})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}},{key:"_emitChangeEvent",value:function(){this.change.emit(new wN(this,this._value))}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onInputClick",value:function(e){e.stopPropagation()}},{key:"_onInputChange",value:function(e){e.stopPropagation();var t=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),t&&this.radioGroup._emitChangeEvent())}},{key:"_setDisabled",value:function(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}}]),n}(ON)).\u0275fac=function(e){return new(e||uN)(ls(xN),ls(Ol),ls(Jl),ls(Jw),ls(SO),ls(String),ls(void 0),ls(String))},uN.\u0275dir=bt({type:uN,viewQuery:function(e,t){var n;1&e&&Ku(gN,1),2&e&&$u(n=Ju())&&(t._inputElement=n.first)},inputs:{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"},features:[jo]}),uN),TN=((lN=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o,s,l,u){return b(this,n),t.call(this,e,i,r,a,o,s,l,u)}return n}(EN)).\u0275fac=function(e){return new(e||lN)(ls(CN,8),ls(Ol),ls(Jl),ls(Jw),ls(SO),ls(LS,8),ls(_N,8),mi("tabindex"))},lN.\u0275cmp=pt({type:lN,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(e,t){1&e&&ks("focus",function(){return t._inputElement.nativeElement.focus()}),2&e&&(is("tabindex",null)("id",t.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),Hs("mat-radio-checked",t.checked)("mat-radio-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-primary","primary"===t.color)("mat-accent","accent"===t.color)("mat-warn","warn"===t.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[jo],ngContentSelectors:yN,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(e,t){if(1&e&&(Es(),ds(0,"label",0,1),ds(2,"span",2),fs(3,"span",3),fs(4,"span",4),ds(5,"input",5,6),ks("change",function(e){return t._onInputChange(e)})("click",function(e){return t._onInputClick(e)}),hs(),ds(7,"span",7),fs(8,"span",8),hs(),hs(),ds(9,"span",9),ds(10,"span",10),Js(11,"\xa0"),hs(),Ts(12),hs(),hs()),2&e){var n=ss(1);is("for",t.inputId),Oa(5),us("id",t.inputId)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex)("required",t.required),is("name",t.name)("value",t.value)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-describedby",t.ariaDescribedby),Oa(2),us("matRippleTrigger",n)("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",Su(18,vN)),Oa(2),Hs("mat-radio-label-before","before"==t.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;display:block;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;display:block;height:20px;left:0;position:absolute;top:0;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}._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}),lN),PN=((sN=function e(){b(this,e)}).\u0275fac=function(e){return new(e||sN)},sN.\u0275mod=yt({type:sN}),sN.\u0275inj=Ne({imports:[[HA,QS],QS]}),sN);function DN(e){return function(t){return t.lift(new MN(e))}}var MN=function(){function e(t){b(this,e),this.value=t}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new IN(e,this.value))}}]),e}(),IN=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this,e)).value=i,r}return w(n,[{key:"_next",value:function(e){this.destination.next(this.value)}}]),n}(P),RN=["*"];function LN(e,t){if(1&e){var n=vs();ds(0,"div",2),ks("click",function(){return rn(n),As()._onBackdropClicked()}),hs()}2&e&&Hs("mat-drawer-shown",As()._isShowingBackdrop())}function FN(e,t){1&e&&(ds(0,"mat-drawer-content"),Ts(1,2),hs())}var NN,VN,BN,HN,zN,GN,jN=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],UN=["mat-drawer","mat-drawer-content","*"],WN={transformDrawer:uC("transform",[pC("open, open-instant",fC({transform:"none",visibility:"visible"})),pC("void",fC({"box-shadow":"none",visibility:"hidden"})),gC("void => open-instant",cC("0ms")),gC("void <=> open, open-instant => void",cC("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},qN=new _i("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),YN=new _i("MAT_DRAWER_CONTAINER"),QN=((GN=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o){var s;return b(this,n),(s=t.call(this,r,a,o))._changeDetectorRef=e,s._container=i,s}return w(n,[{key:"ngAfterContentInit",value:function(){var e=this;this._container._contentMarginChanges.subscribe(function(){e._changeDetectorRef.markForCheck()})}}]),n}(EO)).\u0275fac=function(e){return new(e||GN)(ls(Jl),ls(Ee(function(){return $N})),ls(Ol),ls(OO),ls(Oc))},GN.\u0275cmp=pt({type:GN,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,t){2&e&&Bs("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[jo],ngContentSelectors:RN,decls:1,vars:0,template:function(e,t){1&e&&(Es(),Ts(0))},encapsulation:2,changeDetection:0}),GN),XN=((zN=function(){function e(t,n,i,r,a,o,s){var l=this;b(this,e),this._elementRef=t,this._focusTrapFactory=n,this._focusMonitor=i,this._platform=r,this._ngZone=a,this._doc=o,this._container=s,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new j,this._animationEnd=new j,this._animationState="void",this.openedChange=new Vu(!0),this._openedStream=this.openedChange.pipe(jm(function(e){return e}),q(function(){})),this.openedStart=this._animationStarted.pipe(jm(function(e){return e.fromState!==e.toState&&0===e.toState.indexOf("open")}),DN(void 0)),this._closedStream=this.openedChange.pipe(jm(function(e){return!e}),q(function(){})),this.closedStart=this._animationStarted.pipe(jm(function(e){return e.fromState!==e.toState&&"void"===e.toState}),DN(void 0)),this._destroyed=new j,this.onPositionChanged=new Vu,this._modeChanged=new j,this.openedChange.subscribe(function(e){e?(l._doc&&(l._elementFocusedBeforeDrawerWasOpened=l._doc.activeElement),l._takeFocus()):l._isFocusWithinDrawer()&&l._restoreFocus()}),this._ngZone.runOutsideAngular(function(){zg(l._elementRef.nativeElement,"keydown").pipe(jm(function(e){return 27===e.keyCode&&!l.disableClose&&!Zk(e)}),Pp(l._destroyed)).subscribe(function(e){return l._ngZone.run(function(){l.close(),e.stopPropagation(),e.preventDefault()})})}),this._animationEnd.pipe(Op(function(e,t){return e.fromState===t.fromState&&e.toState===t.toState})).subscribe(function(e){var t=e.fromState,n=e.toState;(0===n.indexOf("open")&&"void"===t||"void"===n&&0===t.indexOf("open"))&&l.openedChange.emit(l._opened)})}return w(e,[{key:"position",get:function(){return this._position},set:function(e){(e="end"===e?"end":"start")!=this._position&&(this._position=e,this.onPositionChanged.emit())}},{key:"mode",get:function(){return this._mode},set:function(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}},{key:"disableClose",get:function(){return this._disableClose},set:function(e){this._disableClose=Qv(e)}},{key:"autoFocus",get:function(){var e=this._autoFocus;return null==e?"side"!==this.mode:e},set:function(e){this._autoFocus=Qv(e)}},{key:"opened",get:function(){return this._opened},set:function(e){this.toggle(Qv(e))}},{key:"_takeFocus",value:function(){var e=this;this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(function(t){t||"function"!=typeof e._elementRef.nativeElement.focus||e._elementRef.nativeElement.focus()})}},{key:"_restoreFocus",value:function(){this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null)}},{key:"_isFocusWithinDrawer",value:function(){var e,t=null===(e=this._doc)||void 0===e?void 0:e.activeElement;return!!t&&this._elementRef.nativeElement.contains(t)}},{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(e){return this.toggle(!0,e)}},{key:"close",value:function(){return this.toggle(!1)}},{key:"_closeViaBackdropClick",value:function(){return this._setOpen(!1,!0)}},{key:"toggle",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.opened,t=arguments.length>1?arguments[1]:void 0;return this._setOpen(e,!e&&this._isFocusWithinDrawer(),t)}},{key:"_setOpen",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"program";return this._opened=e,e?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=i):(this._animationState="void",t&&this._restoreFocus()),this._updateFocusTrapState(),new Promise(function(e){n.openedChange.pipe(Qg(1)).subscribe(function(t){return e(t?"open":"close")})})}},{key:"_getWidth",value:function(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}},{key:"_updateFocusTrapState",value:function(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}},{key:"_animationStartListener",value:function(e){this._animationStarted.next(e)}},{key:"_animationDoneListener",value:function(e){this._animationEnd.next(e)}}]),e}()).\u0275fac=function(e){return new(e||zN)(ls(Ol),ls(Hw),ls(Jw),ls(ow),ls(Oc),ls(sd,8),ls(YN,8))},zN.\u0275cmp=pt({type:zN,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,t){1&e&&ws("@transform.start",function(e){return t._animationStartListener(e)})("@transform.done",function(e){return t._animationDoneListener(e)}),2&e&&(is("align",null),ol("@transform",t._animationState),Hs("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:RN,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(e,t){1&e&&(Es(),ds(0,"div",0),Ts(1),hs())},encapsulation:2,data:{animation:[WN.transformDrawer]},changeDetection:0}),zN),$N=((HN=function(){function e(t,n,i,r,a){var o=this,s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6?arguments[6]:void 0;b(this,e),this._dir=t,this._element=n,this._ngZone=i,this._changeDetectorRef=r,this._animationMode=l,this._drawers=new Hu,this.backdropClick=new Vu,this._destroyed=new j,this._doCheckSubject=new j,this._contentMargins={left:null,right:null},this._contentMarginChanges=new j,t&&t.change.pipe(Pp(this._destroyed)).subscribe(function(){o._validateDrawers(),o.updateContentMargins()}),a.change().pipe(Pp(this._destroyed)).subscribe(function(){return o.updateContentMargins()}),this._autosize=s}return w(e,[{key:"start",get:function(){return this._start}},{key:"end",get:function(){return this._end}},{key:"autosize",get:function(){return this._autosize},set:function(e){this._autosize=Qv(e)}},{key:"hasBackdrop",get:function(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride},set:function(e){this._backdropOverride=null==e?null:Qv(e)}},{key:"scrollable",get:function(){return this._userContent||this._content}},{key:"ngAfterContentInit",value:function(){var e=this;this._allDrawers.changes.pipe(Rp(this._allDrawers),Pp(this._destroyed)).subscribe(function(t){e._drawers.reset(t.filter(function(t){return!t._container||t._container===e})),e._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Rp(null)).subscribe(function(){e._validateDrawers(),e._drawers.forEach(function(t){e._watchDrawerToggle(t),e._watchDrawerPosition(t),e._watchDrawerMode(t)}),(!e._drawers.length||e._isDrawerOpen(e._start)||e._isDrawerOpen(e._end))&&e.updateContentMargins(),e._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){e._doCheckSubject.pipe(jg(10),Pp(e._destroyed)).subscribe(function(){return e.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(e){return e.open()})}},{key:"close",value:function(){this._drawers.forEach(function(e){return e.close()})}},{key:"updateContentMargins",value:function(){var e=this,t=0,n=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._getWidth();else if("push"==this._left.mode){var i=this._left._getWidth();t+=i,n-=i}if(this._right&&this._right.opened)if("side"==this._right.mode)n+=this._right._getWidth();else if("push"==this._right.mode){var r=this._right._getWidth();n+=r,t-=r}n=n||null,(t=t||null)===this._contentMargins.left&&n===this._contentMargins.right||(this._contentMargins={left:t,right:n},this._ngZone.run(function(){return e._contentMarginChanges.next(e._contentMargins)}))}},{key:"ngDoCheck",value:function(){var e=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(function(){return e._doCheckSubject.next()})}},{key:"_watchDrawerToggle",value:function(e){var t=this;e._animationStarted.pipe(jm(function(e){return e.fromState!==e.toState}),Pp(this._drawers.changes)).subscribe(function(e){"open-instant"!==e.toState&&"NoopAnimations"!==t._animationMode&&t._element.nativeElement.classList.add("mat-drawer-transition"),t.updateContentMargins(),t._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(Pp(this._drawers.changes)).subscribe(function(){return t._setContainerClass(e.opened)})}},{key:"_watchDrawerPosition",value:function(e){var t=this;e&&e.onPositionChanged.pipe(Pp(this._drawers.changes)).subscribe(function(){t._ngZone.onMicrotaskEmpty.pipe(Qg(1)).subscribe(function(){t._validateDrawers()})})}},{key:"_watchDrawerMode",value:function(e){var t=this;e&&e._modeChanged.pipe(Pp(de(this._drawers.changes,this._destroyed))).subscribe(function(){t.updateContentMargins(),t._changeDetectorRef.markForCheck()})}},{key:"_setContainerClass",value:function(e){var t=this._element.nativeElement.classList,n="mat-drawer-container-has-open";e?t.add(n):t.remove(n)}},{key:"_validateDrawers",value:function(){var e=this;this._start=this._end=null,this._drawers.forEach(function(t){"end"==t.position?e._end=t:e._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)}},{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._closeModalDrawersViaBackdrop()}},{key:"_closeModalDrawersViaBackdrop",value:function(){var e=this;[this._start,this._end].filter(function(t){return t&&!t.disableClose&&e._canHaveBackdrop(t)}).forEach(function(e){return e._closeViaBackdropClick()})}},{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(e){return"side"!==e.mode||!!this._backdropOverride}},{key:"_isDrawerOpen",value:function(e){return null!=e&&e.opened}}]),e}()).\u0275fac=function(e){return new(e||HN)(ls(Iy,8),ls(Ol),ls(Oc),ls(Jl),ls(TO),ls(qN),ls(LS,8))},HN.\u0275cmp=pt({type:HN,selectors:[["mat-drawer-container"]],contentQueries:function(e,t,n){var i;1&e&&(Zu(n,QN,1),Zu(n,XN,1)),2&e&&($u(i=Ju())&&(t._content=i.first),$u(i=Ju())&&(t._allDrawers=i))},viewQuery:function(e,t){var n;1&e&&Ku(QN,1),2&e&&$u(n=Ju())&&(t._userContent=n.first)},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,t){2&e&&Hs("mat-drawer-container-explicit-backdrop",t._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[bl([{provide:YN,useExisting:HN}])],ngContentSelectors:UN,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(e,t){1&e&&(Es(jN),os(0,LN,1,2,"div",0),Ts(1),Ts(2,1),os(3,FN,2,0,"mat-drawer-content",1)),2&e&&(us("ngIf",t.hasBackdrop),Oa(3),us("ngIf",!t._content))},directives:[wh,QN],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}),HN),KN=((BN=function e(){b(this,e)}).\u0275fac=function(e){return new(e||BN)},BN.\u0275mod=yt({type:BN}),BN.\u0275inj=Ne({imports:[[Zh,QS,sw,PO],PO,QS]}),BN),ZN=((VN=function e(){b(this,e)}).\u0275fac=function(e){return new(e||VN)},VN.\u0275mod=yt({type:VN}),VN.\u0275inj=Ne({}),VN),JN=((NN=function e(){b(this,e)}).\u0275fac=function(e){return new(e||NN)},NN.\u0275mod=yt({type:NN}),NN.\u0275inj=Ne({imports:[[ZN,HA,QS,kw],ZN,QS]}),NN),eV=["mat-sort-header",""];function tV(e,t){if(1&e){var n=vs();ds(0,"div",3),ks("@arrowPosition.start",function(){return rn(n),As()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return rn(n),As()._disableViewStateAnimation=!1}),fs(1,"div",4),ds(2,"div",5),fs(3,"div",6),fs(4,"div",7),fs(5,"div",8),hs(),hs()}if(2&e){var i=As();us("@arrowOpacity",i._getArrowViewState())("@arrowPosition",i._getArrowViewState())("@allowChildren",i._getArrowDirectionState()),Oa(2),us("@indicator",i._getArrowDirectionState()),Oa(1),us("@leftPointer",i._getArrowDirectionState()),Oa(1),us("@rightPointer",i._getArrowDirectionState())}}var nV,iV,rV,aV,oV,sV,lV,uV=["*"],cV=new _i("MAT_SORT_DEFAULT_OPTIONS"),dV=eA(XS(function e(){b(this,e)})),hV=((nV=function(e){f(n,e);var t=m(n);function n(e){var i;return b(this,n),(i=t.call(this))._defaultOptions=e,i.sortables=new Map,i._stateChanges=new j,i.start="asc",i._direction="",i.sortChange=new Vu,i}return w(n,[{key:"direction",get:function(){return this._direction},set:function(e){this._direction=e}},{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=Qv(e)}},{key:"register",value:function(e){this.sortables.set(e.id,e)}},{key:"deregister",value:function(e){this.sortables.delete(e.id)}},{key:"sort",value:function(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}},{key:"getNextSortDirection",value:function(e){var t,n,i;if(!e)return"";var r=null!==(n=null!==(t=null==e?void 0:e.disableClear)&&void 0!==t?t:this.disableClear)&&void 0!==n?n:!!(null===(i=this._defaultOptions)||void 0===i?void 0:i.disableClear),a=function(e,t){var n=["asc","desc"];return"desc"==e&&n.reverse(),t||n.push(""),n}(e.start||this.start,r),o=a.indexOf(this.direction)+1;return o>=a.length&&(o=0),a[o]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}(dV)).\u0275fac=function(e){return new(e||nV)(ls(cV,8))},nV.\u0275dir=bt({type:nV,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[jo,It]}),nV),fV=WS.ENTERING+" "+US.STANDARD_CURVE,pV={indicator:uC("indicator",[pC("active-asc, asc",fC({transform:"translateY(0px)"})),pC("active-desc, desc",fC({transform:"translateY(10px)"})),gC("active-asc <=> active-desc",cC(fV))]),leftPointer:uC("leftPointer",[pC("active-asc, asc",fC({transform:"rotate(-45deg)"})),pC("active-desc, desc",fC({transform:"rotate(45deg)"})),gC("active-asc <=> active-desc",cC(fV))]),rightPointer:uC("rightPointer",[pC("active-asc, asc",fC({transform:"rotate(45deg)"})),pC("active-desc, desc",fC({transform:"rotate(-45deg)"})),gC("active-asc <=> active-desc",cC(fV))]),arrowOpacity:uC("arrowOpacity",[pC("desc-to-active, asc-to-active, active",fC({opacity:1})),pC("desc-to-hint, asc-to-hint, hint",fC({opacity:.54})),pC("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",fC({opacity:0})),gC("* => asc, * => desc, * => active, * => hint, * => void",cC("0ms")),gC("* <=> *",cC(fV))]),arrowPosition:uC("arrowPosition",[gC("* => desc-to-hint, * => desc-to-active",cC(fV,mC([fC({transform:"translateY(-25%)"}),fC({transform:"translateY(0)"})]))),gC("* => hint-to-desc, * => active-to-desc",cC(fV,mC([fC({transform:"translateY(0)"}),fC({transform:"translateY(25%)"})]))),gC("* => asc-to-hint, * => asc-to-active",cC(fV,mC([fC({transform:"translateY(25%)"}),fC({transform:"translateY(0)"})]))),gC("* => hint-to-asc, * => active-to-asc",cC(fV,mC([fC({transform:"translateY(0)"}),fC({transform:"translateY(-25%)"})]))),pC("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",fC({transform:"translateY(0)"})),pC("hint-to-desc, active-to-desc, desc",fC({transform:"translateY(-25%)"})),pC("hint-to-asc, active-to-asc, asc",fC({transform:"translateY(25%)"}))]),allowChildren:uC("allowChildren",[gC("* <=> *",[yC("@*",vC(),{optional:!0})])])},mV=((iV=function e(){b(this,e),this.changes=new j,this.sortButtonLabel=function(e){return"Change sorting for ".concat(e)}}).\u0275fac=function(e){return new(e||iV)},iV.\u0275prov=Le({factory:function(){return new iV},token:iV,providedIn:"root"}),iV),gV={provide:mV,deps:[[new Ui,new Wi,mV]],useFactory:function(e){return e||new mV}},vV=XS(function e(){b(this,e)}),yV=((sV=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o,s){var l;return b(this,n),(l=t.call(this))._intl=e,l._changeDetectorRef=i,l._sort=r,l._columnDef=a,l._focusMonitor=o,l._elementRef=s,l._showIndicatorHint=!1,l._arrowDirection="",l._disableViewStateAnimation=!1,l.arrowPosition="after",l._handleStateChanges(),l}return w(n,[{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=Qv(e)}},{key:"ngOnInit",value:function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(t){var n=!!t;n!==e._showIndicatorHint&&(e._setIndicatorHintVisible(n),e._changeDetectorRef.markForCheck())})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}},{key:"_setAnimationTransitionState",value:function(e){this._viewState=e,this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}},{key:"_toggleOnInteraction",value:function(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0)}},{key:"_handleClick",value:function(){this._isDisabled()||this._sort.sort(this)}},{key:"_handleKeydown",value:function(e){this._isDisabled()||32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),this._toggleOnInteraction())}},{key:"_isSorted",value:function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}},{key:"_getArrowDirectionState",value:function(){return"".concat(this._isSorted()?"active-":"").concat(this._arrowDirection)}},{key:"_getArrowViewState",value:function(){var e=this._viewState.fromState;return(e?"".concat(e,"-to-"):"")+this._viewState.toState}},{key:"_updateArrowDirection",value:function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}},{key:"_isDisabled",value:function(){return this._sort.disabled||this.disabled}},{key:"_getAriaSortAttribute",value:function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"_handleStateChanges",value:function(){var e=this;this._rerenderSubscription=de(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(function(){e._isSorted()&&(e._updateArrowDirection(),"hint"!==e._viewState.toState&&"active"!==e._viewState.toState||(e._disableViewStateAnimation=!0),e._setAnimationTransitionState({fromState:e._arrowDirection,toState:"active"}),e._showIndicatorHint=!1),!e._isSorted()&&e._viewState&&"active"===e._viewState.toState&&(e._disableViewStateAnimation=!1,e._setAnimationTransitionState({fromState:"active",toState:e._arrowDirection})),e._changeDetectorRef.markForCheck()})}}]),n}(vV)).\u0275fac=function(e){return new(e||sV)(ls(mV),ls(Jl),ls(hV,8),ls("MAT_SORT_HEADER_COLUMN_DEF",8),ls(Jw),ls(Ol))},sV.\u0275cmp=pt({type:sV,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&ks("click",function(){return t._handleClick()})("keydown",function(e){return t._handleKeydown(e)})("mouseenter",function(){return t._setIndicatorHintVisible(!0)})("mouseleave",function(){return t._setIndicatorHintVisible(!1)}),2&e&&(is("aria-sort",t._getAriaSortAttribute()),Hs("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[jo],attrs:eV,ngContentSelectors:uV,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(Es(),ds(0,"div",0),ds(1,"div",1),Ts(2),hs(),os(3,tV,6,6,"div",2),hs()),2&e&&(Hs("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"==t.arrowPosition),is("tabindex",t._isDisabled()?null:0),Oa(3),us("ngIf",t._renderArrow()))},directives:[wh],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[pV.indicator,pV.leftPointer,pV.rightPointer,pV.arrowOpacity,pV.arrowPosition,pV.allowChildren]},changeDetection:0}),sV),_V=((oV=function e(){b(this,e)}).\u0275fac=function(e){return new(e||oV)},oV.\u0275mod=yt({type:oV}),oV.\u0275inj=Ne({providers:[gV],imports:[[Zh,QS]]}),oV),bV=((aV=function e(){b(this,e)}).\u0275fac=function(e){return new(e||aV)},aV.\u0275mod=yt({type:aV}),aV.\u0275inj=Ne({imports:[[Ry]]}),aV),kV=((rV=function e(){b(this,e),this.changes=new j,this.optionalLabel="Optional"}).\u0275fac=function(e){return new(e||rV)},rV.\u0275prov=Le({factory:function(){return new rV},token:rV,providedIn:"root"}),rV),wV={provide:kV,deps:[[new Ui,new Wi,kV]],useFactory:function(e){return e||new kV}},CV=((lV=function e(){b(this,e)}).\u0275fac=function(e){return new(e||lV)},lV.\u0275mod=yt({type:lV}),lV.\u0275inj=Ne({providers:[wV,_A],imports:[[QS,Zh,HO,CP,bV,HR,HA],QS]}),lV),xV=[[["caption"]],[["colgroup"],["col"]]],SV=["caption","colgroup, col"];function AV(e){return function(e){f(n,e);var t=m(n);function n(){var e;b(this,n);for(var i=arguments.length,r=new Array(i),a=0;a4&&void 0!==arguments[4])||arguments[4],o=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],s=arguments.length>6?arguments[6]:void 0;b(this,e),this._isNativeHtmlTable=t,this._stickCellCss=n,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=a,this._needsPositionStickyOnElement=o,this._positionListener=s,this._cachedCellWidths=[],this._borderCellCss={top:"".concat(n,"-border-elem-top"),bottom:"".concat(n,"-border-elem-bottom"),left:"".concat(n,"-border-elem-left"),right:"".concat(n,"-border-elem-right")}}return w(e,[{key:"clearStickyPositioning",value:function(e,t){var n,i=this,r=[],a=s(e);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(o.nodeType===o.ELEMENT_NODE){r.push(o);for(var l=0;l3&&void 0!==arguments[3])||arguments[3];if(e.length&&this._isBrowser&&(t.some(function(e){return e})||n.some(function(e){return e}))){var a=e[0],o=a.children.length,l=this._getCellWidths(a,r),u=this._getStickyStartColumnPositions(l,t),c=this._getStickyEndColumnPositions(l,n),d=t.lastIndexOf(!0),h=n.indexOf(!0);this._scheduleStyleChanges(function(){var r,a="rtl"===i.direction,f=a?"right":"left",p=a?"left":"right",m=s(e);try{for(m.s();!(r=m.n()).done;)for(var g=r.value,v=0;v1&&void 0!==arguments[1])||arguments[1];if(!t&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var n=[],i=e.children,r=0;r0;r--)t[r]&&(n[r]=i,i+=e[r]);return n}},{key:"_scheduleStyleChanges",value:function(e){this._coalescedStyleScheduler?this._coalescedStyleScheduler.schedule(e):e()}}]),e}(),vB=new _i("CDK_SPL"),yB=((qV=function e(t,n){b(this,e),this.viewContainer=t,this.elementRef=n}).\u0275fac=function(e){return new(e||qV)(ls(du),ls(Ol))},qV.\u0275dir=bt({type:qV,selectors:[["","rowOutlet",""]]}),qV),_B=((WV=function e(t,n){b(this,e),this.viewContainer=t,this.elementRef=n}).\u0275fac=function(e){return new(e||WV)(ls(du),ls(Ol))},WV.\u0275dir=bt({type:WV,selectors:[["","headerRowOutlet",""]]}),WV),bB=((UV=function e(t,n){b(this,e),this.viewContainer=t,this.elementRef=n}).\u0275fac=function(e){return new(e||UV)(ls(du),ls(Ol))},UV.\u0275dir=bt({type:UV,selectors:[["","footerRowOutlet",""]]}),UV),kB=((jV=function e(t,n){b(this,e),this.viewContainer=t,this.elementRef=n}).\u0275fac=function(e){return new(e||jV)(ls(du),ls(Ol))},jV.\u0275dir=bt({type:jV,selectors:[["","noDataRowOutlet",""]]}),jV),wB=((GV=function(){function e(t,n,i,r,a,o,s,l,u,c,d){b(this,e),this._differs=t,this._changeDetectorRef=n,this._elementRef=i,this._dir=a,this._platform=s,this._viewRepeater=l,this._coalescedStyleScheduler=u,this._stickyPositioningListener=c,this._viewportRuler=d,this._onDestroy=new j,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.viewChange=new ep({start:0,end:Number.MAX_VALUE}),r||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=o,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return w(e,[{key:"trackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"dataSource",get:function(){return this._dataSource},set:function(e){this._dataSource!==e&&this._switchDataSource(e)}},{key:"multiTemplateDataRows",get:function(){return this._multiTemplateDataRows},set:function(e){this._multiTemplateDataRows=Qv(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}},{key:"fixedLayout",get:function(){return this._fixedLayout},set:function(e){this._fixedLayout=Qv(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}},{key:"ngOnInit",value:function(){var e=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create(function(t,n){return e.trackBy?e.trackBy(n.dataIndex,n.data):n}),this._viewportRuler&&this._viewportRuler.change().pipe(Pp(this._onDestroy)).subscribe(function(){e._forceRecalculateCellWidths=!0})}},{key:"ngAfterContentChecked",value:function(){this._cacheRowDefs(),this._cacheColumnDefs();var e=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||e,this._forceRecalculateCellWidths=e,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}},{key:"ngOnDestroy",value:function(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),fO(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var e=this;this._renderRows=this._getAllRenderRows();var t=this._dataDiffer.diff(this._renderRows);if(t){var n=this._rowOutlet.viewContainer;this._viewRepeater?this._viewRepeater.applyChanges(t,n,function(t,n,i){return e._getEmbeddedViewArgs(t.item,i)},function(e){return e.item.data},function(t){1===t.operation&&t.context&&e._renderCellTemplateForItem(t.record.item.rowDef,t.context)}):t.forEachOperation(function(t,i,r){if(null==t.previousIndex){var a=t.item;e._renderRow(e._rowOutlet,a.rowDef,r,{$implicit:a.data})}else if(null==r)n.remove(i);else{var o=n.get(i);n.move(o,r)}}),this._updateRowIndexContext(),t.forEachIdentityChange(function(e){n.get(e.currentIndex).context.$implicit=e.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}else this._updateNoDataRow()}},{key:"addColumnDef",value:function(e){this._customColumnDefs.add(e)}},{key:"removeColumnDef",value:function(e){this._customColumnDefs.delete(e)}},{key:"addRowDef",value:function(e){this._customRowDefs.add(e)}},{key:"removeRowDef",value:function(e){this._customRowDefs.delete(e)}},{key:"addHeaderRowDef",value:function(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}},{key:"setNoDataRow",value:function(e){this._customNoDataRow=e}},{key:"updateStickyHeaderRowStyles",value:function(){var e=this._getRenderedRows(this._headerRowOutlet),t=this._elementRef.nativeElement.querySelector("thead");t&&(t.style.display=e.length?"":"none");var n=this._headerRowDefs.map(function(e){return e.sticky});this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,n,"top"),this._headerRowDefs.forEach(function(e){return e.resetStickyChanged()})}},{key:"updateStickyFooterRowStyles",value:function(){var e=this._getRenderedRows(this._footerRowOutlet),t=this._elementRef.nativeElement.querySelector("tfoot");t&&(t.style.display=e.length?"":"none");var n=this._footerRowDefs.map(function(e){return e.sticky});this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(function(e){return e.resetStickyChanged()})}},{key:"updateStickyColumnStyles",value:function(){var e=this,t=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat(a(t),a(n),a(i)),["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach(function(t,n){e._addStickyColumnStyles([t],e._headerRowDefs[n])}),this._rowDefs.forEach(function(t){for(var i=[],r=0;r0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach(function(t,n){return e._renderRow(e._headerRowOutlet,t,n)}),this.updateStickyHeaderRowStyles()}},{key:"_forceRenderFooterRows",value:function(){var e=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach(function(t,n){return e._renderRow(e._footerRowOutlet,t,n)}),this.updateStickyFooterRowStyles()}},{key:"_addStickyColumnStyles",value:function(e,t){var n=this,i=Array.from(t.columns||[]).map(function(e){return n._columnDefsByName.get(e)}),r=i.map(function(e){return e.sticky}),a=i.map(function(e){return e.stickyEnd});this._stickyStyler.updateStickyColumns(e,r,a,!this._fixedLayout||this._forceRecalculateCellWidths)}},{key:"_getRenderedRows",value:function(e){for(var t=[],n=0;n3&&void 0!==arguments[3]?arguments[3]:{},r=e.viewContainer.createEmbeddedView(t.template,i,n);return this._renderCellTemplateForItem(t,i),r}},{key:"_renderCellTemplateForItem",value:function(e,t){var n,i=s(this._getCellTemplates(e));try{for(i.s();!(n=i.n()).done;){var r=n.value;dB.mostRecentCellOutlet&&dB.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,t)}}catch(a){i.e(a)}finally{i.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var e=this._rowOutlet.viewContainer,t=0,n=e.length;t0&&void 0!==arguments[0]?arguments[0]:[];return b(this,i),(e=t.call(this))._renderData=new ep([]),e._filter=new ep(""),e._internalPageChanges=new j,e._renderChangesSubscription=null,e.sortingDataAccessor=function(e,t){var n=e[t];if($v(n)){var i=Number(n);return i<9007199254740991?i:n}return n},e.sortData=function(t,n){var i=n.active,r=n.direction;return i&&""!=r?t.sort(function(t,n){var a=e.sortingDataAccessor(t,i),o=e.sortingDataAccessor(n,i),s=typeof a,l=typeof o;s!==l&&("number"===s&&(a+=""),"number"===l&&(o+=""));var u=0;return null!=a&&null!=o?a>o?u=1:a0)){var i=Math.ceil(n.length/n.pageSize)-1||0,r=Math.min(n.pageIndex,i);r!==n.pageIndex&&(n.pageIndex=r,t._internalPageChanges.next())}})}},{key:"connect",value:function(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}},{key:"disconnect",value:function(){var e;null===(e=this._renderChangesSubscription)||void 0===e||e.unsubscribe(),this._renderChangesSubscription=null}}]),i}(hO));function sH(e,t){1&e&&Ts(0)}var lH=["*"];function uH(e,t){}var cH=function(e){return{animationDuration:e}},dH=function(e,t){return{value:e,params:t}},hH=["tabBodyWrapper"],fH=["tabHeader"];function pH(e,t){}function mH(e,t){1&e&&os(0,pH,0,0,"ng-template",9),2&e&&us("cdkPortalOutlet",As().$implicit.templateLabel)}function gH(e,t){1&e&&Js(0),2&e&&el(As().$implicit.textLabel)}function vH(e,t){if(1&e){var n=vs();ds(0,"div",6),ks("click",function(){rn(n);var e=t.$implicit,i=t.index,r=As(),a=ss(1);return r._handleClick(e,a,i)})("cdkFocusChange",function(e){rn(n);var i=t.index;return As()._tabFocusChanged(e,i)}),ds(1,"div",7),os(2,mH,1,1,"ng-template",8),os(3,gH,1,1,"ng-template",8),hs(),hs()}if(2&e){var i=t.$implicit,r=t.index,a=As();Hs("mat-tab-label-active",a.selectedIndex==r),us("id",a._getTabLabelId(r))("disabled",i.disabled)("matRippleDisabled",i.disabled||a.disableRipple),is("tabIndex",a._getTabIndex(i,r))("aria-posinset",r+1)("aria-setsize",a._tabs.length)("aria-controls",a._getTabContentId(r))("aria-selected",a.selectedIndex==r)("aria-label",i.ariaLabel||null)("aria-labelledby",!i.ariaLabel&&i.ariaLabelledby?i.ariaLabelledby:null),Oa(2),us("ngIf",i.templateLabel),Oa(1),us("ngIf",!i.templateLabel)}}function yH(e,t){if(1&e){var n=vs();ds(0,"mat-tab-body",10),ks("_onCentered",function(){return rn(n),As()._removeTabBodyWrapperHeight()})("_onCentering",function(e){return rn(n),As()._setTabBodyWrapperHeight(e)}),hs()}if(2&e){var i=t.$implicit,r=t.index,a=As();Hs("mat-tab-body-active",a.selectedIndex==r),us("id",a._getTabContentId(r))("content",i.content)("position",i.position)("origin",i.origin)("animationDuration",a.animationDuration),is("aria-labelledby",a._getTabLabelId(r))}}var _H,bH,kH,wH,CH,xH,SH,AH,OH,EH,TH,PH,DH,MH,IH,RH,LH,FH,NH,VH,BH,HH,zH,GH,jH=["tabListContainer"],UH=["tabList"],WH=["nextPaginator"],qH=["previousPaginator"],YH=["mat-tab-nav-bar",""],QH=new _i("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(e){return{left:e?(e.offsetLeft||0)+"px":"0",width:e?(e.offsetWidth||0)+"px":"0"}}}}),XH=((_H=function(){function e(t,n,i,r){b(this,e),this._elementRef=t,this._ngZone=n,this._inkBarPositioner=i,this._animationMode=r}return w(e,[{key:"alignToElement",value:function(e){var t=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return t._setStyles(e)})}):this._setStyles(e)}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}},{key:"_setStyles",value:function(e){var t=this._inkBarPositioner(e),n=this._elementRef.nativeElement;n.style.left=t.left,n.style.width=t.width}}]),e}()).\u0275fac=function(e){return new(e||_H)(ls(Ol),ls(Oc),ls(QH),ls(LS,8))},_H.\u0275dir=bt({type:_H,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(e,t){2&e&&Hs("_mat-animation-noopable","NoopAnimations"===t._animationMode)}}),_H),$H=new _i("MatTabContent"),KH=new _i("MatTabLabel"),ZH=((bH=function(e){f(n,e);var t=m(n);function n(){return b(this,n),t.apply(this,arguments)}return n}(VO)).\u0275fac=function(e){return JH(e||bH)},bH.\u0275dir=bt({type:bH,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[bl([{provide:KH,useExisting:bH}]),jo]}),bH),JH=fi(ZH),ez=XS(function e(){b(this,e)}),tz=new _i("MAT_TAB_GROUP"),nz=((kH=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this))._viewContainerRef=e,r._closestTabGroup=i,r.textLabel="",r._contentPortal=null,r._stateChanges=new j,r.position=null,r.origin=null,r.isActive=!1,r}return w(n,[{key:"templateLabel",get:function(){return this._templateLabel},set:function(e){this._setTemplateLabelInput(e)}},{key:"content",get:function(){return this._contentPortal}},{key:"ngOnChanges",value:function(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new RO(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"_setTemplateLabelInput",value:function(e){e&&(this._templateLabel=e)}}]),n}(ez)).\u0275fac=function(e){return new(e||kH)(ls(du),ls(tz))},kH.\u0275cmp=pt({type:kH,selectors:[["mat-tab"]],contentQueries:function(e,t,n){var i;1&e&&(Zu(n,KH,1),Zu(n,$H,3,au)),2&e&&($u(i=Ju())&&(t.templateLabel=i.first),$u(i=Ju())&&(t._explicitContent=i.first))},viewQuery:function(e,t){var n;1&e&&Ku(au,3),2&e&&$u(n=Ju())&&(t._implicitContent=n.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[jo,It],ngContentSelectors:lH,decls:1,vars:0,template:function(e,t){1&e&&(Es(),os(0,sH,1,0,"ng-template"))},encapsulation:2}),kH),iz={translateTab:uC("translateTab",[pC("center, void, left-origin-center, right-origin-center",fC({transform:"none"})),pC("left",fC({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),pC("right",fC({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),gC("* => left, * => right, left => center, right => center",cC("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),gC("void => left-origin-center",[fC({transform:"translate3d(-100%, 0, 0)"}),cC("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),gC("void => right-origin-center",[fC({transform:"translate3d(100%, 0, 0)"}),cC("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},rz=((xH=function(e){f(n,e);var t=m(n);function n(e,i,r,a){var o;return b(this,n),(o=t.call(this,e,i,a))._host=r,o._centeringSub=O.EMPTY,o._leavingSub=O.EMPTY,o}return w(n,[{key:"ngOnInit",value:function(){var e=this;h(_(n.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe(Rp(this._host._isCenterPosition(this._host._position))).subscribe(function(t){t&&!e.hasAttached()&&e.attach(e._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){e.detach()})}},{key:"ngOnDestroy",value:function(){h(_(n.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),n}(BO)).\u0275fac=function(e){return new(e||xH)(ls(Cl),ls(du),ls(Ee(function(){return oz})),ls(sd))},xH.\u0275dir=bt({type:xH,selectors:[["","matTabBodyHost",""]],features:[jo]}),xH),az=((CH=function(){function e(t,n,i){var r=this;b(this,e),this._elementRef=t,this._dir=n,this._dirChangeSubscription=O.EMPTY,this._translateTabComplete=new j,this._onCentering=new Vu,this._beforeCentering=new Vu,this._afterLeavingCenter=new Vu,this._onCentered=new Vu(!0),this.animationDuration="500ms",n&&(this._dirChangeSubscription=n.change.subscribe(function(e){r._computePositionAnimationState(e),i.markForCheck()})),this._translateTabComplete.pipe(Op(function(e,t){return e.fromState===t.fromState&&e.toState===t.toState})).subscribe(function(e){r._isCenterPosition(e.toState)&&r._isCenterPosition(r._position)&&r._onCentered.emit(),r._isCenterPosition(e.fromState)&&!r._isCenterPosition(r._position)&&r._afterLeavingCenter.emit()})}return w(e,[{key:"position",set:function(e){this._positionIndex=e,this._computePositionAnimationState()}},{key:"ngOnInit",value:function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}},{key:"ngOnDestroy",value:function(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}},{key:"_onTranslateTabStarted",value:function(e){var t=this._isCenterPosition(e.toState);this._beforeCentering.emit(t),t&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}},{key:"_computePositionAnimationState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}},{key:"_computePositionFromOrigin",value:function(e){var t=this._getLayoutDirection();return"ltr"==t&&e<=0||"rtl"==t&&e>0?"left-origin-center":"right-origin-center"}}]),e}()).\u0275fac=function(e){return new(e||CH)(ls(Ol),ls(Iy,8),ls(Jl))},CH.\u0275dir=bt({type:CH,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),CH),oz=((wH=function(e){f(n,e);var t=m(n);function n(e,i,r){return b(this,n),t.call(this,e,i,r)}return n}(az)).\u0275fac=function(e){return new(e||wH)(ls(Ol),ls(Iy,8),ls(Jl))},wH.\u0275cmp=pt({type:wH,selectors:[["mat-tab-body"]],viewQuery:function(e,t){var n;1&e&&Ku(BO,1),2&e&&$u(n=Ju())&&(t._portalHost=n.first)},hostAttrs:[1,"mat-tab-body"],features:[jo],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,t){1&e&&(ds(0,"div",0,1),ks("@translateTab.start",function(e){return t._onTranslateTabStarted(e)})("@translateTab.done",function(e){return t._translateTabComplete.next(e)}),os(2,uH,0,0,"ng-template",2),hs()),2&e&&us("@translateTab",Ou(3,dH,t._position,Au(1,cH,t.animationDuration)))},directives:[rz],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[iz.translateTab]}}),wH),sz=new _i("MAT_TABS_CONFIG"),lz=0,uz=function e(){b(this,e)},cz=$S(KS(function e(t){b(this,e),this._elementRef=t}),"primary"),dz=((AH=function(e){f(n,e);var t=m(n);function n(e,i,r,a){var o;return b(this,n),(o=t.call(this,e))._changeDetectorRef=i,o._animationMode=a,o._tabs=new Hu,o._indexToSelect=0,o._tabBodyWrapperHeight=0,o._tabsSubscription=O.EMPTY,o._tabLabelSubscription=O.EMPTY,o._selectedIndex=null,o.headerPosition="above",o.selectedIndexChange=new Vu,o.focusChange=new Vu,o.animationDone=new Vu,o.selectedTabChange=new Vu(!0),o._groupId=lz++,o.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",o.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,o.dynamicHeight=!(!r||null==r.dynamicHeight)&&r.dynamicHeight,o}return w(n,[{key:"dynamicHeight",get:function(){return this._dynamicHeight},set:function(e){this._dynamicHeight=Qv(e)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(e){this._indexToSelect=Xv(e,null)}},{key:"animationDuration",get:function(){return this._animationDuration},set:function(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(e){var t=this._elementRef.nativeElement;t.classList.remove("mat-background-".concat(this.backgroundColor)),e&&t.classList.add("mat-background-".concat(e)),this._backgroundColor=e}},{key:"ngAfterContentChecked",value:function(){var e=this,t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){var n=null==this._selectedIndex;n||this.selectedTabChange.emit(this._createChangeEvent(t)),Promise.resolve().then(function(){e._tabs.forEach(function(e,n){return e.isActive=n===t}),n||e.selectedIndexChange.emit(t)})}this._tabs.forEach(function(n,i){n.position=i-t,null==e._selectedIndex||0!=n.position||n.origin||(n.origin=t-e._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var e=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(function(){if(e._clampTabIndex(e._indexToSelect)===e._selectedIndex)for(var t=e._tabs.toArray(),n=0;n.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),SH),fz=XS(function e(){b(this,e)}),pz=((OH=function(e){f(n,e);var t=m(n);function n(e){var i;return b(this,n),(i=t.call(this)).elementRef=e,i}return w(n,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"getOffsetLeft",value:function(){return this.elementRef.nativeElement.offsetLeft}},{key:"getOffsetWidth",value:function(){return this.elementRef.nativeElement.offsetWidth}}]),n}(fz)).\u0275fac=function(e){return new(e||OH)(ls(Ol))},OH.\u0275dir=bt({type:OH,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,t){2&e&&(is("aria-disabled",!!t.disabled),Hs("mat-tab-disabled",t.disabled))},inputs:{disabled:"disabled"},features:[jo]}),OH),mz=cw({passive:!0}),gz=((MH=function(){function e(t,n,i,r,a,o,s){var l=this;b(this,e),this._elementRef=t,this._changeDetectorRef=n,this._viewportRuler=i,this._dir=r,this._ngZone=a,this._platform=o,this._animationMode=s,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new j,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new j,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new Vu,this.indexFocused=new Vu,a.runOutsideAngular(function(){zg(t.nativeElement,"mouseleave").pipe(Pp(l._destroyed)).subscribe(function(){l._stopInterval()})})}return w(e,[{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(e){e=Xv(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}},{key:"ngAfterViewInit",value:function(){var e=this;zg(this._previousPaginator.nativeElement,"touchstart",mz).pipe(Pp(this._destroyed)).subscribe(function(){e._handlePaginatorPress("before")}),zg(this._nextPaginator.nativeElement,"touchstart",mz).pipe(Pp(this._destroyed)).subscribe(function(){e._handlePaginatorPress("after")})}},{key:"ngAfterContentInit",value:function(){var e=this,t=this._dir?this._dir.change:fp(null),n=this._viewportRuler.change(150),i=function(){e.updatePagination(),e._alignInkBarToSelectedTab()};this._keyManager=new Iw(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),de(t,n,this._items.changes).pipe(Pp(this._destroyed)).subscribe(function(){Promise.resolve().then(i),e._keyManager.withHorizontalOrientation(e._getLayoutDirection())}),this._keyManager.change.pipe(Pp(this._destroyed)).subscribe(function(t){e.indexFocused.emit(t),e._setTabFocus(t)})}},{key:"ngAfterContentChecked",value:function(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}},{key:"_handleKeydown",value:function(e){if(!Zk(e))switch(e.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e));break;default:this._keyManager.onKeydown(e)}}},{key:"_onContentChanges",value:function(){var e=this,t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(function(){e.updatePagination(),e._alignInkBarToSelectedTab(),e._changeDetectorRef.markForCheck()}))}},{key:"updatePagination",value:function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}},{key:"focusIndex",get:function(){return this._keyManager?this._keyManager.activeItemIndex:0},set:function(e){this._isValidIndex(e)&&this.focusIndex!==e&&this._keyManager&&this._keyManager.setActiveItem(e)}},{key:"_isValidIndex",value:function(e){if(!this._items)return!0;var t=this._items?this._items.toArray()[e]:null;return!!t&&!t.disabled}},{key:"_setTabFocus",value:function(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();var t=this._tabListContainer.nativeElement,n=this._getLayoutDirection();t.scrollLeft="ltr"==n?0:t.scrollWidth-t.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var e=this.scrollDistance,t="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(t),"px)"),(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(e){this._scrollTo(e)}},{key:"_scrollHeader",value:function(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}},{key:"_handlePaginatorClick",value:function(e){this._stopInterval(),this._scrollHeader(e)}},{key:"_scrollToLabel",value:function(e){if(!this.disablePagination){var t=this._items?this._items.toArray()[e]:null;if(t){var n,i,r=this._tabListContainer.nativeElement.offsetWidth,a=t.elementRef.nativeElement,o=a.offsetLeft,s=a.offsetWidth;"ltr"==this._getLayoutDirection()?i=(n=o)+s:n=(i=this._tabList.nativeElement.offsetWidth-o)-s;var l=this.scrollDistance,u=this.scrollDistance+r;nu&&(this.scrollDistance+=i-u+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var e=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}},{key:"_checkScrollingControls",value:function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}},{key:"_getMaxScrollDistance",value:function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}},{key:"_alignInkBarToSelectedTab",value:function(){var e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,t=e?e.elementRef.nativeElement:null;t?this._inkBar.alignToElement(t):this._inkBar.hide()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(e,t){var n=this;t&&null!=t.button&&0!==t.button||(this._stopInterval(),op(650,100).pipe(Pp(de(this._stopScrolling,this._destroyed))).subscribe(function(){var t=n._scrollHeader(e),i=t.maxScrollDistance,r=t.distance;(0===r||r>=i)&&n._stopInterval()}))}},{key:"_scrollTo",value:function(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var t=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(t,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:t,distance:this._scrollDistance}}}]),e}()).\u0275fac=function(e){return new(e||MH)(ls(Ol),ls(Jl),ls(TO),ls(Iy,8),ls(Oc),ls(ow),ls(LS,8))},MH.\u0275dir=bt({type:MH,inputs:{disablePagination:"disablePagination"}}),MH),vz=((DH=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o,s,l){var u;return b(this,n),(u=t.call(this,e,i,r,a,o,s,l))._disableRipple=!1,u}return w(n,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(e){this._disableRipple=Qv(e)}},{key:"_itemSelected",value:function(e){e.preventDefault()}}]),n}(gz)).\u0275fac=function(e){return new(e||DH)(ls(Ol),ls(Jl),ls(TO),ls(Iy,8),ls(Oc),ls(ow),ls(LS,8))},DH.\u0275dir=bt({type:DH,inputs:{disableRipple:"disableRipple"},features:[jo]}),DH),yz=((PH=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o,s,l){return b(this,n),t.call(this,e,i,r,a,o,s,l)}return n}(vz)).\u0275fac=function(e){return new(e||PH)(ls(Ol),ls(Jl),ls(TO),ls(Iy,8),ls(Oc),ls(ow),ls(LS,8))},PH.\u0275cmp=pt({type:PH,selectors:[["mat-tab-header"]],contentQueries:function(e,t,n){var i;1&e&&Zu(n,pz,0),2&e&&$u(i=Ju())&&(t._items=i)},viewQuery:function(e,t){var n;1&e&&(Ku(XH,3),Ku(jH,3),Ku(UH,3),Ku(WH,1),Ku(qH,1)),2&e&&($u(n=Ju())&&(t._inkBar=n.first),$u(n=Ju())&&(t._tabListContainer=n.first),$u(n=Ju())&&(t._tabList=n.first),$u(n=Ju())&&(t._nextPaginator=n.first),$u(n=Ju())&&(t._previousPaginator=n.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(e,t){2&e&&Hs("mat-tab-header-pagination-controls-enabled",t._showPaginationControls)("mat-tab-header-rtl","rtl"==t._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[jo],ngContentSelectors:lH,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,t){1&e&&(Es(),ds(0,"div",0,1),ks("click",function(){return t._handlePaginatorClick("before")})("mousedown",function(e){return t._handlePaginatorPress("before",e)})("touchend",function(){return t._stopInterval()}),fs(2,"div",2),hs(),ds(3,"div",3,4),ks("keydown",function(e){return t._handleKeydown(e)}),ds(5,"div",5,6),ks("cdkObserveContent",function(){return t._onContentChanges()}),ds(7,"div",7),Ts(8),hs(),fs(9,"mat-ink-bar"),hs(),hs(),ds(10,"div",8,9),ks("mousedown",function(e){return t._handlePaginatorPress("after",e)})("click",function(){return t._handlePaginatorClick("after")})("touchend",function(){return t._stopInterval()}),fs(12,"div",2),hs()),2&e&&(Hs("mat-tab-header-pagination-disabled",t._disableScrollBefore),us("matRippleDisabled",t._disableScrollBefore||t.disableRipple),Oa(5),Hs("_mat-animation-noopable","NoopAnimations"===t._animationMode),Oa(5),Hs("mat-tab-header-pagination-disabled",t._disableScrollAfter),us("matRippleDisabled",t._disableScrollAfter||t.disableRipple))},directives:[BA,bw,XH],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),PH),_z=((TH=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o,s,l){var u;return b(this,n),(u=t.call(this,e,a,o,i,r,s,l))._disableRipple=!1,u.color="primary",u}return w(n,[{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(e){var t=this._elementRef.nativeElement.classList;t.remove("mat-background-".concat(this.backgroundColor)),e&&t.add("mat-background-".concat(e)),this._backgroundColor=e}},{key:"disableRipple",get:function(){return this._disableRipple},set:function(e){this._disableRipple=Qv(e)}},{key:"_itemSelected",value:function(){}},{key:"ngAfterContentInit",value:function(){var e=this;this._items.changes.pipe(Rp(null),Pp(this._destroyed)).subscribe(function(){e.updateActiveLink()}),h(_(n.prototype),"ngAfterContentInit",this).call(this)}},{key:"updateActiveLink",value:function(){if(this._items){for(var e=this._items.toArray(),t=0;t.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n'],encapsulation:2}),EH),kz=ZS(KS(XS(function e(){b(this,e)}))),wz=((LH=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o,s){var l;return b(this,n),(l=t.call(this))._tabNavBar=e,l.elementRef=i,l._focusMonitor=o,l._isActive=!1,l.rippleConfig=r||{},l.tabIndex=parseInt(a)||0,"NoopAnimations"===s&&(l.rippleConfig.animation={enterDuration:0,exitDuration:0}),l}return w(n,[{key:"active",get:function(){return this._isActive},set:function(e){Qv(e)!==this._isActive&&(this._isActive=e,this._tabNavBar.updateActiveLink())}},{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}},{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this.elementRef)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this.elementRef)}}]),n}(kz)).\u0275fac=function(e){return new(e||LH)(ls(_z),ls(Ol),ls(VA,8),mi("tabindex"),ls(Jw),ls(LS,8))},LH.\u0275dir=bt({type:LH,inputs:{active:"active"},features:[jo]}),LH),Cz=((RH=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o,s,l,u){var c;return b(this,n),(c=t.call(this,e,i,o,s,l,u))._tabLinkRipple=new NA(v(c),r,i,a),c._tabLinkRipple.setupTriggerEvents(i.nativeElement),c}return w(n,[{key:"ngOnDestroy",value:function(){h(_(n.prototype),"ngOnDestroy",this).call(this),this._tabLinkRipple._removeTriggerEvents()}}]),n}(wz)).\u0275fac=function(e){return new(e||RH)(ls(bz),ls(Ol),ls(Oc),ls(ow),ls(VA,8),mi("tabindex"),ls(Jw),ls(LS,8))},RH.\u0275dir=bt({type:RH,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:7,hostBindings:function(e,t){2&e&&(is("aria-current",t.active?"page":null)("aria-disabled",t.disabled)("tabIndex",t.tabIndex),Hs("mat-tab-disabled",t.disabled)("mat-tab-label-active",t.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[jo]}),RH),xz=((IH=function e(){b(this,e)}).\u0275fac=function(e){return new(e||IH)},IH.\u0275mod=yt({type:IH}),IH.\u0275inj=Ne({imports:[[Zh,QS,HO,HA,kw,oC],QS]}),IH),Sz=["*",[["mat-toolbar-row"]]],Az=["*","mat-toolbar-row"],Oz=$S(function e(t){b(this,e),this._elementRef=t}),Ez=((VH=function e(){b(this,e)}).\u0275fac=function(e){return new(e||VH)},VH.\u0275dir=bt({type:VH,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),VH),Tz=((NH=function(e){f(n,e);var t=m(n);function n(e,i,r){var a;return b(this,n),(a=t.call(this,e))._platform=i,a._document=r,a}return w(n,[{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return e._checkToolbarMixedModes()}))}},{key:"_checkToolbarMixedModes",value:function(){}}]),n}(Oz)).\u0275fac=function(e){return new(e||NH)(ls(Ol),ls(ow),ls(sd))},NH.\u0275cmp=pt({type:NH,selectors:[["mat-toolbar"]],contentQueries:function(e,t,n){var i;1&e&&Zu(n,Ez,1),2&e&&$u(i=Ju())&&(t._toolbarRows=i)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&Hs("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[jo],ngContentSelectors:Az,decls:2,vars:0,template:function(e,t){1&e&&(Es(Sz),Ts(0),Ts(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%}\n"],encapsulation:2,changeDetection:0}),NH),Pz=((FH=function e(){b(this,e)}).\u0275fac=function(e){return new(e||FH)},FH.\u0275mod=yt({type:FH}),FH.\u0275inj=Ne({imports:[[QS],QS]}),FH),Dz=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this)).getChildren=e,r.options=i,r.options&&(r.trackBy=r.options.trackBy),r}return w(n,[{key:"expandAll",value:function(){var e,t=this;this.expansionModel.clear();var n=this.dataNodes.reduce(function(e,n){return[].concat(a(e),a(t.getDescendants(n)),[n])},[]);(e=this.expansionModel).select.apply(e,a(n.map(function(e){return t._trackByValue(e)})))}},{key:"getDescendants",value:function(e){var t=[];return this._getDescendants(t,e),t.splice(1)}},{key:"_getDescendants",value:function(e,t){var n=this;e.push(t);var i=this.getChildren(t);Array.isArray(i)?i.forEach(function(t){return n._getDescendants(e,t)}):aO(i)&&i.pipe(Qg(1),jm(Boolean)).subscribe(function(t){var i,r=s(t);try{for(r.s();!(i=r.n()).done;){var a=i.value;n._getDescendants(e,a)}}catch(o){r.e(o)}finally{r.f()}})}}]),n}(function(){function e(){b(this,e),this.expansionModel=new xO(!0)}return w(e,[{key:"toggle",value:function(e){this.expansionModel.toggle(this._trackByValue(e))}},{key:"expand",value:function(e){this.expansionModel.select(this._trackByValue(e))}},{key:"collapse",value:function(e){this.expansionModel.deselect(this._trackByValue(e))}},{key:"isExpanded",value:function(e){return this.expansionModel.isSelected(this._trackByValue(e))}},{key:"toggleDescendants",value:function(e){this.expansionModel.isSelected(this._trackByValue(e))?this.collapseDescendants(e):this.expandDescendants(e)}},{key:"collapseAll",value:function(){this.expansionModel.clear()}},{key:"expandDescendants",value:function(e){var t,n=this,i=[e];i.push.apply(i,a(this.getDescendants(e))),(t=this.expansionModel).select.apply(t,a(i.map(function(e){return n._trackByValue(e)})))}},{key:"collapseDescendants",value:function(e){var t,n=this,i=[e];i.push.apply(i,a(this.getDescendants(e))),(t=this.expansionModel).deselect.apply(t,a(i.map(function(e){return n._trackByValue(e)})))}},{key:"_trackByValue",value:function(e){return this.trackBy?this.trackBy(e):e}}]),e}()),Mz=new _i("CDK_TREE_NODE_OUTLET_NODE"),Iz=((BH=function e(t,n){b(this,e),this.viewContainer=t,this._node=n}).\u0275fac=function(e){return new(e||BH)(ls(du),ls(Mz,8))},BH.\u0275dir=bt({type:BH,selectors:[["","cdkTreeNodeOutlet",""]]}),BH),Rz=function e(t){b(this,e),this.$implicit=t},Lz=((GH=function e(t){b(this,e),this.template=t}).\u0275fac=function(e){return new(e||GH)(ls(au))},GH.\u0275dir=bt({type:GH,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),GH),Fz=((zH=function(){function e(t,n){b(this,e),this._differs=t,this._changeDetectorRef=n,this._onDestroy=new j,this._levels=new Map,this.viewChange=new ep({start:0,end:Number.MAX_VALUE})}return w(e,[{key:"dataSource",get:function(){return this._dataSource},set:function(e){this._dataSource!==e&&this._switchDataSource(e)}},{key:"ngOnInit",value:function(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}},{key:"ngOnDestroy",value:function(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}},{key:"ngAfterContentChecked",value:function(){var e=this._nodeDefs.filter(function(e){return!e.when});this._defaultNodeDef=e[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}},{key:"_switchDataSource",value:function(e){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),e||this._nodeOutlet.viewContainer.clear(),this._dataSource=e,this._nodeDefs&&this._observeRenderChanges()}},{key:"_observeRenderChanges",value:function(){var e,t=this;fO(this._dataSource)?e=this._dataSource.connect(this):aO(this._dataSource)?e=this._dataSource:Array.isArray(this._dataSource)&&(e=fp(this._dataSource)),e&&(this._dataSubscription=e.pipe(Pp(this._onDestroy)).subscribe(function(e){return t.renderNodeChanges(e)}))}},{key:"renderNodeChanges",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._dataDiffer,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._nodeOutlet.viewContainer,r=arguments.length>3?arguments[3]:void 0,a=n.diff(e);a&&(a.forEachOperation(function(n,a,o){if(null==n.previousIndex)t.insertNode(e[o],o,i,r);else if(null==o)i.remove(a),t._levels.delete(n.item);else{var s=i.get(a);i.move(s,o)}}),this._changeDetectorRef.detectChanges())}},{key:"_getNodeDef",value:function(e,t){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(function(n){return n.when&&n.when(t,e)})||this._defaultNodeDef}},{key:"insertNode",value:function(e,t,n,i){var r=this._getNodeDef(e,t),a=new Rz(e);a.level=this.treeControl.getLevel?this.treeControl.getLevel(e):void 0!==i&&this._levels.has(i)?this._levels.get(i)+1:0,this._levels.set(e,a.level),(n||this._nodeOutlet.viewContainer).createEmbeddedView(r.template,a,t),Nz.mostRecentTreeNode&&(Nz.mostRecentTreeNode.data=e)}}]),e}()).\u0275fac=function(e){return new(e||zH)(ls(ql),ls(Jl))},zH.\u0275cmp=pt({type:zH,selectors:[["cdk-tree"]],contentQueries:function(e,t,n){var i;1&e&&Zu(n,Lz,1),2&e&&$u(i=Ju())&&(t._nodeDefs=i)},viewQuery:function(e,t){var n;1&e&&Ku(Iz,3),2&e&&$u(n=Ju())&&(t._nodeOutlet=n.first)},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(e,t){1&e&&gs(0,0)},directives:[Iz],encapsulation:2}),zH),Nz=((HH=function(){function e(t,n){b(this,e),this._elementRef=t,this._tree=n,this._destroyed=new j,this._dataChanges=new j,e.mostRecentTreeNode=this,this._elementRef.nativeElement.classList.add("cdk-tree-node"),this.role="treeitem"}return w(e,[{key:"role",get:function(){return"treeitem"},set:function(e){this._elementRef.nativeElement.setAttribute("role",e)}},{key:"data",get:function(){return this._data},set:function(e){e!==this._data&&(this._data=e,this._setRoleFromData(),this._dataChanges.next())}},{key:"isExpanded",get:function(){return this._tree.treeControl.isExpanded(this._data)}},{key:"_setExpanded",value:function(e){this._isAriaExpanded=e,this._elementRef.nativeElement.setAttribute("aria-expanded","".concat(e))}},{key:"level",get:function(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}},{key:"ngOnInit",value:function(){this._parentNodeAriaLevel=function(e){for(var t,n=e.parentElement;n&&(t=void 0,!(null==(t=n.classList)?void 0:t.contains("cdk-nested-tree-node"))&&!(null==t?void 0:t.contains("cdk-tree")));)n=n.parentElement;return n?n.classList.contains("cdk-nested-tree-node")?Xv(n.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level","".concat(this.level+1))}},{key:"ngDoCheck",value:function(){this.isExpanded!=this._isAriaExpanded&&this._setExpanded(this.isExpanded)}},{key:"ngOnDestroy",value:function(){e.mostRecentTreeNode===this&&(e.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"focus",value:function(){this._elementRef.nativeElement.focus()}},{key:"_setRoleFromData",value:function(){this.role="treeitem"}}]),e}()).\u0275fac=function(e){return new(e||HH)(ls(Ol),ls(Fz))},HH.\u0275dir=bt({type:HH,selectors:[["cdk-tree-node"]],inputs:{role:"role"},exportAs:["cdkTreeNode"]}),HH.mostRecentTreeNode=null,HH);var Vz,Bz,Hz,zz,Gz,jz,Uz,Wz,qz,Yz,Qz,Xz,$z=((Vz=function(e){f(n,e);var t=m(n);function n(e,i,r){var a;return b(this,n),(a=t.call(this,e,i))._elementRef=e,a._tree=i,a._differs=r,a._elementRef.nativeElement.classList.add("cdk-nested-tree-node"),a}return w(n,[{key:"ngAfterContentInit",value:function(){var e=this;this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);var t=this._tree.treeControl.getChildren(this.data);Array.isArray(t)?this.updateChildrenNodes(t):aO(t)&&t.pipe(Pp(this._destroyed)).subscribe(function(t){return e.updateChildrenNodes(t)}),this.nodeOutlet.changes.pipe(Pp(this._destroyed)).subscribe(function(){return e.updateChildrenNodes()})}},{key:"ngOnInit",value:function(){h(_(n.prototype),"ngOnInit",this).call(this)}},{key:"ngDoCheck",value:function(){h(_(n.prototype),"ngDoCheck",this).call(this)}},{key:"ngOnDestroy",value:function(){this._clear(),h(_(n.prototype),"ngOnDestroy",this).call(this)}},{key:"updateChildrenNodes",value:function(e){var t=this._getNodeOutlet();e&&(this._children=e),t&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,t.viewContainer,this._data):this._dataDiffer.diff([])}},{key:"_clear",value:function(){var e=this._getNodeOutlet();e&&(e.viewContainer.clear(),this._dataDiffer.diff([]))}},{key:"_getNodeOutlet",value:function(){var e=this,t=this.nodeOutlet;return t&&t.find(function(t){return!t._node||t._node===e})}}]),n}(Nz)).\u0275fac=function(e){return new(e||Vz)(ls(Ol),ls(Fz),ls(ql))},Vz.\u0275dir=bt({type:Vz,selectors:[["cdk-nested-tree-node"]],contentQueries:function(e,t,n){var i;1&e&&Zu(n,Iz,1),2&e&&$u(i=Ju())&&(t.nodeOutlet=i)},inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[bl([{provide:Nz,useExisting:Vz},{provide:Mz,useExisting:Vz}]),jo]}),Vz),Kz=/([A-Za-z%]+)$/,Zz=((zz=function(){function e(t,n,i,r){var a=this;b(this,e),this._treeNode=t,this._tree=n,this._element=i,this._dir=r,this._destroyed=new j,this.indentUnits="px",this._indent=40,this._setPadding(),r&&r.change.pipe(Pp(this._destroyed)).subscribe(function(){return a._setPadding(!0)}),t._dataChanges.subscribe(function(){return a._setPadding()})}return w(e,[{key:"level",get:function(){return this._level},set:function(e){this._setLevelInput(e)}},{key:"indent",get:function(){return this._indent},set:function(e){this._setIndentInput(e)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_paddingIndent",value:function(){var e=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,t=null==this._level?e:this._level;return"number"==typeof t?"".concat(t*this._indent).concat(this.indentUnits):null}},{key:"_setPadding",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._paddingIndent();if(t!==this._currentPadding||e){var n=this._element.nativeElement,i=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",r="paddingLeft"===i?"paddingRight":"paddingLeft";n.style[i]=t||"",n.style[r]="",this._currentPadding=t}}},{key:"_setLevelInput",value:function(e){this._level=Xv(e,null),this._setPadding()}},{key:"_setIndentInput",value:function(e){var t=e,n="px";if("string"==typeof e){var i=e.split(Kz);t=i[0],n=i[1]||n}this.indentUnits=n,this._indent=Xv(t),this._setPadding()}}]),e}()).\u0275fac=function(e){return new(e||zz)(ls(Nz),ls(Fz),ls(Ol),ls(Iy,8))},zz.\u0275dir=bt({type:zz,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),zz),Jz=((Hz=function(){function e(t,n){b(this,e),this._tree=t,this._treeNode=n,this._recursive=!1}return w(e,[{key:"recursive",get:function(){return this._recursive},set:function(e){this._recursive=Qv(e)}},{key:"_toggle",value:function(e){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),e.stopPropagation()}}]),e}()).\u0275fac=function(e){return new(e||Hz)(ls(Fz),ls(Nz))},Hz.\u0275dir=bt({type:Hz,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(e,t){1&e&&ks("click",function(e){return t._toggle(e)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),Hz),eG=((Bz=function e(){b(this,e)}).\u0275fac=function(e){return new(e||Bz)},Bz.\u0275mod=yt({type:Bz}),Bz.\u0275inj=Ne({}),Bz),tG=ZS(XS(Nz)),nG=((jz=function(e){f(n,e);var t=m(n);function n(e,i,r){var a;return b(this,n),(a=t.call(this,e,i))._elementRef=e,a._tree=i,a.tabIndex=Number(r)||0,a._elementRef.nativeElement.classList.add("mat-tree-node"),a}return w(n,[{key:"ngOnInit",value:function(){h(_(n.prototype),"ngOnInit",this).call(this)}},{key:"ngDoCheck",value:function(){h(_(n.prototype),"ngDoCheck",this).call(this)}},{key:"ngOnDestroy",value:function(){h(_(n.prototype),"ngOnDestroy",this).call(this)}}]),n}(tG)).\u0275fac=function(e){return new(e||jz)(ls(Ol),ls(Fz),mi("tabindex"))},jz.\u0275dir=bt({type:jz,selectors:[["mat-tree-node"]],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[bl([{provide:Nz,useExisting:jz}]),jo]}),jz),iG=((Gz=function(e){f(n,e);var t=m(n);function n(){return b(this,n),t.apply(this,arguments)}return n}(Lz)).\u0275fac=function(e){return rG(e||Gz)},Gz.\u0275dir=bt({type:Gz,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[bl([{provide:Lz,useExisting:Gz}]),jo]}),Gz),rG=fi(iG),aG=((Wz=function(e){f(n,e);var t=m(n);function n(e,i,r,a){var o;return b(this,n),(o=t.call(this,e,i,r))._elementRef=e,o._tree=i,o._differs=r,o._disabled=!1,o.tabIndex=Number(a)||0,o._elementRef.nativeElement.classList.add("mat-nested-tree-node"),o}return w(n,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=Qv(e)}},{key:"tabIndex",get:function(){return this.disabled?-1:this._tabIndex},set:function(e){this._tabIndex=null!=e?e:0}},{key:"ngOnInit",value:function(){h(_(n.prototype),"ngOnInit",this).call(this)}},{key:"ngDoCheck",value:function(){h(_(n.prototype),"ngDoCheck",this).call(this)}},{key:"ngAfterContentInit",value:function(){h(_(n.prototype),"ngAfterContentInit",this).call(this)}},{key:"ngOnDestroy",value:function(){h(_(n.prototype),"ngOnDestroy",this).call(this)}}]),n}($z)).\u0275fac=function(e){return new(e||Wz)(ls(Ol),ls(Fz),ls(ql),mi("tabindex"))},Wz.\u0275dir=bt({type:Wz,selectors:[["mat-nested-tree-node"]],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[bl([{provide:$z,useExisting:Wz},{provide:Nz,useExisting:Wz},{provide:Mz,useExisting:Wz}]),jo]}),Wz),oG=((Uz=function(e){f(n,e);var t=m(n);function n(){return b(this,n),t.apply(this,arguments)}return w(n,[{key:"level",get:function(){return this._level},set:function(e){this._setLevelInput(e)}},{key:"indent",get:function(){return this._indent},set:function(e){this._setIndentInput(e)}}]),n}(Zz)).\u0275fac=function(e){return sG(e||Uz)},Uz.\u0275dir=bt({type:Uz,selectors:[["","matTreeNodePadding",""]],inputs:{level:["matTreeNodePadding","level"],indent:["matTreeNodePaddingIndent","indent"]},features:[bl([{provide:Zz,useExisting:Uz}]),jo]}),Uz),sG=fi(oG),lG=((Yz=function e(t,n){b(this,e),this.viewContainer=t,this._node=n}).\u0275fac=function(e){return new(e||Yz)(ls(du),ls(Mz,8))},Yz.\u0275dir=bt({type:Yz,selectors:[["","matTreeNodeOutlet",""]],features:[bl([{provide:Iz,useExisting:Yz}])]}),Yz),uG=((qz=function(e){f(n,e);var t=m(n);function n(){return b(this,n),t.apply(this,arguments)}return n}(Fz)).\u0275fac=function(e){return cG(e||qz)},qz.\u0275cmp=pt({type:qz,selectors:[["mat-tree"]],viewQuery:function(e,t){var n;1&e&&Ku(lG,3),2&e&&$u(n=Ju())&&(t._nodeOutlet=n.first)},hostAttrs:["role","tree",1,"mat-tree","cdk-tree"],exportAs:["matTree"],features:[bl([{provide:Fz,useExisting:qz}]),jo],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(e,t){1&e&&gs(0,0)},directives:[lG],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}\n"],encapsulation:2}),qz),cG=fi(uG),dG=((Qz=function(e){f(n,e);var t=m(n);function n(){return b(this,n),t.apply(this,arguments)}return w(n,[{key:"recursive",get:function(){return this._recursive},set:function(e){this._recursive=Qv(e)}}]),n}(Jz)).\u0275fac=function(e){return hG(e||Qz)},Qz.\u0275dir=bt({type:Qz,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[bl([{provide:Jz,useExisting:Qz}]),jo]}),Qz),hG=fi(dG),fG=((Xz=function e(){b(this,e)}).\u0275fac=function(e){return new(e||Xz)},Xz.\u0275mod=yt({type:Xz}),Xz.\u0275inj=Ne({imports:[[eG,QS],QS]}),Xz),pG=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments))._data=new ep([]),e}return w(n,[{key:"data",get:function(){return this._data.value},set:function(e){this._data.next(e)}},{key:"connect",value:function(e){var t=this;return de(e.viewChange,this._data).pipe(q(function(){return t.data}))}},{key:"disconnect",value:function(){}}]),n}(hO);function mG(){for(var e=arguments.length,t=new Array(e),n=0;n0){var r=i.indexOf(n);-1!==r&&i.splice(r,1)}}},{key:"notifyComplete",value:function(){}},{key:"_next",value:function(e){if(0===this.toRespond.length){var t=[e].concat(a(this.values));this.project?this._tryProject(t):this.destination.next(t)}}},{key:"_tryProject",value:function(e){var t;try{t=this.project.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(eF);function yG(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new bG(e,t,n))}}var _G,bG=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];b(this,e),this.accumulator=t,this.seed=n,this.hasSeed=i}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new kG(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),kG=function(e){f(n,e);var t=m(n);function n(e,i,r,a){var o;return b(this,n),(o=t.call(this,e)).accumulator=i,o._seed=r,o.hasSeed=a,o.index=0,o}return w(n,[{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}},{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(i){this.destination.error(i)}this.seed=t,this.destination.next(t)}}]),n}(P),wG=function(){function e(t){b(this,e),this.predicate=t}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new CG(e,this.predicate))}}]),e}(),CG=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this,e)).predicate=i,r.skipping=!0,r.index=0,r}return w(n,[{key:"_next",value:function(e){var t=this.destination;this.skipping&&this.tryCallPredicate(e),this.skipping||t.next(e)}},{key:"tryCallPredicate",value:function(e){try{var t=this.predicate(e,this.index++);this.skipping=Boolean(t)}catch(n){this.destination.error(n)}}}]),n}(P),xG=["youtubeContainer"],SG=((_G=function(){function e(t,n){b(this,e),this._ngZone=t,this._youtubeContainer=new j,this._destroyed=new j,this._playerChanges=new ep(void 0),this._videoId=new ep(void 0),this._height=new ep(390),this._width=new ep(640),this._startSeconds=new ep(void 0),this._endSeconds=new ep(void 0),this._suggestedQuality=new ep(void 0),this._playerVars=new ep(void 0),this.ready=this._getLazyEmitter("onReady"),this.stateChange=this._getLazyEmitter("onStateChange"),this.error=this._getLazyEmitter("onError"),this.apiChange=this._getLazyEmitter("onApiChange"),this.playbackQualityChange=this._getLazyEmitter("onPlaybackQualityChange"),this.playbackRateChange=this._getLazyEmitter("onPlaybackRateChange"),this._isBrowser=Jh(n)}return w(e,[{key:"videoId",get:function(){return this._videoId.value},set:function(e){this._videoId.next(e)}},{key:"height",get:function(){return this._height.value},set:function(e){this._height.next(e||390)}},{key:"width",get:function(){return this._width.value},set:function(e){this._width.next(e||640)}},{key:"startSeconds",set:function(e){this._startSeconds.next(e)}},{key:"endSeconds",set:function(e){this._endSeconds.next(e)}},{key:"suggestedQuality",set:function(e){this._suggestedQuality.next(e)}},{key:"playerVars",get:function(){return this._playerVars.value},set:function(e){this._playerVars.next(e)}},{key:"ngOnInit",value:function(){var e=this;if(this._isBrowser){var t=fp(!0);if(!window.YT||!window.YT.Player){var i=new j;this._existingApiReadyCallback=window.onYouTubeIframeAPIReady,window.onYouTubeIframeAPIReady=function(){e._existingApiReadyCallback&&e._existingApiReadyCallback(),e._ngZone.run(function(){return i.next(!0)})},t=i.pipe(Qg(1),Rp(!1))}var r,o=function(e,t,i,r,o,s,l){var u,c=rF([t,s]).pipe(mG(rF([r,o])),q(function(e){var t=n(e,2),i=t[0],r=t[1],a=n(i,2),o=a[0],s=a[1],l=n(r,2),u=l[0],c=l[1];return o?{videoId:o,playerVars:s,width:u,height:c}:void 0}));return rF([e,c,fp(l)]).pipe(R(function(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0},t=e.emitEvent;return i={called:!0,emitEvent:t||i.emitEvent}},t(),i.called&&n({emitEvent:i.emitEvent}),e._updateTreeValidity=n}var ZG,JG,ej=new _i("FORMLY_CONFIG"),tj=((JG=function(){function e(){b(this,e),this.types={},this.validators={},this.wrappers={},this.messages={},this.templateManipulators={preWrapper:[],postWrapper:[]},this.extras={checkExpressionOn:"changeDetectionCheck",lazyRender:!1,showError:function(e){return e.formControl&&e.formControl.invalid&&(e.formControl.touched||e.options.parentForm&&e.options.parentForm.submitted||!(!e.field.validation||!e.field.validation.show))}},this.extensions={}}return w(e,[{key:"addConfig",value:function(e){var t=this;e.types&&e.types.forEach(function(e){return t.setType(e)}),e.validators&&e.validators.forEach(function(e){return t.setValidator(e)}),e.wrappers&&e.wrappers.forEach(function(e){return t.setWrapper(e)}),e.manipulators&&(console.warn("NgxFormly: passing 'manipulators' config is deprecated, use custom extension instead."),e.manipulators.forEach(function(e){return t.setManipulator(e)})),e.validationMessages&&e.validationMessages.forEach(function(e){return t.addValidatorMessage(e.name,e.message)}),e.extensions&&e.extensions.forEach(function(e){return t.extensions[e.name]=e.extension}),e.extras&&(this.extras=Object.assign({},this.extras,e.extras))}},{key:"setType",value:function(e){var t=this;Array.isArray(e)?e.forEach(function(e){return t.setType(e)}):(this.types[e.name]||(this.types[e.name]={name:e.name}),["component","extends","defaultOptions","wrappers"].forEach(function(n){e.hasOwnProperty(n)&&(t.types[e.name][n]=e[n])}))}},{key:"getType",value:function(e){if(!this.types[e])throw new Error('[Formly Error] The type "'.concat(e,'" could not be found. Please make sure that is registered through the FormlyModule declaration.'));return this.mergeExtendedType(e),this.types[e]}},{key:"getMergedField",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.getType(t.type);n.defaultOptions&&jG(t,n.defaultOptions);var i=n.extends&&this.getType(n.extends).defaultOptions;i&&jG(t,i),t&&t.optionsTypes&&t.optionsTypes.forEach(function(n){var i=e.getType(n).defaultOptions;i&&jG(t,i)});var r=this.resolveFieldTypeRef(t);r&&r.instance&&r.instance.defaultOptions&&jG(t,r.instance.defaultOptions),!t.wrappers&&n.wrappers&&(t.wrappers=a(n.wrappers))}},{key:"resolveFieldTypeRef",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e.type)return null;var t=this.getType(e.type);if(!t.component||t._componentRef)return t._componentRef;var n=e.parent.options,i=n._resolver,r=n._injector,a=i.resolveComponentFactory(t.component).create(r);return XG(t,"_componentRef",a),a.destroy(),t._componentRef}},{key:"setWrapper",value:function(e){var t=this;this.wrappers[e.name]=e,e.types&&e.types.forEach(function(n){t.setTypeWrapper(n,e.name)})}},{key:"getWrapper",value:function(e){if(!this.wrappers[e])throw new Error('[Formly Error] The wrapper "'.concat(e,'" could not be found. Please make sure that is registered through the FormlyModule declaration.'));return this.wrappers[e]}},{key:"setTypeWrapper",value:function(e,t){this.types[e]||(this.types[e]={}),this.types[e].wrappers||(this.types[e].wrappers=[]),-1===this.types[e].wrappers.indexOf(t)&&this.types[e].wrappers.push(t)}},{key:"setValidator",value:function(e){this.validators[e.name]=e}},{key:"getValidator",value:function(e){if(!this.validators[e])throw new Error('[Formly Error] The validator "'.concat(e,'" could not be found. Please make sure that is registered through the FormlyModule declaration.'));return this.validators[e]}},{key:"addValidatorMessage",value:function(e,t){this.messages[e]=t}},{key:"getValidatorMessage",value:function(e){return this.messages[e]}},{key:"setManipulator",value:function(e){(new e.class)[e.method](this)}},{key:"mergeExtendedType",value:function(e){if(this.types[e].extends){var t=this.getType(this.types[e].extends);this.types[e].component||(this.types[e].component=t.component),this.types[e].wrappers||(this.types[e].wrappers=t.wrappers)}}}]),e}()).\u0275fac=function(e){return new(e||JG)},JG.\u0275prov=Le({token:JG,factory:JG.\u0275fac,providedIn:"root"}),JG.ngInjectableDef=Fe({factory:function(){return new JG},token:JG,providedIn:"root"}),JG),nj=((ZG=function(){function e(t,n,i){b(this,e),this.formlyConfig=t,this.componentFactoryResolver=n,this.injector=i}return w(e,[{key:"buildForm",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if(!this.formlyConfig.extensions.core)throw new Error("NgxFormly: missing `forRoot()` call. use `forRoot()` when registering the `FormlyModule`.");var a={fieldGroup:n,model:i,formControl:e,options:this._setOptions(r)};KG(e,function(){return t._buildForm(a)}),a.options._checkField(a,!0)}},{key:"_buildForm",value:function(e){var t=this;this.getExtensions().forEach(function(t){return t.prePopulate&&t.prePopulate(e)}),this.getExtensions().forEach(function(t){return t.onPopulate&&t.onPopulate(e)}),e.fieldGroup&&e.fieldGroup.forEach(function(e){return t._buildForm(e)}),this.getExtensions().forEach(function(t){return t.postPopulate&&t.postPopulate(e)})}},{key:"getExtensions",value:function(){var e=this;return Object.keys(this.formlyConfig.extensions).map(function(t){return e.formlyConfig.extensions[t]})}},{key:"_setOptions",value:function(e){var t=this;return(e=e||{}).formState=e.formState||{},e.showError||(e.showError=this.formlyConfig.extras.showError),e.fieldChanges||XG(e,"fieldChanges",new j),e._resolver||XG(e,"_resolver",this.componentFactoryResolver),e._injector||XG(e,"_injector",this.injector),e._hiddenFieldsForCheck||(e._hiddenFieldsForCheck=[]),e._markForCheck||(e._markForCheck=function(t){t._componentRefs&&t._componentRefs.forEach(function(e){e.injector.get(Jl).markForCheck()}),t.fieldGroup&&t.fieldGroup.forEach(function(t){return e._markForCheck(t)})}),e._buildField||(e._buildField=function(e){return t.buildForm(e.form,e.fieldGroup,e.model,e.options),e}),e}}]),e}()).\u0275fac=function(e){return new(e||ZG)(Ni(tj),Ni(Cl),Ni(zo))},ZG.\u0275prov=Le({token:ZG,factory:ZG.\u0275fac,providedIn:"root"}),ZG.ngInjectableDef=Fe({factory:function(){return new ZG(Vi(tj),Vi(Cl),Vi(Ao))},token:ZG,providedIn:"root"}),ZG);function ij(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.formControl.parent;if(n){var i=e.formControl,r={emitEvent:t};if(n instanceof Dk){var a=n.controls.findIndex(function(e){return e===i});-1!==a&&sj(n,r,function(){return n.removeAt(a)})}else if(n instanceof Pk){var o=BG(e),s=o[o.length-1];n.get([s])===i&&sj(n,r,function(){return n.removeControl(s)})}i.setParent(null)}}function rj(e){if(e.formControl)return e.formControl;if(!1===e.shareFormControl)return null;var t=e.parent.formControl;return t?t.get(BG(e)):null}function aj(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(t=t||e.formControl)._fields||XG(t,"_fields",[]),-1===t._fields.indexOf(e)&&t._fields.push(e),!e.formControl&&t&&(XG(e,"formControl",t),e.templateOptions.disabled=!!e.templateOptions.disabled,$G(e.templateOptions,"disabled",function(t){var n=t.firstChange,i=t.currentValue;n||(i?e.formControl.disable():e.formControl.enable())}),t.registerOnDisabledChange&&t.registerOnDisabledChange(function(t){e.templateOptions.___$disabled=t,e.options&&e.options._markForCheck(e)}));var i=e.parent.formControl;if(i&&e.key){var r=BG(e),a=GG(e);UG(t.value)&&UG(a)||t.value===a||!(t instanceof Tk)||t.patchValue(a);for(var o=function(e){var t=r[e];i.get([t])||sj(i,{emitEvent:n},function(){return i.setControl(t,new Pk({}))}),i=i.get([t])},s=0;s0&&void 0!==arguments[0]&&arguments[0];e.clearModelSubscriptions(),e.formlyBuilder.buildForm(e.form,e.fields,e.model,e.options),e.trackModelChanges(e.fields),t&&e.modelChange.emit(e._modelChangeValue=QG(e.model))})}},{key:"checkExpressionChange",value:function(){this.options&&this.options._checkField&&this.options._checkField({fieldGroup:this.fields,model:this.model,formControl:this.form,options:this.options})}},{key:"trackModelChanges",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e.forEach(function(e){if(e.key&&!e.fieldGroup){var i=e.formControl,r=i.valueChanges.pipe(Op(function(e,t){return e===t&&!Array.isArray(e)&&!YG(e)})),o=e.modelOptions,s=o.updateOn,l=o.debounce;(!s||"change"===s)&&l&&l.default>0&&(r=i.valueChanges.pipe(jg(l.default))),t.modelChangeSubs.push(r.subscribe(function(r){i instanceof Tk&&i._fields&&i._fields.length>1&&i.patchValue(r,{emitEvent:!1,onlySelf:!0}),e.parsers&&e.parsers.length>0&&e.parsers.forEach(function(e){return r=e(r)}),t.changeModel({key:[].concat(a(n),a(BG(e))).join("."),value:r,field:e})}));var u=i.valueChanges.observers;u&&u.length>1&&u.unshift(u.pop())}e.fieldGroup&&e.fieldGroup.length>0&&t.trackModelChanges(e.fieldGroup,e.key?[].concat(a(n),a(BG(e))):n)})}},{key:"clearModelSubscriptions",value:function(){this.modelChangeSubs.forEach(function(e){return e.unsubscribe()}),this.modelChangeSubs=[]}},{key:"field",get:function(){return this.fields&&this.fields[0]&&this.fields[0].parent}}]),e}()).\u0275fac=function(e){return new(e||pj)(ls(nj),ls(tj),ls(Oc),mi("immutable"),ls(qk,8))},pj.\u0275cmp=pt({type:pj,selectors:[["formly-form"]],viewQuery:function(e,t){var n;1&e&&Ku(DG,1),2&e&&$u(n=Ju())&&(t.content=n.first)},inputs:{model:"model",fields:"fields",options:"options",form:"form"},outputs:{modelChange:"modelChange"},features:[bl([nj]),It],ngContentSelectors:IG,decls:4,vars:1,consts:[["hide-deprecation","",3,"form","options","model","field",4,"ngFor","ngForOf"],["content",""],["hide-deprecation","",3,"form","options","model","field"]],template:function(e,t){1&e&&(Es(),os(0,MG,1,4,"formly-field",0),ps(1,null,1),Ts(3),ms()),2&e&&us("ngForOf",t.fields)},directives:function(){return[bh,_j]},encapsulation:2}),pj),_j=((fj=function(){function e(t,n,i,r,a){b(this,e),this.formlyConfig=t,this.renderer=n,this.resolver=i,this.elementRef=r,this.warnDeprecation=!1,this.modelChange=new Vu,this.hostObservers=[],this.componentRefs=[],this.hooksObservers=[],this.warnDeprecation=null===a}return w(e,[{key:"model",set:function(e){this.warnDeprecation&&console.warn("NgxFormly: passing 'model' input to '".concat(this.constructor.name,"' component is not required anymore, you may remove it!"))}},{key:"form",set:function(e){this.warnDeprecation&&console.warn("NgxFormly: passing 'form' input to '".concat(this.constructor.name,"' component is not required anymore, you may remove it!"))}},{key:"options",set:function(e){this.warnDeprecation&&console.warn("NgxFormly: passing 'options' input to '".concat(this.constructor.name,"' component is not required anymore, you may remove it!"))}},{key:"ngAfterContentInit",value:function(){this.triggerHook("afterContentInit")}},{key:"ngAfterContentChecked",value:function(){this.triggerHook("afterContentChecked")}},{key:"ngAfterViewInit",value:function(){this.triggerHook("afterViewInit")}},{key:"ngAfterViewChecked",value:function(){this.triggerHook("afterViewChecked")}},{key:"ngDoCheck",value:function(){this.triggerHook("doCheck")}},{key:"ngOnInit",value:function(){this.triggerHook("onInit")}},{key:"ngOnChanges",value:function(e){this.triggerHook("onChanges",e)}},{key:"ngOnDestroy",value:function(){this.resetRefs(this.field),this.hostObservers.forEach(function(e){return e()}),this.hooksObservers.forEach(function(e){return e()}),this.triggerHook("onDestroy")}},{key:"renderField",value:function(e,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(this.containerRef===e&&(this.resetRefs(this.field),this.containerRef.clear(),r=this.field?this.field.wrappers:[]),r&&r.length>0){var a=r,o=t(a),s=o[0],l=o.slice(1),u=this.formlyConfig.getWrapper(s),c=u.component,d=e.createComponent(this.resolver.resolveComponentFactory(c));this.attachComponentRef(d,n),$G(d.instance,"fieldComponent",function(e){var t=e.firstChange,r=e.previousValue,a=e.currentValue;if(a){var o=r?r.detach():null;o&&!o.destroyed?a.insert(o):i.renderField(a,n,l),!t&&d.changeDetectorRef.detectChanges()}})}else if(n&&n.type){var h=this.formlyConfig.getType(n.type),f=h.component,p=e.createComponent(this.resolver.resolveComponentFactory(f));this.attachComponentRef(p,n)}}},{key:"triggerHook",value:function(e,t){if(this.field&&this.field.hooks&&this.field.hooks[e]&&(!t||t.field)){var n=this.field.hooks[e](this.field);if(aO(n)&&-1!==["onInit","afterContentInit","afterViewInit"].indexOf(e)){var i=n.subscribe();this.hooksObservers.push(function(){return i.unsubscribe()})}}this.field&&this.field.lifecycle&&this.field.lifecycle[e]&&this.field.lifecycle[e](this.field.form,this.field,this.field.model,this.field.options),"onChanges"===e&&t.field&&(this.resetRefs(t.field.previousValue),this.render())}},{key:"attachComponentRef",value:function(e,t){this.componentRefs.push(e),t._componentRefs.push(e),Object.assign(e.instance,{field:t})}},{key:"render",value:function(){var e=this;this.field&&(this.hostObservers.forEach(function(e){return e()}),this.hostObservers=[$G(this.field,"hide",function(t){var n=t.firstChange,i=t.currentValue;e.formlyConfig.extras.lazyRender?i?e.containerRef.clear():e.renderField(e.containerRef,e.field):(n&&e.renderField(e.containerRef,e.field),(!n||n&&i)&&e.renderer.setStyle(e.elementRef.nativeElement,"display",i?"none":""))}),$G(this.field,"className",function(t){var n=t.firstChange,i=t.currentValue;(!n||n&&i)&&e.renderer.setAttribute(e.elementRef.nativeElement,"class",i)})])}},{key:"resetRefs",value:function(e){var t=this;e&&(e._componentRefs?e._componentRefs=e._componentRefs.filter(function(e){return-1===t.componentRefs.indexOf(e)}):XG(this.field,"_componentRefs",[])),this.componentRefs=[]}}]),e}()).\u0275fac=function(e){return new(e||fj)(ls(tj),ls(Pl),ls(Cl),ls(Ol),mi("hide-deprecation"))},fj.\u0275cmp=pt({type:fj,selectors:[["formly-field"]],viewQuery:function(e,t){var n;1&e&&Ku(RG,3,du),2&e&&$u(n=Ju())&&(t.containerRef=n.first)},inputs:{model:"model",form:"form",options:"options",field:"field"},outputs:{modelChange:"modelChange"},features:[It],decls:2,vars:0,consts:[["container",""]],template:function(e,t){1&e&&os(0,LG,0,0,"ng-template",null,0,ic)},encapsulation:2}),fj),bj=((hj=function(){function e(t,n,i){b(this,e),this.renderer=t,this.elementRef=n,this.uiAttributesCache={},this.uiAttributes=[].concat(HG,["tabindex","placeholder","readonly","disabled","step"]),this.uiEvents={listeners:[],events:["click","keyup","keydown","keypress"]},this.document=i}return w(e,[{key:"to",get:function(){return this.field.templateOptions||{}}},{key:"fieldAttrElements",get:function(){return this.field&&this.field._elementRefs||[]}},{key:"ngOnChanges",value:function(e){var t=this;e.field&&(this.field.name&&this.setAttribute("name",this.field.name),this.uiEvents.listeners.forEach(function(e){return e()}),this.uiEvents.events.forEach(function(e){t.to&&t.to[e]&&t.uiEvents.listeners.push(t.renderer.listen(t.elementRef.nativeElement,e,function(n){return t.to[e](t.field,n)}))}),this.to&&this.to.attributes&&$G(this.to,"attributes",function(e){var n=e.currentValue,i=e.previousValue;i&&Object.keys(i).forEach(function(e){return t.removeAttribute(e)}),n&&Object.keys(n).forEach(function(e){return t.setAttribute(e,n[e])})}),this.detachElementRef(e.field.previousValue),this.attachElementRef(e.field.currentValue),1===this.fieldAttrElements.length&&(!this.id&&this.field.id&&this.setAttribute("id",this.field.id),$G(this.field,"focus",function(e){var n=e.currentValue;t.toggleFocus(n)}))),e.id&&this.setAttribute("id",this.id)}},{key:"ngDoCheck",value:function(){var e=this;this.uiAttributes.forEach(function(t){var n=e.to[t];e.uiAttributesCache[t]!==n&&(e.uiAttributesCache[t]=n,n||0===n?e.setAttribute(t,!0===n?t:"".concat(n)):e.removeAttribute(t))})}},{key:"ngOnDestroy",value:function(){this.uiEvents.listeners.forEach(function(e){return e()}),this.detachElementRef(this.field)}},{key:"toggleFocus",value:function(e){var t=this,n=this.fieldAttrElements?this.fieldAttrElements[0]:null;if(n&&n.nativeElement.focus){var i=!!this.document.activeElement&&this.fieldAttrElements.some(function(e){var n=e.nativeElement;return t.document.activeElement===n||n.contains(t.document.activeElement)});e&&!i?n.nativeElement.focus():!e&&i&&n.nativeElement.blur()}}},{key:"onFocus",value:function(e){this.field.___$focus=!0,this.to.focus&&this.to.focus(this.field,e)}},{key:"onBlur",value:function(e){this.field.___$focus=!1,this.to.blur&&this.to.blur(this.field,e)}},{key:"onChange",value:function(e){this.to.change&&this.to.change(this.field,e),this.field.formControl&&this.field.formControl.markAsDirty()}},{key:"attachElementRef",value:function(e){e&&(e._elementRefs&&-1===e._elementRefs.indexOf(this.elementRef)?e._elementRefs.push(this.elementRef):XG(e,"_elementRefs",[this.elementRef]))}},{key:"detachElementRef",value:function(e){var t=e&&e._elementRefs?this.fieldAttrElements.indexOf(this.elementRef):-1;-1!==t&&this.field._elementRefs.splice(t,1)}},{key:"setAttribute",value:function(e,t){this.renderer.setAttribute(this.elementRef.nativeElement,e,t)}},{key:"removeAttribute",value:function(e){this.renderer.removeAttribute(this.elementRef.nativeElement,e)}}]),e}()).\u0275fac=function(e){return new(e||hj)(ls(Pl),ls(Ol),ls(sd))},hj.\u0275dir=bt({type:hj,selectors:[["","formlyAttributes",""]],hostBindings:function(e,t){1&e&&ks("focus",function(e){return t.onFocus(e)})("blur",function(e){return t.onBlur(e)})("change",function(e){return t.onChange(e)})},inputs:{field:["formlyAttributes","field"],id:"id"},features:[It]}),hj),kj=((dj=function(){function e(){b(this,e)}return w(e,[{key:"model",get:function(){return this.field.model},set:function(e){console.warn("NgxFormly: passing 'model' input to '".concat(this.constructor.name,"' component is not required anymore, you may remove it!"))}},{key:"form",get:function(){return this.field.parent.formControl},set:function(e){console.warn("NgxFormly: passing 'form' input to '".concat(this.constructor.name,"' component is not required anymore, you may remove it!"))}},{key:"options",get:function(){return this.field.options},set:function(e){console.warn("NgxFormly: passing 'options' input to '".concat(this.constructor.name,"' component is not required anymore, you may remove it!"))}},{key:"key",get:function(){return this.field.key}},{key:"formControl",get:function(){return this.field.formControl}},{key:"to",get:function(){return this.field.templateOptions||{}}},{key:"showError",get:function(){return this.options.showError(this)}},{key:"id",get:function(){return this.field.id}},{key:"formState",get:function(){return this.options.formState||{}}}]),e}()).\u0275fac=function(e){return new(e||dj)},dj.\u0275dir=bt({type:dj,inputs:{model:"model",form:"form",options:"options",field:"field"}}),dj),wj=((cj=function(e){f(n,e);var t=m(n);function n(e){var i;return b(this,n),(i=t.call(this)).defaultOptions={defaultValue:[]},e instanceof nj&&console.warn("NgxFormly: passing 'FormlyFormBuilder' to '".concat(i.constructor.name,"' type is not required anymore, you may remove it!")),i}return w(n,[{key:"formControl",get:function(){return this.field.formControl}},{key:"onPopulate",value:function(e){!e.formControl&&e.key&&aj(e,rj(e)||new Dk([],{updateOn:e.modelOptions.updateOn})),e.fieldGroup=e.fieldGroup||[];var t=e.model?e.model.length:0;if(e.fieldGroup.length>t)for(var n=e.fieldGroup.length-1;n>=t;--n)ij(e.fieldGroup[n]),e.fieldGroup.splice(n,1);for(var i=e.fieldGroup.length;i2&&void 0!==arguments[2]?arguments[2]:{markAsDirty:!0},i=n.markAsDirty;e=UG(e)?this.field.fieldGroup.length:e,this.model||zG(this.field,[]),this.model.splice(e,0,t?QG(t):void 0),this.options._buildForm(!0),i&&this.formControl.markAsDirty()}},{key:"remove",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{markAsDirty:!0},n=t.markAsDirty;this.model.splice(e,1),ij(this.field.fieldGroup[e],!0),this.field.fieldGroup.splice(e,1),this.field.fieldGroup.forEach(function(e,t){return e.key="".concat(t)}),this.options._buildForm(!0),n&&this.formControl.markAsDirty()}}]),n}(kj)).\u0275fac=function(e){return new(e||cj)(ls(ej,8))},cj.\u0275dir=bt({type:cj,selectors:[["fieldArray"]],features:[jo]}),cj),Cj=((uj=function(e){f(n,e);var t=m(n);function n(){return b(this,n),t.apply(this,arguments)}return n}(kj)).\u0275fac=function(e){return xj(e||uj)},uj.\u0275dir=bt({type:uj,viewQuery:function(e,t){var n;1&e&&Ku(FG,1,du),2&e&&$u(n=Ju())&&(t.fieldComponent=n.first)},features:[jo]}),uj),xj=fi(Cj),Sj=((mj=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments)).defaultOptions={defaultValue:{}},e}return n}(kj)).\u0275fac=function(e){return Aj(e||mj)},mj.\u0275cmp=pt({type:mj,selectors:[["formly-group"]],hostVars:2,hostBindings:function(e,t){2&e&&zs(t.field.fieldGroupClassName||"")},features:[jo],ngContentSelectors:IG,decls:2,vars:1,consts:[[3,"field",4,"ngFor","ngForOf"],[3,"field"]],template:function(e,t){1&e&&(Es(),os(0,NG,1,1,"formly-field",0),Ts(1)),2&e&&us("ngForOf",t.field.fieldGroup)},directives:[bh,_j],encapsulation:2}),mj),Aj=fi(Sj),Oj=((vj=function(){function e(t){b(this,e),this.formlyConfig=t}return w(e,[{key:"ngOnChanges",value:function(){var e=this;this.errorMessage$=this.field.formControl.statusChanges.pipe(Rp(null),xp(function(){return aO(e.errorMessage)?e.errorMessage:fp(e.errorMessage)}))}},{key:"errorMessage",get:function(){var e=this.field.formControl;for(var t in e.errors)if(e.errors.hasOwnProperty(t)){var n=this.formlyConfig.getValidatorMessage(t);if(YG(e.errors[t])){if(e.errors[t].errorPath)return;e.errors[t].message&&(n=e.errors[t].message)}return this.field.validation&&this.field.validation.messages&&this.field.validation.messages[t]&&(n=this.field.validation.messages[t]),this.field.validators&&this.field.validators[t]&&this.field.validators[t].message&&(n=this.field.validators[t].message),this.field.asyncValidators&&this.field.asyncValidators[t]&&this.field.asyncValidators[t].message&&(n=this.field.asyncValidators[t].message),"function"==typeof n?n(e.errors[t],this.field):n}}}]),e}()).\u0275fac=function(e){return new(e||vj)(ls(tj))},vj.\u0275cmp=pt({type:vj,selectors:[["formly-validation-message"]],inputs:{field:"field"},features:[It],decls:2,vars:3,template:function(e,t){1&e&&(Js(0),Iu(1,"async")),2&e&&el(Ru(1,1,t.errorMessage$))},pipes:[qh],encapsulation:2,changeDetection:0}),vj),Ej=((gj=function(e){f(n,e);var t=m(n);function n(e){var i;return b(this,n),(i=t.call(this)).sanitizer=e,i.innerHtml={content:null,template:null},i}return w(n,[{key:"template",get:function(){return this.field&&this.field.template!==this.innerHtml.template&&(this.innerHtml={template:this.field.template,content:this.to.safeHtml?this.sanitizer.bypassSecurityTrustHtml(this.field.template):this.field.template}),this.innerHtml.content}}]),n}(kj)).\u0275fac=function(e){return new(e||gj)(ls(Hf))},gj.\u0275cmp=pt({type:gj,selectors:[["formly-template"]],features:[jo],decls:1,vars:1,consts:[[3,"innerHtml"]],template:function(e,t){1&e&&fs(0,"div",0),2&e&&us("innerHtml",t.template,Tr)},encapsulation:2}),gj);function Tj(e,t,n){return e instanceof Function?e.apply(t,n):!!e}var Pj=function(){function e(){b(this,e)}return w(e,[{key:"prePopulate",value:function(e){var t=this;if(!e.parent&&!e.options._checkField){var n=!1;e.options._checkField=function(e,i){n||(n=!0,KG(e.formControl,function(){return t.checkField(e,i)}),n=!1)}}}},{key:"postPopulate",value:function(e){var t=this;if(e.parent&&!e._expressionProperties){if(XG(e,"_expressionProperties",{}),e.expressionProperties){var n=function(n){var i=e.expressionProperties[n];if("string"==typeof i||qG(i))e._expressionProperties[n]={expression:t._evalExpression(n,i,"templateOptions.disabled"===n&&e.parent.expressionProperties&&e.parent.expressionProperties.hasOwnProperty("templateOptions.disabled")?function(){return e.parent.templateOptions.disabled}:void 0)},"templateOptions.disabled"===n&&Object.defineProperty(e._expressionProperties[n],"expressionValue",{get:function(){return e.templateOptions.disabled},set:function(){},enumerable:!0,configurable:!0});else if(i instanceof N){var r=function(){return i.subscribe(function(i){t.setExprValue(e,n,i),e.options&&e.options._markForCheck&&e.options._markForCheck(e)})},a=r(),o=e.hooks.onInit;e.hooks.onInit=function(){return null===a&&(a=r()),o&&o(e)};var s=e.hooks.onDestroy;e.hooks.onDestroy=function(){s&&s(e),a.unsubscribe(),a=null}}};for(var i in e.expressionProperties)n(i)}e.hideExpression?(delete e.hide,e.hideExpression=this._evalExpression("hide",e.hideExpression,function(){for(var t=e.parent;t.parent&&!t.hide;)t=t.parent;return t.hide})):$G(e,"hide",function(t){var n=t.currentValue,i=t.firstChange;e._hide=n,(!i||i&&!0===n)&&e.options._hiddenFieldsForCheck.push(e)})}}},{key:"_evalExpression",value:function(e,t,n){return function(i,r,a){try{return"string"==typeof t&&(t=function(e,t){try{return-1!==e.indexOf("this.field")&&console.warn("NgxFormly: using 'this.field' in expressionProperties is deprecated since v5.1, use 'field' instead."),Function("model","formState","field","return ".concat(e,";"))}catch(n){console.error(n)}}(t)),"function"!=typeof t&&(t=function(){return!!t}),n&&n()||t(i,r,a)}catch(o){throw o.message='[Formly Error] [Expression "'.concat(e,'"] ').concat(o.message),o}}}},{key:"checkField",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._checkField(e,n),e.options._hiddenFieldsForCheck.sort(function(e){return e.hide?-1:1}).forEach(function(e){return t.toggleFormControl(e,!!e.hide,!n)}),e.options._hiddenFieldsForCheck=[]}},{key:"_checkField",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=!1;e.fieldGroup.forEach(function(r){t.checkFieldExpressionChange(r,n)&&(i=!0),t.checkFieldVisibilityChange(r,n)&&(e.options._hiddenFieldsForCheck.push(r),i=!0),r.fieldGroup&&r.fieldGroup.length>0&&t._checkField(r,n)}),i&&e.options&&e.options._markForCheck&&e.options._markForCheck(e)}},{key:"checkFieldExpressionChange",value:function(e,t){if(!e||!e._expressionProperties)return!1;var n=!1,i=e._expressionProperties;for(var r in i){var a=Tj(i[r].expression,{field:e},[e.model,e.options.formState,e]);"templateOptions.disabled"===r&&(a=!!a),!t&&(i[r].expressionValue===a||YG(a)&&JSON.stringify(a)===JSON.stringify(i[r].expressionValue))||(n=!0,i[r].expressionValue=a,this.setExprValue(e,r,a))}return n}},{key:"checkFieldVisibilityChange",value:function(e,t){if(!e||UG(e.hideExpression))return!1;var n=!!Tj(e.hideExpression,{field:e},[e.model,e.options.formState,e]),i=!1;return(n!==e.hide||t)&&(i=!0,e.hide=n,e.templateOptions.hidden=n),i}},{key:"setDisabledState",value:function(e,t){var n=this;e.fieldGroup&&e.fieldGroup.filter(function(e){return!e.expressionProperties||!e.expressionProperties.hasOwnProperty("templateOptions.disabled")}).forEach(function(e){return n.setDisabledState(e,t)}),e.key&&e.templateOptions.disabled!==t&&(e.templateOptions.disabled=t)}},{key:"toggleFormControl",value:function(e,t,n){var i=this;if(e.formControl&&e.key){XG(e,"_hide",!(!t&&!e.hide));var r=e.formControl;r._fields.length>1&&oj(r),!0===t&&r._fields.every(function(e){return!!e._hide})?(ij(e,!0),n&&e.resetOnHide&&(e.formControl.reset({value:void 0,disabled:e.formControl.disabled}),e.fieldGroup&&(zG(e,void 0),e.formControl instanceof Dk&&(e.fieldGroup.length=0)))):!1===t&&(e.resetOnHide&&e.parent&&!WG(e.defaultValue)&&WG(GG(e))&&zG(e,e.defaultValue),aj(e,void 0,!0),e.resetOnHide&&e.fieldArray&&(e.fieldGroup||[]).length!==(e.model||[]).length&&e.options._buildForm(!0))}e.fieldGroup&&e.fieldGroup.filter(function(e){return!e.hideExpression}).forEach(function(e){return i.toggleFormControl(e,t,n)}),e.options.fieldChanges&&e.options.fieldChanges.next({field:e,type:"hidden",value:t})}},{key:"setExprValue",value:function(e,t,n){try{for(var i=e,r=(-1===t.indexOf("[")?t:t.replace(/\[(\w+)\]/g,".$1")).split("."),a=r.length-1,o=0;o0?o:null}}return"function"==typeof t&&(r={name:n,validation:t}),function(t){var a,o=r.validation(t,e,r.options);return(a=o)&&"function"==typeof a.then?o.then(function(t){return i.handleAsyncResult(e,n?!!t:t,r)}):aO(o)?o.pipe(q(function(t){return i.handleAsyncResult(e,n?!!t:t,r)})):i.handleResult(e,n?!!o:o,r)}}},{key:"handleAsyncResult",value:function(e,t,n){return e.options&&e.options._markForCheck&&e.options._markForCheck(e),this.handleResult(e,t,n)}},{key:"handleResult",value:function(t,n,i){var r=i.name,a=i.options;"boolean"==typeof n&&(n=n?null:e({},r,a||!0));var o=t.formControl;return o._childrenErrors&&o._childrenErrors[r]&&o._childrenErrors[r](),YG(n)&&Object.keys(n).forEach(function(i){var r=n[i].errorPath?n[i].errorPath:(a||{}).errorPath,s=r?t.formControl.get(r):null;if(s){var l=Xf(n[i],["errorPath"]);s.setErrors(Object.assign({},s.errors||{},e({},i,l))),!o._childrenErrors&&XG(o,"_childrenErrors",{}),o._childrenErrors[i]=function(){var e=Xf(s.errors||{},["symbol"==typeof i?i:i+""]);s.setErrors(0===Object.keys(e).length?null:e)}}}),n}}]),t}(),Mj=function(){function e(t){b(this,e),this.config=t}return w(e,[{key:"onPopulate",value:function(e){e.parent&&(e.fieldGroup&&!e.key?XG(e,"formControl",e.parent.formControl):this.addFormControl(e))}},{key:"postPopulate",value:function(e){if(!e.parent){var t=this.setValidators(e);0!==t.length&&(1===t.length?t[0].formControl.updateValueAndValidity():e.formControl._updateTreeValidity())}}},{key:"addFormControl",value:function(e){var t=rj(e);if(!t){var n={updateOn:e.modelOptions.updateOn},i=e.key?GG(e):e.defaultValue,r=this.config?this.config.resolveFieldTypeRef(e):null;if(r&&r.componentType&&r.componentType.createControl){var a=r.componentType;console.warn("NgxFormly: '".concat(a.name,"::createControl' is deprecated since v5.0, use 'prePopulate' hook instead.")),t=a.createControl(i,e)}else t=e.fieldGroup?new Pk({},n):new Tk(i,n)}aj(e,t)}},{key:"setValidators",value:function(e){var t=this,n=!1;if(e.key||!e.parent||!e.key&&!e.fieldGroup){var i=e.formControl;!!e.templateOptions&&e.templateOptions.disabled&&i.enabled&&(i.disable({emitEvent:!1,onlySelf:!0}),i.parent?n=!0:oj(i)),null!==i.validator&&null!==i.asyncValidator||(i.setValidators(function(){var n=Eb.compose(t.mergeValidators(e,"_validators"));return n?n(i):null}),i.setAsyncValidators(function(){var n=Eb.composeAsync(t.mergeValidators(e,"_asyncValidators"));return n?n(i):fp(null)}),i.parent?n=!0:oj(i))}var r=n?[e]:[];return(e.fieldGroup||[]).forEach(function(e){var i=t.setValidators(e);n||r.push.apply(r,a(i))}),r}},{key:"mergeValidators",value:function(e,t){var n=this,i=[],r=e.formControl;return r&&r._fields&&r._fields.length>1?r._fields.filter(function(e){return!e._hide}).forEach(function(e){return i.push.apply(i,a(e[t]))}):i.push.apply(i,a(e[t])),e.fieldGroup&&e.fieldGroup.filter(function(e){return!e.key&&e.fieldGroup}).forEach(function(e){return i.push.apply(i,a(n.mergeValidators(e,t)))}),i}}]),e}(),Ij=function(){function e(t){b(this,e),this.formlyConfig=t,this.formId=0}return w(e,[{key:"prePopulate",value:function(e){if(this.getFieldComponentInstance(e).prePopulate(),!e.parent){var t=e.options&&e.options.fieldTransform||this.formlyConfig.extras.fieldTransform;(Array.isArray(t)?t:[t]).forEach(function(t){if(t&&(console.warn("NgxFormly: fieldTransform is deprecated since v5.0, use custom extension instead."),!t(e.fieldGroup,e.model,e.formControl,e.options)))throw new Error("fieldTransform must return an array of fields")})}}},{key:"onPopulate",value:function(e){var t=this;this.initFieldOptions(e),this.getFieldComponentInstance(e).onPopulate(),e.fieldGroup&&e.fieldGroup.forEach(function(n,i){Object.defineProperty(n,"parent",{get:function(){return e},configurable:!0}),Object.defineProperty(n,"index",{get:function(){return i},configurable:!0}),t.formId++})}},{key:"postPopulate",value:function(e){this.getFieldComponentInstance(e).postPopulate()}},{key:"initFieldOptions",value:function(e){var t=e.parent;if(t){if(Object.defineProperty(e,"form",{get:function(){return t.formControl},configurable:!0}),Object.defineProperty(e,"options",{get:function(){return t.options},configurable:!0}),Object.defineProperty(e,"model",{get:function(){return e.key&&e.fieldGroup?GG(e):t.model},configurable:!0}),jG(e,{id:VG("formly_".concat(this.formId),e,e.index),hooks:{},modelOptions:{},templateOptions:e.type&&e.key?{label:"",placeholder:"",focus:!1,disabled:!1}:{}}),this.formlyConfig.extras.resetFieldOnHide&&!1!==e.resetOnHide&&(e.resetOnHide=!0),e.lifecycle&&console.warn("NgxFormly: 'lifecycle' is deprecated since v5.0, use 'hooks' instead."),"formly-template"!==e.type&&(e.template||e.expressionProperties&&e.expressionProperties.template)&&(e.type&&console.warn("NgxFormly: passing 'type' property is not allowed when 'template' is set."),e.type="formly-template"),!e.type&&e.fieldGroup&&(e.type="formly-group"),e.type&&this.formlyConfig.getMergedField(e),e.parent){var n=!WG(e.key)&&!WG(e.defaultValue)&&WG(GG(e))&&(!e.resetOnHide||!(e.hide||e.hideExpression));if(n&&e.resetOnHide){for(var i=e.parent;i&&!i.hideExpression&&!i.hide;)i=i.parent;n=!i||!(i.hideExpression||i.hide)}n&&zG(e,e.defaultValue)}this.initFieldWrappers(e)}}},{key:"initFieldWrappers",value:function(e){e.wrappers=e.wrappers||[];var t=Object.assign({preWrapper:[],postWrapper:[]},e.templateOptions.templateManipulators||{});e.wrappers=[].concat(a(this.formlyConfig.templateManipulators.preWrapper.map(function(t){return t(e)})),a(t.preWrapper.map(function(t){return t(e)})),a(e.wrappers),a(this.formlyConfig.templateManipulators.postWrapper.map(function(t){return t(e)})),a(t.postWrapper.map(function(t){return t(e)}))).filter(function(e,t,n){return e&&t===n.indexOf(e)})}},{key:"getFieldComponentInstance",value:function(e){var t=this.formlyConfig.resolveFieldTypeRef(e),n=t?t.instance:{};return{prePopulate:function(){return n.prePopulate&&n.prePopulate(e)},onPopulate:function(){return n.onPopulate&&n.onPopulate(e)},postPopulate:function(){return n.postPopulate&&n.postPopulate(e)}}}}]),e}();function Rj(e){return{types:[{name:"formly-group",component:Sj},{name:"formly-template",component:Ej}],extensions:[{name:"core",extension:new Ij(e)},{name:"field-validation",extension:new Dj(e)},{name:"field-form",extension:new Mj(e)},{name:"field-expression",extension:new Pj}]}}var Lj,Fj=((Lj=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];b(this,e),n&&n.forEach(function(e){return t.addConfig(e)})}return w(e,null,[{key:"forRoot",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[{provide:ej,multi:!0,useFactory:Rj,deps:[tj]},{provide:ej,useValue:t,multi:!0},{provide:bi,useValue:t,multi:!0},tj,nj]}}},{key:"forChild",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[{provide:ej,multi:!0,useFactory:Rj,deps:[tj]},{provide:ej,useValue:t,multi:!0},{provide:bi,useValue:t,multi:!0},nj]}}}]),e}()).\u0275fac=function(e){return new(e||Lj)(Ni(tj),Ni(ej,8))},Lj.\u0275mod=yt({type:Lj}),Lj.\u0275inj=Ne({imports:[[Zh]]}),Lj),Nj=["matPrefix"],Vj=["matSuffix"],Bj=["fieldComponent"];function Hj(e,t){1&e&&(ds(0,"span",8),Js(1,"*"),hs())}function zj(e,t){if(1&e&&(ds(0,"mat-label"),Js(1),os(2,Hj,2,0,"span",7),hs()),2&e){var n=As();Oa(1),tl(" ",n.to.label," "),Oa(1),us("ngIf",n.to.required&&!0!==n.to.hideRequiredMarker)}}function Gj(e,t){1&e&&gs(0)}function jj(e,t){if(1&e&&(ps(0,9),os(1,Gj,1,0,"ng-container",10),ms()),2&e){var n=As();Oa(1),us("ngTemplateOutlet",n.to.prefix?n.to.prefix:n.formlyField._matprefix)}}function Uj(e,t){1&e&&gs(0)}function Wj(e,t){if(1&e&&(ps(0,11),os(1,Uj,1,0,"ng-container",10),ms()),2&e){var n=As();Oa(1),us("ngTemplateOutlet",n.to.suffix?n.to.suffix:n.formlyField._matsuffix)}}function qj(e,t){if(1&e&&(ds(0,"mat-hint",12),Js(1),hs()),2&e){var n=As();us("id",null),Oa(1),el(n.to.description)}}var Yj,Qj,Xj,$j=function(){function e(t){b(this,e),this.field=t}return w(e,[{key:"isErrorState",value:function(e,t){return this.field&&this.field.showError}}]),e}(),Kj=((Yj=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments)).errorStateMatcher=new $j(v(e)),e.stateChanges=new j,e._errorState=!1,e}return w(n,[{key:"formFieldControl",get:function(){return this._control||this},set:function(e){this._control=e,this.formField&&e!==this.formField._control&&(this.formField._control=e)}},{key:"ngOnInit",value:function(){this.formField&&(this.formField._control=this.formFieldControl)}},{key:"ngAfterViewInit",value:function(){var e=this;(this.matPrefix||this.matSuffix)&&setTimeout(function(){XG(e.field,"_matprefix",e.matPrefix),XG(e.field,"_matsuffix",e.matSuffix),e.options._markForCheck(e.field)})}},{key:"ngOnDestroy",value:function(){this.formField&&delete this.formField._control,this.stateChanges.complete()}},{key:"setDescribedByIds",value:function(e){}},{key:"onContainerClick",value:function(e){this.field.focus=!0,this.stateChanges.next()}},{key:"errorState",get:function(){var e=this.options.showError(this);return e!==this._errorState&&(this._errorState=e,this.stateChanges.next()),e}},{key:"controlType",get:function(){return this.to.type?this.to.type:this.field.type instanceof wi?this.field.type.constructor.name:this.field.type}},{key:"focused",get:function(){return!!this.field.focus&&!this.disabled}},{key:"disabled",get:function(){return!!this.to.disabled}},{key:"required",get:function(){return!!this.to.required}},{key:"placeholder",get:function(){return this.to.placeholder||""}},{key:"shouldPlaceholderFloat",get:function(){return this.shouldLabelFloat}},{key:"value",get:function(){return this.formControl.value},set:function(e){this.formControl.patchValue(e)}},{key:"ngControl",get:function(){return this.formControl}},{key:"empty",get:function(){return null==this.value||""===this.value}},{key:"shouldLabelFloat",get:function(){return this.focused||!this.empty}},{key:"formField",get:function(){return this.field?this.field.__formField__:null}}]),n}(kj)).\u0275fac=function(e){return Zj(e||Yj)},Yj.\u0275dir=bt({type:Yj,viewQuery:function(e,t){var n;1&e&&(Ku(Nj,1),Ku(Vj,1)),2&e&&($u(n=Ju())&&(t.matPrefix=n.first),$u(n=Ju())&&(t.matSuffix=n.first))},features:[jo]}),Yj),Zj=fi(Kj),Jj=((Xj=function(e){f(n,e);var t=m(n);function n(e,i,r,a){var o;return b(this,n),(o=t.call(this)).config=e,o.renderer=i,o.elementRef=r,o.focusMonitor=a,o.stateChanges=new j,o._errorState=!1,o.initialGapCalculated=!1,o}return w(n,[{key:"ngOnInit",value:function(){var e=this;this.formField._control=this,XG(this.field,"__formField__",this.formField);var t=this.config.resolveFieldTypeRef(this.formlyField);!t||t.instance instanceof Kj||console.warn("Component '".concat(t.componentType.name,"' must extend 'FieldType' from '@ngx-formly/material/form-field'.")),this.formlyField.hide&&"outline"===this.formlyField.templateOptions.appearance&&(this.initialGapCalculated=!0),this.focusMonitor.monitor(this.elementRef,!0).subscribe(function(t){!t&&e.field.focus&&(e.field.focus=!1),e.stateChanges.next()})}},{key:"ngAfterContentChecked",value:function(){this.initialGapCalculated&&!this.formlyField.hide&&(this.formField.updateOutlineGap(),this.initialGapCalculated=!0)}},{key:"ngAfterViewInit",value:function(){if("outline"!==this.formField.appearance&&!0===this.to.hideFieldUnderline){var e=this.formField._elementRef.nativeElement.querySelector(".mat-form-field-underline");e&&this.renderer.removeChild(e.parentNode,e)}}},{key:"ngOnDestroy",value:function(){delete this.formlyField.__formField__,this.stateChanges.complete(),this.focusMonitor.stopMonitoring(this.elementRef)}},{key:"setDescribedByIds",value:function(e){}},{key:"onContainerClick",value:function(e){this.formlyField.focus=!0,this.stateChanges.next()}},{key:"errorState",get:function(){var e=this.options.showError(this);return e!==this._errorState&&(this._errorState=e,this.stateChanges.next()),e}},{key:"controlType",get:function(){return this.to.type}},{key:"focused",get:function(){return!!this.formlyField.focus&&!this.disabled}},{key:"disabled",get:function(){return!!this.to.disabled}},{key:"required",get:function(){return!!this.to.required}},{key:"placeholder",get:function(){return this.to.placeholder||""}},{key:"shouldPlaceholderFloat",get:function(){return this.shouldLabelFloat}},{key:"value",get:function(){return this.formControl.value}},{key:"ngControl",get:function(){return this.formControl}},{key:"empty",get:function(){return!this.formControl.value}},{key:"shouldLabelFloat",get:function(){return this.focused||!this.empty}},{key:"formlyField",get:function(){return this.field}}]),n}(Cj)).\u0275fac=function(e){return new(e||Xj)(ls(tj),ls(Pl),ls(Ol),ls(Jw))},Xj.\u0275cmp=pt({type:Xj,selectors:[["formly-wrapper-mat-form-field"]],viewQuery:function(e,t){var n;1&e&&(Ku(Bj,3,du),Ku(wT,3)),2&e&&($u(n=Ju())&&(t.fieldComponent=n.first),$u(n=Ju())&&(t.formField=n.first))},features:[bl([{provide:lT,useExisting:Xj}]),jo],decls:9,vars:11,consts:[[3,"hideRequiredMarker","floatLabel","appearance","color"],["fieldComponent",""],[4,"ngIf"],["matPrefix","",4,"ngIf"],["matSuffix","",4,"ngIf"],[3,"field"],[3,"id",4,"ngIf"],["class","mat-form-field-required-marker",4,"ngIf"],[1,"mat-form-field-required-marker"],["matPrefix",""],[4,"ngTemplateOutlet"],["matSuffix",""],[3,"id"]],template:function(e,t){1&e&&(ds(0,"mat-form-field",0),gs(1,null,1),os(3,zj,3,2,"mat-label",2),os(4,jj,2,1,"ng-container",3),os(5,Wj,2,1,"ng-container",4),ds(6,"mat-error"),fs(7,"formly-validation-message",5),hs(),os(8,qj,2,2,"mat-hint",6),hs()),2&e&&(Bs("width","100%"),us("hideRequiredMarker",!0)("floatLabel",t.to.floatLabel)("appearance",t.to.appearance)("color",t.to.color),Oa(3),us("ngIf",t.to.label&&!0!==t.to.hideLabel),Oa(1),us("ngIf",t.to.prefix||t.formlyField._matprefix),Oa(1),us("ngIf",t.to.suffix||t.formlyField._matsuffix),Oa(2),us("field",t.field),Oa(1),us("ngIf",t.to.description))},directives:[wT,wh,oT,Oj,hT,mT,Lh,vT,dT],encapsulation:2}),Xj),eU=((Qj=function e(){b(this,e)}).\u0275fac=function(e){return new(e||Qj)},Qj.\u0275mod=yt({type:Qj}),Qj.\u0275inj=Ne({imports:[[Zh,Kk,CT,Fj.forChild({wrappers:[{name:"form-field",component:Jj}]})]]}),Qj);function tU(e,t){if(1&e&&fs(0,"input",2),2&e){var n=As();us("id",n.id)("type",n.type||"text")("readonly",n.to.readonly)("required",n.to.required)("errorStateMatcher",n.errorStateMatcher)("formControl",n.formControl)("formlyAttributes",n.field)("tabindex",n.to.tabindex)("placeholder",n.to.placeholder)}}function nU(e,t){if(1&e&&fs(0,"input",3),2&e){var n=As();us("id",n.id)("readonly",n.to.readonly)("required",n.to.required)("errorStateMatcher",n.errorStateMatcher)("formControl",n.formControl)("formlyAttributes",n.field)("tabIndex",n.to.tabindex)("placeholder",n.to.placeholder)}}var iU,rU,aU,oU,sU,lU,uU=((iU=function(e){f(n,e);var t=m(n);function n(){return b(this,n),t.apply(this,arguments)}return w(n,[{key:"type",get:function(){return this.to.type||"text"}}]),n}(Kj)).\u0275fac=function(e){return cU(e||iU)},iU.\u0275cmp=pt({type:iU,selectors:[["formly-field-mat-input"]],viewQuery:function(e,t){var n;1&e&&Ku(vM,1),2&e&&$u(n=Ju())&&(t.formFieldControl=n.first)},features:[jo],decls:3,vars:2,consts:[["matInput","",3,"id","type","readonly","required","errorStateMatcher","formControl","formlyAttributes","tabindex","placeholder",4,"ngIf","ngIfElse"],["numberTmp",""],["matInput","",3,"id","type","readonly","required","errorStateMatcher","formControl","formlyAttributes","tabindex","placeholder"],["matInput","","type","number",3,"id","readonly","required","errorStateMatcher","formControl","formlyAttributes","tabIndex","placeholder"]],template:function(e,t){if(1&e&&(os(0,tU,1,9,"input",0),os(1,nU,1,8,"ng-template",null,1,ic)),2&e){var n=ss(2);us("ngIf","number"!==t.type)("ngIfElse",n)}},directives:[wh,vM,wb,Qk,Zb,Uk,bj,Hk],encapsulation:2}),iU),cU=fi(uU),dU=((aU=function e(){b(this,e)}).\u0275fac=function(e){return new(e||aU)},aU.\u0275mod=yt({type:aU}),aU.\u0275inj=Ne({imports:[[Zh,Kk,yM,eU,Fj.forChild({types:[{name:"input",component:uU,wrappers:["form-field"]}]})]]}),aU),hU=((rU=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments)).defaultOptions={templateOptions:{cols:1,rows:1}},e}return n}(Kj)).\u0275fac=function(e){return fU(e||rU)},rU.\u0275cmp=pt({type:rU,selectors:[["formly-field-mat-textarea"]],viewQuery:function(e,t){var n;1&e&&Ku(vM,3),2&e&&$u(n=Ju())&&(t.formFieldControl=n.first)},features:[bl([{provide:fM,useExisting:rU}]),jo],decls:2,vars:15,consts:[["matInput","",3,"id","readonly","required","formControl","errorStateMatcher","cols","rows","formlyAttributes","placeholder","tabindex","cdkTextareaAutosize","cdkAutosizeMinRows","cdkAutosizeMaxRows"]],template:function(e,t){1&e&&(ds(0,"textarea",0),Js(1," "),hs()),2&e&&(Hs("cdk-textarea-autosize",t.to.autosize),us("id",t.id)("readonly",t.to.readonly)("required",t.to.required)("formControl",t.formControl)("errorStateMatcher",t.errorStateMatcher)("cols",t.to.cols)("rows",t.to.rows)("formlyAttributes",t.field)("placeholder",t.to.placeholder)("tabindex",t.to.tabindex)("cdkTextareaAutosize",t.to.autosize)("cdkAutosizeMinRows",t.to.autosizeMinRows)("cdkAutosizeMaxRows",t.to.autosizeMaxRows))},directives:[vM,wb,uM,Qk,Zb,Uk,bj],encapsulation:2}),rU),fU=fi(hU),pU=((lU=function e(){b(this,e)}).\u0275fac=function(e){return new(e||lU)},lU.\u0275mod=yt({type:lU}),lU.\u0275inj=Ne({imports:[[Zh,Kk,yM,eU,Fj.forChild({types:[{name:"textarea",component:hU,wrappers:["form-field"]}]})]]}),lU),mU=((sU=function(){function e(){b(this,e)}return w(e,[{key:"transform",value:function(e,t){var n=this;return e instanceof N||(e=fp(e)),e.pipe(q(function(e){return n.toOptions(e,t||{})}))}},{key:"toOptions",value:function(e,t){var n=this,i=[],r={},a=t.templateOptions||{};return a._flatOptions=!0,e.map(function(e){n.getGroupProp(e,a)?(a._flatOptions=!1,r[n.getGroupProp(e,a)]||(r[n.getGroupProp(e,a)]=[],i.push({label:n.getGroupProp(e,a),group:r[n.getGroupProp(e,a)]})),r[n.getGroupProp(e,a)].push(n.toOption(e,a))):i.push(n.toOption(e,a))}),i}},{key:"toOption",value:function(e,t){return{label:this.getLabelProp(e,t),value:this.getValueProp(e,t),disabled:this.getDisabledProp(e,t)||!1}}},{key:"getLabelProp",value:function(e,t){return"function"==typeof t.labelProp?t.labelProp(e):this.shouldUseLegacyOption(e,t)?(console.warn("NgxFormly: legacy select option '{key, value}' is deprecated since v5.5, use '{value, label}' instead."),e.value):e[t.labelProp||"label"]}},{key:"getValueProp",value:function(e,t){return"function"==typeof t.valueProp?t.valueProp(e):this.shouldUseLegacyOption(e,t)?e.key:e[t.valueProp||"value"]}},{key:"getDisabledProp",value:function(e,t){return"function"==typeof t.disabledProp?t.disabledProp(e):e[t.disabledProp||"disabled"]}},{key:"getGroupProp",value:function(e,t){return"function"==typeof t.groupProp?t.groupProp(e):e[t.groupProp||"group"]}},{key:"shouldUseLegacyOption",value:function(e,t){return!t.valueProp&&!t.labelProp&&null!=e&&"object"==typeof e&&"key"in e&&"value"in e}}]),e}()).\u0275fac=function(e){return new(e||sU)},sU.\u0275pipe=kt({name:"formlySelectOptions",type:sU,pure:!0}),sU),gU=((oU=function e(){b(this,e)}).\u0275fac=function(e){return new(e||oU)},oU.\u0275mod=yt({type:oU}),oU.\u0275inj=Ne({}),oU);function vU(e,t){if(1&e&&(ds(0,"mat-radio-button",2),Js(1),hs()),2&e){var n=t.$implicit,i=t.index,r=As();us("id",r.id+"_"+i)("color",r.to.color)("labelPosition",r.to.labelPosition)("disabled",n.disabled)("value",n.value),Oa(1),tl(" ",n.label," ")}}var yU,_U,bU=((yU=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments)).defaultOptions={templateOptions:{hideFieldUnderline:!0,floatLabel:"always",options:[],tabindex:-1}},e}return w(n,[{key:"ngAfterViewInit",value:function(){var e=this;this.focusObserver=$G(this.field,"focus",function(t){var n=t.currentValue;-1===e.to.tabindex&&n&&e.radioGroup._radios.length>0&&setTimeout(function(){(e.radioGroup.selected?e.radioGroup.selected:e.radioGroup._radios.first)._elementRef.nativeElement.focus({preventScroll:!0})})})}},{key:"onContainerClick",value:function(){}},{key:"ngOnDestroy",value:function(){this.focusObserver&&this.focusObserver()}}]),n}(Kj)).\u0275fac=function(e){return kU(e||yU)},yU.\u0275cmp=pt({type:yU,selectors:[["formly-field-mat-radio"]],viewQuery:function(e,t){var n;1&e&&Ku(SN,1),2&e&&$u(n=Ju())&&(t.radioGroup=n.first)},features:[jo],decls:4,vars:10,consts:[[3,"formControl","formlyAttributes","required","tabindex"],[3,"id","color","labelPosition","disabled","value",4,"ngFor","ngForOf"],[3,"id","color","labelPosition","disabled","value"]],template:function(e,t){1&e&&(ds(0,"mat-radio-group",0),os(1,vU,2,6,"mat-radio-button",1),Iu(2,"async"),Iu(3,"formlySelectOptions"),hs()),2&e&&(us("formControl",t.formControl)("formlyAttributes",t.field)("required",t.to.required)("tabindex",t.to.tabindex),Oa(1),us("ngForOf",Ru(2,5,Lu(3,7,t.to.options,t.field))))},directives:[SN,Zb,Uk,bj,Qk,bh,TN],pipes:[qh,mU],encapsulation:2}),yU),kU=fi(bU),wU=((_U=function e(){b(this,e)}).\u0275fac=function(e){return new(e||_U)},_U.\u0275mod=yt({type:_U}),_U.\u0275inj=Ne({imports:[[Zh,Kk,PN,eU,gU,Fj.forChild({types:[{name:"radio",component:bU,wrappers:["form-field"]}]})]]}),_U);function CU(e,t){1&e&&(ds(0,"span",2),Js(1,"*"),hs())}var xU,SU,AU=((SU=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this)).renderer=e,r.focusMonitor=i,r.defaultOptions={templateOptions:{hideFieldUnderline:!0,indeterminate:!0,floatLabel:"always",hideLabel:!0,align:"start",color:"accent"}},r}return w(n,[{key:"onContainerClick",value:function(e){this.checkbox.focus(),h(_(n.prototype),"onContainerClick",this).call(this,e)}},{key:"ngAfterViewInit",value:function(){var e=this;this.focusMonitor.monitor(this.checkbox._inputElement,!0).subscribe(function(t){t?e.to.focus&&e.to.focus(e.field):e.to.blur&&e.to.blur(e.field)})}},{key:"ngAfterViewChecked",value:function(){if(this.required!==this._required&&this.checkbox&&this.checkbox._inputElement){this._required=this.required;var e=this.checkbox._inputElement.nativeElement;this.required?this.renderer.setAttribute(e,"required","required"):this.renderer.removeAttribute(e,"required")}}},{key:"ngOnDestroy",value:function(){this.checkbox&&this.focusMonitor.stopMonitoring(this.checkbox._inputElement)}}]),n}(Kj)).\u0275fac=function(e){return new(e||SU)(ls(Pl),ls(Jw))},SU.\u0275cmp=pt({type:SU,selectors:[["formly-field-mat-checkbox"]],viewQuery:function(e,t){var n;1&e&&Ku(lD,1),2&e&&$u(n=Ju())&&(t.checkbox=n.first)},features:[jo],decls:3,vars:9,consts:[[3,"formControl","id","formlyAttributes","tabIndex","indeterminate","color","labelPosition"],["class","mat-form-field-required-marker",4,"ngIf"],[1,"mat-form-field-required-marker"]],template:function(e,t){1&e&&(ds(0,"mat-checkbox",0),Js(1),os(2,CU,2,0,"span",1),hs()),2&e&&(us("formControl",t.formControl)("id",t.id)("formlyAttributes",t.field)("tabIndex",t.to.tabindex)("indeterminate",t.to.indeterminate&&null===t.formControl.value)("color",t.to.color)("labelPosition",t.to.align||t.to.labelPosition),Oa(1),tl(" ",t.to.label," "),Oa(1),us("ngIf",t.to.required&&!0!==t.to.hideRequiredMarker))},directives:[lD,Zb,Uk,bj,wh],encapsulation:2}),SU),OU=((xU=function e(){b(this,e)}).\u0275fac=function(e){return new(e||xU)},xU.\u0275mod=yt({type:xU}),xU.\u0275inj=Ne({imports:[[Zh,Kk,cD,eU,Fj.forChild({types:[{name:"checkbox",component:AU,wrappers:["form-field"]}]})]]}),xU);function EU(e,t){if(1&e){var n=vs();ps(0),ds(1,"mat-checkbox",1),ks("change",function(e){rn(n);var i=t.$implicit;return As().onChange(i.value,e.checked)}),Js(2),hs(),ms()}if(2&e){var i=t.$implicit,r=t.index,a=As();Oa(1),us("id",a.id+"_"+r)("formlyAttributes",a.field)("tabIndex",a.to.tabindex)("color",a.to.color)("labelPosition",a.to.labelPosition)("checked",a.isChecked(i))("disabled",a.formControl.disabled),Oa(1),tl(" ",i.label," ")}}var TU,PU,DU=((TU=function(t){f(i,t);var n=m(i);function i(){var e;return b(this,i),(e=n.apply(this,arguments)).defaultOptions={templateOptions:{hideFieldUnderline:!0,floatLabel:"always",options:[],color:"accent"}},e}return w(i,[{key:"onChange",value:function(t,n){this.formControl.patchValue("array"===this.to.type?n?[].concat(a(this.formControl.value||[]),[t]):a(this.formControl.value||[]).filter(function(e){return e!==t}):Object.assign({},this.formControl.value,e({},t,n))),this.formControl.markAsTouched()}},{key:"onContainerClick",value:function(){}},{key:"isChecked",value:function(e){var t=this.formControl.value;return t&&("array"===this.to.type?-1!==t.indexOf(e.value):t[e.value])}}]),i}(Kj)).\u0275fac=function(e){return MU(e||TU)},TU.\u0275cmp=pt({type:TU,selectors:[["formly-field-mat-multicheckbox"]],viewQuery:function(e,t){var n;1&e&&Ku(lD,1),2&e&&$u(n=Ju())&&(t.checkboxes=n)},features:[jo],decls:3,vars:6,consts:[[4,"ngFor","ngForOf"],[3,"id","formlyAttributes","tabIndex","color","labelPosition","checked","disabled","change"]],template:function(e,t){1&e&&(os(0,EU,3,8,"ng-container",0),Iu(1,"async"),Iu(2,"formlySelectOptions")),2&e&&us("ngForOf",Ru(1,1,Lu(2,3,t.to.options,t.field)))},directives:[bh,lD,bj],pipes:[qh,mU],encapsulation:2}),TU),MU=fi(DU),IU=((PU=function e(){b(this,e)}).\u0275fac=function(e){return new(e||PU)},PU.\u0275mod=yt({type:PU}),PU.\u0275inj=Ne({imports:[[Zh,Kk,cD,eU,gU,Fj.forChild({types:[{name:"multicheckbox",component:DU,wrappers:["form-field"]}]})]]}),PU);function RU(e,t){if(1&e){var n=vs();ds(0,"mat-option",3),ks("click",function(){rn(n);var e=t.selectOptions;return As().toggleSelectAll(e)}),fs(1,"mat-pseudo-checkbox",4),Js(2),hs()}if(2&e){var i=t.selectOptions,r=As();Oa(1),us("state",r.getSelectAllState(i)),Oa(1),tl(" ",r.to.selectAllOption," ")}}var LU=function(e){return{selectOptions:e}};function FU(e,t){if(1&e&&gs(0,7),2&e){var n=As().ngIf;As(),us("ngTemplateOutlet",ss(1))("ngTemplateOutletContext",Au(2,LU,n))}}function NU(e,t){if(1&e&&(ds(0,"mat-option",12),Js(1),hs()),2&e){var n=t.$implicit;us("value",n.value)("disabled",n.disabled),Oa(1),tl(" ",n.label," ")}}function VU(e,t){if(1&e&&(ds(0,"mat-optgroup",10),os(1,NU,2,3,"mat-option",11),hs()),2&e){var n=As().$implicit;us("label",n.label),Oa(1),us("ngForOf",n.group)}}function BU(e,t){if(1&e&&(ds(0,"mat-option",12),Js(1),hs()),2&e){var n=As().$implicit;us("value",n.value)("disabled",n.disabled),Oa(1),el(n.label)}}function HU(e,t){if(1&e&&(ps(0),os(1,VU,2,2,"mat-optgroup",8),os(2,BU,2,3,"mat-option",9),ms()),2&e){var n=t.$implicit;Oa(1),us("ngIf",n.group),Oa(1),us("ngIf",!n.group)}}function zU(e,t){if(1&e&&(ps(0),os(1,FU,1,4,"ng-container",5),os(2,HU,3,2,"ng-container",6),ms()),2&e){var n=t.ngIf,i=As();Oa(1),us("ngIf",i.to.multiple&&i.to.selectAllOption),Oa(1),us("ngForOf",n)}}var GU,jU,UU,WU=((GU=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments)).defaultOptions={templateOptions:{options:[],compareWith:function(e,t){return e===t}}},e}return w(n,[{key:"getSelectAllState",value:function(e){return this.empty||0===this.value.length?"":this.value.length!==this.getSelectAllValue(e).length?"indeterminate":"checked"}},{key:"toggleSelectAll",value:function(e){var t=this.getSelectAllValue(e);this.formControl.setValue(this.value&&this.value.length===t.length?[]:t)}},{key:"change",value:function(e){this.to.change&&this.to.change(this.field,e)}},{key:"_getAriaLabelledby",value:function(){return this.to.attributes&&this.to.attributes["aria-labelledby"]?this.to.attributes["aria-labelledby"]:this.formField&&this.formField._labelId?this.formField._labelId:null}},{key:"getSelectAllValue",value:function(e){if(!this.selectAllValue||e!==this.selectAllValue.options){var t=[];e.forEach(function(e){return e.group?t.push.apply(t,a(e.group)):t.push(e)}),this.selectAllValue={options:e,value:t.filter(function(e){return!e.disabled}).map(function(e){return e.value})}}return this.selectAllValue.value}}]),n}(Kj)).\u0275fac=function(e){return qU(e||GU)},GU.\u0275cmp=pt({type:GU,selectors:[["formly-field-mat-select"]],viewQuery:function(e,t){var n;1&e&&Ku(KL,3),2&e&&$u(n=Ju())&&(t.formFieldControl=n.first)},features:[jo],decls:6,vars:17,consts:[["selectAll",""],[3,"id","formControl","formlyAttributes","placeholder","tabIndex","required","compareWith","multiple","errorStateMatcher","aria-labelledby","disableOptionCentering","selectionChange"],[4,"ngIf"],[3,"click"],[1,"mat-option-pseudo-checkbox",3,"state"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"label",4,"ngIf"],[3,"value","disabled",4,"ngIf"],[3,"label"],[3,"value","disabled",4,"ngFor","ngForOf"],[3,"value","disabled"]],template:function(e,t){1&e&&(os(0,RU,3,2,"ng-template",null,0,ic),ds(2,"mat-select",1),ks("selectionChange",function(e){return t.change(e)}),os(3,zU,3,2,"ng-container",2),Iu(4,"async"),Iu(5,"formlySelectOptions"),hs()),2&e&&(Oa(2),us("id",t.id)("formControl",t.formControl)("formlyAttributes",t.field)("placeholder",t.to.placeholder)("tabIndex",t.to.tabindex)("required",t.to.required)("compareWith",t.to.compareWith)("multiple",t.to.multiple)("errorStateMatcher",t.errorStateMatcher)("aria-labelledby",t._getAriaLabelledby())("disableOptionCentering",t.to.disableOptionCentering),Oa(1),us("ngIf",Ru(4,12,Lu(5,14,t.to.options,t.field))))},directives:[KL,Zb,Uk,bj,Qk,wh,JA,zA,bh,Lh,QA],pipes:[qh,mU],encapsulation:2}),GU),qU=fi(WU),YU=((UU=function e(){b(this,e)}).\u0275fac=function(e){return new(e||UU)},UU.\u0275mod=yt({type:UU}),UU.\u0275inj=Ne({imports:[[Zh,Kk,JL,GA,eU,gU,Fj.forChild({types:[{name:"select",component:WU,wrappers:["form-field"]}]})]]}),UU),QU=((jU=function e(){b(this,e)}).\u0275fac=function(e){return new(e||jU)},jU.\u0275mod=yt({type:jU}),jU.\u0275inj=Ne({imports:[[eU,dU,pU,wU,OU,IU,YU]]}),jU),XU=["datepickerToggle"];function $U(e,t){if(1&e&&fs(0,"mat-datepicker-toggle",4),2&e){var n=As(),i=ss(4);us("disabled",n.to.disabled)("for",i)}}var KU,ZU,JU,eW,tW,nW=((KU=function(e){f(n,e);var t=m(n);function n(){var e;return b(this,n),(e=t.apply(this,arguments)).defaultOptions={templateOptions:{datepickerOptions:{startView:"month",datepickerTogglePosition:"suffix",dateInput:function(){},dateChange:function(){},monthSelected:function(){},yearSelected:function(){}}}},e}return w(n,[{key:"ngAfterViewInit",value:function(){var e=this;h(_(n.prototype),"ngAfterViewInit",this).call(this),this.datepickerInput._formField=this.formField,setTimeout(function(){XG(e.field,"_mat"+e.to.datepickerOptions.datepickerTogglePosition,e.datepickerToggle),e.options._markForCheck(e.field)})}}]),n}(Kj)).\u0275fac=function(e){return iW(e||KU)},KU.\u0275cmp=pt({type:KU,selectors:[["formly-field-mat-datepicker"]],viewQuery:function(e,t){var n;1&e&&(Ku(vM,3),Ku(RI,1),Ku(XU,1)),2&e&&($u(n=Ju())&&(t.formFieldControl=n.first),$u(n=Ju())&&(t.datepickerInput=n.first),$u(n=Ju())&&(t.datepickerToggle=n.first))},features:[jo],decls:5,vars:20,consts:[["matInput","",3,"id","errorStateMatcher","formControl","matDatepicker","matDatepickerFilter","max","min","formlyAttributes","placeholder","tabindex","readonly","required","dateInput","dateChange"],["datepickerToggle",""],[3,"color","dateClass","disabled","opened","panelClass","startAt","startView","touchUi","monthSelected","yearSelected"],["picker",""],[3,"disabled","for"]],template:function(e,t){if(1&e){var n=vs();ds(0,"input",0),ks("dateInput",function(e){return t.to.datepickerOptions.dateInput(t.field,e)})("dateChange",function(e){return t.to.datepickerOptions.dateChange(t.field,e)}),hs(),os(1,$U,1,2,"ng-template",null,1,ic),ds(3,"mat-datepicker",2,3),ks("monthSelected",function(e){rn(n);var i=ss(4);return t.to.datepickerOptions.monthSelected(t.field,e,i)})("yearSelected",function(e){rn(n);var i=ss(4);return t.to.datepickerOptions.yearSelected(t.field,e,i)}),hs()}if(2&e){var i=ss(4);us("id",t.id)("errorStateMatcher",t.errorStateMatcher)("formControl",t.formControl)("matDatepicker",i)("matDatepickerFilter",t.to.datepickerOptions.filter)("max",t.to.datepickerOptions.max)("min",t.to.datepickerOptions.min)("formlyAttributes",t.field)("placeholder",t.to.placeholder)("tabindex",t.to.tabindex)("readonly",t.to.readonly)("required",t.to.required),Oa(3),us("color",t.to.color)("dateClass",t.to.datepickerOptions.dateClass)("disabled",t.to.datepickerOptions.disabled)("opened",t.to.datepickerOptions.opened)("panelClass",t.to.datepickerOptions.panelClass)("startAt",t.to.datepickerOptions.startAt)("startView",t.to.datepickerOptions.startView)("touchUi",t.to.datepickerOptions.touchUi)}},directives:[vM,wb,RI,Zb,Uk,bj,Qk,EI,FI],encapsulation:2}),KU),iW=fi(nW),rW=((eW=function e(){b(this,e)}).\u0275fac=function(e){return new(e||eW)},eW.\u0275mod=yt({type:eW}),eW.\u0275inj=Ne({imports:[[Zh,Kk,yM,NI,eU,Fj.forChild({types:[{name:"datepicker",component:nW,wrappers:["form-field"]}]})]]}),eW),aW=((JU=function(){function e(){b(this,e)}return w(e,[{key:"transform",value:function(e){for(var t="",n=!1,i=arguments.length,r=new Array(i>1?i-1:0),a=1;ao?t+e.substring(e.length-o,e.length):e):e.length>o?e.substring(0,o)+t:e}},{key:"getStringLength",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return n?e<0?e+t.length:e-t.length:e}}]),e}()).\u0275fac=function(e){return new(e||JU)},JU.\u0275pipe=kt({name:"truncate",type:JU,pure:!0}),JU),oW=((ZU=function e(){b(this,e)}).\u0275fac=function(e){return new(e||ZU)},ZU.\u0275mod=yt({type:ZU}),ZU.\u0275inj=Ne({}),ZU),sW=["iframe"],lW=function(){function e(){this.onBeforePrint=new Vu,this.onAfterPrint=new Vu,this.onDocumentLoad=new Vu,this.onPageChange=new Vu,this.externalWindow=!1,this.showSpinner=!0,this.openFile=!0,this.download=!0,this.viewBookmark=!0,this.print=!0,this.fullScreen=!0,this.find=!0,this.useOnlyCssZoom=!1,this.errorOverride=!1,this.errorAppend=!0,this.diagnosticLogs=!0}return Object.defineProperty(e.prototype,"page",{get:function(){if(this.PDFViewerApplication)return this.PDFViewerApplication.page;this.diagnosticLogs&&console.warn("Document is not loaded yet!!!. Try to retrieve page# after full load.")},set:function(e){this._page=e,this.PDFViewerApplication?this.PDFViewerApplication.page=this._page:this.diagnosticLogs&&console.warn("Document is not loaded yet!!!. Try to set page# after full load. Ignore this warning if you are not setting page# using '.' notation. (E.g. pdfViewer.page = 5;)")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pdfSrc",{get:function(){return this._src},set:function(e){this._src=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"PDFViewerApplicationOptions",{get:function(){var e=null;return this.externalWindow?this.viewerTab&&(e=this.viewerTab.PDFViewerApplicationOptions):this.iframe.nativeElement.contentWindow&&(e=this.iframe.nativeElement.contentWindow.PDFViewerApplicationOptions),e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"PDFViewerApplication",{get:function(){var e=null;return this.externalWindow?this.viewerTab&&(e=this.viewerTab.PDFViewerApplication):this.iframe.nativeElement.contentWindow&&(e=this.iframe.nativeElement.contentWindow.PDFViewerApplication),e},enumerable:!0,configurable:!0}),e.prototype.receiveMessage=function(e){if(e.data&&e.data.viewerId&&e.data.event){var t=e.data.event,n=e.data.param;this.viewerId==e.data.viewerId&&(this.onBeforePrint&&"beforePrint"==t?this.onBeforePrint.emit():this.onAfterPrint&&"afterPrint"==t?this.onAfterPrint.emit():this.onDocumentLoad&&"pagesLoaded"==t?this.onDocumentLoad.emit(n):this.onPageChange&&"pageChange"==t&&this.onPageChange.emit(n))}},e.prototype.ngOnInit=function(){window.addEventListener("message",this.receiveMessage.bind(this),!1),this.externalWindow||this.loadPdf()},e.prototype.refresh=function(){this.loadPdf()},e.prototype.loadPdf=function(){if(this._src){if(this.externalWindow&&(void 0===this.viewerTab||this.viewerTab.closed)){if(this.viewerTab=window.open("","_blank",this.externalWindowOptions||""),null==this.viewerTab)return void(this.diagnosticLogs&&console.error("ng2-pdfjs-viewer: For 'externalWindow = true'. i.e opening in new tab to work, pop-ups should be enabled."));this.showSpinner&&this.viewerTab.document.write('\n \n
    \n ')}var e,t;if(this._src instanceof Blob)e=encodeURIComponent(URL.createObjectURL(this._src));else if(this._src instanceof Uint8Array){var n=new Blob([this._src],{type:"application/pdf"});e=encodeURIComponent(URL.createObjectURL(n))}else e=this._src;t=this.viewerFolder?this.viewerFolder+"/web/viewer.html":"assets/pdfjs/web/viewer.html",t+="?file="+e,void 0!==this.viewerId&&(t+="&viewerId="+this.viewerId),void 0!==this.onBeforePrint&&(t+="&beforePrint=true"),void 0!==this.onAfterPrint&&(t+="&afterPrint=true"),void 0!==this.onDocumentLoad&&(t+="&pagesLoaded=true"),void 0!==this.onPageChange&&(t+="&pageChange=true"),this.downloadFileName&&(this.downloadFileName.endsWith(".pdf")||(this.downloadFileName+=".pdf"),t+="&fileName="+this.downloadFileName),void 0!==this.openFile&&(t+="&openFile="+this.openFile),void 0!==this.download&&(t+="&download="+this.download),this.startDownload&&(t+="&startDownload="+this.startDownload),void 0!==this.viewBookmark&&(t+="&viewBookmark="+this.viewBookmark),void 0!==this.print&&(t+="&print="+this.print),this.startPrint&&(t+="&startPrint="+this.startPrint),void 0!==this.fullScreen&&(t+="&fullScreen="+this.fullScreen),void 0!==this.find&&(t+="&find="+this.find),this.lastPage&&(t+="&lastpage="+this.lastPage),this.rotatecw&&(t+="&rotatecw="+this.rotatecw),this.rotateccw&&(t+="&rotateccw="+this.rotateccw),this.cursor&&(t+="&cursor="+this.cursor),this.scroll&&(t+="&scroll="+this.scroll),this.spread&&(t+="&spread="+this.spread),this.locale&&(t+="&locale="+this.locale),this.useOnlyCssZoom&&(t+="&useOnlyCssZoom="+this.useOnlyCssZoom),(this._page||this.zoom||this.nameddest||this.pagemode)&&(t+="#"),this._page&&(t+="&page="+this._page),this.zoom&&(t+="&zoom="+this.zoom),this.nameddest&&(t+="&nameddest="+this.nameddest),this.pagemode&&(t+="&pagemode="+this.pagemode),(this.errorOverride||this.errorAppend)&&(t+="&errorMessage="+this.errorMessage,this.errorOverride&&(t+="&errorOverride="+this.errorOverride),this.errorAppend&&(t+="&errorAppend="+this.errorAppend)),this.externalWindow?this.viewerTab.location.href=t:this.iframe.nativeElement.src=t}},e.propDecorators={iframe:[{type:ki,args:["iframe",{static:!0}]}],viewerId:[{type:rc}],onBeforePrint:[{type:ac}],onAfterPrint:[{type:ac}],onDocumentLoad:[{type:ac}],onPageChange:[{type:ac}],viewerFolder:[{type:rc}],externalWindow:[{type:rc}],showSpinner:[{type:rc}],downloadFileName:[{type:rc}],openFile:[{type:rc}],download:[{type:rc}],startDownload:[{type:rc}],viewBookmark:[{type:rc}],print:[{type:rc}],startPrint:[{type:rc}],fullScreen:[{type:rc}],find:[{type:rc}],zoom:[{type:rc}],nameddest:[{type:rc}],pagemode:[{type:rc}],lastPage:[{type:rc}],rotatecw:[{type:rc}],rotateccw:[{type:rc}],cursor:[{type:rc}],scroll:[{type:rc}],spread:[{type:rc}],locale:[{type:rc}],useOnlyCssZoom:[{type:rc}],errorOverride:[{type:rc}],errorAppend:[{type:rc}],errorMessage:[{type:rc}],diagnosticLogs:[{type:rc}],externalWindowOptions:[{type:rc}],page:[{type:rc}],pdfSrc:[{type:rc}]},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=pt({type:e,selectors:[["ng2-pdfjs-viewer"]],viewQuery:function(e,t){var n;1&e&&Ku(sW,3),2&e&&$u(n=Ju())&&(t.iframe=n.first)},inputs:{externalWindow:"externalWindow",showSpinner:"showSpinner",openFile:"openFile",download:"download",viewBookmark:"viewBookmark",print:"print",fullScreen:"fullScreen",find:"find",useOnlyCssZoom:"useOnlyCssZoom",errorOverride:"errorOverride",errorAppend:"errorAppend",diagnosticLogs:"diagnosticLogs",page:"page",pdfSrc:"pdfSrc",viewerId:"viewerId",viewerFolder:"viewerFolder",downloadFileName:"downloadFileName",startDownload:"startDownload",startPrint:"startPrint",zoom:"zoom",nameddest:"nameddest",pagemode:"pagemode",lastPage:"lastPage",rotatecw:"rotatecw",rotateccw:"rotateccw",cursor:"cursor",scroll:"scroll",spread:"spread",locale:"locale",errorMessage:"errorMessage",externalWindowOptions:"externalWindowOptions"},outputs:{onBeforePrint:"onBeforePrint",onAfterPrint:"onAfterPrint",onDocumentLoad:"onDocumentLoad",onPageChange:"onPageChange"},decls:2,vars:1,consts:[["title","ng2-pdfjs-viewer","width","100%","height","100%",3,"hidden"],["iframe",""]],template:function(e,t){1&e&&fs(0,"iframe",0,1),2&e&&us("hidden",t.externalWindow||!t.externalWindow&&!t.pdfSrc)},encapsulation:2}),e}(),uW=function(){function e(){}return e.forRoot=function(){return{ngModule:e}},e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=yt({type:e}),e.\u0275inj=Ne({imports:[[Zh]]}),e}(),cW={UKNOWN:"Unknown"},dW={CHROME:"Chrome",FIREFOX:"Firefox",SAFARI:"Safari",OPERA:"Opera",IE:"IE",MS_EDGE:"MS-Edge",MS_EDGE_CHROMIUM:"MS-Edge-Chromium",FB_MESSANGER:"FB-Messanger",SAMSUNG:"Samsung",UCBROWSER:"UC-Browser",UNKNOWN:cW.UKNOWN},hW={HTC:/HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\bEVO\b|T-Mobile G1|Z520m|Android [0-9.]+; Pixel/,NEXUS_PHONE:/Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6/,DELL:/Dell[;]? (Streak|Aero|Venue|Venue Pro|Flash|Smoke|Mini 3iX)|XCD28|XCD35|\b001DL\b|\b101DL\b|\bGS01\b/,MOTOROLA:new RegExp("Motorola|DROIDX|DROID BIONIC|\\bDroid\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|\n A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|\n MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|\n ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|\n WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|\n XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|\n XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\bMoto E\\b|XT1068|XT1092|XT1052"),SAMSUNG:new RegExp("\\bSamsung\\b|SM-G950F|SM-G955F|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|\n GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|\n GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|\n GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|\n GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|\n GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|\n GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|\n GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|\n GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|\n GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|\n GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|\n GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|\n GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|\n GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|\n GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|\n GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|\n GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|\n GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|\n SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|\n SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|\n SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|\n SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|\n SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|\n SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|\n SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|\n SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|\n SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|\n SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|\n SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|\n SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|\n SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|\n SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|\n SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|\n SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|\n SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|\n SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|\n SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|\n SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|\n SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|\n SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|\n SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|\n SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|\n SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|\n SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|\n SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|\n SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|\n SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|\n SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|\n SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|\n GT-N7105|SCH-I535|SM-N900A|SM-N900T|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|\n GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|\n GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|\n SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|\n SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205|SM-G9350|SM-J120F|SM-G920F|SM-G920V|SM-G930F|\n SM-N910C|SM-A310F|GT-I9190|SM-J500FN|SM-G903F|SM-J330F"),LG:new RegExp("\\bLG\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|\n LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|\n C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|\n LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|\n VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802|\n MS323|M257)"),SONY:/SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533/,ASUS:/Asus.*Galaxy|PadFone.*Mobile/,NOKIA_LUMIA:/Lumia [0-9]{3,4}/,MICROMAX:/Micromax.*\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\b/,PALM:/PalmSource|Palm/,VERTU:/Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature/,PANTECH:new RegExp("PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|\n IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|\n IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|\n CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|\n P2000|P7040|P7000|C790"),FLY:/IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250/,WIKO:new RegExp("KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|\n SUNSET|GOA(?!nna)|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLIM|CINK SLIM 2|CINK +|\n CINK KING|CINK PEAX|CINK SLIM|SUBLIM"),I_MOBILE:/i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)/,SIMVALLEY:/\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\b/,WOLFGANG:/AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q/,ALCATEL:/Alcatel/,NINTENDO:/Nintendo (3DS|Switch)/,AMOI:/Amoi/,INQ:/INQ/,VITA:/\bVita\b/,BLACKBERRY:/\bBlackBerry\b|\bBB10\b|rim[0-9]+/,FIREFOX_OS:/\bFirefox-OS\b/,IPHONE:/\biPhone\b/,iPod:/\biPod\b/,ANDROID:/\bAndroid\b/,WINDOWS_PHONE:/\bWindows-Phone\b/,GENERIC_PHONE:new RegExp("Tapatalk|PDA;|SAGEM|\\bmmp\\b|pocket|\\bpsp\\b|symbian|Smartphone|smartfon|treo|up.browser|\n up.link|vodafone|\\bwap\\b|nokia|Nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser")},fW={iPad:/iPad|iPad.*Mobile/,NexusTablet:/Android.*Nexus[\s]+(7|9|10)/,GoogleTablet:/Android.*Pixel C/,SamsungTablet:new RegExp("SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|\n GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|\n SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|\n GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|\n SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|\n GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|\n SHV-E230S|SHW-M180K|SHW-M180L|SM-T290|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|\n SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|\n GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|\n SM-P601|SM-P605|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|\n GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|\n SM-T510|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|\n SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T330|\n SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|\n SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-T116BU|SM-P550|\n SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T815|SM-T360|SM-T533|\n SM-T113|SM-T335|SM-T715|SM-T560|SM-T670|SM-T677|SM-T377|SM-T567|SM-T357T|SM-T555|SM-T561|SM-T713|\n SM-T719|SM-T813|SM-T819|SM-T580|SM-T590|SM-T355Y?|SM-T280|SM-T817A|SM-T820|SM-W700|SM-P580|SM-T587|SM-P350|\n SM-P555M|SM-P355M|SM-T113NU|SM-T815Y|SM-T585|SM-T285|SM-T825|SM-W708|SM-T835|SM-P585Y"),Kindle:new RegExp("Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|\n KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI|KFARWI|KFFOWI|KFGIWI|KFMEWI)\\b|Android.*Silk/[0-9.]+ like Chrome /[0-9.]+ (?!Mobile)"),SurfaceTablet:/Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)/,HPTablet:/HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10/,AsusTablet:new RegExp("^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|\n TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|\n Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|\n ME560CG|ME372CG|ME302KL| K010 | K011 | K017 | K01E |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|\n ME581CL|ME8510C|ME181C|P01Y|PO1MA|P01Z|\\bP027\\b|\\bP024\\b|\\bP00C\\b"),BlackBerryTablet:/PlayBook|RIM Tablet/,HTCtablet:/HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410/,MotorolaTablet:/xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617/,NookTablet:/Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2/,AcerTablet:new RegExp("Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|\n W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b|\n \\bA3-A20\\b|\\bA3-A30"),ToshibaTablet:/Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO/,LGTablet:/\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\b/,FujitsuTablet:/Android.*\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\b/,PrestigioTablet:new RegExp("PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|\n PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|\n PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|\n PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|\n PMT5887|PMT5001|PMT5002"),LenovoTablet:new RegExp("Lenovo TAB|Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|YT3-850M|YT3-X90L|YT3-X90F|\n YT3-X90X|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|\n B8000|B8080)(-|)(FL|F|HV|H|)|TB-X103F|TB-X304F|TB-X304L|TB-X704F|TB-8703F|Tab2A7-10F|TB2-X30L|TB-8504F"),DellTablet:/Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7/,YarvikTablet:new RegExp("Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|\n TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|\n TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|\n TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|\n TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b"),MedionTablet:/Android.*\bOYO\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB/,ArnovaTablet:/97G4|AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2/,IntensoTablet:/INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004/,IRUTablet:/M702pro/,MegafonTablet:/MegaFon V9|\bZTE V9\b|Android.*\bMT7A\b/,EbodaTablet:/E-Boda (Supreme|Impresspeed|Izzycomm|Essential)/,AllViewTablet:/Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)/,ArchosTablet:new RegExp("\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|c|)(G10|\n Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b"),AinolTablet:/NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark/,NokiaLumiaTablet:/Lumia 2520/,SonyTablet:new RegExp("Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|\n SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|\n EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP641|SGP612|SOT31|SGP771|SGP611|\n SGP612|SGP712"),PhilipsTablet:/\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\b/,CubeTablet:/Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT/,CobyTablet:new RegExp("MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|\n MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010"),MIDTablet:new RegExp("M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|\n MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|\n MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733|MID4X10"),MSITablet:new RegExp("MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|\n Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b"),SMiTTablet:/Android.*(\bMID\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)/,RockChipTablet:/Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A/,FlyTablet:/IQ310|Fly Vision/,bqTablet:new RegExp("Android.*(bq)?.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|\n Livingstone|Cervantes|Avant|Aquaris ([E|M]10|M8))|Maxwell.*Lite|Maxwell.*Plus"),HuaweiTablet:new RegExp("MediaPad|MediaPad 7 Youth|MediaPad T3 10|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|\n S7-201|S7-Slim|M2-A01L|BAH-L09|BAH-W09|AGS-W09"),NecTablet:/\bN-06D|\bN-08D/,PantechTablet:/Pantech.*P4100/,BronchoTablet:/Broncho.*(N701|N708|N802|a710)/,VersusTablet:/TOUCHPAD.*[78910]|\bTOUCHTAB\b/,ZyncTablet:/z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900/,PositivoTablet:/TB07STA|TB10STA|TB07FTA|TB10FTA/,NabiTablet:/Android.*\bNabi/,KoboTablet:/Kobo Touch|\bK080\b|\bVox\b Build|\bArc\b Build/,DanewTablet:/DSlide.*\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\b/,TexetTablet:new RegExp("NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|\n TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|\n TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|\n TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|\n TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|\n TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|\n TB-436|TB-416|TB-146SE|TB-126SE"),PlaystationTablet:/Playstation.*(Portable|Vita)/,TrekstorTablet:/ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab/,PyleAudioTablet:/\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\b/,AdvanTablet:new RegExp("Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|\n T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b"),DanyTechTablet:"Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|\n Genius TAB GII|Genius TAB GIII|Genius Tab S1",GalapadTablet:/Android.*\bG1\b(?!\))/,MicromaxTablet:/Funbook|Micromax.*\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\b/,KarbonnTablet:/Android.*\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\b/,AllFineTablet:/Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide/,PROSCANTablet:new RegExp("\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|\n PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|\n PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|\n PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b"),YONESTablet:/BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026/,ChangJiaTablet:new RegExp("TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|\n TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|\n TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|\n TPC10111|TPC10203|TPC10205|TPC10503"),GUTablet:/TX-A1301|TX-M9002|Q702|kf026/,PointOfViewTablet:new RegExp("TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|\n TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|\n TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|\n TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10"),OvermaxTablet:new RegExp("OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|\n MagicTab|Stream|TB-08|TB-09)|Qualcore 1027"),HCLTablet:/HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync/,DPSTablet:/DPS Dream 9|DPS Dual 7/,VistureTablet:/V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10/,CrestaTablet:/CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989/,MediatekTablet:/\bMT8125|MT8389|MT8135|MT8377\b/,ConcordeTablet:/Concorde([ ]+)?Tab|ConCorde ReadMan/,GoCleverTablet:new RegExp("GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|\n TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|\n GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|\n TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|\n TAB R104|TAB R83.3|TAB A1042"),ModecomTablet:new RegExp("FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|\n FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|\n FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003"),VoninoTablet:new RegExp("\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|\n Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|\n Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b"),ECSTablet:/V07OT2|TM105A|S10OT1|TR10CS1/,StorexTablet:/eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab/,VodafoneTablet:/SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7|VF-1497/,EssentielBTablet:/Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2/,RossMoorTablet:/RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711/,iMobileTablet:/i-mobile i-note/,TolinoTablet:/tolino tab [0-9.]+|tolino shine/,AudioSonicTablet:/\bC-22Q|T7-QC|T-17B|T-17P\b/,AMPETablet:/Android.* A78 /,SkkTablet:/Android.* (SKYPAD|PHOENIX|CYCLOPS)/,TecnoTablet:/TECNO P9|TECNO DP8D/,JXDTablet:new RegExp("Android.* \\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|\n S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|\n P1000|P300|S18|S6600|S9100)\\b"),iJoyTablet:new RegExp("Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|\n Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|\n Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|\n Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|\n Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)"),FX2Tablet:/FX2 PAD7|FX2 PAD10/,XoroTablet:new RegExp("KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|\n PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|\n PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|\n TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151"),ViewsonicTablet:/ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a/,VerizonTablet:/QTAQZ3|QTAIR7|QTAQTZ3|QTASUN1|QTASUN2|QTAXIA1/,OdysTablet:/LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\bXELIO\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10/,CaptivaTablet:/CAPTIVA PAD/,IconbitTablet:new RegExp("NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|\n NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S"),TeclastTablet:new RegExp("T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\n \\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\n \\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\n \\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\n \\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\n \\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\n \\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\n \\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\n \\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi"),OndaTablet:new RegExp("\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|\n V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|\n V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|\n Vi40)\\b[s]+|V10 \\b4G\\b"),JaytechTablet:/TPC-PA762/,BlaupunktTablet:/Endeavour 800NG|Endeavour 1010/,DigmaTablet:/\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\b/,EvolioTablet:/ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\bEvotab\b|\bNeura\b/,LavaTablet:/QPAD E704|\bIvoryS\b|E-TAB IVORY|\bE-TAB\b/,AocTablet:/MW0811|MW0812|MW0922|MTK8382|MW1031|MW0831|MW0821|MW0931|MW0712/,MpmanTablet:new RegExp("MP11 OCTA|MP10 OCTA|MPQC1114|MPQC1004|MPQC994|MPQC974|MPQC973|MPQC804|MPQC784|MPQC780|\n \\bMPG7\\b|MPDCG75|MPDCG71|MPDC1006|MP101DC|MPDC9000|MPDC905|MPDC706HD|MPDC706|MPDC705|MPDC110|\n MPDC100|MPDC99|MPDC97|MPDC88|MPDC8|MPDC77|MP709|MID701|MID711|MID170|MPDC703|MPQC1010"),CelkonTablet:/CT695|CT888|CT[\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\bCT-1\b/,WolderTablet:new RegExp("miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|\n POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|\n FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b"),MediacomTablet:"M-MPI10C3G|M-SP10EG|M-SP10EGP|M-SP10HXAH|M-SP7HXAH|M-SP10HXBH|M-SP8HXAH|M-SP8MXA",MiTablet:/\bMI PAD\b|\bHM NOTE 1W\b/,NibiruTablet:/Nibiru M1|Nibiru Jupiter One/,NexoTablet:/NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI/,LeaderTablet:new RegExp("TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|\n TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100"),UbislateTablet:/UbiSlate[\s]?7C/,PocketBookTablet:/Pocketbook/,KocasoTablet:/\b(TB-1207)\b/,HisenseTablet:/\b(F5281|E2371)\b/,Hudl:/Hudl HT7S3|Hudl 2/,TelstraTablet:/T-Hub2/,GenericTablet:new RegExp("Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|\n A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|\n Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bTP750\\b|\\bQTAQZ3\\b|WVT101|TM1088|KT107")},pW={BLACKBERRY:"Blackberry",FIREFOX_OS:"Firefox-OS",CHROME_BOOK:"Chrome-Book",WINDOWS_PHONE:"Windows-Phone",VITA:"Vita",PS4:"PS4",CHROMECAST:"Chromecast",APPLE_TV:"Apple-TV",GOOGLE_TV:"Google-TV",ANDROID:"Android",Tesla:"Tesla",iPad:"iPad",IPHONE:"iPhone",iPod:"iPod",UNKNOWN:cW.UKNOWN,HTC:"HTC",NEXUS_PHONE:"Nexus Phone",NexusTablet:"Nexus Tablet",DELL:"Dell",MOTOROLA:"Motorola",SAMSUNG:"Samsung",LG:"LG",SONY:"Sony",ASUS:"Asus",NOKIA_LUMIA:"Nokia Lumia",MICROMAX:"Micromax",PALM:"Palm",VERTU:"Vertu",PANTECH:"PANTECH",FLY:"Fly",WIKO:"WIKO",I_MOBILE:"i-mobile",SIMVALLEY:"Simvalley",WOLFGANG:"Wolfgang",ALCATEL:"Alcatel",NINTENDO:"Nintendo",AMOI:"Amoi",INQ:"INQ",GENERIC_PHONE:"Generic Phone"},mW={WINDOWS:"Windows",MAC:"Mac",IOS:"iOS",ANDROID:"Android",LINUX:"Linux",UNIX:"Unix",FIREFOX_OS:"Firefox-OS",CHROME_OS:"Chrome-OS",WINDOWS_PHONE:"Windows-Phone",UNKNOWN:cW.UKNOWN},gW={WINDOWS_3_11:"windows-3-11",WINDOWS_95:"windows-95",WINDOWS_ME:"windows-me",WINDOWS_98:"windows-98",WINDOWS_CE:"windows-ce",WINDOWS_2000:"windows-2000",WINDOWS_XP:"windows-xp",WINDOWS_SERVER_2003:"windows-server-2003",WINDOWS_VISTA:"windows-vista",WINDOWS_7:"windows-7",WINDOWS_8_1:"windows-8-1",WINDOWS_8:"windows-8",WINDOWS_10:"windows-10",WINDOWS_PHONE_7_5:"windows-phone-7-5",WINDOWS_PHONE_8_1:"windows-phone-8-1",WINDOWS_PHONE_10:"windows-phone-10",WINDOWS_NT_4_0:"windows-nt-4-0",MACOSX_15:"mac-os-x-15",MACOSX_14:"mac-os-x-14",MACOSX_13:"mac-os-x-13",MACOSX_12:"mac-os-x-12",MACOSX_11:"mac-os-x-11",MACOSX_10:"mac-os-x-10",MACOSX_9:"mac-os-x-9",MACOSX_8:"mac-os-x-8",MACOSX_7:"mac-os-x-7",MACOSX_6:"mac-os-x-6",MACOSX_5:"mac-os-x-5",MACOSX_4:"mac-os-x-4",MACOSX_3:"mac-os-x-3",MACOSX_2:"mac-os-x-2",MACOSX:"mac-os-x",iOS:"iOS",UNKNOWN:cW.UKNOWN.toLowerCase()},vW=Object.assign(Object.assign(Object.assign({},hW),fW),{FIREFOX_OS:{and:[/\bFirefox\b/,/\bMobile\b/]},CHROME_BOOK:/\bCrOS\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,CHROMECAST:/\bCrKey\b/,APPLE_TV:/^iTunes-AppleTV\/4.1$/,GOOGLE_TV:/\bGoogleTV\b/,Tesla:/Tesla\/([0-9]{4}.[0-9]{1,2}.?[0-9]{0,2}.?[0-9]{0,2})-(.{7})/}),yW={WINDOWS_3_11:/Win16/,WINDOWS_95:/(Windows 95|Win95|Windows_95)/,WINDOWS_ME:/(Win 9x 4.90|Windows ME)/,WINDOWS_98:/(Windows 98|Win98)/,WINDOWS_CE:/Windows CE/,WINDOWS_2000:/(Windows NT 5.0|Windows 2000)/,WINDOWS_XP:/(Windows NT 5.1|Windows XP)/,WINDOWS_SERVER_2003:/Windows NT 5.2/,WINDOWS_VISTA:/Windows NT 6.0/,WINDOWS_7:/(Windows 7|Windows NT 6.1)/,WINDOWS_8_1:/(Windows 8.1|Windows NT 6.3)/,WINDOWS_8:/(Windows 8|Windows NT 6.2)/,WINDOWS_10:/(Windows NT 10.0)/,WINDOWS_PHONE_7_5:/(Windows Phone OS 7.5)/,WINDOWS_PHONE_8_1:/(Windows Phone 8.1)/,WINDOWS_PHONE_10:/(Windows Phone 10)/,WINDOWS_NT_4_0:{and:[/(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/,{not:/Windows NT 10.0/}]},MACOSX:/(MAC OS X\s*[^ 0-9])/,MACOSX_3:/(Darwin 10.3|Mac OS X 10.3)/,MACOSX_4:/(Darwin 10.4|Mac OS X 10.4)/,MACOSX_5:/(Mac OS X 10.5)/,MACOSX_6:/(Mac OS X 10.6)/,MACOSX_7:/(Mac OS X 10.7)/,MACOSX_8:/(Mac OS X 10.8)/,MACOSX_9:/(Mac OS X 10.9)/,MACOSX_10:/(Mac OS X 10.10)/,MACOSX_11:/(Mac OS X 10.11)/,MACOSX_12:/(Mac OS X 10.12)/,MACOSX_13:/(Mac OS X 10.13)/,MACOSX_14:/(Mac OS X 10.14)/,MACOSX_15:/(Mac OS X 10.15)/,iOS:/(iPhone OS\s*[0-9_]+)/},_W={CHROME:[/\bChrome\/([\d\.]+)\b/,/\bCriOS\/([\d\.]+)\b/,/\bHeadlessChrome\/([\d\.]+)\b/],FIREFOX:[/\bFirefox\/([\d\.]+)\b/,/\bFxiOS\/([\d\.]+)\b/],SAFARI:[/\bVersion\/([\d\.]+)\b/,/\bSafari\/([\d\.]+)\b/],OPERA:[/\bVersion\/([\d\.]+)\b/,/\bOPR\/([\d\.]+)\b/],IE:[/\bMSIE ([\d\.]+\w?)\b/,/\brv:([\d\.]+\w?)\b/],MS_EDGE:/\bEdg(?:e|A|iOS)\/([\d\.]+)\b/,MS_EDGE_CHROMIUM:/\bEdg\/([\d\.]+)\b/,SAMSUNG:/\bSamsungBrowser\/([\d\.]+)\b/,UCBROWSER:/\bUCBrowser\/([\d\.]+)\b/},bW=function(e,t){return e[t]=yW[t],e},kW=Object.keys(yW).reduce(bW,{}),wW=function(e,t){return e[dW[t]]=_W[t],e},CW=Object.keys(_W).reduce(wW,{}),xW=Object.freeze({__proto__:null,GENERAL:cW,BROWSERS:dW,MOBILES_RE:hW,TABLETS_RE:fW,DEVICES:pW,OS:mW,OS_VERSIONS:gW,OS_RE:{WINDOWS:{and:[{or:[/\bWindows|(Win\d\d)\b/,/\bWin 9x\b/]},{not:/\bWindows Phone\b/}]},MAC:{and:[/\bMac OS\b/,{not:{or:[/\biPhone\b/,/\biPad\b/,/\biPod\b/,/\bWindows Phone\b/]}}]},IOS:{and:[{or:[/\biPad\b/,/\biPhone\b/,/\biPod\b/]},{not:/\bWindows Phone\b/}]},ANDROID:{and:[/\bAndroid\b/,{not:/\bWindows Phone\b/}]},LINUX:/\bLinux\b/,UNIX:/\bUNIX\b/,FIREFOX_OS:{and:[/\bFirefox\b/,/Mobile\b/]},CHROME_OS:/\bCrOS\b/,WINDOWS_PHONE:{or:[/\bIEMobile\b/,/\bWindows Phone\b/]},PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/},BROWSERS_RE:{CHROME:{and:[{or:[/\bChrome\b/,/\bCriOS\b/,/\bHeadlessChrome\b/]},{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},FIREFOX:{or:[/\bFirefox\b/,/\bFxiOS\b/]},SAFARI:{and:[/^((?!CriOS).)*\Safari\b.*$/,{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bWindows Phone\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},OPERA:{or:[/Opera\b/,/\bOPR\b/]},IE:{or:[/\bMSIE\b/,/\bTrident\b/,/^Mozilla\/5\.0 \(Windows NT 10\.0; Win64; x64\)$/]},MS_EDGE:{or:[/\bEdg(e|A|iOS)\b/]},MS_EDGE_CHROMIUM:/\bEdg\/\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/,FB_MESSANGER:/\bFBAN\/MessengerForiOS\b/,SAMSUNG:/\bSamsungBrowser\b/,UCBROWSER:/\bUCBrowser\b/},DEVICES_RE:vW,OS_VERSIONS_RE_MAP:yW,BROWSER_VERSIONS_RE_MAP:_W,OS_VERSIONS_RE:kW,BROWSER_VERSIONS_RE:CW,"\u02750":bW,"\u02751":wW}),SW=function(){function e(){b(this,e)}return w(e,[{key:"test",value:function(e,t){var n=this;return"string"==typeof t&&(t=new RegExp(t)),t instanceof RegExp?t.test(e):t&&Array.isArray(t.and)?t.and.every(function(t){return n.test(e,t)}):t&&Array.isArray(t.or)?t.or.some(function(t){return n.test(e,t)}):!(!t||!t.not||this.test(e,t.not))}},{key:"exec",value:function(e,t){var n=this;return"string"==typeof t&&(t=new RegExp(t)),t instanceof RegExp?t.exec(e):t&&Array.isArray(t)?t.reduce(function(t,i){return t||n.exec(e,i)},null):null}}]),e}(),AW=function(e){return e.Mobile="mobile",e.Tablet="tablet",e.Desktop="desktop",e.Unknown="unknown",e}({}),OW=function(e){return e.Portrait="portrait",e.Landscape="landscape",e}({}),EW=((tW=function(){function e(t){b(this,e),this.platformId=t,this.ua="",this.userAgent="",this.os="",this.browser="",this.device="",this.os_version="",this.browser_version="",this.reTree=new SW,this.deviceType="",this.orientation="",Jh(this.platformId)&&"undefined"!=typeof window&&(this.userAgent=window.navigator.userAgent),this.setDeviceInfo(this.userAgent)}return w(e,[{key:"setDeviceInfo",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;t!==this.userAgent&&(this.userAgent=t);var n=[{const:"OS",prop:"os"},{const:"BROWSERS",prop:"browser"},{const:"DEVICES",prop:"device"},{const:"OS_VERSIONS",prop:"os_version"}];if(n.forEach(function(n){e[n.prop]=Object.keys(xW[n.const]).reduce(function(i,r){return"device"===xW[n.const][r]&&Jh(e.platformId)&&(e.reTree.test(e.userAgent,fW.iPad)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)?(i[xW[n.const][r]]="iPad",Object):(i[xW[n.const][r]]=e.reTree.test(t,xW["".concat(n.const,"_RE")][r]),i)},{})}),n.forEach(function(t){e[t.prop]=Object.keys(xW[t.const]).map(function(e){return xW[t.const][e]}).reduce(function(n,i){return"device"===t.prop&&n===xW[t.const].ANDROID?e[t.prop][i]?i:n:n===xW[t.const].UNKNOWN&&e[t.prop][i]?i:n},xW[t.const].UNKNOWN)}),this.browser_version="0",this.browser!==dW.UNKNOWN){var i=this.reTree.exec(t,CW[this.browser]);i&&(this.browser_version=i[1])}this.orientation="undefined"!=typeof window&&window.matchMedia?window.matchMedia("(orientation: landscape)").matches?OW.Landscape:OW.Portrait:cW.UKNOWN,this.deviceType=this.isTablet()?AW.Tablet:this.isMobile(this.userAgent)?AW.Mobile:this.isDesktop(this.userAgent)?AW.Desktop:AW.Unknown}},{key:"getDeviceInfo",value:function(){return{userAgent:this.userAgent,os:this.os,browser:this.browser,device:this.device,os_version:this.os_version,browser_version:this.browser_version,deviceType:this.deviceType,orientation:this.orientation}}},{key:"isMobile",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;return!this.isTablet(t)&&!!Object.keys(hW).find(function(n){return e.reTree.test(t,hW[n])})}},{key:"isTablet",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;return!(!Jh(this.platformId)||!(this.reTree.test(this.userAgent,fW.iPad)||"undefined"!=typeof navigator&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1))||!!Object.keys(fW).find(function(n){return!!e.reTree.test(t,fW[n])})}},{key:"isDesktop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent,t=[pW.PS4,pW.CHROME_BOOK,pW.UNKNOWN];return(this.device!==pW.UNKNOWN||!this.isMobile(e)&&!this.isTablet(e))&&t.indexOf(this.device)>-1}}]),e}()).\u0275fac=function(e){return new(e||tW)(Ni(hc))},tW.\u0275prov=Le({factory:function(){return new tW(Ni(hc))},token:tW,providedIn:"root"}),tW),TW=o("DlQD"),PW=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}();function DW(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new MW(e))}}var MW=function(){function e(t){b(this,e),this.defaultValue=t}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new IW(e,this.defaultValue))}}]),e}(),IW=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this,e)).defaultValue=i,r.isEmpty=!0,r}return w(n,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(P);function RW(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:NW;return function(t){return t.lift(new LW(e))}}var LW=function(){function e(t){b(this,e),this.errorFactory=t}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new FW(e,this.errorFactory))}}]),e}(),FW=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this,e)).errorFactory=i,r.hasValue=!1,r}return w(n,[{key:"_next",value:function(e){this.hasValue=!0,this.destination.next(e)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}]),n}(P);function NW(){return new PW}function VW(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?jm(function(t,n){return e(t,n,i)}):I,Qg(1),n?DW(t):RW(function(){return new PW}))}}var BW,HW,zW,GW,jW=["*"],UW=function e(){b(this,e)},WW=new _i("SECURITY_CONTEXT"),qW=((BW=function(){function e(t,n,i,r,a){b(this,e),this.platform=t,this.securityContext=n,this.http=i,this.sanitizer=a,this.initialMarkedOptions={renderer:new TW.Renderer},this.options=r}return w(e,[{key:"options",get:function(){return this._options},set:function(e){this._options=Object.assign(Object.assign({},this.initialMarkedOptions),e)}},{key:"renderer",get:function(){return this.options.renderer},set:function(e){this.options.renderer=e}},{key:"compile",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.options,r=this.trimIndentation(e),a=t?this.decodeHtml(r):r,o=n?this.renderEmoji(a):a,s=Object(TW.parse)(o,i);return this.sanitizer.sanitize(this.securityContext,s)||""}},{key:"getSource",value:function(e){var t=this;if(!this.http)throw new Error("[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(e,{responseType:"text"}).pipe(q(function(n){return t.handleExtension(e,n)}))}},{key:"highlight",value:function(e){if(Jh(this.platform)&&"undefined"!=typeof Prism){e||(e=document);var t=e.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(t,function(e){return e.classList.add("language-none")}),Prism.highlightAllUnder(e)}}},{key:"renderKatex",value:function(e,t){if("undefined"==typeof katex||void 0===katex.renderToString)throw new Error("[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information");return e.replace(/\$([^\s][^$]*?[^\s])\$/gm,function(e,n){return katex.renderToString(n,t)})}},{key:"decodeHtml",value:function(e){if(Jh(this.platform)){var t=document.createElement("textarea");return t.innerHTML=e,t.value}return e}},{key:"handleExtension",value:function(e,t){var n=e?e.split("?")[0].split(".").splice(-1).join():null;return"md"!==n?"```"+n+"\n"+t+"\n```":t}},{key:"renderEmoji",value:function(e){if("undefined"==typeof joypixels||void 0===joypixels.shortnameToUnicode)throw new Error("[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information");return joypixels.shortnameToUnicode(e)}},{key:"trimIndentation",value:function(e){return e?e.split("\n").map(function(e){var n=t;return e.length>0&&(n=isNaN(n)?e.search(/\S|$/):Math.min(e.search(/\S|$/),n)),isNaN(t)&&(t=n),n?e.substring(n):e}).join("\n"):"";var t}}]),e}()).\u0275fac=function(e){return new(e||BW)(Ni(hc),Ni(WW),Ni(vg,8),Ni(UW,8),Ni(Hf))},BW.\u0275prov=Le({token:BW,factory:BW.\u0275fac}),BW),YW=function(e){return e.LineHighlight="line-highlight",e.LineNumbers="line-numbers",e}({}),QW=((zW=function(){function e(t,n){b(this,e),this.element=t,this.markdownService=n,this.error=new Vu,this.load=new Vu,this.ready=new Vu,this._emoji=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1}return w(e,[{key:"emoji",get:function(){return this._emoji},set:function(e){this._emoji=this.coerceBooleanProperty(e)}},{key:"katex",get:function(){return this._katex},set:function(e){this._katex=this.coerceBooleanProperty(e)}},{key:"lineHighlight",get:function(){return this._lineHighlight},set:function(e){this._lineHighlight=this.coerceBooleanProperty(e)}},{key:"lineNumbers",get:function(){return this._lineNumbers},set:function(e){this._lineNumbers=this.coerceBooleanProperty(e)}},{key:"ngOnChanges",value:function(){null==this.data?null==this.src||this.handleSrc():this.handleData()}},{key:"ngAfterViewInit",value:function(){this.data||this.src||this.handleTransclusion()}},{key:"render",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.markdownService.compile(e,t,this.emoji);n=this.katex?this.markdownService.renderKatex(n,this.katexOptions):n,this.element.nativeElement.innerHTML=n,this.handlePlugins(),this.markdownService.highlight(this.element.nativeElement),this.ready.emit()}},{key:"coerceBooleanProperty",value:function(e){return null!=e&&"false"!="".concat(e)}},{key:"handleData",value:function(){this.render(this.data)}},{key:"handleSrc",value:function(){var e=this;this.markdownService.getSource(this.src).subscribe(function(t){e.render(t),e.load.emit(t)},function(t){return e.error.emit(t)})}},{key:"handleTransclusion",value:function(){this.render(this.element.nativeElement.innerHTML,!0)}},{key:"handlePlugins",value:function(){this.lineHighlight&&(this.setPluginClass(this.element.nativeElement,YW.LineHighlight),this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset})),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,YW.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}},{key:"setPluginClass",value:function(e,t){for(var n=e.querySelectorAll("pre"),i=0;i0},e.treeControl=new Dz(function(e){return fp(e.children)}),e.dataSource=new pG,e}return w(n,[{key:"ngOnInit",value:function(){var e=this;this.to.options.subscribe(function(t){e.dataSource.data=t,e.updateSelection()})}},{key:"updateSelection",value:function(){var e=this;this.isReady()&&(this.model.categories&&this.model.categories.forEach(function(t){var n=e.findNode(t.id);n&&e.toggleNode(n),e._updateModelCategories()}),this.dataLoaded=!0)}},{key:"findNode",value:function(e){var t=this,n=[];return this.dataSource.data.forEach(function(e){t.treeControl.getDescendants(e).forEach(function(e){return n.push(e)}),n.push(e)}),n.find(function(t){return t.id===e})}},{key:"numSelectedDescendants",value:function(e){var t=this;return this.treeControl.getDescendants(e).filter(function(e){return t.checklistSelection.isSelected(e)}).length}},{key:"toggleNode",value:function(e){var t=this;this.checklistSelection.toggle(e);for(var n=[],i=this.findNode(e.parent_id);null!=i;)n.push(i),i=this.findNode(i.parent_id);this.checklistSelection.isSelected(e)?n.forEach(function(e){var n=t.findNode(e.id);t.checklistSelection.select(n)}):n.forEach(function(e){var n=t.findNode(e.id);t.numSelectedDescendants(n)<1&&t.checklistSelection.deselect(n)}),this._updateModelCategories()}},{key:"isReady",value:function(){return!!(this.field&&this.field.form&&this.field.form.controls)}},{key:"_updateModelCategories",value:function(){var e=this;this.model.categories=[],this.checklistSelection.selected.forEach(function(t){return e.model.categories[t.id]=!0})}}]),n}(Kj)).\u0275fac=function(e){return new(e||vq)},vq.\u0275cmp=pt({type:vq,selectors:[["app-multiselect-tree"]],inputs:{to:"to"},features:[jo],decls:3,vars:3,consts:[[1,"tree-select",3,"dataSource","treeControl"],["matTreeNodeToggle","",4,"matTreeNodeDef"],[4,"matTreeNodeDef","matTreeNodeDefWhen"],["matTreeNodeToggle",""],[1,"mat-tree-node"],["disabled","","mat-icon-button",""],[3,"checked","change"],["mat-icon-button","","matTreeNodeToggle","",1,"toggle-node-button"],[1,"mat-icon-rtl-mirror"],["disabled","true",3,"checked"],["matBadgeColor","accent","matBadgeOverlap","false",3,"matBadge",4,"ngIf"],[4,"ngIf"],["matTreeNodeOutlet",""],["matBadgeColor","accent","matBadgeOverlap","false",3,"matBadge"]],template:function(e,t){1&e&&(ds(0,"mat-tree",0),os(1,fq,5,2,"mat-tree-node",1),os(2,gq,11,7,"mat-nested-tree-node",2),hs()),2&e&&(us("dataSource",t.dataSource)("treeControl",t.treeControl),Oa(2),us("matTreeNodeDefWhen",t.hasNestedChild))},directives:[uG,iG,nG,dG,kP,lD,aG,BR,wh,lG,pP],styles:[".tree-select-invisible[_ngcontent-%COMP%]{display:none}.tree-select[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .tree-select[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;margin-left:1rem;list-style-type:none}.tree-select[_ngcontent-%COMP%] li[_ngcontent-%COMP%] button.toggle-node-button[_ngcontent-%COMP%], .tree-select[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] button.toggle-node-button[_ngcontent-%COMP%]{outline:none!important}"]}),vq),bq=function(e){window.scroll({top:0,left:0,behavior:"smooth"}),"Safari"===e.browser?window.scroll(0,0):window.scroll({behavior:"smooth",top:0})},kq=function(e){var t=document.querySelector("mat-form-field.ng-invalid");t&&("Safari"===e.browser?window.scroll(0,t.offsetTop-200):window.scroll({behavior:"smooth",top:t.offsetTop-200}))},wq=function e(t){return null==(n=t)||"object"!=typeof n||t instanceof RegExp||t instanceof N||t.changingThisBreaksApplicationSecurity?t:t instanceof Ek?null:t instanceof Date?new Date(t.getTime()):Array.isArray(t)?t.slice(0).map(function(t){return e(t)}):(t=Object.assign({},t),Object.keys(t).forEach(function(n){return t[n]=e(t[n])}),t);var n},Cq=function(e){return{"repeat-section-dialog-save":!0,disabled:e}},xq=function(){return{"repeat-section-dialog-cancel":!0}},Sq=((yq=function(){function e(t,n,i){b(this,e),this.data=t,this.deviceDetectorService=n,this.dialogRef=i}return w(e,[{key:"ngAfterContentInit",value:function(){this.initialModel=wq(this.data.model),this.updateDisableSave()}},{key:"updateDisableSave",value:function(){this.disableSave=!this.noErrors()}},{key:"noErrors",value:function(){return this.data.fields.every(function(e){return e.formControl&&e.formControl.valid})}},{key:"onNoClick",value:function(){var e=this;Object.keys(this.initialModel).forEach(function(t){e.data.model[t]=e.initialModel[t]});var t=0===Object.keys(this.data.model).length&&this.data.model.constructor===Object;this.dialogRef.close(t?void 0:this.data.model)}},{key:"highlightRequiredFields",value:function(e){var t=this;e.forEach(function(e){e.formControl.updateValueAndValidity(),e.formControl.markAsDirty(),e.fieldGroup&&t.highlightRequiredFields(e.fieldGroup)}),this.updateDisableSave()}},{key:"onInvalidFields",value:function(){this.highlightRequiredFields(this.data.fields),kq(this.deviceDetectorService)}},{key:"onSubmit",value:function(){this.noErrors()&&this.dialogRef.close(this.data)}}]),e}()).\u0275fac=function(e){return new(e||yq)(ls(zD),ls(EW),ls(ID))},yq.\u0275cmp=pt({type:yq,selectors:[["app-repeat-section-dialog"]],decls:14,vars:8,consts:[[1,"mat-typography"],["mat-dialog-content",""],["fxLayout","row","fxLayout.lt-md","column"],["fxFlex",""],["mat-button","","id","highlight-required-fields-in-dialog","color","warn",3,"click"],[3,"fields","model","change"],["mat-dialog-actions",""],["mat-flat-button","","color","primary",3,"ngClass","click"],["mat-button","",3,"ngClass","click"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"div",1),ds(2,"div",2),ds(3,"h1"),Js(4),hs(),fs(5,"span",3),ds(6,"button",4),ks("click",function(){return t.highlightRequiredFields(t.data.fields)}),Js(7,"*Required"),hs(),hs(),ds(8,"formly-form",5),ks("change",function(){return t.updateDisableSave()}),hs(),hs(),ds(9,"div",6),ds(10,"button",7),ks("click",function(){return t.disableSave?t.onInvalidFields():t.onSubmit()}),Js(11,"Save"),hs(),ds(12,"button",8),ks("click",function(){return t.onNoClick()}),Js(13,"Cancel"),hs(),hs(),hs()),2&e&&(Oa(4),el(t.data.title),Oa(4),us("fields",t.data.fields)("model",t.data.model),Oa(2),us("ngClass",Au(5,Cq,!t.noErrors())),Oa(2),us("ngClass",Su(7,xq)))},directives:[$D,Xy,v_,kP,yj,KD,yh,ly],styles:["#highlight-required-fields-in-dialog[_ngcontent-%COMP%]{text-align:right}"]}),yq);function Aq(e,t){1&e&&fs(0,"app-form-printout",3),2&e&&us("field",As().$implicit)}function Oq(e,t){if(1&e&&(ds(0,"p"),Js(1),hs()),2&e){var n=As().$implicit,i=As();Oa(1),el(i.getModelValue(n.name))}}function Eq(e,t){if(1&e&&(ps(0),os(1,Aq,1,1,"app-form-printout",1),os(2,Oq,2,1,"p",2),ms()),2&e){var n=t.$implicit,i=As();Oa(1),us("ngIf",n.fieldGroup&&n.fieldGroup.length>0),Oa(1),us("ngIf",!n.fieldGroup&&i.getModelValue(n.name))}}var Tq,Pq=((Tq=function(){function e(){b(this,e)}return w(e,[{key:"getModelValue",value:function(e){var t,n=this,i=this.field.model[e];if(this.field.fieldGroup&&(this.field.fieldGroup.forEach(function(e){"select"!==e.type&&"multicheckbox"!==e.type&&"radio"!==e.type||e.templateOptions.options.forEach(function(e){n._isOther(e.value)||n._isOther(e.label)||e.value!==i||(t=e.label)})}),t))return t;var r=RegExp("^".concat(e));"string"==typeof i&&r.test(i)&&(i=i.replace(r,""));var a=/_other$|\w+Other$/;if(a.test(e)){var o=e.replace(a,""),s=this.field.model[o];return this._isOther(s)||a.test(s)?i:null}return this._isOther(i)?null:i}},{key:"_isOther",value:function(e){return e&&"string"==typeof e&&"other"===e.toLowerCase()}}]),e}()).\u0275fac=function(e){return new(e||Tq)},Tq.\u0275cmp=pt({type:Tq,selectors:[["app-form-printout"]],inputs:{field:"field"},decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[3,"field",4,"ngIf"],[4,"ngIf"],[3,"field"]],template:function(e,t){1&e&&os(0,Eq,3,2,"ng-container",0),2&e&&us("ngForOf",t.field.fieldGroup)},directives:[bh,wh,Tq],styles:["p[_ngcontent-%COMP%]{margin-bottom:0;margin-top:0}"]}),Tq);function Dq(e,t){if(1&e){var n=vs();ds(0,"mat-card",4),ds(1,"mat-card-content",5),ds(2,"div",6),fs(3,"app-form-printout",7),hs(),ds(4,"div",8),ds(5,"button",9),ks("click",function(){rn(n);var e=t.index,i=t.$implicit;return As().openDialog(e,i)}),ds(6,"mat-icon"),Js(7,"edit"),hs(),hs(),ds(8,"button",9),ks("click",function(){rn(n);var e=t.index;return As().remove(e)}),ds(9,"mat-icon"),Js(10,"close"),hs(),hs(),hs(),hs(),hs()}if(2&e){var i=t.$implicit;Oa(3),us("field",i)}}var Mq,Iq,Rq=((Iq=function(e){f(n,e);var t=m(n);function n(e){var i;return b(this,n),(i=t.call(this)).dialog=e,i}return w(n,[{key:"openDialog",value:function(e,t){var i=this,r=!!t,a=this.field.templateOptions.description;this.dialog.open(Sq,{maxWidth:"100vw",maxHeight:"100vh",minWidth:"70vw",data:{title:r?a.replace(/^Add an|^Add a|^Add/,"Edit"):a,fields:[this.field.fieldArray],model:r?this.field.fieldGroup[e].model:{}}}).afterClosed().subscribe(function(t){t&&t.model&&(i.field.fieldGroup.length>e&&h(_(n.prototype),"remove",i).call(i,e),h(_(n.prototype),"add",i).call(i,e,t.model))})}}]),n}(wj)).\u0275fac=function(e){return new(e||Iq)(ls(qD))},Iq.\u0275cmp=pt({type:Iq,selectors:[["app-repeat-section"]],features:[jo],decls:5,vars:2,consts:[["fxLayout","column","fxLayoutGap","1em",1,"container"],["class","repeat",4,"ngFor","ngForOf"],[1,"repeat-action"],["mat-flat-button","","color","primary","type","button",3,"click"],[1,"repeat"],["fxLayout","row"],["fxFlex","70"],[3,"field"],["fxFlex","30","fxLayout","row","fxLayoutAlign","end start"],["mat-icon-button","","type","button",3,"click"]],template:function(e,t){1&e&&(ds(0,"div",0),os(1,Dq,11,1,"mat-card",1),hs(),ds(2,"div",2),ds(3,"button",3),ks("click",function(){return t.openDialog(t.field.fieldGroup.length)}),Js(4),hs(),hs()),2&e&&(Oa(1),us("ngForOf",t.field.fieldGroup),Oa(3),tl(" ",t.field.templateOptions.description," "))},directives:[Xy,n_,bh,kP,jP,BP,v_,Pq,eb,BR],styles:["mat-card.repeat[_ngcontent-%COMP%]{background-color:#e4e7f2;border-left:8px solid #232d4b}mat-card.repeat[_ngcontent-%COMP%]:active, mat-card.repeat[_ngcontent-%COMP%]:focus, mat-card.repeat[_ngcontent-%COMP%]:focus-within, mat-card.repeat[_ngcontent-%COMP%]:hover{background:#eee}.container[_ngcontent-%COMP%], .repeat-action[_ngcontent-%COMP%]{padding-top:1em}"]}),Iq),Lq=((Mq=function(e){f(n,e);var t=m(n);function n(){return b(this,n),t.apply(this,arguments)}return w(n,[{key:"ngOnInit",value:function(){}}]),n}(kj)).\u0275fac=function(e){return Fq(e||Mq)},Mq.\u0275cmp=pt({type:Mq,selectors:[["app-resize-textarea"]],viewQuery:function(e,t){var n;1&e&&Ku(vM,1),2&e&&$u(n=Ju())&&(t.formFieldControl=n.first)},features:[jo],decls:2,vars:7,consts:[["matInput","",3,"id","formControl","cols","rows","placeholder","formlyAttributes","matTextareaAutosize"]],template:function(e,t){1&e&&(ds(0,"textarea",0),Js(1," "),hs()),2&e&&us("id",t.id)("formControl",t.formControl)("cols",t.to.cols)("rows",t.to.rows)("placeholder",t.to.placeholder)("formlyAttributes",t.field)("matTextareaAutosize",!0)},directives:[vM,wb,dM,Zb,Uk,bj],styles:[""]}),Mq),Fq=fi(Lq),Nq=/^[a-zA-Z0-9.!#$%&\u2019*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/,Vq=/^(\+\d{1,2}\s)?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}$/,Bq=new RegExp("^(?:(?:https?|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))\\.?)(?::\\d{2,5})?(?:[/?#]\\S*)?$","i");function Hq(e){return!e.value||Nq.test(e.value)?null:{email:!0}}function zq(e,t){return'"'.concat(t.formControl.value,'" is not a valid email address')}function Gq(e){var t=e.parent,n=t.get("email"),i=t.get("emailConfirm");return i.value!==n.value&&i.value&&n.value?{emailConfirm:!0}:null}function jq(e,t){return"Email Does Not Match"}function Uq(e){return!e.value||Bq.test(e.value)?null:{url:!0}}function Wq(e,t){return'We cannot save "'.concat(t.formControl.value,'". Please provide the full path, including http:// or https://')}function qq(e){return!e.value||Vq.test(e.value)?null:{phone:!0}}function Yq(e,t){return'"'.concat(t.formControl.value,'" is not a valid phone number')}function Qq(e){if(e.value)for(var t in e.value)if(!0===e.value[t])return null;return{required:!0}}function Xq(e,t){return"At least one of these checkboxes must be selected."}function $q(e,t){return"This value should be more than ".concat(t.templateOptions.min)}function Kq(e,t){return"This value should be less than ".concat(t.templateOptions.max)}function Zq(e){return e.formControl&&e.formControl.invalid&&(e.formControl.dirty||e.options.parentForm&&e.options.parentForm.submitted||e.field.validation&&e.field.validation.show)}function Jq(e){return function(t){return 0===e?hp():t.lift(new eY(e))}}var eY=function(){function e(t){if(b(this,e),this.total=t,this.total<0)throw new Yg}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new tY(e,this.total))}}]),e}(),tY=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this,e)).total=i,r.ring=new Array,r.count=0,r}return w(n,[{key:"_next",value:function(e){var t=this.ring,n=this.total,i=this.count++;t.length0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r2&&void 0!==arguments[2]?arguments[2]:"imperative",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return b(this,n),(r=t.call(this,e,i)).navigationTrigger=a,r.restoredState=o,r}return w(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(nY),rY=function(e){f(n,e);var t=m(n);function n(e,i,r){var a;return b(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a}return w(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(nY),aY=function(e){f(n,e);var t=m(n);function n(e,i,r){var a;return b(this,n),(a=t.call(this,e,i)).reason=r,a}return w(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(nY),oY=function(e){f(n,e);var t=m(n);function n(e,i,r){var a;return b(this,n),(a=t.call(this,e,i)).error=r,a}return w(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(nY),sY=function(e){f(n,e);var t=m(n);function n(e,i,r,a){var o;return b(this,n),(o=t.call(this,e,i)).urlAfterRedirects=r,o.state=a,o}return w(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(nY),lY=function(e){f(n,e);var t=m(n);function n(e,i,r,a){var o;return b(this,n),(o=t.call(this,e,i)).urlAfterRedirects=r,o.state=a,o}return w(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(nY),uY=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o){var s;return b(this,n),(s=t.call(this,e,i)).urlAfterRedirects=r,s.state=a,s.shouldActivate=o,s}return w(n,[{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,")")}}]),n}(nY),cY=function(e){f(n,e);var t=m(n);function n(e,i,r,a){var o;return b(this,n),(o=t.call(this,e,i)).urlAfterRedirects=r,o.state=a,o}return w(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(nY),dY=function(e){f(n,e);var t=m(n);function n(e,i,r,a){var o;return b(this,n),(o=t.call(this,e,i)).urlAfterRedirects=r,o.state=a,o}return w(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(nY),hY=function(){function e(t){b(this,e),this.route=t}return w(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),fY=function(){function e(t){b(this,e),this.route=t}return w(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),pY=function(){function e(t){b(this,e),this.snapshot=t}return w(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),mY=function(){function e(t){b(this,e),this.snapshot=t}return w(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),gY=function(){function e(t){b(this,e),this.snapshot=t}return w(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),vY=function(){function e(t){b(this,e),this.snapshot=t}return w(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),yY=function(){function e(t,n,i){b(this,e),this.routerEvent=t,this.position=n,this.anchor=i}return w(e,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),e}(),_Y=function(){function e(t){b(this,e),this.params=t||{}}return w(e,[{key:"has",value:function(e){return Object.prototype.hasOwnProperty.call(this.params,e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function bY(e){return new _Y(e)}function kY(e){var t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function wY(e,t,n){var i=n.path.split("/");if(i.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||i.length0?e[e.length-1]:null}function OY(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function EY(e){return bs(e)?e:ys(e)?te(Promise.resolve(e)):fp(e)}function TY(e,t,n){return n?function(e,t){return CY(e,t)}(e.queryParams,t.queryParams)&&PY(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return xY(e[n],t[n])})}(e.queryParams,t.queryParams)&&DY(e.root,t.root)}function PY(e,t){if(!FY(e.segments,t.segments))return!1;if(e.numberOfChildren!==t.numberOfChildren)return!1;for(var n in t.children){if(!e.children[n])return!1;if(!PY(e.children[n],t.children[n]))return!1}return!0}function DY(e,t){return MY(e,t,t.segments)}function MY(e,t,n){if(e.segments.length>n.length)return!!FY(e.segments.slice(0,n.length),n)&&!t.hasChildren();if(e.segments.length===n.length){if(!FY(e.segments,n))return!1;for(var i in t.children){if(!e.children[i])return!1;if(!DY(e.children[i],t.children[i]))return!1}return!0}var r=n.slice(0,e.segments.length),a=n.slice(e.segments.length);return!!FY(e.segments,r)&&!!e.children.primary&&MY(e.children.primary,t,a)}var IY=function(){function e(t,n,i){b(this,e),this.root=t,this.queryParams=n,this.fragment=i}return w(e,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=bY(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return BY.serialize(this)}}]),e}(),RY=function(){function e(t,n){var i=this;b(this,e),this.segments=t,this.children=n,this.parent=null,OY(n,function(e,t){return e.parent=i})}return w(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return HY(this)}}]),e}(),LY=function(){function e(t,n){b(this,e),this.path=t,this.parameters=n}return w(e,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=bY(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return YY(this)}}]),e}();function FY(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}var NY=function e(){b(this,e)},VY=function(){function e(){b(this,e)}return w(e,[{key:"parse",value:function(e){var t=new ZY(e);return new IY(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){var t,n,i;return"/".concat(zY(e.root,!0)).concat((n=e.queryParams,i=Object.keys(n).map(function(e){var t=n[e];return Array.isArray(t)?t.map(function(t){return"".concat(jY(e),"=").concat(jY(t))}).join("&"):"".concat(jY(e),"=").concat(jY(t))}),i.length?"?".concat(i.join("&")):"")).concat("string"==typeof e.fragment?"#".concat((t=e.fragment,encodeURI(t))):"")}}]),e}(),BY=new VY;function HY(e){return e.segments.map(function(e){return YY(e)}).join("/")}function zY(e,t){if(!e.hasChildren())return HY(e);if(t){var n=e.children.primary?zY(e.children.primary,!1):"",i=[];return OY(e.children,function(e,t){"primary"!==t&&i.push("".concat(t,":").concat(zY(e,!1)))}),i.length>0?"".concat(n,"(").concat(i.join("//"),")"):n}var r=function(e,t){var n=[];return OY(e.children,function(e,i){"primary"===i&&(n=n.concat(t(e,i)))}),OY(e.children,function(e,i){"primary"!==i&&(n=n.concat(t(e,i)))}),n}(e,function(t,n){return"primary"===n?[zY(e.children.primary,!1)]:["".concat(n,":").concat(zY(t,!1))]});return 1===Object.keys(e.children).length&&null!=e.children.primary?"".concat(HY(e),"/").concat(r[0]):"".concat(HY(e),"/(").concat(r.join("//"),")")}function GY(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function jY(e){return GY(e).replace(/%3B/gi,";")}function UY(e){return GY(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function WY(e){return decodeURIComponent(e)}function qY(e){return WY(e.replace(/\+/g,"%20"))}function YY(e){return"".concat(UY(e.path)).concat((t=e.parameters,Object.keys(t).map(function(e){return";".concat(UY(e),"=").concat(UY(t[e]))}).join("")));var t}var QY=/^[^\/()?;=#]+/;function XY(e){var t=e.match(QY);return t?t[0]:""}var $Y=/^[^=?&#]+/,KY=/^[^?&#]+/,ZY=function(){function e(t){b(this,e),this.url=t,this.remaining=t}return w(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new RY([],{}):new RY([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new RY(e,t)),n}},{key:"parseSegment",value:function(){var e=XY(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new LY(WY(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=XY(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=XY(this.remaining);i&&(n=i,this.capture(n))}e[WY(t)]=WY(n)}}},{key:"parseQueryParam",value:function(e){var t,n,i=(t=this.remaining,(n=t.match($Y))?n[0]:"");if(i){this.capture(i);var r="";if(this.consumeOptional("=")){var a=function(e){var t=e.match(KY);return t?t[0]:""}(this.remaining);a&&(r=a,this.capture(r))}var o=qY(i),s=qY(r);if(e.hasOwnProperty(o)){var l=e[o];Array.isArray(l)||(l=[l],e[o]=l),l.push(s)}else e[o]=s}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=XY(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '".concat(this.url,"'"));var r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):e&&(r="primary");var a=this.parseChildren();t[r]=1===Object.keys(a).length?a.primary:new RY([],a),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}]),e}(),JY=function(){function e(t){b(this,e),this._root=t}return w(e,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=eQ(e,this._root);return t?t.children.map(function(e){return e.value}):[]}},{key:"firstChild",value:function(e){var t=eQ(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=tQ(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})}},{key:"pathFromRoot",value:function(e){return tQ(e,this._root).map(function(e){return e.value})}}]),e}();function eQ(e,t){if(e===t.value)return t;var n,i=s(t.children);try{for(i.s();!(n=i.n()).done;){var r=eQ(e,n.value);if(r)return r}}catch(a){i.e(a)}finally{i.f()}return null}function tQ(e,t){if(e===t.value)return[t];var n,i=s(t.children);try{for(i.s();!(n=i.n()).done;){var r=tQ(e,n.value);if(r.length)return r.unshift(t),r}}catch(a){i.e(a)}finally{i.f()}return[]}var nQ=function(){function e(t,n){b(this,e),this.value=t,this.children=n}return w(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function iQ(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var rQ=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this,e)).snapshot=i,cQ(v(r),e),r}return w(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(JY);function aQ(e,t){var n=function(e,t){var n=new lQ([],{},{},"",{},"primary",t,null,e.root,-1,{});return new uQ("",new nQ(n,[]))}(e,t),i=new ep([new LY("",{})]),r=new ep({}),a=new ep({}),o=new ep({}),s=new ep(""),l=new oQ(i,r,o,s,a,"primary",t,n.root);return l.snapshot=n.root,new rQ(new nQ(l,[]),n)}var oQ=function(){function e(t,n,i,r,a,o,s,l){b(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=a,this.outlet=o,this.component=s,this._futureSnapshot=l}return w(e,[{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(q(function(e){return bY(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(q(function(e){return bY(e)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),e}();function sQ(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,i=0;if("always"!==t)for(i=n.length-1;i>=1;){var r=n[i],a=n[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(a.component)break;i--}}return function(e){return e.reduce(function(e,t){return{params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(i))}var lQ=function(){function e(t,n,i,r,a,o,s,l,u,c,d){b(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=a,this.outlet=o,this.component=s,this.routeConfig=l,this._urlSegment=u,this._lastPathIndex=c,this._resolve=d}return w(e,[{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=bY(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=bY(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return"Route(url:'".concat(this.url.map(function(e){return e.toString()}).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}}]),e}(),uQ=function(e){f(n,e);var t=m(n);function n(e,i){var r;return b(this,n),(r=t.call(this,i)).url=e,cQ(v(r),i),r}return w(n,[{key:"toString",value:function(){return dQ(this._root)}}]),n}(JY);function cQ(e,t){t.value._routerState=e,t.children.forEach(function(t){return cQ(e,t)})}function dQ(e){var t=e.children.length>0?" { ".concat(e.children.map(dQ).join(", ")," } "):"";return"".concat(e.value).concat(t)}function hQ(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,CY(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),CY(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n0&&gQ(i[0]))throw new Error("Root segment cannot have matrix parameters");var r=i.find(vQ);if(r&&r!==AY(i))throw new Error("{outlets:{}} has to be the last command")}return w(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),kQ=function e(t,n,i){b(this,e),this.segmentGroup=t,this.processChildren=n,this.index=i};function wQ(e,t,n){if(e||(e=new RY([],{})),0===e.segments.length&&e.hasChildren())return CQ(e,t,n);var i=function(e,t,n){for(var i=0,r=t,a={match:!1,pathIndex:0,commandIndex:0};r=n.length)return a;var o=e.segments[r],s=n[i];if(vQ(s))break;var l="".concat(s),u=i0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!OQ(l,u,o))return a;i+=2}else{if(!OQ(l,{},o))return a;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,t,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",n=0;n0)?Object.assign({},jQ):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var r=(t.matcher||wY)(n,e,t);if(!r)return Object.assign({},jQ);var a={};OY(r.posParams,function(e,t){a[t]=e.path});var o=r.consumed.length>0?Object.assign(Object.assign({},a),r.consumed[r.consumed.length-1].parameters):a;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function WQ(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(n.length>0&&function(e,t,n){return n.some(function(n){return qQ(e,t,n)&&"primary"!==zQ(n)})}(e,n,i)){var a=new RY(t,function(e,t,n,i){var r={};r.primary=i,i._sourceSegment=e,i._segmentIndexShift=t.length;var a,o=s(n);try{for(o.s();!(a=o.n()).done;){var l=a.value;if(""===l.path&&"primary"!==zQ(l)){var u=new RY([],{});u._sourceSegment=e,u._segmentIndexShift=t.length,r[zQ(l)]=u}}}catch(c){o.e(c)}finally{o.f()}return r}(e,t,i,new RY(n,e.children)));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(function(n){return qQ(e,t,n)})}(e,n,i)){var o=new RY(e.segments,function(e,t,n,i,r,a){var o,l={},u=s(i);try{for(u.s();!(o=u.n()).done;){var c=o.value;if(qQ(e,n,c)&&!r[zQ(c)]){var d=new RY([],{});d._sourceSegment=e,d._segmentIndexShift="legacy"===a?e.segments.length:t.length,l[zQ(c)]=d}}}catch(h){u.e(h)}finally{u.f()}return Object.assign(Object.assign({},r),l)}(e,t,n,i,e.children,r));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:n}}var l=new RY(e.segments,e.children);return l._sourceSegment=e,l._segmentIndexShift=t.length,{segmentGroup:l,slicedSegments:n}}function qQ(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function YQ(e,t,n,i){return!!(zQ(e)===i||"primary"!==i&&qQ(t,n,e))&&("**"===e.path||UQ(t,e,n).matched)}function QQ(e,t,n){return 0===t.length&&!e.children[n]}var XQ=function e(t){b(this,e),this.segmentGroup=t||null},$Q=function e(t){b(this,e),this.urlTree=t};function KQ(e){return new N(function(t){return t.error(new XQ(e))})}function ZQ(e){return new N(function(t){return t.error(new $Q(e))})}function JQ(e){return new N(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))})}var eX=function(){function e(t,n,i,r,a){b(this,e),this.configLoader=n,this.urlSerializer=i,this.urlTree=r,this.config=a,this.allowRedirects=!0,this.ngModule=t.get(lu)}return w(e,[{key:"apply",value:function(){var e=this,t=WQ(this.urlTree.root,[],[],this.config).segmentGroup,n=new RY(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,n,"primary").pipe(q(function(t){return e.createUrlTree(tX(t),e.urlTree.queryParams,e.urlTree.fragment)})).pipe(uR(function(t){if(t instanceof $Q)return e.allowRedirects=!1,e.match(t.urlTree);if(t instanceof XQ)throw e.noMatchError(t);throw t}))}},{key:"match",value:function(e){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,"primary").pipe(q(function(n){return t.createUrlTree(tX(n),e.queryParams,e.fragment)})).pipe(uR(function(e){if(e instanceof XQ)throw t.noMatchError(e);throw e}))}},{key:"noMatchError",value:function(e){return new Error("Cannot match any routes. URL Segment: '".concat(e.segmentGroup,"'"))}},{key:"createUrlTree",value:function(e,t,n){var i=e.segments.length>0?new RY([],{primary:e}):e;return new IY(i,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(q(function(e){return new RY([],e)})):this.expandSegment(e,n,t,n.segments,i,!0)}},{key:"expandChildren",value:function(e,t,n){for(var i=this,r=[],a=0,o=Object.keys(n.children);a=2;return function(i){return i.pipe(e?jm(function(t,n){return e(t,n,i)}):I,Jq(1),n?DW(t):RW(function(){return new PW}))}}())}},{key:"expandSegment",value:function(e,t,n,i,r,a){var o=this;return te(n).pipe(Gm(function(s){return o.expandSegmentAgainstRoute(e,t,n,s,i,r,a).pipe(uR(function(e){if(e instanceof XQ)return fp(null);throw e}))}),VW(function(e){return!!e}),uR(function(e,n){if(e instanceof PW||"EmptyError"===e.name){if(QQ(t,i,r))return fp(new RY([],{}));throw new XQ(t)}throw e}))}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,i,r,a,o){return YQ(i,t,r,a)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,r,a):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,r,a):KQ(t):KQ(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,a){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,i,a):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,r,a)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,i){var r=this,a=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?ZQ(a):this.lineralizeSegments(n,a).pipe(ae(function(n){var a=new RY(n,{});return r.expandSegment(e,a,t,n,i,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,a){var o=this,s=UQ(t,i,r),l=s.matched,u=s.consumedSegments,c=s.lastChild,d=s.positionalParamSegments;if(!l)return KQ(t);var h=this.applyRedirectCommands(u,i.redirectTo,d);return i.redirectTo.startsWith("/")?ZQ(h):this.lineralizeSegments(i,h).pipe(ae(function(i){return o.expandSegment(e,t,n,i.concat(r.slice(c)),a,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,i,r){var a=this;if("**"===n.path)return n.loadChildren?(n._loadedConfig?fp(n._loadedConfig):this.configLoader.load(e.injector,n)).pipe(q(function(e){return n._loadedConfig=e,new RY(i,{})})):fp(new RY(i,{}));var o=UQ(t,n,i),s=o.matched,l=o.consumedSegments,u=o.lastChild;if(!s)return KQ(t);var c=i.slice(u);return this.getChildConfig(e,n,i).pipe(ae(function(e){var i=e.module,o=e.routes,s=WQ(t,l,c,o),u=s.segmentGroup,d=s.slicedSegments,h=new RY(u.segments,u.children);if(0===d.length&&h.hasChildren())return a.expandChildren(i,o,h).pipe(q(function(e){return new RY(l,e)}));if(0===o.length&&0===d.length)return fp(new RY(l,{}));var f=zQ(n)===r;return a.expandSegment(i,h,o,d,f?"primary":r,!0).pipe(q(function(e){return new RY(l.concat(e.segments),e.children)}))}))}},{key:"getChildConfig",value:function(e,t,n){var i=this;return t.children?fp(new PQ(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?fp(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(ae(function(n){return n?i.configLoader.load(e.injector,t).pipe(q(function(e){return t._loadedConfig=e,e})):function(e){return new N(function(t){return t.error(kY("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))})}(t)})):fp(new PQ([],e))}},{key:"runCanLoadGuards",value:function(e,t,n){var i=this,r=t.canLoad;return r&&0!==r.length?fp(r.map(function(i){var r,a=e.get(i);if(function(e){return e&&DQ(e.canLoad)}(a))r=a.canLoad(t,n);else{if(!DQ(a))throw new Error("Invalid CanLoad guard");r=a(t,n)}return EY(r)})).pipe(RQ(),Zg(function(e){if(MQ(e)){var t=kY('Redirecting to "'.concat(i.urlSerializer.serialize(e),'"'));throw t.url=e,t}}),q(function(e){return!0===e})):fp(!0)}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],i=t.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return fp(n);if(i.numberOfChildren>1||!i.children.primary)return JQ(e.redirectTo);i=i.children.primary}}},{key:"applyRedirectCommands",value:function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,n,i){var r=this.createSegmentGroup(e,t.root,n,i);return new IY(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return OY(e,function(e,i){if("string"==typeof e&&e.startsWith(":")){var r=e.substring(1);n[i]=t[r]}else n[i]=e}),n}},{key:"createSegmentGroup",value:function(e,t,n,i){var r=this,a=this.createSegments(e,t.segments,n,i),o={};return OY(t.children,function(t,a){o[a]=r.createSegmentGroup(e,t,n,i)}),new RY(a,o)}},{key:"createSegments",value:function(e,t,n,i){var r=this;return t.map(function(t){return t.path.startsWith(":")?r.findPosParam(e,t,i):r.findOrReturn(t,n)})}},{key:"findPosParam",value:function(e,t,n){var i=n[t.path.substring(1)];if(!i)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return i}},{key:"findOrReturn",value:function(e,t){var n,i=0,r=s(t);try{for(r.s();!(n=r.n()).done;){var a=n.value;if(a.path===e.path)return t.splice(i),a;i++}}catch(o){r.e(o)}finally{r.f()}return e}}]),e}();function tX(e){for(var t={},n=0,i=Object.keys(e.children);n0||a.hasChildren())&&(t[r]=a)}return function(e){if(1===e.numberOfChildren&&e.children.primary){var t=e.children.primary;return new RY(e.segments.concat(t.segments),t.children)}return e}(new RY(e.segments,t))}var nX=function e(t){b(this,e),this.path=t,this.route=this.path[this.path.length-1]},iX=function e(t,n){b(this,e),this.component=t,this.route=n};function rX(e,t,n){var i=e._root;return oX(i,t?t._root:null,n,[i.value])}function aX(e,t,n){var i=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(i?i.module.injector:n).get(e)}function oX(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=iQ(t);return e.children.forEach(function(e){!function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=e.value,o=t?t.value:null,s=n?n.getContext(e.value.outlet):null;if(o&&a.routeConfig===o.routeConfig){var l=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!FY(e.url,t.url);case"pathParamsOrQueryParamsChange":return!FY(e.url,t.url)||!CY(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!fQ(e,t)||!CY(e.queryParams,t.queryParams);case"paramsChange":default:return!fQ(e,t)}}(o,a,a.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new nX(i)):(a.data=o.data,a._resolvedData=o._resolvedData),oX(e,t,a.component?s?s.children:null:n,i,r),l&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new iX(s.outlet.component,o))}else o&&sX(t,s,r),r.canActivateChecks.push(new nX(i)),oX(e,null,a.component?s?s.children:null:n,i,r)}(e,a[e.value.outlet],n,i.concat([e.value]),r),delete a[e.value.outlet]}),OY(a,function(e,t){return sX(e,n.getContext(t),r)}),r}function sX(e,t,n){var i=iQ(e),r=e.value;OY(i,function(e,i){sX(e,r.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new iX(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}var lX=function e(){b(this,e)};function uX(e){return new N(function(t){return t.error(e)})}var cX=function(){function e(t,n,i,r,a,o){b(this,e),this.rootComponentType=t,this.config=n,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=a,this.relativeLinkResolution=o}return w(e,[{key:"recognize",value:function(){var e=WQ(this.urlTree.root,[],[],this.config.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,"primary");if(null===t)return null;var n=new lQ([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new nQ(n,t),r=new uQ(this.url,i);return this.inheritParamsAndData(r._root),r}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,i=sQ(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})}},{key:"processSegmentGroup",value:function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}},{key:"processChildren",value:function(e,t){for(var n=[],i=0,r=Object.keys(t.children);i0?AY(n).parameters:{};r=new lQ(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,fX(e),zQ(e),e.component,e,dX(t),hX(t)+n.length,pX(e))}else{var l=UQ(t,e,n);if(!l.matched)return null;a=l.consumedSegments,o=n.slice(l.lastChild),r=new lQ(a,l.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,fX(e),zQ(e),e.component,e,dX(t),hX(t)+a.length,pX(e))}var u=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),c=WQ(t,a,o,u.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution),d=c.segmentGroup,h=c.slicedSegments;if(0===h.length&&d.hasChildren()){var f=this.processChildren(u,d);return null===f?null:[new nQ(r,f)]}if(0===u.length&&0===h.length)return[new nQ(r,[])];var p=zQ(e)===i,m=this.processSegment(u,d,h,p?"primary":i);return null===m?null:[new nQ(r,m)]}}]),e}();function dX(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function hX(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function fX(e){return e.data||{}}function pX(e){return e.resolve||{}}function mX(e){return xp(function(t){var n=e(t);return n?te(n).pipe(q(function(){return t})):fp(t)})}var gX=function(e){f(n,e);var t=m(n);function n(){return b(this,n),t.apply(this,arguments)}return n}(function(){function e(){b(this,e)}return w(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}]),e}()),vX=new _i("ROUTES"),yX=function(){function e(t,n,i,r){b(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=i,this.onLoadEndListener=r}return w(e,[{key:"load",value:function(e,t){var n=this;if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);var i=this.loadModuleFactory(t.loadChildren).pipe(q(function(i){n.onLoadEndListener&&n.onLoadEndListener(t);var r=i.create(e);return new PQ(SY(r.injector.get(vX,void 0,qe.Self|qe.Optional)).map(HQ),r)}),uR(function(e){throw t._loader$=void 0,e}));return t._loader$=new ge(i,function(){return new j}).pipe(he()),t._loader$}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?te(this.loader.load(e)):EY(e()).pipe(ae(function(e){return e instanceof uu?fp(e):te(t.compiler.compileModuleAsync(e))}))}}]),e}(),_X=function e(){b(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new bX,this.attachRef=null},bX=function(){function e(){b(this,e),this.contexts=new Map}return w(e,[{key:"onChildOutletCreated",value:function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}},{key:"onChildOutletDestroyed",value:function(e){var t=this.getContext(e);t&&(t.outlet=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var t=this.getContext(e);return t||(t=new _X,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),e}(),kX=function(){function e(){b(this,e)}return w(e,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}]),e}();function wX(e){throw e}function CX(e,t,n){return t.parse("/")}function xX(e,t){return fp(null)}var SX,AX,OX,EX=((OX=function(){function e(t,n,i,r,a,o,s,l){var u=this;b(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=i,this.location=r,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new j,this.errorHandler=wX,this.malformedUriErrorHandler=CX,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:xX,afterPreactivation:xX},this.urlHandlingStrategy=new kX,this.routeReuseStrategy=new gX,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=a.get(lu),this.console=a.get(pc);var c=a.get(Oc);this.isNgZoneEnabled=c instanceof Oc&&Oc.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=new IY(new RY([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new yX(o,s,function(e){return u.triggerEvent(new hY(e))},function(e){return u.triggerEvent(new fY(e))}),this.routerState=aQ(this.currentUrlTree,this.rootComponentType),this.transitions=new ep({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 w(e,[{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe(jm(function(e){return 0!==e.id}),q(function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})}),xp(function(e){var i,r,a,o=!1,s=!1;return fp(e).pipe(Zg(function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign(Object.assign({},t.lastSuccessfulNavigation),{previousNavigation:null}):null}}),xp(function(e){var i,r,a,o,s=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||s)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return fp(e).pipe(xp(function(e){var i=t.transitions.getValue();return n.next(new iY(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),i!==t.transitions.getValue()?dp:Promise.resolve(e)}),(i=t.ngModule.injector,r=t.configLoader,a=t.urlSerializer,o=t.config,xp(function(e){return function(e,t,n,i,r){return new eX(e,t,n,i,r).apply()}(i,r,a,e.extractedUrl,o).pipe(q(function(t){return Object.assign(Object.assign({},e),{urlAfterRedirects:t})}))})),Zg(function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,n,i,r,a){return ae(function(i){return function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var o=new cX(e,t,n,i,r,a).recognize();return null===o?uX(new lX):fp(o)}catch(s){return uX(s)}}(e,n,i.urlAfterRedirects,(o=i.urlAfterRedirects,t.serializeUrl(o)),r,a).pipe(q(function(e){return Object.assign(Object.assign({},i),{targetSnapshot:e})}));var o})}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),Zg(function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects);var i=new sY(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(i)}));if(s&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var l=e.id,u=e.extractedUrl,c=e.source,d=e.restoredState,h=e.extras,f=new iY(l,t.serializeUrl(u),c,d);n.next(f);var p=aQ(u,t.rootComponentType).snapshot;return fp(Object.assign(Object.assign({},e),{targetSnapshot:p,urlAfterRedirects:u,extras:Object.assign(Object.assign({},h),{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),dp}),mX(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,a=e.rawUrl,o=e.extras,s=o.skipLocationChange,l=o.replaceUrl;return t.hooks.beforePreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:a,skipLocationChange:!!s,replaceUrl:!!l})}),Zg(function(e){var n=new lY(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),q(function(e){return Object.assign(Object.assign({},e),{guards:rX(e.targetSnapshot,e.currentSnapshot,t.rootContexts)})}),function(e,t){return ae(function(n){var i=n.targetSnapshot,r=n.currentSnapshot,a=n.guards,o=a.canActivateChecks,s=a.canDeactivateChecks;return 0===s.length&&0===o.length?fp(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,i){return te(e).pipe(ae(function(e){return function(e,t,n,i,r){var a=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return a&&0!==a.length?fp(a.map(function(a){var o,s=aX(a,t,r);if(function(e){return e&&DQ(e.canDeactivate)}(s))o=EY(s.canDeactivate(e,t,n,i));else{if(!DQ(s))throw new Error("Invalid CanDeactivate guard");o=EY(s(e,t,n,i))}return o.pipe(VW())})).pipe(RQ()):fp(!0)}(e.component,e.route,n,t,i)}),VW(function(e){return!0!==e},!0))}(s,i,r,e).pipe(ae(function(n){return n&&"boolean"==typeof n?function(e,t,n,i){return te(t).pipe(Gm(function(t){return Ip(function(e,t){return null!==e&&t&&t(new pY(e)),fp(!0)}(t.route.parent,i),function(e,t){return null!==e&&t&&t(new gY(e)),fp(!0)}(t.route,i),function(e,t,n){var i=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)}).filter(function(e){return null!==e}).map(function(t){return rO(function(){return fp(t.guards.map(function(r){var a,o=aX(r,t.node,n);if(function(e){return e&&DQ(e.canActivateChild)}(o))a=EY(o.canActivateChild(i,e));else{if(!DQ(o))throw new Error("Invalid CanActivateChild guard");a=EY(o(i,e))}return a.pipe(VW())})).pipe(RQ())})});return fp(r).pipe(RQ())}(e,t.path,n),function(e,t,n){var i=t.routeConfig?t.routeConfig.canActivate:null;return i&&0!==i.length?fp(i.map(function(i){return rO(function(){var r,a=aX(i,t,n);if(function(e){return e&&DQ(e.canActivate)}(a))r=EY(a.canActivate(t,e));else{if(!DQ(a))throw new Error("Invalid CanActivate guard");r=EY(a(t,e))}return r.pipe(VW())})})).pipe(RQ()):fp(!0)}(e,t.route,n))}),VW(function(e){return!0!==e},!0))}(i,o,e,t):fp(n)}),q(function(e){return Object.assign(Object.assign({},n),{guardsResult:e})}))})}(t.ngModule.injector,function(e){return t.triggerEvent(e)}),Zg(function(e){if(MQ(e.guardsResult)){var n=kY('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}var i=new uY(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(i)}),jm(function(e){if(!e.guardsResult){t.resetUrlToCurrentUrlTree();var i=new aY(e.id,t.serializeUrl(e.extractedUrl),"");return n.next(i),e.resolve(!1),!1}return!0}),mX(function(e){if(e.guards.canActivateChecks.length)return fp(e).pipe(Zg(function(e){var n=new cY(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),xp(function(e){var i,r,a=!1;return fp(e).pipe((i=t.paramsInheritanceStrategy,r=t.ngModule.injector,ae(function(e){var t=e.targetSnapshot,n=e.guards.canActivateChecks;if(!n.length)return fp(e);var a=0;return te(n).pipe(Gm(function(e){return function(e,t,n,i){return function(e,t,n,i){var r=Object.keys(e);if(0===r.length)return fp({});var a={};return te(r).pipe(ae(function(r){return function(e,t,n,i){var r=aX(e,t,i);return EY(r.resolve?r.resolve(t,n):r(t,n))}(e[r],t,n,i).pipe(Zg(function(e){a[r]=e}))}),Jq(1),ae(function(){return Object.keys(a).length===r.length?fp(a):dp}))}(e._resolve,e,t,i).pipe(q(function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),sQ(e,n).resolve),null}))}(e.route,t,i,r)}),Zg(function(){return a++}),Jq(1),ae(function(t){return a===n.length?fp(e):dp}))})),Zg({next:function(){return a=!0},complete:function(){if(!a){var i=new aY(e.id,t.serializeUrl(e.extractedUrl),"At least one route resolver didn't emit any value.");n.next(i),e.resolve(!1)}}}))}),Zg(function(e){var n=new dY(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}))}),mX(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,a=e.rawUrl,o=e.extras,s=o.skipLocationChange,l=o.replaceUrl;return t.hooks.afterPreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:a,skipLocationChange:!!s,replaceUrl:!!l})}),q(function(e){var n=function(e,t,n){var i=pQ(e,t._root,n?n._root:void 0);return new rQ(i,t)}(t.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:n})}),Zg(function(e){t.currentUrlTree=e.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(t.currentUrlTree,e.rawUrl),t.routerState=e.targetRouterState,"deferred"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)}),(i=t.rootContexts,r=t.routeReuseStrategy,a=function(e){return t.triggerEvent(e)},q(function(e){return new EQ(r,e.targetRouterState,e.currentRouterState,a).activate(i),e})),Zg({next:function(){o=!0},complete:function(){o=!0}}),hR(function(){if(!o&&!s){t.resetUrlToCurrentUrlTree();var i=new aY(e.id,t.serializeUrl(e.extractedUrl),"Navigation ID ".concat(e.id," is not equal to the current navigation id ").concat(t.navigationId));n.next(i),e.resolve(!1)}t.currentNavigation=null}),uR(function(i){if(s=!0,(l=i)&&l.ngNavigationCancelingError){var r=MQ(i.url);r||(t.navigated=!0,t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));var a=new aY(e.id,t.serializeUrl(e.extractedUrl),i.message);n.next(a),r?setTimeout(function(){var n=t.urlHandlingStrategy.merge(i.url,t.rawUrlTree);t.scheduleNavigation(n,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);var o=new oY(e.id,t.serializeUrl(e.extractedUrl),i);n.next(o);try{e.resolve(t.errorHandler(i))}catch(u){e.reject(u)}}var l;return dp}))}))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var n=e.extractLocationChangeInfoFromEvent(t);e.shouldScheduleNavigation(e.lastLocationChangeInfo,n)&&setTimeout(function(){var t=n.source,i=n.state,r=n.urlTree,a={replaceUrl:!0};if(i){var o=Object.assign({},i);delete o.navigationId,0!==Object.keys(o).length&&(a.state=o)}e.scheduleNavigation(r,t,i,a)},0),e.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(e,t){if(!e)return!0;var n=t.urlTree.toString()===e.urlTree.toString();return!(t.transitionId===e.transitionId&&n&&("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){NQ(e),this.config=e.map(HQ),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relativeTo,i=t.queryParams,r=t.fragment,o=t.queryParamsHandling,s=t.preserveFragment,l=n||this.routerState.root,u=s?this.currentUrlTree.fragment:r,c=null;switch(o){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),function(e,t,n,i,r){if(0===n.length)return yQ(t.root,t.root,t,i,r);var o=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new bQ(!0,0,e);var t=0,n=!1,i=e.reduce(function(e,i,r){if("object"==typeof i&&null!=i){if(i.outlets){var o={};return OY(i.outlets,function(e,t){o[t]="string"==typeof e?e.split("/"):e}),[].concat(a(e),[{outlets:o}])}if(i.segmentPath)return[].concat(a(e),[i.segmentPath])}return"string"!=typeof i?[].concat(a(e),[i]):0===r?(i.split("/").forEach(function(i,r){0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?t++:""!=i&&e.push(i))}),e):[].concat(a(e),[i])},[]);return new bQ(n,t,i)}(n);if(o.toRoot())return yQ(t.root,new RY([],{}),t,i,r);var s=function(e,t,n){if(e.isAbsolute)return new kQ(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){var i=n.snapshot._urlSegment;return new kQ(i,i===t.root,0)}var r=gQ(e.commands[0])?0:1;return function(e,t,n){for(var i=e,r=t,a=n;a>r;){if(a-=r,!(i=i.parent))throw new Error("Invalid number of '../'");r=i.segments.length}return new kQ(i,!1,r-a)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(o,t,e),l=s.processChildren?CQ(s.segmentGroup,s.index,o.commands):wQ(s.segmentGroup,s.index,o.commands);return yQ(s.segmentGroup,l,t,i,r)}(l,this.currentUrlTree,e,c,u)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=MQ(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(e){for(var t=0;t2&&void 0!==arguments[2]?arguments[2]:{};b(this,e),this.router=t,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 w(e,[{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 e=this;return this.router.events.subscribe(function(t){t instanceof iY?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof rY&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof yY&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new yY(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||RX)(Ni(EX),Ni(nf),Ni(void 0))},RX.\u0275prov=Le({token:RX,factory:RX.\u0275fac}),RX),jX=new _i("ROUTER_CONFIGURATION"),UX=new _i("ROUTER_FORROOT_GUARD"),WX=[Od,{provide:NY,useClass:VY},{provide:EX,useFactory:function(e,t,n,i,r,a,o){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},l=arguments.length>8?arguments[8]:void 0,u=arguments.length>9?arguments[9]:void 0,c=new EX(null,e,t,n,i,r,a,SY(o));if(l&&(c.urlHandlingStrategy=l),u&&(c.routeReuseStrategy=u),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(s,c),s.enableTracing){var d=ad();c.events.subscribe(function(e){d.logGroup("Router Event: ".concat(e.constructor.name)),d.log(e.toString()),d.log(e),d.logGroupEnd()})}return c},deps:[NY,bX,Od,zo,$c,xc,vX,jX,[function(){return function e(){b(this,e)}}(),new Ui],[function(){return function e(){b(this,e)}}(),new Ui]]},bX,{provide:oQ,useFactory:function(e){return e.routerState.root},deps:[EX]},{provide:$c,useClass:Jc},zX,HX,function(){function e(){b(this,e)}return w(e,[{key:"preload",value:function(e,t){return t().pipe(uR(function(){return fp(null)}))}}]),e}(),{provide:jX,useValue:{enableTracing:!1}}];function qX(){return new Gc("Router",EX)}var YX,QX=((YX=function(){function e(t,n){b(this,e)}return w(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[WX,ZX(t),{provide:UX,useFactory:KX,deps:[[EX,new Ui,new Wi]]},{provide:jX,useValue:n||{}},{provide:_d,useFactory:$X,deps:[ld,[new ji(xd),new Ui],jX]},{provide:GX,useFactory:XX,deps:[EX,nf,jX]},{provide:BX,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:HX},{provide:Gc,multi:!0,useFactory:qX},[e$,{provide:oc,multi:!0,useFactory:t$,deps:[e$]},{provide:c$,useFactory:n$,deps:[e$]},{provide:fc,multi:!0,useExisting:c$}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[ZX(t)]}}}]),e}()).\u0275fac=function(e){return new(e||YX)(Ni(UX,8),Ni(EX,8))},YX.\u0275mod=yt({type:YX}),YX.\u0275inj=Ne({}),YX);function XX(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new GX(e,t,n)}function $X(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new Ad(e,t):new Sd(e,t)}function KX(e){return"guarded"}function ZX(e){return[{provide:bi,multi:!0,useValue:e},{provide:vX,multi:!0,useValue:e}]}var JX,e$=((JX=function(){function e(t){b(this,e),this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new j}return w(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(dd,Promise.resolve(null)).then(function(){var t=null,n=new Promise(function(e){return t=e}),i=e.injector.get(EX),r=e.injector.get(jX);return"disabled"===r.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(i.hooks.afterPreactivation=function(){return e.initNavigation?fp(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},i.initialNavigation()):t(!0),n})}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(jX),n=this.injector.get(zX),i=this.injector.get(GX),r=this.injector.get(EX),a=this.injector.get(Qc);e===a.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||r.initialNavigation(),n.setUpPreloading(),i.init(),r.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}]),e}()).\u0275fac=function(e){return new(e||JX)(Ni(zo))},JX.\u0275prov=Le({token:JX,factory:JX.\u0275fac}),JX);function t$(e){return e.appInitializer.bind(e)}function n$(e){return e.bootstrapListener.bind(e)}var i$,r$,a$,o$,s$,l$,u$,c$=new _i("Router Initializer"),d$=((a$=function(){function e(){b(this,e)}return w(e,[{key:"fromProperties",value:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}}]),e}()).\u0275fac=function(e){return new(e||a$)},a$.\u0275prov=Le({token:a$,factory:a$.\u0275fac,providedIn:"root"}),a$),h$=((r$=function(){function e(t,n){b(this,e),this.router=t,this.configService=n}return w(e,[{key:"event",value:function(e,t,n){gtag("event",e,{event_category:t,event_label:n})}},{key:"errorEvent",value:function(e){this.event(e.code,"error_messages",e.message)}},{key:"accountEvent",value:function(e){this.event(e,"account","")}},{key:"searchEvent",value:function(e){e.words&&this.event(e.words,"search","");var t,n=s(e.ages);try{for(n.s();!(t=n.n()).done;){var i=t.value;this.event(i.toString(),"search_filter","")}}catch(r){n.e(r)}finally{n.f()}e.category&&this.event(e.category.name,"search_filter","search_topic"),1===e.types.length&&this.event(e.types[0].toString(),"search_filter",""),this.event(e.sort.field,"search_sort",""),this.event(e.start.toString(),"search_start","")}},{key:"searchInteractionEvent",value:function(e){this.event(e,"search_interaction","")}},{key:"mapEvent",value:function(e){this.event(e,"map_interaction","map_pin_click")}},{key:"mapResourceEvent",value:function(e){this.event(e,"map_interaction","map_pin_resource_click")}},{key:"studyInquiryEvent",value:function(e){this.event(e.id.toString(),"study_inquiry",e.title)}},{key:"studySurveyEvent",value:function(e){this.event(e.id.toString(),"study_survey",e.title)}},{key:"flowStartEvent",value:function(e){this.event(e,"flow_started","")}},{key:"flowCompleteEvent",value:function(e){this.event(e,"flow_completed","")}},{key:"stepCompleteEvent",value:function(e){this.event(e,"step_completed","")}},{key:"relatedContentEvent",value:function(e,t){this.event(e,"related_content",t)}},{key:"set_user",value:function(e){gtag("set",{user_id:e})}},{key:"init",value:function(){this.listenForRouteChanges();try{var e=this.configService.googleAnalyticsKey,t=document.createElement("script");t.async=!0,t.src="https://www.googletagmanager.com/gtag/js?id="+e,document.head.appendChild(t);var n=document.createElement("script");n.innerHTML="\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n gtag('config', '"+e+"', {'send_page_view': false});\n ",document.head.appendChild(n)}catch(i){console.error("Error appending google analytics"),console.error(i)}}},{key:"listenForRouteChanges",value:function(){var e=this.configService.googleAnalyticsKey;this.router.events.subscribe(function(t){t instanceof rY&>ag("config",e,{page_path:t.urlAfterRedirects})})}}]),e}()).\u0275fac=function(e){return new(e||r$)(Ni(EX),Ni(d$))},r$.\u0275prov=Le({token:r$,factory:r$.\u0275fac,providedIn:"root"}),r$),f$=((i$=function(){function e(t,n){b(this,e),this.router=t,this.googleAnalyticsService=n,this.isSession=new RegExp(".*/api/session")}return w(e,[{key:"logError",value:function(e){this.googleAnalyticsService.errorEvent(e)}},{key:"intercept",value:function(e,t){var n=this;return t.handle(e).pipe(uR(function(t){return 401!==t.status||n.isSession.test(e.url)||(console.log("Unauthorized Access!!!",e),n.router.navigate(["timedout"])),t.error&&n.logError(t.error),pp(t.error||t.statusText)}))}}]),e}()).\u0275fac=function(e){return new(e||i$)(Ni(EX),Ni(h$))},i$.\u0275prov=Le({token:i$,factory:i$.\u0275fac}),i$),p$=function(e){return e.SELF_PARTICIPANT="self_participant",e.SELF_GUARDIAN="self_guardian",e.DEPENDENT="dependent",e.SELF_PROFESSIONAL="self_professional",e.SELF_INTERESTED="self_interested",e}({}),m$=function(){function e(t){for(var n in b(this,e),this._props=t,this._props)this._props.hasOwnProperty(n)&&(this[n]=this._props[n])}return w(e,[{key:"getFlowName",value:function(){switch(this.relationship){case p$.DEPENDENT:return"dependent_intake";case p$.SELF_GUARDIAN:return"guardian_intake";case p$.SELF_PROFESSIONAL:return"professional_intake";case p$.SELF_INTERESTED:return"interested_intake";case p$.SELF_PARTICIPANT:default:return"self_intake"}}}]),e}(),g$=function e(t){for(var n in b(this,e),t)t.hasOwnProperty(n)&&(this[n]=t[n])},v$=function(){function e(t){for(var n in b(this,e),this._props=t,this._props)this._props.hasOwnProperty(n)&&(this[n]=this._props[n]);this.participants&&this.participants.length>0&&(this.participants=this.participants.map(function(e){return new m$(e)})),this.user_meta&&(this.user_meta=new g$(this.user_meta))}return w(e,[{key:"isSelf",value:function(e){return e.relationship===p$.SELF_GUARDIAN||e.relationship===p$.SELF_PARTICIPANT||e.relationship===p$.SELF_PROFESSIONAL||e.relationship===p$.SELF_INTERESTED}},{key:"getSelf",value:function(){var e=this;return this.participants.find(function(t){return e.isSelf(t)})}},{key:"getDependents",value:function(){var e=this;return this.participants.filter(function(t){return!e.isSelf(t)})}},{key:"getParticipantById",value:function(e){var t,n=s(this.participants);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(i.id===e)return i}}catch(r){n.e(r)}finally{n.f()}throw Error("The user does not have a participant with the given id.")}},{key:"hasContactInfo",value:function(e){return null!=e.contact}},{key:"checkContact",value:function(){var e=this;return null!=this.participants.find(function(t){return e.hasContactInfo(t)})}}]),e}(),y$=((l$=function(){function e(t,n,i){b(this,e),this.http=t,this.googleAnalyticsService=n,this.configService=i,this.currentUserSubject=new ep(null);var r=localStorage.getItem(e.LOCAL_TOKEN_KEY);this.login_url="".concat(i.apiUrl,"/api/login_password"),this.reset_pass_url="".concat(i.apiUrl,"/api/reset_password"),this.refresh_url="".concat(i.apiUrl,"/api/session"),this.currentUser=this.currentUserSubject.asObservable(),r?(console.log("A token is set. Grabbing the user."),this._refresh().subscribe()):(console.log("No Token. Current user is null."),this.currentUserSubject.next(null))}return w(e,[{key:"_handleError",value:function(e){return pp(e.message)}},{key:"loadUser",value:function(t){t.token&&localStorage.setItem(e.LOCAL_TOKEN_KEY,t.token);var n=new v$(t);return this.currentUserSubject.next(n),console.log("The current user subject is now set.",n),this.googleAnalyticsService.set_user(n.id),n}},{key:"login",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return this.http.post(this.login_url,{email:e,password:t,email_token:i}).pipe(q(function(e){return n.loadUser(e)}),uR(this._handleError))}},{key:"_refresh",value:function(){var e=this;return this.http.get(this.refresh_url).pipe(q(function(t){return e.loadUser(t)},function(t){e.currentUserSubject.next(null)}))}},{key:"refresh",value:function(){this._refresh().subscribe()}},{key:"resetPassword",value:function(e,t){var n=this;return this.http.post(this.reset_pass_url,{password:e,email_token:t}).pipe(q(function(e){return n.loadUser(e)}))}},{key:"logout",value:function(){localStorage.removeItem(e.LOCAL_TOKEN_KEY),this.currentUserSubject.next(null),this.googleAnalyticsService.set_user(null)}}]),e}()).LOCAL_TOKEN_KEY="star_token",l$.\u0275fac=function(e){return new(e||l$)(Ni(vg),Ni(h$),Ni(d$))},l$.\u0275prov=Le({token:l$,factory:l$.\u0275fac,providedIn:"root"}),l$),_$=((s$=function(){function e(){b(this,e),this.isS3=new RegExp("^https?://s3.amazonaws.com.*")}return w(e,[{key:"intercept",value:function(e,t){var n=localStorage.getItem(y$.LOCAL_TOKEN_KEY);return this.isS3.test(e.url)||n&&(e=e.clone({setHeaders:{Authorization:"Bearer ".concat(n)}})),t.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||s$)},s$.\u0275prov=Le({token:s$,factory:s$.\u0275fac}),s$),b$=((o$=function(){function e(t,n){b(this,e),this.router=t,this.meta=n,this.meta.updateTag({property:"og:image",content:location.origin+"/assets/about/diversity.jpg"},"property='og:image'"),this.meta.updateTag({property:"og:image:secure_url",content:location.origin+"/assets/about/diversity.jpg"},"property='og:image:secure_url'"),this.meta.updateTag({name:"twitter:image",content:location.origin+"/assets/about/diversity.jpg"},"name='twitter:image'")}return w(e,[{key:"ngOnInit",value:function(){}},{key:"goRegister",value:function(e){e.preventDefault(),this.router.navigate(["register"])}}]),e}()).\u0275fac=function(e){return new(e||o$)(ls(EX),ls(Yf))},o$.\u0275cmp=pt({type:o$,selectors:[["app-about"]],decls:36,vars:0,consts:[["fxHide","","fxShow.gt-sm",""],["id","hero",1,"gradient-overlay","container"],[1,"row","move_up"],[1,"border-box"],["fxHide","","fxShow.lt-md",""],["id","hero",1,"gradient-overlay","container",2,"background-position","50% 0%","background-size","980px"],[1,"row","move_up_mobile"],["fxLayoutAlign","center","fxLayout","column"],[1,"container","about"],["fxLayout","row","fxLayoutGap","4%","fxLayoutAlign","center",1,"row"],["fxFlex","67%"],["href","https://curry.virginia.edu/faculty-research/centers-labs-projects/supporting-transformative-autism-research-star"],["fxLayoutAlign","center center",1,"row"],["mat-flat-button","","color","primary",1,"btn-lg",3,"click"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"div",1),ds(2,"div",2),ds(3,"div",3),ds(4,"h1"),Js(5,"About Autism DRIVE"),hs(),hs(),hs(),hs(),hs(),ds(6,"div",4),ds(7,"div",5),ds(8,"div",6),ds(9,"div",3),ds(10,"h1"),Js(11,"About Autism DRIVE"),hs(),hs(),hs(),hs(),hs(),ds(12,"div",7),ds(13,"div",8),ds(14,"div",9),ds(15,"div",10),ds(16,"h2"),Js(17,'About "Autism DRIVE"'),hs(),ds(18,"p"),Js(19,"The Autism DRIVE was developed by "),ds(20,"a",11),Js(21,"University of Virginia STAR initiative"),hs(),Js(22," to help the autism community, researchers, and resources connect. Through the DRIVE we hope to learn more about autism and develop meaningful solutions to challenges experienced by people with autism and their families. It also provides individualized online access to training and resources focused on autism."),hs(),ds(23,"h2"),Js(24,"Why is autism research important?"),hs(),ds(25,"p"),Js(26,"Research can help us figure out answers to questions about autism that we don\u2019t yet know. Our goal is to increase autism research in Virginia and nationally."),hs(),ds(27,"p"),Js(28,"Through the Autism DRIVE, we aim to find answers in areas that have the greatest potential to improve the lives of people with autism and their families. Our projects focus on understanding the biological, social and cognitive bases of autism, developing effective and personalized interventions, and testing new models to bridge the gap between research and practice through training. Our research ranges from basic neuroscience to applied practice. Our ultimate goal is to empower people with autism, their families, and their communities to achieve positive outcomes."),hs(),ds(29,"h2"),Js(30,"What are the benefits of joining?"),hs(),ds(31,"p"),Js(32,"By joining the Autism DRIVE, you will be connected with autism researchers at the University of Virginia and will have the opportunity to participate in exciting research studies. Based on the information you provide in the registration process, you can be matched with research opportunities and resources that would be a good fit for you or your family member. Your participation in any research study is voluntary, so although we will match you with studies, you do not have to participate in them unless you or your family member want to. If you want to cancel your account at any time, you can let us know by emailing rn4ee@hscmail.mcc.virginia.edu."),hs(),hs(),hs(),hs(),ds(33,"div",12),ds(34,"button",13),ks("click",function(e){return t.goRegister(e)}),Js(35," Get started now "),hs(),hs(),hs())},directives:[my,eb,Xy,n_,v_,kP],styles:[".enroll[_ngcontent-%COMP%]{margin:1em}.move_up[_ngcontent-%COMP%]{position:relative;width:575px;top:-110px}.move_up_mobile[_ngcontent-%COMP%]{position:relative;width:400px;top:-120px}#hero[_ngcontent-%COMP%]{background-position:50% 17%}#feature[_ngcontent-%COMP%], #hero[_ngcontent-%COMP%]{background-image:url(/assets/about/diversity.jpg);height:480px}#feature[_ngcontent-%COMP%]{background-position:100% 20%}#about-cta[_ngcontent-%COMP%]{font-weight:700;font-size:1.25rem;font-style:italic;margin-bottom:1em}"]}),o$),k$=function(){function e(t){b(this,e),this.api=t,this.logSubject=new ep([]),this.logs$=this.logSubject.asObservable(),this.countSubject=new ep(0),this.count$=this.countSubject.asObservable(),this.loadingSubject=new ep(!1),this.loading$=this.loadingSubject.asObservable()}return w(e,[{key:"connect",value:function(e){return this.logSubject.asObservable()}},{key:"disconnect",value:function(e){this.logSubject.complete(),this.loadingSubject.complete(),this.countSubject.complete()}},{key:"loadLogs",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.loadingSubject.next(!0),this.api.getDataTransferLogs(t,n).subscribe(function(t){e.logSubject.next(t.items),e.countSubject.next(t.total),e.loadingSubject.next(!1)},function(t){e.logSubject.next(null),e.countSubject.next(0),e.loadingSubject.next(!1)})}}]),e}(),w$=function(){function e(t){for(var n in b(this,e),this._props=t,this._props)this._props.hasOwnProperty(n)&&(this[n]=this._props[n])}return w(e,[{key:"isComplete",value:function(){return 1===this.percentComplete()}},{key:"percentComplete",value:function(){return this.steps&&this.steps.length>0?this.steps.filter(function(e){return"COMPLETE"===e.status}).length/this.steps.length*100:0}}]),e}(),C$=function(){function e(t){for(var n in b(this,e),this._props=t,this._props)this._props.hasOwnProperty(n)&&(this[n]=this._props[n])}return w(e,[{key:"getIcon",value:function(){switch(this.question_type){case"sensitive":return"vpn_key";case"identifying":return"fingerprint";case"unrestricted":default:return"remove"}}}]),e}(),x$=((u$=function(){function e(t,n){b(this,e),this.httpClient=t,this.configService=n,this.endpoints={adminNote:"/api/admin_note/",adminNoteList:"/api/admin_note",category:"/api/category/",categorybyresource:"/api/resource//category",categorybylocation:"/api/location//category",categorybyevent:"/api/event//category",categorybystudy:"/api/study//category",categorylist:"/api/category",categorynameslist:"/api/category/names_list",chainStepsList:"/api/chain_step",chainStep:"/api/chain_step/",data_transfer_log:"/api/data_transfer_log",event:"/api/event/",eventbycategory:"/api/category//event",eventcategory:"/api/event_category/",eventcategorylist:"/api/event_category",eventlist:"/api/event",favoritesbyuserlist:"/api/user//favorite",favoritesbyuserandtypelist:"/api/user//favorite/",flow:"/api/flow//",flowAnonymous:"/api/flow/",flowlist:"/api/flow",flowquestionnaire:"/api/flow//",flowquestionnairemeta:"/api/flow///meta",forgot_password:"/api/forgot_password",investigatorList:"/api/investigator",investigatorbystudy:"/api/study//investigator",investigator:"/api/investigator/",location:"/api/location/",locationbycategory:"/api/category//location",locationcategory:"/api/location_category/",locationcategorylist:"/api/location_category",locationlist:"/api/location",organization:"/api/organization/",organizationlist:"/api/organization",participant:"/api/participant/",participantAdminList:"/api/participant_admin_list",participantbysession:"/api/session/participant",participantStepLog:"/api/participant/step_log/",password_requirements:"/api/password_requirements/",questionnaire:"/api/q//",questionnaireExport:"/api/q//export",questionnaireInfo:"/api/q",questionnaireList:"/api/q/",questionnaireListMeta:"/api/q//meta",questionnaireUserExport:"/api/q/all/export/user/",questionnairemeta:"/api/flow///meta",resource:"/api/resource/",resourcebycategory:"/api/category//resource",resourcecategory:"/api/resource_category/",resourceChangeLog:"/api/resource//change_log",resourceAdminNoteList:"/api/resource//admin_note",relatedresults:"/api/related",resourcecategorylist:"/api/resource_category",resourcelist:"/api/resource",educationresourcelist:"/api/resource/education",covid19resourcelist:"/api/resource/covid19/",categorytree:"/api/category/root",search:"/api/search",searchstudies:"/api/search/studies",session:"/api/session",sessionparticipants:"/api/session/participant",sessionstatus:"/api/session/status",status:"/api/status",study:"/api/study/",studybycategory:"/api/category//study",studycategory:"/api/study_category/",studycategorylist:"/api/study_category",studyinquiry:"/api/study_inquiry",studylist:"/api/study",studybystatuslist:"/api/study/status/",studybyage:"/api/study/status//",user:"/api/user/",userAdminNoteList:"/api/user//admin_note",userEmailLog:"/api/user/email_log/",emailloglist:"/api/email_log",userfavoritelist:"/api/user_favorite",userfavorite:"/api/user_favorite/",userResourceChangeLog:"/api/user//resource_change_log",userStudyInquiryList:"/api/user//inquiry/study",userlist:"/api/user",userRegistration:"/api/user/registration",userparticipant:"/api/user_participant/",userMeta:"/api/user//usermeta",zip_code_coords:"/api/zip_code_coords/"},this.apiRoot=n.apiUrl}return w(e,[{key:"sendResetPasswordEmail",value:function(e){var t={email:e};return this.httpClient.post(this._endpointUrl("forgot_password"),t).pipe(uR(this._handleError))}},{key:"sendStudyInquiryEmail",value:function(e,t){var n={user_id:e.id,study_id:t.id};return this.httpClient.post(this._endpointUrl("studyinquiry"),n).pipe(uR(this._handleError))}},{key:"addUserMeta",value:function(e){var t=this._endpointUrl("userMeta").replace("",e.id.toString());return this.httpClient.post(t,e).pipe(q(function(e){return new g$(e)}),uR(this._handleError))}},{key:"getUserMeta",value:function(e){return this.httpClient.get(this._endpointUrl("userMeta").replace("",e.toString())).pipe(uR(this._handleError))}},{key:"addParticipant",value:function(e){var t=this._endpointUrl("participantbysession");return this.httpClient.post(t,e).pipe(q(function(e){return new m$(e)}),uR(this._handleError))}},{key:"updateParticipant",value:function(e){return this.httpClient.put(this._endpointUrl("participant").replace("",e.id.toString()),e).pipe(uR(this._handleError))}},{key:"getParticipant",value:function(e){return this.httpClient.get(this._endpointUrl("participant").replace("",e.toString())).pipe(uR(this._handleError))}},{key:"getParticipantAdminList",value:function(){return this.httpClient.get(this._endpointUrl("participantAdminList")).pipe(uR(this._handleError))}},{key:"getFlow",value:function(e,t){var n;return n=t?this._endpointUrl("flow").replace("",e).replace("",t.toString()):this._endpointUrl("flowAnonymous").replace("",e),this.httpClient.get(n).pipe(q(function(e){return new w$(e)}),uR(this._handleError))}},{key:"addStudy",value:function(e){return this.httpClient.post(this._endpointUrl("studylist"),e).pipe(uR(this._handleError))}},{key:"updateStudy",value:function(e){return this.httpClient.put(this._endpointUrl("study").replace("",e.id.toString()),e).pipe(uR(this._handleError))}},{key:"deleteStudy",value:function(e){return this.httpClient.delete(this._endpointUrl("study").replace("",e.id.toString())).pipe(uR(this._handleError))}},{key:"getStudy",value:function(e){return this.httpClient.get(this._endpointUrl("study").replace("",e.toString())).pipe(uR(this._handleError))}},{key:"getStudies",value:function(){return this.httpClient.get(this._endpointUrl("studylist")).pipe(uR(this._handleError))}},{key:"getStudiesByStatus",value:function(e){return this.httpClient.get(this._endpointUrl("studybystatuslist").replace("",e)).pipe(uR(this._handleError))}},{key:"getStudiesByAge",value:function(e,t){return this.httpClient.get(this._endpointUrl("studybyage").replace("",e).replace("",t)).pipe(uR(this._handleError))}},{key:"addAdminNote",value:function(e){return this.httpClient.post(this._endpointUrl("adminNoteList"),e).pipe(uR(this._handleError))}},{key:"updateAdminNote",value:function(e){return this.httpClient.put(this._endpointUrl("adminNote").replace("",e.id.toString()),e).pipe(uR(this._handleError))}},{key:"deleteAdminNote",value:function(e){return this.httpClient.delete(this._endpointUrl("adminNote").replace("",e.id.toString())).pipe(uR(this._handleError))}},{key:"getAdminNote",value:function(e){return this.httpClient.get(this._endpointUrl("adminNote").replace("",e.toString())).pipe(uR(this._handleError))}},{key:"getAdminNotes",value:function(){return this.httpClient.get(this._endpointUrl("adminNoteList")).pipe(uR(this._handleError))}},{key:"getResourceAdminNotes",value:function(e){return this.httpClient.get(this._endpointUrl("resourceAdminNoteList").replace("",e.toString())).pipe(uR(this._handleError))}},{key:"getUserAdminNotes",value:function(e){return this.httpClient.get(this._endpointUrl("userAdminNoteList").replace("",e.toString())).pipe(uR(this._handleError))}},{key:"addEvent",value:function(e){return this.httpClient.post(this._endpointUrl("eventlist"),e).pipe(uR(this._handleError))}},{key:"updateEvent",value:function(e){return this.httpClient.put(this._endpointUrl("event").replace("",e.id.toString()),e).pipe(uR(this._handleError))}},{key:"deleteEvent",value:function(e){return this.httpClient.delete(this._endpointUrl("event").replace("",e.id.toString())).pipe(uR(this._handleError))}},{key:"getEvent",value:function(e){return this.httpClient.get(this._endpointUrl("event").replace("",e.toString())).pipe(uR(this._handleError))}},{key:"getEvents",value:function(){return this.httpClient.get(this._endpointUrl("eventlist")).pipe(uR(this._handleError))}},{key:"addLocation",value:function(e){return this.httpClient.post(this._endpointUrl("locationlist"),e).pipe(uR(this._handleError))}},{key:"updateLocation",value:function(e){return this.httpClient.put(this._endpointUrl("location").replace("",e.id.toString()),e).pipe(uR(this._handleError))}},{key:"deleteLocation",value:function(e){return this.httpClient.delete(this._endpointUrl("location").replace("",e.id.toString())).pipe(uR(this._handleError))}},{key:"getLocation",value:function(e){return this.httpClient.get(this._endpointUrl("location").replace("",e.toString())).pipe(uR(this._handleError))}},{key:"getLocations",value:function(){return this.httpClient.get(this._endpointUrl("locationlist")).pipe(uR(this._handleError))}},{key:"addResource",value:function(e){return this.httpClient.post(this._endpointUrl("resourcelist"),e).pipe(uR(this._handleError))}},{key:"updateResource",value:function(e){return this.httpClient.put(this._endpointUrl("resource").replace("",e.id.toString()),e).pipe(uR(this._handleError))}},{key:"deleteResource",value:function(e){return this.httpClient.delete(this._endpointUrl("resource").replace("",e.id.toString())).pipe(uR(this._handleError))}},{key:"getResource",value:function(e){return this.httpClient.get(this._endpointUrl("resource").replace("",e.toString())).pipe(uR(this._handleError))}},{key:"getResources",value:function(){return this.httpClient.get(this._endpointUrl("resourcelist")).pipe(uR(this._handleError))}},{key:"getEducationResources",value:function(){return this.httpClient.get(this._endpointUrl("educationresourcelist")).pipe(uR(this._handleError))}},{key:"getCovid19ResourcesByCategory",value:function(e){return this.httpClient.get(this._endpointUrl("covid19resourcelist").replace("",e)).pipe(uR(this._handleError))}},{key:"getRelatedResults",value:function(e){return this.httpClient.post(this._endpointUrl("relatedresults"),e).pipe(uR(this._handleError))}},{key:"getResourceCategories",value:function(e){var t=this._endpointUrl("categorybyresource").replace("",e.id.toString());return this.httpClient.get(t).pipe(uR(this._handleError))}},{key:"addResourceCategory",value:function(e){return this.httpClient.post(this._endpointUrl("resourcecategorylist"),e).pipe(uR(this._handleError))}},{key:"updateResourceCategories",value:function(e,t){var n=this._endpointUrl("categorybyresource").replace("",e.toString());return this.httpClient.post(n,t).pipe(uR(this._handleError))}},{key:"updateLocationCategories",value:function(e,t){var n=this._endpointUrl("categorybylocation").replace("",e.toString());return this.httpClient.post(n,t).pipe(uR(this._handleError))}},{key:"updateEventCategories",value:function(e,t){var n=this._endpointUrl("categorybyevent").replace("",e.toString());return this.httpClient.post(n,t).pipe(uR(this._handleError))}},{key:"deleteResourceCategory",value:function(e){return this.httpClient.delete(this._endpointUrl("resourcecategory").replace("",e.id.toString())).pipe(uR(this._handleError))}},{key:"addStudyCategory",value:function(e){return this.httpClient.post(this._endpointUrl("studycategorylist"),e).pipe(uR(this._handleError))}},{key:"updateStudyCategories",value:function(e,t){var n=this._endpointUrl("categorybystudy").replace("",e.toString());return this.httpClient.post(n,t).pipe(uR(this._handleError))}},{key:"deleteStudyCategory",value:function(e){return this.httpClient.delete(this._endpointUrl("studycategory").replace("",e.id.toString())).pipe(uR(this._handleError))}},{key:"getCategoryNamesList",value:function(){return this.httpClient.get(this._endpointUrl("categorynameslist")).pipe(uR(this._handleError))}},{key:"getCategoryTree",value:function(){return this.httpClient.get(this._endpointUrl("categorytree")).pipe(uR(this._handleError))}},{key:"addCategory",value:function(e){return this.httpClient.post(this._endpointUrl("categorylist"),e).pipe(uR(this._handleError))}},{key:"deleteCategory",value:function(e){return this.httpClient.delete(this._endpointUrl("category").replace("",e.toString())).pipe(uR(this._handleError))}},{key:"addInvestigator",value:function(e){return this.httpClient.post(this._endpointUrl("investigatorList"),e).pipe(uR(this._handleError))}},{key:"updateInvestigator",value:function(e){return this.httpClient.put(this._endpointUrl("investigator").replace("",e.id.toString()),e).pipe(uR(this._handleError))}},{key:"getInvestigators",value:function(){return this.httpClient.get(this._endpointUrl("investigatorList")).pipe(uR(this._handleError))}},{key:"updateStudyInvestigators",value:function(e,t){var n=this._endpointUrl("investigatorbystudy").replace("",e.toString());return this.httpClient.post(n,t).pipe(uR(this._handleError))}},{key:"getUser",value:function(e){return this.httpClient.get(this._endpointUrl("user").replace("",e.toString())).pipe(uR(this._handleError))}},{key:"updateUser",value:function(e){return this.httpClient.put(this._endpointUrl("user").replace("",e.id.toString()),e).pipe(uR(this._handleError))}},{key:"addUser",value:function(e){return this.httpClient.post(this._endpointUrl("userlist"),e).pipe(q(function(e){return new v$(e)}),uR(this._handleError))}},{key:"findUsers",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"email",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"asc",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:3,a={filter:e,sort:t,sortOrder:n,pageNumber:String(i),pageSize:String(r)};return this.httpClient.get(this._endpointUrl("userlist"),{params:a}).pipe(uR(this._handleError))}},{key:"getUserStudyInquiries",value:function(e){return this.httpClient.get(this._endpointUrl("userStudyInquiryList").replace("",e.toString())).pipe(uR(this._handleError))}},{key:"getUserEmailLog",value:function(e){return this.httpClient.get(this._endpointUrl("userEmailLog").replace("",e.id.toString())).pipe(uR(this._handleError))}},{key:"getAllEmailLog",value:function(){return this.httpClient.get(this._endpointUrl("emailloglist")).pipe(uR(this._handleError))}},{key:"getResourceChangeLog",value:function(e){return this.httpClient.get(this._endpointUrl("resourceChangeLog").replace("",e.toString())).pipe(uR(this._handleError))}},{key:"getUserResourceChangeLog",value:function(e){return this.httpClient.get(this._endpointUrl("userResourceChangeLog").replace("",e.toString())).pipe(uR(this._handleError))}},{key:"getParticipantStepLog",value:function(e){return this.httpClient.get(this._endpointUrl("participantStepLog").replace("",e.id.toString())).pipe(uR(this._handleError))}},{key:"addUserFavorites",value:function(e){return this.httpClient.post(this._endpointUrl("userfavoritelist"),e).pipe(uR(this._handleError))}},{key:"deleteUserFavorite",value:function(e){return this.httpClient.delete(this._endpointUrl("userfavorite").replace("",e.id.toString())).pipe(uR(this._handleError))}},{key:"getFavoritesByUser",value:function(e){return this.httpClient.get(this._endpointUrl("favoritesbyuserlist").replace("",e.id.toString())).pipe(uR(this._handleError))}},{key:"getFavoritesByUserAndType",value:function(e,t){return this.httpClient.get(this._endpointUrl("favoritesbyuserandtypelist").replace("",e.id.toString()).replace("",t)).pipe(uR(this._handleError))}},{key:"getQuestionnaireInfoList",value:function(){var e=this._endpointUrl("questionnaireInfo");return this.httpClient.get(e).pipe(q(function(e){return e.map(function(e){return new C$(e)})}),uR(this._handleError))}},{key:"getQuestionnaireList",value:function(e){var t=this._endpointUrl("questionnaireList").replace("",e);return this.httpClient.get(t).pipe(uR(this._handleError))}},{key:"getQuestionnaireListMeta",value:function(e){var t=this._endpointUrl("questionnaireListMeta").replace("",e);return this.httpClient.get(t).pipe(uR(this._handleError))}},{key:"exportQuestionnaire",value:function(e){var t=this._endpointUrl("questionnaireExport").replace("",e);return this.httpClient.get(t,{observe:"response",responseType:"blob"})}},{key:"exportUserQuestionnaire",value:function(e){var t=this._endpointUrl("questionnaireUserExport").replace("",name).replace("",e);return this.httpClient.get(t,{observe:"response",responseType:"blob"})}},{key:"getQuestionnaire",value:function(e,t){var n=this._endpointUrl("questionnaire").replace("",e).replace("",t.toString());return this.httpClient.get(n).pipe(uR(this._handleError))}},{key:"updateQuestionnaire",value:function(e,t,n){var i=this._endpointUrl("questionnaire").replace("",e).replace("",t.toString());return this.httpClient.put(i,n).pipe(uR(this._handleError))}},{key:"getQuestionnaireMeta",value:function(e,t){var n=this._endpointUrl("questionnairemeta").replace("",e).replace("",t);return this.httpClient.get(n).pipe(uR(this._handleError))}},{key:"submitQuestionnaire",value:function(e,t,n){var i=this._endpointUrl("flowquestionnaire").replace("",e).replace("",t);return this.httpClient.post(i,n).pipe(uR(this._handleError))}},{key:"submitRegistration",value:function(e){var t=this._endpointUrl("userRegistration");return this.httpClient.post(t,e).pipe(uR(this._handleError))}},{key:"search",value:function(e){var t=this._endpointUrl("search");return this.httpClient.post(t,e).pipe(uR(this._handleError))}},{key:"searchStudies",value:function(e){var t=this._endpointUrl("searchstudies");return this.httpClient.post(t,e).pipe(uR(this._handleError))}},{key:"getDataTransferLogs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n={pageNumber:String(e),pageSize:String(t)};return this.httpClient.get(this._endpointUrl("data_transfer_log"),{params:n}).pipe(uR(this._handleError))}},{key:"getZipCoords",value:function(e){var t=this._endpointUrl("zip_code_coords").replace("",e);return this.httpClient.get(t).pipe(uR(this._handleError))}},{key:"getPasswordRequirements",value:function(e){var t=this._endpointUrl("password_requirements").replace("",e);return this.httpClient.get(t).pipe(uR(this._handleError))}},{key:"_handleError",value:function(e){return pp(e.message)}},{key:"getChainStepsList",value:function(){return this.httpClient.get(this._endpointUrl("chainStepsList")).pipe(uR(this._handleError))}},{key:"editChainStep",value:function(e){var t=this._endpointUrl("chainStep").replace("",e.id.toString());return this.httpClient.put(t,e).pipe(uR(this._handleError))}},{key:"deleteChainStep",value:function(e){var t=this._endpointUrl("chainStep").replace("",e.id.toString());return this.httpClient.delete(t).pipe(uR(this._handleError))}},{key:"_endpointUrl",value:function(e){var t=this.endpoints[e];if(t)return this.apiRoot+t;console.log("endpoint '".concat(e,"' does not exist"))}},{key:"_qEndpoint",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;""!==e&&(e=e.charAt(0).toUpperCase()+e.slice(1));var i=this.endpoints["questionnaire"+e].replace("",t+"_questionnaire").replace("",isFinite(n)?n.toString():"");return this.apiRoot+i}}]),e}()).\u0275fac=function(e){return new(e||u$)(Ni(vg),Ni(d$))},u$.\u0275prov=Le({token:u$,factory:u$.\u0275fac,providedIn:"root"}),u$);function S$(e,t){1&e&&(ds(0,"mat-header-cell",13),Js(1," Table Name "),hs())}function A$(e,t){if(1&e&&(ds(0,"mat-cell",13),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.class_name," ")}}function O$(e,t){1&e&&(ds(0,"mat-header-cell"),Js(1," Successful "),hs())}function E$(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.successful," ")}}function T$(e,t){1&e&&(ds(0,"mat-header-cell"),Js(1," Records Processed "),hs())}function P$(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.success_count," ")}}function D$(e,t){1&e&&(ds(0,"mat-header-cell"),Js(1," Failures "),hs())}function M$(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.failure_count," ")}}function I$(e,t){1&e&&(ds(0,"mat-header-cell"),Js(1," Error Messages"),hs())}function R$(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.errors," ")}}function L$(e,t){1&e&&fs(0,"mat-header-row")}function F$(e,t){1&e&&fs(0,"mat-row")}var N$,V$=((N$=function(){function e(){b(this,e),this.displayedColumns=["class_name","successful","success_count","failure_count","errors"]}return w(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||N$)},N$.\u0275cmp=pt({type:N$,selectors:[["app-admin-export-details"]],inputs:{exportDetails:"exportDetails"},decls:21,vars:3,consts:[[1,"details"],[1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","class_name"],["style","flex: 2",4,"matHeaderCellDef"],["style","flex: 2",4,"matCellDef"],["matColumnDef","successful"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","success_count"],["matColumnDef","failure_count"],["matColumnDef","errors"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[2,"flex","2"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"h2"),Js(2,"Details:"),hs(),ds(3,"mat-table",1),ps(4,2),os(5,S$,2,0,"mat-header-cell",3),os(6,A$,2,1,"mat-cell",4),ms(),ps(7,5),os(8,O$,2,0,"mat-header-cell",6),os(9,E$,2,1,"mat-cell",7),ms(),ps(10,8),os(11,T$,2,0,"mat-header-cell",6),os(12,P$,2,1,"mat-cell",7),ms(),ps(13,9),os(14,D$,2,0,"mat-header-cell",6),os(15,M$,2,1,"mat-cell",7),ms(),ps(16,10),os(17,I$,2,0,"mat-header-cell",6),os(18,R$,2,1,"mat-cell",7),ms(),os(19,L$,1,0,"mat-header-row",11),os(20,F$,1,0,"mat-row",12),hs(),hs()),2&e&&(Oa(3),us("dataSource",t.exportDetails),Oa(16),us("matHeaderRowDef",t.displayedColumns),Oa(1),us("matRowDefColumns",t.displayedColumns))},directives:[BB,WB,jB,zB,KB,JB,YB,XB,tH,iH],styles:[".details[_ngcontent-%COMP%]{display:-ms-flexbox;display:flex;place-content:center;padding:24px;color:#555;font-weight:700;background:rgba(0,0,0,.1)}mat-table[_ngcontent-%COMP%]{width:85%;margin:auto}"]}),N$),B$=["tableRow"];function H$(e,t){1&e&&(ds(0,"p"),Js(1," The following is log of IMPORTS coming into this system. "),hs())}function z$(e,t){1&e&&(ds(0,"p"),Js(1," The following is log of EXPORTS going out of this system. "),hs())}function G$(e,t){1&e&&(ds(0,"p",15),Js(1," WARNING: The latest log is showing alerts. This means that the exporter may be having issues and is not removing sensitive data from the server in a timely manor. An email should have been sent to an administrator to alert them of this issue. "),hs())}function j$(e,t){1&e&&(ds(0,"mat-header-cell"),Js(1,"Id"),hs())}function U$(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.id," ")}}function W$(e,t){1&e&&(ds(0,"mat-header-cell"),Js(1,"Type"),hs())}function q$(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.type," ")}}function Y$(e,t){1&e&&(ds(0,"mat-header-cell"),Js(1,"Date Started"),hs())}function Q$(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),Iu(2,"date"),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",Lu(2,1,n.date_started,"medium")," ")}}function X$(e,t){1&e&&(ds(0,"mat-header-cell"),Js(1,"Last Updated"),hs())}function $$(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),Iu(2,"date"),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",Lu(2,1,n.last_updated,"medium")," ")}}function K$(e,t){1&e&&(ds(0,"mat-header-cell"),Js(1,"# Records"),hs())}function Z$(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.total_records," ")}}function J$(e,t){1&e&&(ds(0,"mat-header-cell"),Js(1,"alerts_sent"),hs())}function eK(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.alerts_sent," ")}}function tK(e,t){1&e&&fs(0,"mat-header-row")}function nK(e,t){if(1&e){var n=vs();ds(0,"mat-row",16,17),ks("click",function(){rn(n);var e=t.index;return As().selectRow(e)}),hs()}if(2&e){var i=t.$implicit;zs(As().getRowClass(i))}}var iK,rK=function(){return[5,10,20]},aK=((iK=function(){function e(t,n,i,r){b(this,e),this.api=t,this.configService=n,this.router=i,this.resolver=r,this.columns=[],this.default_page_size=10,this.count=0}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.mirroring=this.configService.mirroring,this.loadData(),this.loadLatestLog(),de(this.paginator.page).pipe(Zg(function(){return e.loadData()})).subscribe()}},{key:"loadData",value:function(){var e=this;this.dataTransferDataSource=new k$(this.api),this.columns=["id","type","date_started","last_updated","total_records","alerts_sent"],this.dataTransferDataSource.loadLogs(this.paginator.pageIndex,this.paginator.pageSize),this.dataTransferDataSource.count$.subscribe(function(t){e.count=t})}},{key:"getRowClass",value:function(e){return e.details.filter(function(e){return!e.successful}).length>0?"error":e.alerts_sent>0?"warn":"normal"}},{key:"loadLatestLog",value:function(){var e=this;this.api.getDataTransferLogs(0,1).subscribe(function(t){t.items.length>0&&(e.latestLog=t.items[0])})}},{key:"selectRow",value:function(e){var t=this;if(console.log("Row "+e+" Selected"),null!=this.expandedRow&&this.rowContainers.toArray()[this.expandedRow].clear(),this.expandedRow===e)this.expandedRow=null;else{var n=this.rowContainers.toArray()[e],i=this.resolver.resolveComponentFactory(V$),r=n.createComponent(i);this.dataTransferDataSource.logs$.subscribe(function(n){r.instance.exportDetails=n[e].details,t.expandedRow=e})}}}]),e}()).\u0275fac=function(e){return new(e||iK)(ls(x$),ls(d$),ls(EX),ls(Cl))},iK.\u0275cmp=pt({type:iK,selectors:[["app-admin-export"]],viewQuery:function(e,t){var n;1&e&&(Ku(GF,3),Ku(B$,1,du)),2&e&&($u(n=Ju())&&(t.paginator=n.first),$u(n=Ju())&&(t.rowContainers=n))},decls:30,vars:10,consts:[[1,"logs"],[4,"ngIf"],["class","mat-error",4,"ngIf"],[1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","id"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","type"],["matColumnDef","date_started"],["matColumnDef","last_updated"],["matColumnDef","total_records"],["matColumnDef","alerts_sent"],[4,"matHeaderRowDef"],["matRipple","",3,"class","click",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions"],[1,"mat-error"],["matRipple","",3,"click"],["tableRow",""]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"h1"),Js(2,"Transfer Logs"),hs(),os(3,H$,2,0,"p",1),os(4,z$,2,0,"p",1),ds(5,"p"),Js(6,"Click on a row for additional details."),hs(),os(7,G$,2,0,"p",2),ds(8,"mat-table",3),ps(9,4),os(10,j$,2,0,"mat-header-cell",5),os(11,U$,2,1,"mat-cell",6),ms(),ps(12,7),os(13,W$,2,0,"mat-header-cell",5),os(14,q$,2,1,"mat-cell",6),ms(),ps(15,8),os(16,Y$,2,0,"mat-header-cell",5),os(17,Q$,3,4,"mat-cell",6),ms(),ps(18,9),os(19,X$,2,0,"mat-header-cell",5),os(20,$$,3,4,"mat-cell",6),ms(),ps(21,10),os(22,K$,2,0,"mat-header-cell",5),os(23,Z$,2,1,"mat-cell",6),ms(),ps(24,11),os(25,J$,2,0,"mat-header-cell",5),os(26,eK,2,1,"mat-cell",6),ms(),os(27,tK,1,0,"mat-header-row",12),os(28,nK,2,3,"mat-row",13),hs(),hs(),fs(29,"mat-paginator",14)),2&e&&(Oa(3),us("ngIf",t.mirroring),Oa(1),us("ngIf",!t.mirroring),Oa(3),us("ngIf",t.latestLog&&t.latestLog.alerts_sent>0),Oa(1),us("dataSource",t.dataTransferDataSource),Oa(19),us("matHeaderRowDef",t.columns),Oa(1),us("matRowDefColumns",t.columns),Oa(1),us("length",t.count)("pageSize",t.default_page_size)("pageSizeOptions",Su(9,rK)))},directives:[wh,BB,WB,jB,zB,KB,JB,GF,YB,XB,tH,iH],pipes:[$h],styles:["div.logs[_ngcontent-%COMP%]{padding:50px 0;margin:50px}table[_ngcontent-%COMP%]{width:100%}mat-card[_ngcontent-%COMP%]{margin-bottom:1em}mat-row.warn[_ngcontent-%COMP%]{background:#ffffe0}mat-row.error[_ngcontent-%COMP%]{background:#ffa07a}"]}),iK);function oK(e,t){if(1&e&&(ds(0,"a",3,4),Js(2),hs()),2&e){var n=t.$implicit,i=ss(1);us("routerLink",n.path)("active",i.isActive)("id",n.id),Oa(2),tl(" ",n.label," ")}}var sK,lK=((sK=function(){function e(){b(this,e),this.navLinks=[{path:"/admin/data-admin",label:"Data Admin",id:"data-admin"},{path:"/admin/user-admin",label:"User Admin",id:"user-admin"},{path:"/admin/participant-admin",label:"Participant Admin",id:"participant-admin"},{path:"/admin/taxonomy-admin",label:"Taxonomy Admin",id:"taxonomy-admin"},{path:"/admin/import-export-status",label:"Import/Export Status",id:"import-export-status"},{path:"/admin/email-log",label:"Email Log",id:"email-log"}]}return w(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||sK)},sK.\u0275cmp=pt({type:sK,selectors:[["app-admin-home"]],decls:6,vars:1,consts:[[1,"admin"],["mat-tab-nav-bar",""],["mat-tab-link","","routerLinkActive","",3,"routerLink","active","id",4,"ngFor","ngForOf"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active","id"],["rla","routerLinkActive"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"h1"),Js(2,"Administrative Options"),hs(),ds(3,"nav",1),os(4,oK,3,4,"a",2),hs(),fs(5,"router-outlet"),hs()),2&e&&(Oa(4),us("ngForOf",t.navLinks))},directives:[bz,bh,NX,PX,Cz,FX],styles:[".admin[_ngcontent-%COMP%]{margin:2em}"]}),sK),uK=function(){var e=function(){function e(t,n){b(this,e),this.name=t,this.label=n}return w(e,null,[{key:"all",value:function(){return[this.LOCATION,this.RESOURCE,this.EVENT,this.STUDY]}},{key:"all_resources",value:function(){return[this.ALL_RESOURCES,this.LOCATION,this.RESOURCE,this.EVENT]}}]),e}();return e.labels={location:"Local Services",resource:"Online Information",event:"Events and Training",study:"Research Studies",all:"All Results",all_resources:"All Resources"},e.LOCATION=new e("location",e.labels.location),e.RESOURCE=new e("resource",e.labels.resource),e.EVENT=new e("event",e.labels.event),e.STUDY=new e("study",e.labels.study),e.ALL=new e("all",e.labels.all),e.ALL_RESOURCES=new e("all_resources",e.labels.all_resources),e}(),cK=function(){var e=function e(){b(this,e)};return e.labels={"pre-k":"Pre-K (0 - 5 years)",school:"School Age (6 - 13 years)",transition:"Transition Age (14 - 22 years)",adult:"Adulthood (23 - 64)",aging:"Aging (65+)"},e}(),dK=function(){var e=function e(){b(this,e)};return e.labels={english:"English",spanish:"Spanish",chinese:"Chinese",korean:"Korean",vietnamese:"Vietnamese",arabic:"Arabic",tagalog:"Tagalog"},e}(),hK=function(){var e=function e(){b(this,e)};return e.labels={"COVID-19_for_Autism":"COVID-19 Information: Information explaining COVID-19 for people with ASD, families and professionals",Health_and_Telehealth:"Health and Telehealth: Online supports to help support the community's mental, behavioral, and physical health","Physical Activity":"Physical Activity: Resources focused on promoting physical activity and exercise",Visual_Aids:"Visual Aids: Resources to develop visual schedules, social stories, communication aids explaining COVID-19","Edu-tainment":"Edu-tainment: Fun educational games, experiences, virtual tours, videos, interactive tools, apps, etc",Supports_with_Living:"Daily Living Supports: Supports and information related to daily living needs and supporting daily living needs at home (e.g., with family, group care, residential supports)",Free_educational_resources:"Free Educational Resources: Curriculum based courses, classes, and textbooks; subscriptions"},e}(),fK=o("jIQF"),pK=function(){function e(t){for(var n in b(this,e),this._superprops=t,this._superprops)this._superprops.hasOwnProperty(n)&&(this[n]=this._superprops[n])}return w(e,[{key:"hasCoords",value:function(){var e=function(e){return"number"==typeof e&&isFinite(e)};return e(this.latitude)&&e(this.longitude)}},{key:"milesFrom",value:function(e){if(e&&this.hasCoords()){var t={lat:this.latitude,lng:this.longitude},n=Object(fK.getDistance)(t,e);return Object(fK.convertDistance)(n,"mi").toFixed(1)}}}]),e}(),mK=function(){function e(t){b(this,e),this._props=t,this.words="",this.start=0,this.size=20,this.types=[],this.ages=[],this.languages=[],this.sort={field:"_score",order:"asc"},this.hits=[],this.type_counts=[],this.age_counts=[],this.language_counts=[],this.map_data_only=!1;var n=JSON.parse(JSON.stringify(this._props));for(var i in n)n.hasOwnProperty(i)&&(this[i]=n[i]);this.hits&&this.hits.length>0&&(this.hits=this.hits.map(function(e){return new gK(e)}))}return w(e,[{key:"hasHits",get:function(){return!!(this.hits&&this.hits.length>0)}},{key:"hasWords",get:function(){return!!(this.words&&this.words.length>0)}},{key:"hasTypes",get:function(){return!(!this.types||1!==this.types.length&&2!==this.types.length)}},{key:"hasAges",get:function(){return!!(this.ages&&this.ages.length>0)}},{key:"hasLanguages",get:function(){return!!(this.languages&&this.languages.length>0)}},{key:"hasCategory",get:function(){return!(!this.category||!this.category.id)}},{key:"hasFilters",get:function(){return!!(this.hasWords||this.hasTypes||this.hasLanguages||this.hasAges||this.hasCategory)}},{key:"hitTypes",get:function(){var e=this;return uK.all().filter(function(t){return e.types.includes(t.name)})}},{key:"hasAgeCounts",get:function(){return this.age_counts.filter(function(e){return e.count>0}).length>0}},{key:"hasLanguageCounts",get:function(){return this.language_counts.filter(function(e){return e.count>0}).length>0}},{key:"equals",value:function(e){var t=!0;return this.category&&e.category&&(t=this.category.id===e.category.id),this.words===e.words&&this.types===e.types&&this.ages===e.ages&&this.languages===e.languages&&t}}]),e}(),gK=function(e){f(n,e);var t=m(n);function n(e){var i;for(var r in b(this,n),(i=t.call(this,e))._props=e,i._props)i._props.hasOwnProperty(r)&&(i[r]=i._props[r]);return i}return n}(pK),vK=function(e){return e.currently_enrolling="Currently enrolling",e.study_in_progress="Study in progress",e.results_being_analyzed="Results being analyzed",e.study_results_published="Study results published",e}({}),yK=function e(t){for(var n in b(this,e),this._props=t,this._props)this._props.hasOwnProperty(n)&&(this[n]=this._props[n])},_K=function(e){return{active:e}};function bK(e,t){if(1&e){var n=vs();ds(0,"div"),ds(1,"div",1),ds(2,"button",2),ks("click",function(e){return rn(n),As().handleClick(e)}),ds(3,"mat-icon",3),Js(4,"grade"),hs(),hs(),hs(),hs()}if(2&e){var i=As();Oa(2),Ps("matTooltip",i.instructions()),Oa(1),us("ngClass",Au(2,_K,i.userFavorite()))}}var kK,wK=((kK=function(){function e(t){b(this,e),this.api=t}return w(e,[{key:"ngOnInit",value:function(){}},{key:"userFavorite",value:function(){var e,t=s(this.user.user_favorites);try{for(t.s();!(e=t.n()).done;)if(e.value.resource_id===this.resource_id)return!0}catch(n){t.e(n)}finally{t.f()}return!1}},{key:"addFavorite",value:function(){var e=this,t=[new yK({user_id:this.user.id,resource_id:this.resource_id,type:"resource"})];this.api.addUserFavorites(t).subscribe(function(t){e.user.user_favorites.push(t[0])})}},{key:"deleteFavorite",value:function(){var e,t=this,n=s(this.user.user_favorites);try{for(n.s();!(e=n.n()).done;){var i=e.value;i.resource_id===this.resource_id&&(this.favorite=i)}}catch(r){n.e(r)}finally{n.f()}this.api.deleteUserFavorite(this.favorite).subscribe(function(e){t.user.user_favorites.splice(t.user.user_favorites.findIndex(function(e){return e.id===t.favorite.id}),1)})}},{key:"handleClick",value:function(e){e.preventDefault(),e.stopPropagation(),this.userFavorite()?this.deleteFavorite():this.addFavorite()}},{key:"instructions",value:function(){return this.userFavorite()?"Remove Resource from Profile":"Save Resource to Profile"}}]),e}()).\u0275fac=function(e){return new(e||kK)(ls(x$))},kK.\u0275cmp=pt({type:kK,selectors:[["app-favorite-resource-button"]],inputs:{resource_id:"resource_id",user:"user"},decls:1,vars:1,consts:[[4,"ngIf"],["fxLayout","row wrap","fxLayout.xs","column","fxLayoutAlign","left","fxLayoutGap","10px","fxLayoutGap.xs","0",1,"container"],["mat-mini-fab","",3,"matTooltip","click"],[3,"ngClass"]],template:function(e,t){1&e&&os(0,bK,5,4,"div",0),2&e&&us("ngIf",t.user)},directives:[wh,Xy,eb,n_,kP,CF,BR,yh,ly],styles:["button.mat-mini-fab.mat-accent[_ngcontent-%COMP%]{background-color:rgba(0,0,0,0);box-shadow:none;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)}button.mat-mini-fab.mat-accent[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{-webkit-text-stroke:1px #232d4b;color:#fff;text-shadow:-1px -1px 0 #232d4b,1px -1px 0 #232d4b,-1px 1px 0 #232d4b,1px 1px 0 #232d4b}button.mat-mini-fab.mat-accent[_ngcontent-%COMP%] mat-icon.active[_ngcontent-%COMP%]{color:#232d4b;text-shadow:none}"]}),kK);function CK(e,t){if(1&e&&(ds(0,"span",4),Js(1),hs()),2&e){var n=As(2);Oa(1),el(n.subtitle)}}var xK=function(e){return[e]},SK=function(e,t,n,i){return{hover:e,selected:t,inverted:n,"all-caps":i}};function AK(e,t){if(1&e){var n=vs();ds(0,"a",2),ks("mouseenter",function(){return rn(n),As().onMouseOver()})("mouseleave",function(){return rn(n),As().onMouseOut()}),fs(1,"i"),ds(2,"span"),Js(3),os(4,CK,2,1,"span",3),hs(),hs()}if(2&e){var i=As();us("routerLink",Au(10,xK,i.url))("ngClass",Tu(12,SK,i.hover||i.shouldHover,i.selected,i.inverted,i.allCaps)),Oa(1),rl("icofont-circled-right icofont-",i.size,"x details-link-icon"),Oa(1),rl("details-link-text-",i.size,"x"),Oa(1),tl(" ",i.label," "),Oa(1),us("ngIf",i.subtitle)}}function OK(e,t){if(1&e&&(ds(0,"span",4),Js(1),hs()),2&e){var n=As(2);Oa(1),el(n.subtitle)}}function EK(e,t){if(1&e){var n=vs();ds(0,"a",5),ks("mouseenter",function(){return rn(n),As().onMouseOver()})("mouseleave",function(){return rn(n),As().onMouseOut()}),fs(1,"i"),ds(2,"span"),Js(3),os(4,OK,2,1,"span",3),hs(),hs()}if(2&e){var i=As();us("href",i.url,Pr)("ngClass",Tu(10,SK,i.hover||i.shouldHover,i.selected,i.inverted,i.allCaps)),Oa(1),rl("icofont-circled-right icofont-",i.size,"x details-link-icon"),Oa(1),rl("details-link-text-",i.size,"x"),Oa(1),tl(" ",i.label," "),Oa(1),us("ngIf",i.subtitle)}}var TK,PK=((TK=function(){function e(){b(this,e),this.label="Details",this.size=1,this.selected=!1,this.subtitle="",this.inverted=!1,this.allCaps=!0,this.externalLink=!1,this.shouldHover=!1}return w(e,[{key:"ngOnInit",value:function(){}},{key:"onMouseOver",value:function(){void 0===this.hover&&(this.shouldHover=!0)}},{key:"onMouseOut",value:function(){void 0===this.hover&&(this.shouldHover=!1)}}]),e}()).\u0275fac=function(e){return new(e||TK)},TK.\u0275cmp=pt({type:TK,selectors:[["app-details-link"]],inputs:{url:"url",label:"label",size:"size",hover:"hover",selected:"selected",subtitle:"subtitle",inverted:"inverted",allCaps:"allCaps",externalLink:"externalLink"},decls:2,vars:2,consts:[[3,"routerLink","ngClass","mouseenter","mouseleave",4,"ngIf"],["target","_blank",3,"href","ngClass","mouseenter","mouseleave",4,"ngIf"],[3,"routerLink","ngClass","mouseenter","mouseleave"],["class","muted",4,"ngIf"],[1,"muted"],["target","_blank",3,"href","ngClass","mouseenter","mouseleave"]],template:function(e,t){1&e&&(os(0,AK,5,17,"a",0),os(1,EK,5,15,"a",1)),2&e&&(us("ngIf",!t.externalLink),Oa(1),us("ngIf",t.externalLink))},directives:[wh,PX,yh,ly],styles:["a[_ngcontent-%COMP%]{transition:all .5s;text-decoration:none;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center}a[_ngcontent-%COMP%] [class*=details-link-text][_ngcontent-%COMP%]{font:700 1.5rem/1 franklin-gothic-urw,sans-serif;letter-spacing:normal;font-style:italic;color:#232d4b}a[_ngcontent-%COMP%] .details-link-text-1x[_ngcontent-%COMP%]{font-size:1.125rem;margin-left:.5rem}a[_ngcontent-%COMP%] .details-link-text-2x[_ngcontent-%COMP%]{font-size:1.5rem;margin-left:.75rem}a[_ngcontent-%COMP%] [class*=icofont-][_ngcontent-%COMP%]{color:#e57200;transition:all .5s}a[_ngcontent-%COMP%] .details-link-icon[_ngcontent-%COMP%]{-ms-transform:rotate(0deg);transform:rotate(0deg)}a.selected[_ngcontent-%COMP%] .details-link-icon[_ngcontent-%COMP%]{-ms-transform:rotate(90deg);transform:rotate(90deg)}a.hover[_ngcontent-%COMP%]{-ms-transform:translateX(10px);transform:translateX(10px)}a.hover.selected[_ngcontent-%COMP%]{-ms-transform:translateY(10px);transform:translateY(10px)}.muted[_ngcontent-%COMP%]{color:#4e4e4e}.inverted[_ngcontent-%COMP%], .inverted[_ngcontent-%COMP%] [class*=details-link-text][_ngcontent-%COMP%]{color:#fff}.all-caps[_ngcontent-%COMP%] [class*=details-link-text][_ngcontent-%COMP%]{text-transform:uppercase;letter-spacing:.1em}"]}),TK);function DK(e,t){1&e&&fs(0,"i"),2&e&&rl("icofont-search-stock icofont-",As(2).size,"x")}var MK=function(e,t,n){return{"font-size":e,height:t,width:n}};function IK(e,t){if(1&e&&(ds(0,"mat-icon",3),Js(1,"important_devices"),hs()),2&e){var n=As(2);us("ngStyle",Eu(1,MK,n.pxSize,n.pxSize,n.pxSize))}}function RK(e,t){if(1&e&&(ds(0,"mat-icon",3),Js(1,"event_available"),hs()),2&e){var n=As(2);us("ngStyle",Eu(1,MK,n.pxSize,n.pxSize,n.pxSize))}}function LK(e,t){1&e&&fs(0,"i"),2&e&&rl("icofont-ui-map icofont-",As(2).size,"x")}function FK(e,t){if(1&e&&(ps(0),os(1,DK,1,3,"i",1),os(2,IK,2,5,"mat-icon",2),os(3,RK,2,5,"mat-icon",2),os(4,LK,1,3,"i",1),ms()),2&e){var n=As();Oa(1),us("ngIf",n.is(n.iconType,"study")),Oa(1),us("ngIf",n.is(n.iconType,"resource")),Oa(1),us("ngIf",n.is(n.iconType,"event")),Oa(1),us("ngIf",n.is(n.iconType,"location"))}}var NK,VK,BK=((VK=function(){function e(){b(this,e),this.iconTypes=uK.all().map(function(e){return e.name})}return w(e,[{key:"ngOnInit",value:function(){}},{key:"is",value:function(e,t){return e===t}},{key:"pxSize",get:function(){return 16*this.size+"px"}}]),e}()).\u0275fac=function(e){return new(e||VK)},VK.\u0275cmp=pt({type:VK,selectors:[["app-type-icon"]],inputs:{iconType:"iconType",size:"size"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"class",4,"ngIf"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"]],template:function(e,t){1&e&&os(0,FK,5,4,"ng-container",0),2&e&&us("ngIf",t.iconType)},directives:[wh,BR,Rh,Sy],styles:["mat-icon[_ngcontent-%COMP%]{vertical-align:top}"]}),VK),HK=((NK=function(){function e(){b(this,e)}return w(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||NK)},NK.\u0275cmp=pt({type:NK,selectors:[["app-last-updated-date"]],inputs:{lastUpdatedDate:"lastUpdatedDate"},decls:3,vars:4,consts:[[1,"hit-last-updated"]],template:function(e,t){1&e&&(ds(0,"span",0),Js(1),Iu(2,"date"),hs()),2&e&&(is("data-iso-date-string",t.lastUpdatedDate),Oa(1),tl(" Updated ",Ru(2,2,t.lastUpdatedDate)," -\n"))},pipes:[$h],styles:[".hit-last-updated[_ngcontent-%COMP%]{font-style:italic;font-size:1em;color:#666}"]}),NK);function zK(e,t){if(1&e&&(ds(0,"span",1),fs(1,"br"),ds(2,"mat-icon"),Js(3,"event_available"),hs(),Js(4),Iu(5,"date"),hs()),2&e){var n=As();is("data-iso-date-string",n.eventDate),Oa(4),tl(" Event date: ",Ru(5,2,n.eventDate),"\n")}}var GK,jK=((GK=function(){function e(){b(this,e)}return w(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||GK)},GK.\u0275cmp=pt({type:GK,selectors:[["app-event-date"]],inputs:{eventDate:"eventDate"},decls:1,vars:1,consts:[["class","hit-event-date","fxLayoutAlign","start center",4,"ngIf"],["fxLayoutAlign","start center",1,"hit-event-date"]],template:function(e,t){1&e&&os(0,zK,6,4,"span",0),2&e&&us("ngIf",t.eventDate)},directives:[wh,eb,BR],pipes:[$h],styles:[".hit-event-date[_ngcontent-%COMP%]{color:#e57200;font-weight:700}"]}),GK);function UK(e,t){1&e&&(ds(0,"p"),Js(1,"[DRAFT]"),hs())}var WK=function(){return["/search"]},qK=function(e){return{Type:e}};function YK(e,t){if(1&e&&(ds(0,"button",12),fs(1,"app-type-icon",13),hs()),2&e){var n=As(2);Ps("matTooltip",n.hit.label),us("routerLink",Su(6,WK))("queryParams",Au(7,qK,n.hit.label))("disableRipple",!0),Oa(1),us("iconType",n.hit.type.toLowerCase())("size",3)}}function QK(e,t){1&e&&fs(0,"app-type-icon",13),2&e&&us("iconType",As(2).hit.type.toLowerCase())("size",3)}function XK(e,t){if(1&e&&(ps(0),ds(1,"em",14),ds(2,"mat-icon"),Js(3,"timer"),hs(),Js(4),hs(),ms()),2&e){var n=As(2);Oa(1),us("ngClass","status-badge status-"+n.statusKey()),Oa(3),tl(" ",n.hit.status," ")}}function $K(e,t){1&e&&fs(0,"app-event-date",18),2&e&&us("eventDate",As(3).hit.date)}function KK(e,t){if(1&e&&(ds(0,"markdown",15),fs(1,"app-last-updated-date",16),Js(2),os(3,$K,1,1,"app-event-date",17),hs()),2&e){var n=As(2);Oa(1),us("lastUpdatedDate",n.hit.last_updated),Oa(1),tl(" ",n.hit.highlights," "),Oa(1),us("ngIf",n.hit.date)}}function ZK(e,t){1&e&&fs(0,"app-event-date",18),2&e&&us("eventDate",As(3).hit.date)}function JK(e,t){if(1&e&&(ds(0,"p",19),fs(1,"app-last-updated-date",16),ds(2,"markdown"),Js(3),hs(),os(4,ZK,1,1,"app-event-date",17),hs()),2&e){var n=As(2);Oa(1),us("lastUpdatedDate",n.hit.last_updated),Oa(2),el(n.isPastEvent?n.hit.post_event_description:n.hit.description),Oa(1),us("ngIf",n.hit.date)}}var eZ=function(e,t){return[e,t]};function tZ(e,t){if(1&e){var n=vs();ds(0,"div",1),ds(1,"div",2),ds(2,"div",3),os(3,UK,2,0,"p",4),ds(4,"a",5),Js(5),hs(),fs(6,"app-favorite-resource-button",6),hs(),os(7,YK,2,9,"button",7),os(8,QK,1,2,"app-type-icon",8),hs(),os(9,XK,5,2,"ng-container",4),os(10,KK,4,3,"markdown",9),os(11,JK,5,3,"p",10),ds(12,"app-details-link",11),ks("mouseover",function(){return rn(n),As().hover=!0})("mouseout",function(){return rn(n),As().hover=!1}),hs(),hs()}if(2&e){var i=As();Oa(3),us("ngIf",!0===i.hit.is_draft),Oa(1),us("routerLink",Ou(14,eZ,"/"+i.hit.type.toLowerCase(),i.hit.id)),Oa(1),tl(" ",i.hit.title," "),Oa(1),us("resource_id",i.hit.id)("user",i.currentUser),Oa(1),us("ngIf","study"!=i.hit.type),Oa(1),us("ngIf","study"==i.hit.type),Oa(1),us("ngIf",i.hit&&i.hit.status&&i.isEnrolling(i.hit.status)),Oa(1),us("ngIf",i.hit.highlights),Oa(1),us("ngIf",!i.hit.highlights),Oa(1),Ds("label","View ",i.hit.type," Details"),Ps("subtitle",i.mapLoc&&i.hit.hasCoords()?"("+i.hit.milesFrom(i.mapLoc)+"mi)":""),us("url","/"+i.hit.type.toLowerCase()+"/"+i.hit.id)("hover",i.hover)}}var nZ,iZ=((nZ=function(){function e(){b(this,e),this.hover=!1}return w(e,[{key:"isPastEvent",get:function(){return!!(this.hit.date&&new Date(this.hit.date)0),Oa(1),us("ngIf",!t.resourceHits||0===t.resourceHits.length))},directives:[Xy,n_,eb,bh,v_,wh,kP,iZ],styles:[".covid19-resources[_ngcontent-%COMP%]{margin:2em}.category-buttons[_ngcontent-%COMP%]{width:250px}.covid19-hero[_ngcontent-%COMP%]{background:#232d4b;color:#fff;padding:1em;margin-top:0;text-align:center}.covid19-hero[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{color:#fff}.covid19-hero[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border-top-width:4px;margin:1em auto}.covid19-title[_ngcontent-%COMP%]{margin-bottom:0!important}"]}),lZ);function cZ(e,t){1&e&&(ds(0,"div",15),fs(1,"mat-spinner"),hs())}function dZ(e,t){1&e&&(ds(0,"mat-header-cell",16),Js(1," ID "),hs())}function hZ(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.id," ")}}function fZ(e,t){1&e&&(ds(0,"mat-header-cell",16),Js(1," User ID "),hs())}function pZ(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.user_id," ")}}function mZ(e,t){1&e&&(ds(0,"mat-header-cell",16),Js(1," Type "),hs())}function gZ(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.type," ")}}function vZ(e,t){1&e&&(ds(0,"mat-header-cell",16),Js(1," Viewed "),hs())}function yZ(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.viewed," ")}}function _Z(e,t){1&e&&(ds(0,"mat-header-cell",16),Js(1," Date Viewed "),hs())}function bZ(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),Iu(2,"date"),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",Lu(2,1,n.date_viewed,"short")," ")}}function kZ(e,t){1&e&&(ds(0,"mat-header-cell",16),Js(1," Date Sent "),hs())}function wZ(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),Iu(2,"date"),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",Lu(2,1,n.last_updated,"short")," ")}}function CZ(e,t){1&e&&fs(0,"mat-header-row")}function xZ(e,t){1&e&&fs(0,"mat-row")}function SZ(e,t){if(1&e){var n=vs();ds(0,"div",1),os(1,cZ,2,0,"div",2),ds(2,"div"),ds(3,"h1"),Js(4,"Email Log:"),hs(),ds(5,"mat-form-field"),ds(6,"mat-label"),Js(7,"Filter"),hs(),ds(8,"input",3),ks("keyup",function(e){return rn(n),As().applyFilter(e)}),hs(),hs(),ds(9,"mat-table",4),ps(10,5),os(11,dZ,2,0,"mat-header-cell",6),os(12,hZ,2,1,"mat-cell",7),ms(),ps(13,8),os(14,fZ,2,0,"mat-header-cell",6),os(15,pZ,2,1,"mat-cell",7),ms(),ps(16,9),os(17,mZ,2,0,"mat-header-cell",6),os(18,gZ,2,1,"mat-cell",7),ms(),ps(19,10),os(20,vZ,2,0,"mat-header-cell",6),os(21,yZ,2,1,"mat-cell",7),ms(),ps(22,11),os(23,_Z,2,0,"mat-header-cell",6),os(24,bZ,3,4,"mat-cell",7),ms(),ps(25,12),os(26,kZ,2,0,"mat-header-cell",6),os(27,wZ,3,4,"mat-cell",7),ms(),os(28,CZ,1,0,"mat-header-row",13),os(29,xZ,1,0,"mat-row",14),hs(),hs(),hs()}if(2&e){var i=As();Oa(1),us("ngIf",i.loading),Oa(8),us("dataSource",i.dataSource),Oa(19),us("matHeaderRowDef",i.displayedColumns),Oa(1),us("matRowDefColumns",i.displayedColumns)}}var AZ,OZ=((AZ=function(){function e(t,n,i){var r=this;b(this,e),this.api=t,this.route=n,this.authenticationService=i,this.displayedColumns=["id","user_id","type","viewed","date_viewed","last_updated"],this.loading=!0,this.authenticationService.currentUser.subscribe(function(e){return r.currentUser=e})}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.api.getAllEmailLog().subscribe(function(t){e.dataSource=new oH(t),e.dataSource.sort=e.sort,e.loading=!1})}},{key:"applyFilter",value:function(e){this.dataSource.filter=e.target.value.trim().toLowerCase()}}]),e}()).\u0275fac=function(e){return new(e||AZ)(ls(x$),ls(oQ),ls(y$))},AZ.\u0275cmp=pt({type:AZ,selectors:[["app-email-log-admin"]],viewQuery:function(e,t){var n;1&e&&Ku(hV,3),2&e&&$u(n=Ju())&&(t.sort=n.first)},decls:1,vars:1,consts:[["class","email-log-admin",4,"ngIf"],[1,"email-log-admin"],["class","spinner-container",4,"ngIf"],["matInput","",3,"keyup"],["matSort","","matSortActive","id","matSortDirection","asc",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","id"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","user_id"],["matColumnDef","type"],["matColumnDef","viewed"],["matColumnDef","date_viewed"],["matColumnDef","last_updated"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[1,"spinner-container"],["mat-sort-header",""]],template:function(e,t){1&e&&os(0,SZ,30,4,"div",0),2&e&&us("ngIf",t.currentUser&&"admin"==t.currentUser.role)},directives:[wh,wT,hT,vM,BB,hV,WB,jB,zB,KB,JB,pN,YB,yV,XB,tH,iH],pipes:[$h],styles:[".email-log-admin[_ngcontent-%COMP%]{margin:2em}"]}),AZ);function EZ(e,t){if(1&e){var n=vs();ds(0,"div"),ds(1,"p"),Js(2,"You have completed all the questions about your role as a Parent/Guardian. Please click the button below to begin entering information about your children or dependent(s)."),hs(),ds(3,"div",6),ds(4,"button",7),ks("click",function(e){return rn(n),As().enrollDependent(e)}),Js(5,"Create another profile"),hs(),hs(),hs()}}function TZ(e,t){if(1&e){var n=vs();ds(0,"div"),ds(1,"p"),Js(2,"You have completed all the questions about your child or dependent. We will use this information to contact you about upcoming studies and emerging resources that will be of interest based on the details you provided. "),hs(),ds(3,"p"),Js(4,"If you have another dependent, please click the button below to create a profile for them. Otherwise we recommend you check out our list of active studies, or search through the available services and resources."),hs(),ds(5,"div",6),ds(6,"button",8),ks("click",function(e){return rn(n),As().enrollDependent(e)}),Js(7,"Create another profile"),hs(),hs(),hs()}}function PZ(e,t){if(1&e){var n=vs();ds(0,"div"),ds(1,"h2"),Js(2,"Thank you!"),hs(),ds(3,"p"),Js(4,"You have completed all the questions about yourself. We will use this information to contact you about upcoming studies and emerging resources that will be of interest based on the details you provided."),hs(),ds(5,"p"),Js(6,"If you have a son, daughter, or dependent you would like to enroll as well, please click the button below to enter information about them. Otherwise we recommend you check out our list of active studies, or search through the available services and resources."),hs(),ds(7,"div",6),ds(8,"button",9),ks("click",function(e){return rn(n),As().enrollDependent(e)}),Js(9,"Create another profile"),hs(),hs(),hs()}}function DZ(e,t){if(1&e){var n=vs();ds(0,"div"),ds(1,"p"),Js(2,"Thank you for providing us with your information. If you have a son, daughter, or dependent you would like to enroll as well, please click the button below to enter information about them. Otherwise we recommend you check out our list of active studies, or search through the available services and resources."),hs(),ds(3,"div",6),ds(4,"button",10),ks("click",function(e){return rn(n),As().enrollDependent(e)}),Js(5,"Create another profile"),hs(),hs(),hs()}}var MZ,IZ=((MZ=function(){function e(t){b(this,e),this.router=t}return w(e,[{key:"ngOnInit",value:function(){}},{key:"goProfile",value:function(e){e.preventDefault(),this.router.navigate(["profile"])}},{key:"goStudies",value:function(e){e.preventDefault(),this.router.navigate(["studies"])}},{key:"goResources",value:function(e){e.preventDefault(),this.router.navigate(["search"])}},{key:"enrollDependent",value:function(e){e.preventDefault(),this.router.navigate(["terms",p$.DEPENDENT])}}]),e}()).\u0275fac=function(e){return new(e||MZ)(ls(EX))},MZ.\u0275cmp=pt({type:MZ,selectors:[["app-flow-complete"]],inputs:{flow:"flow"},decls:16,vars:4,consts:[[1,"alert","alert-info"],[4,"ngIf"],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutGap","10px","fxLayoutAlign","center center"],["mat-flat-button","","type","button","color","primary","routerLink","/profile"],["mat-flat-button","","type","button","routerLink","/studies"],["mat-flat-button","","type","button","color","accent","routerLink","/search"],["fxLayoutAlign","center center"],["mat-flat-button","","color","primary","id","enroll_first_dependent",3,"click"],["mat-flat-button","","color","primary","id","enroll_another_dependent",3,"click"],["mat-flat-button","","color","primary","id","enroll_self_dependent",3,"click"],["mat-flat-button","","color","primary","id","enroll_professional_dependent",3,"click"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"h1"),Js(2,"Profile complete!"),hs(),os(3,EZ,6,0,"div",1),os(4,TZ,8,0,"div",1),os(5,PZ,10,0,"div",1),os(6,DZ,6,0,"div",1),ds(7,"p"),Js(8,"You can continue to edit any unlocked questionnaires by selecting them from the column on the left."),hs(),ds(9,"div",2),ds(10,"button",3),Js(11,"Return to Profile Page"),hs(),ds(12,"button",4),Js(13,"View Studies"),hs(),ds(14,"button",5),Js(15,"Search Resources"),hs(),hs(),hs()),2&e&&(Oa(3),us("ngIf","guardian_intake"===t.flow.name),Oa(1),us("ngIf","dependent_intake"===t.flow.name),Oa(1),us("ngIf","self_intake"===t.flow.name),Oa(1),us("ngIf","professional_intake"===t.flow.name))},directives:[wh,Xy,n_,eb,kP,TX],styles:["div[_ngcontent-%COMP%]{text-align:left;margin:auto;max-width:600px}"]}),MZ),RZ=function e(t){if(function(e){return e===Object(e)&&!Array.isArray(e)&&"function"!=typeof e}(t)){var n={};return Object.keys(t).forEach(function(i){var r;n[(r=i,r.replace(/([-_][a-z])/gi,function(e){return e.toUpperCase().replace("-","").replace("_","")}))]=e(t[i])}),n}return Array.isArray(t)?t.map(function(t){return e(t)}):t},LZ=function(){var e=function e(){b(this,e)};return e.COMPLETE="COMPLETE",e.INCOMPLETE="INCOMPLETE",e}();function FZ(e,t){if(1&e&&(ds(0,"div",2),Js(1),fs(2,"mat-spinner",3),hs()),2&e){var n=As(2);Oa(1),tl(" ",n.message||""," "),Oa(1),us("diameter",n.diameter)}}function NZ(e,t){if(1&e&&(ds(0,"span"),Js(1),hs()),2&e){var n=As(2);Oa(1),el(n.message||"...")}}function VZ(e,t){if(1&e&&(ps(0),os(1,FZ,3,2,"div",1),os(2,NZ,2,1,"span",0),ms()),2&e){var n=As();Oa(1),us("ngIf",n.showSpinner),Oa(1),us("ngIf",!n.showSpinner)}}function BZ(e,t){1&e&&(ds(0,"mat-form-field"),ds(1,"mat-label"),Js(2,"Loading..."),hs(),ds(3,"mat-select"),ds(4,"mat-option"),Js(5,"..."),hs(),hs(),hs())}var HZ,zZ=((HZ=function(){function e(){b(this,e),this.showSpinner=!0,this.size="lg",this.baseSize=24,this.isField=!1}return w(e,[{key:"diameter",get:function(){switch(this.size){case"xl":return 4*this.baseSize;case"lg":return 3*this.baseSize;case"med":return 2*this.baseSize;case"sm":return this.baseSize;default:return 3*this.baseSize}}},{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||HZ)},HZ.\u0275cmp=pt({type:HZ,selectors:[["app-loading"]],inputs:{showSpinner:"showSpinner",message:"message",size:"size",baseSize:"baseSize",isField:"isField"},decls:2,vars:2,consts:[[4,"ngIf"],["class","loading","fxLayoutAlign","center center",4,"ngIf"],["fxLayoutAlign","center center",1,"loading"],[3,"diameter"]],template:function(e,t){1&e&&(os(0,VZ,3,2,"ng-container",0),os(1,BZ,6,0,"mat-form-field",0)),2&e&&(us("ngIf",!t.isField),Oa(1),us("ngIf",t.isField))},directives:[wh,eb,pN,wT,hT,KL,JA],styles:[""]}),HZ),GZ=function(){return{visible:!0}};function jZ(e,t){1&e&&(ds(0,"mat-icon",8),Js(1,"lock"),hs()),2&e&&us("ngClass",Su(1,GZ))}var UZ=function(){return{hidden:!0}};function WZ(e,t){1&e&&(ds(0,"mat-icon",8),Js(1,"lock"),hs()),2&e&&us("ngClass",Su(1,UZ))}function qZ(e,t){1&e&&(ds(0,"mat-icon",8),Js(1,"done"),hs()),2&e&&us("ngClass",Su(1,GZ))}function YZ(e,t){1&e&&(ds(0,"mat-icon",8),Js(1,"done"),hs()),2&e&&us("ngClass",Su(1,UZ))}var QZ=function(e){return{active:e,"step-link":!0}};function XZ(e,t){if(1&e){var n=vs();ds(0,"mat-nav-list"),ds(1,"mat-list-item",2),ks("click",function(){rn(n);var e=t.$implicit;return As().selectStep(e)}),ds(2,"span",3),os(3,jZ,2,2,"mat-icon",4),os(4,WZ,2,2,"mat-icon",4),hs(),ds(5,"span",5),Js(6),hs(),fs(7,"span",6),ds(8,"span",7),os(9,qZ,2,2,"mat-icon",4),os(10,YZ,2,2,"mat-icon",4),hs(),hs(),hs()}if(2&e){var i=t.$implicit,r=t.index,a=As();Oa(1),us("ngClass",Au(7,QZ,a.stepName===i.name))("id","step_link_"+r),Oa(2),us("ngIf","sensitive"===i.type),Oa(1),us("ngIf","sensitive"!==i.type),Oa(2),el(i.label),Oa(3),us("ngIf","COMPLETE"===i.status),Oa(1),us("ngIf","COMPLETE"!==i.status)}}function $Z(e,t){1&e&&(ds(0,"mat-nav-list"),ds(1,"mat-list-item"),Js(2,"Loading..."),hs(),hs())}var KZ,ZZ=((KZ=function(){function e(t){b(this,e),this.api=t,this.stepSelected=new Vu}return w(e,[{key:"ngOnChanges",value:function(e){this.stepName=this.flow.steps[this.stepIndex].name}},{key:"ngOnInit",value:function(){this.stepName=this.flow.steps[this.stepIndex].name}},{key:"selectStep",value:function(e){this.stepName=e.name,this.stepSelected.emit(e)}}]),e}()).\u0275fac=function(e){return new(e||KZ)(ls(x$))},KZ.\u0275cmp=pt({type:KZ,selectors:[["app-questionnaire-steps-list"]],inputs:{flow:"flow",stepIndex:"stepIndex"},outputs:{stepSelected:"stepSelected"},features:[It],decls:2,vars:2,consts:[[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"ngClass","id","click"],[1,"lock"],[3,"ngClass",4,"ngIf"],[1,"step-link-text"],["fxFlex",""],[1,"done"],[3,"ngClass"]],template:function(e,t){1&e&&(os(0,XZ,11,9,"mat-nav-list",0),os(1,$Z,3,0,"mat-nav-list",1)),2&e&&(us("ngForOf",t.flow.steps),Oa(1),us("ngIf",0===t.flow.steps.length))},directives:[bh,wh,KR,nL,yh,ly,v_,BR],styles:["mat-icon[_ngcontent-%COMP%]{font-size:.8em;margin-right:8px}mat-icon.visible[_ngcontent-%COMP%]{opacity:1}mat-icon.hidden[_ngcontent-%COMP%]{opacity:0}"]}),KZ);function JZ(e,t){1&e&&(ds(0,"div"),ds(1,"h1"),Js(2,"Your Information"),hs(),ds(3,"p"),Js(4,"In the next few minutes you will be completing a series of questions about yourself and your relationship to autism. Please be as thorough as you can. "),hs(),hs())}function eJ(e,t){1&e&&(ds(0,"div"),ds(1,"h1"),Js(2,"Dependent Information"),hs(),ds(3,"p"),Js(4,"In the next few minutes you will be completing a series of questions about your dependent. "),hs(),hs())}function tJ(e,t){1&e&&(ds(0,"div"),ds(1,"h1"),Js(2,"Parent/Guardian Information"),hs(),ds(3,"p"),Js(4,"In the next few minutes you will be completing a short series of questions about yourself. When you are finished, we will ask you to complete a separate set of questions about your dependent(s). "),hs(),hs())}function nJ(e,t){1&e&&(ds(0,"div"),ds(1,"h1"),Js(2,"Professional Details"),hs(),ds(3,"p"),Js(4,"In the next few minutes you will be completing a series of questions about yourself and your relationship to Autism. "),hs(),hs())}var iJ,rJ=function(){return["/profile"]},aJ=((iJ=function(){function e(){b(this,e),this.next=new Vu}return w(e,[{key:"ngOnInit",value:function(){}},{key:"continue",value:function(){this.next.emit()}}]),e}()).\u0275fac=function(e){return new(e||iJ)},iJ.\u0275cmp=pt({type:iJ,selectors:[["app-flow-intro"]],inputs:{flow:"flow"},outputs:{next:"next"},decls:18,vars:6,consts:[[4,"ngIf"],["id","instructions"],[1,"button-row"],["mat-flat-button","","type","button","color","primary","id","next-button",3,"click"],["mat-flat-button","","type","button","id","intro-cancel-button",3,"routerLink"]],template:function(e,t){1&e&&(os(0,JZ,5,0,"div",0),os(1,eJ,5,0,"div",0),os(2,tJ,5,0,"div",0),os(3,nJ,5,0,"div",0),ds(4,"div",1),ds(5,"h2"),Js(6,"Instructions"),hs(),ds(7,"p"),Js(8,"Please complete your profile by clicking the next button below. If you need to change your information at any time, please re-complete the questionnaires (listed on the left) that you'd like to change and your information will be updated. "),hs(),ds(9,"p"),Js(10,' Some of the questionnaires to the left might have "lock" icons because these questionnaires are considered to be asking for sensitive information. To protect your privacy, information you provide on these pages will be immediately saved on a secure server which will only be accessed as needed for study purposes by approved STAR study team members.'),hs(),ds(11,"p"),Js(12,'Click the "Next" button below to get started.'),hs(),ds(13,"div",2),ds(14,"button",3),ks("click",function(){return t.continue()}),Js(15,"Next"),hs(),ds(16,"button",4),Js(17,"Cancel"),hs(),hs(),hs()),2&e&&(us("ngIf","self_intake"===t.flow.name),Oa(1),us("ngIf","dependent_intake"===t.flow.name),Oa(1),us("ngIf","guardian_intake"===t.flow.name),Oa(1),us("ngIf","professional_intake"===t.flow.name),Oa(13),us("routerLink",Su(5,rJ)))},directives:[wh,kP,TX],styles:["div[_ngcontent-%COMP%]{padding:20px}.button-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:8px;margin-top:35px}"]}),iJ);function oJ(e,t){1&e&&fs(0,"app-loading",5)}function sJ(e,t){if(1&e&&(ps(0),Js(1),ms()),2&e){var n=As(3);Oa(1),tl("",n.participant.name,"'s Profile")}}function lJ(e,t){if(1&e&&(ps(0),Js(1),ms()),2&e){var n=As(3);Oa(1),tl("",n.user.isSelf(n.participant)?"Your":"Your dependent's"," Profile")}}function uJ(e,t){if(1&e){var n=vs();ds(0,"div"),ds(1,"div",6),ds(2,"button",7),ks("click",function(){return rn(n),As(2).toggleSidenav()}),ds(3,"mat-icon"),Js(4,"toc"),hs(),hs(),ds(5,"h1",8),os(6,sJ,2,1,"ng-container",3),os(7,lJ,2,1,"ng-container",3),hs(),fs(8,"span",9),ds(9,"div",10),ds(10,"span",11),Js(11),hs(),Js(12," of "),ds(13,"span",12),Js(14),hs(),Js(15," steps complete "),hs(),hs(),hs()}if(2&e){var i=As(2);Oa(6),us("ngIf",i.participant&&i.participant.name),Oa(1),us("ngIf",!(i.participant&&i.participant.name)),Oa(4),el(i.numCompletedSteps()),Oa(3),el(i.numTotalSteps())}}function cJ(e,t){1&e&&fs(0,"mat-progress-bar",13),2&e&&us("value",As(2).flow.percentComplete())}function dJ(e,t){1&e&&fs(0,"app-flow-complete",20),2&e&&us("flow",As(3).flow)}function hJ(e,t){if(1&e){var n=vs();ds(0,"app-flow-intro",21),ks("next",function(){return rn(n),As(3).goToNextAvailableStep()}),hs()}2&e&&us("flow",As(3).flow)}function fJ(e,t){1&e&&(ds(0,"p",27),Js(1,"In order to protect certain sensitive information about you, this information is no longer accessible via this web site. If you feel that this information should be updated, you may choose to re-complete this form and re-submit it."),hs())}function pJ(e,t){if(1&e){var n=vs();ds(0,"button",28),ks("click",function(){return rn(n),As(5).hideForm=!1}),Js(1),hs()}if(2&e){var i=As(5);Oa(1),tl("Show ",i.currentStep().label," Form ")}}function mJ(e,t){if(1&e&&(ds(0,"div"),os(1,fJ,2,0,"p",25),os(2,pJ,2,1,"button",26),hs()),2&e){var n=As(4);Oa(1),us("ngIf",n.hideForm),Oa(1),us("ngIf",n.hideForm)}}function gJ(e,t){1&e&&(ds(0,"p",27),Js(1,"You are about to re-submit this form. While this will not replace previous records, we will defer to the information you submit now when considering your eligibility to future studies and notifications."),hs())}function vJ(e,t){1&e&&(ds(0,"p",27),Js(1,"This information is considered sensitive and to protect your privacy is saved on a secure server which will only be accessed as needed by approved STAR study team members for study purposes. You can provide this information again in full at any time if you need to edit what is currently stored on the secure server, which is not accessible by this site."),hs())}var yJ=function(e){return{disabled:e}};function _J(e,t){if(1&e){var n=vs();ds(0,"button",33),ks("click",function(){rn(n);var e=As(5);return e.form.valid?e.submit():e.highlightRequiredFields()}),Js(1,"Save & Next "),hs()}if(2&e){var i=As(5);us("ngClass",Au(1,yJ,!i.form.valid))}}var bJ=function(){return["/profile"]};function kJ(e,t){1&e&&(ds(0,"button",34),Js(1,"Cancel "),hs()),2&e&&us("routerLink",Su(1,bJ))}function wJ(e,t){if(1&e&&(ds(0,"div"),fs(1,"formly-form",29),os(2,gJ,2,0,"p",25),os(3,vJ,2,0,"p",25),ds(4,"div",30),os(5,_J,2,3,"button",31),os(6,kJ,2,2,"button",32),hs(),hs()),2&e){var n=As(4);Oa(1),us("form",n.form)("model",n.model)("fields",n.fields)("options",n.options),Oa(1),us("ngIf",n.showResubmitMessage),Oa(1),us("ngIf","sensitive"===n.currentStep().type),Oa(2),us("ngIf",n.form),Oa(1),us("ngIf",n.form)}}function CJ(e,t){if(1&e){var n=vs();ds(0,"form",22),ds(1,"div",23),ds(2,"h1"),Js(3),hs(),fs(4,"span",9),ds(5,"button",24),ks("click",function(){return rn(n),As(3).highlightRequiredFields()}),Js(6,"*Required"),hs(),hs(),ds(7,"p"),Js(8),hs(),os(9,mJ,3,2,"div",3),os(10,wJ,7,8,"div",3),hs()}if(2&e){var i=As(3);us("formGroup",i.form),Oa(3),el(i.currentStep().label),Oa(5),el(i.currentStep().description),Oa(1),us("ngIf",i.showResubmitMessage),Oa(1),us("ngIf",!i.hideForm)}}function xJ(e,t){if(1&e){var n=vs();ds(0,"div"),ds(1,"mat-drawer-container"),ds(2,"mat-drawer",14,15),ks("openedChange",function(e){return rn(n),As(2).sidebarOpen=e}),ds(4,"app-questionnaire-steps-list",16),ks("stepSelected",function(e){return rn(n),As(2).goToStep(e)}),hs(),hs(),ds(5,"mat-drawer-content"),os(6,dJ,1,1,"app-flow-complete",17),os(7,hJ,1,1,"app-flow-intro",18),os(8,CJ,11,5,"form",19),hs(),hs(),hs()}if(2&e){var i=As(2);Oa(2),us("mode",i.mobileQuery.matches?"over":"side")("opened",i.sidebarOpen),Oa(2),us("flow",i.flow)("stepIndex",i.activeStep),Oa(2),us("ngIf",i.state===i.flowState.COMPLETE),Oa(1),us("ngIf",i.state===i.flowState.INTRO),Oa(1),us("ngIf",i.state===i.flowState.SHOW_FORM)}}function SJ(e,t){if(1&e&&(ds(0,"div",1),ds(1,"div"),os(2,oJ,1,0,"app-loading",2),os(3,uJ,16,4,"div",3),os(4,cJ,1,1,"mat-progress-bar",4),os(5,xJ,9,7,"div",3),hs(),hs()),2&e){var n=As();Oa(2),us("ngIf",n.state===n.flowState.LOADING),Oa(1),us("ngIf",n.state!==n.flowState.LOADING),Oa(1),us("ngIf",n.flow.percentComplete()<100),Oa(1),us("ngIf",n.state!==n.flowState.LOADING)}}var AJ,OJ,EJ=function(e){return e.INTRO="intro",e.LOADING="loading",e.COMPLETE="complete",e.SHOW_FORM="form",e}({}),TJ=((AJ=function(){function e(t,n,i,r,a,o,s,l){var u=this;b(this,e),this.api=n,this.authenticationService=i,this.changeDetectorRef=r,this.deviceDetectorService=a,this.googleAnalyticsService=o,this.route=s,this.router=l,this.activeStep=0,this.flowState=EJ,this.state=EJ.LOADING,this.showResubmitMessage=!1,this.hideForm=!1,this.sidebarOpen=!0,this.model={},this.fields=[],this.mobileQuery=t.matchMedia("(max-width: 959px)"),this.mobileQuery.addListener(this._mobileQueryListener),this._mobileQueryListener=function(){return u._updateSidenavState()},window.addEventListener("resize",this._mobileQueryListener),this.authenticationService.currentUser.subscribe(function(e){u.user=e,u.route.params.subscribe(function(e){u.participant=u.user.getParticipantById(parseInt(e.participantId,10)),u.loadFlow(e.flowName)})})}return w(e,[{key:"sidenav",set:function(e){this.sidenavElement=e,this._updateSidenavState()}},{key:"ngOnInit",value:function(){}},{key:"ngOnDestroy",value:function(){this.mobileQuery.removeListener(this._mobileQueryListener),window.removeEventListener("resize",this._mobileQueryListener)}},{key:"loadFlow",value:function(e){var t=this;this.api.getFlow(e,this.participant.id).subscribe(function(e){t.flow=new w$(e),0===t.flow.percentComplete()?t.state=t.flowState.INTRO:t.goToNextAvailableStep(),bq(t.deviceDetectorService)})}},{key:"updateParticipant",value:function(e){var t=this;this.api.getParticipant(e).subscribe(function(e){t.participant=e})}},{key:"goToNextAvailableStep",value:function(){if(this.updateParticipant(this.participant.id),this.flow.percentComplete()<100){var e=this.activeStep;if(this.flow.steps[this.activeStep].status===LZ.COMPLETE)for(e++;e!==this.activeStep;){if(this.flow.steps[e]&&this.flow.steps[e].status!==LZ.COMPLETE){this.activeStep=e;break}e>=this.flow.steps.length-1?e=0:e++}this.loadActiveStep()}else this.state=EJ.COMPLETE,this.googleAnalyticsService.flowCompleteEvent(this.flow.name),bq(this.deviceDetectorService)}},{key:"goToStep",value:function(e){this.updateParticipant(this.participant.id);for(var t=0;t0?(e.showResubmitMessage=!0,e.hideForm=!0,e.renderForm(t,n)):t.questionnaire_id>0?e.api.getQuestionnaire(t.name,t.questionnaire_id).subscribe(function(i){e.model=i,e.renderForm(t,n)}):e.renderForm(t,n),bq(e.deviceDetectorService)}),bq(this.deviceDetectorService)}},{key:"highlightRequiredFields",value:function(){for(var e=0,t=Object.keys(this.form.controls);e0&&"sensitive"!==this.currentStep().type?this.api.updateQuestionnaire(this.currentStep().name,this.currentStep().questionnaire_id,this.model).subscribe(function(){e.googleAnalyticsService.stepCompleteEvent(e.currentStep().name),e.loadFlow(e.flow.name),bq(e.deviceDetectorService)}):this.api.submitQuestionnaire(this.flow.name,this.currentStep().name,this.model).subscribe(function(){e.googleAnalyticsService.stepCompleteEvent(e.currentStep().name),e.loadFlow(e.flow.name),bq(e.deviceDetectorService)})}},{key:"numCompletedSteps",value:function(){return this.flow.steps.filter(function(e){return e.status===LZ.COMPLETE}).length}},{key:"numTotalSteps",value:function(){return this.flow.steps.length}},{key:"toggleSidenav",value:function(){var e=this;this.sidebarOpen=!this.sidebarOpen,this.sidenavElement.toggle(this.sidebarOpen,"mouse").then(function(){bq(e.deviceDetectorService)})}},{key:"renderForm",value:function(e,t){this.startTime=performance.now(),this.fields=this.infoToForm(t),this.form=new Pk({}),this.options={formState:{mainModel:this.model,preferredName:this.participant.name}},this.state=this.flowState.SHOW_FORM,bq(this.deviceDetectorService)}},{key:"infoToForm",value:function(e){var t,n=[],i=s(e.fields);try{for(i.s();!(t=i.n()).done;){var r=t.value;r.fieldArray&&(r.fieldArray.model=this.model[r.name]),n.push(RZ(r))}}catch(a){i.e(a)}finally{i.f()}return n.sort(function(e,t){return e.displayOrder-t.displayOrder}),n}},{key:"_updateSidenavState",value:function(){this.sidenavElement&&(this.mobileQuery.matches?(this.sidenavElement.close(),this.sidebarOpen=!1):(this.sidenavElement.open(),this.sidenavElement.disableClose=!0,this.sidebarOpen=!0)),this.changeDetectorRef.detectChanges()}}]),e}()).\u0275fac=function(e){return new(e||AJ)(ls(cF),ls(x$),ls(y$),ls(Jl),ls(EW),ls(h$),ls(oQ),ls(EX))},AJ.\u0275cmp=pt({type:AJ,selectors:[["app-flow"]],viewQuery:function(e,t){var n;1&e&&Ku(XN,1),2&e&&$u(n=Ju())&&(t.sidenav=n.first)},decls:1,vars:1,consts:[["class","profile mat-typography",4,"ngIf"],[1,"profile","mat-typography"],["message","Loading...",4,"ngIf"],[4,"ngIf"],["mode","determinate",3,"value",4,"ngIf"],["message","Loading..."],["fxLayout","row","fxLayoutGap","10px","fxLayoutAlign","start center"],["mat-icon-button","","fxHide.gt-sm","",3,"click"],[1,"margin-bottom-none"],["fxFlex",""],["fxFlexAlign","end center",1,"mat-small"],["id","num_completed_steps"],["id","num_total_steps"],["mode","determinate",3,"value"],[3,"mode","opened","openedChange"],["sidenav",""],[3,"flow","stepIndex","stepSelected"],[3,"flow",4,"ngIf"],[3,"flow","next",4,"ngIf"],["class","pad-2",3,"formGroup",4,"ngIf"],[3,"flow"],[3,"flow","next"],[1,"pad-2",3,"formGroup"],["fxLayout","row","fxLayout.lt-md","column"],["mat-button","","id","highlight-required-fields","color","warn",3,"click"],["class","alert alert-warn",4,"ngIf"],["mat-flat-button","","type","button","color","primary",3,"click",4,"ngIf"],[1,"alert","alert-warn"],["mat-flat-button","","type","button","color","primary",3,"click"],[3,"form","model","fields","options"],[1,"button-row"],["mat-flat-button","","type","button","color","primary","id","save-next-button",3,"ngClass","click",4,"ngIf"],["mat-flat-button","","type","button","id","flow-cancel-button",3,"routerLink",4,"ngIf"],["mat-flat-button","","type","button","color","primary","id","save-next-button",3,"ngClass","click"],["mat-flat-button","","type","button","id","flow-cancel-button",3,"routerLink"]],template:function(e,t){1&e&&os(0,SJ,6,4,"div",0),2&e&&us("ngIf",t.user&&t.flow)},directives:[wh,zZ,Xy,n_,eb,kP,my,BR,v_,U_,QF,$N,XN,ZZ,QN,IZ,aJ,Vk,Jb,qk,yj,yh,ly,TX],styles:[".profile[_ngcontent-%COMP%]{margin:2%}.button-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:8px;margin-top:35px}mat-drawer-container[_ngcontent-%COMP%]{min-height:100vh}mat-drawer-container[_ngcontent-%COMP%], mat-drawer-content[_ngcontent-%COMP%]{background-color:#fff}h1[_ngcontent-%COMP%]{position:relative}h1[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{position:absolute;right:0;color:#232d4b}@media (max-width:767px){h1[_ngcontent-%COMP%]{font-size:1.25em}}@media (min-width:768px){h1[_ngcontent-%COMP%]{font-size:2em}}@media (min-width:960px){h1[_ngcontent-%COMP%]{font-size:2.5em}} mat-progress-bar{height:16px;margin-bottom:1em} mat-progress-bar .mat-progress-bar-buffer{background-color:#dadada} mat-progress-bar .mat-progress-bar-background, mat-progress-bar .mat-progress-bar-background pattern{fill:#dadada}#highlight-required-fields[_ngcontent-%COMP%]{text-align:right}"]}),AJ),PJ=function(){return["/home"]},DJ=((OJ=function(){function e(){b(this,e)}return w(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||OJ)},OJ.\u0275cmp=pt({type:OJ,selectors:[["app-logo"]],inputs:{variant:"variant"},decls:5,vars:5,consts:[["id","logo"],[3,"routerLink"],[1,"variant"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"a",1),ds(2,"span",2),Js(3,"Autism"),hs(),Js(4,"DRIVE "),hs(),hs()),2&e&&(zs(t.variant),Oa(1),us("routerLink",Su(4,PJ)))},directives:[PX],styles:["#logo[_ngcontent-%COMP%]{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}#logo.dark-lg[_ngcontent-%COMP%] .variant[_ngcontent-%COMP%], #logo.dark[_ngcontent-%COMP%] .variant[_ngcontent-%COMP%]{color:#232d4b;font-weight:700}#logo.light-lg[_ngcontent-%COMP%] .variant[_ngcontent-%COMP%], #logo.light[_ngcontent-%COMP%] .variant[_ngcontent-%COMP%]{color:#fff;font-weight:700}#logo[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#e57200}#logo.dark-lg[_ngcontent-%COMP%] a[_ngcontent-%COMP%], #logo.light-lg[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font:800 2.25rem/1 franklin-gothic-urw,serif;letter-spacing:normal;font-family:franklin-gothic-urw,serif;text-transform:uppercase;margin-top:4rem;margin-bottom:4rem;font-weight:lighter;font-size:2.5rem}@media (min-width:959px){#logo.dark-lg[_ngcontent-%COMP%] a[_ngcontent-%COMP%], #logo.light-lg[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:3rem}}@media (min-width:960px){#logo.dark-lg[_ngcontent-%COMP%] a[_ngcontent-%COMP%], #logo.light-lg[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:3.5rem}}@media (min-width:1280px){#logo.dark-lg[_ngcontent-%COMP%] a[_ngcontent-%COMP%], #logo.light-lg[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:4rem}}#logo.dark-lg[_ngcontent-%COMP%] img[_ngcontent-%COMP%], #logo.light-lg[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{min-width:120px;max-width:600px;min-height:120px;max-height:240px;width:100%;margin-top:1em;margin-bottom:1em;margin-right:1em}#logo.dark[_ngcontent-%COMP%] a[_ngcontent-%COMP%], #logo.light[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font:800 1.75rem/1 franklin-gothic-urw,serif;letter-spacing:normal;font-family:franklin-gothic-urw,serif;text-transform:uppercase;font-weight:lighter;font-size:2rem}#logo.dark[_ngcontent-%COMP%] img[_ngcontent-%COMP%], #logo.light[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{min-width:40px;max-width:200px;min-height:40px;max-height:80px;width:auto;margin-top:1em;margin-bottom:1em;margin-right:1em}"]}),OJ);function MJ(e,t){if(1&e&&(ds(0,"div",13),Js(1),hs()),2&e){var n=As(2);Oa(1),el(n.errorMessage)}}function IJ(e,t){if(1&e){var n=vs();ds(0,"footer",8),os(1,MJ,2,1,"div",9),ds(2,"button",10),Js(3,"Submit"),hs(),ds(4,"button",11),ks("click",function(e){return rn(n),As().goHome(e)}),Js(5,"Cancel"),hs(),ds(6,"button",12),ks("click",function(e){return rn(n),As().goRegister(e)}),Js(7,"Register for an account"),hs(),hs()}if(2&e){var i=As();Oa(1),us("ngIf",i.errorMessage)}}function RJ(e,t){1&e&&(ds(0,"footer"),fs(1,"app-loading"),hs())}function LJ(e,t){if(1&e){var n=vs();ds(0,"footer",14),ds(1,"p"),Js(2,"You should receive a message in a few minutes with a link that will let you reset your password."),hs(),ds(3,"button",15),ks("click",function(e){return rn(n),As().goHome(e)}),Js(4,"Continue"),hs(),hs()}}var FJ,NJ=((FJ=function(){function e(t,n,i){b(this,e),this.api=t,this.changeDetectorRef=n,this.router=i,this.formStatus="form",this.form=new Pk({}),this.model={},this.fields=[{key:"email",type:"input",templateOptions:{type:"email",label:"Email Address:",placeholder:"Enter email",required:!0}}]}return w(e,[{key:"ngOnInit",value:function(){}},{key:"submit",value:function(){var e=this;localStorage.removeItem("token_url"),this.form.valid&&(this.formStatus="submitting",this.api.sendResetPasswordEmail(this.model.email).subscribe(function(t){t&&localStorage.setItem("token_url",t),e.formStatus="complete"},function(t){e.errorMessage=t||"We encountered an error resetting your password. Please contact support.",e.formStatus="form",e.changeDetectorRef.detectChanges()}))}},{key:"goHome",value:function(e){e.preventDefault(),this.router.navigate(["home"])}},{key:"goRegister",value:function(e){e.preventDefault(),this.router.navigate(["register"])}}]),e}()).\u0275fac=function(e){return new(e||FJ)(ls(x$),ls(Jl),ls(EX))},FJ.\u0275cmp=pt({type:FJ,selectors:[["app-forgot-password"]],decls:12,vars:7,consts:[["fxLayout","row","fxLayoutWrap","","fxLayoutGap","10px","fxLayoutAlign","center center",1,"container","mat-typography"],["fxFlex","50%","fxFlex.xs","90%",1,"form"],["variant","dark-lg"],[3,"formGroup","ngSubmit"],[3,"form","fields","model"],["fxLayout","column","fxLayoutGap","2%","fxLayoutAlign","center",4,"ngIf"],[4,"ngIf"],["id","confirmation_message",4,"ngIf"],["fxLayout","column","fxLayoutGap","2%","fxLayoutAlign","center"],["id","error_message","class","display mat-error",4,"ngIf"],["mat-flat-button","","type","submit","color","primary","id","submit"],["mat-flat-button","","color","accent","id","cancel",3,"click"],["mat-button","","id","register",3,"click"],["id","error_message",1,"display","mat-error"],["id","confirmation_message"],["mat-flat-button","","color","accent","id","continue",3,"click"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"div",1),fs(2,"app-logo",2),ds(3,"h1"),Js(4,"Forgot your password?"),hs(),ds(5,"p"),Js(6,"To reset your password, please enter the email address associated with your Autism DRIVE account."),hs(),ds(7,"form",3),ks("ngSubmit",function(){return t.submit()}),ds(8,"formly-form",4),os(9,IJ,8,1,"footer",5),os(10,RJ,2,0,"footer",6),os(11,LJ,5,0,"footer",7),hs(),hs(),hs(),hs()),2&e&&(Oa(7),us("formGroup",t.form),Oa(1),us("form",t.form)("fields",t.fields)("model",t.model),Oa(1),us("ngIf","form"===t.formStatus),Oa(1),us("ngIf","submitting"===t.formStatus),Oa(1),us("ngIf","complete"===t.formStatus))},directives:[Xy,n_,eb,v_,DJ,Vk,Jb,qk,yj,wh,kP,zZ],styles:[".container[_ngcontent-%COMP%]{min-height:100vh}.form[_ngcontent-%COMP%]{border:2px solid #4e4e4e;padding:2%;text-align:center}"]}),FJ);function VJ(e,t){if(1&e&&fs(0,"app-type-icon",6),2&e){var n=As();us("iconType",n.iconType)("size",n.iconSize)}}function BJ(e,t){if(1&e&&(ds(0,"div"),Js(1),hs()),2&e){var n=As();rl("border-box-tile-label border-box-tile-label-",n.linkSize,"x"),Oa(1),el(n.title)}}function HJ(e,t){if(1&e&&(ds(0,"p",7),Js(1),hs()),2&e){var n=As();Oa(1),el(n.subtitle)}}var zJ,GJ,jJ=function(e,t,n){return{"border-box-tile-inner":!0,selected:e,deselected:t,hover:n}},UJ=((zJ=function(){function e(){b(this,e),this.iconSize=1,this.linkSize=1,this.hover=!1}return w(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||zJ)},zJ.\u0275cmp=pt({type:zJ,selectors:[["app-border-box-tile"]],inputs:{iconType:"iconType",isSelected:"isSelected",url:"url",iconSize:"iconSize",title:"title",subtitle:"subtitle",linkLabel:"linkLabel",linkSize:"linkSize"},decls:6,vars:17,consts:[[3,"mouseover","mouseout"],[3,"ngClass"],[3,"iconType","size",4,"ngIf"],[3,"class",4,"ngIf"],["class","intro",4,"ngIf"],[3,"url","label","size","hover","selected"],[3,"iconType","size"],[1,"intro"]],template:function(e,t){var n,i;1&e&&(ds(0,"div",0),ks("mouseover",function(){return t.hover=!0})("mouseout",function(){return t.hover=!1}),ds(1,"div",1),os(2,VJ,1,2,"app-type-icon",2),os(3,BJ,2,4,"div",3),os(4,HJ,2,1,"p",4),fs(5,"app-details-link",5),hs(),hs()),2&e&&(n=t.linkSize,i=t.iconType,Us(Ei,Gs,as(tn(),"border-box-tile border-box-tile-",n,"x ",i,""),!0),Oa(1),us("ngClass",Eu(13,jJ,!0===t.isSelected,!1===t.isSelected,t.hover)),Oa(1),us("ngIf",t.iconType),Oa(1),us("ngIf",t.title),Oa(1),us("ngIf",t.subtitle),Oa(1),us("url",t.url)("label",t.linkLabel)("size",t.linkSize)("hover",t.hover)("selected",t.isSelected))},directives:[yh,ly,wh,PK,BK],styles:['.border-box-tile[_ngcontent-%COMP%]{display:grid;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;position:relative;padding:0;margin:0;background-color:hsla(0,0%,100%,.8);text-align:center;color:#232d4b}.border-box-tile.border-box-tile-1x[_ngcontent-%COMP%]{height:226px}.border-box-tile.border-box-tile-2x[_ngcontent-%COMP%]{height:288px}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner.hover[_ngcontent-%COMP%]:before{opacity:0}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner.hover[_ngcontent-%COMP%]:after{opacity:1}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner[_ngcontent-%COMP%]:after, .border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner[_ngcontent-%COMP%]:before{content:"";pointer-events:none;transition:opacity .5s;position:absolute;width:100%;height:100%;top:0;left:0;right:0;bottom:0;margin:0}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner[_ngcontent-%COMP%]:before{border:11px solid #dadada;-o-border-image:linear-gradient(180deg,#dadada 0,#f1f1ef);border-image:linear-gradient(180deg,#dadada 0,#f1f1ef);border-image-slice:1;opacity:1}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner[_ngcontent-%COMP%]:after{border:11px solid #002f6c;-o-border-image:linear-gradient(#232d4b,#e57200);border-image:linear-gradient(#232d4b,#e57200);border-image-slice:1;opacity:0}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner.deselected[_ngcontent-%COMP%]:after{opacity:0}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner.deselected[_ngcontent-%COMP%]:before, .border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner.selected[_ngcontent-%COMP%]:after{opacity:1}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner.selected[_ngcontent-%COMP%]:before{opacity:0}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner[_ngcontent-%COMP%] p.intro[_ngcontent-%COMP%]{padding:0 20px;color:#4e4e4e;font-weight:700}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner[_ngcontent-%COMP%] .border-box-tile-label.border-box-tile-label-1x[_ngcontent-%COMP%]{font:700 1.5rem/1 franklin-gothic-urw,sans-serif;letter-spacing:normal;margin-top:1em;margin-bottom:1em;font-style:italic;text-transform:uppercase;letter-spacing:1.8px}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner[_ngcontent-%COMP%] .border-box-tile-label.border-box-tile-label-2x[_ngcontent-%COMP%]{font:800 1.75rem/1 franklin-gothic-urw,serif;letter-spacing:normal;margin-top:1em;margin-bottom:1em;font-style:italic;text-transform:uppercase}@media (max-width:1023px){.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner[_ngcontent-%COMP%]{padding:1em}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner[_ngcontent-%COMP%] .border-box-tile-label.border-box-tile-label-1x[_ngcontent-%COMP%]{font-size:1em}.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner[_ngcontent-%COMP%] .border-box-tile-label.border-box-tile-label-2x[_ngcontent-%COMP%]{font-size:2em}}@media (min-width:1024px){.border-box-tile[_ngcontent-%COMP%] .border-box-tile-inner[_ngcontent-%COMP%]{padding:2.4375rem}}']}),zJ),WJ=function(e,t){return{"news-item":!0,even:e,odd:t}},qJ=function(e){return[e]},YJ=((GJ=function(){function e(){b(this,e)}return w(e,[{key:"ngOnInit",value:function(){this.item.label||(this.item.label="Details")}},{key:"isEven",value:function(e){return e%2==0}}]),e}()).\u0275fac=function(e){return new(e||GJ)},GJ.\u0275cmp=pt({type:GJ,selectors:[["app-news-item"]],inputs:{item:"item",index:"index"},decls:12,vars:16,consts:[[3,"ngClass"],[1,"image"],[3,"routerLink"],[3,"src"],[1,"content"],[1,"item-type"],[1,"item-title",3,"routerLink"],[3,"url","label"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"div",1),ds(2,"a",2),fs(3,"img",3),hs(),hs(),ds(4,"div",4),ds(5,"span",5),Js(6),hs(),ds(7,"a",6),Js(8),hs(),ds(9,"p"),Js(10),hs(),fs(11,"app-details-link",7),hs(),hs()),2&e&&(us("ngClass",Ou(9,WJ,t.isEven(t.index),!t.isEven(t.index))),Oa(2),us("routerLink",Au(12,qJ,t.item.url)),Oa(1),Ps("src",t.item.img,Pr),Oa(3),el(t.item.type.label),Oa(1),us("routerLink",Au(14,qJ,t.item.url)),Oa(1),el(t.item.title),Oa(2),el(t.item.description),Oa(1),us("url",t.item.url)("label",t.item.label))},directives:[yh,ly,PX,PK],styles:['.news-item[_ngcontent-%COMP%]{display:grid;position:relative}@media screen and (max-width:767px){.news-item[_ngcontent-%COMP%]{grid-template-columns:1fr}}@media screen and (min-width:768px){.news-item[_ngcontent-%COMP%]{grid-template-areas:"leftCol rightCol";grid-template-columns:1fr 1fr}}.news-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{display:grid;-ms-flex-line-pack:center;align-content:center}@media screen and (max-width:767px){.news-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{text-align:center;padding:2em}}@media screen and (min-width:768px){.news-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{padding:4em}}.news-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-image:url(/assets/theme/starburst.svg);background-position:top;background-repeat:no-repeat;background-size:contain;opacity:.1;z-index:-1}.news-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .item-type[_ngcontent-%COMP%]{text-transform:uppercase}.news-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .item-title[_ngcontent-%COMP%]{font:500 1.625rem/1 franklin-gothic-urw,serif;letter-spacing:normal;font-style:italic;color:#232d4b;cursor:pointer;margin-top:.75rem}.news-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .item-title[_ngcontent-%COMP%]:after{content:"";background-color:#e57200;width:6.25rem;height:.125rem;display:block}@media screen and (max-width:767px){.news-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .item-title[_ngcontent-%COMP%]:after{margin-left:auto;margin-right:auto}}@media screen and (min-width:768px){.news-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .item-title[_ngcontent-%COMP%]:after{margin:.45em 0}}.news-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-style:italic;font-size:1.125rem;line-height:1.666}.news-item[_ngcontent-%COMP%] .image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}@media screen and (min-width:768px){.news-item.even[_ngcontent-%COMP%] .image[_ngcontent-%COMP%]{grid-area:leftCol}}@media screen and (min-width:768px){.news-item.even[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{grid-area:rightCol}}.news-item.even[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]:before{left:-50%}@media screen and (min-width:768px){.news-item.odd[_ngcontent-%COMP%] .image[_ngcontent-%COMP%]{grid-area:rightCol}}@media screen and (min-width:768px){.news-item.odd[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{grid-area:leftCol}}.news-item.odd[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]:before{right:-50%}']}),GJ);function QJ(e,t){if(1&e&&fs(0,"app-news-item",20),2&e){var n=t.index;us("item",t.$implicit)("index",n)}}var XJ,$J=((XJ=function(){function e(t,n,i,r){var a=this;b(this,e),this.api=t,this.router=n,this.configService=i,this.meta=r,this.api.getStudiesByStatus("currently_enrolling").subscribe(function(e){a.currentStudies=e,a.newsItems=a._studiesToNewsItems(e)}),this.configService.mirroring&&n.navigate(["mirrored"]),this.meta.updateTag({property:"og:image",content:location.origin+"/assets/home/hero-family.jpg"},"property='og:image'"),this.meta.updateTag({property:"og:image:secure_url",content:location.origin+"/assets/home/hero-family.jpg"},"property='og:image:secure_url'"),this.meta.updateTag({name:"twitter:image",content:location.origin+"/assets/home/hero-family.jpg"},"name='twitter:image'")}return w(e,[{key:"ngOnInit",value:function(){}},{key:"_studiesToNewsItems",value:function(e){if(this.currentStudies&&this.currentStudies.length>0)return e.map(function(e,t){return{title:e.short_title||e.title,description:e.short_description||e.description,url:"/study/".concat(e.id),type:uK.STUDY,img:e.image_url,imgClass:"center-center"}})}}]),e}()).\u0275fac=function(e){return new(e||XJ)(ls(x$),ls(EX),ls(d$),ls(Yf))},XJ.\u0275cmp=pt({type:XJ,selectors:[["app-home"]],decls:30,vars:2,consts:[["id","hero",1,"gradient-overlay","container","with-escaping-tiles"],[1,"hero-content"],[1,"h4"],["fxLayout.lt-sm","column","fxLayout.gt-xs","row wrap","fxLayoutGap","40px","fxLayoutAlign","center auto",1,"row","escaping-tiles-2x"],["fxFlex.gt-sm","calc(33% - 160px)","fxFlex.sm","calc(50% - 120px)","url","/register","title","Join Autism DRIVE","subtitle","Connect to upcoming studies at UVA and resources across the state relevant to you.","linkSize","2","routerLink","/register"],["fxFlex.gt-sm","calc(33% - 160px)","fxFlex.sm","calc(50% - 120px)","url","/search","title","Find Resources","subtitle","Access autism-focused resources available in Virginia and online.","linkSize","2","routerLink","/search"],[1,"container","mat-typography"],["fxLayout","column","fxLayoutAlign","center center",1,"row"],[1,"intro"],[1,"jumbo-section"],[1,"jumbo-section-header"],["role","presentation",1,"watermark"],[1,"line-1"],["fxShow","","fxHide.gt-sm",""],[1,"line-2"],[1,"container"],[1,"row"],[3,"item","index",4,"ngFor","ngForOf"],[1,"more-studies"],["label","View more studies","size","2",3,"url"],[3,"item","index"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"div",1),ds(2,"h1"),Js(3,"Transform Outcomes. Together."),hs(),fs(4,"hr"),ds(5,"p",2),Js(6," We're bringing together researchers, professionals, and community organizations to improve the lives of individuals with autism and their families. Autism DRIVE gives you access to ground-breaking autism research and innovative models for care, support, and education. "),hs(),hs(),ds(7,"div",3),fs(8,"app-border-box-tile",4),fs(9,"app-border-box-tile",5),hs(),hs(),ds(10,"div",6),ds(11,"div",7),ds(12,"p",8),Js(13,"The Autism DRIVE enables secure storage and sharing of autism data, helping to monitor progress and outcomes. The system also provides access to resources for families and professionals -- infusing cutting-edge knowledge into community-based practices."),hs(),hs(),hs(),ds(14,"div",9),ds(15,"header",10),ds(16,"span",11),Js(17,"Autism"),hs(),ds(18,"h2"),ds(19,"span",12),Js(20," Transformative "),fs(21,"br",13),Js(22," Autism Research "),hs(),ds(23,"span",14),Js(24,"Current Studies"),hs(),hs(),hs(),hs(),ds(25,"div",15),ds(26,"div",16),os(27,QJ,1,2,"app-news-item",17),ds(28,"div",18),fs(29,"app-details-link",19),hs(),hs(),hs()),2&e&&(Oa(27),us("ngForOf",t.newsItems),Oa(2),us("url","/studies"))},directives:[Xy,n_,eb,UJ,v_,TX,my,bh,PK,YJ],styles:["#hero[_ngcontent-%COMP%]{background-image:url(/assets/home/hero-family.jpg);background-position:50% 33%;padding-top:80px;padding-bottom:80px}#hero[_ngcontent-%COMP%] .hero-content[_ngcontent-%COMP%]{text-align:center}#hero[_ngcontent-%COMP%] .hero-content[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-family:bodoni-urw,serif;text-transform:uppercase}#hero[_ngcontent-%COMP%] .hero-content[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border-top-width:4px;margin:1em auto}.more-studies[_ngcontent-%COMP%]{text-align:center;padding-top:2em}"]}),XJ);function KJ(e,t){1&e&&fs(0,"app-loading",13)}var ZJ,JJ=function(){return["/home"]},e0=function(){return["/register"]},t0=function(){return["/forgot-password"]},n0=((ZJ=function(){function e(t,n,i,r,a){var o=this;b(this,e),this.authenticationService=t,this.deviceDetectorService=n,this.googleAnalytics=i,this.route=r,this.router=a,this.loading=!1,this.errorEmitter=new Vu,this.form=new Pk({}),this.model={},this.fields=[{key:"email",type:"input",templateOptions:{type:"email",label:"Email Address:",placeholder:"Enter email",required:!0}},{key:"password",type:"input",templateOptions:{label:"Password:",type:"password",required:!0}}],this.route.queryParams.subscribe(function(e){e.hasOwnProperty("returnUrl")&&(o.returnUrl=e.returnUrl,o.authenticationService.currentUser.subscribe(function(e){return o._goToReturnUrl(e)}))}),this.route.params.subscribe(function(e){e.hasOwnProperty("email_token")&&(o.emailToken=e.email_token)}),this.authenticationService.currentUser.subscribe(function(e){e&&o._goToReturnUrl(e)})}return w(e,[{key:"ngOnInit",value:function(){}},{key:"submit",value:function(e){var t=this;this.loading=!0,this.form.valid?this.authenticationService.login(e.email,e.password,this.emailToken).subscribe(function(e){t._goToReturnUrl(e),t.googleAnalytics.accountEvent("login")},function(e){t.errorEmitter.emit(e||"An unexpected error occurred. Please contact support"),t.loading=!1}):(this.loading=!1,this.errorEmitter.emit("Please enter a valid email address and password."))}},{key:"_goToReturnUrl",value:function(e){var t=this;e&&this.router.navigateByUrl(this.returnUrl||"/profile").then(function(e){return bq(t.deviceDetectorService)})}}]),e}()).\u0275fac=function(e){return new(e||ZJ)(ls(y$),ls(EW),ls(h$),ls(oQ),ls(EX))},ZJ.\u0275cmp=pt({type:ZJ,selectors:[["app-login"]],decls:21,vars:14,consts:[["message","Loading...",4,"ngIf"],["hidden","loading","fxLayout.gt-md","row","fxLayout.lt-lg","column","fxLayoutWrap","","fxLayoutGap","10px","fxLayoutAlign","center center",1,"container","mat-typography"],["fxFlex.gt-md","50%","fxFlex.lt-lg","80%",1,"form"],["variant","dark-lg"],[3,"formGroup","ngSubmit"],[3,"form","fields","model"],["fxLayout","column","fxLayoutGap","2%","fxLayoutAlign","center"],["id","error_message",1,"display","mat-error"],["mat-flat-button","","type","submit","color","primary","id","submit"],["mat-flat-button","","color","accent","id","cancel",3,"routerLink"],["fxLayout","row","fxLayoutAlign","space-between",1,"footer"],["mat-button","","id","register",3,"routerLink"],["mat-button","","id","forgot_password",3,"routerLink"],["message","Loading..."]],template:function(e,t){1&e&&(os(0,KJ,1,0,"app-loading",0),ds(1,"div",1),ds(2,"div",2),fs(3,"app-logo",3),ds(4,"h1"),Js(5,"Sign in"),hs(),ds(6,"form",4),ks("ngSubmit",function(){return t.submit(t.model)}),ds(7,"formly-form",5),ds(8,"div",6),ds(9,"div",7),Js(10),Iu(11,"async"),hs(),ds(12,"button",8),Js(13,"Submit"),hs(),ds(14,"a",9),Js(15,"Cancel"),hs(),hs(),hs(),hs(),ds(16,"div",10),ds(17,"a",11),Js(18,"Join Autism DRIVE"),hs(),ds(19,"a",12),Js(20,"Forgot password?"),hs(),hs(),hs(),hs()),2&e&&(us("ngIf",t.loading),Oa(6),us("formGroup",t.form),Oa(1),us("form",t.form)("fields",t.fields)("model",t.model),Oa(3),el(Ru(11,9,t.errorEmitter)),Oa(4),us("routerLink",Su(11,JJ)),Oa(3),us("routerLink",Su(12,e0)),Oa(2),us("routerLink",Su(13,t0)))},directives:[wh,Xy,n_,eb,v_,DJ,Vk,Jb,qk,yj,kP,wP,PX,zZ],pipes:[qh],styles:["@media (max-width:959px){.container[_ngcontent-%COMP%]{min-height:60vh}.container[_ngcontent-%COMP%] .mat-form-field-wrapper{padding-bottom:.25em}}@media (min-width:960px){.container[_ngcontent-%COMP%]{min-height:70vh}}@media (min-width:1280px){.container[_ngcontent-%COMP%]{min-height:80vh}}.form[_ngcontent-%COMP%]{padding:2%}"]}),ZJ),i0=fC({opacity:0}),r0=fC({opacity:1}),a0=[r0,cC("0.5s ease-in-out",i0)],o0=[i0,cC("0.5s ease-in-out",r0)],s0={optional:!0};function l0(){return uC("fadeTransition",[gC("* <=> *",[yC(":enter, :leave",r0,s0),yC(":enter",i0,s0),hC([yC(":leave",vC(),s0),dC([yC(":leave",a0,s0),yC(":enter",o0,s0)]),yC(":enter",vC(),s0)])])])}fC({opacity:1,transform:"translateX(0%) scale(1)"}),fC({opacity:0,transform:"translateX(0%) scale(0)"}),fC({opacity:0,transform:"translateX(0%) scale(10)"}),fC({opacity:0,transform:"translateX(-100%) scale(1)"}),fC({opacity:0,transform:"translateX(100%) scale(1)"}),fC({opacity:0,transform:"translateX(0%) scale(1)"});var u0,c0,d0=((c0=function(){function e(t,n){b(this,e),this.api=t,this.router=n}return w(e,[{key:"ngOnInit",value:function(){}},{key:"goHome",value:function(e){e.preventDefault(),this.router.navigate(["home"])}}]),e}()).\u0275fac=function(e){return new(e||c0)(ls(x$),ls(EX))},c0.\u0275cmp=pt({type:c0,selectors:[["app-logout"]],hostVars:1,hostBindings:function(e,t){2&e&&ol("@fadeTransition",t.title)},decls:7,vars:0,consts:[["fxLayout.gt-md","row","fxLayout.lt-lg","column","fxLayoutWrap","","fxLayoutGap","10px","fxLayoutAlign","center center","id","logout-message",1,"container","mat-typography"],["fxFlex.gt-md","50%","fxFlex.lt-lg","80%",1,"message"],["variant","dark-lg",3,"click"],["id","ok-button","mat-flat-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"div",1),ds(2,"app-logo",2),ks("click",function(e){return t.goHome(e)}),hs(),ds(3,"h1"),Js(4,"You have been logged out."),hs(),ds(5,"button",3),ks("click",function(e){return t.goHome(e)}),Js(6,"Ok"),hs(),hs(),hs())},directives:[Xy,n_,eb,v_,DJ,kP],styles:["@media (max-width:959px){.container[_ngcontent-%COMP%]{min-height:70vh}}@media (min-width:960px){.container[_ngcontent-%COMP%]{min-height:80vh}}@media (min-width:1280px){.container[_ngcontent-%COMP%]{min-height:90vh}}div.message[_ngcontent-%COMP%]{text-align:center}"],data:{animation:[l0()]}}),c0),h0=((u0=function(){function e(){b(this,e)}return w(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||u0)},u0.\u0275cmp=pt({type:u0,selectors:[["app-mirror"]],decls:14,vars:0,consts:[["fxLayout","column","fxLayoutAlign","start start",1,"mirror"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"h1"),Js(2,"Mirrored Server"),hs(),ds(3,"p"),Js(4,"This server is currently running in a mirrored mode and provides access to de-identified data. It is pulling data from the main/public server on a regular basis. Because this is acting as a mirror of the public facing system this data should not be modified. The following areas of the site are currently disabled:"),hs(),ds(5,"ul"),ds(6,"li"),ds(7,"b"),Js(8,"Profile Page"),hs(),Js(9,": Which would allow the creation of new participants. This should be done on the main public facing site."),hs(),ds(10,"li"),ds(11,"b"),Js(12,"Questionnaires / Flow"),hs(),Js(13,": Which would create additional data that could be overwritten, lost, or contradict information taken from the main system."),hs(),hs(),hs())},directives:[Xy,eb],styles:[".mirror[_ngcontent-%COMP%]{margin:auto;max-width:800px}button[_ngcontent-%COMP%]{margin-bottom:2em}"]}),u0);function f0(e,t){1&e&&(ds(0,"div",16),fs(1,"mat-spinner"),hs())}function p0(e,t){if(1&e&&(ds(0,"mat-card"),ds(1,"p"),Js(2,"The filtered totals filter out all participants associated with Admin and Test User Accounts."),hs(),ds(3,"p"),Js(4,"The subtotals reflect all guardians, self advocates, and dependents, but not professionals."),hs(),fs(5,"mat-divider"),ds(6,"div",17),ds(7,"div"),ds(8,"p"),ds(9,"i"),Js(10,"Total Self Participants:"),hs(),Js(11),hs(),ds(12,"p"),ds(13,"i"),Js(14,"Total Self Guardians:"),hs(),Js(15),hs(),ds(16,"p"),ds(17,"i"),Js(18,"Total Dependents:"),hs(),Js(19),hs(),ds(20,"p"),ds(21,"b"),Js(22),hs(),hs(),fs(23,"hr"),ds(24,"p"),ds(25,"i"),Js(26,"Total Self Professionals:"),hs(),Js(27),hs(),ds(28,"p"),ds(29,"b"),Js(30),hs(),hs(),hs(),ds(31,"div"),ds(32,"p"),ds(33,"i"),Js(34,"Filtered Self Participants:"),hs(),Js(35),hs(),ds(36,"p"),ds(37,"i"),Js(38,"Filtered Self Guardians:"),hs(),Js(39),hs(),ds(40,"p"),ds(41,"i"),Js(42,"Filtered Dependents:"),hs(),Js(43),hs(),ds(44,"p"),ds(45,"b"),Js(46),hs(),hs(),fs(47,"hr"),ds(48,"p"),ds(49,"i"),Js(50,"Filtered Self Professionals:"),hs(),Js(51),hs(),ds(52,"p"),ds(53,"b"),Js(54),hs(),hs(),hs(),hs(),hs()),2&e){var n=As();Oa(11),tl(" ",n.userParticipantList.num_self_participants,""),Oa(4),tl(" ",n.userParticipantList.num_self_guardians,""),Oa(4),tl(" ",n.userParticipantList.num_dependents,""),Oa(3),tl("SubTotal: ",n.userParticipantList.num_self_participants+n.userParticipantList.num_self_guardians+n.userParticipantList.num_dependents,""),Oa(5),tl(" ",n.userParticipantList.num_self_professionals,""),Oa(3),tl("Total: ",n.userParticipantList.num_self_participants+n.userParticipantList.num_self_professionals+n.userParticipantList.num_self_guardians+n.userParticipantList.num_dependents,""),Oa(5),tl(" ",n.userParticipantList.filtered_self_participants,""),Oa(4),tl(" ",n.userParticipantList.filtered_self_guardians,""),Oa(4),tl(" ",n.userParticipantList.filtered_dependents,""),Oa(3),tl("Filtered SubTotal: ",n.userParticipantList.filtered_self_participants+n.userParticipantList.filtered_self_guardians+n.userParticipantList.filtered_dependents,""),Oa(5),tl(" ",n.userParticipantList.filtered_self_professionals,""),Oa(3),tl("Filtered Total: ",n.userParticipantList.filtered_self_participants+n.userParticipantList.filtered_self_professionals+n.userParticipantList.filtered_self_guardians+n.userParticipantList.filtered_dependents,"")}}function m0(e,t){1&e&&(ds(0,"mat-header-cell",18),Js(1," Id "),hs())}function g0(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.id," ")}}function v0(e,t){1&e&&(ds(0,"mat-header-cell",18),Js(1," Name "),hs())}function y0(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.name," ")}}function _0(e,t){1&e&&(ds(0,"mat-header-cell",18),Js(1," User Id "),hs())}function b0(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.user_id," ")}}function k0(e,t){1&e&&(ds(0,"mat-header-cell",18),Js(1," Relationship "),hs())}function w0(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.relationship," ")}}function C0(e,t){1&e&&(ds(0,"mat-header-cell",18),Js(1," Percent Complete "),hs())}function x0(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),Iu(2,"percent"),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",Ru(2,1,n.percent_complete)," ")}}function S0(e,t){1&e&&(ds(0,"mat-header-cell",18),Js(1," Has Consented "),hs())}function A0(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.has_consented," ")}}function O0(e,t){1&e&&(ds(0,"mat-header-cell",18),Js(1," Last Updated "),hs())}function E0(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.last_updated," ")}}function T0(e,t){1&e&&fs(0,"mat-header-row")}function P0(e,t){1&e&&fs(0,"mat-row")}var D0,M0=((D0=function(){function e(t){b(this,e),this.api=t,this.participantDataSource=new oH([]),this.displayedColumns=["id","name","user_id","relationship","percent_complete","has_consented","last_updated"],this.loading=!0}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.api.getParticipantAdminList().subscribe(function(t){e.userParticipantList=t,e.participantDataSource.data=t.all_participants,e.participantDataSource.sort=e.sort,e.loading=!1})}},{key:"applyFilter",value:function(e){this.participantDataSource.filter=e.target.value.trim().toLowerCase()}}]),e}()).\u0275fac=function(e){return new(e||D0)(ls(x$))},D0.\u0275cmp=pt({type:D0,selectors:[["app-participant-admin"]],viewQuery:function(e,t){var n;1&e&&Ku(hV,3),2&e&&$u(n=Ju())&&(t.sort=n.first)},decls:34,vars:5,consts:[[1,"participant-admin"],["class","spinner-container",4,"ngIf"],[4,"ngIf"],["matInput","",3,"keyup"],["matSort","","matSortActive","id","matSortDirection","asc",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","id"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","name"],["matColumnDef","user_id"],["matColumnDef","relationship"],["matColumnDef","percent_complete"],["matColumnDef","has_consented"],["matColumnDef","last_updated"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[1,"spinner-container"],["fxLayout","row","fxLayout.lt-sm","column","fxLayoutGap","2em"],["mat-sort-header",""]],template:function(e,t){1&e&&(ds(0,"div",0),os(1,f0,2,0,"div",1),ds(2,"div"),ds(3,"h1"),Js(4,"Participant Admin"),hs(),os(5,p0,55,12,"mat-card",2),ds(6,"mat-form-field"),ds(7,"mat-label"),Js(8,"Filter"),hs(),ds(9,"input",3),ks("keyup",function(e){return t.applyFilter(e)}),hs(),hs(),ds(10,"mat-table",4),ps(11,5),os(12,m0,2,0,"mat-header-cell",6),os(13,g0,2,1,"mat-cell",7),ms(),ps(14,8),os(15,v0,2,0,"mat-header-cell",6),os(16,y0,2,1,"mat-cell",7),ms(),ps(17,9),os(18,_0,2,0,"mat-header-cell",6),os(19,b0,2,1,"mat-cell",7),ms(),ps(20,10),os(21,k0,2,0,"mat-header-cell",6),os(22,w0,2,1,"mat-cell",7),ms(),ps(23,11),os(24,C0,2,0,"mat-header-cell",6),os(25,x0,3,3,"mat-cell",7),ms(),ps(26,12),os(27,S0,2,0,"mat-header-cell",6),os(28,A0,2,1,"mat-cell",7),ms(),ps(29,13),os(30,O0,2,0,"mat-header-cell",6),os(31,E0,2,1,"mat-cell",7),ms(),os(32,T0,1,0,"mat-header-row",14),os(33,P0,1,0,"mat-row",15),hs(),hs(),hs()),2&e&&(Oa(1),us("ngIf",t.loading),Oa(4),us("ngIf",t.userParticipantList),Oa(5),us("dataSource",t.participantDataSource),Oa(22),us("matHeaderRowDef",t.displayedColumns),Oa(1),us("matRowDefColumns",t.displayedColumns))},directives:[wh,wT,hT,vM,BB,hV,WB,jB,zB,KB,JB,pN,jP,zR,Xy,n_,YB,yV,XB,tH,iH],pipes:[Kh],styles:[".participant-admin[_ngcontent-%COMP%]{margin:2em}mat-form-field[_ngcontent-%COMP%]{margin-top:2em}"]}),D0);function I0(e,t){if(1&e&&(ds(0,"div",13),Js(1),hs()),2&e){var n=As();Oa(1),el(n.errorMessage)}}var R0,L0=function(){return["/register"]},F0=function(){return["/forgot-password"]},N0=((R0=function(){function e(t,n,i,r,a,o,s){var l=this;b(this,e),this.authenticationService=t,this.route=n,this.router=i,this.changeDetectorRef=r,this.apiService=a,this.deviceDetectorService=o,this.googleAnalyticsService=s,this.formState="form",this.errorMessage="",this.form=new Pk({}),this.model={},this.fields=[{key:"password",validators:{fieldMatch:{expression:function(e){var t=e.value;return t.passwordConfirm===t.password||!t.passwordConfirm||!t.password},message:"Password Not Matching",errorPath:"passwordConfirm"}},fieldGroup:[{key:"password",type:"input",className:"password",templateOptions:{type:"password",label:"Password",required:!0},validators:{password:{expression:function(e){return!e.value||l.passwordRegex.test(e.value)},message:function(e,t){return l.passwordRequirements.instructions}}}},{key:"passwordConfirm",type:"input",className:"passwordConfirm",templateOptions:{type:"password",label:"Confirm Password",placeholder:"Please re-enter your password",required:!0}}]}],this.route.params.subscribe(function(e){l.token=e.email_token,l.role=e.role,l.apiService.getPasswordRequirements(l.role).subscribe(function(e){l.passwordRequirements=e,l.passwordRegex=RegExp(e.regex)})})}return w(e,[{key:"ngOnInit",value:function(){}},{key:"goHome",value:function(e){e.preventDefault(),this.router.navigate(["home"])}},{key:"submit",value:function(){var e=this;this.form.valid&&(this.formState="submitting",this.errorMessage="",this.authenticationService.resetPassword(this.model.password.password,this.token).subscribe(function(t){e._goToReturnUrl(t),e.googleAnalyticsService.accountEvent("reset_password")},function(t){e.errorMessage="token_expired"===t.code?"The link for resetting your password has expired.Please return to the password reset page to generate a new email.":"We encountered an error resetting your password. Please contact support.",e.formState="form",e.changeDetectorRef.detectChanges()}))}},{key:"updateValidationState",value:function(){this.form.updateValueAndValidity()}},{key:"_goToReturnUrl",value:function(e){var t=this,n=localStorage.getItem("returnUrl");e&&this.router.navigateByUrl(n&&"undefined"!==n?n:"/profile").then(function(e){return bq(t.deviceDetectorService)})}}]),e}()).\u0275fac=function(e){return new(e||R0)(ls(y$),ls(oQ),ls(EX),ls(Jl),ls(x$),ls(EW),ls(h$))},R0.\u0275cmp=pt({type:R0,selectors:[["app-password-reset"]],decls:18,vars:9,consts:[["fxLayout","row","fxLayout.xs","column","fxLayoutWrap","","fxLayoutGap","10px","fxLayoutAlign","center center",1,"container","mat-typography"],["fxFlex","50%","fxFlex.xs","90%",1,"form"],["variant","dark-lg",3,"click"],["color","primary",1,"mat-display-1"],[3,"formGroup","ngSubmit"],[3,"form","fields","model","keyup"],["fxLayout","column","fxLayoutGap","2%","fxLayoutAlign","center"],["id","error_message","class","display mat-error",4,"ngIf"],["mat-flat-button","","type","submit","color","primary","id","submit"],["mat-flat-button","","color","accent","id","cancel",3,"click"],["fxLayout","row","fxLayoutAlign","space-between",1,"footer"],["mat-button","","id","register",3,"routerLink"],["mat-button","","id","forgot_password",3,"routerLink"],["id","error_message",1,"display","mat-error"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"div",1),ds(2,"app-logo",2),ks("click",function(e){return t.goHome(e)}),hs(),ds(3,"h1",3),Js(4,"Set your new Autism DRIVE Password"),hs(),ds(5,"form",4),ks("ngSubmit",function(){return t.submit()}),ds(6,"formly-form",5),ks("keyup",function(){return t.updateValidationState()}),ds(7,"div",6),os(8,I0,2,1,"div",7),ds(9,"button",8),Js(10,"Next"),hs(),ds(11,"button",9),ks("click",function(e){return t.goHome(e)}),Js(12,"Cancel"),hs(),hs(),hs(),hs(),ds(13,"div",10),ds(14,"a",11),Js(15,"Join Autism DRIVE"),hs(),ds(16,"a",12),Js(17,"Forgot password?"),hs(),hs(),hs(),hs()),2&e&&(Oa(5),us("formGroup",t.form),Oa(1),us("form",t.form)("fields",t.fields)("model",t.model),Oa(2),us("ngIf",t.errorMessage),Oa(6),us("routerLink",Su(7,L0)),Oa(2),us("routerLink",Su(8,F0)))},directives:[Xy,n_,eb,v_,DJ,Vk,Jb,qk,yj,wh,kP,wP,PX],styles:[".container[_ngcontent-%COMP%]{min-height:100vh}.form[_ngcontent-%COMP%]{border:2px solid #4e4e4e;padding:2%}"]}),R0);function V0(e,t){1&e&&(ds(0,"p"),Js(1," If you would like to join the research registry, please work with your legal guardian to create a profile for yourself. Your profile information will be used to match you with new study opportunities. "),hs())}function B0(e,t){if(1&e&&(ds(0,"div",11),ds(1,"h1"),Js(2,"Profile complete!"),hs(),ds(3,"p"),Js(4," Your account set up is complete! You may now sign up for webinars and search for resources. "),hs(),os(5,V0,2,0,"p",6),hs()),2&e){var n=As(2);Oa(5),us("ngIf",n.meta.self_participant&&n.meta.self_has_guardian)}}function H0(e,t){1&e&&(ds(0,"div",12),ds(1,"h1"),Js(2,"Join the Registry!"),hs(),ds(3,"p"),Js(4,"Your account set up is complete! You may now sign up for webinars, search for resources, and join our research registry."),hs(),ds(5,"p"),Js(6,"Joining the research registry allows you to get connected with new study opportunities! The joining process involves creating a profile about yourself. Your information will be used to match you with study opportunities."),hs(),hs())}function z0(e,t){1&e&&(ds(0,"div",13),ds(1,"h1"),Js(2,"Join the Registry as a Parent/Guardian!"),hs(),ds(3,"p"),Js(4,"Your account set up is complete! You may now sign up for webinars, search for resources, and join our research registry."),hs(),ds(5,"p"),Js(6,"Joining the research registry allows you and your child to get connected with new study opportunities! The joining process involves creating profiles for yourself and your child. Your profile information will be used to match you or your child with relevant study opportunities. "),hs(),hs())}function G0(e,t){1&e&&(ds(0,"div",14),ds(1,"h1"),Js(2,"Join the Registry as a Professional!"),hs(),ds(3,"p"),Js(4,"Your account set up is complete! You may now sign up for webinars, search for resources, and join our research registry."),hs(),ds(5,"p"),Js(6,"Joining the research registry allows you to get connected with exciting study opportunities! The joining process involves creating a profile about yourself. Your information will be used to match you with study opportunities. "),hs(),hs())}function j0(e,t){1&e&&(ds(0,"p"),Js(1," If you think your child would be interested in joining, please share information about Autism DRIVE with them so they can sign up directly. "),hs())}function U0(e,t){if(1&e&&(ds(0,"div"),ds(1,"h1"),Js(2,"Join the Registry!"),hs(),ds(3,"p"),Js(4,"Your account set up is complete! You may now sign up for webinars, search for resources, and join our research registry."),hs(),ds(5,"p"),Js(6,"Joining the research registry allows you to get connected with exciting study opportunities! The joining process involves creating a profile about yourself. Your information will be used to match you with study opportunities. "),hs(),os(7,j0,2,0,"p",6),hs()),2&e){var n=As(2);Oa(7),us("ngIf",n.meta.guardian&&!n.meta.guardian_has_dependent)}}function W0(e,t){if(1&e){var n=vs();ds(0,"button",15),ks("click",function(e){return rn(n),As(2).goFlow(e)}),Js(1," Join the Registry "),hs()}}function q0(e,t){if(1&e&&(ds(0,"div",1),os(1,B0,6,1,"div",2),os(2,H0,7,0,"div",3),os(3,z0,7,0,"div",4),os(4,G0,7,0,"div",5),os(5,U0,8,1,"div",6),ds(6,"div",7),os(7,W0,2,0,"button",8),ds(8,"button",9),Js(9," Watch Webinars "),hs(),ds(10,"button",10),Js(11," Search Resources "),hs(),hs(),hs()),2&e){var n=As();Oa(1),us("ngIf",null===n.meta.self_relationship),Oa(1),us("ngIf",n.meta.self_relationship===n.relationships.SELF_PARTICIPANT),Oa(1),us("ngIf",n.meta.self_relationship===n.relationships.SELF_GUARDIAN),Oa(1),us("ngIf",n.meta.self_relationship===n.relationships.SELF_PROFESSIONAL),Oa(1),us("ngIf",n.meta.self_relationship===n.relationships.SELF_INTERESTED),Oa(2),us("ngIf",n.meta.self_relationship)}}var Y0,Q0=((Y0=function(){function e(t,n,i){b(this,e),this.authenticationService=t,this.api=n,this.router=i,this.relationships=p$}return w(e,[{key:"ngOnInit",value:function(){}},{key:"goFlow",value:function(e){e.preventDefault(),this.router.navigate(["terms",this.meta.self_relationship])}}]),e}()).\u0275fac=function(e){return new(e||Y0)(ls(y$),ls(x$),ls(EX))},Y0.\u0275cmp=pt({type:Y0,selectors:[["app-profile-meta"]],inputs:{user:"user",meta:"meta"},decls:1,vars:1,consts:[["class","meta_info","fxLayout","row","fxLayout.sm","row","fxLayout.xs","column","fxLayoutGap","10px","fxLayoutAlign","center center","fxFlexOffset","5",4,"ngIf"],["fxLayout","row","fxLayout.sm","row","fxLayout.xs","column","fxLayoutGap","10px","fxLayoutAlign","center center","fxFlexOffset","5",1,"meta_info"],["id","null_relationship",4,"ngIf"],["id","self_participant",4,"ngIf"],["id","self_guardian",4,"ngIf"],["id","self_profressional",4,"ngIf"],[4,"ngIf"],["fxLayout","column","fxLayout.gt-sm","column","fxLayoutGap","10px","fxLayoutAlign","center center","fxFlexOffset","15"],["mat-flat-button","","id","join","type","button","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","type","button","color","primary","routerLink","/uva-education"],["mat-flat-button","","type","button","color","primary","routerLink","/search"],["id","null_relationship"],["id","self_participant"],["id","self_guardian"],["id","self_profressional"],["mat-flat-button","","id","join","type","button","color","accent",3,"click"]],template:function(e,t){1&e&&os(0,q0,12,6,"div",0),2&e&&us("ngIf",t.meta)},directives:[wh,Xy,n_,eb,I_,kP,TX],styles:["div.meta_info[_ngcontent-%COMP%]{margin:20px auto;text-align:left;max-width:800px}"]}),Y0),X0=function(e){return{"avatar-image-active":e}};function $0(e,t){if(1&e){var n=vs();ds(0,"button",18),ks("click",function(){rn(n);var e=t.$implicit;return As(2).setImage(e)}),fs(1,"img",6),hs()}if(2&e){var i=t.$implicit,r=As(2);us("ngClass",Au(2,X0,r.isSelectedImage(i))),Oa(1),Ds("src","/assets/avatars/",i,".svg",Pr)}}var K0=function(e){return{"background-color":e}},Z0=function(e){return{"color-swatch-active":e}};function J0(e,t){if(1&e){var n=vs();ds(0,"button",19),ks("click",function(){rn(n);var e=t.$implicit;return As(2).setColor(e)}),Js(1,"\xa0 "),hs()}if(2&e){var i=t.$implicit,r=As(2);us("ngStyle",Au(2,K0,i))("ngClass",Au(4,Z0,r.isSelectedColor(i)))}}function e1(e,t){if(1&e){var n=vs();ds(0,"div",1),ds(1,"div",2),ds(2,"h1",3),Js(3),hs(),ds(4,"div",4),ds(5,"div",5),fs(6,"img",6),hs(),hs(),ds(7,"p"),Js(8,"Pick an image"),hs(),ds(9,"div",7),ds(10,"button",8),ks("click",function(e){return rn(n),As().scroll(e,"avatar-images","left")}),ds(11,"mat-icon"),Js(12,"chevron_left"),hs(),hs(),ds(13,"div",9),os(14,$0,2,4,"button",10),hs(),ds(15,"button",11),ks("click",function(e){return rn(n),As().scroll(e,"avatar-images","right")}),ds(16,"mat-icon"),Js(17,"chevron_right"),hs(),hs(),hs(),ds(18,"p"),Js(19,"Pick a color"),hs(),ds(20,"div",12),ds(21,"button",8),ks("click",function(e){return rn(n),As().scroll(e,"color-swatches","left")}),ds(22,"mat-icon"),Js(23,"chevron_left"),hs(),hs(),ds(24,"div",13),os(25,J0,2,6,"button",14),hs(),ds(26,"button",11),ks("click",function(e){return rn(n),As().scroll(e,"color-swatches","right")}),ds(27,"mat-icon"),Js(28,"chevron_right"),hs(),hs(),hs(),hs(),ds(29,"div",15),ds(30,"button",16),ks("click",function(){return rn(n),As().onSubmit()}),Js(31,"Save"),hs(),ds(32,"button",17),ks("click",function(){return rn(n),As().onNoClick()}),Js(33,"Cancel"),hs(),hs(),hs()}if(2&e){var i=As();Oa(3),el(i.getPrompt()),Oa(2),us("ngStyle",Au(5,K0,i.selectedColor||i.data.participant.avatar_color)),Oa(1),Ds("src","/assets/avatars/",i.selectedIcon||i.data.participant.avatar_icon,".svg",Pr),Oa(8),us("ngForOf",i.avatarImages),Oa(11),us("ngForOf",i.avatarColors)}}var t1,n1=((t1=function(){function e(t,n,i){b(this,e),this.api=t,this.dialogRef=n,this.data=i,this.avatarImages=[],this.avatarColors=[];for(var r=0;r<104;r++)this.avatarImages[r]=(r+1).toLocaleString("en",{minimumIntegerDigits:3});for(var a=0;a<16;a++)this.avatarColors[a]="hsl(".concat(16*a,",100%,80%)");this.selectedIcon=this.data.participant.avatar_icon||"001",this.selectedColor=this.data.participant.avatar_color||"hsl(0, 100%, 80%)",this.dialogRef.afterOpened().subscribe(function(){var e=document.getElementsByClassName("avatar-image-active")[0],t=document.getElementsByClassName("color-swatch-active")[0];e&&e.parentElement.scrollTo({left:e.offsetLeft-1.25*e.clientWidth-e.parentElement.clientWidth}),t&&t.parentElement.scrollTo({left:t.offsetLeft-3*t.clientWidth-t.parentElement.clientWidth})})}return w(e,[{key:"ngOnInit",value:function(){}},{key:"onNoClick",value:function(){this.dialogRef.close()}},{key:"getPrompt",value:function(){return"Choose ".concat(this.data.participant.relationship!==p$.DEPENDENT?"your":"".concat(this.data.participant.name||"your child","'s")," avatar")}},{key:"setColor",value:function(e){this.selectedColor=e}},{key:"setImage",value:function(e){this.selectedIcon=e}},{key:"isSelectedImage",value:function(e){return this.selectedIcon?e===this.selectedIcon:e===this.data.participant.avatar_icon}},{key:"isSelectedColor",value:function(e){return this.selectedColor?e===this.selectedColor:e===this.data.participant.avatar_color}},{key:"scroll",value:function(e,t,n){var i=document.getElementsByClassName(t)[0],r=document.getElementsByClassName(t+"-row")[0];i.scrollBy(r.clientWidth*("left"===n?-1:1),0)}},{key:"onSubmit",value:function(){var e=this;this.data.participant.avatar_color=this.selectedColor||this.data.participant.avatar_color,this.data.participant.avatar_icon=this.selectedIcon||this.data.participant.avatar_icon,this.api.updateParticipant(this.data.participant).subscribe(function(){return e.dialogRef.close()})}}]),e}()).\u0275fac=function(e){return new(e||t1)(ls(x$),ls(ID),ls(zD))},t1.\u0275cmp=pt({type:t1,selectors:[["app-avatar-dialog"]],decls:1,vars:1,consts:[["class","mat-typography",4,"ngIf"],[1,"mat-typography"],["mat-dialog-content",""],["mat-dialog-title",""],["fxLayout","column","fxLayoutAlign","center center"],[1,"avatar",3,"ngStyle"],[3,"src"],[1,"avatar-images-row"],["mat-button","",1,"scroll-left",3,"click"],[1,"avatar-images"],["class","avatar-image",3,"ngClass","click",4,"ngFor","ngForOf"],["mat-button","",1,"scroll-right",3,"click"],[1,"color-swatches-row"],[1,"color-swatches"],["class","color-swatch",3,"ngStyle","ngClass","click",4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-flat-button","","color","primary","id","save_avatar_changes",3,"click"],["mat-button","","id","cancel_avatar_changes",3,"click"],[1,"avatar-image",3,"ngClass","click"],[1,"color-swatch",3,"ngStyle","ngClass","click"]],template:function(e,t){1&e&&os(0,e1,34,7,"div",0),2&e&&us("ngIf",t.data.participant)},directives:[wh,$D,XD,Xy,eb,Rh,Sy,kP,BR,bh,KD,yh,ly],styles:[".avatar[_ngcontent-%COMP%]{border-radius:50%}.avatar[_ngcontent-%COMP%], .avatar[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:192px;width:192px}.avatar-images-row[_ngcontent-%COMP%], .color-swatches-row[_ngcontent-%COMP%]{display:grid;grid-gap:0}@media (min-width:576px){.avatar-images-row[_ngcontent-%COMP%], .color-swatches-row[_ngcontent-%COMP%]{grid-template-columns:1fr 4fr 1fr}}@media (min-width:768px){.avatar-images-row[_ngcontent-%COMP%], .color-swatches-row[_ngcontent-%COMP%]{grid-template-columns:1fr 6fr 1fr}}@media (min-width:992px){.avatar-images-row[_ngcontent-%COMP%], .color-swatches-row[_ngcontent-%COMP%]{grid-template-columns:1fr 8fr 1fr}}@media (min-width:1200px){.avatar-images-row[_ngcontent-%COMP%], .color-swatches-row[_ngcontent-%COMP%]{grid-template-columns:1fr 10fr 1fr}}.avatar-images-row[_ngcontent-%COMP%] .scroll-left[_ngcontent-%COMP%], .avatar-images-row[_ngcontent-%COMP%] .scroll-right[_ngcontent-%COMP%], .color-swatches-row[_ngcontent-%COMP%] .scroll-left[_ngcontent-%COMP%], .color-swatches-row[_ngcontent-%COMP%] .scroll-right[_ngcontent-%COMP%]{height:100%}.avatar-images-row[_ngcontent-%COMP%] .scroll-left[_ngcontent-%COMP%], .avatar-images-row[_ngcontent-%COMP%] .scroll-left[_ngcontent-%COMP%]:active, .avatar-images-row[_ngcontent-%COMP%] .scroll-left[_ngcontent-%COMP%]:focus, .avatar-images-row[_ngcontent-%COMP%] .scroll-left[_ngcontent-%COMP%]:hover, .color-swatches-row[_ngcontent-%COMP%] .scroll-left[_ngcontent-%COMP%], .color-swatches-row[_ngcontent-%COMP%] .scroll-left[_ngcontent-%COMP%]:active, .color-swatches-row[_ngcontent-%COMP%] .scroll-left[_ngcontent-%COMP%]:focus, .color-swatches-row[_ngcontent-%COMP%] .scroll-left[_ngcontent-%COMP%]:hover{background-image:linear-gradient(90deg,#fff,#fff,hsla(0,0%,100%,0))}.avatar-images-row[_ngcontent-%COMP%] .scroll-right[_ngcontent-%COMP%], .avatar-images-row[_ngcontent-%COMP%] .scroll-right[_ngcontent-%COMP%]:active, .avatar-images-row[_ngcontent-%COMP%] .scroll-right[_ngcontent-%COMP%]:focus, .avatar-images-row[_ngcontent-%COMP%] .scroll-right[_ngcontent-%COMP%]:hover, .color-swatches-row[_ngcontent-%COMP%] .scroll-right[_ngcontent-%COMP%], .color-swatches-row[_ngcontent-%COMP%] .scroll-right[_ngcontent-%COMP%]:active, .color-swatches-row[_ngcontent-%COMP%] .scroll-right[_ngcontent-%COMP%]:focus, .color-swatches-row[_ngcontent-%COMP%] .scroll-right[_ngcontent-%COMP%]:hover{background-image:linear-gradient(90deg,hsla(0,0%,100%,0),#fff,#fff)}.avatar-images[_ngcontent-%COMP%], .color-swatches[_ngcontent-%COMP%]{overflow-x:scroll;white-space:nowrap;scroll-behavior:smooth}.avatar-images[_ngcontent-%COMP%]{height:112px}.color-swatches[_ngcontent-%COMP%]{height:80px}.avatar-image[_ngcontent-%COMP%], .color-swatch[_ngcontent-%COMP%]{border:8px solid #fff;display:inline-block;background:rgba(0,0,0,0);outline:none;margin:0 0 0 10px;padding:0;border-radius:50%}.color-swatch[_ngcontent-%COMP%]{width:64px;height:64px}.avatar-image[_ngcontent-%COMP%]{width:112px;height:112px;background:#eee}.avatar-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:96px;height:96px}.avatar-image-active[_ngcontent-%COMP%], .color-swatch-active[_ngcontent-%COMP%]{border-color:#999}"]}),t1);function i1(e,t){if(1&e&&(ds(0,"div",7),fs(1,"mat-progress-bar",8),hs()),2&e){var n=As();Oa(1),us("mode","determinate")("value",100*n.participant.percent_complete)}}function r1(e,t){1&e&&(ds(0,"div",7),Js(1," Profile Complete "),hs())}var a1,o1=function(e){return{"background-color":e}},s1=((a1=function(){function e(t,n,i){b(this,e),this.api=t,this.router=n,this.dialog=i}return w(e,[{key:"ngOnInit",value:function(){}},{key:"goEditEnroll",value:function(e){this.participant.relationship===p$.SELF_PARTICIPANT?(e.preventDefault(),this.router.navigate(["flow","self_intake",this.participant.id])):this.participant.relationship===p$.DEPENDENT?(e.preventDefault(),this.router.navigate(["flow","dependent_intake",this.participant.id])):this.participant.relationship===p$.SELF_PROFESSIONAL?(e.preventDefault(),this.router.navigate(["flow","professional_intake",this.participant.id])):this.participant.relationship===p$.SELF_INTERESTED?(e.preventDefault(),this.router.navigate(["flow","interested_intake",this.participant.id])):(e.preventDefault(),this.router.navigate(["flow","guardian_intake",this.participant.id]))}},{key:"goTerms",value:function(e){e.preventDefault(),this.router.navigate(["terms",this.participant.relationship,{preview:!0}])}},{key:"chooseAvatar",value:function(e,t){this.dialog.open(n1,{maxWidth:"100vw",maxHeight:"100vh",data:{participant:t}}).afterClosed().subscribe(function(e){console.log("The dialog was closed")})}}]),e}()).\u0275fac=function(e){return new(e||a1)(ls(x$),ls(EX),ls(qD))},a1.\u0275cmp=pt({type:a1,selectors:[["app-participant-profile"]],inputs:{participant:"participant",user:"user"},decls:19,vars:18,consts:[[1,"mat-typography"],["mat-card-avatar","",3,"src","ngStyle","id","click"],[1,"change_text",3,"click"],["class","mat-subheading-2",4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","start center","fxLayoutGap","10px"],["mat-flat-button","","color","accent",3,"id","click"],["mat-stroked-button","",3,"id","click"],[1,"mat-subheading-2"],[3,"mode","value"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"mat-card"),ds(2,"mat-card-header"),ds(3,"img",1),ks("click",function(e){return t.chooseAvatar(e,t.participant)}),hs(),ds(4,"div",2),ks("click",function(e){return t.chooseAvatar(e,t.participant)}),Js(5,"change icon"),hs(),ds(6,"mat-card-title"),Js(7),hs(),ds(8,"mat-card-subtitle"),Js(9),Iu(10,"titlecase"),os(11,i1,2,2,"div",3),os(12,r1,2,0,"div",3),ds(13,"div",4),ds(14,"button",5),ks("click",function(e){return t.goEditEnroll(e)}),Js(15),hs(),ds(16,"button",6),ks("click",function(e){return t.goTerms(e)}),Js(17,"Terms and Conditions"),hs(),hs(),hs(),hs(),fs(18,"mat-card-content"),hs(),hs()),2&e&&(Oa(1),Hs("mat-elevation-z0",!0),Oa(2),Ds("src","/assets/avatars/",t.participant.avatar_icon||"001",".svg",Pr),Ds("id","avatar_",t.participant.id,""),us("ngStyle",Au(16,o1,t.participant.avatar_color||"#CCC")),Oa(4),tl(" ",t.participant.name," "),Oa(2),tl(" ",t.user.isSelf(t.participant)?"You":Ru(10,14,t.participant.relationship)," "),Oa(2),us("ngIf",t.participant.percent_complete<1),Oa(1),us("ngIf",t.participant.percent_complete>=1),Oa(2),Ms("id","edit_enroll_",t.participant.relationship,"_",t.participant.id,""),Oa(1),tl("Edit ","self_guardian"===t.participant.relationship?"guardian":"enrollment"," info"),Oa(1),Ms("id","view_terms_",t.participant.relationship,"_",t.participant.id,""))},directives:[jP,UP,GP,Rh,Sy,HP,zP,wh,Xy,eb,n_,kP,BP,QF],pipes:[Qh],styles:["mat-card{width:100%}mat-card-header[_ngcontent-%COMP%]{position:relative}[mat-card-avatar][_ngcontent-%COMP%]{width:100px;height:100px;cursor:pointer}[mat-card-avatar][_ngcontent-%COMP%]:hover{opacity:.5}.change_text[_ngcontent-%COMP%]{position:absolute;top:105px;left:7px;cursor:pointer}.change_text[_ngcontent-%COMP%]:hover{opacity:.5} .mat-card-header-text{width:100%} mat-progress-bar{height:16px} mat-progress-bar .mat-progress-bar-buffer{background-color:#dadada} mat-progress-bar .mat-progress-bar-background, mat-progress-bar .mat-progress-bar-background pattern{fill:#dadada} mat-card-subtitle button{margin-top:20px} mat-card-subtitle .mat-subheading-2{color:#000}button[_ngcontent-%COMP%]{width:100%}@media (min-width:768px){button[_ngcontent-%COMP%]{width:50%}}"]}),a1),l1=function(e){return["/resource",e]};function u1(e,t){if(1&e&&(ds(0,"mat-list-item",2),ds(1,"a",3),Js(2),hs(),ds(3,"p",4),Js(4),hs(),hs()),2&e){var n=t.$implicit;Oa(1),us("routerLink",Au(3,l1,n.id)),Oa(1),el(n.title),Oa(2),el(n.description)}}var c1,d1=((c1=function(){function e(){b(this,e)}return w(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||c1)},c1.\u0275cmp=pt({type:c1,selectors:[["app-favorite-resources"]],inputs:{favoriteResources:"favoriteResources"},decls:5,vars:1,consts:[["class","pad-2",4,"ngFor","ngForOf"],["mat-flat-button","","type","button","color","primary","routerLink","/search"],[1,"pad-2"],["mat-line","",3,"routerLink"],["mat-line",""]],template:function(e,t){1&e&&(os(0,u1,5,5,"mat-list-item",0),ds(1,"p"),Js(2,"To add or remove resources, click on the star button found on the resource pages or on search results"),hs(),ds(3,"button",1),Js(4,"Search Resources"),hs()),2&e&&us("ngForOf",t.favoriteResources)},directives:[bh,kP,TX,nL,PX,bA],styles:[""]}),c1);function h1(e,t){if(1&e){var n=vs();ds(0,"mat-tree-node",9),ds(1,"li",10),fs(2,"button",11),ds(3,"mat-checkbox",12),ks("change",function(){rn(n);var e=t.$implicit;return As().toggleNode(e)}),Js(4),hs(),hs(),hs()}if(2&e){var i=t.$implicit,r=As();Oa(3),us("checked",r.checklistSelection.isSelected(i)),Oa(1),el(i.name)}}function f1(e,t){if(1&e&&(ds(0,"span",18),Js(1),hs()),2&e){var n=As().$implicit;Ps("matBadge",As().numSelectedDescendants(n)),Oa(1),el(n.name)}}function p1(e,t){if(1&e&&(ds(0,"span"),Js(1),hs()),2&e){var n=As().$implicit;Oa(1),el(n.name)}}function m1(e,t){if(1&e){var n=vs();ds(0,"mat-nested-tree-node"),ds(1,"li"),ds(2,"div",10),ds(3,"button",13),ds(4,"mat-icon",14),Js(5),hs(),hs(),ds(6,"mat-checkbox",12),ks("change",function(){rn(n);var e=t.$implicit;return As().toggleNode(e)}),os(7,f1,2,2,"span",15),os(8,p1,2,1,"span",16),hs(),hs(),ds(9,"ul"),gs(10,17),hs(),hs(),hs()}if(2&e){var i=t.$implicit,r=As();Oa(3),is("aria-label","toggle "+i.name),Oa(2),tl(" ",r.treeControl.isExpanded(i)?"expand_more":"chevron_right"," "),Oa(1),us("checked",r.checklistSelection.isSelected(i)),Oa(1),us("ngIf",r.numSelectedDescendants(i)),Oa(1),us("ngIf",!r.numSelectedDescendants(i)),Oa(1),Hs("tree-select-invisible",!r.treeControl.isExpanded(i))}}function g1(e,t){if(1&e&&(ds(0,"mat-option",19),Js(1),hs()),2&e){var n=t.$implicit;us("value",n.value),Oa(1),el(n.label)}}function v1(e,t){if(1&e&&(ds(0,"mat-option",19),Js(1),hs()),2&e){var n=t.$implicit;us("value",n.value),Oa(1),el(n.label)}}function y1(e,t){if(1&e&&(ds(0,"mat-option",19),Js(1),hs()),2&e){var n=t.$implicit;us("value",n.value),Oa(1),el(n.label)}}var _1,b1=((_1=function(){function e(t,n,i){b(this,e),this.api=t,this.dialogRef=n,this.data=i,this.ageLabels=cK.labels,this.languageLabels=dK.labels,this.covid19Labels=hK.labels,this.ageOptions=this.getOptions(this.ageLabels),this.languageOptions=this.getOptions(this.languageLabels),this.covid19Options=this.getOptions(this.covid19Labels),this.nodes={},this.checklistSelection=new xO(!0),this.hasNestedChild=function(e,t){return t.children&&t.children.length>0},this.treeControl=new Dz(function(e){return fp(e.children)}),this.dataSource=new pG}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.api.getCategoryTree().subscribe(function(t){e.dataSource.data=t,e.updateTopicSelection()})}},{key:"getOptions",value:function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({value:n,label:e[n]});return t}},{key:"updateTopicSelection",value:function(){var e=this;this.data.topics&&this.data.topics.forEach(function(t){var n=e.findNode(t.id);n&&e.toggleNode(n),e._updateModelCategories()})}},{key:"findNode",value:function(e){var t=this,n=[];return this.dataSource.data.forEach(function(e){t.treeControl.getDescendants(e).forEach(function(e){return n.push(e)}),n.push(e)}),n.find(function(t){return t.id===e})}},{key:"toggleNode",value:function(e){this.checklistSelection.toggle(e),this._updateModelCategories()}},{key:"numSelectedDescendants",value:function(e){var t=this;return this.treeControl.getDescendants(e).filter(function(e){return t.checklistSelection.isSelected(e)}).length}},{key:"_updateModelCategories",value:function(){var e=this;this.data.topics=[],this.checklistSelection.selected.forEach(function(t){return e.data.topics.push(t)})}},{key:"onNoClick",value:function(){this.dialogRef.close()}}]),e}()).\u0275fac=function(e){return new(e||_1)(ls(x$),ls(ID),ls(zD))},_1.\u0275cmp=pt({type:_1,selectors:[["app-favorite-topics-dialog"]],decls:29,vars:10,consts:[["mat-dialog-title",""],[1,"tree-select",3,"dataSource","treeControl"],["matTreeNodeToggle","",4,"matTreeNodeDef"],[4,"matTreeNodeDef","matTreeNodeDefWhen"],["multiple","",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","",3,"click"],["mat-flat-button","","color","primary","cdkFocusInitial","",3,"mat-dialog-close"],["matTreeNodeToggle",""],[1,"mat-tree-node"],["disabled","","mat-icon-button",""],[3,"checked","change"],["mat-icon-button","","matTreeNodeToggle","",1,"toggle-node-button"],[1,"mat-icon-rtl-mirror"],["matBadgeColor","primary","matBadgeOverlap","false",3,"matBadge",4,"ngIf"],[4,"ngIf"],["matTreeNodeOutlet",""],["matBadgeColor","primary","matBadgeOverlap","false",3,"matBadge"],[3,"value"]],template:function(e,t){1&e&&(ds(0,"h1",0),Js(1,"Manage My Topics"),hs(),ds(2,"p"),Js(3,"Select topics to add them to your favorites. Deselect topics to remove them from your favorites. Click Save to keep your changes or Cancel to discard all changes."),hs(),ds(4,"mat-label"),Js(5,"Topics:"),hs(),ds(6,"mat-tree",1),os(7,h1,5,2,"mat-tree-node",2),os(8,m1,11,7,"mat-nested-tree-node",3),hs(),ds(9,"mat-form-field"),ds(10,"mat-label"),Js(11,"Ages:"),hs(),ds(12,"mat-select",4),ks("valueChange",function(e){return t.data.ages=e}),os(13,g1,2,2,"mat-option",5),hs(),hs(),ds(14,"mat-form-field"),ds(15,"mat-label"),Js(16,"Languages:"),hs(),ds(17,"mat-select",4),ks("valueChange",function(e){return t.data.languages=e}),os(18,v1,2,2,"mat-option",5),hs(),hs(),ds(19,"mat-form-field"),ds(20,"mat-label"),Js(21,"Covid19 Topics:"),hs(),ds(22,"mat-select",4),ks("valueChange",function(e){return t.data.covid19_categories=e}),os(23,y1,2,2,"mat-option",5),hs(),hs(),ds(24,"div",6),ds(25,"button",7),ks("click",function(){return t.onNoClick()}),Js(26,"Cancel"),hs(),ds(27,"button",8),Js(28,"Save"),hs(),hs()),2&e&&(Oa(6),us("dataSource",t.dataSource)("treeControl",t.treeControl),Oa(2),us("matTreeNodeDefWhen",t.hasNestedChild),Oa(4),us("value",t.data.ages),Oa(1),us("ngForOf",t.ageOptions),Oa(4),us("value",t.data.languages),Oa(1),us("ngForOf",t.languageOptions),Oa(4),us("value",t.data.covid19_categories),Oa(1),us("ngForOf",t.covid19Options),Oa(4),us("mat-dialog-close",t.data))},directives:[XD,hT,uG,iG,wT,KL,bh,KD,kP,QD,nG,dG,lD,aG,BR,wh,lG,pP,JA],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}.tree-select-invisible[_ngcontent-%COMP%]{display:none}.tree-select[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .tree-select[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;margin-left:1rem;list-style-type:none}.tree-select[_ngcontent-%COMP%] li[_ngcontent-%COMP%] button.toggle-node-button[_ngcontent-%COMP%], .tree-select[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] button.toggle-node-button[_ngcontent-%COMP%]{outline:none!important}"]}),_1),k1=function(){return["/search"]},w1=function(e){return{category:e}};function C1(e,t){if(1&e&&(ds(0,"mat-chip",6),Js(1),hs()),2&e){var n=t.$implicit;us("routerLink",Su(3,k1))("queryParams",Au(4,w1,n.id)),Oa(1),el(n.name)}}function x1(e,t){if(1&e&&(ds(0,"div"),ds(1,"mat-card-title"),Js(2,"Favorite Topics"),hs(),ds(3,"mat-chip-list"),os(4,C1,2,6,"mat-chip",5),hs(),hs()),2&e){var n=As();Oa(4),us("ngForOf",n.favoriteTopics)}}var S1=function(e){return{ages:e}};function A1(e,t){if(1&e&&(ds(0,"mat-chip",6),Js(1),hs()),2&e){var n=t.$implicit,i=As(2);us("routerLink",Su(3,k1))("queryParams",Au(4,S1,n)),Oa(1),el(i.ageLabels[n])}}function O1(e,t){if(1&e&&(ds(0,"div",7),ds(1,"mat-card-title"),Js(2,"Favorite Age Ranges"),hs(),ds(3,"mat-chip-list"),os(4,A1,2,6,"mat-chip",5),hs(),hs()),2&e){var n=As();Oa(4),us("ngForOf",n.favoriteAges)}}var E1=function(e){return{languages:e}};function T1(e,t){if(1&e&&(ds(0,"mat-chip",6),Js(1),hs()),2&e){var n=t.$implicit,i=As(2);us("routerLink",Su(3,k1))("queryParams",Au(4,E1,n)),Oa(1),el(i.languageLabels[n])}}function P1(e,t){if(1&e&&(ds(0,"div",8),ds(1,"mat-card-title"),Js(2,"Favorite Languages"),hs(),ds(3,"mat-chip-list"),os(4,T1,2,6,"mat-chip",5),hs(),hs()),2&e){var n=As();Oa(4),us("ngForOf",n.favoriteLanguages)}}var D1=function(e){return["/covid19-resources/",e]};function M1(e,t){if(1&e&&(ds(0,"mat-chip",11),Js(1),hs()),2&e){var n=t.$implicit,i=As(2);us("routerLink",Au(4,D1,Au(2,w1,n))),Oa(1),el(i.covid19Labels[n].split(": ")[0])}}function I1(e,t){if(1&e&&(ds(0,"div",9),ds(1,"mat-card-title"),Js(2,"COVID-19 Topics"),hs(),ds(3,"mat-chip-list"),os(4,M1,2,6,"mat-chip",10),hs(),hs()),2&e){var n=As();Oa(4),us("ngForOf",n.favoriteCovid19Topics)}}var R1,L1=((R1=function(){function e(t,n){b(this,e),this.api=t,this.dialog=n,this.favoriteTopics=[],this.favoriteAges=[],this.favoriteLanguages=[],this.favoriteCovid19Topics=[],this.ageLabels=cK.labels,this.languageLabels=dK.labels,this.covid19Labels=hK.labels}return w(e,[{key:"ngOnInit",value:function(){this.loadFavorites()}},{key:"loadFavorites",value:function(){var e=this;this.api.getFavoritesByUserAndType(this.currentUser,"category").subscribe(function(t){e.favoriteTopics=t.map(function(e){return e.category})}),this.api.getFavoritesByUserAndType(this.currentUser,"age_range").subscribe(function(t){e.favoriteAges=t.map(function(e){return e.age_range})}),this.api.getFavoritesByUserAndType(this.currentUser,"language").subscribe(function(t){e.favoriteLanguages=t.map(function(e){return e.language})}),this.api.getFavoritesByUserAndType(this.currentUser,"covid19_category").subscribe(function(t){e.favoriteCovid19Topics=t.map(function(e){return e.covid19_category})})}},{key:"openFavoriteTopicsDialog",value:function(){var e=this;this.dialog.open(b1,{maxWidth:"100vw",maxHeight:"100vh",data:{user:this.currentUser,topics:this.favoriteTopics,ages:this.favoriteAges,languages:this.favoriteLanguages,covid19_categories:this.favoriteCovid19Topics}}).afterClosed().subscribe(function(t){if(t){var n=[];t.topics.forEach(function(t){n.push(new yK({user_id:e.currentUser.id,type:"category",category_id:t.id}))}),t.ages.forEach(function(t){n.push(new yK({user_id:e.currentUser.id,type:"age_range",age_range:t}))}),t.languages.forEach(function(t){n.push(new yK({user_id:e.currentUser.id,type:"language",language:t}))}),t.covid19_categories.forEach(function(t){n.push(new yK({user_id:e.currentUser.id,type:"covid19_category",covid19_category:t}))}),e.api.addUserFavorites(n).subscribe(),e.favoriteTopics=t.topics,e.favoriteAges=t.ages,e.favoriteLanguages=t.languages,e.favoriteCovid19Topics=t.covid19_categories}})}}]),e}()).\u0275fac=function(e){return new(e||R1)(ls(x$),ls(qD))},R1.\u0275cmp=pt({type:R1,selectors:[["app-favorite-topics"]],inputs:{currentUser:"currentUser"},decls:10,vars:4,consts:[[4,"ngIf"],["id","ages","class","margin-top",4,"ngIf"],["id","languages","class","margin-top",4,"ngIf"],["id","covid19_categories","class","margin-top",4,"ngIf"],["mat-flat-button","",3,"click"],["color","primary","selected","",3,"routerLink","queryParams",4,"ngFor","ngForOf"],["color","primary","selected","",3,"routerLink","queryParams"],["id","ages",1,"margin-top"],["id","languages",1,"margin-top"],["id","covid19_categories",1,"margin-top"],["color","accent","selected","",3,"routerLink",4,"ngFor","ngForOf"],["color","accent","selected","",3,"routerLink"]],template:function(e,t){1&e&&(os(0,x1,5,1,"div",0),os(1,O1,5,1,"div",1),os(2,P1,5,1,"div",2),os(3,I1,5,1,"div",3),ds(4,"p"),Js(5,"To add or remove topics, please click Manage My Topics below"),hs(),ds(6,"button",4),ks("click",function(){return t.openFavoriteTopicsDialog()}),ds(7,"mat-icon"),Js(8,"grade"),hs(),Js(9," Manage My Topics"),hs()),2&e&&(us("ngIf",t.favoriteTopics.length>0),Oa(1),us("ngIf",t.favoriteAges&&t.favoriteAges.length>0),Oa(1),us("ngIf",t.favoriteLanguages&&t.favoriteLanguages.length>0),Oa(1),us("ngIf",t.favoriteCovid19Topics&&t.favoriteCovid19Topics.length>0))},directives:[wh,kP,BR,HP,kD,bh,gD,TX],styles:["p[_ngcontent-%COMP%]{margin:1em}"]}),R1);function F1(e,t){1&e&&(ds(0,"div"),ds(1,"h1"),Js(2,"Please Log in or Create an Account"),hs(),ds(3,"p"),Js(4,"You are not currently logged in."),hs(),hs())}function N1(e,t){if(1&e){var n=vs();ds(0,"div"),ds(1,"div",3),ds(2,"div",4),ds(3,"h2"),Js(4,"Welcome!"),hs(),ds(5,"p"),Js(6,"Thank you for creating an account on Autism DRIVE. We would like to learn a little more about you, so we can connect you with the best possible resources. To create your profile, please select all the items below that describe you. If appropriate, you will have additional opportunities to create profiles for your children or dependents after completing your own profile. Once we have this information we can connect you to current and future research studies, and together, find ways to improve the lives of people living with autism."),hs(),ds(7,"form",5),fs(8,"formly-form",6),ds(9,"button",7),ks("click",function(){return rn(n),As(2).createMeta()}),Js(10,"Submit"),hs(),hs(),hs(),hs(),hs()}if(2&e){var i=As(2);Oa(7),us("formGroup",i.form),Oa(1),us("model",i.model)("fields",i.fields)("options",i.options)("form",i.form)}}function V1(e,t){if(1&e&&(ds(0,"div"),fs(1,"app-profile-meta",8),hs()),2&e){var n=As(2);Oa(1),us("user",n.user)("meta",n.userMeta)}}function B1(e,t){1&e&&(ds(0,"p"),Js(1," You indicated that you are a professional working in Autism research and treatment. Once your profile is complete we will be able to notify you about important updates. "),hs())}function H1(e,t){1&e&&(ds(0,"p"),Js(1," Once your profile is complete we will be able to notify you about important updates. "),hs())}function z1(e,t){1&e&&(ds(0,"p"),Js(1," Once your profile is complete, you\u2019ll be able to enroll in any relevant currently-running studies. "),hs())}function G1(e,t){1&e&&(ds(0,"p"),Js(1," Once your complete your profile and the profiles of your dependents, you\u2019ll be able to enroll them in any relevant currently-running studies. "),hs())}function j1(e,t){1&e&&fs(0,"app-loading",11)}function U1(e,t){if(1&e&&fs(0,"app-participant-profile",14),2&e){var n=t.$implicit,i=As(4);Ds("id","dependent_participant_",n.id,""),us("participant",n)("user",i.user)}}function W1(e,t){1&e&&(ds(0,"p"),Js(1,"In order to add a dependent you must complete your own profile first"),hs())}function q1(e,t){if(1&e){var n=vs();ds(0,"button",26),ks("click",function(e){return rn(n),As(5).enrollDependent(e)}),Js(1,"Create another profile "),hs()}2&e&&us("disabled",As(5).selfPercentComplete<100)}function Y1(e,t){if(1&e&&(ds(0,"div",24),os(1,W1,2,0,"p",2),os(2,q1,2,1,"button",25),hs()),2&e){var n=As(4);Oa(1),us("ngIf",n.selfPercentComplete<100),Oa(1),us("ngIf",n.user.getSelf())}}function Q1(e,t){if(1&e&&(ds(0,"mat-list-item"),ds(1,"a",29),Js(2),hs(),ds(3,"p",30),Js(4),hs(),hs()),2&e){var n=t.$implicit;Oa(1),Ds("href","/#/study/",n.study.id,"",Pr),Oa(1),el(n.study.short_title),Oa(2),el(n.study.short_description)}}function X1(e,t){if(1&e&&(ds(0,"div",27),ds(1,"mat-card-subtitle"),Js(2,"Studies about which you have inquired"),hs(),os(3,Q1,5,3,"mat-list-item",28),hs()),2&e){var n=As(4);Oa(3),us("ngForOf",n.studyInquiries)}}function $1(e,t){if(1&e&&(ds(0,"mat-list-item"),ds(1,"a",29),Js(2),hs(),ds(3,"p",30),Js(4),hs(),hs()),2&e){var n=t.$implicit;Oa(1),Ds("href","/#/study/",n.id,"",Pr),Oa(1),el(n.short_title),Oa(2),el(n.short_description)}}function K1(e,t){if(1&e&&(ds(0,"div",31),ds(1,"mat-card-subtitle"),Js(2,"All currently-enrolling studies"),hs(),os(3,$1,5,3,"mat-list-item",28),hs()),2&e){var n=As(4);Oa(3),us("ngForOf",n.currentStudies)}}function Z1(e,t){if(1&e&&(ds(0,"div",12),ds(1,"div",12),ds(2,"div",13),fs(3,"app-participant-profile",14),os(4,U1,1,3,"app-participant-profile",15),hs(),os(5,Y1,3,2,"div",16),hs(),ds(6,"div"),ds(7,"mat-card"),ds(8,"mat-tab-group"),ds(9,"mat-tab",17),ds(10,"mat-card-title"),Js(11,"Research Studies"),hs(),ds(12,"mat-card-content"),ds(13,"mat-list"),os(14,X1,4,1,"div",18),os(15,K1,4,1,"div",19),hs(),hs(),hs(),ds(16,"mat-tab",20),fs(17,"app-favorite-resources",21),hs(),ds(18,"mat-tab",22),fs(19,"app-favorite-topics",23),hs(),hs(),hs(),hs(),hs()),2&e){var n=As(3);Oa(3),Ds("id","self_participant_",n.self.id,""),us("participant",n.self)("user",n.user),Oa(1),us("ngForOf",n.dependents),Oa(1),us("ngIf",n.user.getSelf().relationship!==n.relationships.SELF_INTERESTED),Oa(9),us("ngIf",n.studyInquiries&&n.studyInquiries.length>0),Oa(1),us("ngIf",n.currentStudies&&n.currentStudies.length>0),Oa(2),us("favoriteResources",n.favoriteResources),Oa(2),us("currentUser",n.user)}}function J1(e,t){if(1&e&&(ds(0,"div"),ds(1,"h1"),Js(2,"Manage Your Profiles"),hs(),ds(3,"div"),os(4,B1,2,0,"p",2),os(5,H1,2,0,"p",2),os(6,z1,2,0,"p",2),os(7,G1,2,0,"p",2),os(8,j1,1,0,"app-loading",9),os(9,Z1,20,9,"div",10),hs(),hs()),2&e){var n=As(2);Oa(4),us("ngIf",n.user.getSelf().relationship===n.relationships.SELF_PROFESSIONAL),Oa(1),us("ngIf",n.user.getSelf().relationship===n.relationships.SELF_INTERESTED),Oa(1),us("ngIf",n.user.getSelf().relationship===n.relationships.SELF_PARTICIPANT),Oa(1),us("ngIf",n.user.getSelf().relationship===n.relationships.SELF_GUARDIAN),Oa(1),us("ngIf",n.loading),Oa(1),us("ngIf",!n.loading)}}function e2(e,t){if(1&e&&(ds(0,"div",1),os(1,F1,5,0,"div",2),os(2,N1,11,5,"div",2),os(3,V1,2,2,"div",2),os(4,J1,10,6,"div",2),hs()),2&e){var n=As();Oa(1),us("ngIf",n.getState()===n.possibleStates.NEEDS_USER),Oa(1),us("ngIf",n.getState()===n.possibleStates.NEEDS_META),Oa(1),us("ngIf",n.getState()===n.possibleStates.NEEDS_PARTICIPANT),Oa(1),us("ngIf",n.getState()===n.possibleStates.HAS_PARTICIPANT)}}var t2,n2=function(e){return e.NEEDS_USER="NEEDS_USER",e.NEEDS_META="NEEDS_META",e.NEEDS_PARTICIPANT="NEEDS_PARTICIPANT",e.HAS_PARTICIPANT="PARTICIPANT",e}({}),i2=((t2=function(){function e(t,n,i,r){var a=this;b(this,e),this.authenticationService=t,this.api=n,this.router=i,this.route=r,this.possibleStates=n2,this.forceMetaFormState=!1,this.relationships=p$,this.loading=!0,this.form=new Pk({}),this.model=new g$({}),this.options={},this.fields=[{validators:{fieldMatch:{expression:function(e){var t=e.value,n=t.self_participant,i=t.guardian,r=t.professional,a=t.interested;return!!(n||i||r||a)},message:"Please select at least one option."}},wrappers:["group-validation"],fieldGroup:[{key:"self_participant",type:"checkbox",templateOptions:{label:"I am autistic/I have autism",indeterminate:!1,class:"self_participant"}},{key:"self_has_guardian",type:"radio",templateOptions:{label:"Do you have a legal guardian?",options:[{value:!0,label:"Yes",id:"1"},{value:!1,label:"No",id:"2"}]},expressionProperties:{"templateOptions.required":"model.self_participant"},hideExpression:"!model.self_participant"},{key:"guardian",type:"checkbox",className:"guardian",templateOptions:{label:"I am the parent/legal guardian of someone with autism",indeterminate:!1}},{key:"guardian_has_dependent",type:"radio",className:"guardian_has_dependent",templateOptions:{label:"Are you their legal guardian?",options:[{value:!0,label:"Yes",id:"3"},{value:!1,label:"No",id:"4"}]},expressionProperties:{"templateOptions.required":"model.guardian"},hideExpression:"!model.guardian"},{key:"professional",type:"checkbox",templateOptions:{label:"I am a professional who works with the autism community",indeterminate:!1}},{key:"interested",type:"checkbox",templateOptions:{label:"None of the above, but I am interested in autism research and resources",indeterminate:!1}}]}],this.route.queryParams.subscribe(function(e){console.log("Params",e),e.hasOwnProperty("meta")&&(a.forceMetaFormState=!0)}),this.authenticationService.currentUser.subscribe(function(e){a.user=e,console.log(e),a.self=e.getSelf(),a.dependents=e.getDependents(),a.api.getUserMeta(e.id).subscribe(function(e){console.log("UserMeta",e),a.userMeta=e,a.loading=!1},function(e){console.error(e),a.loading=!1})},function(e){console.error(e),a.user=null,a.loading=!1})}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.refreshParticipants(),this.api.getUserStudyInquiries(this.user.id).subscribe(function(t){return e.studyInquiries=t}),this.api.getStudies().subscribe(function(t){e.currentStudies=t.filter(function(e){return"currently_enrolling"===e.status})}),this.favoriteResources=this.user.user_favorites.filter(function(e){return"resource"===e.type}).map(function(e){return e.resource}).sort(function(e){return e.id})}},{key:"refreshParticipants",value:function(){var e=this;this.user&&this.api.getUser(this.user.id).subscribe(function(t){var n=new v$(t);e.self=n.getSelf(),e.dependents=n.getDependents(),n.getSelf()&&e.api.getFlow(n.getSelf().getFlowName(),n.getSelf().id).subscribe(function(t){e.selfPercentComplete=t.percentComplete(),console.log("selfPercentComplete",e.selfPercentComplete)})})}},{key:"getState",value:function(){return this.user?void 0===this.userMeta||this.forceMetaFormState?n2.NEEDS_META:void 0===this.user.getSelf()?n2.NEEDS_PARTICIPANT:n2.HAS_PARTICIPANT:n2.NEEDS_USER}},{key:"enrollDependent",value:function(e){e.preventDefault(),this.router.navigate(["terms",p$.DEPENDENT])}},{key:"createMeta",value:function(){var e=this;this.form.valid&&(this.model.id=this.user.id,this.api.addUserMeta(this.model).subscribe(function(t){e.userMeta=t,e.forceMetaFormState=!1}))}}]),e}()).\u0275fac=function(e){return new(e||t2)(ls(y$),ls(x$),ls(EX),ls(oQ))},t2.\u0275cmp=pt({type:t2,selectors:[["app-profile"]],decls:1,vars:1,consts:[["class","profile mat-typography",4,"ngIf"],[1,"profile","mat-typography"],[4,"ngIf"],["fxLayout","row","fxLayout.lt-lg","column","fxLayoutGap","2em",1,"meta-form"],["fxFlex","100%"],["id","meta-form",3,"formGroup"],[3,"model","fields","options","form"],["id","submit_meta","mat-flat-button","","type","submit","color","accent",3,"click"],[3,"user","meta"],["message","Loading...",4,"ngIf"],["fxLayout","column","fxLayoutGap","40px grid",4,"ngIf"],["message","Loading..."],["fxLayout","column","fxLayoutGap","40px grid"],["fxLayout","row wrap","fxLayoutGap","40px grid"],[3,"participant","user","id"],[3,"participant","user","id",4,"ngFor","ngForOf"],["fxFlex","60%",4,"ngIf"],["label","My Studies"],["id","study-inquiries",4,"ngIf"],["id","current-studies",4,"ngIf"],["label","My Resources"],[3,"favoriteResources"],["label","My Topics"],[3,"currentUser"],["fxFlex","60%"],["mat-flat-button","","color","primary","id","enroll_dependent",3,"disabled","click",4,"ngIf"],["mat-flat-button","","color","primary","id","enroll_dependent",3,"disabled","click"],["id","study-inquiries"],[4,"ngFor","ngForOf"],["mat-line","",3,"href"],["mat-line",""],["id","current-studies"]],template:function(e,t){1&e&&os(0,e2,5,4,"div",0),2&e&&us("ngIf",t.user)},directives:[wh,Xy,n_,v_,Vk,Jb,qk,yj,kP,Q0,zZ,s1,bh,jP,hz,nz,HP,BP,JR,d1,L1,zP,nL,bA],styles:[".profile[_ngcontent-%COMP%]{margin:2%}mat-card-subtitle[_ngcontent-%COMP%]{font-weight:700;font-size:large}button[_ngcontent-%COMP%]{white-space:pre-wrap!important}.tiles[_ngcontent-%COMP%]{margin:4em 0;text-align:center}.meta-form[_ngcontent-%COMP%]{max-width:80%;margin:auto} .mat-checkbox-label{white-space:normal;margin-top:-1em} .mat-checkbox-layout{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:start;align-items:flex-start;-ms-flex-pack:start;justify-content:flex-start;vertical-align:top} .mat-checkbox-inner-container{margin-top:-.7em!important}"]}),t2),r2=function(e){return e.replace(/([-_][a-z]|^[a-z])/gi,function(e){return e.toUpperCase().replace("-"," ").replace("_"," ")})},a2=function(){function e(t){b(this,e),this.api=t,this.stepSubject=new ep([]),this.countSubject=new ep(0),this.loadingSubject=new ep(!1)}return w(e,[{key:"connect",value:function(e){return this.stepSubject.asObservable()}},{key:"disconnect",value:function(e){this.stepSubject.complete(),this.loadingSubject.complete(),this.countSubject.complete()}},{key:"loadQuestionnaires",value:function(e){var t=this;this.loadingSubject.next(!0),this.api.getQuestionnaireList(e).subscribe(function(e){t.stepSubject.next(e)})}}]),e}(),o2=function(e){return{selected:e}};function s2(e,t){if(1&e){var n=vs();ds(0,"span"),ds(1,"button",6),ks("click",function(){rn(n);var e=t.$implicit;return As(2).changeTable(e)}),Js(2),hs(),hs()}if(2&e){var i=t.$implicit,r=As(2);Oa(1),us("ngClass",Au(2,o2,r.selected_info==i)),Oa(1),tl(" ",i.display_name," ")}}function l2(e,t){if(1&e){var n=vs();ds(0,"div"),ds(1,"h3"),Js(2,"Related Tables"),hs(),ds(3,"p"),Js(4,"This questionnaire contains some related tables that contain additional details. Use these buttons to change the view and look at sub-tables."),hs(),ds(5,"button",6),ks("click",function(){rn(n);var e=As();return e.changeTable(e.questionnaire_info)}),Js(6),hs(),os(7,s2,3,4,"span",3),hs()}if(2&e){var i=As();Oa(5),us("ngClass",Au(3,o2,i.selected_info==i.questionnaire_info)),Oa(1),tl(" ",i.questionnaire_info.display_name," "),Oa(1),us("ngForOf",i.questionnaire_info.sub_tables)}}function u2(e,t){if(1&e&&(ds(0,"th",10),Js(1),hs()),2&e){var n=As().$implicit,i=As();Oa(1),tl(" ",i.snakeToUpperCase(n.name)," ")}}function c2(e,t){if(1&e&&(ds(0,"td",11),Js(1),hs()),2&e){var n=t.$implicit,i=As().$implicit,r=As();Oa(1),tl(" ",r.format_element(n,i),"")}}function d2(e,t){if(1&e&&(ds(0,"div"),ps(1,7),os(2,u2,2,1,"th",8),os(3,c2,2,1,"td",9),ms(),hs()),2&e){var n=t.$implicit;Oa(1),Ps("matColumnDef",n.name)}}function h2(e,t){1&e&&fs(0,"tr",12)}function f2(e,t){1&e&&fs(0,"tr",13)}var p2,m2=((p2=function(){function e(t){b(this,e),this.api=t,this.displayedColumns=[],this.columnNames=[]}return w(e,[{key:"snakeToUpperCase",get:function(){return r2}},{key:"ngOnChanges",value:function(){this.selected_info=this.questionnaire_info,this.changeTable(this.selected_info)}},{key:"changeTable",value:function(e){this.selected_info=e,this.dataSource=new a2(this.api),this.dataSource.loadQuestionnaires(this.selected_info.table_name),this.load_columns()}},{key:"load_columns",value:function(){var e=this;this.displayedColumns=[],this.columnNames=[],this.api.getQuestionnaireListMeta(this.selected_info.table_name).subscribe(function(t){var n,i=s(t.fields);try{for(i.s();!(n=i.n()).done;){var r=n.value;e.displayedColumns.includes(r.name)||e.displayedColumns.push({name:r.name,type:r.type}),e.columnNames.includes(r.name)||e.columnNames.push(r.name)}}catch(a){i.e(a)}finally{i.f()}})}},{key:"format_element",value:function(e,t){return"DATETIME"===t.type?new Date(e[t.name]).toUTCString():e[t.name]}},{key:"exportQ",value:function(e){this.api.exportQuestionnaire(e.table_name).subscribe(function(e){console.log("data",e);var t=e.headers.get("x-filename"),n=new Blob([e.body],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),i=URL.createObjectURL(n),r=document.createElement("a");r.href=i,r.download=t,window.document.body.appendChild(r),r.click(),window.document.body.removeChild(r),URL.revokeObjectURL(i)})}}]),e}()).\u0275fac=function(e){return new(e||p2)(ls(x$))},p2.\u0275cmp=pt({type:p2,selectors:[["app-questionnaire-data-table"]],inputs:{questionnaire_info:"questionnaire_info"},features:[It],decls:9,vars:7,consts:[["mat-flat-button","","color","accent",3,"click"],[4,"ngIf"],[3,"dataSource"],[4,"ngFor","ngForOf"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-flat-button","","color","accent",3,"ngClass","click"],[3,"matColumnDef"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(ds(0,"h2"),Js(1),hs(),ds(2,"button",0),ks("click",function(){return t.exportQ(t.questionnaire_info)}),Js(3),hs(),os(4,l2,8,5,"div",1),ds(5,"mat-table",2),os(6,d2,4,1,"div",3),os(7,h2,1,0,"tr",4),os(8,f2,1,0,"tr",5),hs()),2&e&&(Oa(1),el(t.questionnaire_info.display_name),Oa(2),tl(" Export ",t.questionnaire_info.display_name," Data\n"),Oa(1),us("ngIf",t.questionnaire_info.sub_tables.length>0),Oa(1),us("dataSource",t.dataSource),Oa(1),us("ngForOf",t.displayedColumns),Oa(1),us("matHeaderRowDef",t.columnNames),Oa(1),us("matRowDefColumns",t.columnNames))},directives:[kP,wh,BB,bh,KB,JB,yh,ly,WB,jB,zB,YB,XB,tH,iH],styles:["td.mat-cell[_ngcontent-%COMP%], th.mat-header-cell[_ngcontent-%COMP%]{padding-right:1em}button[_ngcontent-%COMP%]{margin-bottom:2em;margin-left:2em}button.mat-flat-button.mat-accent.selected[_ngcontent-%COMP%]{background:#232d4b}"]}),p2);function g2(e,t){if(1&e){var n=vs();ds(0,"mat-list",8),ds(1,"mat-list-item"),ds(2,"mat-icon",9),Js(3),hs(),Js(4),ds(5,"button",10),ks("click",function(){rn(n);var e=t.$implicit;return As().selectQuestionnaire(e)}),Js(6),hs(),hs(),hs()}if(2&e){var i=t.$implicit;Oa(3),el(i.getIcon()),Oa(1),tl(" (",i.size,") "),Oa(1),us("disabled",0==i.size),Oa(1),el(i.display_name)}}function v2(e,t){if(1&e&&(ds(0,"mat-drawer-content",11),fs(1,"app-questionnaire-data-table",12),hs()),2&e){var n=As();Oa(1),us("questionnaire_info",n.currentQuestionnaire)}}var y2,_2=((y2=function(){function e(t,n,i){b(this,e),this.api=t,this.sidebarOpen=!0,this.mobileQuery=i.matchMedia("(max-width: 600px)"),this._mobileQueryListener=function(){return n.detectChanges()},this.mobileQuery.addListener(this._mobileQueryListener),window.addEventListener("resize",this._mobileQueryListener)}return w(e,[{key:"snakeToUpperCase",get:function(){return r2}},{key:"ngOnInit",value:function(){var e=this;this.api.getQuestionnaireInfoList().subscribe(function(t){e.questionnaire_info=t})}},{key:"ngOnDestroy",value:function(){this.mobileQuery.removeListener(this._mobileQueryListener),window.removeEventListener("resize",this._mobileQueryListener)}},{key:"selectQuestionnaire",value:function(e){return this.currentQuestionnaire=e,this.sidebarOpen=!1,this.currentQuestionnaire}},{key:"exportAll",value:function(){console.log("clicking the button for export all"),this.api.exportQuestionnaire("all").subscribe(function(e){console.log("data",e);var t=e.headers.get("x-filename"),n=new Blob([e.body],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),i=URL.createObjectURL(n),r=document.createElement("a");r.href=i,r.download=t,window.document.body.appendChild(r),r.click(),window.document.body.removeChild(r),URL.revokeObjectURL(i)})}}]),e}()).\u0275fac=function(e){return new(e||y2)(ls(x$),ls(Jl),ls(cF))},y2.\u0275cmp=pt({type:y2,selectors:[["app-questionnaire-data-view"]],decls:14,vars:4,consts:[[1,"mat-typography"],["fxLayout","row","fxLayoutAlign","auto center"],["mat-fab","","color","primary",3,"click"],["mat-flat-button","","color","accent",3,"click"],[3,"mode","opened","openedChange"],["sidenav",""],["class","data-list","dense","",4,"ngFor","ngForOf"],["class","pad-2",4,"ngIf"],["dense","",1,"data-list"],["matListIcon",""],["mat-button","",3,"disabled","click"],[1,"pad-2"],[3,"questionnaire_info"]],template:function(e,t){if(1&e){var n=vs();ds(0,"div",0),ds(1,"div"),ds(2,"div",1),ds(3,"h1"),ds(4,"button",2),ks("click",function(){return rn(n),ss(11).toggle()}),ds(5,"mat-icon"),Js(6,"menu"),hs(),hs(),hs(),ds(7,"button",3),ks("click",function(){return t.exportAll()}),Js(8," Export All "),hs(),hs(),ds(9,"mat-drawer-container"),ds(10,"mat-drawer",4,5),ks("openedChange",function(e){return t.sidebarOpen=e}),os(12,g2,7,4,"mat-list",6),hs(),os(13,v2,2,1,"mat-drawer-content",7),hs(),hs(),hs()}2&e&&(Oa(10),us("mode","over")("opened",t.sidebarOpen),Oa(2),us("ngForOf",t.questionnaire_info),Oa(1),us("ngIf",t.currentQuestionnaire))},directives:[Xy,eb,kP,BR,$N,XN,bh,wh,JR,nL,tL,QN,m2],styles:["mat-drawer-container[_ngcontent-%COMP%]{min-height:100vh}mat-drawer-container[_ngcontent-%COMP%], mat-drawer-content[_ngcontent-%COMP%]{background-color:#fff}.pad-2[_ngcontent-%COMP%]{padding:2em}button[_ngcontent-%COMP%]{margin:2em}"]}),y2);function b2(e,t){if(1&e&&(ds(0,"div",16),Js(1),hs()),2&e){var n=As(2);Oa(1),el(n.errorMessage)}}function k2(e,t){if(1&e){var n=vs();ds(0,"footer",17),ds(1,"button",18),Js(2,"Next"),hs(),ds(3,"button",19),ks("click",function(e){return rn(n),As(2).goHome(e)}),Js(4,"Cancel"),hs(),hs()}}function w2(e,t){1&e&&(ds(0,"footer"),fs(1,"app-loading"),hs())}function C2(e,t){if(1&e&&(ds(0,"formly-form",12),os(1,b2,2,1,"div",13),os(2,k2,5,0,"footer",14),os(3,w2,2,0,"footer",15),hs()),2&e){var n=As();us("form",n.form)("fields",n.fields)("model",n.model),Oa(1),us("ngIf",n.errorMessage),Oa(1),us("ngIf","form"===n.registerStateValue),Oa(1),us("ngIf","submitting"===n.registerStateValue)}}function x2(e,t){if(1&e){var n=vs();ds(0,"footer",20),ds(1,"h2"),Js(2,"Account Created!"),hs(),ds(3,"p"),Js(4,"Please check your email to complete the signin process."),hs(),ds(5,"button",21),ks("click",function(e){return rn(n),As().goHome(e)}),Js(6," Continue to browse "),hs(),hs()}}var S2,A2=((S2=function(){function e(t,n,i,r,a,o){b(this,e),this.api=t,this.changeDetectorRef=n,this.router=i,this.route=r,this.googleAnalytics=a,this.meta=o,this.errorMessage="",this.form=new Pk({}),this.model={},this.fields=[{key:"email",type:"input",templateOptions:{type:"email",label:"Email Address:",placeholder:"Enter email",required:!0},validators:{validation:["email"]}}],this._stateSubject=new ep("form"),this.registerState=this._stateSubject.asObservable(),this.user=new v$({id:null,email:this.model.email,role:"User"}),this.meta.updateTag({property:"og:image",content:location.origin+"/assets/join/hero.jpg"},"property='og:image'"),this.meta.updateTag({property:"og:image:secure_url",content:location.origin+"/assets/join/hero.jpg"},"property='og:image:secure_url'"),this.meta.updateTag({name:"twitter:image",content:location.origin+"/assets/join/hero.jpg"},"name='twitter:image'")}return w(e,[{key:"ngOnInit",value:function(){}},{key:"submit",value:function(){var e=this;localStorage.removeItem("token_url"),localStorage.setItem("returnUrl",this.route.snapshot.queryParams.returnUrl),this.form.valid&&(this._stateSubject.next("submitting"),this.registerState=this._stateSubject.asObservable(),this.errorMessage="",this.user.email=this.model.email,this.api.addUser(this.user).subscribe(function(t){e.user=t,t.hasOwnProperty("token_url")&&localStorage.setItem("token_url",t.token_url),e.googleAnalytics.accountEvent("register"),e._stateSubject.next("wait_for_email"),e.registerState=e._stateSubject.asObservable(),e.changeDetectorRef.detectChanges()},function(t){e._stateSubject.next("form"),e.registerState=e._stateSubject.asObservable(),e.errorMessage=t,e.changeDetectorRef.detectChanges()}))}},{key:"goHome",value:function(e){e.preventDefault(),this.router.navigate(["home"])}},{key:"registerStateValue",get:function(){return this._stateSubject.value}}]),e}()).\u0275fac=function(e){return new(e||S2)(ls(x$),ls(Jl),ls(EX),ls(oQ),ls(h$),ls(Yf))},S2.\u0275cmp=pt({type:S2,selectors:[["app-register"]],decls:33,vars:3,consts:[["id","hero",1,"gradient-overlay","container","with-escaping-tiles"],["fxLayoutAlign","center","id","TopOfJoin",1,"row","escaping-tiles-2x"],[1,"form","border-box"],[3,"formGroup","ngSubmit"],[3,"form","fields","model",4,"ngIf"],["id","confirmation_message",4,"ngIf"],[1,"register-container"],["fxLayout","column","fxLayoutGap","10px","fxFlex.gt-md","80%",1,"row","mat-typography"],[1,"bold-title"],["href","/#/studies"],["href","/#/uva-education"],["href","/#/search"],[3,"form","fields","model"],["id","error_message","class","display mat-error",4,"ngIf"],["fxLayout","column","fxLayoutGap","2%","fxLayoutAlign","center",4,"ngIf"],[4,"ngIf"],["id","error_message",1,"display","mat-error"],["fxLayout","column","fxLayoutGap","2%","fxLayoutAlign","center"],["mat-flat-button","","type","submit","color","primary","id","submit"],["mat-flat-button","","color","accent","id","cancel",3,"click"],["id","confirmation_message"],["color","primary","mat-flat-button","","id","continue",3,"click"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"div",1),ds(2,"div",2),ds(3,"h1"),Js(4,"Join Autism DRIVE"),hs(),ds(5,"form",3),ks("ngSubmit",function(){return t.submit()}),os(6,C2,4,6,"formly-form",4),os(7,x2,7,0,"footer",5),hs(),hs(),hs(),hs(),ds(8,"div",6),ds(9,"div",7),ds(10,"div"),ds(11,"h1",8),Js(12,"The more people take part in autism research, the faster we can promote positive outcomes"),hs(),ds(13,"p"),Js(14,"We are seeking adults with autism, children with autism and their families, and professionals to join us! If you complete our short registration process, you can be connected with researchers about study opportunities that "),ds(15,"i"),Js(16,"are relevant to you."),hs(),hs(),hs(),ds(17,"div"),ds(18,"h2"),Js(19,"Many studies involve incentives like gift cards, testing reports, or access to interventions for free."),hs(),ds(20,"p"),Js(21,"Visit our "),ds(22,"a",9),Js(23,"studies page"),hs(),Js(24," and contact the study teams to learn more about what each study offers. Creating an account also gives you free access to content of our "),ds(25,"a",10),Js(26,"education"),hs(),Js(27," page and the opportunity to save your favorite resources from our "),ds(28,"a",11),Js(29,"statewide resources directory."),hs(),hs(),hs(),ds(30,"div"),ds(31,"h2"),Js(32,"We can\u2019t make a difference without you. Let\u2019s transform outcomes. Together."),hs(),hs(),hs(),hs()),2&e&&(Oa(5),us("formGroup",t.form),Oa(1),us("ngIf","wait_for_email"!==t.registerStateValue),Oa(1),us("ngIf","wait_for_email"===t.registerStateValue))},directives:[eb,Vk,Jb,qk,wh,Xy,n_,v_,yj,kP,zZ],styles:["#hero[_ngcontent-%COMP%]{background-image:url(/assets/join/hero.jpg);background-position:0 18%;padding-top:8rem;padding-bottom:8rem;background-size:100% auto}@media (max-width:768px){#hero[_ngcontent-%COMP%]{background-position:0 0}}#hero[_ngcontent-%COMP%] .hero-content[_ngcontent-%COMP%]{display:grid}@media (min-width:768px){#hero[_ngcontent-%COMP%] .hero-content[_ngcontent-%COMP%]{grid-template-columns:2fr 1fr}}@media (min-width:992px){#hero[_ngcontent-%COMP%] .hero-content[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr}}@media (min-width:1200px){#hero[_ngcontent-%COMP%] .hero-content[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr}}#hero[_ngcontent-%COMP%] .form.border-box[_ngcontent-%COMP%]{max-width:100%;background-color:#fff;color:#000;padding:2em}#hero[_ngcontent-%COMP%] .form.border-box[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .bold-title[_ngcontent-%COMP%]{text-transform:uppercase}.bold-title[_ngcontent-%COMP%]{font-size:1.8em;font-weight:700}.register-container[_ngcontent-%COMP%]{margin:1em}"]}),S2),O2=function(e){f(n,e);var t=m(n);function n(e){var i;for(var r in b(this,n),(i=t.call(this,e))._props=e,i._props)i._props.hasOwnProperty(r)&&(i[r]=i._props[r]);return i}return n}(pK);function E2(e,t){if(1&e){var n=vs();ds(0,"mat-chip",5),ks("click",function(){rn(n);var e=t.$implicit;return As(2).goFilter(["/search"],"related_topic",{queryParams:{category:e.category.id}})}),Js(1),hs()}if(2&e){var i=t.$implicit;Oa(1),el(i.category.name)}}function T2(e,t){if(1&e&&(ds(0,"div"),ds(1,"mat-card-title"),Js(2,"Related Topics"),hs(),ds(3,"mat-chip-list"),os(4,E2,2,1,"mat-chip",4),hs(),hs()),2&e){var n=As();Oa(4),us("ngForOf",n.categories)}}function P2(e,t){if(1&e){var n=vs();ds(0,"mat-chip",5),ks("click",function(){rn(n);var e=t.$implicit;return As(2).goFilter(["/search"],"related_age",{queryParams:{ages:e}})}),Js(1),hs()}if(2&e){var i=t.$implicit,r=As(2);Oa(1),el(r.ageLabels[i])}}function D2(e,t){if(1&e&&(ds(0,"div",6),ds(1,"mat-card-title"),Js(2,"Related Age Ranges"),hs(),ds(3,"mat-chip-list"),os(4,P2,2,1,"mat-chip",4),hs(),hs()),2&e){var n=As();Oa(4),us("ngForOf",n.ages)}}function M2(e,t){if(1&e){var n=vs();ds(0,"mat-chip",5),ks("click",function(){rn(n);var e=t.$implicit;return As(2).goFilter(["/search"],"related_language",{queryParams:{languages:e}})}),Js(1),hs()}if(2&e){var i=t.$implicit,r=As(2);Oa(1),el(r.languageLabels[i])}}function I2(e,t){if(1&e&&(ds(0,"div",7),ds(1,"mat-card-title"),Js(2,"Related Languages"),hs(),ds(3,"mat-chip-list"),os(4,M2,2,1,"mat-chip",4),hs(),hs()),2&e){var n=As();Oa(4),us("ngForOf",n.languages)}}function R2(e,t){if(1&e){var n=vs();ds(0,"mat-chip",10),ks("click",function(){rn(n);var e=t.$implicit;return As(2).goFilter(["/covid19-resources/",{category:e}],"related_covid19_topic",{queryParams:{covid19_categories:e}})}),Js(1),hs()}if(2&e){var i=t.$implicit,r=As(2);Oa(1),el(r.covid19Labels[i].split(": ")[0])}}function L2(e,t){if(1&e&&(ds(0,"div",8),ds(1,"mat-card-title"),Js(2,"COVID-19 Topics"),hs(),ds(3,"mat-chip-list"),os(4,R2,2,1,"mat-chip",9),hs(),hs()),2&e){var n=As();Oa(4),us("ngForOf",n.covid19_categories)}}var F2,N2=((F2=function(){function e(t,n){b(this,e),this.router=t,this.googleAnalytics=n,this.categories=[],this.ages=[],this.languages=[],this.covid19_categories=[],this.ageLabels=cK.labels,this.languageLabels=dK.labels,this.covid19Labels=hK.labels}return w(e,[{key:"ngOnInit",value:function(){}},{key:"goFilter",value:function(e,t,n){this.googleAnalytics.relatedContentEvent(t,this.parentComponent),this.router.navigate(e,n)}}]),e}()).\u0275fac=function(e){return new(e||F2)(ls(EX),ls(h$))},F2.\u0275cmp=pt({type:F2,selectors:[["app-filter-chips"]],inputs:{categories:"categories",ages:"ages",languages:"languages",covid19_categories:"covid19_categories",parentComponent:"parentComponent"},decls:5,vars:4,consts:[[4,"ngIf"],["id","ages","class","margin-top",4,"ngIf"],["id","languages","class","margin-top",4,"ngIf"],["id","covid19_categories","class","margin-top",4,"ngIf"],["color","primary","selected","",3,"click",4,"ngFor","ngForOf"],["color","primary","selected","",3,"click"],["id","ages",1,"margin-top"],["id","languages",1,"margin-top"],["id","covid19_categories",1,"margin-top"],["color","accent","selected","",3,"click",4,"ngFor","ngForOf"],["color","accent","selected","",3,"click"]],template:function(e,t){1&e&&(ds(0,"mat-card"),os(1,T2,5,1,"div",0),os(2,D2,5,1,"div",1),os(3,I2,5,1,"div",2),os(4,L2,5,1,"div",3),hs()),2&e&&(Oa(1),us("ngIf",t.categories.length>0),Oa(1),us("ngIf",t.ages&&t.ages.length>0),Oa(1),us("ngIf",t.languages&&t.languages.length>0),Oa(1),us("ngIf",t.covid19_categories&&t.covid19_categories.length>0))},directives:[jP,wh,HP,kD,bh,gD],styles:["mat-chip[_ngcontent-%COMP%]{cursor:pointer}.margin-top[_ngcontent-%COMP%]{margin-top:1em}"]}),F2);function V2(e,t){if(1&e){var n=vs();ds(0,"div"),ds(1,"button",1),ks("click",function(){return rn(n),As().openEdit()}),ds(2,"mat-icon"),Js(3,"edit"),hs(),hs(),hs()}if(2&e){var i=As();Oa(1),Ps("matTooltip",i.editLabel)}}var B2,H2=((B2=function(){function e(t){b(this,e),this.router=t}return w(e,[{key:"ngOnInit",value:function(){}},{key:"openEdit",value:function(){this.router.navigateByUrl(this.editLink)}}]),e}()).\u0275fac=function(e){return new(e||B2)(ls(EX))},B2.\u0275cmp=pt({type:B2,selectors:[["app-edit-button"]],inputs:{currentUser:"currentUser",editLabel:"editLabel",editLink:"editLink"},decls:1,vars:1,consts:[[4,"ngIf"],["mat-mini-fab","","color","accent","aria-label","Edit",3,"matTooltip","click"]],template:function(e,t){1&e&&os(0,V2,4,1,"div",0),2&e&&us("ngIf",t.currentUser&&t.currentUser.permissions.includes("edit_resource"))},directives:[wh,kP,CF,BR],styles:[""]}),B2);function z2(e,t){if(1&e&&(ds(0,"div",6),Js(1),hs()),2&e){var n=As(2);Oa(1),el(n.errorMessage)}}function G2(e,t){if(1&e&&(ds(0,"footer",7),ds(1,"button",8),Js(2,"Register"),hs(),ds(3,"button",9),Js(4,"Cancel"),hs(),hs()),2&e){var n=As(2);Oa(3),us("mat-dialog-close",n.data.registered)}}function j2(e,t){1&e&&(ds(0,"footer"),fs(1,"app-loading"),hs())}function U2(e,t){if(1&e&&(ds(0,"formly-form",2),os(1,z2,2,1,"div",3),os(2,G2,5,1,"footer",4),os(3,j2,2,0,"footer",5),hs()),2&e){var n=As();us("form",n.form)("fields",n.fields)("model",n.model),Oa(1),us("ngIf",n.errorMessage),Oa(1),us("ngIf","form"===n.registerStateValue),Oa(1),us("ngIf","submitting"===n.registerStateValue)}}var W2,q2=((W2=function(){function e(t,n,i,r,a,o,s){var l=this;b(this,e),this.api=t,this.changeDetectorRef=n,this.route=i,this.googleAnalytics=r,this.authenticationService=a,this.dialogRef=o,this.data=s,this.errorMessage="",this.form=new Pk({}),this.model={},this.fields=[{key:"first_name",type:"input",templateOptions:{label:"First Name:",required:!0}},{key:"last_name",type:"input",templateOptions:{label:"Last Name:",required:!0}},{key:"email",type:"input",templateOptions:{type:"email",label:"Email Address:",placeholder:"Enter email",required:!0},validators:{validation:["email"]}},{key:"emailConfirm",type:"input",templateOptions:{type:"email",label:"Confirm Email",placeholder:"Please re-enter your email",required:!0},validators:{validation:["emailConfirm"]}},{key:"zip_code",type:"input",templateOptions:{type:"number",label:"Zip Code:",max:99999,min:0,pattern:"\\d{5}",required:!0}},{key:"relationship_to_autism",type:"multicheckbox",templateOptions:{label:"Relationship to Autism:",description:"(select all that apply)",type:"array",options:[{value:"friend_colleague",label:"Friend/Colleague"},{value:"family_member",label:"Parent/Family Member"},{value:"self_advocate",label:"Individual With Autism"},{value:"professional",label:"Professional"},{value:"other",label:"Other"}],required:!0}},{key:"relationship_other",type:"input",templateOptions:{label:"How else are you related to Autism"},hideExpression:'!(model.relationship_to_autism && model.relationship_to_autism.includes("other"))'},{key:"marketing_channel",type:"multicheckbox",templateOptions:{label:"How did you find about the virtual event?:",description:"(select all that apply)",type:"array",options:[{value:"star_newsletter",label:"STAR e-newsletter"},{value:"facebook",label:"Facebook"},{value:"drive",label:"Autism DRIVE"},{value:"family_member",label:"Parent/Family Member"},{value:"friend_colleague",label:"Friend/Colleague"},{value:"other",label:"Other"}],required:!0}},{key:"marketing_other",type:"input",templateOptions:{label:"What other ways did you find out about this event"},hideExpression:'!(model.marketing_channel && model.marketing_channel.includes("other"))'},{key:"newsletter_consent",type:"checkbox",defaultValue:!0,templateOptions:{label:"Please sign me up for the STAR E-newsletter",description:"Send me notifications of workshops, information, events, and research opportunities offered by the UVA Supporting Transformative Autism Research Initiative and partnering organizations."}}],this._stateSubject=new ep("form"),this.registerState=this._stateSubject.asObservable(),this.authenticationService.currentUser.subscribe(function(e){e?(l.user=e,l.model.email=e.email,l.model.first_name=e.getSelf().identification.first_name,l.model.last_name=e.getSelf().identification.last_name,l.model.zip_code=e.getSelf().contact.zip):l.user=new v$({id:null,email:l.model.email,role:"User"})})}return w(e,[{key:"ngOnInit",value:function(){}},{key:"submit",value:function(){var e=this;localStorage.removeItem("token_url"),this.form.valid&&(this.model.event_id=this.data.event_id,null===this.user.id?(this._stateSubject.next("submitting"),this.registerState=this._stateSubject.asObservable(),this.errorMessage="",this.user.email=this.model.email,this.api.addUser(this.user).subscribe(function(t){e.user=t,e.model.user_id=e.user.id,e.api.submitRegistration(e.model).subscribe(),t.hasOwnProperty("token_url")&&localStorage.setItem("token_url",t.token_url),e.googleAnalytics.accountEvent("register"),e._stateSubject.next("wait_for_email"),e.registerState=e._stateSubject.asObservable(),e.changeDetectorRef.detectChanges(),e.data.registered=!0,e.dialogRef.close()},function(t){e._stateSubject.next("form"),e.registerState=e._stateSubject.asObservable(),e.errorMessage=t,e.changeDetectorRef.detectChanges()}),this.dialogRef.close()):(this.model.participant_id=this.user.getSelf().id,this.api.submitQuestionnaire("registration","registration_questionnaire",this.model).subscribe(function(){e.googleAnalytics.stepCompleteEvent("registration_questionnaire"),console.log("submitting questionnaire",e.model),e.dialogRef.close()})))}},{key:"registerStateValue",get:function(){return this._stateSubject.value}}]),e}()).\u0275fac=function(e){return new(e||W2)(ls(x$),ls(Jl),ls(oQ),ls(h$),ls(y$),ls(ID),ls(zD))},W2.\u0275cmp=pt({type:W2,selectors:[["app-event-registration-form"]],decls:5,vars:3,consts:[[3,"formGroup","ngSubmit"],[3,"form","fields","model",4,"ngIf"],[3,"form","fields","model"],["id","error_message","class","display mat-error",4,"ngIf"],["fxLayout","column","fxLayoutGap","2%","fxLayoutAlign","center",4,"ngIf"],[4,"ngIf"],["id","error_message",1,"display","mat-error"],["fxLayout","column","fxLayoutGap","2%","fxLayoutAlign","center"],["mat-flat-button","","type","submit","color","primary","id","submit"],["mat-flat-button","","color","accent","id","cancel",3,"mat-dialog-close"]],template:function(e,t){1&e&&(ds(0,"mat-dialog-content"),ds(1,"h1"),Js(2),hs(),ds(3,"form",0),ks("ngSubmit",function(){return t.submit()}),os(4,U2,4,6,"formly-form",1),hs(),hs()),2&e&&(Oa(2),el(t.data.title),Oa(1),us("formGroup",t.form),Oa(1),us("ngIf","wait_for_email"!==t.registerStateValue))},directives:[$D,Vk,Jb,qk,wh,yj,Xy,n_,eb,kP,QD,zZ],styles:[""]}),W2);function Y2(e,t){if(1&e){var n=vs();ds(0,"div",3),ds(1,"p"),Js(2,"Joining Autism DRIVE is the first step toward participating in our events. Click below to join and register."),hs(),ds(3,"button",4),ks("click",function(){return rn(n),As().openDialog()}),Js(4,"Join And Register"),hs(),ds(5,"p"),Js(6,"Already a user? Sign in to see the link to register."),hs(),ds(7,"button",5),ks("click",function(){return rn(n),As().goLogin()}),Js(8,"Sign In"),hs(),hs()}}function Q2(e,t){if(1&e){var n=vs();ds(0,"div"),ds(1,"button",6),ks("click",function(){return rn(n),As().openDialog()}),Js(2,"Register Now"),hs(),hs()}}var X2,$2=((X2=function(){function e(t,n){b(this,e),this.router=t,this.dialog=n,this.hasCurrentUser=!1}return w(e,[{key:"ngOnInit",value:function(){}},{key:"goLogin",value:function(){this.router.navigate(["/login"],{queryParams:{returnUrl:this.router.url}})}},{key:"openDialog",value:function(){var e=this;this.dialog.open(q2,{width:"".concat(window.innerWidth,"px"),data:{registered:!1,title:"Register for "+this.resource.title,event_id:this.resource.id}}).afterClosed().subscribe(function(t){t&&(e.hasCurrentUser=!0)})}}]),e}()).\u0275fac=function(e){return new(e||X2)(ls(EX),ls(qD))},X2.\u0275cmp=pt({type:X2,selectors:[["app-event-registration"]],inputs:{resource:"resource",hasCurrentUser:"hasCurrentUser"},decls:5,vars:2,consts:[["fxLayout","column","fxLayoutAlign","center center",1,"event-container"],["fxLayout","column","fxLayoutGap","20px",4,"ngIf"],[4,"ngIf"],["fxLayout","column","fxLayoutGap","20px"],["mat-flat-button","","color","primary",3,"click"],["mat-flat-button","","color","accent",3,"click"],["mat-flat-button","","color","accent","id","register-button",1,"btn-xl",3,"click"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"h2"),Js(2,"Interested in Participating?"),hs(),os(3,Y2,9,0,"div",1),os(4,Q2,3,0,"div",2),hs()),2&e&&(Oa(3),us("ngIf",!t.hasCurrentUser),Oa(1),us("ngIf",t.hasCurrentUser))},directives:[Xy,eb,wh,n_,kP],styles:[".event-container[_ngcontent-%COMP%]{margin:1em}"]}),X2);function K2(e,t){if(1&e&&(ds(0,"p"),Js(1),hs()),2&e){var n=As().$implicit;Oa(1),el(n)}}function Z2(e,t){if(1&e&&(ps(0),os(1,K2,2,1,"p",6),ms()),2&e){var n=t.$implicit,i=As(3);Oa(1),us("ngIf",i.isNotEmpty(n))}}function J2(e,t){if(1&e&&(ds(0,"div",4),os(1,Z2,2,1,"ng-container",5),hs()),2&e){var n=As(2);Oa(1),us("ngForOf",n.contactItem.details)}}function e3(e,t){if(1&e&&(ds(0,"p"),Js(1),hs()),2&e){var n=As().$implicit;Oa(1),el(n)}}function t3(e,t){if(1&e&&(ds(0,"address"),os(1,e3,2,1,"p",6),hs()),2&e){var n=t.$implicit,i=As(3);Oa(1),us("ngIf",i.isNotEmpty(n))}}function n3(e,t){if(1&e&&(ds(0,"div",4),os(1,t3,2,1,"address",5),hs()),2&e){var n=As(2);Oa(1),us("ngForOf",n.contactItem.details)}}function i3(e,t){if(1&e&&(ds(0,"a",8),Js(1),hs()),2&e){var n=As().$implicit;Ds("href","tel://",n,"",Pr),Oa(1),el(n)}}function r3(e,t){if(1&e&&(ps(0),os(1,i3,2,2,"a",7),ms()),2&e){var n=t.$implicit,i=As(3);Oa(1),us("ngIf",i.isNotEmpty(n))}}function a3(e,t){if(1&e&&(ds(0,"div",4),os(1,r3,2,1,"ng-container",5),hs()),2&e){var n=As(2);Oa(1),us("ngForOf",n.contactItem.details)}}function o3(e,t){if(1&e&&(ds(0,"p"),Js(1),hs()),2&e){var n=As().$implicit;Oa(1),tl("Extension: ",n,"")}}function s3(e,t){if(1&e&&(ps(0),os(1,o3,2,1,"p",6),ms()),2&e){var n=t.$implicit,i=As(3);Oa(1),us("ngIf",i.isNotEmpty(n))}}function l3(e,t){if(1&e&&(ds(0,"div",4),os(1,s3,2,1,"ng-container",5),hs()),2&e){var n=As(2);Oa(1),us("ngForOf",n.contactItem.details)}}function u3(e,t){if(1&e&&(ds(0,"a",10),Js(1),hs()),2&e){var n=As().$implicit;Ps("href",n,Pr),Oa(1),el(n)}}function c3(e,t){if(1&e&&(ps(0),os(1,u3,2,2,"a",9),ms()),2&e){var n=t.$implicit,i=As(3);Oa(1),us("ngIf",i.isNotEmpty(n))}}function d3(e,t){if(1&e&&(ds(0,"div",4),os(1,c3,2,1,"ng-container",5),hs()),2&e){var n=As(2);Oa(1),us("ngForOf",n.contactItem.details)}}function h3(e,t){if(1&e&&(ds(0,"div",1),ds(1,"div",2),ds(2,"mat-icon"),Js(3),hs(),hs(),os(4,J2,2,1,"div",3),os(5,n3,2,1,"div",3),os(6,a3,2,1,"div",3),os(7,l3,2,1,"div",3),os(8,d3,2,1,"div",3),hs()),2&e){var n=As();Oa(3),el(n.contactItem.icon),Oa(1),us("ngIf",!n.contactItem.type||"p"===n.contactItem.type),Oa(1),us("ngIf",n.contactItem.type&&"address"===n.contactItem.type),Oa(1),us("ngIf",n.contactItem.type&&"phone"===n.contactItem.type),Oa(1),us("ngIf",n.contactItem.type&&"phone_extension"===n.contactItem.type),Oa(1),us("ngIf",n.contactItem.type&&"link"===n.contactItem.type)}}var f3,p3,m3=((p3=function(){function e(){b(this,e)}return w(e,[{key:"ngOnInit",value:function(){}},{key:"isNotEmpty",value:function(e){return""!==(e||"").replace(/\s/g,"")}}]),e}()).\u0275fac=function(e){return new(e||p3)},p3.\u0275cmp=pt({type:p3,selectors:[["app-contact-item"]],inputs:{contactItem:"contactItem"},decls:1,vars:1,consts:[["class","contact-item","fxLayout","row","fxLayoutGap","8px",4,"ngIf"],["fxLayout","row","fxLayoutGap","8px",1,"contact-item"],[1,"contact-item-icon"],["class","contact-item-detail",4,"ngIf"],[1,"contact-item-detail"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"href",4,"ngIf"],[3,"href"],["target","_blank",3,"href",4,"ngIf"],["target","_blank",3,"href"]],template:function(e,t){1&e&&os(0,h3,9,6,"div",0),2&e&&us("ngIf",t.contactItem&&t.contactItem.condition)},directives:[wh,Xy,n_,BR,bh],styles:[".contact-item[_ngcontent-%COMP%]{margin-bottom:1em}.contact-item-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-top:-.1em}.contact-item-detail[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;line-height:1.2}"]}),p3),g3=((f3=function(){function e(t,n){b(this,e),this.dialogRef=t,this.data=n}return w(e,[{key:"ngOnInit",value:function(){}},{key:"onNoClick",value:function(){this.dialogRef.close()}}]),e}()).\u0275fac=function(e){return new(e||f3)(ls(ID),ls(zD))},f3.\u0275cmp=pt({type:f3,selectors:[["app-admin-note-form"]],decls:10,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["matInput","",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","",3,"click"],["mat-flat-button","","color","primary","cdkFocusInitial","",3,"mat-dialog-close"]],template:function(e,t){1&e&&(ds(0,"h1",0),Js(1,"Please add a note"),hs(),ds(2,"div",1),ds(3,"mat-form-field"),ds(4,"textarea",2),ks("ngModelChange",function(e){return t.data.adminNote.note=e}),hs(),hs(),hs(),ds(5,"div",3),ds(6,"button",4),ks("click",function(){return t.onNoClick()}),Js(7,"Cancel"),hs(),ds(8,"button",5),Js(9,"Save"),hs(),hs()),2&e&&(Oa(4),us("ngModel",t.data.adminNote.note),Oa(4),us("mat-dialog-close",t.data.adminNote.note))},directives:[XD,$D,wT,vM,wb,Zb,Nk,KD,kP,QD],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),f3);function v3(e,t){if(1&e){var n=vs();ds(0,"div",5),ds(1,"div",6),ds(2,"p",7),ds(3,"a",8),ds(4,"b"),Js(5),hs(),hs(),ds(6,"i"),Js(7),Iu(8,"date"),hs(),hs(),ds(9,"p",7),Js(10),hs(),hs(),ds(11,"div",9),ds(12,"button",10),ks("click",function(){rn(n);var e=t.$implicit;return As(3).openDialog(e)}),ds(13,"mat-icon"),Js(14,"edit"),hs(),hs(),ds(15,"button",11),ks("click",function(){rn(n);var e=t.$implicit;return As(3).deleteNote(e)}),ds(16,"mat-icon"),Js(17,"close"),hs(),hs(),hs(),hs()}if(2&e){var i=t.$implicit;Oa(3),us("href","/#/admin/user/"+i.user_id,Pr),Oa(2),nl("User #",i.user_id," - ",i.user.email,""),Oa(2),tl(" - last updated: ",Lu(8,5,i.last_updated,"short"),""),Oa(3),el(i.note)}}function y3(e,t){if(1&e&&(ds(0,"div"),os(1,v3,18,8,"div",4),hs()),2&e){var n=As(2);Oa(1),us("ngForOf",n.notes)}}function _3(e,t){if(1&e){var n=vs();ds(0,"div",1),ds(1,"mat-card"),ds(2,"mat-card-title"),Js(3,"Admin Notes"),hs(),ds(4,"mat-card-content"),os(5,y3,2,1,"div",2),ds(6,"button",3),ks("click",function(){return rn(n),As().openDialog()}),Js(7," Add Note "),hs(),hs(),hs(),hs()}if(2&e){var i=As();Oa(5),us("ngIf",i.notes&&i.notes.length>0)}}var b3,k3=((b3=function(){function e(t,n){b(this,e),this.api=t,this.dialog=n}return w(e,[{key:"ngOnInit",value:function(){this.getNotes()}},{key:"getNotes",value:function(){var e=this;this.api.getResourceAdminNotes(this.currentResource.id).subscribe(function(t){e.notes=t})}},{key:"openDialog",value:function(e){var t=this;this.dialog.open(g3,{width:"".concat(window.innerWidth,"px"),data:{adminNote:e||{user_id:this.currentUser.id,resource_id:this.currentResource.id,note:""}}}).afterClosed().subscribe(function(n){e?(e.note=n,t.api.updateAdminNote(e).subscribe(function(e){t.getNotes()})):n&&!e&&t.api.addAdminNote({user_id:t.currentUser.id,resource_id:t.currentResource.id,note:n}).subscribe(function(e){t.getNotes()})})}},{key:"deleteNote",value:function(e){var t=this;this.api.deleteAdminNote(e).subscribe(function(e){t.getNotes()})}}]),e}()).\u0275fac=function(e){return new(e||b3)(ls(x$),ls(qD))},b3.\u0275cmp=pt({type:b3,selectors:[["app-admin-note-display"]],inputs:{currentUser:"currentUser",currentResource:"currentResource"},decls:1,vars:1,consts:[["id","admin_notes",4,"ngIf"],["id","admin_notes"],[4,"ngIf"],["mat-flat-button","","color","primary","type","button",3,"click"],["fxLayout","row","fxLayoutAlign","space-between",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","space-between"],["fxFlex","70%"],["mat-line",""],[3,"href"],["fxFlex","20%"],["mat-mini-fab","","type","button","color","primary","matTooltip","Edit Note",3,"click"],["mat-mini-fab","","type","button","color","accent","matTooltip","Delete Note",3,"click"]],template:function(e,t){1&e&&os(0,_3,8,1,"div",0),2&e&&us("ngIf",t.currentUser&&"admin"==t.currentUser.role)},directives:[wh,jP,HP,BP,kP,bh,Xy,eb,v_,bA,CF,BR],pipes:[$h],styles:["button.mat-mini-fab[_ngcontent-%COMP%]{margin:.5em}"]}),b3);function w3(e,t){if(1&e){var n=vs();ds(0,"div"),ds(1,"mat-list-item"),ds(2,"a",4),ks("click",function(){rn(n);var e=t.$implicit;return As(2).goStudy(e.id)}),fs(3,"app-type-icon",5),ds(4,"span",6),Js(5),hs(),hs(),ds(6,"p",7),Js(7),hs(),hs(),hs()}if(2&e){var i=t.$implicit;Oa(3),us("iconType","study"),Oa(2),el(i.short_title||i.title),Oa(2),el(i.short_description||i.description)}}var C3=function(){return{"related-items":!0}};function x3(e,t){if(1&e&&(ds(0,"mat-card",2),ds(1,"mat-card-title"),Js(2,"Related Research Studies"),hs(),ds(3,"mat-card-content"),ds(4,"mat-list"),os(5,w3,8,3,"div",3),hs(),hs(),hs()),2&e){var n=As();us("ngClass",Su(2,C3)),Oa(5),us("ngForOf",n.relatedStudies)}}function S3(e,t){if(1&e){var n=vs();ds(0,"div"),ds(1,"mat-list-item"),ds(2,"a",4),ks("click",function(){rn(n);var e=t.$implicit;return As(2).goResource(e.id)}),fs(3,"app-type-icon",5),ds(4,"span",8),Js(5),hs(),hs(),ds(6,"p",7),Js(7),Iu(8,"truncate"),hs(),hs(),hs()}if(2&e){var i=t.$implicit;Oa(3),us("iconType",i.type),Oa(2),el(i.title),Oa(2),el(Lu(8,3,i.description,140))}}function A3(e,t){if(1&e&&(ds(0,"mat-card",2),ds(1,"mat-card-title"),Js(2,"Related Resources"),hs(),ds(3,"mat-card-content"),ds(4,"mat-list"),os(5,S3,9,6,"div",3),hs(),hs(),hs()),2&e){var n=As();us("ngClass",Su(2,C3)),Oa(5),us("ngForOf",n.relatedResources)}}var O3,E3=((O3=function(){function e(t,n,i){b(this,e),this.api=t,this.router=n,this.googleAnalytics=i,this.relatedResources=[],this.relatedStudies=[]}return w(e,[{key:"ngOnInit",value:function(){var e=this;(this.resource||this.study)&&this.api.getRelatedResults({resource_id:this.resource?this.resource.id:void 0,study_id:this.study?this.study.id:void 0}).subscribe(function(t){e.relatedResources=t.resources,e.relatedStudies=t.studies})}},{key:"goResource",value:function(e){this.googleAnalytics.relatedContentEvent("related_resource",this.parentComponent),this.router.navigate(["/resource",e])}},{key:"goStudy",value:function(e){this.googleAnalytics.relatedContentEvent("related_study",this.parentComponent),this.router.navigate(["/study",e])}}]),e}()).\u0275fac=function(e){return new(e||O3)(ls(x$),ls(EX),ls(h$))},O3.\u0275cmp=pt({type:O3,selectors:[["app-related-items"]],inputs:{resource:"resource",study:"study",loading:"loading",parentComponent:"parentComponent"},decls:3,vars:2,consts:[["fxLayout","column","fxLayoutGap","2em"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[4,"ngFor","ngForOf"],["mat-line","","fxLayout","row","fxLayoutAlign","start start","fxLayoutGap","8px",3,"click"],[3,"iconType"],[1,"study-title"],["mat-line",""],[1,"resource-title"]],template:function(e,t){1&e&&(ds(0,"div",0),os(1,x3,6,3,"mat-card",1),os(2,A3,6,3,"mat-card",1),hs()),2&e&&(Oa(1),us("ngIf",!t.loading&&t.relatedStudies.length>0),Oa(1),us("ngIf",!t.loading&&t.relatedResources.length>0))},directives:[Xy,n_,wh,jP,yh,ly,HP,BP,JR,bh,nL,bA,eb,BK],pipes:[aW],styles:[".related-items[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{max-width:100vw}.related-items[_ngcontent-%COMP%] .mat-list .mat-list-item .mat-line{word-wrap:break-word;white-space:pre-wrap}.related-items[_ngcontent-%COMP%] .mat-list .mat-list-item{height:auto;margin-bottom:1rem}"]}),O3);function T3(e,t){1&e&&(ds(0,"p"),Js(1,"[DRAFT]"),hs())}function P3(e,t){if(1&e&&fs(0,"app-edit-button",23),2&e){var n=As(2);us("currentUser",n.currentUser)("editLink",n.resource.type+"/"+n.resource.id+"/edit")("editLabel","Edit "+n.resource.type)}}function D3(e,t){1&e&&(ds(0,"p"),Js(1,"This resource is being edited and is under review. Please check back for more up-to-date information soon."),hs())}function M3(e,t){if(1&e&&(ds(0,"p"),ds(1,"a",24),fs(2,"img",25),hs(),hs()),2&e){var n=As(2);Oa(1),us("href",n.resource.website,Pr),Oa(1),Ps("src",n.resource.image_url,Pr)}}function I3(e,t){if(1&e&&(ps(0),ds(1,"markdown"),Js(2),hs(),ms()),2&e){var n=As(2);Oa(2),el(n.resource.description)}}function R3(e,t){if(1&e&&(ps(0),ds(1,"markdown"),Js(2),hs(),ms()),2&e){var n=As(2);Oa(2),el(n.isPastEvent?n.resource.post_event_description:n.resource.description)}}function L3(e,t){if(1&e&&fs(0,"app-event-registration",29),2&e){var n=As(3);us("hasCurrentUser",!!n.currentUser)("resource",n.resource)}}function F3(e,t){if(1&e&&(ds(0,"a",30),Js(1,"Register Now"),hs()),2&e){var n=As(3);us("href",n.resource.registration_url||"mailto:"+n.resource.contact_email+"?subject=Registration+for+"+n.resource.title,Pr)}}function N3(e,t){if(1&e&&(ds(0,"div",26),os(1,L3,1,2,"app-event-registration",27),os(2,F3,2,1,"a",28),hs()),2&e){var n=As(2);Oa(1),us("ngIf",n.resource.includes_registration),Oa(1),us("ngIf",!n.resource.includes_registration&&(n.resource.registration_url||n.resource.contact_email))}}function V3(e,t){if(1&e&&(ds(0,"p"),Js(1),hs()),2&e){var n=As(2);Oa(1),tl("Insurance accepted: ",n.resource.insurance,"")}}function B3(e,t){if(1&e&&(ds(0,"div"),fs(1,"iframe",31),hs()),2&e){var n=As(3);Oa(1),us("src",n.safeVideoLink,Dr)}}var H3=function(){return["/register"]},z3=function(e){return{returnUrl:e}},G3=function(){return["/login"]};function j3(e,t){if(1&e&&(ds(0,"div"),ds(1,"h2"),Js(2,"Interested in watching this video?"),hs(),ds(3,"div",32),ds(4,"div",33),fs(5,"img",25),hs(),ds(6,"div",34),ds(7,"button",35),Js(8,"Join Autism DRIVE"),hs(),ds(9,"button",35),Js(10,"Log In"),hs(),hs(),hs(),hs()),2&e){var n=As(3);Oa(5),us("src","https://img.youtube.com/vi/"+n.resource.video_code+"/hqdefault.jpg",Pr),Oa(2),us("routerLink",Su(5,H3))("queryParams",Au(6,z3,n.router.url)),Oa(2),us("routerLink",Su(8,G3))("queryParams",Au(9,z3,n.router.url))}}function U3(e,t){if(1&e&&(ds(0,"div"),os(1,B3,2,1,"div",7),os(2,j3,11,11,"div",7),hs()),2&e){var n=As(2);Oa(1),us("ngIf",n.currentUser),Oa(1),us("ngIf",!n.currentUser)}}function W3(e,t){if(1&e&&(ds(0,"p",36),Js(1),hs()),2&e){var n=As(2);Oa(1),il(" ","location"===n.resource.type?"In-home therapy service.":""," Contact ",n.resource.organization_name," for specific ","location"===n.resource.type?"service area":"location",". ")}}function q3(e,t){1&e&&fs(0,"app-contact-item",37),2&e&&us("contactItem",t.$implicit)}function Y3(e,t){if(1&e){var n=vs();ds(0,"button",38),ks("click",function(e){return rn(n),As(2).goPhone(e)}),Js(1),hs()}if(2&e){var i=As(2);Oa(1),tl("Call ",i.resource.phone,"")}}function Q3(e,t){if(1&e){var n=vs();ds(0,"button",39),ks("click",function(e){return rn(n),As(2).goWebsite(e)}),Js(1,"Visit website"),hs()}}function X3(e,t){if(1&e&&(ds(0,"div"),ds(1,"p",43),ds(2,"a",44),ds(3,"b"),Js(4),hs(),hs(),Js(5),Iu(6,"uppercase"),Iu(7,"date"),hs(),hs()),2&e){var n=t.$implicit;Oa(2),us("href","/#/admin/user/"+n.user_id,Pr),Oa(2),nl("User #",n.user_id," - ",n.user_email,""),Oa(1),nl(" - Edit Type: ",Ru(6,5,n.type)," - Update Date: ",Lu(7,7,n.last_updated,"long")," ")}}function $3(e,t){if(1&e&&(ds(0,"div"),os(1,X3,8,10,"div",42),hs()),2&e){var n=As(3);Oa(1),us("ngForOf",n.changeLog)}}function K3(e,t){if(1&e&&(ds(0,"div",40),ds(1,"mat-card"),ds(2,"mat-card-title"),Js(3,"Edit Log"),hs(),os(4,$3,2,1,"div",7),hs(),fs(5,"app-admin-note-display",41),hs()),2&e){var n=As(2);Oa(4),us("ngIf",n.changeLog),Oa(1),us("currentUser",n.currentUser)("currentResource",n.resource)}}function Z3(e,t){if(1&e){var n=vs();ds(0,"agm-circle",49),ks("circleClick",function(e){return rn(n),As(3).toggleInfoWindow(e)}),hs()}if(2&e){var i=As(3);us("latitude",i.resource.latitude)("longitude",i.resource.longitude)("radius",32186.9)("fillColor","location"===i.resource.type.toLowerCase()?"#6c799c":"#E57200")("clickable",!0)}}function J3(e,t){if(1&e&&(ps(0),ds(1,"p"),Js(2),hs(),ds(3,"a",52),Js(4,"Driving directions"),hs(),ms()),2&e){var n=As(4);Oa(2),tl("About ",n.resource.milesFrom(n.mapLoc)," miles away"),Oa(1),Ps("href",n.getGoogleMapsUrl(),Pr)}}function e4(e,t){if(1&e&&(ds(0,"p",36),Js(1),hs()),2&e){var n=As(5);Oa(1),il(" ","location"===n.resource.type?"In-home therapy service.":""," Contact ",n.resource.organization_name," for specific ","location"===n.resource.type?"service area":"location",". ")}}function t4(e,t){if(1&e&&(ds(0,"a",52),Js(1),hs()),2&e){var n=As(5);Ds("href","tel://",n.resource.phone,"",Pr),Oa(1),tl("Call ",n.resource.phone,"")}}function n4(e,t){1&e&&(ds(0,"a",52),Js(1," Visit website "),hs()),2&e&&Ps("href",As(5).resource.website,Pr)}function i4(e,t){if(1&e&&(ps(0),os(1,e4,2,3,"p",12),os(2,t4,2,2,"a",53),os(3,n4,2,1,"a",53),ms()),2&e){var n=As(4);Oa(1),us("ngIf",n.mapLoc&&!n.resource.street_address1),Oa(1),us("ngIf",n.resource.phone),Oa(1),us("ngIf",!n.resource.phone&&n.resource.website)}}var r4=function(){return{x:24,y:24}},a4=function(e,t){return{url:e,anchor:t}};function o4(e,t){if(1&e){var n=vs();ds(0,"agm-marker",50),ks("markerClick",function(e){return rn(n),As(3).toggleInfoWindow(e)}),ds(1,"agm-info-window",51),ds(2,"h5"),Js(3),hs(),os(4,J3,5,2,"ng-container",7),os(5,i4,4,3,"ng-container",7),hs(),hs()}if(2&e){var i=As(3);us("latitude",i.resource.latitude)("longitude",i.resource.longitude)("iconUrl",Ou(10,a4,"/assets/map/"+i.resource.type+(i.resource.street_address1?"":"-no-address")+".svg",Su(9,r4))),Oa(1),us("isOpen",i.showInfoWindow)("latitude",i.resource.latitude)("latitude",i.resource.longitude),Oa(2),el(i.resource.title),Oa(1),us("ngIf",i.resource.street_address1),Oa(1),us("ngIf",!i.resource.street_address1)}}function s4(e,t){if(1&e&&(ds(0,"div",45),ds(1,"agm-map",46),os(2,Z3,1,5,"agm-circle",47),os(3,o4,6,13,"agm-marker",48),hs(),hs()),2&e){var n=As(2);Oa(1),us("latitude",n.resource.latitude)("longitude",n.resource.longitude)("streetViewControl",!1)("zoom",7)("scrollwheel",null),Oa(1),us("ngIf",n.resource.hasCoords()&&!n.resource.street_address1),Oa(1),us("ngIf",n.resource.hasCoords())}}function l4(e,t){if(1&e&&(ds(0,"div",54),fs(1,"app-related-items",55),hs()),2&e){var n=As(2);Oa(1),us("resource",n.resource)("loading",n.loading)("parentComponent","resource-detail")}}function u4(e,t){if(1&e&&(ds(0,"div",2),ds(1,"div",3),ds(2,"div",4),ds(3,"div",5),fs(4,"app-type-icon",6),ds(5,"h1"),Js(6),hs(),hs(),os(7,T3,2,0,"p",7),os(8,P3,1,3,"app-edit-button",8),fs(9,"app-favorite-resource-button",9),ds(10,"p"),Js(11),Iu(12,"date"),hs(),ds(13,"h2"),Js(14,"About this resource"),hs(),os(15,D3,2,0,"p",7),os(16,M3,3,2,"p",7),os(17,I3,3,1,"ng-container",7),os(18,R3,3,1,"ng-container",7),os(19,N3,3,2,"div",10),os(20,V3,2,1,"p",7),os(21,U3,3,2,"div",7),ds(22,"mat-card",11),ds(23,"mat-card-title"),ds(24,"h4"),Js(25,"Contact"),hs(),hs(),ds(26,"mat-card-content"),os(27,W3,2,3,"p",12),os(28,q3,1,1,"app-contact-item",13),hs(),hs(),ds(29,"div",14),os(30,Y3,2,1,"button",15),os(31,Q3,2,0,"button",16),hs(),os(32,K3,6,3,"div",17),hs(),ds(33,"div",18),os(34,s4,4,7,"div",19),ds(35,"div",20),fs(36,"app-filter-chips",21),hs(),os(37,l4,2,3,"div",22),hs(),hs(),hs()),2&e){var n=As();Oa(4),us("iconType",n.resource.type.toLowerCase())("size",3),Oa(2),el(n.resource.title),Oa(1),us("ngIf",n.resourceIsDraft),Oa(1),us("ngIf",n.userCanEdit),Oa(1),us("resource_id",n.resource.id)("user",n.currentUser),Oa(2),tl("Last Updated: ",Lu(12,27,n.resource.last_updated,"longDate"),""),Oa(4),us("ngIf",n.resourceIsDraft&&!n.userCanEdit),Oa(1),us("ngIf","event"===n.resource.type&&n.resource.image_url),Oa(1),us("ngIf","event"!==n.resource.type),Oa(1),us("ngIf","event"===n.resource.type),Oa(1),us("ngIf","event"===n.resource.type),Oa(1),us("ngIf",n.resource.insurance),Oa(1),us("ngIf",n.safeVideoLink),Oa(6),us("ngIf",n.mapLoc&&!n.resource.street_address1),Oa(1),us("ngForOf",n.contactItems),Oa(2),us("ngIf",n.resource.phone),Oa(1),us("ngIf",n.resource.website),Oa(1),us("ngIf",n.currentUser&&n.currentUser.permissions.includes("edit_resource")),Oa(2),us("ngIf",n.resource&&n.resource.hasCoords()),Oa(2),us("categories",n.resource.resource_categories)("ages",n.resource.ages)("languages",n.resource.languages)("covid19_categories",n.resource.covid19_categories)("parentComponent","resource_detail"),Oa(1),us("ngIf",!n.resource.should_hide_related_resources)}}function c4(e,t){1&e&&fs(0,"app-loading",56)}var d4,h4=((d4=function(){function e(t,n,i,r,a){var o=this;b(this,e),this.api=t,this.route=n,this.router=i,this.authenticationService=r,this._sanitizer=a,this.loading=!0,this.showInfoWindow=!1,this.authenticationService.currentUser.subscribe(function(e){return o.currentUser=e}),this.route.params.subscribe(function(e){o.loading=!0,o.safeVideoLink=null;var t=e.resourceId?parseInt(e.resourceId,10):null;if("number"==typeof t&&isFinite(t)){var n=o.route.snapshot.url[0].path,i=n.charAt(0).toUpperCase()+n.slice(1);o.api["get".concat(i)](t).subscribe(function(e){o.resource=new O2(e),console.log("resource = ",o.resource),o.initializeContactItems(),o.loadMapLocation(),o.loading=!1,o.resource.video_code&&(o.safeVideoLink=o._sanitizer.bypassSecurityTrustResourceUrl("https://www.youtube.com/embed/"+o.resource.video_code)),o.currentUser&&o.currentUser.permissions.includes("edit_resource")&&o.api.getResourceChangeLog(o.resource.id).subscribe(function(e){o.changeLog=e})})}})}return w(e,[{key:"isPastEvent",get:function(){var e=new Date(this.resource.date),t=new Date;return console.log("eventDate",e),!!(this.resource&&"event"===this.resource.type&&e0){var n,i=s(e.resource_categories);try{for(i.s();!(n=i.n()).done;){var r=n.value;this.model.categories.push(r.category),t()}}catch(a){i.e(a)}finally{i.f()}}else t()}},{key:"loadForm",value:function(){this.form=new Pk({}),this.options={formState:{mainModel:this.model}},this.state=this.pageState.SHOW_FORM}},{key:"updateResourceCategories",value:function(e){var t=this,n=this.model.type.charAt(0).toUpperCase()+this.model.type.slice(1),i=[];return this.model.categories.forEach(function(n,r){!0===n&&i.push({resource_id:e,category_id:r,type:t.model.type})}),this.api["update".concat(n,"Categories")](e,i)}},{key:"submit",value:function(){var e=this.model.type.charAt(0).toUpperCase()+this.model.type.slice(1);this.form.valid&&this.updateAndClose(this.createNew&&!this.model.id?this.api["add".concat(e)](this.model):this.api["update".concat(e)](this.model))}},{key:"updateAndClose",value:function(e){var t=this;this.setDateTime(),e.subscribe(function(e){t.updatedResource=e,t.model.id=e.id,t.updateResourceCategories(e.id).subscribe(function(){return t.close()})})}},{key:"setDateTime",value:function(){this.model.date&&(this.model.date instanceof Date||(this.model.date=new Date(this.model.date)),this.model.date.setHours(12))}},{key:"showDelete",value:function(){this.showConfirmDelete=!0}},{key:"onDelete",value:function(){var e=this;this.api.deleteResource(this.resource).subscribe(function(t){e.router.navigate(["search"])})}},{key:"close",value:function(){this.router.navigate(this.updatedResource&&this.updatedResource.id?[this.updatedResource.type,this.updatedResource.id]:["search"])}},{key:"onCancel",value:function(){this.close()}},{key:"saveDraft",value:function(){this.model.is_draft=!0,this.form.valid?this.submit():this.highlightRequiredFields()}},{key:"savePublish",value:function(){this.model.is_draft=!1,this.form.valid?this.submit():this.highlightRequiredFields()}},{key:"highlightRequiredFields",value:function(){for(var e=0,t=Object.keys(this.form.controls);e1&&void 0!==arguments[1]?arguments[1]:rp,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:A4;return function(i){return i.lift(new E4(e,t,n.leading,n.trailing))}}var E4=function(){function e(t,n,i,r){b(this,e),this.duration=t,this.scheduler=n,this.leading=i,this.trailing=r}return w(e,[{key:"call",value:function(e,t){return t.subscribe(new T4(e,this.duration,this.scheduler,this.leading,this.trailing))}}]),e}(),T4=function(e){f(n,e);var t=m(n);function n(e,i,r,a,o){var s;return b(this,n),(s=t.call(this,e)).duration=i,s.scheduler=r,s.leading=a,s.trailing=o,s._hasTrailingValue=!1,s._trailingValue=null,s}return w(n,[{key:"_next",value:function(e){this.throttled?this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(P4,this.duration,{subscriber:this})),this.leading?this.destination.next(e):this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0))}},{key:"_complete",value:function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}},{key:"clearThrottle",value:function(){var e=this.throttled;e&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),e.unsubscribe(),this.remove(e),this.throttled=null)}}]),n}(P);function P4(e){e.subscriber.clearThrottle()}var D4,M4,I4=function(e){return e.Small="sm",e.Medium="md",e.Large="lg",e}({}),R4=function(e){return e.Visible="visible",e.Hidden="hidden",e}({}),L4=function(e){return e.Expanded="expanded",e.Collapsed="collapsed",e}({}),F4=function(e){return e.Up="Up",e.Down="Down",e}({}),N4=((M4=function(){function e(t,n){b(this,e),this._http=t,this.config=n,this.query_url="/api/search/resources"}return w(e,[{key:"search",value:function(e){var t=this;return this._http.post(this.config.apiUrl+this.query_url,e).pipe(q(function(e){return t._loadQuery(e)}))}},{key:"mapSearch",value:function(e,t){var n=S4()({circles:!0})(e);return n.geo_box=t,n.map_data_only=!0,n.size=300,this.search(n)}},{key:"_loadQuery",value:function(e){if(e&&e.hits)return new mK(e)}}]),e}()).\u0275fac=function(e){return new(e||M4)(Ni(vg),Ni(d$))},M4.\u0275prov=Le({token:M4,factory:M4.\u0275fac,providedIn:"root"}),M4),V4=((D4=function(){function e(t){var n=this;b(this,e),this.api=t,this.categoriesByDisplayOrder={},this.categoriesById={},this.updated=new Vu,this.api.getCategoryTree().subscribe(function(e){n.categoryTree=e,n._populateCategoryIndices(n.categoryTree),n.categoryList=Object.entries(n.categoriesByDisplayOrder).sort(function(e,t){return e[0].toLowerCase() ")}},{key:"_populateCategoryIndices",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e.forEach(function(e){var i=n.concat([null!=e.display_order?e.display_order:e.id]),r=i.join(".");t.categoriesByDisplayOrder[r]||(t.categoriesByDisplayOrder[r]=e),t.categoriesById[e.id]||(t.categoriesById[e.id]=e),e.children&&e.children.length>0&&t._populateCategoryIndices(e.children,i)})}},{key:"_populateCategoryParents",value:function(){var e=this;this.categoryList.forEach(function(t){null!==t.parent_id&&(t.parent=e.categoriesById[t.parent_id],e.categoriesById[t.id].parent=t.parent)})}}]),e}()).\u0275fac=function(e){return new(e||D4)(Ni(x$))},D4.\u0275prov=Le({token:D4,factory:D4.\u0275fac,providedIn:"root"}),D4),B4=["searchInput"],H4=["autocompletePanel"];function z4(e,t){if(1&e&&(ds(0,"div",13),ds(1,"h1",14),Js(2,"Find Autism Resources"),hs(),ds(3,"h5",14),Js(4,"Type a search term and/or use filters below"),hs(),hs()),2&e){var n=As();Oa(1),us("fxFlex",n.videoIsVisible?"calc(100% - 66px)":"100%"),Oa(2),us("fxFlex",n.videoIsVisible?"calc(100% - 66px)":"100%")}}function G4(e,t){if(1&e&&(ds(0,"mat-option",15),Js(1),hs()),2&e){var n=t.$implicit,i=As();us("value",n),Oa(1),el(i.optionText(n))}}var j4,U4=function(e){return{"btn-cancel":!0,hidden:e}},W4=function(){return{"btn-search":!0}},q4=((j4=function(){function e(t,n,i,r,a,o){var s,l=this;b(this,e),this.route=t,this.router=n,this.searchService=i,this.api=r,this.categoryService=a,this.changeDetectorRef=o,this.categorySelected=new Vu,this.searchUpdated=new Vu,this.searchBoxControl=new Tk,this.searchUpdate=new j,this.skipUpdate=!1,this.route.queryParams.pipe((s=function(){return op(1e3)},function(e){return e.lift(new $W(s))})).subscribe(function(e){return l.queryParams=e}),this.searchUpdate.pipe(jg(400),Op()).subscribe(function(){return l.updateSearch(!1)})}return w(e,[{key:"videoIsVisible",get:function(){return"true"===localStorage.getItem("shouldHideTutorialVideo")}},{key:"searchInput",set:function(e){this.searchInputElement=e}},{key:"autocompletePanel",set:function(e){this.autocompletePanelElement=e}},{key:"autocompletePanelTrigger",set:function(e){this.autocompletePanelTriggerElement=e}},{key:"hasWords",get:function(){return!!(this.searchInputElement&&this.searchInputElement.value&&this.searchInputElement.value.length>0)}},{key:"ngOnInit",value:function(){var e=this;this.filteredOptions=this.searchBoxControl.valueChanges.pipe(Rp(""),q(function(t){return e._filter(t)}))}},{key:"ngAfterViewInit",value:function(){this.searchInputElement.value=this.words}},{key:"optionText",value:function(e){return null==e?void 0:e.indentedString}},{key:"updateSearch",value:function(e){var t=this;if(!this.skipUpdate){e&&(this.words="",this.searchInputElement.value=this.words);var n=JSON.parse(JSON.stringify(this.queryParams));return n.words=e?void 0:this.searchInputElement&&this.searchInputElement.value||"",n.pageStart=0,n.words&&(n.sort="Relevance"),Object.keys(n).length>0?this.router.navigate(["/search"],{relativeTo:this.route,queryParams:n}).finally(function(){t.searchUpdated.emit(n),t.changeDetectorRef.detectChanges()}):this.router.navigateByUrl("/search").finally(function(){return t.searchUpdated.emit(n)})}this.skipUpdate=!1}},{key:"indentedString",value:function(e){for(var t=e.parent,n=[];t;)n.unshift(t),t=t.parent;return n.map(function(e){return e.name}).concat([e.name]).join(" > ")}},{key:"selectCategory",value:function(e){this.skipUpdate=!0,this.categorySelected.emit(e.option.value)}},{key:"showVideo",value:function(){localStorage.removeItem("shouldHideTutorialVideo")}},{key:"_filter",value:function(e){if(e&&e.length>0){var t=e.replace(/\W+/gi," ").toLowerCase().split(" ").map(function(e){return"(?=.*".concat(e,")")}).join(""),n=new RegExp(t,"gi");return this.categoryService.categoryList.filter(function(e){return e.all_resource_count>0&&n.test(e.indentedString)})}return this.categoryService.categoryList}},{key:"openAutocompletePanel",value:function(e){this.autocompletePanelTriggerElement._onChange(""),e.stopPropagation(),this.autocompletePanelTriggerElement.openPanel(),this.autocompletePanelElement.showPanel=!0,this.changeDetectorRef.detectChanges()}}]),e}()).\u0275fac=function(e){return new(e||j4)(ls(oQ),ls(EX),ls(N4),ls(x$),ls(V4),ls(Jl))},j4.\u0275cmp=pt({type:j4,selectors:[["app-search-box"]],viewQuery:function(e,t){var n;1&e&&(Ku(B4,1,vM),Ku(H4,1,iP),Ku(uP,1)),2&e&&($u(n=Ju())&&(t.searchInput=n.first),$u(n=Ju())&&(t.autocompletePanel=n.first),$u(n=Ju())&&(t.autocompletePanelTrigger=n.first))},inputs:{variant:"variant",words:"words"},outputs:{categorySelected:"categorySelected",searchUpdated:"searchUpdated"},decls:21,vars:17,consts:[["fxLayout","column"],["class","search-bar-header","fxLayout","row wrap","fxLayoutAlign","center center","fxLayoutGap","0px",4,"ngIf"],["fxLayout","row","fxLayoutGap","10px","fxLayoutAlign","center center"],["id","search-field",3,"fxFlex","click"],["matInput","","placeholder","Search for Autism Resources","type","text",3,"formControl","matAutocomplete","keyup.enter","keyup.escape","click"],["searchInput",""],["panelWidth","600px",3,"displayWith","optionSelected"],["auto","matAutocomplete","autocompletePanel",""],[3,"value",4,"ngFor","ngForOf"],["matSuffix","","fxLayout","row"],["mat-icon-button","","matSuffix","","fxHide","",3,"fxShow","ngClass","click"],["mat-icon-button","","matSuffix","",3,"ngClass","click"],["mat-fab","","matTooltip","Watch a video with tips about resources",1,"show-video",3,"fxHide","click"],["fxLayout","row wrap","fxLayoutAlign","center center","fxLayoutGap","0px",1,"search-bar-header"],[3,"fxFlex"],[3,"value"]],template:function(e,t){if(1&e&&(ds(0,"div",0),os(1,z4,5,2,"div",1),ds(2,"div",2),ds(3,"mat-form-field",3),ks("click",function(e){return t.openAutocompletePanel(e)}),ds(4,"input",4,5),ks("keyup.enter",function(){return t.updateSearch(!1)})("keyup.escape",function(){return t.updateSearch(!0)})("click",function(e){return t.openAutocompletePanel(e)}),hs(),ds(6,"mat-autocomplete",6,7),ks("optionSelected",function(e){return t.selectCategory(e)}),os(9,G4,2,2,"mat-option",8),Iu(10,"async"),hs(),ds(11,"div",9),ds(12,"button",10),ks("click",function(){return t.updateSearch(!0)}),ds(13,"mat-icon"),Js(14,"cancel"),hs(),hs(),ds(15,"button",11),ks("click",function(){return t.updateSearch(!1)}),ds(16,"mat-icon"),Js(17,"search"),hs(),hs(),hs(),hs(),ds(18,"button",12),ks("click",function(){return t.showVideo()}),ds(19,"mat-icon"),Js(20,"ondemand_video"),hs(),hs(),hs(),hs()),2&e){var n=ss(5),i=ss(7);zs("search-bar "+t.variant),Oa(1),us("ngIf","Search for Autism Resources"!=n.value),Oa(2),us("fxFlex",t.videoIsVisible?"calc(100% - 66px)":"100%"),Oa(1),us("formControl",t.searchBoxControl)("matAutocomplete",i),Oa(2),us("displayWith",t.optionText),Oa(3),us("ngForOf",Ru(10,12,t.filteredOptions)),Oa(3),us("fxShow",t.hasWords)("ngClass",Au(14,U4,!t.hasWords)),Oa(3),us("ngClass",Su(16,W4)),Oa(3),us("fxHide",!t.videoIsVisible)}},directives:[Xy,wh,n_,eb,wT,v_,vM,wb,uP,Zb,Uk,iP,bh,vT,kP,my,yh,ly,BR,CF,JA],pipes:[qh],styles:[".search-bar[_ngcontent-%COMP%]{display:-ms-inline-flexbox;display:inline-flex;width:100%;margin-top:2em}.search-bar.hidden[_ngcontent-%COMP%]{display:block;position:fixed;top:0;left:100%}.search-bar[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .search-bar[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{margin:0;padding:0}.search-bar[_ngcontent-%COMP%] .mat-hint[_ngcontent-%COMP%]{font-size:1em} .search-bar mat-form-field .mat-icon{margin-top:6px;margin-bottom:-6px} .search-bar mat-form-field .mat-form-field-wrapper{padding:10px 0 0} .search-bar mat-form-field .mat-form-field-infix{padding-top:10px;padding-bottom:10px;border-top-width:0} .search-bar mat-form-field .mat-icon-button.hidden{display:none} .search-bar.dark-bg .mat-form-field-appearance-outline .mat-form-field-outline, .search-bar.dark-bg .mat-form-field-label, .search-bar.dark-bg .mat-hint, .search-bar.dark-bg input{color:#fff} .search-bar.dark-bg mat-form-field ::-moz-placeholder{color:hsla(0,0%,100%,.7)} .search-bar.dark-bg mat-form-field :-ms-input-placeholder{color:hsla(0,0%,100%,.7)} .search-bar.dark-bg mat-form-field ::placeholder{color:hsla(0,0%,100%,.7)} .search-bar.light-bg .mat-form-field-appearance-outline .mat-form-field-outline, .search-bar.light-bg .mat-form-field-label, .search-bar.light-bg .mat-hint, .search-bar.light-bg input{color:#000} .search-bar.light-bg mat-form-field ::-moz-placeholder{color:#666} .search-bar.light-bg mat-form-field :-ms-input-placeholder{color:#666} .search-bar.light-bg mat-form-field ::placeholder{color:#666} #search-field .mat-form-field-outline{background-color:#fff;border-radius:5px} .mat-option-text{font-size:16px;overflow:visible!important;text-overflow:unset!important}.search-bar-header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .search-bar-header[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{padding:0;margin:0}.btn-cancel[_ngcontent-%COMP%], .btn-search[_ngcontent-%COMP%]{margin-top:4px;margin-bottom:-4px}"]}),j4);function Y4(e,t){if(1&e&&(ds(0,"span",3),Js(1),hs()),2&e){var n=As();Oa(1),el(n.selectedSort.label)}}function Q4(e,t){if(1&e){var n=vs();ds(0,"mat-option",4),ks("click",function(){rn(n);var e=t.$implicit;return As().sortMethodSelected.emit(e)}),ds(1,"span",5),Js(2),hs(),hs()}if(2&e){var i=t.$implicit;us("value",i)("ngClass","sort-by-"+i.name.toLowerCase()),Oa(2),el(i.label)}}var X4,$4=((X4=function(){function e(){b(this,e),this.sortMethodSelected=new Vu}return w(e,[{key:"ngOnInit",value:function(){}},{key:"sortMethodsList",get:function(){return Object.values(this.sortMethods)}}]),e}()).\u0275fac=function(e){return new(e||X4)},X4.\u0275cmp=pt({type:X4,selectors:[["app-search-sort"]],inputs:{selectedSort:"selectedSort",sortMethods:"sortMethods"},outputs:{sortMethodSelected:"sortMethodSelected"},decls:7,vars:3,consts:[[3,"value","valueChange"],["class","selected-sort-label",4,"ngIf"],[3,"value","ngClass","click",4,"ngFor","ngForOf"],[1,"selected-sort-label"],[3,"value","ngClass","click"],[1,"sort-label"]],template:function(e,t){1&e&&(ds(0,"mat-form-field"),ds(1,"mat-label"),Js(2,"Sort By:"),hs(),ds(3,"mat-select",0),ks("valueChange",function(e){return t.selectedSort=e}),ds(4,"mat-select-trigger"),os(5,Y4,2,1,"span",1),hs(),os(6,Q4,3,3,"mat-option",2),hs(),hs()),2&e&&(Oa(3),us("value",t.selectedSort),Oa(2),us("ngIf",t.selectedSort),Oa(1),us("ngForOf",t.sortMethodsList))},directives:[wT,hT,KL,XL,wh,bh,JA,yh,ly],styles:[".mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),X4);function K4(e,t){if(1&e&&fs(0,"app-details-link",3),2&e){var n=t.$implicit;us("url",n.url)("label",n.label)("inverted",!0)("allCaps",!1)("size",1)("externalLink",!0)}}var Z4,J4=((Z4=function(){function e(){b(this,e),this.playerVars={cc_load_policy:1,modestbranding:1,rel:0,showinfo:0}}return w(e,[{key:"windowWidthFactor",get:function(){var e=window.innerWidth;return e<600?.7:e>=600&&e<960?.8:e>=960&&e<1280?.9:e>=1280?1:void 0}},{key:"videoWidthFactor",get:function(){switch(this.videoSize){case"large":return 1;case"medium":return.75;case"small":return.5}}},{key:"videoWidth",get:function(){return Math.floor(560*this.videoWidthFactor*this.windowWidthFactor)}},{key:"videoHeight",get:function(){return Math.floor(315*this.videoWidthFactor*this.windowWidthFactor)}},{key:"ngOnInit",value:function(){}},{key:"hideVideo",value:function(){localStorage.setItem("shouldHideTutorialVideo","true")}}]),e}()).\u0275fac=function(e){return new(e||Z4)},Z4.\u0275cmp=pt({type:Z4,selectors:[["app-tutorial-video"]],inputs:{videoSize:"videoSize",videoId:"videoId",instructions:"instructions",links:"links"},decls:8,vars:9,consts:[["mat-mini-fab","",1,"hide-video",3,"click"],[3,"width","height","videoId","playerVars"],["class","video-link",3,"url","label","inverted","allCaps","size","externalLink",4,"ngFor","ngForOf"],[1,"video-link",3,"url","label","inverted","allCaps","size","externalLink"]],template:function(e,t){1&e&&(ds(0,"div"),ds(1,"button",0),ks("click",function(){return t.hideVideo()}),ds(2,"mat-icon"),Js(3,"close"),hs(),hs(),fs(4,"youtube-player",1),ds(5,"markdown"),Js(6),hs(),os(7,K4,1,6,"app-details-link",2),hs()),2&e&&(rl("video-preview ",t.videoSize,""),Oa(4),us("width",t.videoWidth)("height",t.videoHeight)("videoId",t.videoId)("playerVars",t.playerVars),Oa(2),el(t.instructions),Oa(1),us("ngForOf",t.links))},directives:[kP,BR,SG,QW,bh,PK],styles:[".video-preview[_ngcontent-%COMP%]{position:relative;display:block;margin:2em;padding:24px;background-color:#232d4b;color:#fff}.video-preview[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;text-align:center;padding:.5em}.video-preview.large[_ngcontent-%COMP%]{width:440px}@media (min-width:600px){.video-preview.large[_ngcontent-%COMP%]{width:496px}}@media (min-width:960px){.video-preview.large[_ngcontent-%COMP%]{width:552px}}@media (min-width:1280px){.video-preview.large[_ngcontent-%COMP%]{width:608px}}.video-preview.medium[_ngcontent-%COMP%]{width:342px}@media (min-width:600px){.video-preview.medium[_ngcontent-%COMP%]{width:384px}}@media (min-width:960px){.video-preview.medium[_ngcontent-%COMP%]{width:426px}}@media (min-width:1280px){.video-preview.medium[_ngcontent-%COMP%]{width:468px}}.video-preview.small[_ngcontent-%COMP%]{width:244px}@media (min-width:600px){.video-preview.small[_ngcontent-%COMP%]{width:272px}}@media (min-width:960px){.video-preview.small[_ngcontent-%COMP%]{width:300px}}@media (min-width:1280px){.video-preview.small[_ngcontent-%COMP%]{width:328px}}.hide-video[_ngcontent-%COMP%]{position:absolute;top:-12px;right:-12px}.video-link[_ngcontent-%COMP%]{display:block;margin-top:1em;color:#e57200}"]}),Z4);function e5(e,t){if(1&e){var n=vs();ds(0,"div"),ds(1,"button",1),ks("click",function(){return rn(n),As().openAdd()}),ds(2,"mat-icon"),Js(3,"add"),hs(),hs(),hs()}if(2&e){var i=As();Oa(1),Ps("matTooltip",i.addLabel)}}var t5,n5=((t5=function(){function e(t){b(this,e),this.router=t}return w(e,[{key:"ngOnInit",value:function(){}},{key:"openAdd",value:function(){this.router.navigateByUrl(this.addLink)}}]),e}()).\u0275fac=function(e){return new(e||t5)(ls(EX))},t5.\u0275cmp=pt({type:t5,selectors:[["app-add-button"]],inputs:{currentUser:"currentUser",addLink:"addLink",addLabel:"addLabel"},decls:1,vars:1,consts:[[4,"ngIf"],["mat-mini-fab","","color","primary","aria-label","Add",1,"add-button",3,"matTooltip","click"]],template:function(e,t){1&e&&os(0,e5,4,1,"div",0),2&e&&us("ngIf",t.currentUser&&t.currentUser.permissions.includes("create_resource"))},directives:[wh,kP,CF,BR],styles:[""]}),t5);function i5(e,t){if(1&e){var n=vs();ps(0),ds(1,"mat-list-item",5),ks("click",function(){rn(n);var e=t.$implicit;return As(2).selectCategory(e)}),ds(2,"mat-icon"),Js(3,"chevron_left"),hs(),ds(4,"span",6),Js(5),hs(),hs(),ms()}if(2&e){var i=t.$implicit;Oa(5),tl(" ",i.name," ")}}function r5(e,t){if(1&e&&(ds(0,"mat-list",3),os(1,i5,6,1,"ng-container",4),hs()),2&e){var n=As();Oa(1),us("ngForOf",n.parentList())}}function a5(e,t){if(1&e&&(ds(0,"span",13),Js(1),hs()),2&e){var n=As().$implicit;Oa(1),nl("",n.name," - ",n.hit_count," result")}}function o5(e,t){if(1&e&&(ds(0,"span",13),Js(1),hs()),2&e){var n=As().$implicit;Oa(1),nl("",n.name," - ",n.hit_count," results")}}function s5(e,t){1&e&&(ds(0,"mat-icon",14),Js(1,"arrow_right "),hs())}function l5(e,t){if(1&e){var n=vs();ds(0,"button",10),ks("click",function(){rn(n);var e=t.$implicit;return As(2).selectCategory(e)}),os(1,a5,2,2,"span",11),os(2,o5,2,2,"span",11),os(3,s5,2,0,"mat-icon",12),hs()}if(2&e){var i=t.$implicit,r=As(2);Oa(1),us("ngIf",1==i.hit_count),Oa(1),us("ngIf",1!=i.hit_count),Oa(1),us("ngIf",r.hasChildren(i))}}function u5(e,t){if(1&e&&(ps(0),ds(1,"button",7),ds(2,"mat-icon"),Js(3,"topic"),hs(),Js(4),ds(5,"mat-icon"),Js(6,"arrow_drop_down"),hs(),hs(),ds(7,"mat-menu",null,8),os(9,l5,4,3,"button",9),hs(),ms()),2&e){var n=ss(8),i=As();Oa(1),us("matMenuTriggerFor",n)("ngClass.gt-sm","select-topic"),Oa(3),tl(" Filter by ",i.category.level<=0?"Topic":"Subtopic"," "),Oa(5),us("ngForOf",i.categories)}}function c5(e,t){1&e&&fs(0,"div",15)}var d5,h5=((d5=function(){function e(t,n){var i=this;b(this,e),this.categoriesService=t,this.changeDetectorRef=n,this.categorySelected=new Vu,this.categoriesById={},this.loading=!0,this.categoriesService.categoriesById&&(this.categoriesById=this.categoriesService.categoriesById,this.loading=!1),this.categoriesService.updated.subscribe(function(){i.categoriesById=i.categoriesService.categoriesById,i.loading=!1,i.changeDetectorRef.detectChanges()})}return w(e,[{key:"categories",get:function(){return this.getChildrenWithHits(this.category)}},{key:"selectCategory",value:function(e){this.categorySelected.emit(e)}},{key:"parentList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.category,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.parent?(t.unshift(e.parent),this.parentList(e.parent,t)):t}},{key:"hasChildren",value:function(e){var t=null===e.id?e:this.categoriesById[e.id];return t&&t.children&&t.children.length>0}},{key:"getChildrenWithHits",value:function(e){return this.hasChildren(e)?e.children.filter(function(e){return e.hit_count>0}):[]}}]),e}()).\u0275fac=function(e){return new(e||d5)(ls(V4),ls(Jl))},d5.\u0275cmp=pt({type:d5,selectors:[["app-search-topics"]],inputs:{category:"category"},outputs:{categorySelected:"categorySelected"},decls:4,vars:3,consts:[["class","parent-topics","dense","",4,"ngIf"],[4,"ngIf","ngIfElse"],["loadingMessage",""],["dense","",1,"parent-topics"],[4,"ngFor","ngForOf"],[1,"show-all",3,"click"],[1,"filter-facet-label"],["mat-button","",3,"matMenuTriggerFor","ngClass.gt-sm"],["topicMenu",""],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"],["class","child-label",4,"ngIf"],["matTooltip","Subtopics",4,"ngIf"],[1,"child-label"],["matTooltip","Subtopics"],[1,"placeholder"]],template:function(e,t){if(1&e&&(os(0,r5,2,1,"mat-list",0),os(1,u5,10,4,"ng-container",1),os(2,c5,1,0,"ng-template",null,2,ic)),2&e){var n=ss(3);us("ngIf",t.category&&t.parentList().length>0),Oa(1),us("ngIf",!t.loading&&t.category&&t.category.children&&t.category.children.length>0)("ngIfElse",n)}},directives:[wh,JR,bh,nL,BR,kP,SL,ly,kL,vL,CF],styles:[".mat-hint{display:block;color:#e57200;font-size:1rem;padding-top:.5rem}.mat-menu-trigger[_ngcontent-%COMP%]{min-width:100%;min-height:36px}div.current-facet-label[_ngcontent-%COMP%]{cursor:pointer;font-weight:700;color:#4e4e4e;padding:5px 0}.show-all[_ngcontent-%COMP%]{cursor:pointer}button[_ngcontent-%COMP%]{width:100%;text-align:left} .mat-menu-panel{max-width:400px!important;width:400px} .mat-menu-panel .mat-menu-content{width:auto} .mat-menu-panel .mat-menu-content .mat-menu-item{text-overflow:unset}.parent-topics[_ngcontent-%COMP%], .placeholder[_ngcontent-%COMP%], .select-topic[_ngcontent-%COMP%], .parent-topics mat-list-item{min-width:100%;min-height:36px}"]}),d5);function f5(e,t){if(1&e){var n=vs();ds(0,"button",4),ks("click",function(){rn(n);var e=t.$implicit;return As(2).select(e.value)}),Js(1),hs()}if(2&e){var i=t.$implicit,r=As(2);Oa(1),il(" ",r.label_map[i.value]," - ",i.count," result",1===i.count?"":"s"," ")}}function p5(e,t){if(1&e&&(ds(0,"mat-hint"),Js(1),hs()),2&e){var n=As(2);Oa(1),el(n.notApplicableMessage)}}function m5(e,t){if(1&e){var n=vs();ps(0),ds(1,"button",2),ds(2,"mat-icon"),Js(3),hs(),Js(4),ds(5,"mat-icon"),Js(6,"arrow_drop_down"),hs(),hs(),ds(7,"mat-menu",null,3),ds(9,"button",4),ks("click",function(){return rn(n),As().select()}),Js(10),hs(),os(11,f5,2,3,"button",5),hs(),os(12,p5,2,1,"mat-hint",6),ms()}if(2&e){var i=ss(8),r=As();Oa(1),us("matMenuTriggerFor",i),Oa(2),el(r.label_icon),Oa(1),tl(" ",r.hasSelection()?r.label_map[r.selectedAgg().value]:r.label_title," "),Oa(6),el(r.label_any),Oa(1),us("ngForOf",r.aggregations),Oa(1),us("ngIf",r.isNotApplicable)}}function g5(e,t){1&e&&fs(0,"app-loading",7),2&e&&us("isField",!0)}var v5,y5=((v5=function(){function e(){b(this,e),this.filterSelected=new Vu}return w(e,[{key:"ngOnInit",value:function(){}},{key:"select",value:function(e){this.filterSelected.emit(e)}},{key:"hasSelection",value:function(){return 1===this.aggregations.filter(function(e){return e.is_selected}).length}},{key:"selectedAgg",value:function(){return this.hasSelection()?this.aggregations.filter(function(e){return e.is_selected})[0]:{value:null,count:0,is_selected:!0}}}]),e}()).\u0275fac=function(e){return new(e||v5)},v5.\u0275cmp=pt({type:v5,selectors:[["app-search-filter"]],inputs:{label_title:"label_title",label_icon:"label_icon",label_any:"label_any",label_map:"label_map",aggregations:"aggregations",isNotApplicable:"isNotApplicable",notApplicableMessage:"notApplicableMessage"},outputs:{filterSelected:"filterSelected"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["loadingMessage",""],["mat-button","",3,"matMenuTriggerFor"],["menuItems",""],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"isField"]],template:function(e,t){if(1&e&&(os(0,m5,13,6,"ng-container",0),os(1,g5,1,1,"ng-template",null,1,ic)),2&e){var n=ss(2);us("ngIf",t.aggregations)("ngIfElse",n)}},directives:[wh,kP,SL,BR,kL,vL,bh,dT,zZ],styles:[".mat-hint{display:block;color:#e57200;font-size:1rem;padding-top:.5rem}button[_ngcontent-%COMP%]{width:100%;text-align:left} .mat-menu-panel{max-width:400px!important;width:400px} .mat-menu-panel .mat-menu-content{width:auto} .mat-menu-panel .mat-menu-content .mat-menu-item{text-overflow:unset}.mat-menu-trigger[_ngcontent-%COMP%]{min-width:100%;min-height:36px}"]}),v5);function _5(e,t){if(1&e){var n=vs();ps(0),ds(1,"mat-chip",8),ks("click",function(){return rn(n),As(2).mappedResultsChipClicked.emit(!1)}),ds(2,"span",9),Js(3,"Mapped results only"),hs(),ds(4,"mat-icon"),Js(5,"close"),hs(),hs(),ms()}}function b5(e,t){if(1&e){var n=vs();ps(0),ds(1,"mat-chip",10),ks("click",function(){return rn(n),As(2).keywordChipClicked.emit()}),ds(2,"span",9),Js(3),hs(),ds(4,"mat-icon"),Js(5,"close"),hs(),hs(),ms()}if(2&e){var i=As(2);Oa(3),tl('"',i.query.words,'"')}}function k5(e,t){if(1&e){var n=vs();ps(0),ds(1,"mat-chip",11),ks("click",function(){return rn(n),As(2).ageRangeChipClicked.emit()}),ds(2,"span",9),Js(3),hs(),ds(4,"mat-icon"),Js(5,"close"),hs(),hs(),ms()}if(2&e){var i=t.$implicit,r=As(2);Oa(3),el(r.ageLabels[i])}}function w5(e,t){if(1&e){var n=vs();ps(0),ds(1,"mat-chip",12),ks("click",function(){return rn(n),As(2).languageChipClicked.emit()}),ds(2,"span",9),Js(3),hs(),ds(4,"mat-icon"),Js(5,"close"),hs(),hs(),ms()}if(2&e){var i=t.$implicit,r=As(2);Oa(3),el(r.languageLabels[i])}}function C5(e,t){if(1&e){var n=vs();ds(0,"div"),ds(1,"mat-chip",13),ks("click",function(){return rn(n),As(2).typeChipClicked.emit()}),ds(2,"span",9),Js(3),hs(),ds(4,"mat-icon"),Js(5,"close"),hs(),hs(),hs()}if(2&e){var i=As(2);Oa(3),el(i.typeLabels[i.query.types[0]])}}function x5(e,t){if(1&e&&(ps(0),Js(1),ds(2,"mat-icon"),Js(3,"chevron_right"),hs(),ms()),2&e){var n=As(3);Oa(1),tl(" ",n.query.category.parent.parent.name," ")}}function S5(e,t){if(1&e&&(ps(0),Js(1),ds(2,"mat-icon"),Js(3,"chevron_right"),hs(),ms()),2&e){var n=As(3);Oa(1),tl(" ",n.query.category.parent.name," ")}}function A5(e,t){if(1&e){var n=vs();ps(0),ds(1,"mat-chip",14),ks("click",function(){return rn(n),As(2).categoryChipClicked.emit()}),ds(2,"div",15),os(3,x5,4,1,"ng-container",5),os(4,S5,4,1,"ng-container",5),Js(5),hs(),ds(6,"mat-icon"),Js(7,"close"),hs(),hs(),ms()}if(2&e){var i=As(2);Oa(3),us("ngIf",i.query.category.parent&&i.query.category.parent.parent),Oa(1),us("ngIf",i.query.category.parent),Oa(1),tl(" ",i.query.category.name," ")}}function O5(e,t){if(1&e){var n=vs();ds(0,"a",16),ks("click",function(){return rn(n),As(2).clearAllClicked.emit()}),Js(1,"Clear All"),hs()}}function E5(e,t){if(1&e&&(ds(0,"div",1),ds(1,"h4",2),Js(2,"Selected Filters:"),hs(),ds(3,"mat-chip-list",3,4),os(5,_5,6,0,"ng-container",5),os(6,b5,6,1,"ng-container",5),os(7,k5,6,1,"ng-container",6),os(8,w5,6,1,"ng-container",6),os(9,C5,6,1,"div",5),os(10,A5,8,3,"ng-container",5),hs(),os(11,O5,2,0,"a",7),hs()),2&e){var n=As();Oa(5),us("ngIf",n.restrictToMappedResults),Oa(1),us("ngIf",n.query.hasWords),Oa(1),us("ngForOf",n.query.ages),Oa(1),us("ngForOf",n.query.languages),Oa(1),us("ngIf",n.query.hasTypes),Oa(1),us("ngIf",n.query.hasCategory),Oa(1),us("ngIf",n.query.hasFilters)}}var T5,P5=((T5=function(){function e(){b(this,e),this.mappedResultsChipClicked=new Vu,this.keywordChipClicked=new Vu,this.ageRangeChipClicked=new Vu,this.languageChipClicked=new Vu,this.typeChipClicked=new Vu,this.categoryChipClicked=new Vu,this.clearAllClicked=new Vu}return w(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||T5)},T5.\u0275cmp=pt({type:T5,selectors:[["app-search-filters-breadcrumbs"]],inputs:{query:"query",restrictToMappedResults:"restrictToMappedResults",ageLabels:"ageLabels",languageLabels:"languageLabels",typeLabels:"typeLabels"},outputs:{mappedResultsChipClicked:"mappedResultsChipClicked",keywordChipClicked:"keywordChipClicked",ageRangeChipClicked:"ageRangeChipClicked",languageChipClicked:"languageChipClicked",typeChipClicked:"typeChipClicked",categoryChipClicked:"categoryChipClicked",clearAllClicked:"clearAllClicked"},decls:1,vars:1,consts:[["fxLayout","row","fxFlex.gt-sm","100%","fxLayoutGap","10px",4,"ngIf"],["fxLayout","row","fxFlex.gt-sm","100%","fxLayoutGap","10px"],["fxShow","","fxHide.lt-md",""],["ngClass.lt-md","applied-filters-small",1,"applied-filters"],["appliedFilters",""],[4,"ngIf"],[4,"ngFor","ngForOf"],["mat-button","","fxShow","","fxHide.lt-md","",3,"click",4,"ngIf"],[1,"applied-filter","applied-filter-mapped",3,"click"],[1,"applied-filter-label"],[1,"applied-filter","applied-filter-keyword",3,"click"],[1,"applied-filter","applied-filter-age",3,"click"],[1,"applied-filter","applied-filter-language",3,"click"],[1,"applied-filter","applied-filter-type",3,"click"],[1,"applied-filter","applied-filter-topic",3,"click"],["fxLayout","row","fxLayoutAlign","center center",1,"applied-filter-label"],["mat-button","","fxShow","","fxHide.lt-md","",3,"click"]],template:function(e,t){1&e&&os(0,E5,12,7,"div",0),2&e&&us("ngIf",t.query.hasFilters)},directives:[wh,Xy,v_,n_,my,kD,ly,bh,gD,BR,eb,wP],styles:[".applied-filters[_ngcontent-%COMP%]{grid-area:filters;margin-left:0;justify-self:start}.applied-filters[_ngcontent-%COMP%] .mat-chip-list-wrapper{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;overflow-x:auto;padding-bottom:1em}.applied-filters[_ngcontent-%COMP%] .mat-chip-list-wrapper .mat-chip{-ms-flex:0 0 auto;flex:0 0 auto}.applied-filters[_ngcontent-%COMP%] .applied-filter[_ngcontent-%COMP%]{color:#fff;background-color:#e57200}.applied-filters[_ngcontent-%COMP%] .applied-filter[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:.75rem;margin-right:-.25rem;font-size:1.25rem;line-height:1.25}.applied-filters[_ngcontent-%COMP%] .applied-filter[_ngcontent-%COMP%] .applied-filter-label[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:0}.applied-filters.applied-filters-small[_ngcontent-%COMP%] .applied-filter[_ngcontent-%COMP%]{font-size:.75rem}.applied-filters.applied-filters-small[_ngcontent-%COMP%] .applied-filter[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:1rem;line-height:1.5}"]}),T5),D5=["paginator"],M5=["mapTemplate"];function I5(e,t){if(1&e&&fs(0,"app-tutorial-video",61),2&e){var n=As();us("videoSize",n.videoSize)("videoId",n.videoId)("instructions",n.videoInstructions)("links",n.videoLinks)}}function R5(e,t){if(1&e&&fs(0,"app-tutorial-video",62),2&e){var n=As();us("videoSize",n.videoSize)("videoId",n.videoId)("instructions",n.videoInstructions)("links",n.videoLinks)}}function L5(e,t){if(1&e&&fs(0,"app-add-button",63),2&e){var n=As();us("addLabel","Add Resource")("addLink","resources/add")("currentUser",n.currentUser)}}function F5(e,t){if(1&e&&fs(0,"app-type-icon",64),2&e){var n=As();us("iconType",n.selectedType&&n.selectedType.name)("size",1)}}function N5(e,t){if(1&e&&(ds(0,"span",65),Js(1),hs()),2&e){var n=As();Oa(1),el(n.selectedType.label)}}function V5(e,t){if(1&e){var n=vs();ds(0,"mat-option",66),ks("click",function(){rn(n);var e=t.$implicit;return As().selectType(e.name)}),fs(1,"app-type-icon",64),ds(2,"span",65),Js(3),hs(),hs()}if(2&e){var i=t.$implicit;us("value",i),Oa(1),us("iconType",i.name)("size",1),Oa(2),el(i.label)}}function B5(e,t){if(1&e){var n=vs();ds(0,"app-search-topics",67),ks("categorySelected",function(e){return rn(n),As().selectCategory(e)}),hs()}2&e&&us("category",As().selectedCategory)("ngClass","filter-by-topic")}function H5(e,t){if(1&e){var n=vs();ds(0,"div"),ds(1,"app-search-filter",68),ks("filterSelected",function(e){return rn(n),As().selectAgeRange(e)}),hs(),hs()}if(2&e){var i=As();Oa(1),us("aggregations",i.query.age_counts)("label_title","Filter by Age")("label_any","Any age")("label_map",i.ageLabels)("label_icon","cake")("ngClass","filter-by-age")("isNotApplicable",!i.loading&&!i.query.hasAgeCounts)("notApplicableMessage","No age restrictions available for these search results.")}}function z5(e,t){if(1&e){var n=vs();ds(0,"div"),ds(1,"app-search-filter",68),ks("filterSelected",function(e){return rn(n),As().selectLanguage(e)}),hs(),hs()}if(2&e){var i=As();Oa(1),us("aggregations",i.query.language_counts)("label_title","Filter by Language")("label_any","Any language")("label_map",i.languageLabels)("label_icon","language")("ngClass","filter-by-language")("isNotApplicable",!i.loading&&!i.query.hasLanguageCounts)("notApplicableMessage","No language restrictions available for these search results.")}}function G5(e,t){if(1&e&&fs(0,"app-tutorial-video",62),2&e){var n=As();us("videoSize",n.videoSize)("videoId",n.videoId)("instructions",n.videoInstructions)("links",n.videoLinks)}}function j5(e,t){if(1&e&&fs(0,"app-tutorial-video",61),2&e){var n=As();us("videoSize",n.videoSize)("videoId",n.videoId)("instructions",n.videoInstructions)("links",n.videoLinks)}}function U5(e,t){1&e&&(ds(0,"div",69),Js(1,"All Resources"),hs())}function W5(e,t){if(1&e&&(ds(0,"div"),fs(1,"app-type-icon",64),Js(2),hs()),2&e){var n=As().$implicit;rl("type-buttons ",n.name,""),Oa(1),us("iconType",n.name)("size",1),Oa(1),tl(" ",n.label," ")}}function q5(e,t){1&e&&(ds(0,"mat-tab"),os(1,W5,3,6,"ng-template",32),hs())}function Y5(e,t){if(1&e&&(ps(0),Js(1),ms()),2&e){var n=As();Oa(1),tl("",n.numTotalResults," results")}}function Q5(e,t){if(1&e&&(ps(0),Js(1),ms()),2&e){var n=As();Oa(1),tl("",n.hits.length," mapped results")}}function X5(e,t){1&e&&(ds(0,"div",74),ds(1,"h2"),Js(2,"No results currently available."),hs(),ds(3,"p"),Js(4,"We could not find any results for your search. Please try removing some of the conditions by clicking on the 'x' in the filter tiles above. This will broaden the search and give you more results."),hs(),ds(5,"h3"),Js(6,"Check back soon for more updates!"),hs(),hs())}function $5(e,t){if(1&e&&(ds(0,"h4"),Js(1),hs()),2&e){var n=As(4);Oa(1),il("Showing ",n.numResultsFrom,"-",n.numResultsTo," of ",n.numTotalResults," results")}}function K5(e,t){if(1&e&&(ds(0,"h4"),Js(1),hs()),2&e){var n=As(4);Oa(1),il("Showing ",n.numResultsFrom,"-",n.numResultsTo," of ",n.numTotalResults," mapped results.")}}function Z5(e,t){if(1&e&&(ds(0,"div",77),os(1,$5,2,3,"h4",24),os(2,K5,2,3,"h4",24),hs()),2&e){var n=As(3);is("data-num-results",n.restrictToMappedResults?n.hits.length:n.numTotalResults),Oa(1),us("ngIf",!n.restrictToMappedResults),Oa(1),us("ngIf",n.restrictToMappedResults)}}function J5(e,t){if(1&e){var n=vs();ds(0,"div",75),os(1,Z5,3,3,"div",76),ds(2,"div",72),ds(3,"app-search-sort",27),ks("sortMethodSelected",function(e){return rn(n),As(2).reSort(e.name,!0)}),hs(),hs(),hs()}if(2&e){var i=As(2);Oa(1),us("ngIf",i.paginatorElement),Oa(2),us("selectedSort",i.selectedSort)("sortMethods",i.sortMethods)}}function e7(e,t){if(1&e){var n=vs();ds(0,"app-search-filters-breadcrumbs",78),ks("ageRangeChipClicked",function(){return rn(n),As(2).selectAgeRange()})("categoryChipClicked",function(){return rn(n),As(2).removeCategory()})("clearAllClicked",function(){return rn(n),As(2).clearAllFilters()})("keywordChipClicked",function(){return rn(n),As(2).removeWords()})("languageChipClicked",function(){return rn(n),As(2).selectLanguage()})("mappedResultsChipClicked",function(e){return rn(n),As(2).listMapResultsOnly(e)})("typeChipClicked",function(){return rn(n),As(2).selectType()}),hs()}if(2&e){var i=As(2);us("ageLabels",i.ageLabels)("fxHide",!i.showBreadcrumbs())("fxShow",i.showBreadcrumbs())("languageLabels",i.languageLabels)("query",i.query)("restrictToMappedResults",i.restrictToMappedResults)("typeLabels",i.typeLabels)}}function t7(e,t){if(1&e&&fs(0,"app-search-result",80),2&e){var n=t.$implicit,i=t.index,r=As(3);us("hit",n)("mapLoc",r.loc)("currentUser",r.currentUser)("ngClass","sort-order-"+i)}}function n7(e,t){if(1&e&&(ds(0,"div"),os(1,t7,1,4,"app-search-result",79),hs()),2&e){var n=As(2);Oa(1),us("ngForOf",n.hits)}}function i7(e,t){if(1&e&&(ps(0),os(1,X5,7,0,"div",70),os(2,J5,4,3,"div",71),ds(3,"div",72),os(4,e7,1,7,"app-search-filters-breadcrumbs",73),hs(),os(5,n7,2,1,"div",24),ms()),2&e){var n=As();Oa(1),us("ngIf",0===(null==n.query?null:n.query.hits.length)),Oa(1),us("ngIf",0!=(null==n.query?null:n.query.total)),Oa(2),us("ngIf",n.query),Oa(1),us("ngIf",n.hits.length>0)}}function r7(e,t){1&e&&(ds(0,"mat-icon"),Js(1,"check_box_outline_blank"),hs())}function a7(e,t){1&e&&(ds(0,"mat-icon"),Js(1,"check_box"),hs())}function o7(e,t){1&e&&(ps(0),Js(1,"Set Location"),ms())}function s7(e,t){if(1&e&&(ps(0),Js(1),ms()),2&e){var n=As(2);Oa(1),tl("Location: ",n.storedZip,"")}}function l7(e,t){1&e&&(ps(0),Js(1,"Your current location"),ms())}function u7(e,t){1&e&&(ps(0),Js(1,"Using Map's Center"),ms())}function c7(e,t){if(1&e){var n=vs();ds(0,"button",90),ks("click",function(e){rn(n),As();var t=ss(1);return As().useGPSLocation(e,t)}),Js(1,"Current Location"),hs()}}function d7(e,t){if(1&e){var n=vs();ds(0,"mat-expansion-panel",81,82),ks("afterExpand",function(){rn(n);var e=ss(10);return As().focusOnInput(e)}),ds(2,"mat-expansion-panel-header"),os(3,o7,2,0,"ng-container",24),os(4,s7,2,1,"ng-container",24),os(5,l7,2,0,"ng-container",24),os(6,u7,2,0,"ng-container",24),hs(),ds(7,"div",83),ds(8,"mat-form-field",84),ds(9,"input",85,86),ks("ngModelChange",function(e){return rn(n),As().storedZip=e})("keyup.enter",function(e){rn(n);var t=ss(1);return As().submitZip(e,t)}),hs(),hs(),ds(11,"div",87),ds(12,"button",88),ks("click",function(e){rn(n);var t=ss(1);return As().submitZip(e,t)}),Js(13,"Save"),hs(),os(14,c7,2,0,"button",89),hs(),hs(),hs()}if(2&e){var i=As();us("ngClass","zipCodeSetButton mat-elevation-z1")("expanded",i.showLocationWindow()),Oa(3),us("ngIf",i.locationMode===i.locationModes.default),Oa(1),us("ngIf",i.locationMode===i.locationModes.zipcode),Oa(1),us("ngIf",i.locationMode===i.locationModes.gps),Oa(1),us("ngIf",i.locationMode===i.locationModes.map),Oa(1),us("ngClass","zipCodeSet"),Oa(2),us("ngModel",i.storedZip),Oa(5),us("ngIf",i.gpsEnabled)}}var h7=function(){return{x:48,y:48}},f7=function(e){return{url:"/assets/map/your-location.svg",anchor:e}};function p7(e,t){if(1&e&&fs(0,"agm-marker",95),2&e){var n=As(2);us("latitude",n.loc.lat)("longitude",n.loc.lng)("iconUrl",Au(4,f7,Su(3,h7)))}}var m7=function(){return{x:24,y:24}},g7=function(e,t){return{url:e,anchor:t}};function v7(e,t){if(1&e){var n=vs();ps(0),ds(1,"agm-circle",96),ks("circleClick",function(){rn(n);var e=t.$implicit;return As(2).showInfoWindow(e)}),hs(),ds(2,"agm-marker",97),ks("markerClick",function(){rn(n);var e=t.$implicit;return As(2).showInfoWindow(e)}),hs(),ms()}if(2&e){var i=t.$implicit,r=As(2);Oa(1),us("latitude",i.latitude+r.mapJitter(i.id,!0))("longitude",i.longitude+r.mapJitter(i.id,!1))("radius",r.circleRadius)("fillColor","location"===i.type.toLowerCase()?"#6C799C":"#E57200")("clickable",!0)("visible",r.isInfoWindowOpen&&r.selectedMapHit.id==i.id),Oa(1),us("latitude",i.latitude+r.mapJitter(i.id,!0))("longitude",i.longitude+r.mapJitter(i.id,!1))("iconUrl",Ou(10,g7,"/assets/map/"+i.type+"-no-address.svg",Su(9,m7)))}}var y7=function(){return{x:16,y:16}};function _7(e,t){if(1&e){var n=vs();ps(0),ds(1,"agm-marker",97),ks("markerClick",function(){rn(n);var e=t.$implicit;return As(2).showInfoWindow(e)}),hs(),ms()}if(2&e){var i=t.$implicit;Oa(1),us("latitude",i.latitude)("longitude",i.longitude)("iconUrl",Ou(4,g7,"/assets/map/"+i.type+".svg",Su(3,y7)))}}function b7(e,t){if(1&e){var n=vs();ps(0),ds(1,"agm-info-window",98),ks("infoWindowClose",function(){return rn(n),As(2).closeInfoWindow()}),ds(2,"a",99),ks("click",function(){rn(n);var e=As(2);return e.goSelectedMapResource(e.selectedMapResource)}),Js(3),hs(),ds(4,"a",100),ks("click",function(){rn(n);var e=As(2);return e.goSelectedMapResource(e.selectedMapResource)}),Js(5),hs(),hs(),ms()}if(2&e){var i=As(2);Oa(1),us("isOpen",i.isInfoWindowOpen)("latitude",i.selectedMapHit.latitude)("longitude",i.selectedMapHit.longitude),Oa(1),Ms("href","/#/",i.selectedMapResource.type.toLowerCase(),"/",i.selectedMapResource.id,"",Pr),Oa(1),el(i.selectedMapResource.title),Oa(2),tl(" ",i.selectedMapHit.no_address?"In-home therapy":i.selectedMapHit.type," Details")}}function k7(e,t){if(1&e){var n=vs();ds(0,"agm-map",91,92),ks("mapReady",function(e){return rn(n),As().mapLoad(e)})("mapClick",function(){return rn(n),As().closeInfoWindow()})("zoomChange",function(e){return rn(n),As().updateZoom(e)})("boundsChange",function(e){return rn(n),As().updateResultsList(e)}),ds(2,"agm-marker-cluster",93),os(3,p7,1,6,"agm-marker",94),os(4,v7,3,13,"ng-container",33),os(5,_7,2,7,"ng-container",33),hs(),os(6,b7,6,7,"ng-container",24),hs()}if(2&e){var i=As();us("latitude",i.loc.lat)("longitude",i.loc.lng)("streetViewControl",!1)("zoom",i.mapZoomLevel?i.mapZoomLevel:i.defaultZoom)("scrollwheel",null),Oa(2),us("imagePath","assets/map/m")("maxZoom",8),Oa(1),us("ngIf",i.loc),Oa(1),us("ngForOf",i.hitsWithNoAddress),Oa(1),us("ngForOf",i.hitsWithAddress),Oa(1),us("ngIf",i.selectedMapResource)}}var w7=function(){return["/studies"]};function C7(e,t){if(1&e&&(ds(0,"div",101),ds(1,"mat-card"),ds(2,"mat-card-content"),ds(3,"h3"),Js(4,"Highlighted Study: "),ds(5,"a",102),Js(6),hs(),hs(),ds(7,"p"),Js(8),hs(),ds(9,"a",103),Js(10," Explore other studies"),hs(),hs(),hs(),hs()),2&e){var n=As();Oa(5),Ds("href","/#/study/",n.highlightedStudy.id,"",Pr),Oa(1),el(n.highlightedStudy.short_title),Oa(2),el(n.highlightedStudy.short_description),Oa(1),us("routerLink",Su(4,w7))}}function x7(e,t){if(1&e&&(ds(0,"span",104),ds(1,"a",105),fs(2,"img",106),hs(),hs()),2&e){var n=t.$implicit;Oa(1),us("href",n.url,Pr)("title",n.name)("matTooltip",n.shortName+" - "+n.description),Oa(1),us("alt",n.shortName)("src",n.image,Pr)}}function S7(e,t){if(1&e){var n=vs();ds(0,"app-border-box-tile",107),ks("click",function(){return rn(n),As().submitResource()}),hs()}2&e&&us("title","Can't find your resource on drive?")("subtitle","Click Here To Submit")("linkSize",2)}function A7(e,t){1&e&&fs(0,"app-loading")}var O7=function(e){return{ghost:e}},E7=function(){return{width:"40%"}},T7=function(){return{marginTop:"120vh"}};HTMLDivElement;var P7,D7,M7=function(e){return e.default="default",e.zipcode="zipcode",e.gps="gps",e.map="map",e}({}),I7=((D7=function(){function e(t,n,i,r,a,o,s,l,u,c){var d=this;b(this,e),this.api=t,this.authenticationService=n,this.changeDetectorRef=i,this.googleAnalyticsService=r,this.location=a,this.meta=o,this.renderer=s,this.route=l,this.router=u,this.searchService=c,this.animatePage=!0,this.querySubject=new j,this.mapQuerySubject=new j,this.resourceTypes=uK.all_resources(),this.selectedType=uK.ALL_RESOURCES,this.selectedTypeTabIndex=0,this.ageLabels=cK.labels,this.languageLabels=dK.labels,this.typeLabels=uK.labels,this.ageOptions=[],this.languageOptions=[],this.loading=!0,this.pageSizeOptions=[20,60,100],this.pageSize=this.pageSizeOptions[0],this.gpsEnabled=!0,this.defaultLoc={lat:37.32248,lng:-78.36926},this.loc=S4()()(this.defaultLoc),this.locationModes=M7,this.locationMode=M7.default,this.hitsWithNoAddress=[],this.hitsWithAddress=[],this.defaultZoom=7,this.resourceGatherers=[{name:"Charlottesville Region Autism Action Group",shortName:"CRAAG",description:"\n A parent-run advocacy group, one of three active all-volunteer regional Autism Action Groups\n initiated by Commonwealth Autism. Established in 2010, it serves Charlottesville, Albemarle, Greene,\n Fluvanna, Louisa, and Nelson counties.\n ",image:"/assets/partners/craag.png",url:"https://cahumanservices.org/advocating-change/community-organization-engagement/autism-action-groups/"},{name:"The Faison Center",shortName:"Faison Center",description:"The Faison School provides full-time day school programs for students ages 5 to 22 years.",image:"/assets/partners/faison_center.png",url:"https://www.faisoncenter.org"},{name:"Piedmont Regional Education Program",shortName:"PREP",description:"\n A public regional organization designed to meet the needs of special education students. Provides special\n education programming and related services to nine school districts under an umbrella of a regional program.\n ",image:"/assets/partners/prep.png",url:"http://www.prepivycreek.com/"},{name:"Virginia Institute of Autism",shortName:"VIA",description:"\n The Virginia Institute of Autism is dedicated to helping people overcome the challenges of autism through innovative,\n evidence-based programs in education, outreach and adult services.\n ",image:"/assets/partners/via.png",url:"https://www.viaschool.org/"}],this.searchBgClass="mountain",this.videoPlacement="right",this.videoSize="medium",this.videoId="oURTNCsiq3Y",this.videoInstructions="Watch this video for tips about resources",this.videoLinks=[{label:"Learn scientifically-supported interventions online",url:"https://afirm.fpg.unc.edu/selecting-ebp"},{label:"Read about scientifically-supported interventions",url:"https://www.nationalautismcenter.org/resources/for-families/"},{label:"Contact a Family Navigator for resource help",url:"https://curry.virginia.edu/faculty-research/centers-labs-projects/star/resources/star-family-navigation"}],this.sortMethods={RELEVANCE:{name:"Relevance",label:"Relevance",sortQuery:{field:"_score",order:"desc"}},DISTANCE:{name:"Distance",label:"Distance",sortQuery:{field:"geo_point",latitude:this.loc.lat,longitude:this.loc.lng,order:"asc",unit:"mi"}},UPDATED:{name:"Updated",label:"Recently Updated",sortQuery:{field:"last_updated",order:"desc"}},DATE:{name:"Date",label:"Happening Soon",sortQuery:{field:"date",order:"asc"}},DRAFTS:{name:"Drafts",label:"Drafts",sortQuery:{field:"is_draft",order:"desc"}}},this.selectedSort=this.sortMethods.DISTANCE,this.authenticationService.currentUser.subscribe(function(e){return d.currentUser=e}),this.languageOptions=this.getOptions(dK.labels),this.ageOptions=this.getOptions(cK.labels),this.meta.updateTag({property:"og:image",content:window.location.origin+"/assets/home/hero-parent-child.jpg"},"property='og:image'"),this.meta.updateTag({property:"og:image:secure_url",content:window.location.origin+"/assets/home/hero-parent-child.jpg"},"property='og:image:secure_url'"),this.meta.updateTag({name:"twitter:image",content:window.location.origin+"/assets/home/hero-parent-child.jpg"},"name='twitter:image'")}return w(e,[{key:"ngOnInit",value:function(){var e=this;"true"===localStorage.noFirstVisit&&this.hideVideo(),localStorage.noFirstVisit=!0,this.querySubject.pipe(jg(1e3)).subscribe(function(t){e.loading=!0,e.searchService.search(t).subscribe(function(t){e.prevQuery=S4()()(e.query),e.query=t,e.googleAnalyticsService.searchEvent(e.query),e.updateUrl(),e.loading=!1,e.changeDetectorRef.detectChanges(),e._loadRelatedStudies(),e._updatePaginator()})}),this.mapQuerySubject.pipe(jg(1e3)).subscribe(function(t){e.loading=!0;var n=e.geoBox();e.searchService.mapSearch(t,n).subscribe(function(t){e.mapQuery=t,e.mapQuery&&e.mapQuery.hits&&e.mapQuery.hits.length>0?(e.hitsWithAddress=e.mapQuery.hits.filter(function(e){return!e.no_address}),e.hitsWithNoAddress=e.mapQuery.hits.filter(function(e){return e.no_address})):(e.hitsWithAddress=[],e.hitsWithNoAddress=[]),e.loading=!1,e.changeDetectorRef.detectChanges(),e.restrictToMappedResults&&(e.query.geo_box=n,e.querySubject.next(e.query))})}),this.setDefaultMapLocation(function(){e.route.queryParamMap.subscribe(function(t){e.queryParamMap=t,e.query=e._queryParamsToQuery(t);var n=e.storedZip?10:e.defaultZoom;e.mapZoomLevel=parseInt(t.get("zoom"),10)||n;var i=t.get("lat"),r=t.get("lng");i&&r&&e.setLocation(M7.map,{lat:parseFloat(i),lng:parseFloat(r)});var a=t.get("sort")||"Distance",o=e.prevQuery&&0===e.query.start;o?a&&e.sortMethods[a.toUpperCase()]?e.reSort(a,o):e.reSort(e.query.hasWords?"Relevance":"Distance",o):(e.selectedSort=e.sortMethods[a.toUpperCase()],e.querySubject.next(e.query),e.mapQuerySubject.next(e.query))})})}},{key:"setLocation",value:function(e,t){this.loc=t,this.locationMode=e}},{key:"setZipLocation",value:function(e,t){var n=this;this.storedZip=e,this.api.getZipCoords(this.storedZip).subscribe(function(e){n.setLocation(M7.zipcode,{lat:e.latitude,lng:e.longitude}),n.mapZoomLevel=10,t&&t()})}},{key:"setGPSLocation",value:function(e){var t=this;navigator.geolocation?(this.gpsEnabled=!0,navigator.geolocation.getCurrentPosition(function(n){t.setLocation(M7.gps,{lat:n.coords.latitude,lng:n.coords.longitude}),t.mapZoomLevel=10,e&&e()},function(n){t.gpsEnabled=!1,e&&e()})):(this.gpsEnabled=!1,e&&e())}},{key:"_updateDistanceSort",value:function(){var e=this.sortMethods.DISTANCE.sortQuery;e.latitude=this.loc.lat,e.longitude=this.loc.lng,this.query.sort=e}},{key:"paginator",set:function(e){this.paginatorElement=e}},{key:"mapTemplate",set:function(e){this.mapTemplateElement=e}},{key:"circleRadius",get:function(){return 160934/(this.mapZoomLevel||1)}},{key:"filtersPanelStyles",get:function(){var e={"full-screen":this.showFilters,minimized:!this.showFilters};return e[this.searchBgClass]=!0,e}},{key:"hits",get:function(){return this.query.hits}},{key:"isDistanceSort",get:function(){return this.selectedSort&&"Distance"===this.selectedSort.name}},{key:"isInfoWindowOpen",get:function(){return null!=this.selectedMapResource}},{key:"isLastPage",get:function(){return!this.paginatorElement||!this.paginatorElement.hasNextPage()}},{key:"numResultsFrom",get:function(){return this.paginatorElement?this.paginatorElement.pageIndex*this.pageSize+1:0}},{key:"numResultsTo",get:function(){return this.paginatorElement?this.isLastPage?this.numTotalResults:(this.paginatorElement.pageIndex+1)*this.pageSize:this.numTotalResults}},{key:"numTotalResults",get:function(){return this.query&&this.query.total?this.query.total:0}},{key:"shouldHideVideo",get:function(){return!!localStorage.getItem("shouldHideTutorialVideo")}},{key:"shouldShowMap",get:function(){return this.selectedType&&["event","location"].includes(this.selectedType.name)||this.isDistanceSort}},{key:"ngAfterViewInit",value:function(){this.watchScrollEvents()}},{key:"ngOnDestroy",value:function(){}},{key:"getOptions",value:function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({value:n,label:e[n]});return t}},{key:"removeCategory",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.query.category=null,this._goToFirstPage(e)}},{key:"removeWords",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.query.words="",this._goToFirstPage(e)}},{key:"scrollToTopOfSearch",value:function(){document.getElementById("TopOfSearch").scrollIntoView()}},{key:"setDefaultMapLocation",value:function(e){var t=this;this.storedZip=localStorage.getItem("zipCode"),this.isZipCode(this.storedZip)?this.setZipLocation(this.storedZip,e):(this.setLocation(M7.default,this.defaultLoc),e&&e(),this.setGPSLocation(function(){t.gpsEnabled&&t.reSort("Distance",!0)}))}},{key:"reSort",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(this._queryParamsHaveChanged(this.queryParamMap)&&e&&e!==this.selectedSort.name||t)&&(this.selectedSort=this.sortMethods[e.toUpperCase()],this.query.start=0,this.query.sort=this.selectedSort.sortQuery,this.isDistanceSort&&this._updateDistanceSort(),this.mapQuerySubject.next(this.query),this.querySubject.next(this.query))}},{key:"selectAgeRange",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.query.ages=this.query&&e?[e]:[],this._goToFirstPage(t)}},{key:"selectLanguage",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.query.languages=e?[e]:[],this._goToFirstPage(t)}},{key:"selectCategory",value:function(e){this.query.category={id:e.id,name:e.name},this._goToFirstPage()}},{key:"selectType",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=uK.ALL_RESOURCES.name,i=!(e&&e!==n);i?(this.selectedTypeTabIndex=this.resourceTypes.findIndex(function(e){return e.name===n}),this.selectedType=this.resourceTypes[this.selectedTypeTabIndex],this.query.types=this.resourceTypesFilteredNames(),this.query.date=null,this.selectedSort=this.sortMethods.DISTANCE):(this.selectedTypeTabIndex=this.resourceTypes.findIndex(function(t){return t.name===e}),this.selectedType=this.resourceTypes[this.selectedTypeTabIndex],this.query.types=e===n?this.resourceTypesFilteredNames():[e],this.query.date=e===uK.EVENT.name?new Date:void 0,e===uK.LOCATION.name?this.selectedSort=this.sortMethods.DISTANCE:e===uK.RESOURCE.name?this.selectedSort=this.query.hasWords?this.sortMethods.RELEVANCE:this.sortMethods.UPDATED:e===uK.EVENT.name&&(this.selectedSort=this.sortMethods.DATE),this.query.sort=this.selectedSort.sortQuery),this._goToFirstPage(t),this.reSort(this.selectedSort.name,i)}},{key:"submitResource",value:function(){var e=window.open("https://virginia.az1.qualtrics.com/jfe/form/SV_0JQAQjutv54EwnP","_blank");null!=e&&void 0!==e||alert("Please disable your pop-up blocker and try again. \nYou can also use following link to submit your resource: https://virginia.az1.qualtrics.com/jfe/form/SV_0JQAQjutv54EwnP")}},{key:"selectedCategory",get:function(){if(this.query)return this.query.category}},{key:"resourceTypesFiltered",get:function(){return this.resourceTypes.filter(function(e){return e.name!==uK.ALL_RESOURCES.name})}},{key:"resourceTypesFilteredNames",value:function(){return this.resourceTypesFiltered.map(function(e){return e.name})}},{key:"updatePage",value:function(e){this.query.size=e.pageSize,this.pageSize=e.pageSize,this.query.start=e.pageIndex*e.pageSize+1,this.query.sort=this.selectedSort.sortQuery,this.scrollToTopOfSearch(),this.querySubject.next(this.query)}},{key:"mapLoad",value:function(e){var t=this,n=document.createElement("div"),i=document.createElement("div");i.style.backgroundColor="#fff",i.style.border="2px solid #fff",i.style.borderRadius="3px",i.style.boxShadow="0 2px 6px rgba(0,0,0,.3)",i.style.cursor="pointer",i.style.marginBottom="6px",i.style.marginRight="12px",i.style.textAlign="center",i.title="Your Location",n.appendChild(i);var r=document.createElement("div");r.style.fontSize="16px",r.style.lineHeight="38px",r.style.paddingLeft="5px",r.style.paddingRight="5px",r.innerHTML='',i.appendChild(r),i.addEventListener("click",function(){console.log("map clicked."),t.mapQuerySubject.next(t.query)}),n.index=1,e.controls[google.maps.ControlPosition.RIGHT_BOTTOM].push(n),e.addListener("dragend",function(){t.setLocation(M7.map,{lat:t.mapBounds.getCenter().lat(),lng:t.mapBounds.getCenter().lng()}),t.mapQuerySubject.next(t.query),console.log("Map Dragged"),t.isDistanceSort&&(console.log("Map Dragged, re-sorting"),t._updateDistanceSort(),t.querySubject.next(t.query))})}},{key:"showBreadcrumbs",value:function(){return!(!this.query||!this.query.hasFilters)}},{key:"submitZip",value:function(e,t){var n=this;t.close(),e.stopPropagation(),localStorage.setItem("zipCode",this.storedZip),this.googleAnalyticsService.searchInteractionEvent("set_zip_code_location"),this.isZipCode(this.storedZip)?(this.mapZoomLevel=10,this.setZipLocation(this.storedZip,function(){n.reSort("Distance",!0)})):this.setLocation(M7.default,this.defaultLoc)}},{key:"useGPSLocation",value:function(e,t){var n=this;t.close(),e.stopPropagation(),this.googleAnalyticsService.searchInteractionEvent("set_gps_location"),this.setGPSLocation(function(){n.gpsEnabled&&n.reSort("Distance",!0)})}},{key:"isZipCode",value:function(e){return e&&""!==e&&/^\d{5}$/.test(e)}},{key:"showInfoWindow",value:function(e){var t=this;this.api.getResource(e.id).subscribe(function(n){t.selectedMapResource=n,t.selectedMapHit=e,t.googleAnalyticsService.mapEvent(e.id.toString())})}},{key:"closeInfoWindow",value:function(){this.selectedMapResource=null,this.selectedMapHit=null}},{key:"mapJitter",value:function(e,t){var n=e%2==0?1:-1;t&&(n*=-1);var i=1e4*Math.sin(e);return(i-Math.floor(i))/100*n}},{key:"updateZoom",value:function(e){this.mapZoomLevel=e,this.mapQuerySubject.next(this.query)}},{key:"selectTypeTab",value:function(e){this.selectType((e.index>0?this.resourceTypesFiltered[e.index-1]:uK.ALL_RESOURCES).name)}},{key:"updateResultsList",value:function(e){this.mapBounds=e}},{key:"geoBox",value:function(){if(this.mapBounds)return{top_left:{lat:this.mapBounds.getNorthEast().lat(),lon:this.mapBounds.getSouthWest().lng()},bottom_right:{lat:this.mapBounds.getSouthWest().lat(),lon:this.mapBounds.getNorthEast().lng()}}}},{key:"listMapResultsOnly",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];console.log("Restricting to mapped results",e),this.restrictToMappedResults=e,e?(this.googleAnalyticsService.searchInteractionEvent("search_as_map_moves"),this.query.geo_box=this.geoBox()):this.query.geo_box=null,t||this.querySubject.next(this.query)}},{key:"mapDockClass",value:function(e,t,n){var i=e.getBoundingClientRect(),r=t.getBoundingClientRect(),a=n.getBoundingClientRect(),o=this.scrollDirection?this.scrollDirection.toLowerCase():"";return(this._overlaps(i,r)?"align-top":this._overlaps(i,a)?"align-bottom":"docked")+" "+o}},{key:"focusOnInput",value:function(e){e.focus()}},{key:"watchScrollEvents",value:function(){var e=this,t=zg(window,"scroll").pipe(O4(10),q(function(e){return window.pageYOffset}),uO(),q(function(e){var t=n(e,2),i=t[0];return t[1]0&&void 0!==arguments[0])||arguments[0];e?localStorage.setItem("shouldHideTutorialVideo","".concat(e)):localStorage.removeItem("shouldHideTutorialVideo")}},{key:"showLocationWindow",value:function(){return this.locationMode===M7.default}},{key:"updateUrl",value:function(){var e=this._queryToQueryParams(this.query),t=this.router.createUrlTree([],{queryParams:e,queryParamsHandling:"merge",preserveFragment:!0});this.location.replaceState(t.toString())}},{key:"_queryToQueryParams",value:function(e){var t=S4()({circles:!0})(e),n={};return t.hasOwnProperty("words")&&t.words&&(n.words=t.words),n.types=t.types,n.ages=t.ages,n.languages=t.languages,n.sort=n.words?this.sortMethods.RELEVANCE.name:this.selectedSort.name,n.pageStart=t.start||0,n.zoom=this.mapZoomLevel,n.restrictToMap=this.restrictToMappedResults?"y":"n",this.loc&&(n.lat=this.loc.lat,n.lng=this.loc.lng),t.hasOwnProperty("category")&&t.category&&(n.category=t.category.id),n}},{key:"_queryParamsToQuery",value:function(e){var t=new mK({geo_box:void 0,words:"",ages:[],languages:[],sort:this.sortMethods.DISTANCE.sortQuery,start:0,types:this.resourceTypesFilteredNames()});if(t.size=this.pageSize,e&&e.keys){var n,i=s(e.keys);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(void 0!==e.get(r))switch(r){case"words":t.words=e.get(r),t.sort=this.sortMethods.RELEVANCE.sortQuery;break;case"category":t.category={id:parseInt(e.get(r),10)};break;case"ages":t.ages=e.getAll(r);break;case"languages":t.languages=e.getAll(r);break;case"sort":var a=e.get(r).toUpperCase();this.sortMethods[a]&&(t.sort=this.sortMethods[a].sortQuery);break;case"pageStart":t.start=parseInt(e.get(r),10);break;case"types":t.types=e.getAll(r);break;case"restrictToMap":this.restrictToMappedResults="y"===e.get("restrictToMap")}}}catch(o){i.e(o)}finally{i.f()}}return t}},{key:"_goToFirstPage",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.query.start=0,this.paginatorElement&&this.paginatorElement.firstPage(),e||(this.querySubject.next(this.query),this.mapQuerySubject.next(this.query))}},{key:"_overlaps",value:function(e,t){return t.tope.top||t.top>e.top&&t.bottome.bottom}},{key:"_queryParamsHaveChanged",value:function(e){var t=this._queryParamsToQuery(e),n=this._queryParamsToQuery(bY(this._queryToQueryParams(this.query)));return!this.prevQuery||t.equals(n)}},{key:"_loadRelatedStudies",value:function(){var e=this,t=S4()()(this.query);t.types=["study"],this.api.searchStudies(t).subscribe(function(t){t.hits.length>0?e.api.getStudy(t.hits[0].id).subscribe(function(t){e.highlightedStudy=t,e.changeDetectorRef.detectChanges()}):e.api.getStudiesByStatus("currently_enrolling").subscribe(function(t){e.highlightedStudy=t[Math.floor(Math.random()*Math.floor(t.length))],e.changeDetectorRef.detectChanges()})})}},{key:"_updatePaginator",value:function(){var e=this.query&&this.query.start-1,t=parseInt(this.queryParamMap.get("pageStart"),10)-1,n=this.queryParamMap.has("pageStart")?t:e;this.paginatorElement.pageIndex=n/this.pageSize,this.expandResults=!0,this.changeDetectorRef.detectChanges()}}]),e}()).\u0275fac=function(e){return new(e||D7)(ls(x$),ls(y$),ls(Jl),ls(h$),ls(Od),ls(Yf),ls(Pl),ls(oQ),ls(EX),ls(N4))},D7.\u0275cmp=pt({type:D7,selectors:[["app-search"]],viewQuery:function(e,t){var n;1&e&&(Ku(D5,1),Ku(M5,1)),2&e&&($u(n=Ju())&&(t.paginator=n.first),$u(n=Ju())&&(t.mapTemplate=n.first))},hostVars:1,hostBindings:function(e,t){2&e&&ol("@pageAnimations",t.animatePage)},decls:87,vars:58,consts:[["id","hero","fxLayout","column"],["searchHeader",""],["fxFlexAlign","center",3,"videoSize","videoId","instructions","links",4,"ngIf"],["fxLayout","row","fxLayout.lt-md","column","fxLayoutAlign","center center"],[3,"videoSize","videoId","instructions","links",4,"ngIf"],["fxLayout","column"],["variant","light-bg",3,"words","searchUpdated","categorySelected"],[3,"addLabel","addLink","currentUser",4,"ngIf"],["id","show-filters-button","mat-flat-button","","color","primary","fxHide","","fxShow.lt-md","",3,"click"],["fxLayout","column","fxLayoutAlign","center center","id","filters-container"],["id","filters","fxFlex.gt-sm","60%",3,"ngClass.lt-md"],["fxHide","","fxShow.lt-md",""],["fxLayoutAlign","end end"],["mat-button","",1,"done-button",3,"click"],["id","TopOfSearch","fxLayout","row","fxLayout.lt-md","column","fxLayoutGap","2em",1,"filters-row"],["fxLayout","row","fxLayout.lt-lg","column","fxLayoutGap","2em","fxLayoutGap.lt-lg","1em","fxShow","",1,"filter-select"],["fxHide","","fxShow.lt-md","","id","type-filter"],[3,"value","valueChange"],[3,"iconType","size",4,"ngIf"],["class","type-label",4,"ngIf"],[3,"value","click",4,"ngFor","ngForOf"],["id","topic-filter","fxFlex.lt-lg","100%",3,"ngClass.lt-md"],[3,"category","ngClass","categorySelected",4,"ngIf"],["id","age-filter","fxFlex.lt-lg","100%",3,"ngClass.lt-md"],[4,"ngIf"],["id","language-filter","fxFlex.lt-lg","100%",3,"ngClass.lt-md"],["fxHide","","fxShow.lt-md","",1,"sort-order-small"],[3,"selectedSort","sortMethods","sortMethodSelected"],["fxHide","","fxShow.lt-md","","fxLayoutAlign","center center"],["mat-flat-button","","color","accent",3,"click"],["fxShow","","fxHide.lt-md","","fxLayout","row","fxLayoutGap","2em","fxLayoutAlign","start end",1,"type-tabs-container"],["mat-align-tabs","start","fxHide.lt-md","","color","accent",3,"ngClass","selectedIndex","selectedTabChange","selectedIndexChange"],["mat-tab-label",""],[4,"ngFor","ngForOf"],["fxHide","","fxShow.lt-md","","id","results-vs-map"],[3,"value","change"],[3,"value"],[3,"value","disabled"],["id","content","fxLayout","row","fxLayoutAlign","start start"],["id","results","fxLayout","column","fxLayoutGap","10px","fxFlex","60%","fxFlex.lt-md","100%","fxShow","","fxHide.lt-md","",1,"search-results",3,"fxShow.lt-md"],[4,"ngIf","ngIfElse"],[3,"length","pageSize","pageSizeOptions","ngClass","page"],["paginator",""],["id","location-and-map","fxFlex","40%","fxFlex.lt-md","100%","fxShow","",3,"fxShow.lt-md","ngClass.gt-sm","ngStyle.gt-sm"],[1,"inset-shadow"],["id","list-mapped-results-button","mat-flat-button","",3,"color","ngClass","ngClass.gt-sm","ngClass.lt-md","fxHide","click"],["id","set-location",3,"ngClass","expanded","afterExpand",4,"ngIf"],["id","map","fxLayout","column","fxLayoutGap","2em"],["mapTypeId","roadmap",3,"latitude","longitude","streetViewControl","zoom","scrollwheel","mapReady","mapClick","zoomChange","boundsChange",4,"ngIf"],["id","studies-highlight",4,"ngIf"],["id","partners","fxLayout","row","fxLayout.lt-md","column","fxLayoutGap","3em","fxLayoutAlign","auto center",3,"ngStyle.lt-md"],["searchFooter",""],["fxLayout","column","fxLayoutAlign","start"],[1,"pad-0"],["fxLayoutAlign.gt-xs","row","fxLayout.lt-sm","row wrap","fxLayoutAlign","space-between center","fxLayoutGap","40px"],["fxFlex.lt-md","40%","fxLayoutAlign","center center",4,"ngFor","ngForOf"],[3,"title","subtitle","linkSize","click",4,"ngIf"],["id","scroll-spy"],["scrollSpy",""],[2,"padding","2em","text-align","center"],["loadingMessage",""],["fxFlexAlign","center",3,"videoSize","videoId","instructions","links"],[3,"videoSize","videoId","instructions","links"],[3,"addLabel","addLink","currentUser"],[3,"iconType","size"],[1,"type-label"],[3,"value","click"],[3,"category","ngClass","categorySelected"],[3,"aggregations","label_title","label_any","label_map","label_icon","ngClass","isNotApplicable","notApplicableMessage","filterSelected"],[1,"type-buttons","all"],["fxLayout","column","fxLayoutGap","20px","fxLayoutAlign","center center","class","pad-4",4,"ngIf"],["id","sort-and-status","fxLayout","row","fxLayout.lt-md","column","fxLayoutAlign","space-between end",4,"ngIf"],["fxShow","","fxHide.lt-md","",1,"sort-order"],[3,"ageLabels","fxHide","fxShow","languageLabels","query","restrictToMappedResults","typeLabels","ageRangeChipClicked","categoryChipClicked","clearAllClicked","keywordChipClicked","languageChipClicked","mappedResultsChipClicked","typeChipClicked",4,"ngIf"],["fxLayout","column","fxLayoutGap","20px","fxLayoutAlign","center center",1,"pad-4"],["id","sort-and-status","fxLayout","row","fxLayout.lt-md","column","fxLayoutAlign","space-between end"],["class","search-result-status","fxShow","","fxHide.lt-md","",4,"ngIf"],["fxShow","","fxHide.lt-md","",1,"search-result-status"],[3,"ageLabels","fxHide","fxShow","languageLabels","query","restrictToMappedResults","typeLabels","ageRangeChipClicked","categoryChipClicked","clearAllClicked","keywordChipClicked","languageChipClicked","mappedResultsChipClicked","typeChipClicked"],[3,"hit","mapLoc","currentUser","ngClass",4,"ngFor","ngForOf"],[3,"hit","mapLoc","currentUser","ngClass"],["id","set-location",3,"ngClass","expanded","afterExpand"],["setLocationExpansionPanel",""],["fxLayout","column",3,"ngClass"],[1,"zipCodeField"],["matInput","","placeholder","Enter ZIP Code",3,"ngModel","ngModelChange","keyup.enter"],["zipCodeInput",""],["fxLayout","row","fxLayoutGap","10px","fxLayoutAlign","start center"],["mat-flat-button","","color","accent","id","btn_save",3,"click"],["mat-flat-button","","id","btn_gps",3,"click",4,"ngIf"],["mat-flat-button","","id","btn_gps",3,"click"],["mapTypeId","roadmap",3,"latitude","longitude","streetViewControl","zoom","scrollwheel","mapReady","mapClick","zoomChange","boundsChange"],["mapTemplate",""],[3,"imagePath","maxZoom"],[3,"latitude","longitude","iconUrl",4,"ngIf"],[3,"latitude","longitude","iconUrl"],["fillOpacity","0.1","zIndex","-1",3,"latitude","longitude","radius","fillColor","clickable","visible","circleClick"],[3,"latitude","longitude","iconUrl","markerClick"],[3,"isOpen","latitude","longitude","infoWindowClose"],[1,"title","mat-h2",3,"href","click"],[1,"chevron-link",3,"click"],["id","studies-highlight"],[3,"href"],["routerLinkActive","router-link-active",1,"chevron-link",3,"routerLink"],["fxFlex.lt-md","40%","fxLayoutAlign","center center"],[1,"resource-gatherer",3,"href","title","matTooltip"],[3,"alt","src"],[3,"title","subtitle","linkSize","click"]],template:function(e,t){if(1&e&&(ds(0,"div",0,1),os(2,I5,1,4,"app-tutorial-video",2),ds(3,"div",3),os(4,R5,1,4,"app-tutorial-video",4),ds(5,"div",5),ds(6,"app-search-box",6),ks("searchUpdated",function(){return t.querySubject.next(t.query)})("categorySelected",function(e){return t.selectCategory(e)}),hs(),os(7,L5,1,3,"app-add-button",7),ds(8,"button",8),ks("click",function(){return t.showFilters=!t.showFilters}),ds(9,"mat-icon"),Js(10,"filter_alt"),hs(),Js(11," Filter Search Results "),hs(),ds(12,"div",9),ds(13,"div",10),ds(14,"div",11),ds(15,"div",12),ds(16,"button",13),ks("click",function(){return t.toggleShowFilters()}),Js(17,"Done"),hs(),hs(),ds(18,"h2"),Js(19,"Filter Resources"),hs(),hs(),ds(20,"div",14),ds(21,"div",15),ds(22,"div",16),ds(23,"mat-form-field"),ds(24,"mat-label"),Js(25,"Resource types"),hs(),ds(26,"mat-select",17),ks("valueChange",function(e){return t.selectedType=e}),ds(27,"mat-select-trigger"),os(28,F5,1,2,"app-type-icon",18),os(29,N5,2,1,"span",19),hs(),os(30,V5,4,4,"mat-option",20),hs(),hs(),hs(),ds(31,"div",21),os(32,B5,1,2,"app-search-topics",22),hs(),ds(33,"div",23),os(34,H5,2,8,"div",24),hs(),ds(35,"div",25),os(36,z5,2,8,"div",24),hs(),hs(),hs(),ds(37,"div",26),ds(38,"app-search-sort",27),ks("sortMethodSelected",function(e){return t.reSort(e.name,!0)}),hs(),hs(),ds(39,"div",28),ds(40,"button",29),ks("click",function(){return t.toggleShowFilters()}),Js(41),hs(),hs(),hs(),hs(),hs(),os(42,G5,1,4,"app-tutorial-video",4),hs(),os(43,j5,1,4,"app-tutorial-video",2),ds(44,"div",30),ds(45,"mat-tab-group",31),ks("selectedTabChange",function(e){return t.selectTypeTab(e)})("selectedIndexChange",function(e){return t.selectedTypeTabIndex=e}),ds(46,"mat-tab"),os(47,U5,2,0,"ng-template",32),hs(),os(48,q5,2,0,"mat-tab",33),hs(),hs(),hs(),ds(49,"div",34),ds(50,"mat-button-toggle-group",35),ks("change",function(){return t.expandResults=!t.expandResults}),ds(51,"mat-button-toggle",36),os(52,Y5,2,1,"ng-container",24),os(53,Q5,2,1,"ng-container",24),hs(),ds(54,"mat-button-toggle",37),Js(55,"Map"),hs(),hs(),hs(),ds(56,"div",38),ds(57,"div",39),os(58,i7,6,4,"ng-container",40),ds(59,"mat-paginator",41,42),ks("page",function(e){return t.updatePage(e)}),hs(),hs(),ds(61,"div",43),fs(62,"span",44),ds(63,"button",45),ks("click",function(){return t.listMapResultsOnly(!t.restrictToMappedResults)}),os(64,r7,2,0,"mat-icon",24),os(65,a7,2,0,"mat-icon",24),Js(66," Limit results to map "),hs(),os(67,d7,15,9,"mat-expansion-panel",46),ds(68,"div",47),os(69,k7,7,11,"agm-map",48),os(70,C7,11,5,"div",49),hs(),hs(),hs(),ds(71,"div",50,51),ds(73,"div",52),ds(74,"h1"),Js(75,"Resource partners"),hs(),ds(76,"p",53),Js(77,"We are partnering with the following initiatives and organizations to identify resources that will improve outcomes for individuals with autism and their families."),hs(),ds(78,"div",54),os(79,x7,3,5,"span",55),hs(),hs(),os(80,S7,1,3,"app-border-box-tile",56),hs(),fs(81,"span",57,58),ds(83,"p",59),Js(84,"The listings included in the Autism DRIVE Resource Directory are provided for informational purposes only. Most of the resources are not affiliated with the University of Virginia (UVA), and their inclusion does not reflect a recommendation, referral or endorsement of a specific organization or professional. For questions about information or content listed on external sites, contact the external organization directly. The views and opinions expressed by external organizations linked through on our website do not necessarily reflect the views of the UVA Supporting Transformative Research (STAR) Initiative."),hs(),os(85,A7,1,0,"ng-template",null,60,ic)),2&e){var n=ss(1),i=ss(72),r=ss(82),a=ss(86);zs(t.searchBgClass),Oa(2),us("ngIf","above"===t.videoPlacement&&!t.shouldHideVideo),Oa(2),us("ngIf","left"===t.videoPlacement&&!t.shouldHideVideo),Oa(2),us("words",null==t.query?null:t.query.words),Oa(1),us("ngIf",t.currentUser&&t.currentUser.permissions.includes("create_resource")),Oa(6),us("ngClass.lt-md",t.filtersPanelStyles),Oa(13),us("value",t.selectedType),Oa(2),us("ngIf",t.selectedType),Oa(1),us("ngIf",t.selectedType),Oa(1),us("ngForOf",t.resourceTypes),Oa(1),us("ngClass.lt-md","filter-container"),Oa(1),us("ngIf",t.selectedCategory),Oa(1),us("ngClass.lt-md","filter-container"),Oa(1),us("ngIf",t.query),Oa(1),us("ngClass.lt-md","filter-container"),Oa(1),us("ngIf",t.query),Oa(2),us("selectedSort",t.selectedSort)("sortMethods",t.sortMethods),Oa(3),tl("",t.numTotalResults," Results"),Oa(1),us("ngIf","right"===t.videoPlacement&&!t.shouldHideVideo),Oa(1),us("ngIf","below"===t.videoPlacement&&!t.shouldHideVideo),Oa(2),us("ngClass","type-tabs")("selectedIndex",t.selectedTypeTabIndex),Oa(3),us("ngForOf",t.resourceTypesFiltered),Oa(2),us("value",t.expandResults),Oa(1),us("value",!0),Oa(1),us("ngIf",!t.restrictToMappedResults),Oa(1),us("ngIf",t.restrictToMappedResults),Oa(1),us("value",!1)("disabled",!t.shouldShowMap),Oa(3),us("fxShow.lt-md",!!t.expandResults),Oa(1),us("ngIf",!t.loading)("ngIfElse",a),Oa(1),us("length",t.numTotalResults)("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("ngClass",Au(54,O7,!t.query||0===t.numTotalResults)),Oa(2),us("fxShow.lt-md",!t.expandResults)("ngClass.gt-sm",t.mapDockClass(r,n,i))("ngStyle.gt-sm",Su(56,E7)),Oa(2),us("color",t.restrictToMappedResults?"accent":"")("ngClass","mat-elevation-z1")("ngClass.gt-sm","gt-sm")("ngClass.lt-md","lt-md")("fxHide",!t.shouldShowMap),Oa(1),us("ngIf",!t.restrictToMappedResults),Oa(1),us("ngIf",t.restrictToMappedResults),Oa(2),us("ngIf",t.shouldShowMap),Oa(2),us("ngIf",t.shouldShowMap),Oa(1),us("ngIf",t.highlightedStudy),Oa(1),us("ngStyle.lt-md",Su(57,T7)),Oa(8),us("ngForOf",t.resourceGatherers),Oa(1),us("ngIf",!t.loading)}},directives:[Xy,wh,eb,q4,kP,my,BR,v_,ly,n_,wT,hT,KL,XL,bh,$4,hz,yh,nz,ZH,DP,IP,GF,Sy,J4,U_,n5,BK,JA,h5,y5,P5,iZ,aR,oR,vM,wb,Zb,Nk,Am,Hm,Em,nm,um,jP,BP,PX,FX,CF,UJ,zZ],styles:["#hero[_ngcontent-%COMP%]{background-color:#ededed;padding-top:64px;margin-top:-64px;padding-left:16px;padding-right:16px}#hero[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{color:#232d4b;text-align:start;font-size:2.5rem;margin-bottom:0}#hero[_ngcontent-%COMP%] app-search-box[_ngcontent-%COMP%]{color:#000;width:100%}form.search-box[_ngcontent-%COMP%]{background:rgba(0,0,0,0);border-radius:5px;padding-top:1em;padding-bottom:1em;display:-ms-flexbox;display:flex;transition:padding-top .5s ease-in-out}form.search-box.hidden-results[_ngcontent-%COMP%]{padding-top:100px}form.search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%], form.search-box[_ngcontent-%COMP%] mat-hint[_ngcontent-%COMP%]{-ms-flex:2 0 auto;flex:2 0 auto}#tiles[_ngcontent-%COMP%]{padding-top:1em;padding-left:2em;padding-right:2em}.title[_ngcontent-%COMP%]{margin:0;color:#232d4b;font-weight:800;font-style:italic;text-transform:uppercase;line-height:1;font-size:1.625rem}button[_ngcontent-%COMP%]{-ms-flex:0 0 auto;flex:0 0 auto;border:none}mat-accordion[_ngcontent-%COMP%], mat-expansion-panel[_ngcontent-%COMP%]{width:100%;margin-bottom:1em}.filters[_ngcontent-%COMP%] #reset-filters[_ngcontent-%COMP%]{color:#e57200;font-weight:700;padding-left:0}.filters[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:1.5rem;margin-top:2em;margin-bottom:0}.filters[_ngcontent-%COMP%] .sort-order[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-top:1em}.filters[_ngcontent-%COMP%] h4.mat-subheader[_ngcontent-%COMP%]{font-size:1.25rem;line-height:1.5rem;margin-top:1em;margin-bottom:0;padding-left:0;padding-bottom:0}.filters[_ngcontent-%COMP%] h4.mat-subheader[_ngcontent-%COMP%]:first-of-type{margin-top:0}.filter-facet-item[_ngcontent-%COMP%], .sort-order[_ngcontent-%COMP%]{font-size:1em;line-height:1}app-search-filters-breadcrumbs[_ngcontent-%COMP%]{width:100%;padding-right:0;padding-left:0;margin:2em 1em 1em}.sort-order[_ngcontent-%COMP%]{grid-area:sort;justify-self:end}.sort-order[_ngcontent-%COMP%] mat-radio-button[_ngcontent-%COMP%]{height:36px;margin-top:0;padding:0} mat-paginator.mat-paginator .mat-paginator-page-size-select.mat-form-field-appearance-outline{width:84px} mat-paginator.mat-paginator .mat-paginator-page-size-select.mat-form-field-appearance-outline .mat-form-field-wrapper{padding-bottom:.75em} mat-paginator.mat-paginator .mat-paginator-page-size-select.mat-form-field-appearance-outline .mat-form-field-outline{top:.75em;bottom:-.25em} mat-paginator.mat-paginator .mat-paginator-page-size-select.mat-form-field-appearance-outline .mat-select-arrow-wrapper{-ms-transform:translateY(0);transform:translateY(0)} mat-paginator.mat-paginator .mat-paginator-page-size-select.mat-form-field-appearance-outline .mat-form-field-infix{padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0} .mat-option app-type-icon [class*=icofont-], .mat-select-trigger app-type-icon [class*=icofont-]{margin-right:.5em} .mat-option app-type-icon .mat-icon, .mat-select-trigger app-type-icon .mat-icon{margin-right:.5em;margin-top:-.25em} .mat-option .mat-select-value app-type-icon .mat-icon, .mat-select-trigger .mat-select-value app-type-icon .mat-icon{margin-top:.25em} .gm-style-iw-d, .gm-style-iw.gm-style-iw-c{max-height:50vh!important}@media (max-width:575px){ .gm-style-iw-d, .gm-style-iw.gm-style-iw-c{max-width:90vw!important}}@media (min-width:576px){ .gm-style-iw-d, .gm-style-iw.gm-style-iw-c{max-width:80vw!important}}@media (min-width:768px){ .gm-style-iw-d, .gm-style-iw.gm-style-iw-c{max-width:50vw!important}}@media (min-width:960px){ .gm-style-iw-d, .gm-style-iw.gm-style-iw-c{max-width:40vw!important}}@media (min-width:1200px){ .gm-style-iw-d, .gm-style-iw.gm-style-iw-c{max-width:30vw!important}} .mat-form-field-wrapper{padding-bottom:0} .type-tabs .mat-tab-label{color:#232d4b;margin:5px;opacity:1} .type-tabs .mat-tab-label:focus{outline:none}.type-buttons[_ngcontent-%COMP%]{text-transform:uppercase;margin:.25em 1em}.type-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#e57200;margin:.5em}#filters[_ngcontent-%COMP%], #partners[_ngcontent-%COMP%], #sort-and-status[_ngcontent-%COMP%], #type-buttons[_ngcontent-%COMP%]{margin:.5em 2em}.search-result-status[_ngcontent-%COMP%]{-ms-flex-pack:end;justify-content:flex-end}.type-tabs-container[_ngcontent-%COMP%]{height:74px}#content[_ngcontent-%COMP%]{position:relative}#location-and-map[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;right:0}#location-and-map.above[_ngcontent-%COMP%] #map[_ngcontent-%COMP%], #location-and-map.align-top[_ngcontent-%COMP%] #map[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}#location-and-map.docked.up[_ngcontent-%COMP%] #list-mapped-results-button[_ngcontent-%COMP%], #location-and-map.docked.up[_ngcontent-%COMP%] #set-location[_ngcontent-%COMP%]{top:194px}#location-and-map.docked.down[_ngcontent-%COMP%] #list-mapped-results-button[_ngcontent-%COMP%], #location-and-map.docked.down[_ngcontent-%COMP%] #set-location[_ngcontent-%COMP%]{top:74px}#location-and-map.docked[_ngcontent-%COMP%] #set-location[_ngcontent-%COMP%]{position:fixed;top:74px;left:calc(60% + 10px);width:240px}#location-and-map.docked[_ngcontent-%COMP%] #list-mapped-results-button[_ngcontent-%COMP%]{position:fixed;width:240px;top:74px;right:10px}#location-and-map.docked[_ngcontent-%COMP%] #map[_ngcontent-%COMP%]{position:fixed;top:64px;left:60%;right:0;bottom:0}#location-and-map.align-bottom[_ngcontent-%COMP%] #map[_ngcontent-%COMP%]{position:absolute;top:auto;bottom:0;left:0;right:0}#location-and-map.align-bottom[_ngcontent-%COMP%] #map[_ngcontent-%COMP%] agm-map[_ngcontent-%COMP%]{position:absolute;bottom:0}#location-and-map[_ngcontent-%COMP%] #list-mapped-results-button[_ngcontent-%COMP%]{position:absolute;z-index:1;width:240px;height:48px;transition:top .3s ease-in-out,margin-top .3s ease-in-out}#location-and-map[_ngcontent-%COMP%] #list-mapped-results-button.gt-sm[_ngcontent-%COMP%]{top:10px;right:10px}#location-and-map[_ngcontent-%COMP%] #list-mapped-results-button.lt-md[_ngcontent-%COMP%]{top:calc(100vh - 132px);left:10px}#location-and-map[_ngcontent-%COMP%] mat-expansion-panel#set-location{position:absolute;top:10px;left:10px;z-index:1;background-color:#fff;border-radius:5px;width:240px;transition:top .3s ease-in-out,margin-top .3s ease-in-out}#location-and-map[_ngcontent-%COMP%] mat-expansion-panel#set-location mat-expansion-panel-header{font-size:1em;height:48px!important}#location-and-map[_ngcontent-%COMP%] #map[_ngcontent-%COMP%]{height:100%}#location-and-map[_ngcontent-%COMP%] #map[_ngcontent-%COMP%] agm-map[_ngcontent-%COMP%]{height:calc(100vh - 64px);width:100%;z-index:0}#location-and-map[_ngcontent-%COMP%] .inset-shadow[_ngcontent-%COMP%]{position:absolute;top:0;right:0;bottom:0;left:0;box-shadow:inset 40px 20px 40px -40px rgba(0,0,0,.1);z-index:99;pointer-events:none}#scroll-spy[_ngcontent-%COMP%]{position:fixed;top:64px;bottom:0;left:0;right:0;pointer-events:none;background:rgba(0,0,0,0)}#filters.minimized[_ngcontent-%COMP%]{display:none!important}#filters.full-screen[_ngcontent-%COMP%]{display:block;position:fixed;top:0;right:0;bottom:0;left:0;height:100vh;width:100vw;background-color:#fff;z-index:1000;margin:0;padding:2rem;overflow-y:scroll}.filter-container[_ngcontent-%COMP%]{padding-top:2em;padding-bottom:1em;border-top:1px solid #ededed}#results-vs-map[_ngcontent-%COMP%], #results-vs-map[_ngcontent-%COMP%] .mat-button-toggle-group[_ngcontent-%COMP%], #type-filter[_ngcontent-%COMP%], #type-filter[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:100%}#results-vs-map[_ngcontent-%COMP%] .mat-button-toggle-group[_ngcontent-%COMP%] .mat-button-toggle[_ngcontent-%COMP%]{width:50%}.sort-order-small[_ngcontent-%COMP%]{width:100%}#design-options[_ngcontent-%COMP%]{padding:8px;position:fixed;top:0;left:50%;-ms-transform:translateX(-50%);transform:translateX(-50%);z-index:1000;background-color:#eee;border-radius:0 0 8px 8px}#design-options[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{padding:.2em .5em}#filters.black[_ngcontent-%COMP%] .mat-hint, #filters.gray[_ngcontent-%COMP%] .mat-hint, #filters.mountain[_ngcontent-%COMP%] .mat-hint, #filters.uva-blue[_ngcontent-%COMP%] .mat-hint, #filters.uva-orange[_ngcontent-%COMP%] .mat-hint, #hero.black[_ngcontent-%COMP%] .mat-hint, #hero.energy-burst-dark[_ngcontent-%COMP%] .mat-hint, #hero.energy-burst-light[_ngcontent-%COMP%] .mat-hint, #hero.gray[_ngcontent-%COMP%] .mat-hint, #hero.mountain[_ngcontent-%COMP%] .mat-hint, #hero.uva-blue[_ngcontent-%COMP%] .mat-hint, #hero.uva-orange[_ngcontent-%COMP%] .mat-hint, .black[_ngcontent-%COMP%] .mat-hint, .energy-burst-dark[_ngcontent-%COMP%] .mat-hint, .energy-burst-light[_ngcontent-%COMP%] .mat-hint, .gray[_ngcontent-%COMP%] .mat-hint, .mountain[_ngcontent-%COMP%] .mat-hint, .uva-blue[_ngcontent-%COMP%] .mat-hint, .uva-orange[_ngcontent-%COMP%] .mat-hint{color:#fff!important;font-style:italic}#filters.black[_ngcontent-%COMP%] .done-button, #filters.black[_ngcontent-%COMP%] .mat-form-field-label, #filters.black[_ngcontent-%COMP%] .mat-menu-trigger, #filters.black[_ngcontent-%COMP%] .mat-select-value-text, #filters.black[_ngcontent-%COMP%] .mat-tab-label, #filters.black[_ngcontent-%COMP%] .show-all, #filters.black[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, #filters.black[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, #filters.black[_ngcontent-%COMP%] h1, #filters.black[_ngcontent-%COMP%] h5, #filters.gray[_ngcontent-%COMP%] .done-button, #filters.gray[_ngcontent-%COMP%] .mat-form-field-label, #filters.gray[_ngcontent-%COMP%] .mat-menu-trigger, #filters.gray[_ngcontent-%COMP%] .mat-select-value-text, #filters.gray[_ngcontent-%COMP%] .mat-tab-label, #filters.gray[_ngcontent-%COMP%] .show-all, #filters.gray[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, #filters.gray[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, #filters.gray[_ngcontent-%COMP%] h1, #filters.gray[_ngcontent-%COMP%] h5, #filters.mountain[_ngcontent-%COMP%] .done-button, #filters.mountain[_ngcontent-%COMP%] .mat-form-field-label, #filters.mountain[_ngcontent-%COMP%] .mat-menu-trigger, #filters.mountain[_ngcontent-%COMP%] .mat-select-value-text, #filters.mountain[_ngcontent-%COMP%] .mat-tab-label, #filters.mountain[_ngcontent-%COMP%] .show-all, #filters.mountain[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, #filters.mountain[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, #filters.mountain[_ngcontent-%COMP%] h1, #filters.mountain[_ngcontent-%COMP%] h5, #filters.uva-blue[_ngcontent-%COMP%] .done-button, #filters.uva-blue[_ngcontent-%COMP%] .mat-form-field-label, #filters.uva-blue[_ngcontent-%COMP%] .mat-menu-trigger, #filters.uva-blue[_ngcontent-%COMP%] .mat-select-value-text, #filters.uva-blue[_ngcontent-%COMP%] .mat-tab-label, #filters.uva-blue[_ngcontent-%COMP%] .show-all, #filters.uva-blue[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, #filters.uva-blue[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, #filters.uva-blue[_ngcontent-%COMP%] h1, #filters.uva-blue[_ngcontent-%COMP%] h5, #hero.black[_ngcontent-%COMP%] .done-button, #hero.black[_ngcontent-%COMP%] .mat-form-field-label, #hero.black[_ngcontent-%COMP%] .mat-menu-trigger, #hero.black[_ngcontent-%COMP%] .mat-select-value-text, #hero.black[_ngcontent-%COMP%] .mat-tab-label, #hero.black[_ngcontent-%COMP%] .show-all, #hero.black[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, #hero.black[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, #hero.black[_ngcontent-%COMP%] h1, #hero.black[_ngcontent-%COMP%] h5, #hero.energy-burst-dark[_ngcontent-%COMP%] .done-button, #hero.energy-burst-dark[_ngcontent-%COMP%] .mat-form-field-label, #hero.energy-burst-dark[_ngcontent-%COMP%] .mat-menu-trigger, #hero.energy-burst-dark[_ngcontent-%COMP%] .mat-select-value-text, #hero.energy-burst-dark[_ngcontent-%COMP%] .mat-tab-label, #hero.energy-burst-dark[_ngcontent-%COMP%] .show-all, #hero.energy-burst-dark[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, #hero.energy-burst-dark[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, #hero.energy-burst-dark[_ngcontent-%COMP%] h1, #hero.energy-burst-dark[_ngcontent-%COMP%] h5, #hero.energy-burst-light[_ngcontent-%COMP%] .done-button, #hero.energy-burst-light[_ngcontent-%COMP%] .mat-form-field-label, #hero.energy-burst-light[_ngcontent-%COMP%] .mat-menu-trigger, #hero.energy-burst-light[_ngcontent-%COMP%] .mat-select-value-text, #hero.energy-burst-light[_ngcontent-%COMP%] .mat-tab-label, #hero.energy-burst-light[_ngcontent-%COMP%] .show-all, #hero.energy-burst-light[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, #hero.energy-burst-light[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, #hero.energy-burst-light[_ngcontent-%COMP%] h1, #hero.energy-burst-light[_ngcontent-%COMP%] h5, #hero.gray[_ngcontent-%COMP%] .done-button, #hero.gray[_ngcontent-%COMP%] .mat-form-field-label, #hero.gray[_ngcontent-%COMP%] .mat-menu-trigger, #hero.gray[_ngcontent-%COMP%] .mat-select-value-text, #hero.gray[_ngcontent-%COMP%] .mat-tab-label, #hero.gray[_ngcontent-%COMP%] .show-all, #hero.gray[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, #hero.gray[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, #hero.gray[_ngcontent-%COMP%] h1, #hero.gray[_ngcontent-%COMP%] h5, #hero.mountain[_ngcontent-%COMP%] .done-button, #hero.mountain[_ngcontent-%COMP%] .mat-form-field-label, #hero.mountain[_ngcontent-%COMP%] .mat-menu-trigger, #hero.mountain[_ngcontent-%COMP%] .mat-select-value-text, #hero.mountain[_ngcontent-%COMP%] .mat-tab-label, #hero.mountain[_ngcontent-%COMP%] .show-all, #hero.mountain[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, #hero.mountain[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, #hero.mountain[_ngcontent-%COMP%] h1, #hero.mountain[_ngcontent-%COMP%] h5, #hero.uva-blue[_ngcontent-%COMP%] .done-button, #hero.uva-blue[_ngcontent-%COMP%] .mat-form-field-label, #hero.uva-blue[_ngcontent-%COMP%] .mat-menu-trigger, #hero.uva-blue[_ngcontent-%COMP%] .mat-select-value-text, #hero.uva-blue[_ngcontent-%COMP%] .mat-tab-label, #hero.uva-blue[_ngcontent-%COMP%] .show-all, #hero.uva-blue[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, #hero.uva-blue[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, #hero.uva-blue[_ngcontent-%COMP%] h1, #hero.uva-blue[_ngcontent-%COMP%] h5, .black[_ngcontent-%COMP%] .done-button, .black[_ngcontent-%COMP%] .mat-form-field-label, .black[_ngcontent-%COMP%] .mat-menu-trigger, .black[_ngcontent-%COMP%] .mat-select-value-text, .black[_ngcontent-%COMP%] .mat-tab-label, .black[_ngcontent-%COMP%] .show-all, .black[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, .black[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, .black[_ngcontent-%COMP%] h1, .black[_ngcontent-%COMP%] h5, .energy-burst-dark[_ngcontent-%COMP%] .done-button, .energy-burst-dark[_ngcontent-%COMP%] .mat-form-field-label, .energy-burst-dark[_ngcontent-%COMP%] .mat-menu-trigger, .energy-burst-dark[_ngcontent-%COMP%] .mat-select-value-text, .energy-burst-dark[_ngcontent-%COMP%] .mat-tab-label, .energy-burst-dark[_ngcontent-%COMP%] .show-all, .energy-burst-dark[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, .energy-burst-dark[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, .energy-burst-dark[_ngcontent-%COMP%] h1, .energy-burst-dark[_ngcontent-%COMP%] h5, .energy-burst-light[_ngcontent-%COMP%] .done-button, .energy-burst-light[_ngcontent-%COMP%] .mat-form-field-label, .energy-burst-light[_ngcontent-%COMP%] .mat-menu-trigger, .energy-burst-light[_ngcontent-%COMP%] .mat-select-value-text, .energy-burst-light[_ngcontent-%COMP%] .mat-tab-label, .energy-burst-light[_ngcontent-%COMP%] .show-all, .energy-burst-light[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, .energy-burst-light[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, .energy-burst-light[_ngcontent-%COMP%] h1, .energy-burst-light[_ngcontent-%COMP%] h5, .gray[_ngcontent-%COMP%] .done-button, .gray[_ngcontent-%COMP%] .mat-form-field-label, .gray[_ngcontent-%COMP%] .mat-menu-trigger, .gray[_ngcontent-%COMP%] .mat-select-value-text, .gray[_ngcontent-%COMP%] .mat-tab-label, .gray[_ngcontent-%COMP%] .show-all, .gray[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, .gray[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, .gray[_ngcontent-%COMP%] h1, .gray[_ngcontent-%COMP%] h5, .mountain[_ngcontent-%COMP%] .done-button, .mountain[_ngcontent-%COMP%] .mat-form-field-label, .mountain[_ngcontent-%COMP%] .mat-menu-trigger, .mountain[_ngcontent-%COMP%] .mat-select-value-text, .mountain[_ngcontent-%COMP%] .mat-tab-label, .mountain[_ngcontent-%COMP%] .show-all, .mountain[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, .mountain[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, .mountain[_ngcontent-%COMP%] h1, .mountain[_ngcontent-%COMP%] h5, .uva-blue[_ngcontent-%COMP%] .done-button, .uva-blue[_ngcontent-%COMP%] .mat-form-field-label, .uva-blue[_ngcontent-%COMP%] .mat-menu-trigger, .uva-blue[_ngcontent-%COMP%] .mat-select-value-text, .uva-blue[_ngcontent-%COMP%] .mat-tab-label, .uva-blue[_ngcontent-%COMP%] .show-all, .uva-blue[_ngcontent-%COMP%] app-search-filters-breadcrumbs .mat-button, .uva-blue[_ngcontent-%COMP%] app-search-filters-breadcrumbs h4, .uva-blue[_ngcontent-%COMP%] h1, .uva-blue[_ngcontent-%COMP%] h5{color:#fff!important}#filters.black[_ngcontent-%COMP%] .mat-menu-trigger, #filters.gray[_ngcontent-%COMP%] .mat-menu-trigger, #filters.mountain[_ngcontent-%COMP%] .mat-menu-trigger, #filters.uva-blue[_ngcontent-%COMP%] .mat-menu-trigger, #hero.black[_ngcontent-%COMP%] .mat-menu-trigger, #hero.energy-burst-dark[_ngcontent-%COMP%] .mat-menu-trigger, #hero.energy-burst-light[_ngcontent-%COMP%] .mat-menu-trigger, #hero.gray[_ngcontent-%COMP%] .mat-menu-trigger, #hero.mountain[_ngcontent-%COMP%] .mat-menu-trigger, #hero.uva-blue[_ngcontent-%COMP%] .mat-menu-trigger, .black[_ngcontent-%COMP%] .mat-menu-trigger, .energy-burst-dark[_ngcontent-%COMP%] .mat-menu-trigger, .energy-burst-light[_ngcontent-%COMP%] .mat-menu-trigger, .gray[_ngcontent-%COMP%] .mat-menu-trigger, .mountain[_ngcontent-%COMP%] .mat-menu-trigger, .uva-blue[_ngcontent-%COMP%] .mat-menu-trigger{background-color:rgba(0,0,0,.2)}#filters.light-gray[_ngcontent-%COMP%], #hero.light-gray[_ngcontent-%COMP%], .light-gray[_ngcontent-%COMP%]{background-color:#eee}#filters.white[_ngcontent-%COMP%], #hero.white[_ngcontent-%COMP%], .white[_ngcontent-%COMP%]{background-color:#fff}#filters.uva-blue[_ngcontent-%COMP%], #hero.uva-blue[_ngcontent-%COMP%], .uva-blue[_ngcontent-%COMP%]{background-color:#002f6c}#filters.uva-orange[_ngcontent-%COMP%], #hero.uva-orange[_ngcontent-%COMP%], .uva-orange[_ngcontent-%COMP%]{background-color:#e57200}#filters.black[_ngcontent-%COMP%], #hero.black[_ngcontent-%COMP%], .black[_ngcontent-%COMP%]{background-color:#000}#filters.gray[_ngcontent-%COMP%], #hero.gray[_ngcontent-%COMP%], .gray[_ngcontent-%COMP%]{background-color:#636466}#filters.mountain[_ngcontent-%COMP%], #hero.mountain[_ngcontent-%COMP%], .mountain[_ngcontent-%COMP%]{background-color:#6f7ea0}#filters.sky[_ngcontent-%COMP%], #hero.sky[_ngcontent-%COMP%], .sky[_ngcontent-%COMP%]{background-color:#e5eef3}#hero.energy-burst-dark[_ngcontent-%COMP%], .energy-burst-dark[_ngcontent-%COMP%]{background-image:url(https://curry.virginia.edu/sites/all/themes/curry/_files/css/i/sunrise-burst.jpg)}#hero.energy-burst-light[_ngcontent-%COMP%], .energy-burst-light[_ngcontent-%COMP%]{background-image:url(https://curry.virginia.edu/sites/all/themes/curry/_files/css/i/sunrise-burst-footer-crop.jpg)}.color-swatch[_ngcontent-%COMP%]{display:inline-block;width:24px;height:24px;outline:1px solid #eee}#show-filters-button[_ngcontent-%COMP%]{margin-bottom:1em}app-border-box-tile[_ngcontent-%COMP%]{transition:position 3s} .mat-tooltip{font-size:15px!important}.mat-progress-bar[_ngcontent-%COMP%]{height:6px}.loc-service[_ngcontent-%COMP%]{margin:2em}"],data:{animation:[uC("pageAnimations",[gC(":enter",[yC("#age-filter, #language-filter, #topic-filter",[fC({opacity:0,transform:"translateX(-100px)"}),(P7=[cC("500ms cubic-bezier(0.35, 0, 0.25, 1)",fC({opacity:1,transform:"none"}))],{type:12,timings:-30,animation:P7})])])])]}}),D7);function R7(e,t){if(1&e&&fs(0,"app-type-icon",20),2&e){var n=As();us("iconType",n.selectedStatus&&n.selectedStatus.name)("size",1)}}function L7(e,t){if(1&e&&(ds(0,"span",21),Js(1),hs()),2&e){var n=As();Oa(1),el(n.selectedStatus.label)}}function F7(e,t){if(1&e){var n=vs();ds(0,"mat-option",22),ks("click",function(){rn(n);var e=t.$implicit;return As().selectStatus(e)}),ds(1,"span",21),Js(2),hs(),hs()}if(2&e){var i=t.$implicit;us("value",i)("ngClass","sort-by-"+i.name.toLowerCase()),Oa(2),el(i.label)}}function N7(e,t){if(1&e&&(ds(0,"span",21),Js(1),hs()),2&e){var n=As();Oa(1),el(n.selectedAge.label)}}function V7(e,t){if(1&e){var n=vs();ds(0,"mat-option",11),ks("click",function(){rn(n);var e=t.$implicit;return As().selectAge(e)}),ds(1,"span",21),Js(2),hs(),hs()}if(2&e){var i=t.$implicit;us("value",i),Oa(2),el(i.label)}}function B7(e,t){if(1&e&&fs(0,"app-type-icon",20),2&e){var n=As();us("iconType",n.selectedStatus&&n.selectedStatus.name)("size",1)}}function H7(e,t){if(1&e&&(ds(0,"span",21),Js(1),hs()),2&e){var n=As();Oa(1),el(n.selectedStatus.label)}}function z7(e,t){if(1&e){var n=vs();ds(0,"mat-option",11),ks("click",function(){rn(n);var e=t.$implicit;return As().selectStatus(e)}),ds(1,"span",21),Js(2),hs(),hs()}if(2&e){var i=t.$implicit;us("value",i),Oa(2),el(i.label)}}function G7(e,t){if(1&e&&(ds(0,"span",21),Js(1),hs()),2&e){var n=As();Oa(1),el(n.selectedAge.label)}}function j7(e,t){if(1&e){var n=vs();ds(0,"mat-option",11),ks("click",function(){rn(n);var e=t.$implicit;return As().selectAge(e)}),ds(1,"span",21),Js(2),hs(),hs()}if(2&e){var i=t.$implicit;us("value",i),Oa(2),el(i.label)}}function U7(e,t){if(1&e&&fs(0,"app-add-button",23),2&e){var n=As();us("addLabel","Add Study")("addLink","studies/add")("currentUser",n.currentUser)}}function W7(e,t){if(1&e&&fs(0,"app-search-result",25),2&e){var n=t.$implicit,i=As(2);us("hit",n),is("data-study-status",i.selectedStatus.name)}}function q7(e,t){if(1&e&&(ps(0),os(1,W7,1,2,"app-search-result",24),ms()),2&e){var n=As();Oa(1),us("ngForOf",n.studyHits)}}function Y7(e,t){1&e&&(ds(0,"span"),Js(1,"that are enrolling"),hs())}function Q7(e,t){1&e&&(ds(0,"span"),Js(1,"that are in progress"),hs())}function X7(e,t){1&e&&(ds(0,"span"),Js(1,"where results are being analyzed"),hs())}function $7(e,t){1&e&&(ds(0,"span"),Js(1,"where results have been published"),hs())}function K7(e,t){if(1&e&&(ds(0,"p",26),Js(1," We don't have any Autism DRIVE studies "),os(2,Y7,2,0,"span",18),os(3,Q7,2,0,"span",18),os(4,X7,2,0,"span",18),os(5,$7,2,0,"span",18),Js(6," at this time, but we're working on it. Check back soon, as the status of our research is constantly changing! "),hs()),2&e){var n=As();is("data-study-status",n.selectedStatus.name),Oa(2),us("ngIf","currently_enrolling"===n.selectedStatus.name),Oa(1),us("ngIf","study_in_progress"===n.selectedStatus.name),Oa(1),us("ngIf","results_being_analyzed"===n.selectedStatus.name),Oa(1),us("ngIf","study_results_published"===n.selectedStatus.name)}}var Z7,J7,e8=((J7=function(){function e(t,n,i,r,a){var o=this;b(this,e),this.api=t,this.authenticationService=n,this.route=i,this.router=r,this.meta=a,this.authenticationService.currentUser.subscribe(function(e){return o.currentUser=e}),this.meta.updateTag({property:"og:image",content:location.origin+"/assets/studies/hero.jpg"},"property='og:image'"),this.meta.updateTag({property:"og:image:secure_url",content:location.origin+"/assets/studies/hero.jpg"},"property='og:image:secure_url'"),this.meta.updateTag({name:"twitter:image",content:location.origin+"/assets/studies/hero.jpg"},"name='twitter:image'"),this.studyStatuses=Object.keys(vK).map(function(e){return{name:e,label:vK[e]}}),this.Ages=Object.keys(cK.labels).map(function(e){return{name:e,label:cK.labels[e]}}),console.log(this.Ages),this.route.params.subscribe(function(e){"studyStatus"in e?(o.selectedStatus=o.studyStatuses.find(function(t){return t.name===e.studyStatus}),o.selectedAge="age"in e?o.Ages.find(function(t){return t.name===e.age}):void 0):(o.selectedStatus=o.studyStatuses[0],o.route.params.studyStatus=o.studyStatuses[0].name,o.selectedAge=void 0,o.router.navigate(["/studies/"+o.studyStatuses[0].name]))}),this.loadStudies()}return w(e,[{key:"ngOnInit",value:function(){}},{key:"loadStudies",value:function(){var e=this;this.selectedAge?this.api.getStudiesByAge(this.selectedStatus.name,this.selectedAge.name).subscribe(function(t){e.studyHits=e._studiesToHits(t)}):this.api.getStudiesByStatus(this.selectedStatus.name).subscribe(function(t){e.studyHits=e._studiesToHits(t)})}},{key:"selectStatus",value:function(e){this.selectedStatus=e,this.router.navigate(["/studies/"+e.name]),this.loadStudies()}},{key:"selectAge",value:function(e){this.selectedAge=e,this.router.navigate(e?["/studies/"+this.selectedStatus.name+"/"+e.name]:["/studies/"+this.selectedStatus.name]),this.loadStudies()}},{key:"_studiesToHits",value:function(e){var t=this;return e.map(function(e){return new gK({id:e.id,type:"study",ages:e.ages,title:e.short_title,content:e.description,description:e.short_description,last_updated:e.last_updated,highlights:null,url:"/study/".concat(e.id),label:"Research Studies",status:t.studyStatuses.find(function(t){return t.name===e.status}).label})})}}]),e}()).\u0275fac=function(e){return new(e||J7)(ls(x$),ls(y$),ls(oQ),ls(EX),ls(Yf))},J7.\u0275cmp=pt({type:J7,selectors:[["app-studies"]],decls:50,vars:20,consts:[["fxLayoutAlign","center","fxLayout","column"],["id","hero","ngClass.lt-md","margin-bottom-none","ngStyle.gt-md","padding-bottom:180px; margin-bottom:10px",1,"center-center","gradient-overlay","container","with-escaping-tiles"],[1,"hero-content"],[1,"desktop"],["fxLayout","row","fxLayoutGap","40px","fxLayoutAlign","left auto","id","TopOfSearch",1,"row","escaping-tiles-1x",2,"padding-left","6em","padding-right","2em","padding-top","2em"],["id","set-status",2,"margin-bottom","-1em"],[3,"value","valueChange"],[3,"iconType","size",4,"ngIf"],["class","type-label",4,"ngIf"],[3,"value","ngClass","click",4,"ngFor","ngForOf"],["placeholder","All Ages",3,"value","valueChange"],[3,"value","click"],[3,"value","click",4,"ngFor","ngForOf"],[1,"mobile_device_480px"],["fxLayout","column","fxLayoutGap","2px","fxLayoutAlign","center auto","id","TopOfSearch",1,"row","escaping-tiles-1x",2,"padding-left","2em","padding-right","2em"],[2,"margin-bottom","-1em"],["fxLayout","column","fxLayoutGap","40px","ngStyle.gt-md","padding-top:10px;",1,"studies"],[3,"addLabel","addLink","currentUser",4,"ngIf"],[4,"ngIf"],["class","no-results",4,"ngIf"],[3,"iconType","size"],[1,"type-label"],[3,"value","ngClass","click"],[3,"addLabel","addLink","currentUser"],[3,"hit",4,"ngFor","ngForOf"],[3,"hit"],[1,"no-results"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"div",1),ds(2,"div",2),ds(3,"h1"),Js(4,"Autism Research Studies"),hs(),hs(),hs(),ds(5,"div",3),ds(6,"div",4),ds(7,"mat-form-field",5),ds(8,"mat-label"),Js(9,"Study Status"),hs(),ds(10,"mat-select",6),ks("valueChange",function(e){return t.selectedStatus=e}),ds(11,"mat-select-trigger"),os(12,R7,1,2,"app-type-icon",7),os(13,L7,2,1,"span",8),hs(),os(14,F7,3,3,"mat-option",9),hs(),hs(),ds(15,"mat-form-field"),ds(16,"mat-label"),Js(17,"Age Range"),hs(),ds(18,"mat-select",10),ks("valueChange",function(e){return t.selectedAge=e}),ds(19,"mat-select-trigger"),os(20,N7,2,1,"span",8),hs(),ds(21,"mat-option",11),ks("click",function(){return t.selectAge(void 0)}),Js(22,"All Ages"),hs(),os(23,V7,3,2,"mat-option",12),hs(),hs(),hs(),hs(),ds(24,"div",13),fs(25,"p"),ds(26,"div",14),ds(27,"mat-form-field",15),ds(28,"mat-label"),Js(29,"Study Status"),hs(),ds(30,"mat-select",6),ks("valueChange",function(e){return t.selectedStatus=e}),ds(31,"mat-select-trigger"),os(32,B7,1,2,"app-type-icon",7),os(33,H7,2,1,"span",8),hs(),os(34,z7,3,2,"mat-option",12),hs(),hs(),ds(35,"mat-form-field"),ds(36,"mat-label"),Js(37,"Age Range"),hs(),ds(38,"mat-select",10),ks("valueChange",function(e){return t.selectedAge=e}),ds(39,"mat-select-trigger"),os(40,G7,2,1,"span",8),hs(),ds(41,"mat-option",11),ks("click",function(){return t.selectAge(void 0)}),Js(42,"All Ages"),hs(),os(43,j7,3,2,"mat-option",12),hs(),hs(),hs(),hs(),ds(44,"div",16),os(45,U7,1,3,"app-add-button",17),ds(46,"h2"),Js(47),hs(),os(48,q7,2,1,"ng-container",18),os(49,K7,7,5,"p",19),hs(),hs()),2&e&&(Oa(10),us("value",t.selectedStatus),Oa(2),us("ngIf",t.selectedStatus),Oa(1),us("ngIf",t.selectedStatus),Oa(1),us("ngForOf",t.studyStatuses),Oa(4),us("value",t.selectedAge),Oa(2),us("ngIf",t.selectedAge),Oa(1),us("value",void 0),Oa(2),us("ngForOf",t.Ages),Oa(7),us("value",t.selectedStatus),Oa(2),us("ngIf",t.selectedStatus),Oa(1),us("ngIf",t.selectedStatus),Oa(1),us("ngForOf",t.studyStatuses),Oa(4),us("value",t.selectedAge),Oa(2),us("ngIf",t.selectedAge),Oa(1),us("value",void 0),Oa(2),us("ngForOf",t.Ages),Oa(2),us("ngIf",t.currentUser&&t.currentUser.permissions.includes("create_study")),Oa(2),el(t.selectedStatus.label),Oa(1),us("ngIf",t.studyHits&&t.studyHits.length>0),Oa(1),us("ngIf",!t.studyHits||0===t.studyHits.length))},directives:[eb,Xy,ly,Sy,n_,wT,hT,KL,XL,wh,bh,JA,BK,yh,n5,iZ],styles:['#hero[_ngcontent-%COMP%]{background-image:url(/assets/studies/hero.jpg)}#hero[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{color:#fff}.studies[_ngcontent-%COMP%]{padding:5.5%}.studies[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:2.5rem}.studies[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]:after{content:"";background-color:#e57200;width:6.25rem;height:.125rem;display:block} .mat-form-field-wrapper{margin-bottom:-1.25em}.covid19-alert[_ngcontent-%COMP%]{margin:2%}.covid19-alert[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{max-width:960px}.mobile_device_480px[_ngcontent-%COMP%]{display:none}@media only screen and (max-device-width:480px){.mobile_device_480px[_ngcontent-%COMP%]{display:block}.desktop[_ngcontent-%COMP%]{display:none}}']}),J7),t8=((Z7=function(){function e(t,n){b(this,e),this.dialogRef=t,this.data=n}return w(e,[{key:"ngOnInit",value:function(){}},{key:"onNoClick",value:function(){this.dialogRef.close()}}]),e}()).\u0275fac=function(e){return new(e||Z7)(ls(ID),ls(zD))},Z7.\u0275cmp=pt({type:Z7,selectors:[["app-investigator-form"]],decls:24,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["matInput","",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","",3,"click"],["mat-flat-button","","color","primary","cdkFocusInitial","",3,"mat-dialog-close"]],template:function(e,t){1&e&&(ds(0,"h1",0),Js(1,"Edit Investigator"),hs(),ds(2,"div",1),ds(3,"mat-form-field"),ds(4,"mat-label"),Js(5,"Name:"),hs(),ds(6,"input",2),ks("ngModelChange",function(e){return t.data.si.investigator.name=e}),hs(),hs(),ds(7,"mat-form-field"),ds(8,"mat-label"),Js(9,"Title:"),hs(),ds(10,"input",2),ks("ngModelChange",function(e){return t.data.si.investigator.title=e}),hs(),hs(),ds(11,"mat-form-field"),ds(12,"mat-label"),Js(13,"Organization Name:"),hs(),ds(14,"input",2),ks("ngModelChange",function(e){return t.data.si.investigator.organization_name=e}),hs(),hs(),ds(15,"mat-form-field"),ds(16,"mat-label"),Js(17,"Bio Link:"),hs(),ds(18,"input",2),ks("ngModelChange",function(e){return t.data.si.investigator.bio_link=e}),hs(),hs(),hs(),ds(19,"div",3),ds(20,"button",4),ks("click",function(){return t.onNoClick()}),Js(21,"Cancel"),hs(),ds(22,"button",5),Js(23,"Save"),hs(),hs()),2&e&&(Oa(6),us("ngModel",t.data.si.investigator.name),Oa(4),us("ngModel",t.data.si.investigator.title),Oa(4),us("ngModel",t.data.si.investigator.organization_name),Oa(4),us("ngModel",t.data.si.investigator.bio_link),Oa(4),us("mat-dialog-close",t.data.si.investigator))},directives:[XD,$D,wT,hT,vM,wb,Zb,Nk,KD,kP,QD],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),Z7);function n8(e,t){if(1&e&&(ds(0,"div",7),Js(1),hs()),2&e){var n=As(2);Oa(1),el(n.errorMessage)}}function i8(e,t){if(1&e&&(ds(0,"footer",8),ds(1,"button",9),Js(2,"Next"),hs(),ds(3,"button",10),Js(4,"Cancel"),hs(),hs()),2&e){var n=As(2);Oa(3),us("mat-dialog-close",n.data.displaySurvey)}}function r8(e,t){1&e&&(ds(0,"footer"),fs(1,"app-loading"),hs())}function a8(e,t){if(1&e&&(ds(0,"formly-form",3),os(1,n8,2,1,"div",4),os(2,i8,5,1,"footer",5),os(3,r8,2,0,"footer",6),hs()),2&e){var n=As();us("form",n.form)("fields",n.fields)("model",n.model),Oa(1),us("ngIf",n.errorMessage),Oa(1),us("ngIf","form"===n.registerStateValue),Oa(1),us("ngIf","submitting"===n.registerStateValue)}}function o8(e,t){if(1&e&&(ds(0,"footer",11),ds(1,"h2"),Js(2,"Account Created!"),hs(),ds(3,"p"),Js(4,"Please check your email to complete the signin process."),hs(),ds(5,"button",12),Js(6," Continue to survey "),hs(),hs()),2&e){var n=As();Oa(5),us("mat-dialog-close",n.data.displaySurvey)}}var s8,l8=((s8=function(){function e(t,n,i,r,a,o){b(this,e),this.api=t,this.changeDetectorRef=n,this.route=i,this.googleAnalytics=r,this.dialogRef=a,this.data=o,this.errorMessage="",this.form=new Pk({}),this.model={},this.fields=[{key:"email",validators:{fieldMatch:{expression:function(e){var t=e.value;return t.emailConfirm===t.email||!t.emailConfirm||!t.email},message:"Email Does Not Match",errorPath:"emailConfirm"}},fieldGroup:[{key:"email",type:"input",templateOptions:{type:"email",label:"Email Address:",placeholder:"Enter email",required:!0},validators:{validation:["email"]}},{key:"emailConfirm",type:"input",templateOptions:{type:"email",label:"Confirm Email",placeholder:"Please re-enter your email",required:!0}}]}],this._stateSubject=new ep("form"),this.registerState=this._stateSubject.asObservable(),this.user=new v$({id:null,email:this.model.email,role:"User"})}return w(e,[{key:"ngOnInit",value:function(){}},{key:"submit",value:function(){var e=this;localStorage.removeItem("token_url"),this.form.valid&&(this._stateSubject.next("submitting"),this.registerState=this._stateSubject.asObservable(),this.errorMessage="",this.user.email=this.model.email.email,this.api.addUser(this.user).subscribe(function(t){e.user=t,t.hasOwnProperty("token_url")&&localStorage.setItem("token_url",t.token_url),e.googleAnalytics.accountEvent("register"),e._stateSubject.next("wait_for_email"),e.registerState=e._stateSubject.asObservable(),e.changeDetectorRef.detectChanges(),e.data.displaySurvey=!0},function(t){e._stateSubject.next("form"),e.registerState=e._stateSubject.asObservable(),e.errorMessage=t,e.changeDetectorRef.detectChanges()}))}},{key:"registerStateValue",get:function(){return this._stateSubject.value}}]),e}()).\u0275fac=function(e){return new(e||s8)(ls(x$),ls(Jl),ls(oQ),ls(h$),ls(ID),ls(zD))},s8.\u0275cmp=pt({type:s8,selectors:[["app-register-dialog"]],decls:5,vars:3,consts:[[3,"formGroup","ngSubmit"],[3,"form","fields","model",4,"ngIf"],["id","confirmation_message",4,"ngIf"],[3,"form","fields","model"],["id","error_message","class","display mat-error",4,"ngIf"],["fxLayout","column","fxLayoutGap","2%","fxLayoutAlign","center",4,"ngIf"],[4,"ngIf"],["id","error_message",1,"display","mat-error"],["fxLayout","column","fxLayoutGap","2%","fxLayoutAlign","center"],["mat-flat-button","","type","submit","color","primary","id","submit"],["mat-flat-button","","color","accent","id","cancel",3,"mat-dialog-close"],["id","confirmation_message"],["color","primary","mat-flat-button","","id","continue",3,"mat-dialog-close"]],template:function(e,t){1&e&&(ds(0,"h1"),Js(1,"Join Autism DRIVE"),hs(),ds(2,"form",0),ks("ngSubmit",function(){return t.submit()}),os(3,a8,4,6,"formly-form",1),os(4,o8,7,1,"footer",2),hs()),2&e&&(Oa(2),us("formGroup",t.form),Oa(1),us("ngIf","wait_for_email"!==t.registerStateValue),Oa(1),us("ngIf","wait_for_email"===t.registerStateValue))},directives:[Vk,Jb,qk,wh,yj,Xy,n_,eb,kP,QD,zZ],styles:[""]}),s8);function u8(e,t){if(1&e){var n=vs();ds(0,"div",3),ds(1,"p"),Js(2,"Joining Autism DRIVE is the first step toward participating in our clinical research. Once you join you will be able to see the link to participate."),hs(),ds(3,"button",4),ks("click",function(){return rn(n),As().openDialog()}),Js(4,"Join Autism DRIVE"),hs(),ds(5,"p"),Js(6,"Already a user? Sign in to see the link to participate."),hs(),ds(7,"button",5),ks("click",function(){return rn(n),As().goLogin()}),Js(8,"Sign In"),hs(),hs()}}function c8(e,t){if(1&e){var n=vs();ds(0,"button",7),ks("click",function(){return rn(n),As(2).goSurvey()}),Js(1,"Start Survey"),hs()}}function d8(e,t){if(1&e&&(ds(0,"div"),os(1,c8,2,0,"button",6),hs()),2&e){var n=As();Oa(1),us("ngIf",n.surveyLink)}}var h8,f8=((h8=function(){function e(t,n,i,r,a){var o=this;b(this,e),this.api=t,this.router=n,this.googleAnalytics=i,this.authenticationService=r,this.dialog=a,this.authenticationService.currentUser.subscribe(function(e){return o.currentUser=e})}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.currentUser&&this.api.getUser(this.currentUser.id).subscribe(function(t){e.currentUser=new v$(t)})}},{key:"goLogin",value:function(){this.router.navigate(["/login"],{queryParams:{returnUrl:this.router.url}})}},{key:"goSurvey",value:function(){this.surveyLink&&(this.sendInquiry(),this.googleAnalytics.studySurveyEvent(this.study),window.open(this.surveyLink,"_blank"))}},{key:"sendInquiry",value:function(){this.api.sendStudyInquiryEmail(this.currentUser,this.study).subscribe(),this.googleAnalytics.studyInquiryEvent(this.study)}},{key:"openDialog",value:function(){var e=this;this.dialog.open(l8,{width:"".concat(window.innerWidth,"px"),data:{displaySurvey:!1}}).afterClosed().subscribe(function(t){t&&(e.currentUser=!0,e.goSurvey())})}}]),e}()).\u0275fac=function(e){return new(e||h8)(ls(x$),ls(EX),ls(h$),ls(y$),ls(qD))},h8.\u0275cmp=pt({type:h8,selectors:[["app-study-survey-entry"]],inputs:{study:"study",currentUser:"currentUser",surveyLink:"surveyLink"},decls:5,vars:2,consts:[["fxFlex.gt-md","60%"],["fxLayout","column","fxLayoutGap","20px",4,"ngIf"],[4,"ngIf"],["fxLayout","column","fxLayoutGap","20px"],["mat-flat-button","","color","primary",3,"click"],["mat-flat-button","","color","accent",3,"click"],["mat-flat-button","","color","primary","id","survey-button",3,"click",4,"ngIf"],["mat-flat-button","","color","primary","id","survey-button",3,"click"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"h2"),Js(2,"Interested in Participating?"),hs(),os(3,u8,9,0,"div",1),os(4,d8,2,1,"div",2),hs()),2&e&&(Oa(3),us("ngIf",!t.currentUser),Oa(1),us("ngIf",t.currentUser))},directives:[v_,wh,Xy,n_,kP],styles:["#survey-button[_ngcontent-%COMP%]{margin:1em auto}"]}),h8);function p8(e,t){if(1&e){var n=vs();ds(0,"div",3),ds(1,"p"),Js(2,"Joining Autism DRIVE is the first step toward participating in our clinical research."),hs(),ds(3,"button",4),ks("click",function(){return rn(n),As(2).goRegister()}),Js(4,"Join Autism DRIVE"),hs(),ds(5,"p"),Js(6,"Already a user? Sign in"),hs(),ds(7,"button",5),ks("click",function(){return rn(n),As(2).goLogin()}),Js(8,"Sign In"),hs(),hs()}}function m8(e,t){if(1&e){var n=vs();ds(0,"div"),ds(1,"mat-card"),ds(2,"mat-card-title"),Js(3),hs(),ds(4,"mat-card-subtitle"),Js(5),Iu(6,"titlecase"),hs(),ds(7,"div",8),fs(8,"mat-progress-bar",9),ds(9,"button",10),ks("click",function(e){rn(n);var i=t.$implicit;return As(4).goEditEnroll(e,i)}),Js(10),hs(),hs(),hs(),hs()}if(2&e){var i=t.$implicit,r=As(4);Oa(1),Hs("mat-elevation-z0",!0),Oa(2),el(i.name||"No User Name Set"),Oa(2),el(r.currentUser.isSelf(i)?"You":Ru(6,9,i.relationship)),Oa(3),us("mode","determinate")("value",100*i.percent_complete),Oa(1),Ms("id","edit_enroll_",i.relationship,"_",i.id,""),Oa(1),tl("Edit ","self_guardian"===i.relationship?"guardian":"enrollment"," info")}}function g8(e,t){if(1&e){var n=vs();ds(0,"div"),ds(1,"h4"),Js(2,"Send Inquiry"),hs(),ds(3,"p"),Js(4,"Select the \u201cLearn More\u201d button for a member of the research team to contact you to learn more."),hs(),ds(5,"button",5),ks("click",function(){return rn(n),As(4).sendInquiry()}),Js(6,"Learn More"),hs(),hs()}}function v8(e,t){if(1&e&&(ds(0,"div"),ds(1,"p"),Js(2,"Please make sure that your profile is complete before indicating your interest in this study. The researchers have a much better chance of determining your eligibility if they can see complete details about you and/or your dependant."),hs(),os(3,m8,11,11,"div",7),os(4,g8,7,0,"div",6),hs()),2&e){var n=As(3);Oa(3),us("ngForOf",n.currentUser.participants),Oa(1),us("ngIf",n.haveUserContact)}}function y8(e,t){if(1&e){var n=vs();ds(0,"div"),ds(1,"p"),Js(2,'This study has an additional screener to complete in order to determine if you are eligible to participate. If you haven\'t already completed that screener, you can click the "Go to screener" button to be directed there.'),hs(),ds(3,"button",5),ks("click",function(){return rn(n),As(4).goEligibility()}),Js(4,"Go to screener"),hs(),hs()}}function _8(e,t){if(1&e&&(ds(0,"div"),ds(1,"p"),Js(2,"You have already sent an inquiry about this study. We\u2019ve let the researchers know that you are interested and they will contact you about next steps."),hs(),os(3,y8,5,0,"div",6),hs()),2&e){var n=As(3);Oa(3),us("ngIf",n.study.eligibility_url)}}function b8(e,t){1&e&&(ds(0,"div"),ds(1,"p"),Js(2,"Your profile is not currently eligible for enrolling in this Study."),hs(),hs())}function k8(e,t){if(1&e&&(ds(0,"div",3),os(1,v8,5,2,"div",6),os(2,_8,4,1,"div",6),os(3,b8,3,0,"div",6),hs()),2&e){var n=As(2);Oa(1),us("ngIf",!n.alreadyInquired&&!n.nonParticipant),Oa(1),us("ngIf",n.alreadyInquired),Oa(1),us("ngIf",n.nonParticipant)}}function w8(e,t){if(1&e&&(ds(0,"div",1),ds(1,"h2"),Js(2,"Interested in Enrolling?"),hs(),os(3,p8,9,0,"div",2),os(4,k8,4,3,"div",2),hs()),2&e){var n=As();Oa(3),us("ngIf",!n.currentUser),Oa(1),us("ngIf",n.currentUser)}}function C8(e,t){if(1&e){var n=vs();ds(0,"div"),ds(1,"p"),Js(2,'This study has an additional screener to complete in order to determine if you are eligible to participate. Click the "Go to screener" button to be directed there.'),hs(),ds(3,"button",5),ks("click",function(){return rn(n),As(2).goEligibility()}),Js(4,"Go to screener"),hs(),hs()}}function x8(e,t){if(1&e&&(ds(0,"div",1),ds(1,"h2"),Js(2,"Thank You"),hs(),ds(3,"p"),Js(4,"We\u2019ve let the researchers know that you are interested in the study."),hs(),os(5,C8,5,0,"div",6),hs()),2&e){var n=As();Oa(5),us("ngIf",n.study.eligibility_url)}}var S8,A8=((S8=function(){function e(t,n,i,r){var a=this;b(this,e),this.api=t,this.authenticationService=n,this.router=i,this.googleAnalytics=r,this.haveUserContact=!1,this.nonParticipant=!0,this.inquirySent=!1,this.alreadyInquired=!1,this.authenticationService.currentUser.subscribe(function(e){return a.currentUser=e})}return w(e,[{key:"ngOnInit",value:function(){this.refreshUserAndInquiries()}},{key:"refreshUserAndInquiries",value:function(){var e=this;this.currentUser&&(this.api.getUser(this.currentUser.id).subscribe(function(t){var n=new v$(t);e.currentUser=n,e.haveUserContact=n.checkContact(),e.nonParticipant=n.getSelf().relationship===p$.SELF_INTERESTED}),this.api.getUserStudyInquiries(this.currentUser.id).subscribe(function(t){t.forEach(function(t){t.study_id===e.study.id&&(e.alreadyInquired=!0)})}))}},{key:"goLogin",value:function(){this.router.navigate(["/login"],{queryParams:{returnUrl:this.router.url}})}},{key:"goRegister",value:function(){this.router.navigateByUrl("/register")}},{key:"sendInquiry",value:function(){this.api.sendStudyInquiryEmail(this.currentUser,this.study).subscribe(),this.googleAnalytics.studyInquiryEvent(this.study),this.inquirySent=!0}},{key:"goEditEnroll",value:function(e,t){t.relationship===p$.SELF_PARTICIPANT?(e.preventDefault(),this.router.navigate(["flow","self_intake",t.id])):t.relationship===p$.DEPENDENT?(e.preventDefault(),this.router.navigate(["flow","dependent_intake",t.id])):t.relationship===p$.SELF_PROFESSIONAL?(e.preventDefault(),this.router.navigate(["flow","professional_intake",t.id])):t.relationship===p$.SELF_GUARDIAN&&(e.preventDefault(),this.router.navigate(["flow","guardian_intake",t.id]))}},{key:"goEligibility",value:function(){this.study&&this.study.eligibility_url&&(window.open(this.study.eligibility_url+"?user_id="+this.currentUser.id,"_blank"),this.sendInquiry())}}]),e}()).\u0275fac=function(e){return new(e||S8)(ls(x$),ls(y$),ls(EX),ls(h$))},S8.\u0275cmp=pt({type:S8,selectors:[["app-study-inquiry"]],inputs:{study:"study"},decls:2,vars:2,consts:[["fxFlex.gt-md","60%",4,"ngIf"],["fxFlex.gt-md","60%"],["fxLayout","column","fxLayoutGap","20px",4,"ngIf"],["fxLayout","column","fxLayoutGap","20px"],["mat-flat-button","","color","primary",3,"click"],["mat-flat-button","","color","accent",3,"click"],[4,"ngIf"],[4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutGap","1em"],[3,"mode","value"],["mat-flat-button","","color","primary",3,"id","click"]],template:function(e,t){1&e&&(os(0,w8,5,2,"div",0),os(1,x8,6,1,"div",0)),2&e&&(us("ngIf",!t.inquirySent),Oa(1),us("ngIf",t.inquirySent))},directives:[wh,v_,Xy,n_,kP,bh,jP,HP,zP,QF],pipes:[Qh],styles:[""]}),S8);function O8(e,t){if(1&e&&(ds(0,"h4"),Js(1),hs()),2&e){var n=As(2);Oa(1),el(n.study.organization_name)}}function E8(e,t){if(1&e&&fs(0,"app-edit-button",7),2&e){var n=As(2);us("editLabel","Edit Study")("editLink","study/edit/"+n.study.id.toString())("currentUser",n.currentUser)}}function T8(e,t){if(1&e&&(ds(0,"p"),ds(1,"b"),Js(2,"Click "),ds(3,"a",8),Js(4,"here"),hs(),Js(5," for the results"),hs(),hs()),2&e){var n=As(2);Oa(3),Ps("href",n.study.results_url,Pr)}}function P8(e,t){if(1&e&&(ds(0,"div"),ds(1,"h2"),Js(2,"Who We're Looking For"),hs(),ds(3,"markdown"),Js(4),hs(),hs()),2&e){var n=As(2);Oa(4),el(n.study.participant_description)}}function D8(e,t){if(1&e&&(ds(0,"div"),ds(1,"h2"),Js(2,"Why Participate?"),hs(),ds(3,"markdown"),Js(4),hs(),hs()),2&e){var n=As(2);Oa(4),el(n.study.benefit_description)}}function M8(e,t){if(1&e&&(ds(0,"a",8),Js(1),hs()),2&e){var n=As().$implicit;Ps("href",n.investigator.bio_link,Pr),Oa(1),el(n.investigator.name)}}function I8(e,t){if(1&e&&(ds(0,"b"),Js(1),hs()),2&e){var n=As().$implicit;Oa(1),el(n.investigator.name)}}function R8(e,t){if(1&e&&(ds(0,"span"),Js(1),hs()),2&e){var n=As().$implicit;Oa(1),tl(", ",n.investigator.title,"")}}function L8(e,t){if(1&e&&(ds(0,"span"),Js(1),hs()),2&e){var n=As().$implicit;Oa(1),tl(", ",n.investigator.organization_name,"")}}function F8(e,t){if(1&e){var n=vs();ds(0,"button",14),ks("click",function(){rn(n);var e=As().$implicit;return As(3).openDialog(e)}),ds(1,"mat-icon"),Js(2,"edit"),hs(),hs()}}function N8(e,t){if(1&e&&(ds(0,"div",10),ds(1,"div",11),ds(2,"p"),os(3,M8,2,2,"a",12),os(4,I8,2,1,"b",4),os(5,R8,2,1,"span",4),os(6,L8,2,1,"span",4),hs(),hs(),os(7,F8,3,0,"button",13),hs()),2&e){var n=t.$implicit,i=As(3);Oa(3),us("ngIf",n.investigator.bio_link),Oa(1),us("ngIf",!n.investigator.bio_link),Oa(1),us("ngIf",n.investigator.title),Oa(1),us("ngIf",n.investigator.organization_name),Oa(1),us("ngIf",i.currentUser&&i.currentUser.permissions.includes("edit_resource"))}}function V8(e,t){if(1&e&&(ds(0,"div"),ds(1,"h2"),Js(2,"About the Researchers"),hs(),os(3,N8,8,5,"div",9),hs()),2&e){var n=As(2);Oa(3),us("ngForOf",n.study.study_investigators)}}function B8(e,t){1&e&&(ds(0,"h2"),Js(1,"Where does this study take place?"),hs())}function H8(e,t){1&e&&(ds(0,"h2"),Js(1,"Where did this study take place?"),hs())}function z8(e,t){if(1&e&&(ds(0,"p"),Js(1),hs()),2&e){var n=As(3);Oa(1),tl("Number of Visits Required For Participation: ",n.study.num_visits,"")}}function G8(e,t){if(1&e&&(ds(0,"div"),os(1,B8,2,0,"h2",4),os(2,H8,2,0,"h2",4),ds(3,"p"),Js(4),hs(),os(5,z8,2,1,"p",4),hs()),2&e){var n=As(2);Oa(1),us("ngIf","currently_enrolling"===n.study.status||"study_in_progress"===n.study.status),Oa(1),us("ngIf","results_being_analyzed"===n.study.status||"study_results_published"===n.study.status),Oa(2),el(n.study.location),Oa(1),us("ngIf",n.study.num_visits)}}function j8(e,t){if(1&e&&(ds(0,"div"),fs(1,"app-study-survey-entry",15),hs()),2&e){var n=As(2);Oa(1),us("study",n.study)("currentUser",n.currentUser)("surveyLink",n.study.survey_url)}}function U8(e,t){if(1&e&&(ds(0,"div"),fs(1,"app-study-inquiry",16),hs()),2&e){var n=As(2);Oa(1),us("study",n.study)}}function W8(e,t){if(1&e&&(ds(0,"div",2),ds(1,"div",3),ds(2,"h1"),Js(3),hs(),os(4,O8,2,1,"h4",4),os(5,E8,1,3,"app-edit-button",5),ds(6,"p",6),Js(7),hs(),ds(8,"markdown"),Js(9),hs(),os(10,T8,6,1,"p",4),os(11,P8,5,1,"div",4),os(12,D8,5,1,"div",4),os(13,V8,4,1,"div",4),os(14,G8,6,4,"div",4),os(15,j8,2,3,"div",4),os(16,U8,2,1,"div",4),hs(),hs()),2&e){var n=As();Oa(3),el(n.study.title),Oa(1),us("ngIf",n.study.organization_name),Oa(1),us("ngIf",n.currentUser&&n.currentUser.permissions.includes("edit_study")),Oa(2),tl("Study Status: ",n.snakeToUpperCase(n.study.status),""),Oa(2),el(n.study.description),Oa(1),us("ngIf",n.study.results_url),Oa(1),us("ngIf","currently_enrolling"===n.study.status&&n.study.participant_description),Oa(1),us("ngIf","currently_enrolling"===n.study.status&&n.study.benefit_description),Oa(1),us("ngIf",n.study.study_investigators.length>0),Oa(1),us("ngIf",n.study.location),Oa(1),us("ngIf","currently_enrolling"===n.study.status&&n.study.survey_url),Oa(1),us("ngIf","currently_enrolling"===n.study.status&&!n.study.survey_url)}}function q8(e,t){1&e&&fs(0,"app-loading",17)}var Y8,Q8=((Y8=function(){function e(t,n,i,r,a){var o=this;b(this,e),this.api=t,this.route=n,this.router=i,this.authenticationService=r,this.dialog=a,this.loading=!0,this.authenticationService.currentUser.subscribe(function(e){return o.currentUser=e}),this.route.params.subscribe(function(e){o.loading=!0;var t=e.studyId?parseInt(e.studyId,10):null;isFinite(t)&&o.api.getStudy(t).subscribe(function(e){o.study=e,o.loading=!1})})}return w(e,[{key:"snakeToUpperCase",get:function(){return r2}},{key:"ngOnInit",value:function(){}},{key:"openDialog",value:function(e){var t=this;this.dialog.open(t8,{width:"".concat(window.innerWidth,"px"),data:{si:e}}).afterClosed().subscribe(function(n){n&&(e.investigator=n,t.api.updateInvestigator(e.investigator).subscribe())})}}]),e}()).\u0275fac=function(e){return new(e||Y8)(ls(x$),ls(oQ),ls(EX),ls(y$),ls(qD))},Y8.\u0275cmp=pt({type:Y8,selectors:[["app-study-detail"]],decls:2,vars:2,consts:[["class","container","id","study",4,"ngIf"],["message","Loading...",4,"ngIf"],["id","study",1,"container"],["id","study-details","fxFlex.gt-md","80%","fxFlex.gt-lg","60%","fxLayout","column","fxLayoutGap","15px",1,"row"],[4,"ngIf"],[3,"editLabel","editLink","currentUser",4,"ngIf"],[1,"status"],[3,"editLabel","editLink","currentUser"],["target","_blank",3,"href"],["fxLayout","row","fxLayoutGap","40px","fxLayoutAlign","start center",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutGap","40px","fxLayoutAlign","start center"],[1,"investigator"],["target","_blank",3,"href",4,"ngIf"],["mat-mini-fab","","type","button","color","primary","matTooltip","Edit Investigator",3,"click",4,"ngIf"],["mat-mini-fab","","type","button","color","primary","matTooltip","Edit Investigator",3,"click"],[3,"study","currentUser","surveyLink"],[3,"study"],["message","Loading..."]],template:function(e,t){1&e&&(os(0,W8,17,12,"div",0),os(1,q8,1,0,"app-loading",1)),2&e&&(us("ngIf",!t.loading&&t.study),Oa(1),us("ngIf",!t.study))},directives:[wh,v_,Xy,n_,QW,H2,bh,eb,kP,CF,BR,f8,A8,zZ],styles:[".mat-flat-button[_ngcontent-%COMP%]{margin-top:1em}.status[_ngcontent-%COMP%]{font-size:1.5em;font-weight:700;margin:1em 0;padding-bottom:1em}.investigator[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:.25em auto}h1[_ngcontent-%COMP%]{margin:1em 0}#study-details[_ngcontent-%COMP%]{margin:2em}"]}),Y8);function X8(e,t){1&e&&fs(0,"app-loading",3)}function $8(e,t){if(1&e){var n=vs();ds(0,"button",11),ks("click",function(){rn(n);var e=As(2);return e.form.valid?e.submit():e.highlightRequiredFields()}),Js(1,"Save"),hs()}}function K8(e,t){if(1&e){var n=vs();ds(0,"button",12),ks("click",function(){return rn(n),As(2).onCancel()}),Js(1,"Cancel"),hs()}}function Z8(e,t){if(1&e){var n=vs();ds(0,"button",13),ks("click",function(){return rn(n),As(2).showDelete()}),Js(1,"Delete"),hs()}}function J8(e,t){if(1&e){var n=vs();ds(0,"button",14),ks("click",function(){return rn(n),As(2).onDelete()}),Js(1,"Permanently Delete This Study!!! "),hs()}}function e6(e,t){if(1&e&&(ds(0,"form",4),ds(1,"h1"),Js(2,"Study Details"),hs(),fs(3,"formly-form",5),ds(4,"div",6),os(5,$8,2,0,"button",7),os(6,K8,2,0,"button",8),os(7,Z8,2,0,"button",9),os(8,J8,2,0,"button",10),hs(),hs()),2&e){var n=As();us("formGroup",n.form),Oa(3),us("form",n.form)("model",n.model)("fields",n.fields)("options",n.options),Oa(2),us("ngIf",n.form),Oa(1),us("ngIf",n.form),Oa(1),us("ngIf",!n.showConfirmDelete&&!n.createNew),Oa(1),us("ngIf",n.showConfirmDelete)}}var t6,n6=function(e){return e.LOADING="loading",e.SHOW_FORM="form",e}({}),i6=((t6=function(){function e(t,n,i,r){var a=this;b(this,e),this.api=t,this.route=n,this.router=i,this.deviceDetectorService=r,this.pageState=n6,this.state=n6.LOADING,this.showConfirmDelete=!1,this.model={},this.fields=[{key:"status",type:"select",templateOptions:{label:"Study Status",placeholder:"Please select the study status",options:[{value:"currently_enrolling",label:"Currently Enrolling"},{value:"study_in_progress",label:"Study in progress"},{value:"results_being_analyzed",label:"Results being analyzed"},{value:"study_results_published",label:"Study results published"}],required:!0}},{key:"title",type:"input",templateOptions:{label:"Title",placeholder:"Please enter the title of your study",required:!0}},{key:"short_title",type:"input",templateOptions:{label:"Short Title",placeholder:"Please enter the short display title of your study",required:!0,maxLength:55}},{key:"description",type:"textarea-auto-resize",templateOptions:{label:"Description",placeholder:"Please enter the description of your study",required:!0}},{key:"short_description",type:"textarea",templateOptions:{label:"Short Description",placeholder:"Please enter the short display description of your study",required:!0,maxLength:155}},{key:"participant_description",type:"textarea-auto-resize",templateOptions:{label:"Participant Description",placeholder:"Who are you looking for to participate in your study?"},expressionProperties:{"templateOptions.required":'model.status === "currently_enrolling"'}},{key:"benefit_description",type:"textarea",templateOptions:{label:"Benefit Description",placeholder:"How will participants benefit from your study?"},expressionProperties:{"templateOptions.required":'model.status === "currently_enrolling"'}},{key:"investigators",type:"select",templateOptions:{label:"Investigators",options:[],valueProp:"id",labelProp:"name",required:!0,multiple:!0},hooks:{onInit:function(e){e.templateOptions.options=a.api.getInvestigators()}}},{key:"additional_investigators",wrappers:["card"],templateOptions:{label:"Additional Investigator",description:"If your investigator does not appear in the list above, please add them here"},fieldGroup:[{type:"input",key:"name",templateOptions:{label:"Name"}},{type:"input",key:"title",templateOptions:{label:"Title"}},{type:"input",key:"organization_name",templateOptions:{label:"Organization Name"}},{type:"input",key:"bio_link",templateOptions:{label:"Bio Link"}}]},{key:"organization_name",type:"input",templateOptions:{label:"Organization",placeholder:"Please enter the name of the hosting organization"}},{key:"location",type:"input",templateOptions:{label:"Location Name",placeholder:"Please describe where the study will take place"}},{key:"num_visits",type:"input",templateOptions:{label:"Number of Visits",type:"number",placeholder:"Please list the number of visits required for participation in this study"}},{key:"coordinator_email",type:"input",templateOptions:{label:"Coordinator Email",placeholder:"Please enter the email address to which study inquires will be sent"},expressionProperties:{"templateOptions.required":'model.status === "currently_enrolling"'},validators:{validation:["email"]}},{key:"eligibility_url",type:"input",templateOptions:{label:"Eligibility Link",placeholder:"If you have an eligibilty screener, please enter the link"},validators:{validation:["url"]}},{key:"survey_url",type:"input",templateOptions:{label:"Survey Link",placeholder:"If this is an online survey study, please enter the link"},validators:{validation:["url"]}},{key:"results_url",type:"input",templateOptions:{label:"Results Url",placeholder:"Link to published results of the study"},validators:{validation:["url"]}},{key:"image_url",type:"input",templateOptions:{label:"Image Url",placeholder:"This is the link to the image used for current study display",description:"Something like: /assets/home/study7.jpg"}},{key:"categories",type:"multiselecttree",templateOptions:{label:"Topics",options:this.api.getCategoryTree(),valueProp:"id",labelProp:"name"}},{key:"ages",type:"multicheckbox",templateOptions:{label:"Age Ranges",type:"array",options:this.getOptions(cK.labels)}},{key:"languages",type:"multicheckbox",templateOptions:{label:"Languages",type:"array",options:this.getOptions(dK.labels)}}],this.createNew=!1}return w(e,[{key:"ngOnInit",value:function(){this.model.createNew=!1,this.loadData()}},{key:"getOptions",value:function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({value:n,label:e[n]});return t}},{key:"loadData",value:function(){var e=this;this.route.params.subscribe(function(t){if(t.studyId){var n=t.studyId;e.createNew=!1,e.model.createNew=!1,e.api.getStudy(n).subscribe(function(t){e.study=t,e.model=e.study,e.loadInvestigators(t),e.loadStudyCategories(t,function(){return e.loadForm()})})}else e.createNew=!0,e.model.createNew=!0,e.study={title:"",description:"",participant_description:"",benefit_description:"",investigators:[],location:"",categories:[],status:""},e.loadForm()})}},{key:"loadInvestigators",value:function(e){var t=this;this.model.investigators=[],e.study_investigators.length>0&&e.study_investigators.forEach(function(e){t.model.investigators.push(e.investigator.id)})}},{key:"loadStudyCategories",value:function(e,t){if(this.model.categories=[],e.study_categories.length>0){var n,i=s(e.study_categories);try{for(i.s();!(n=i.n()).done;){var r=n.value;this.model.categories.push(r.category),t()}}catch(a){i.e(a)}finally{i.f()}}else t()}},{key:"loadForm",value:function(){this.form=new Pk({}),this.options={formState:{mainModel:this.model}},this.state=this.pageState.SHOW_FORM}},{key:"updateStudyCategories",value:function(e){var t=[];return this.model.categories.forEach(function(n,i){!0===n&&t.push({study_id:e,category_id:i})}),this.api.updateStudyCategories(e,t)}},{key:"addStudyInvestigator",value:function(){var e=this.model.additional_investigators;return this.api.addInvestigator({name:e.name,title:e.title,organization_name:e.organization_name,bio_link:e.bio_link})}},{key:"updateStudyInvestigators",value:function(e){var t=[];return this.model.investigators.forEach(function(n){t.push({study_id:e,investigator_id:n})}),this.api.updateStudyInvestigators(e,t)}},{key:"submit",value:function(){this.form.valid&&(this.createNew?(this.createNew=!1,this.updateAndClose(this.api.addStudy(this.model))):this.updateAndClose(this.api.updateStudy(this.model)))}},{key:"updateAndClose",value:function(e){var t=this;e.subscribe(function(e){t.updatedStudy=e,t.model.id=e.id,t.model.additional_investigators.name?t.addStudyInvestigator().subscribe(function(n){t.model.investigators.push(n.id),t.updateStudyInvestigators(e.id).subscribe(function(){t.updateStudyCategories(e.id).subscribe(function(){return t.close()})})}):t.updateStudyInvestigators(e.id).subscribe(function(){t.updateStudyCategories(e.id).subscribe(function(){return t.close()})})})}},{key:"showDelete",value:function(){this.showConfirmDelete=!0}},{key:"onDelete",value:function(){var e=this;this.api.deleteStudy(this.study).subscribe(function(t){e.router.navigate(["studies"])})}},{key:"close",value:function(){this.router.navigate(this.updatedStudy&&this.updatedStudy.id?["study",this.updatedStudy.id]:["studies"])}},{key:"onCancel",value:function(){this.close()}},{key:"highlightRequiredFields",value:function(){for(var e=0,t=Object.keys(this.form.controls);e=r.getSiblings(i).length-1),Oa(3),us("matTooltip","Add sub-category to "+i.name),Oa(3),us("ngIf",!r.showConfirmDelete),Oa(1),us("ngIf",r.showConfirmDelete&&i.id===r.nodeToDelete.id)}}function d6(e,t){if(1&e){var n=vs();ds(0,"mat-tree-node",20),fs(1,"button",10),ds(2,"mat-form-field"),ds(3,"mat-label"),Js(4,"New item..."),hs(),fs(5,"input",21,22),hs(),ds(7,"button",6),ks("click",function(){rn(n);var e=t.$implicit,i=ss(6);return As(2).saveNode(e,i.value)}),Js(8,"Save"),hs(),ds(9,"button",7),ks("click",function(){return rn(n),As(2).cancelAdd()}),Js(10,"Cancel"),hs(),hs()}}function h6(e,t){if(1&e){var n=vs();ds(0,"mat-nested-tree-node",20),ds(1,"li"),ds(2,"div",9),ds(3,"button",23),ds(4,"mat-icon",24),Js(5),hs(),hs(),ds(6,"button",11),Js(7),hs(),ds(8,"a",12),Js(9),hs(),Js(10),ds(11,"button",13),ks("click",function(){rn(n);var e=t.$implicit;return As(2).moveItem(e,-1)}),ds(12,"mat-icon"),Js(13,"arrow_upward"),hs(),hs(),ds(14,"button",14),ks("click",function(){rn(n);var e=t.$implicit;return As(2).moveItem(e,1)}),ds(15,"mat-icon"),Js(16,"arrow_downward"),hs(),hs(),ds(17,"button",25),ks("click",function(){rn(n);var e=t.$implicit;return As(2).addNewItem(e)}),ds(18,"mat-icon"),Js(19,"add_circle"),hs(),hs(),hs(),ds(20,"ul"),gs(21,26),hs(),hs(),hs()}if(2&e){var i=t.$implicit,r=As(2);Oa(2),us("ngClass",Au(13,s6,i.id===r.highlightedNode)),Oa(1),is("aria-label","toggle "+i.name),Oa(2),tl(" ",r.treeControl.isExpanded(i)?"expand_more":"chevron_right"," "),Oa(2),el(i.name),Oa(1),us("queryParams",Au(15,l6,i.id))("routerLink",Su(17,u6)),Oa(1),tl(" ",i.all_resource_count," associated resources "),Oa(1),tl(" & ",i.study_count," associated studies "),Oa(1),us("disabled",i.display_order<=0),Oa(3),us("disabled",i.display_order>=r.getSiblings(i).length-1),Oa(3),us("matTooltip","Add sub-category to "+i.name),Oa(3),Hs("tree-select-invisible",!r.treeControl.isExpanded(i))}}function f6(e,t){if(1&e){var n=vs();ds(0,"div"),ds(1,"h1"),Js(2,"Topics Taxonomy"),hs(),ds(3,"p"),Js(4,"To add a topic, click the plus sign next to the parent topic and fill in the name"),hs(),ds(5,"p"),Js(6,"To delete a topic, use the button directly next to the topic; it is only possible to delete one topic at a time and only possible to delete topics with no associated children topics."),hs(),ds(7,"mat-tree",1),os(8,c6,19,16,"mat-tree-node",2),os(9,d6,11,0,"mat-tree-node",3),os(10,h6,22,18,"mat-nested-tree-node",3),hs(),ds(11,"div",4),ds(12,"mat-form-field"),ds(13,"mat-label"),Js(14,"New root item..."),hs(),ds(15,"input",5),ks("ngModelChange",function(e){return rn(n),As().rootValue=e}),hs(),hs(),ds(16,"button",6),ks("click",function(){rn(n);var e=As();return e.saveNode({name:"",parent_id:null},e.rootValue)}),Js(17,"Save"),hs(),ds(18,"button",7),ks("click",function(){return rn(n),As().rootValue=""}),Js(19,"Cancel"),hs(),hs(),hs()}if(2&e){var i=As();Oa(7),us("dataSource",i.dataSource)("treeControl",i.treeControl),Oa(2),us("matTreeNodeDefWhen",i.hasNoContent),Oa(1),us("matTreeNodeDefWhen",i.hasNestedChild),Oa(5),us("ngModel",i.rootValue)}}var p6,m6=((p6=function(){function e(t,n){var i=this;b(this,e),this.api=t,this.authenticationService=n,this.dataLoaded=!1,this.nodes={},this.showConfirmDelete=!1,this.rootValue="",this.checklistSelection=new xO(!0),this.hasNestedChild=function(e,t){return t.children&&t.children.length>0},this.hasNoContent=function(e,t){var n=""===t.name&&void 0===t.id;return""===t.name&&console.log({_nodeData:t}),n},this.treeControl=new Dz(function(e){return fp(e.children)}),this.dataSource=new pG,this.authenticationService.currentUser.subscribe(function(e){return i.currentUser=e}),this.getCategoryTree(!0)}return w(e,[{key:"ngOnInit",value:function(){}},{key:"getCategoryTree",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0;this.api.getCategoryTree().subscribe(function(i){return r6(e,void 0,void 0,regeneratorRuntime.mark(function e(){var r=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=!t,e.t0){e.next=5;break}return e.next=4,this.hasMissingDisplayOrder(i);case 4:e.t0=!e.sent;case 5:if(!e.t0){e.next=9;break}return e.next=8,this.walkTree(i,function(e,t){return r.nodes[e.id]=e,fp(!0)}).then(function(){r.dataSource.data=i,n&&n()});case 8:return e.abrupt("return",e.sent);case 9:return e.next=11,this.walkTree(i,function(e,t){return e.display_order=t,r.api.addCategory(e)}).then(function(){r.dataSource.data=i,n&&n()});case 11:case"end":return e.stop()}},e,this)}))})}},{key:"addNewItem",value:function(e){this.dataSource.data=this.insertNewChildNode(e,this.dataSource.data),this.refreshTree(),this.treeControl.expand(e)}},{key:"saveNode",value:function(e,t){var n=this;e.name=t,this.api.addCategory(e).subscribe(function(e){var t=e.id;n.rootValue="",n.getCategoryTree(!0,function(){n.refreshTree(),n.expandAncestorNodes(t),n.highlightedNode=t})})}},{key:"moveItem",value:function(e,t){var n=this,i=e.id,r=null===e.parent_id?this.dataSource.data:this.nodes[e.parent_id].children,a=e.display_order+t;if(!(r.length<=1||t<0&&a<0||t>0&&a===r.length)){var o=r[a];o.display_order=e.display_order,e.display_order=a,this.api.addCategory(o).subscribe(function(){n.api.addCategory(e).subscribe(function(){n.rootValue="",n.getCategoryTree(!1,function(){n.refreshTree(),n.highlightedNode=i,n.expandAncestorNodes(i)})})})}}},{key:"showDelete",value:function(e){this.showConfirmDelete=!0,this.nodeToDelete=e}},{key:"deleteNode",value:function(e){var t=this;this.api.deleteCategory(e.id).subscribe(function(e){t.showConfirmDelete=!1,t.nodeToDelete=null,t.getCategoryTree()})}},{key:"cancelDelete",value:function(){this.showConfirmDelete=!1,this.nodeToDelete=void 0}},{key:"cancelAdd",value:function(){this.dataSource.data=this.removeEmpty(this.dataSource.data),this.refreshTree()}},{key:"removeEmpty",value:function(e){var t=this;return e&&e.length>0?(e=e.filter(function(e){return""!==e.name})).map(function(e){return e.children=t.removeEmpty(e.children),e}):e}},{key:"insertNewChildNode",value:function(e,t){var n=this;if(t&&t.length>0){var i=t.findIndex(function(t){return t.id===e.id});return-1!==i?(t[i].children.push({name:"",parent_id:e.id}),t):t.map(function(t){return t.children=n.insertNewChildNode(e,t.children),t})}}},{key:"refreshTree",value:function(){var e=this.dataSource.data;this.dataSource.data=null,this.dataSource.data=e}},{key:"walkTree",value:function(e,t){return r6(this,void 0,void 0,regeneratorRuntime.mark(function n(){var i=this;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",e.map(function(e,n){return r6(i,void 0,void 0,regeneratorRuntime.mark(function i(){var r,a=this;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(this.nodes[e.id]=e,r=t(e,n),!(e.children&&e.children.length>0)){i.next=4;break}return i.abrupt("return",r.subscribe(function(){return r6(a,void 0,void 0,regeneratorRuntime.mark(function n(){return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.walkTree(e.children,t);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}},n,this)}))}));case 4:case"end":return i.stop()}},i,this)}))}));case 1:case"end":return n.stop()}},n)}))}},{key:"hasMissingDisplayOrder",value:function(e){return r6(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=!1,t.next=3,this.walkTree(e,function(e,t){return null==e.display_order&&(n=!0),fp(n)});case 3:return t.abrupt("return",n);case 4:case"end":return t.stop()}},t,this)}))}},{key:"getSiblings",value:function(e){if(null===e.parent_id)return this.dataSource.data;var t=this.nodes[e.parent_id];return t&&t.children&&t.children.length>=0?t.children:[]}},{key:"expandAncestorNodes",value:function(e){var t=this.nodes[e];if(null!==t.parent_id){var n=this.nodes[t.parent_id];this.treeControl.expand(n),null!==n.parent_id&&this.expandAncestorNodes(n.id)}}}]),e}()).\u0275fac=function(e){return new(e||p6)(ls(x$),ls(y$))},p6.\u0275cmp=pt({type:p6,selectors:[["app-taxonomy-admin"]],decls:1,vars:1,consts:[[4,"ngIf"],[1,"tree-select","taxonomy-admin",3,"dataSource","treeControl"],["matTreeNodeToggle","","matTreeNodePadding","",4,"matTreeNodeDef"],["matTreeNodePadding","",4,"matTreeNodeDef","matTreeNodeDefWhen"],["fxLayout","row"],["matInput","","placeholder","Ex. Topic Name",3,"ngModel","ngModelChange"],["mat-button","","color","primary",3,"click"],["mat-button","",3,"click"],["matTreeNodeToggle","","matTreeNodePadding",""],[3,"ngClass"],["disabled","","mat-icon-button",""],["matTreeNodeToggle","","mat-button",""],[1,"associated-records",3,"queryParams","routerLink"],["mat-icon-button","","color","primary","matTooltip","Move up",3,"disabled","click"],["mat-icon-button","","color","primary","matTooltip","Move down",3,"disabled","click"],["mat-icon-button","","color","primary",3,"matTooltip","click"],["color","warn","mat-icon-button","","type","button",3,"matTooltip","click",4,"ngIf"],["color","warn","mat-icon-button","","type","button",3,"matTooltip","click"],["color","warn","mat-flat-button","","type","button",3,"click"],["mat-flat-button","","type","button",3,"click"],["matTreeNodePadding",""],["matInput","","placeholder","Ex. Topic Name"],["itemValue",""],["mat-icon-button","","matTreeNodeToggle","",1,"toggle-node-button"],[1,"mat-icon-rtl-mirror"],["mat-icon-button","",3,"matTooltip","click"],["matTreeNodeOutlet",""]],template:function(e,t){1&e&&os(0,f6,20,5,"div",0),2&e&&us("ngIf",t.currentUser&&t.currentUser.permissions.includes("publish_resource"))},directives:[wh,uG,iG,Xy,wT,hT,vM,wb,Zb,Nk,kP,nG,dG,oG,yh,ly,PX,CF,BR,aG,lG],styles:[".tree-select-invisible[_ngcontent-%COMP%]{display:none}.tree-select[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .tree-select[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;margin-left:1rem;list-style-type:none}.tree-select[_ngcontent-%COMP%] li[_ngcontent-%COMP%] button.toggle-node-button[_ngcontent-%COMP%], .tree-select[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] button.toggle-node-button[_ngcontent-%COMP%]{outline:none!important}.associated-records[_ngcontent-%COMP%]{margin-left:.5em;margin-right:.5em}.highlight-node[_ngcontent-%COMP%]{background-color:#e4e7f2;-webkit-animation-name:fade-out;-webkit-animation:fade-out 5s forwards;animation:fade-out 5s forwards}@-webkit-keyframes fade-out{0%{background-color:#e4e7f2}to{background-color:rgba(0,0,0,0)}}@keyframes fade-out{0%{background-color:#e4e7f2}to{background-color:rgba(0,0,0,0)}}"]}),p6);function g6(e,t){1&e&&(ds(0,"h3",11),Js(1,"You must read and accept the following Terms & Conditions in order to continue creating an Autism DRIVE account."),hs())}function v6(e,t){1&e&&(ds(0,"div",12),fs(1,"ng2-pdfjs-viewer",13),hs())}function y6(e,t){1&e&&(ds(0,"div",14),fs(1,"ng2-pdfjs-viewer",15),hs())}function _6(e,t){1&e&&(ds(0,"div",16),fs(1,"ng2-pdfjs-viewer",17),hs())}function b6(e,t){if(1&e){var n=vs();ds(0,"button",18),ks("click",function(e){return rn(n),As().goProfile(e)}),Js(1," Cancel "),hs()}}function k6(e,t){if(1&e){var n=vs();ds(0,"button",19),ks("click",function(){return rn(n),As().addParticipantAndGoToFlow()}),Js(1," I agree "),hs()}}function w6(e,t){if(1&e){var n=vs();ds(0,"button",20),ks("click",function(e){return rn(n),As().goProfile(e)}),Js(1," Back to Profile "),hs()}}var C6,x6,S6=((x6=function(){function e(t,n,i,r,a){var o=this;b(this,e),this.router=t,this.route=n,this.authenticationService=i,this.api=r,this.googleAnalyticsService=a,this.preview=!1,this.route.params.subscribe(function(e){o.relationship=e.relationship,"preview"in e&&(o.preview=e.preview)}),this.authenticationService.currentUser.subscribe(function(e){o.user=e},function(e){console.error(e),o.user=null})}return w(e,[{key:"ngOnInit",value:function(){}},{key:"goProfile",value:function(e){e.preventDefault(),this.router.navigate(["profile"])}},{key:"getFlow",value:function(e){return e===p$.SELF_PARTICIPANT?"self_intake":e===p$.SELF_GUARDIAN?"guardian_intake":e===p$.DEPENDENT?"dependent_intake":e===p$.SELF_PROFESSIONAL?"professional_intake":e===p$.SELF_INTERESTED?"interested_intake":void 0}},{key:"addParticipantAndGoToFlow",value:function(){var e=this,t=new m$({user_id:this.user.id,user:this.user,last_updated:new Date,relationship:this.relationship,has_consented:!0}),n=this.getFlow(this.relationship);this.api.addParticipant(t).subscribe(function(t){e.googleAnalyticsService.flowStartEvent(n),e.user.participants.push(t),console.log("Navigating to flow/",n,"/",t.id),e.router.navigate(["flow",n,t.id])})}}]),e}()).\u0275fac=function(e){return new(e||x6)(ls(EX),ls(oQ),ls(y$),ls(x$),ls(h$))},x6.\u0275cmp=pt({type:x6,selectors:[["app-terms"]],decls:13,vars:7,consts:[["fxLayoutAlign","center center",1,"container","mat-typography","terms"],["fxFlex","80%"],["variant","dark-lg",3,"click"],["class","alert alert-warn",4,"ngIf"],["id","guardian-terms",4,"ngIf"],["id","self-terms",4,"ngIf"],["id","dependent-terms",4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutGap","2%","fxLayoutAlign","center center"],["mat-flat-button","","color","accent","class","btn-lg","id","terms-cancel-button",3,"click",4,"ngIf"],["mat-flat-button","","color","primary","class","btn-lg","id","agree-button",3,"click",4,"ngIf"],["mat-flat-button","","color","primary","class","btn-lg","id","profile-button",3,"click",4,"ngIf"],[1,"alert","alert-warn"],["id","guardian-terms"],["pdfSrc","../../../assets/terms/guardian_information_sheet.pdf"],["id","self-terms"],["pdfSrc","../../../assets/terms/adult_information_sheet.pdf"],["id","dependent-terms"],["pdfSrc","../../../assets/terms/child_information_sheet.pdf"],["mat-flat-button","","color","accent","id","terms-cancel-button",1,"btn-lg",3,"click"],["mat-flat-button","","color","primary","id","agree-button",1,"btn-lg",3,"click"],["mat-flat-button","","color","primary","id","profile-button",1,"btn-lg",3,"click"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"div",1),ds(2,"app-logo",2),ks("click",function(e){return t.goProfile(e)}),hs(),os(3,g6,2,0,"h3",3),ds(4,"h1"),Js(5,"Terms and Conditions"),hs(),os(6,v6,2,0,"div",4),os(7,y6,2,0,"div",5),os(8,_6,2,0,"div",6),ds(9,"div",7),os(10,b6,2,0,"button",8),os(11,k6,2,0,"button",9),os(12,w6,2,0,"button",10),hs(),hs(),hs()),2&e&&(Oa(3),us("ngIf",!t.preview),Oa(3),us("ngIf","self_guardian"==t.relationship),Oa(1),us("ngIf","self_participant"==t.relationship||"self_professional"==t.relationship||"self_interested"==t.relationship),Oa(1),us("ngIf","dependent"==t.relationship),Oa(2),us("ngIf",!t.preview),Oa(1),us("ngIf",!t.preview),Oa(1),us("ngIf",t.preview))},directives:[eb,v_,DJ,wh,Xy,n_,lW,kP],styles:[".container[_ngcontent-%COMP%]{min-height:100vh}#dependent-terms[_ngcontent-%COMP%], #guardian-terms[_ngcontent-%COMP%], #self-terms[_ngcontent-%COMP%]{margin-bottom:2em;height:100vh}"]}),x6),A6=((C6=function(){function e(t,n){b(this,e),this.router=t,this.authenticationService=n}return w(e,[{key:"ngOnInit",value:function(){this.authenticationService.logout()}},{key:"goHome",value:function(){this.router.navigate([""])}},{key:"goLogin",value:function(){this.router.navigate(["/login"])}}]),e}()).\u0275fac=function(e){return new(e||C6)(ls(EX),ls(y$))},C6.\u0275cmp=pt({type:C6,selectors:[["app-timedout"]],hostVars:1,hostBindings:function(e,t){2&e&&ol("@fadeTransition",t.title)},decls:9,vars:0,consts:[["fxLayout","row","fxLayout.xs","column","fxLayoutWrap","","fxLayoutGap","10px","fxLayoutAlign","center center",1,"container","mat-typography"],["fxFlex","50%",1,"message"],["variant","dark-lg",3,"click"],["mat-flat-button","","color","accent",3,"click"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"div",1),ds(2,"app-logo",2),ks("click",function(){return t.goHome()}),hs(),ds(3,"h1"),Js(4,"Your Autism DRIVE session has timed out."),hs(),ds(5,"p"),Js(6,"You will need to log in again to access your profile."),hs(),ds(7,"button",3),ks("click",function(){return t.goLogin()}),Js(8,"Ok"),hs(),hs(),hs())},directives:[Xy,n_,eb,v_,DJ,kP],styles:[".container[_ngcontent-%COMP%]{min-height:100vh}div.message[_ngcontent-%COMP%]{text-align:center}"],data:{animation:[l0()]}}),C6);function O6(e,t){1&e&&(ds(0,"th",14),Js(1," ID "),hs())}function E6(e,t){if(1&e&&(ds(0,"td",15),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.id," ")}}function T6(e,t){1&e&&(ds(0,"th",14),Js(1," Questionnaire Name "),hs())}function P6(e,t){if(1&e&&(ds(0,"td",15),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.questionnaire_name," ")}}function D6(e,t){1&e&&(ds(0,"th",14),Js(1," Questionnaire ID "),hs())}function M6(e,t){if(1&e&&(ds(0,"td",15),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.questionnaire_id," ")}}function I6(e,t){1&e&&(ds(0,"th",14),Js(1," Flow "),hs())}function R6(e,t){if(1&e&&(ds(0,"td",15),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.flow," ")}}function L6(e,t){1&e&&(ds(0,"th",14),Js(1," Participant ID "),hs())}function F6(e,t){if(1&e&&(ds(0,"td",15),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.participant_id," ")}}function N6(e,t){1&e&&(ds(0,"th",14),Js(1," User ID "),hs())}function V6(e,t){if(1&e&&(ds(0,"td",15),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.user_id," ")}}function B6(e,t){1&e&&(ds(0,"th",14),Js(1," Date Completed "),hs())}function H6(e,t){if(1&e&&(ds(0,"td",15),Js(1),Iu(2,"date"),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",Lu(2,1,n.date_completed,"short")," ")}}function z6(e,t){1&e&&(ds(0,"th",14),Js(1," Time On Task MS "),hs())}function G6(e,t){if(1&e&&(ds(0,"td",15),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.time_on_task_ms," ")}}function j6(e,t){1&e&&fs(0,"tr",16)}function U6(e,t){1&e&&fs(0,"tr",17)}function W6(e,t){if(1&e&&(ds(0,"div"),ds(1,"h5"),Js(2,"Step Log:"),hs(),ds(3,"table",1),ps(4,2),os(5,O6,2,0,"th",3),os(6,E6,2,1,"td",4),ms(),ps(7,5),os(8,T6,2,0,"th",3),os(9,P6,2,1,"td",4),ms(),ps(10,6),os(11,D6,2,0,"th",3),os(12,M6,2,1,"td",4),ms(),ps(13,7),os(14,I6,2,0,"th",3),os(15,R6,2,1,"td",4),ms(),ps(16,8),os(17,L6,2,0,"th",3),os(18,F6,2,1,"td",4),ms(),ps(19,9),os(20,N6,2,0,"th",3),os(21,V6,2,1,"td",4),ms(),ps(22,10),os(23,B6,2,0,"th",3),os(24,H6,3,4,"td",4),ms(),ps(25,11),os(26,z6,2,0,"th",3),os(27,G6,2,1,"td",4),ms(),os(28,j6,1,0,"tr",12),os(29,U6,1,0,"tr",13),hs(),hs()),2&e){var n=As();Oa(3),us("dataSource",n.dataSource),Oa(25),us("matHeaderRowDef",n.displayedColumns),Oa(1),us("matRowDefColumns",n.displayedColumns)}}var q6,Y6=((q6=function(){function e(t){b(this,e),this.api=t,this.displayedColumns=["id","questionnaire_name","questionnaire_id","flow","participant_id","user_id","date_completed","time_on_task_ms"]}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.api.getParticipantStepLog(this.participant).subscribe(function(t){e.participant.step_log=t,e.dataSource=new oH(t)})}}]),e}()).\u0275fac=function(e){return new(e||q6)(ls(x$))},q6.\u0275cmp=pt({type:q6,selectors:[["app-participant-detail"]],inputs:{participant:"participant"},decls:14,vars:11,consts:[[4,"ngIf"],["mat-table","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","questionnaire_name"],["matColumnDef","questionnaire_id"],["matColumnDef","flow"],["matColumnDef","participant_id"],["matColumnDef","user_id"],["matColumnDef","date_completed"],["matColumnDef","time_on_task_ms"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(ds(0,"p"),ds(1,"b"),Js(2),hs(),hs(),ds(3,"p"),Js(4),hs(),ds(5,"p"),Js(6),hs(),ds(7,"p"),Js(8),Iu(9,"date"),hs(),ds(10,"p"),Js(11),Iu(12,"percent"),hs(),os(13,W6,30,3,"div",0)),2&e&&(Oa(2),tl("Participant ID: ",t.participant.id,""),Oa(2),tl("Name: ",t.participant.name||"(None given)",""),Oa(2),tl("Relationship: ",t.participant.relationship,""),Oa(2),tl("Last Updated: ",Lu(9,6,t.participant.last_updated,"short"),""),Oa(3),tl("Percent Complete: ",Ru(12,9,t.participant.percent_complete),""),Oa(2),us("ngIf",t.participant.step_log&&t.participant.step_log.length>0))},directives:[wh,BB,WB,jB,zB,KB,JB,YB,XB,tH,iH],pipes:[$h,Kh],styles:["td.mat-cell[_ngcontent-%COMP%], th.mat-header-cell[_ngcontent-%COMP%]{padding:0 1em}"]}),q6);function Q6(e,t){if(1&e){var n=vs();ds(0,"div",9),ds(1,"mat-form-field"),ds(2,"mat-label"),Js(3,"Select an option"),hs(),ds(4,"mat-select",10),ks("valueChange",function(e){return rn(n),As(2).roleSelected=e}),ds(5,"mat-option",11),Js(6,"Admin"),hs(),ds(7,"mat-option",12),Js(8,"Test"),hs(),ds(9,"mat-option",13),Js(10,"Researcher"),hs(),ds(11,"mat-option",14),Js(12,"Editor"),hs(),ds(13,"mat-option",15),Js(14,"User"),hs(),hs(),hs(),ds(15,"button",3),ks("click",function(){return rn(n),As(2).saveSelection()}),Js(16," Save Selection "),hs(),hs()}if(2&e){var i=As(2);Oa(4),us("value",i.roleSelected)}}function X6(e,t){1&e&&(ds(0,"th",28),Js(1," ID "),hs())}function $6(e,t){if(1&e&&(ds(0,"td",29),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.id," ")}}function K6(e,t){1&e&&(ds(0,"th",28),Js(1," User ID "),hs())}function Z6(e,t){if(1&e&&(ds(0,"td",29),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.user_id," ")}}function J6(e,t){1&e&&(ds(0,"th",28),Js(1," Type "),hs())}function e9(e,t){if(1&e&&(ds(0,"td",29),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.type," ")}}function t9(e,t){1&e&&(ds(0,"th",28),Js(1," Tracking Code "),hs())}function n9(e,t){if(1&e&&(ds(0,"td",29),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.tracking_code," ")}}function i9(e,t){1&e&&(ds(0,"th",28),Js(1," Viewed "),hs())}function r9(e,t){if(1&e&&(ds(0,"td",29),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.viewed," ")}}function a9(e,t){1&e&&(ds(0,"th",28),Js(1," Date Viewed "),hs())}function o9(e,t){if(1&e&&(ds(0,"td",29),Js(1),Iu(2,"date"),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",Lu(2,1,n.date_viewed,"short")," ")}}function s9(e,t){1&e&&fs(0,"tr",30)}function l9(e,t){1&e&&fs(0,"tr",31)}function u9(e,t){if(1&e&&(ds(0,"div",16),ds(1,"h5"),Js(2,"User Email Log:"),hs(),ds(3,"table",17),ps(4,18),os(5,X6,2,0,"th",19),os(6,$6,2,1,"td",20),ms(),ps(7,21),os(8,K6,2,0,"th",19),os(9,Z6,2,1,"td",20),ms(),ps(10,22),os(11,J6,2,0,"th",19),os(12,e9,2,1,"td",20),ms(),ps(13,23),os(14,t9,2,0,"th",19),os(15,n9,2,1,"td",20),ms(),ps(16,24),os(17,i9,2,0,"th",19),os(18,r9,2,1,"td",20),ms(),ps(19,25),os(20,a9,2,0,"th",19),os(21,o9,3,4,"td",20),ms(),os(22,s9,1,0,"tr",26),os(23,l9,1,0,"tr",27),hs(),hs()),2&e){var n=As(2);Oa(3),us("dataSource",n.dataSource),Oa(19),us("matHeaderRowDef",n.displayedColumns),Oa(1),us("matRowDefColumns",n.displayedColumns)}}function c9(e,t){1&e&&(ds(0,"h2"),Js(1,"Related Participants:"),hs())}function d9(e,t){if(1&e&&(ds(0,"div",32),ds(1,"mat-card"),fs(2,"app-participant-detail",33),hs(),hs()),2&e){var n=t.$implicit;Oa(2),us("participant",n)}}function h9(e,t){if(1&e&&(ds(0,"div"),ds(1,"p",35),ds(2,"a",36),ds(3,"b"),Js(4),hs(),hs(),Js(5),Iu(6,"uppercase"),Iu(7,"date"),hs(),hs()),2&e){var n=t.$implicit;Oa(2),us("href","/#/resource/"+n.resource_id,Pr),Oa(2),nl("Resource #",n.resource_id," - ",n.resource_title,""),Oa(1),nl(" - Edit Type: ",Ru(6,5,n.type)," - Update Date: ",Lu(7,7,n.last_updated,"long")," ")}}function f9(e,t){if(1&e&&(ds(0,"mat-card"),ds(1,"mat-card-title"),Js(2,"Edit Log"),hs(),os(3,h9,8,10,"div",34),hs()),2&e){var n=As(2);Oa(3),us("ngForOf",n.resourceChangeLog)}}function p9(e,t){if(1&e&&(ds(0,"div"),ds(1,"p",35),ds(2,"a",36),ds(3,"b"),Js(4),hs(),hs(),ds(5,"i"),Js(6),Iu(7,"date"),hs(),hs(),ds(8,"p",35),Js(9),hs(),hs()),2&e){var n=t.$implicit;Oa(2),us("href","/#/resource/"+n.resource_id,Pr),Oa(2),nl("Resource #",n.resource_id," - ",n.resource.title,""),Oa(2),tl(" - note last updated: ",Lu(7,5,n.last_updated,"short"),""),Oa(3),el(n.note)}}function m9(e,t){if(1&e&&(ds(0,"mat-card"),ds(1,"mat-card-title"),Js(2,"Admin Notes"),hs(),ds(3,"mat-card-content"),os(4,p9,10,8,"div",34),hs(),hs()),2&e){var n=As(2);Oa(4),us("ngForOf",n.adminNotes)}}function g9(e,t){if(1&e){var n=vs();ds(0,"div",1),ds(1,"h1"),Js(2,"User:"),hs(),ds(3,"div",2),ds(4,"button",3),ks("click",function(){return rn(n),As().exportUserData()}),Js(5," Export User Data "),hs(),hs(),ds(6,"div",4),ds(7,"div"),ds(8,"p"),ds(9,"b"),Js(10),hs(),hs(),ds(11,"p"),Js(12),hs(),ds(13,"p"),Js(14),hs(),ds(15,"p"),Js(16),Iu(17,"date"),hs(),ds(18,"p"),Js(19),Iu(20,"date"),hs(),ds(21,"p"),Js(22),Iu(23,"date"),hs(),os(24,Q6,17,1,"div",5),hs(),os(25,u9,24,3,"div",6),hs(),os(26,c9,2,0,"h2",7),os(27,d9,3,1,"div",8),os(28,f9,4,1,"mat-card",7),os(29,m9,5,1,"mat-card",7),hs()}if(2&e){var i=As();Oa(10),tl("User ID: ",i.user.id,""),Oa(2),tl("User Email: ",i.user.email,""),Oa(2),tl("User Role: ",i.user.role,""),Oa(2),tl("Last Updated: ",Lu(17,12,i.user.last_updated,"short"),""),Oa(3),tl("Account Creation Date: ",Lu(20,15,i.user.registration_date,"short"),""),Oa(3),tl("Last Login: ",Lu(23,18,i.user.last_login,"short"),""),Oa(2),us("ngIf",i.currentUser&&i.currentUser.permissions.includes("user_roles")),Oa(1),us("ngIf",i.user.email_log&&i.user.email_log.length>0),Oa(1),us("ngIf",i.user.participants.length>0),Oa(1),us("ngForOf",i.user.participants),Oa(1),us("ngIf",i.resourceChangeLog&&i.resourceChangeLog.length>0),Oa(1),us("ngIf",i.adminNotes&&i.adminNotes.length>0)}}var v9,y9=((v9=function(){function e(t,n,i){var r=this;b(this,e),this.api=t,this.route=n,this.authenticationService=i,this.displayedColumns=["id","user_id","type","tracking_code","viewed","date_viewed"],this.authenticationService.currentUser.subscribe(function(e){return r.currentUser=e}),this.route.params.subscribe(function(e){var t=e.userId?parseInt(e.userId,10):null;isFinite(t)&&r.api.getUser(t).subscribe(function(e){r.user=e,r.roleSelected=e.role,r.api.getUserEmailLog(r.user).subscribe(function(e){r.user.email_log=e,r.dataSource=new oH(e)}),r.api.getUserAdminNotes(r.user.id).subscribe(function(e){r.adminNotes=e}),r.api.getUserResourceChangeLog(r.user.id).subscribe(function(e){r.resourceChangeLog=e}),r.user.participants.forEach(function(e){r.api.getParticipantStepLog(e).subscribe(function(t){e.step_log=t})})})})}return w(e,[{key:"ngOnInit",value:function(){}},{key:"exportUserData",value:function(){console.log("clicking the button for export user data"),this.api.exportUserQuestionnaire(this.user.id.toString()).subscribe(function(e){console.log("data",e);var t=e.headers.get("x-filename"),n=new Blob([e.body],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),i=URL.createObjectURL(n),r=document.createElement("a");r.href=i,r.download=t,window.document.body.appendChild(r),r.click(),window.document.body.removeChild(r),URL.revokeObjectURL(i)})}},{key:"saveSelection",value:function(){this.user.role=this.roleSelected,this.api.updateUser(this.user).subscribe()}}]),e}()).\u0275fac=function(e){return new(e||v9)(ls(x$),ls(oQ),ls(y$))},v9.\u0275cmp=pt({type:v9,selectors:[["app-user-admin-details"]],decls:1,vars:1,consts:[["class","user-admin-details","fxLayout","column",4,"ngIf"],["fxLayout","column",1,"user-admin-details"],["fxFlex","20%","fxLayoutGap","2em"],["mat-flat-button","","color","accent",3,"click"],["fxLayout","row"],["fxLayout","column",4,"ngIf"],["class","email-log",4,"ngIf"],[4,"ngIf"],["id","participants","id","participant-detail","fxFlex","40%","fxLayoutGap","2em",4,"ngFor","ngForOf"],["fxLayout","column"],[3,"value","valueChange"],["value","admin"],["value","test"],["value","researcher"],["value","editor"],["value","user"],[1,"email-log"],["mat-table","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","user_id"],["matColumnDef","type"],["matColumnDef","tracking_code"],["matColumnDef","viewed"],["matColumnDef","date_viewed"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],["id","participants","id","participant-detail","fxFlex","40%","fxLayoutGap","2em"],[3,"participant"],[4,"ngFor","ngForOf"],["mat-line",""],[3,"href"]],template:function(e,t){1&e&&os(0,g9,30,21,"div",0),2&e&&us("ngIf",t.user)},directives:[wh,Xy,v_,n_,kP,bh,wT,hT,KL,JA,BB,WB,jB,zB,KB,JB,YB,XB,tH,iH,jP,Y6,HP,bA,BP],pipes:[$h,Xh],styles:[".user-admin-details[_ngcontent-%COMP%]{margin:2em}mat-card[_ngcontent-%COMP%]{margin-bottom:1em}td.mat-cell[_ngcontent-%COMP%], th.mat-header-cell[_ngcontent-%COMP%]{padding:0 1em}.email-log[_ngcontent-%COMP%]{margin:0 2em}"]}),v9),_9=function(){function e(t){b(this,e),this.api=t,this.userSubject=new ep([]),this.countSubject=new ep(0),this.count$=this.countSubject.asObservable(),this.loadingSubject=new ep(!1),this.loading$=this.loadingSubject.asObservable()}return w(e,[{key:"connect",value:function(e){return this.userSubject.asObservable()}},{key:"disconnect",value:function(e){this.userSubject.complete(),this.loadingSubject.complete(),this.countSubject.complete()}},{key:"loadUsers",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"email",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"asc",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:10;this.loadingSubject.next(!0),this.api.findUsers(t,n,i,r,a).subscribe(function(t){console.log("UserDataSource loadUsers results",t),e.userSubject.next(t.items),e.countSubject.next(t.total),e.loadingSubject.next(!1)},function(t){e.userSubject.next(null),e.countSubject.next(0),e.loadingSubject.next(!1)})}}]),e}(),b9=["input"];function k9(e,t){1&e&&(ds(0,"div",24),fs(1,"mat-spinner"),hs())}function w9(e,t){1&e&&(ds(0,"mat-header-cell",25),Js(1,"ID"),hs())}function C9(e,t){if(1&e&&(ds(0,"mat-cell",26),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl("",n.id," ")}}function x9(e,t){1&e&&(ds(0,"mat-header-cell",25),Js(1,"Role"),hs())}function S9(e,t){if(1&e&&(ds(0,"mat-cell",27),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl("",n.role," ")}}function A9(e,t){1&e&&(ds(0,"mat-header-cell",25),Js(1,"Account Creation Date"),hs())}function O9(e,t){if(1&e&&(ds(0,"mat-cell",27),Js(1),Iu(2,"date"),hs()),2&e){var n=t.$implicit;Oa(1),tl("",Lu(2,1,n.registration_date,"short")," ")}}function E9(e,t){1&e&&(ds(0,"mat-header-cell",25),Js(1,"Last Updated"),hs())}function T9(e,t){if(1&e&&(ds(0,"mat-cell",27),Js(1),Iu(2,"date"),hs()),2&e){var n=t.$implicit;Oa(1),tl("",Lu(2,1,n.last_updated,"short")," ")}}function P9(e,t){1&e&&(ds(0,"mat-header-cell",25),Js(1,"Last Login"),hs())}function D9(e,t){if(1&e&&(ds(0,"mat-cell",27),Js(1),Iu(2,"date"),hs()),2&e){var n=t.$implicit;Oa(1),tl("",Lu(2,1,n.last_login,"short")," ")}}function M9(e,t){1&e&&(ds(0,"mat-header-cell",25),Js(1,"Email"),hs())}function I9(e,t){if(1&e&&(ds(0,"mat-cell",28),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl("",n.email," ")}}function R9(e,t){1&e&&(ds(0,"mat-header-cell",25),Js(1,"Number of Participants"),hs())}function L9(e,t){if(1&e&&(ds(0,"mat-cell",29),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.participant_count," ")}}function F9(e,t){1&e&&(ds(0,"mat-header-cell",25),Js(1,"Created Password"),hs())}function N9(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.created_password," ")}}function V9(e,t){1&e&&(ds(0,"mat-header-cell",25),Js(1,"Identity"),hs())}function B9(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",n.identity," ")}}function H9(e,t){1&e&&(ds(0,"mat-header-cell",25),Js(1,"Percent Self Registration Complete"),hs())}function z9(e,t){if(1&e&&(ds(0,"mat-cell"),Js(1),Iu(2,"percent"),hs()),2&e){var n=t.$implicit;Oa(1),tl(" ",Ru(2,1,n.percent_self_registration_complete)," ")}}function G9(e,t){1&e&&fs(0,"mat-header-row")}function j9(e,t){if(1&e){var n=vs();ds(0,"mat-row",30),ks("click",function(){rn(n);var e=t.$implicit;return As().onRowClicked(e)}),hs()}2&e&&Ds("id","user_row_",t.$implicit.id,"")}var U9,W9=function(){return[5,10,20]},q9=((U9=function(){function e(t,n){b(this,e),this.api=t,this.router=n,this.displayedColumns=["id","role","email","last_updated","registration_date","last_login","participant_count","created_password","identity","percent_self_registration_complete"],this.default_page_size=10,this.dataSource=new _9(this.api)}return w(e,[{key:"ngOnInit",value:function(){this.dataSource.loadUsers("","email","asc",0,this.default_page_size)}},{key:"onRowClicked",value:function(e){this.router.navigate(["admin/user",e.id])}},{key:"ngAfterViewInit",value:function(){var e=this;zg(this.input.nativeElement,"keyup").pipe(jg(150),Op(),Zg(function(){e.paginator.pageIndex=0,e.loadUsers()})).subscribe(),this.sort.sortChange.subscribe(function(){return e.paginator.pageIndex=0}),de(this.sort.sortChange,this.paginator.page).pipe(Zg(function(){return e.loadUsers()})).subscribe()}},{key:"loadUsers",value:function(){this.dataSource.loadUsers(this.input.nativeElement.value,this.sort.active,this.sort.direction,this.paginator.pageIndex,this.paginator.pageSize)}}]),e}()).\u0275fac=function(e){return new(e||U9)(ls(x$),ls(EX))},U9.\u0275cmp=pt({type:U9,selectors:[["app-user-admin"]],viewQuery:function(e,t){var n;1&e&&(Ku(GF,3),Ku(hV,3),Ku(b9,3)),2&e&&($u(n=Ju())&&(t.paginator=n.first),$u(n=Ju())&&(t.sort=n.first),$u(n=Ju())&&(t.input=n.first))},decls:41,vars:12,consts:[[1,"userList"],["matInput","","placeholder","Search Users"],["input",""],["class","spinner-container",4,"ngIf"],["matSort","","matSortActive","email","matSortDirection","asc","matSortDisableClear","",1,"users-table","mat-elevation-z8",3,"dataSource"],["matColumnDef","id"],["mat-sort-header","",4,"matHeaderCellDef"],["class","id-cell",4,"matCellDef"],["matColumnDef","role"],["class","role-cell",4,"matCellDef"],["matColumnDef","registration_date"],["matColumnDef","last_updated"],["matColumnDef","last_login"],["matColumnDef","email"],["class","email-cell",4,"matCellDef"],["matColumnDef","participant_count"],["class","participants-cell",4,"matCellDef"],["matColumnDef","created_password"],[4,"matCellDef"],["matColumnDef","identity"],["matColumnDef","percent_self_registration_complete"],[4,"matHeaderRowDef"],[3,"id","click",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions"],[1,"spinner-container"],["mat-sort-header",""],[1,"id-cell"],[1,"role-cell"],[1,"email-cell"],[1,"participants-cell"],[3,"id","click"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"mat-form-field"),fs(2,"input",1,2),hs(),os(4,k9,2,0,"div",3),Iu(5,"async"),ds(6,"mat-table",4),ps(7,5),os(8,w9,2,0,"mat-header-cell",6),os(9,C9,2,1,"mat-cell",7),ms(),ps(10,8),os(11,x9,2,0,"mat-header-cell",6),os(12,S9,2,1,"mat-cell",9),ms(),ps(13,10),os(14,A9,2,0,"mat-header-cell",6),os(15,O9,3,4,"mat-cell",9),ms(),ps(16,11),os(17,E9,2,0,"mat-header-cell",6),os(18,T9,3,4,"mat-cell",9),ms(),ps(19,12),os(20,P9,2,0,"mat-header-cell",6),os(21,D9,3,4,"mat-cell",9),ms(),ps(22,13),os(23,M9,2,0,"mat-header-cell",6),os(24,I9,2,1,"mat-cell",14),ms(),ps(25,15),os(26,R9,2,0,"mat-header-cell",6),os(27,L9,2,1,"mat-cell",16),ms(),ps(28,17),os(29,F9,2,0,"mat-header-cell",6),os(30,N9,2,1,"mat-cell",18),ms(),ps(31,19),os(32,V9,2,0,"mat-header-cell",6),os(33,B9,2,1,"mat-cell",18),ms(),ps(34,20),os(35,H9,2,0,"mat-header-cell",6),os(36,z9,3,3,"mat-cell",18),ms(),os(37,G9,1,0,"mat-header-row",21),os(38,j9,1,1,"mat-row",22),hs(),fs(39,"mat-paginator",23),Iu(40,"async"),hs()),2&e&&(Oa(4),us("ngIf",Ru(5,7,t.dataSource.loading$)),Oa(2),us("dataSource",t.dataSource),Oa(31),us("matHeaderRowDef",t.displayedColumns),Oa(1),us("matRowDefColumns",t.displayedColumns),Oa(1),us("length",Ru(40,9,t.dataSource.count$))("pageSize",t.default_page_size)("pageSizeOptions",Su(11,W9)))},directives:[wT,vM,wh,BB,hV,WB,jB,zB,KB,JB,GF,pN,YB,yV,XB,tH,iH],pipes:[qh,$h,Kh],styles:[".userList[_ngcontent-%COMP%]{text-align:center;margin:2em}.spinner-container[_ngcontent-%COMP%]{height:360px;width:390px;position:fixed}.users-table[_ngcontent-%COMP%]{min-height:360px;margin-top:10px}.spinner-container[_ngcontent-%COMP%] mat-spinner[_ngcontent-%COMP%]{margin:130px auto 0}mat-row[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:#fff1e3}.mat-column-role[_ngcontent-%COMP%]{-ms-flex:0 0 75px;flex:0 0 75px}.mat-column-id[_ngcontent-%COMP%]{-ms-flex:0 0 130px;flex:0 0 130px}"]}),U9);function Y9(e,t){1&e&&(ds(0,"div",4),fs(1,"mat-spinner"),hs())}function Q9(e,t){if(1&e&&fs(0,"app-news-item",10),2&e){var n=t.index;us("item",t.$implicit)("index",n)}}function X9(e,t){if(1&e&&(ds(0,"div",8),os(1,Q9,1,2,"app-news-item",9),hs()),2&e){var n=As(2);Oa(1),us("ngForOf",n.newsItems)}}function $9(e,t){1&e&&(ds(0,"div",11),ds(1,"h4"),Js(2,"Please check back for UVA Education content coming soon."),hs(),hs())}function K9(e,t){if(1&e&&(ds(0,"div"),ds(1,"div",5),os(2,X9,2,1,"div",6),os(3,$9,3,0,"div",7),hs(),hs()),2&e){var n=As();Oa(2),us("ngIf",n.newsItems.length>0),Oa(1),us("ngIf",!n.newsItems||0==n.newsItems.length)}}var Z9,J9,eee,tee,nee,iee,ree=((tee=function(){function e(t,n,i){var r=this;b(this,e),this.api=t,this.authenticationService=n,this.meta=i,this.loading=!0,this.authenticationService.currentUser.subscribe(function(e){return r.currentUser=e}),this.meta.updateTag({property:"og:image",content:location.origin+"/assets/education/uva_education.jpg"},"property='og:image'"),this.meta.updateTag({property:"og:image:secure_url",content:location.origin+"/assets/education/uva_education.jpg"},"property='og:image:secure_url'"),this.meta.updateTag({name:"twitter:image",content:location.origin+"/assets/education/uva_education.jpg"},"name='twitter:image'"),this.loadResources()}return w(e,[{key:"ngOnInit",value:function(){}},{key:"loadResources",value:function(){var e=this;this.api.getEducationResources().subscribe(function(t){e.edResources=t,e.newsItems=e._resourcesToNewsItems(e.edResources)||[],e.loading=!1})}},{key:"get_image",value:function(e){return e.video_code?"https://img.youtube.com/vi/"+e.video_code+"/hqdefault.jpg":"/assets/about/feature.jpg"}},{key:"_resourcesToNewsItems",value:function(e){var t=this;if(this.edResources&&this.edResources.length>0)return e.map(function(e){var n;return e.video_code&&(n="Watch this video"),{title:e.title,description:e.description.substr(0,100)+"...",url:"/".concat(e.type.toLowerCase(),"/").concat(e.id),type:uK.RESOURCE,img:t.get_image(e),imgClass:"center-center",label:n}})}}]),e}()).\u0275fac=function(e){return new(e||tee)(ls(x$),ls(y$),ls(Yf))},tee.\u0275cmp=pt({type:tee,selectors:[["app-uva-education"]],decls:6,vars:2,consts:[["id","hero",1,"gradient-overlay","container"],[1,"hero-content"],["class","pad-2","fxLayoutAlign","center center",4,"ngIf"],[4,"ngIf"],["fxLayoutAlign","center center",1,"pad-2"],[1,"container","uva-education"],["class","row","fxFlex","87%",4,"ngIf"],["class","pad-2",4,"ngIf"],["fxFlex","87%",1,"row"],[3,"item","index",4,"ngFor","ngForOf"],[3,"item","index"],[1,"pad-2"]],template:function(e,t){1&e&&(ds(0,"div",0),ds(1,"div",1),ds(2,"h1"),Js(3,"Webinars"),hs(),hs(),hs(),os(4,Y9,2,0,"div",2),os(5,K9,4,2,"div",3)),2&e&&(Oa(4),us("ngIf",t.loading),Oa(1),us("ngIf",t.newsItems))},directives:[wh,eb,pN,v_,bh,YJ],styles:["#hero[_ngcontent-%COMP%]{background-image:url(/assets/education/uva_education.jpg);background-position:50% 33%;padding:80px 0}#hero[_ngcontent-%COMP%] .hero-content[_ngcontent-%COMP%]{color:#fff;width:50%}"]}),tee),aee=((eee=function(){function e(t,n){var i=this;b(this,e),this.router=t,this.authenticationService=n,this.authenticationService.currentUser.subscribe(function(e){return i.currentUser=e})}return w(e,[{key:"canActivate",value:function(e,t){return!!this.currentUser||(console.log("On AuthGuard, and there is no user, sending to login!"),this.router.navigate(["/login"],{queryParams:{returnUrl:t.url}}),!1)}}]),e}()).\u0275fac=function(e){return new(e||eee)(Ni(EX),Ni(y$))},eee.\u0275prov=Le({token:eee,factory:eee.\u0275fac,providedIn:"root"}),eee),oee=((J9=function(){function e(t,n){b(this,e),this.router=t,this.configService=n}return w(e,[{key:"canActivate",value:function(e,t){return!this.configService||!this.configService.mirroring||(this.router.navigate(["/mirrored"]),!1)}}]),e}()).\u0275fac=function(e){return new(e||J9)(Ni(EX),Ni(d$))},J9.\u0275prov=Le({token:J9,factory:J9.\u0275fac,providedIn:"root"}),J9),see=((Z9=function(){function e(t,n){var i=this;b(this,e),this.router=t,this.authenticationService=n,this.authenticationService.currentUser.subscribe(function(e){return i.currentUser=e})}return w(e,[{key:"canActivate",value:function(e,t){return this.currentUser?!!e.data.roles.includes(this.currentUser.role)||(this.router.navigate(["/profile"]),!1):(this.router.navigate(["/login"],{queryParams:{returnUrl:t.url}}),!1)}}]),e}()).\u0275fac=function(e){return new(e||Z9)(Ni(EX),Ni(y$))},Z9.\u0275prov=Le({token:Z9,factory:Z9.\u0275fac,providedIn:"root"}),Z9),lee=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:$J,data:{title:"Welcome to Autism DRIVE"},canActivate:[oee]},{path:"uva-education",component:ree,data:{title:"Autism DRIVE UVA Education"},canActivate:[oee]},{path:"about",component:b$,data:{title:"About Autism DRIVE"},canActivate:[oee]},{path:"forgot-password",component:NJ,data:{title:"Log in to Autism DRIVE",hideHeader:!0}},{path:"login",component:n0,data:{title:"Log in to Autism DRIVE",hideHeader:!0}},{path:"reset_password/:role/:email_token",component:N0,data:{title:"Reset your Autism DRIVE password",hideHeader:!0}},{path:"profile",component:i2,data:{title:"Your Autism DRIVE Account"},canActivate:[aee,oee]},{path:"flow/complete",component:IZ,data:{title:"Enrollment complete"},canActivate:[aee,oee]},{path:"flow/:flowName/:participantId",component:TJ,data:{title:"Your Autism DRIVE Account"},canActivate:[aee,oee]},{path:"register",component:A2,data:{title:"Create an Autism DRIVE Account",hideHeader:!0}},{path:"event/:resourceId",component:h4,data:{title:"Autism DRIVE Event Details"}},{path:"location/:resourceId",component:h4,data:{title:"Autism DRIVE Location Details"}},{path:"resource/:resourceId",component:h4,data:{title:"Autism DRIVE Resource Details"}},{path:":resourceType/:resourceId/edit",component:C4,data:{title:"Edit Resource",roles:["admin","editor"]},canActivate:[see]},{path:"resources/add",component:C4,data:{title:"Add Resource",roles:["admin","editor"]},canActivate:[see]},{path:"covid19-resources",component:uZ,data:{title:"Autism DRIVE COVID-19 Resources"}},{path:"covid19-resources/:category",component:uZ,data:{title:"Autism DRIVE COVID-19 Resources"}},{path:"studies",component:e8,data:{title:"Autism DRIVE Studies"}},{path:"studies/add",component:i6,data:{title:"Create an Autism DRIVE Study",roles:["admin"]},canActivate:[see]},{path:"studies/:studyStatus",component:e8,data:{title:"Autism DRIVE Studies"}},{path:"studies/:studyStatus/:age",component:e8,data:{title:"Autism DRIVE Studies"}},{path:"study/:studyId",component:Q8,data:{title:"Autism DRIVE Study Details"}},{path:"study/edit/:studyId",component:i6,data:{title:"Edit Study",roles:["admin"]},canActivate:[see]},{path:"terms/:relationship",component:S6,data:{title:"Agree to Terms and Conditions for an Autism DRIVE Account",hideHeader:!0}},{path:"logout",component:d0,data:{title:"You have been logged out.",hideHeader:!0}},{path:"timedout",component:A6,data:{title:"Your session has timed out.",hideHeader:!0}},{path:"search",component:I7,data:{title:"Search Autism DRIVE"}},{path:"search/:query",component:I7,data:{title:"Search Autism DRIVE Resources"}},{path:"admin",component:lK,data:{title:"Autism DRIVE Admin Home",roles:["admin"]},canActivate:[see],children:[{path:"",redirectTo:"data-admin",pathMatch:"full"},{path:"data-admin",component:_2,data:{title:"Autism DRIVE Data Admin",roles:["admin"]},canActivate:[see]},{path:"user-admin",component:q9,data:{title:"Autism DRIVE User Admin",roles:["admin"]},canActivate:[see]},{path:"participant-admin",component:M0,data:{title:"Autism DRIVE Participant Admin",roles:["admin"]},canActivate:[see]},{path:"taxonomy-admin",component:m6,data:{title:"Autism DRIVE Taxonomy Admin",roles:["admin"]},canActivate:[see]},{path:"import-export-status",component:aK,data:{title:"Autism DRIVE Import/Export Admin",roles:["admin"]},canActivate:[see]},{path:"email-log",component:OZ,data:{title:"Autism DRIVE Email Log Admin",roles:["admin"]},canActivate:[see]}]},{path:"admin/user/:userId",component:y9,data:{title:"User Admin Details",roles:["admin","researcher"]},canActivate:[see]},{path:"mirrored",component:h0,data:{title:"Mirrored Server Details"}}],uee=((iee=function e(){b(this,e)}).\u0275fac=function(e){return new(e||iee)},iee.\u0275mod=yt({type:iee}),iee.\u0275inj=Ne({imports:[[QX.forRoot(lee,{useHash:!0,scrollPositionRestoration:"enabled"})],QX]}),iee),cee=((nee=function(){function e(t){b(this,e),this.ngZone=t}return w(e,[{key:"setInterval",value:function(e,t){var n=this;this.ngZone.runOutsideAngular(function(){n.interval=window.setInterval(function(){n.ngZone.run(e)},t)})}},{key:"clearInterval",value:function(){window.clearInterval(this.interval)}}]),e}()).\u0275fac=function(e){return new(e||nee)(Ni(Oc))},nee.\u0275prov=Le({token:nee,factory:nee.\u0275fac,providedIn:"root"}),nee);function dee(e,t){if(1&e&&fs(0,"div",19),2&e){var n=As();us("@toggleBackground",n.onHomeScreen()&&n.headerViewportState)}}function hee(e,t){1&e&&(ds(0,"div",26),Js(1,"THIS IS A MIRRORED SERVER"),hs())}function fee(e,t){if(1&e&&(ds(0,"mat-toolbar-row",20),ds(1,"div",21),ds(2,"a",22),ds(3,"span",23),Js(4,"About UVA STAR"),hs(),ds(5,"span",24),Js(6,"Learn about the UVA STAR project"),hs(),hs(),hs(),fs(7,"span",5),os(8,hee,2,0,"div",25),hs()),2&e){var n=As();us("@toggleUvaHeader",n.headerExpandedState),Oa(8),us("ngIf",n.config.mirroring)}}var pee=function(){return["/register"]};function mee(e,t){1&e&&(ds(0,"li"),ds(1,"a",34),ds(2,"span",23),Js(3,"Join"),hs(),ds(4,"span",24),Js(5,"Join Us"),hs(),hs(),hs()),2&e&&(Oa(1),us("routerLink",Su(1,pee)))}function gee(e,t){if(1&e){var n=vs();ds(0,"li"),ds(1,"a",35),ks("click",function(){return rn(n),As(2).goLogin()}),Js(2," Sign in "),hs(),hs()}}var vee=function(){return["/profile"]};function yee(e,t){1&e&&(ds(0,"li"),ds(1,"a",36),ds(2,"mat-icon"),Js(3,"account_circle"),hs(),Js(4," Profile "),hs(),hs()),2&e&&(Oa(1),us("routerLink",Su(1,vee)))}function _ee(e,t){if(1&e){var n=vs();ds(0,"li"),ds(1,"a",37),ks("click",function(e){return rn(n),As(2).goLogout(e)}),ds(2,"mat-icon"),Js(3,"exit_to_app"),hs(),Js(4," Logout "),hs(),hs()}}var bee=function(){return["/admin"]};function kee(e,t){1&e&&(ds(0,"li"),ds(1,"a",38),ds(2,"mat-icon"),Js(3,"build"),hs(),Js(4," Admin "),hs(),hs()),2&e&&(Oa(1),us("routerLink",Su(1,bee)))}var wee=function(){return["/about"]},Cee=function(){return["/studies"]},xee=function(){return["/search"]},See=function(){return["/uva-education"]};function Aee(e,t){if(1&e&&(ds(0,"div",27),ds(1,"ul"),ds(2,"li"),ds(3,"a",28),ds(4,"span",23),Js(5,"About"),hs(),ds(6,"span",24),Js(7,"About Autism DRIVE"),hs(),hs(),hs(),ds(8,"li"),ds(9,"a",29),ds(10,"span",23),Js(11,"Studies"),hs(),ds(12,"span",30),Js(13,"Current Studies"),hs(),hs(),hs(),ds(14,"li"),ds(15,"a",31),ds(16,"span",23),Js(17,"Resources"),hs(),ds(18,"span",24),Js(19,"Find Resources"),hs(),hs(),hs(),ds(20,"li"),ds(21,"a",32),Js(22," Webinars "),hs(),hs(),os(23,mee,6,2,"li",33),os(24,gee,3,0,"li",33),os(25,yee,5,2,"li",33),os(26,_ee,5,0,"li",33),os(27,kee,5,2,"li",33),hs(),hs()),2&e){var n=As();Oa(3),us("routerLink",Su(9,wee)),Oa(6),us("routerLink",Su(10,Cee)),Oa(6),us("routerLink",Su(11,xee)),Oa(6),us("routerLink",Su(12,See)),Oa(2),us("ngIf",!n.currentUser),Oa(1),us("ngIf",!n.currentUser),Oa(1),us("ngIf",n.currentUser),Oa(1),us("ngIf",n.currentUser),Oa(1),us("ngIf",n.currentUser&&"admin"==n.currentUser.role)}}function Oee(e,t){1&e&&(ds(0,"mat-toolbar-row",39),ds(1,"p",40),Js(2," A centralized system for autism research & resources for individuals, families & professionals. "),hs(),ds(3,"p",41),Js(4," Autism research & resources for "),fs(5,"br",42),Js(6," individuals, families & professionals. "),hs(),hs()),2&e&&us("@toggleTaglineToolbar",As().taglineToolbarState)}function Eee(e,t){if(1&e){var n=vs();ds(0,"a",43),ks("click",function(){return rn(n),As().toggleMenu()}),ds(1,"mat-icon"),Js(2,"person_add"),hs(),Js(3," Join Us "),hs()}2&e&&us("routerLink",Su(1,pee))}var Tee=function(){return["/login"]};function Pee(e,t){if(1&e){var n=vs();ds(0,"a",44),ks("click",function(){return rn(n),As().toggleMenu()}),ds(1,"mat-icon"),Js(2,"account_circle"),hs(),Js(3," Sign in "),hs()}2&e&&us("routerLink",Su(1,Tee))}function Dee(e,t){if(1&e){var n=vs();ds(0,"a",45),ks("click",function(){return rn(n),As().toggleMenu()}),ds(1,"mat-icon"),Js(2,"build"),hs(),Js(3," Admin "),hs()}2&e&&us("routerLink",Su(1,bee))}function Mee(e,t){if(1&e){var n=vs();ds(0,"a",46),ks("click",function(){return rn(n),As().toggleMenu()}),ds(1,"mat-icon"),Js(2,"account_circle"),hs(),Js(3," Visit Profile "),hs()}2&e&&us("routerLink",Su(1,vee))}function Iee(e,t){if(1&e){var n=vs();ds(0,"a",47),ks("click",function(e){return rn(n),As().goLogout(e)})("click",function(){return rn(n),As().toggleMenu()}),ds(1,"mat-icon"),Js(2,"exit_to_app"),hs(),Js(3," Logout "),hs()}}var Ree,Lee=function(e){return{mirroring:e}},Fee=function(){return{}},Nee=function(){return{top:0}},Vee=function(){return{top:0,minHeight:"64px"}},Bee="0px 5px 5px 0px rgba(0, 0, 0, 0.3)",Hee=R4.Hidden+"-"+L4.Collapsed,zee=R4.Hidden+"-"+L4.Expanded,Gee=R4.Visible+"-"+L4.Collapsed,jee=R4.Visible+"-"+L4.Expanded,Uee=((Ree=function(){function e(t,n,i,r,a,o){b(this,e),this.authenticationService=n,this.router=i,this.api=r,this.config=a,this.headerExpanded=!0,this.menuVisible=!1,this.mobileQuery=o.matchMedia("(max-width: 959px)"),this.mdMediaQuery=o.matchMedia("(min-width: 960px) and (max-width: 1279px)"),this.lgMediaQuery=o.matchMedia("(min-width: 1280px)"),this._mobileQueryListener=function(){return t.detectChanges()},this._mdMediaQueryListener=function(){return t.detectChanges()},this._lgMediaQueryListener=function(){return t.detectChanges()},this.mobileQuery.addListener(this._mobileQueryListener),this.mdMediaQuery.addListener(this._mdMediaQueryListener),this.lgMediaQuery.addListener(this._lgMediaQueryListener)}return w(e,[{key:"viewportWidth",get:function(){return this.mobileQuery.matches?I4.Small:this.mdMediaQuery.matches?I4.Medium:this.lgMediaQuery.matches?I4.Large:void 0}},{key:"headerViewportState",get:function(){return"".concat(this.headerExpanded?L4.Expanded:L4.Collapsed,"-").concat(this.viewportWidth)}},{key:"menuState",get:function(){return"".concat(this.menuVisible?R4.Visible:R4.Hidden,"-").concat(this.headerExpanded?L4.Expanded:L4.Collapsed,"-").concat(this.viewportWidth)}},{key:"headerExpandedState",get:function(){return this.headerExpanded?L4.Expanded:L4.Collapsed}},{key:"taglineToolbarState",get:function(){return"".concat(this.menuVisible?R4.Visible:R4.Hidden,"-").concat(this.headerExpanded?L4.Expanded:L4.Collapsed,"-").concat(this.viewportWidth)}},{key:"ngAfterViewInit",value:function(){this.watchScrollEvents()}},{key:"ngOnDestroy",value:function(){this.mobileQuery.removeListener(this._mobileQueryListener),this.mdMediaQuery.removeListener(this._mdMediaQueryListener),this.lgMediaQuery.removeListener(this._lgMediaQueryListener)}},{key:"goLogout",value:function(e){e.preventDefault(),this.authenticationService.logout(),this.router.navigate(["logout"])}},{key:"goLogin",value:function(){var e=/^\/login/.test(this.router.url),t=/^\/logout/.test(this.router.url),n=/^\/home/.test(this.router.url),i=/^\/timedout/.test(this.router.url);n||e||t||i?this.router.navigate(["/login"]):this.router.navigate(["/login"],{queryParams:{returnUrl:this.router.url}})}},{key:"toggleMenu",value:function(){this.menuVisible=!this.menuVisible}},{key:"onHomeScreen",value:function(){return/^\/home/.test(this.router.url)}},{key:"watchScrollEvents",value:function(){var e=this,t=zg(window,"scroll").pipe(O4(10),q(function(e){return window.pageYOffset}),uO(),q(function(e){var t=n(e,2),i=t[0];return t[1] *",cC("500ms ease-in-out"))]),uC("toggleUvaHeader",[pC(L4.Collapsed,fC({top:"-40px",height:"40px"})),pC(L4.Expanded,fC({top:"0px",height:"40px"})),gC("* => *",cC("500ms ease-in-out"))]),uC("toggleMenuBar",[pC(Hee+"-"+I4.Small,fC({top:"0px",height:"64px","box-shadow":Bee})),pC(zee+"-"+I4.Small,fC({top:"0px",height:"64px","box-shadow":"none"})),pC(Gee+"-"+I4.Small,fC({top:"0px",height:"64px","box-shadow":"none"})),pC(jee+"-"+I4.Small,fC({top:"0px",height:"64px","box-shadow":"none"})),pC(Hee+"-"+I4.Medium,fC({top:"0px",height:"64px","box-shadow":Bee})),pC(zee+"-"+I4.Medium,fC({top:"40px",height:"64px","box-shadow":"none"})),pC(Gee+"-"+I4.Medium,fC({top:"0px",height:"64px","box-shadow":"none"})),pC(jee+"-"+I4.Medium,fC({top:"40px",height:"64px","box-shadow":"none"})),pC(Hee+"-"+I4.Large,fC({top:"0px",height:"64px","box-shadow":Bee})),pC(zee+"-"+I4.Large,fC({top:"40px",height:"64px","box-shadow":"none"})),pC(Gee+"-"+I4.Large,fC({top:"0px",height:"64px","box-shadow":"none"})),pC(jee+"-"+I4.Large,fC({top:"40px",height:"64px","box-shadow":"none"})),gC("* => *",cC("500ms ease-in-out"))]),uC("toggleTaglineToolbar",[pC(Hee+"-"+I4.Small,fC({top:"0px",height:"40px","box-shadow":"none"})),pC(zee+"-"+I4.Small,fC({top:"104px",height:"64px","box-shadow":Bee})),pC(Hee+"-"+I4.Medium,fC({top:"0px",height:"40px","box-shadow":"none"})),pC(zee+"-"+I4.Medium,fC({top:"104px",height:"40px","box-shadow":Bee})),pC(Hee+"-"+I4.Large,fC({top:"0px",height:"40px","box-shadow":"none"})),pC(zee+"-"+I4.Large,fC({top:"104px",height:"40px","box-shadow":Bee})),pC(Gee+"-"+I4.Small,fC({top:"0px",height:"40px","box-shadow":"none"})),pC(jee+"-"+I4.Small,fC({top:"104px",height:"64px","box-shadow":"none"})),pC(Gee+"-"+I4.Medium,fC({top:"0px",height:"40px","box-shadow":"none"})),pC(jee+"-"+I4.Medium,fC({top:"104px",height:"40px","box-shadow":"none"})),pC(Gee+"-"+I4.Large,fC({top:"0px",height:"40px","box-shadow":"none"})),pC(jee+"-"+I4.Large,fC({top:"104px",height:"40px","box-shadow":"none"})),gC("* => *",cC("500ms ease-in-out"))]),uC("toggleBackground",[pC(L4.Collapsed+"-"+I4.Small,fC({top:"0px",height:"64px"})),pC(L4.Expanded+"-"+I4.Small,fC({top:"0px",height:"64px"})),pC(L4.Collapsed+"-"+I4.Medium,fC({top:"0px",height:"64px"})),pC(L4.Expanded+"-"+I4.Medium,fC({top:"0px",height:"144px"})),pC(L4.Collapsed+"-"+I4.Large,fC({top:"0px",height:"64px"})),pC(L4.Expanded+"-"+I4.Large,fC({top:"0px",height:"144px"})),gC("* => *",cC("500ms ease-out"))])]}}),Ree);function Wee(e,t){1&e&&(ds(0,"div"),Js(1,"Currently running in Development Mode."),hs())}function qee(e,t){1&e&&(ds(0,"div"),Js(1,"Currently running in Test mode."),hs())}function Yee(e,t){1&e&&(ds(0,"div"),Js(1,"This is a mirrored server with de-identified data."),hs())}var Qee,Xee,$ee=((Xee=function e(t,n){b(this,e),this.config=t,this.router=n}).\u0275fac=function(e){return new(e||Xee)(ls(d$),ls(EX))},Xee.\u0275cmp=pt({type:Xee,selectors:[["app-footer"]],decls:17,vars:3,consts:[[1,"global-footer"],[1,"funded-by"],["href","https://curry.virginia.edu/faculty-research/centers-labs-projects/supporting-transformative-autism-research-star","target","_blank"],["src","/assets/logo/UVA_STAR-logo.svg",1,"footer-logo"],[1,"footer-contact"],[1,"address"],["href","tel:434-297-8178",1,"tel"],["href","mailto:autismdrive@virginia.edu",1,"email"],[4,"ngIf"]],template:function(e,t){1&e&&(ds(0,"footer",0),ds(1,"div",1),Js(2,"Funded by"),hs(),ds(3,"a",2),fs(4,"img",3),hs(),ds(5,"div",4),ds(6,"address",5),Js(7,"417 Emmet Street, Charlottesville, VA 22904"),hs(),ds(8,"a",6),Js(9,"434-297-8178"),hs(),ds(10,"a",7),Js(11,"autismdrive@virginia.edu"),hs(),hs(),ds(12,"p"),Js(13,"\xa9 2019 BY THE RECTOR AND VISITORS OF THE UNIVERSITY OF VIRGINIA"),hs(),os(14,Wee,2,0,"div",8),os(15,qee,2,0,"div",8),os(16,Yee,2,0,"div",8),hs()),2&e&&(Oa(14),us("ngIf",t.config.development),Oa(1),us("ngIf",t.config.testing),Oa(1),us("ngIf",t.config.mirroring))},directives:[wh],styles:['footer[_ngcontent-%COMP%]{margin:50px 10px 10px;text-align:center;position:relative}footer[_ngcontent-%COMP%]:before{background-image:url(/assets/theme/orange-dotted-border-x.png);background-repeat:repeat-x;width:100%;height:4px;display:block;position:absolute;left:0;content:"";top:-2em}.funded-by[_ngcontent-%COMP%]{text-align:left;margin:1em auto -1em}@media (max-width:959px){.funded-by[_ngcontent-%COMP%]{width:290px}}@media (min-width:960px){.funded-by[_ngcontent-%COMP%]{width:417px}}@media (max-width:959px){.footer-logo[_ngcontent-%COMP%]{width:320px}}@media (min-width:960px){.footer-logo[_ngcontent-%COMP%]{width:457px}}.footer-contact[_ngcontent-%COMP%]{margin:0 auto 1.25rem;max-width:15.625rem}.footer-contact[_ngcontent-%COMP%] .address[_ngcontent-%COMP%], .footer-contact[_ngcontent-%COMP%] .email[_ngcontent-%COMP%], .footer-contact[_ngcontent-%COMP%] .tel[_ngcontent-%COMP%]{color:#4e4e4e;line-height:1.5;font-style:italic;display:inline}.footer-contact[_ngcontent-%COMP%] .address[_ngcontent-%COMP%]:after, .footer-contact[_ngcontent-%COMP%] .tel[_ngcontent-%COMP%]:after{content:"|";display:inline-block;margin:0 .325em 0 .5em}@media screen and (min-width:45em){.footer-contact[_ngcontent-%COMP%]{max-width:none;margin:0 auto .625rem}}']}),Xee),Kee=((Qee=function(){function e(t,n,i,r,a,o,s){var l=this;b(this,e),this.authenticationService=t,this.api=n,this.router=i,this.googleAnalyticsService=r,this.configService=a,this.meta=o,this.route=s,this.title="star-drive",this.hideHeader=!1,this.googleAnalyticsService.init(),this.router.events.subscribe(function(e){(e instanceof gY||e instanceof vY)&&e.snapshot&&e.snapshot.data&&(l.hideHeader=!!e.snapshot.data.hideHeader)}),this.authenticationService.currentUser.subscribe(function(e){return l.currentUser=e}),this.meta.addTags([{property:"og:url",content:location.origin},{property:"og:image",content:location.origin+"/assets/home/hero-family.jpg"},{property:"og:image:secure_url",content:location.origin+"/assets/home/hero-family.jpg"},{name:"twitter:image",content:location.origin+"/assets/home/hero-family.jpg"}])}return w(e,[{key:"ngOnInit",value:function(){var e=this;this.router.events.subscribe(function(t){if(t instanceof rY){var n=e.route.snapshot.firstChild.data.title;document.querySelector("body").classList.toggle("is-home","/home"===e.router.url),n&&(e.meta.updateTag({property:"og:title",content:n},"property='og:title'"),e.meta.updateTag({name:"twitter:text:title",content:n},"name='twitter:text:title'")),e.meta.updateTag({property:"og:url",content:location.href},"property='og:url'")}})}}]),e}()).\u0275fac=function(e){return new(e||Qee)(ls(y$),ls(x$),ls(EX),ls(h$),ls(d$),ls(Yf),ls(oQ))},Qee.\u0275cmp=pt({type:Qee,selectors:[["app-root"]],decls:5,vars:1,consts:[[3,"currentUser"],[1,"content"]],template:function(e,t){1&e&&(ds(0,"div"),fs(1,"app-header",0),ds(2,"div",1),fs(3,"router-outlet"),hs(),fs(4,"app-footer"),hs()),2&e&&(Oa(1),us("currentUser",t.currentUser))},directives:[Uee,NX,$ee],styles:[":not(body.is-home) .content{padding-top:64px}"]}),Qee),Zee=["fieldComponent"];function Jee(e,t){}function ete(e,t){if(1&e&&(ds(0,"div",2),fs(1,"formly-validation-message",3),hs()),2&e){var n=As();Oa(1),us("field",n.field)}}var tte,nte=((tte=function(e){f(n,e);var t=m(n);function n(){return b(this,n),t.apply(this,arguments)}return n}(Cj)).\u0275fac=function(e){return ite(e||tte)},tte.\u0275cmp=pt({type:tte,selectors:[["app-group-validation-wrapper"]],viewQuery:function(e,t){var n;1&e&&Ku(Zee,3,du),2&e&&$u(n=Ju())&&(t.fieldComponent=n.first)},features:[jo],decls:3,vars:1,consts:[["fieldComponent",""],["class","mat-error",4,"ngIf"],[1,"mat-error"],[3,"field"]],template:function(e,t){1&e&&(os(0,Jee,0,0,"ng-template",null,0,ic),os(2,ete,2,1,"div",1)),2&e&&(Oa(2),us("ngIf",t.showError))},directives:[wh,Oj],styles:[""]}),tte),ite=fi(nte);function rte(e,t){return function(){return new Promise(function(n){var i="./api/config";"override_config_url"in eq&&(i=eq.override_config_url),e.get(i).pipe(q(function(e){t.fromProperties(e),n(!0)}),uR(function(e,t){return console.log("Failed to load configuration, unable to find ./api/config"),n(!1),fp({})})).subscribe()})}}var ate,ote=function(){var e=function e(){b(this,e)};return e.config={extras:{showError:Zq},types:[{name:"repeat",component:Rq},{name:"multiselecttree",component:_q,wrappers:["card"]},{name:"autocomplete",component:aq,wrappers:["form-field"]},{name:"textarea-auto-resize",component:Lq,wrappers:["form-field"]}],validators:[{name:"phone",validation:qq},{name:"email",validation:Hq},{name:"url",validation:Uq},{name:"multicheckbox",validation:Qq},{name:"emailConfirm",validation:Gq}],validationMessages:[{name:"phone",message:Yq},{name:"email",message:zq},{name:"emailConfirm",message:jq},{name:"url",message:Wq},{name:"multicheckbox",message:Xq},{name:"required",message:"This field is required."},{name:"min",message:$q},{name:"max",message:Kq}],wrappers:[{name:"help",component:dq},{name:"card",component:lq},{name:"group-validation",component:nte}]},e.\u0275prov=Le({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(),ste=((ate=function e(t){b(this,e),t.getContainerElement().classList.add("stardrive-theme")}).\u0275fac=function(e){return new(e||ate)(Ni(uE))},ate.\u0275mod=yt({type:ate,bootstrap:[Kee]}),ate.\u0275inj=Ne({providers:[x$,V4,$h,EW,h$,cee,N4,{provide:oc,useFactory:rte,deps:[vg,d$],multi:!0},{provide:_g,useClass:f$,multi:!0},{provide:_g,useClass:_$,multi:!0},{provide:Im,useExisting:d$},{provide:bT,useValue:{appearance:"outline"}}],imports:[[Lm.forRoot(),zm,NS,Uf,Zh,pb,rW,QU,Fj.forRoot(ote.config),$k,Mg,XW.forRoot(),dP,mP,CP,RP,WP,cD,CD,NI,oM,sR,CT,lR,HR,yM,iL,OL,yA,jF,KF,mN,PN,JL,KN,JN,_V,CV,aH,xz,Pz,SF,fG,JW,uW,Kk,oW,PG,uee]]}),ate);eq.production&&function(){if(Bc)throw new Error("Cannot enable prod mode after platform setup.");Vc=!1}(),Gf().bootstrapModule(ste).catch(function(e){return console.error(e)})},zn8P:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}},[[0,0]]])}(); \ No newline at end of file