openvidu-livekit-tutorials/openvidu-webcomponent/web/openvidu-webcomponent-2.16.0.js
2020-11-13 01:03:43 +01:00

4 lines
1.2 MiB

!function(e){function r(r){for(var n,l,f=r[0],i=r[1],p=r[2],c=0,s=[];c<f.length;c++)l=f[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(a&&a(r);s.length;)s.shift()();return u.push.apply(u,p||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,f=1;f<t.length;f++)0!==o[t[f]]&&(n=!1);n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={0:0},u=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,(function(r){return e[r]}).bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="";var f=window.webpackJsonp=window.webpackJsonp||[],i=f.push.bind(f);f.push=r,f=f.slice();for(var p=0;p<f.length;p++)r(f[p]);var a=i;t()}([]);
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{"++zV":function(e,t,n){var r=n("I+eb"),o=n("eDxR"),i=n("glrk"),a=o.toKey,c=o.set;r({target:"Reflect",stat:!0},{defineMetadata:function(e,t,n){var r=arguments.length<4?void 0:a(arguments[3]);c(e,t,i(n),r)}})},"/GqU":function(e,t,n){var r=n("RK3t"),o=n("HYAF");e.exports=function(e){return r(o(e))}},"/b8u":function(e,t,n){var r=n("STAE");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"0BK2":function(e,t){e.exports={}},"0Dky":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"0GbY":function(e,t,n){var r=n("Qo9l"),o=n("2oRo"),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e])||i(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},"0eef":function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},"0rvr":function(e,t,n){var r=n("glrk"),o=n("O741");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(i){}return function(n,i){return r(n),o(i),t?e.call(n,i):n.__proto__=i,n}}():void 0)},"1E5z":function(e,t,n){var r=n("m/L8").f,o=n("UTVS"),i=n("tiKp")("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},2:function(e,t,n){e.exports=n("hN/g")},"2oRo":function(e,t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof global&&global)||Function("return this")()},"33Wh":function(e,t,n){var r=n("yoRg"),o=n("eDl+");e.exports=Object.keys||function(e){return r(e,o)}},"4WOD":function(e,t,n){var r=n("UTVS"),o=n("ewvW"),i=n("93I0"),a=n("4Xet"),c=i("IE_PROTO"),u=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=o(e),r(e,c)?e[c]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?u:null}},"4Xet":function(e,t,n){var r=n("0Dky");e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},"4syw":function(e,t,n){var r=n("busE");e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},"5r1n":function(e,t,n){var r=n("I+eb"),o=n("eDxR"),i=n("glrk"),a=o.get,c=o.toKey;r({target:"Reflect",stat:!0},{getOwnMetadata:function(e,t){var n=arguments.length<3?void 0:c(arguments[2]);return a(e,i(t),n)}})},"6JNq":function(e,t,n){var r=n("UTVS"),o=n("Vu81"),i=n("Bs8V"),a=n("m/L8");e.exports=function(e,t){for(var n=o(t),c=a.f,u=i.f,s=0;s<n.length;s++){var l=n[s];r(e,l)||c(e,l,u(t,l))}}},"6LWA":function(e,t,n){var r=n("xrYK");e.exports=Array.isArray||function(e){return"Array"==r(e)}},"6PKz":function(e,t,n){n("++zV"),n("Y4C7"),n("ZsH6"),n("vZi8"),n("5r1n"),n("sQ9d"),n("bdeN"),n("AwgR"),n("qgGA")},"6VoE":function(e,t,n){var r=n("tiKp"),o=n("P4y1"),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},"8YOa":function(e,t,n){var r=n("0BK2"),o=n("hh1v"),i=n("UTVS"),a=n("m/L8").f,c=n("kOOl"),u=n("uy83"),s=c("meta"),l=0,f=Object.isExtensible||function(){return!0},p=function(e){a(e,s,{value:{objectID:"O"+ ++l,weakData:{}}})},h=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,s)){if(!f(e))return"F";if(!t)return"E";p(e)}return e[s].objectID},getWeakData:function(e,t){if(!i(e,s)){if(!f(e))return!0;if(!t)return!1;p(e)}return e[s].weakData},onFreeze:function(e){return u&&h.REQUIRED&&f(e)&&!i(e,s)&&p(e),e}};r[s]=!0},"93I0":function(e,t,n){var r=n("VpIT"),o=n("kOOl"),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},"9d/t":function(e,t,n){var r=n("AO7/"),o=n("xrYK"),i=n("tiKp")("toStringTag"),a="Arguments"==o(function(){return arguments}());e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),i))?n:a?o(t):"Object"==(r=o(t))&&"function"==typeof t.callee?"Arguments":r}},A2ZE:function(e,t,n){var r=n("HAuM");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},"AO7/":function(e,t,n){var r={};r[n("tiKp")("toStringTag")]="z",e.exports="[object z]"===String(r)},AwgR:function(e,t,n){var r=n("I+eb"),o=n("eDxR"),i=n("glrk"),a=o.has,c=o.toKey;r({target:"Reflect",stat:!0},{hasOwnMetadata:function(e,t){var n=arguments.length<3?void 0:c(arguments[2]);return a(e,i(t),n)}})},Bs8V:function(e,t,n){var r=n("g6v/"),o=n("0eef"),i=n("XGwC"),a=n("/GqU"),c=n("wE6v"),u=n("UTVS"),s=n("DPsx"),l=Object.getOwnPropertyDescriptor;t.f=r?l:function(e,t){if(e=a(e),t=c(t,!0),s)try{return l(e,t)}catch(n){}if(u(e,t))return i(!o.f.call(e,t),e[t])}},DPsx:function(e,t,n){var r=n("g6v/"),o=n("0Dky"),i=n("zBJ4");e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},ENF9:function(e,t,n){"use strict";var r,o=n("2oRo"),i=n("4syw"),a=n("8YOa"),c=n("bWFh"),u=n("rKzb"),s=n("hh1v"),l=n("afO8").enforce,f=n("f5p1"),p=!o.ActiveXObject&&"ActiveXObject"in o,h=Object.isExtensible,v=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},d=e.exports=c("WeakMap",v,u);if(f&&p){r=u.getConstructor(v,"WeakMap",!0),a.REQUIRED=!0;var y=d.prototype,g=y.delete,k=y.has,m=y.get,b=y.set;i(y,{delete:function(e){if(s(e)&&!h(e)){var t=l(this);return t.frozen||(t.frozen=new r),g.call(this,e)||t.frozen.delete(e)}return g.call(this,e)},has:function(e){if(s(e)&&!h(e)){var t=l(this);return t.frozen||(t.frozen=new r),k.call(this,e)||t.frozen.has(e)}return k.call(this,e)},get:function(e){if(s(e)&&!h(e)){var t=l(this);return t.frozen||(t.frozen=new r),k.call(this,e)?m.call(this,e):t.frozen.get(e)}return m.call(this,e)},set:function(e,t){if(s(e)&&!h(e)){var n=l(this);n.frozen||(n.frozen=new r),k.call(this,e)?b.call(this,e,t):n.frozen.set(e,t)}else b.call(this,e,t);return this}})}},"G+Rx":function(e,t,n){var r=n("0GbY");e.exports=r("document","documentElement")},GarU:function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},HAuM:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},HH4o:function(e,t,n){var r=n("tiKp")("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(c){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(c){}return n}},HYAF:function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},"I+eb":function(e,t,n){var r=n("2oRo"),o=n("Bs8V").f,i=n("kRJp"),a=n("busE"),c=n("zk60"),u=n("6JNq"),s=n("lMq5");e.exports=function(e,t){var n,l,f,p,h,v=e.target,d=e.global,y=e.stat;if(n=d?r:y?r[v]||c(v,{}):(r[v]||{}).prototype)for(l in t){if(p=t[l],f=e.noTargetGet?(h=o(n,l))&&h.value:n[l],!s(d?l:v+(y?".":"#")+l,e.forced)&&void 0!==f){if(typeof p==typeof f)continue;u(p,f)}(e.sham||f&&f.sham)&&i(p,"sham",!0),a(n,l,p,e)}}},I8vh:function(e,t,n){var r=n("ppGB"),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},ImZN:function(e,t,n){var r=n("glrk"),o=n("6VoE"),i=n("UMSQ"),a=n("A2ZE"),c=n("NaFW"),u=n("m92n"),s=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,n,l,f){var p,h,v,d,y,g,k,m=a(t,n,l?2:1);if(f)p=e;else{if("function"!=typeof(h=c(e)))throw TypeError("Target is not iterable");if(o(h)){for(v=0,d=i(e.length);d>v;v++)if((y=l?m(r(k=e[v])[0],k[1]):m(e[v]))&&y instanceof s)return y;return new s(!1)}p=h.call(e)}for(g=p.next;!(k=g.call(p)).done;)if("object"==typeof(y=u(p,m,k.value,l))&&y&&y instanceof s)return y;return new s(!1)}).stop=function(e){return new s(!0,e)}},JBy8:function(e,t,n){var r=n("yoRg"),o=n("eDl+").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},JiZb:function(e,t,n){"use strict";var r=n("0GbY"),o=n("m/L8"),i=n("tiKp"),a=n("g6v/"),c=i("species");e.exports=function(e){var t=r(e);a&&t&&!t[c]&&(0,o.f)(t,c,{configurable:!0,get:function(){return this}})}},"N+g0":function(e,t,n){var r=n("g6v/"),o=n("m/L8"),i=n("glrk"),a=n("33Wh");e.exports=r?Object.defineProperties:function(e,t){i(e);for(var n,r=a(t),c=r.length,u=0;c>u;)o.f(e,n=r[u++],t[n]);return e}},NaFW:function(e,t,n){var r=n("9d/t"),o=n("P4y1"),i=n("tiKp")("iterator");e.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},O741:function(e,t,n){var r=n("hh1v");e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},P4y1:function(e,t){e.exports={}},Qo9l:function(e,t,n){var r=n("2oRo");e.exports=r},RK3t:function(e,t,n){var r=n("0Dky"),o=n("xrYK"),i="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},STAE:function(e,t,n){var r=n("0Dky");e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},TWQb:function(e,t,n){var r=n("/GqU"),o=n("UMSQ"),i=n("I8vh"),a=function(e){return function(t,n,a){var c,u=r(t),s=o(u.length),l=i(a,s);if(e&&n!=n){for(;s>l;)if((c=u[l++])!=c)return!0}else for(;s>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},Tskq:function(e,t,n){"use strict";var r=n("bWFh"),o=n("ZWaQ");e.exports=r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},UMSQ:function(e,t,n){var r=n("ppGB"),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},UTVS:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},VpIT:function(e,t,n){var r=n("xDBR"),o=n("xs3f");(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},Vu81:function(e,t,n){var r=n("0GbY"),o=n("JBy8"),i=n("dBg+"),a=n("glrk");e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(a(e)),n=i.f;return n?t.concat(n(e)):t}},W8MJ:function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},WkPL:function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},XGwC:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},Y3SK:function(e,t,n){var r=n("ZhPi");e.exports=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}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,c=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return c=e.done,e},e:function(e){u=!0,a=e},f:function(){try{c||null==n.return||n.return()}finally{if(u)throw a}}}}},Y4C7:function(e,t,n){var r=n("I+eb"),o=n("eDxR"),i=n("glrk"),a=o.toKey,c=o.getMap,u=o.store;r({target:"Reflect",stat:!0},{deleteMetadata:function(e,t){var n=arguments.length<3?void 0:a(arguments[2]),r=c(i(t),n,!1);if(void 0===r||!r.delete(e))return!1;if(r.size)return!0;var o=u.get(t);return o.delete(n),!!o.size||u.delete(t)}})},YGK4:function(e,t,n){"use strict";var r=n("bWFh"),o=n("ZWaQ");e.exports=r("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},ZWaQ:function(e,t,n){"use strict";var r=n("m/L8").f,o=n("fHMY"),i=n("4syw"),a=n("A2ZE"),c=n("GarU"),u=n("ImZN"),s=n("fdAy"),l=n("JiZb"),f=n("g6v/"),p=n("8YOa").fastKey,h=n("afO8"),v=h.set,d=h.getterFor;e.exports={getConstructor:function(e,t,n,s){var l=e((function(e,r){c(e,l,t),v(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),f||(e.size=0),null!=r&&u(r,e[s],e,n)})),h=d(t),y=function(e,t,n){var r,o,i=h(e),a=g(e,t);return a?a.value=n:(i.last=a={index:o=p(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),f?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},g=function(e,t){var n,r=h(e),o=p(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return i(l.prototype,{clear:function(){for(var e=h(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,f?e.size=0:this.size=0},delete:function(e){var t=this,n=h(t),r=g(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),f?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=h(this),r=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!g(this,e)}}),i(l.prototype,n?{get:function(e){var t=g(this,e);return t&&t.value},set:function(e,t){return y(this,0===e?0:e,t)}}:{add:function(e){return y(this,e=0===e?0:e,e)}}),f&&r(l.prototype,"size",{get:function(){return h(this).size}}),l},setStrong:function(e,t,n){var r=t+" Iterator",o=d(t),i=d(r);s(e,t,(function(e,t){v(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),l(t)}}},ZfDv:function(e,t,n){var r=n("hh1v"),o=n("6LWA"),i=n("tiKp")("species");e.exports=function(e,t){var n;return o(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},ZhPi:function(e,t,n){var r=n("WkPL");e.exports=function(e,t){if(e){if("string"==typeof e)return r(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)?r(e,t):void 0}}},ZsH6:function(e,t,n){var r=n("I+eb"),o=n("eDxR"),i=n("glrk"),a=n("4WOD"),c=o.has,u=o.get,s=o.toKey,l=function(e,t,n){if(c(e,t,n))return u(e,t,n);var r=a(t);return null!==r?l(e,r,n):void 0};r({target:"Reflect",stat:!0},{getMetadata:function(e,t){var n=arguments.length<3?void 0:s(arguments[2]);return l(e,i(t),n)}})},afO8:function(e,t,n){var r,o,i,a=n("f5p1"),c=n("2oRo"),u=n("hh1v"),s=n("kRJp"),l=n("UTVS"),f=n("93I0"),p=n("0BK2");if(a){var h=new(0,c.WeakMap),v=h.get,d=h.has,y=h.set;r=function(e,t){return y.call(h,e,t),t},o=function(e){return v.call(h,e)||{}},i=function(e){return d.call(h,e)}}else{var g=f("state");p[g]=!0,r=function(e,t){return s(e,g,t),t},o=function(e){return l(e,g)?e[g]:{}},i=function(e){return l(e,g)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},bWFh:function(e,t,n){"use strict";var r=n("I+eb"),o=n("2oRo"),i=n("lMq5"),a=n("busE"),c=n("8YOa"),u=n("ImZN"),s=n("GarU"),l=n("hh1v"),f=n("0Dky"),p=n("HH4o"),h=n("1E5z"),v=n("cVYH");e.exports=function(e,t,n){var d=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),g=d?"set":"add",k=o[e],m=k&&k.prototype,b=k,_={},T=function(e){var t=m[e];a(m,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(y&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return y&&!l(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(y&&!l(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(i(e,"function"!=typeof k||!(y||m.forEach&&!f((function(){(new k).entries().next()})))))b=n.getConstructor(t,e,d,g),c.REQUIRED=!0;else if(i(e,!0)){var w=new b,E=w[g](y?{}:-0,1)!=w,x=f((function(){w.has(1)})),S=p((function(e){new k(e)})),O=!y&&f((function(){for(var e=new k,t=5;t--;)e[g](t,t);return!e.has(-0)}));S||((b=t((function(t,n){s(t,b,e);var r=v(new k,t,b);return null!=n&&u(n,r[g],r,d),r}))).prototype=m,m.constructor=b),(x||O)&&(T("delete"),T("has"),d&&T("get")),(O||E)&&T(g),y&&m.clear&&delete m.clear}return _[e]=b,r({global:!0,forced:b!=k},_),h(b,e),y||n.setStrong(b,e,d),b}},bdeN:function(e,t,n){var r=n("I+eb"),o=n("eDxR"),i=n("glrk"),a=n("4WOD"),c=o.has,u=o.toKey,s=function(e,t,n){if(c(e,t,n))return!0;var r=a(t);return null!==r&&s(e,r,n)};r({target:"Reflect",stat:!0},{hasMetadata:function(e,t){var n=arguments.length<3?void 0:u(arguments[2]);return s(e,i(t),n)}})},busE:function(e,t,n){var r=n("2oRo"),o=n("kRJp"),i=n("UTVS"),a=n("zk60"),c=n("iSVu"),u=n("afO8"),s=u.get,l=u.enforce,f=String(String).split("String");(e.exports=function(e,t,n,c){var u=!!c&&!!c.unsafe,s=!!c&&!!c.enumerable,p=!!c&&!!c.noTargetGet;"function"==typeof n&&("string"!=typeof t||i(n,"name")||o(n,"name",t),l(n).source=f.join("string"==typeof t?t:"")),e!==r?(u?!p&&e[t]&&(s=!0):delete e[t],s?e[t]=n:o(e,t,n)):s?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&s(this).source||c(this)}))},cVYH:function(e,t,n){var r=n("hh1v"),o=n("0rvr");e.exports=function(e,t,n){var i,a;return o&&"function"==typeof(i=t.constructor)&&i!==n&&r(a=i.prototype)&&a!==n.prototype&&o(e,a),e}},"dBg+":function(e,t){t.f=Object.getOwnPropertySymbols},"eDl+":function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},eDxR:function(e,t,n){var r=n("Tskq"),o=n("ENF9"),i=n("VpIT")("metadata"),a=i.store||(i.store=new o),c=function(e,t,n){var o=a.get(e);if(!o){if(!n)return;a.set(e,o=new r)}var i=o.get(t);if(!i){if(!n)return;o.set(t,i=new r)}return i};e.exports={store:a,getMap:c,has:function(e,t,n){var r=c(t,n,!1);return void 0!==r&&r.has(e)},get:function(e,t,n){var r=c(t,n,!1);return void 0===r?void 0:r.get(e)},set:function(e,t,n,r){c(n,r,!0).set(e,t)},keys:function(e,t){var n=c(e,t,!1),r=[];return n&&n.forEach((function(e,t){r.push(t)})),r},toKey:function(e){return void 0===e||"symbol"==typeof e?e:String(e)}}},ewvW:function(e,t,n){var r=n("HYAF");e.exports=function(e){return Object(r(e))}},f5p1:function(e,t,n){var r=n("2oRo"),o=n("iSVu"),i=r.WeakMap;e.exports="function"==typeof i&&/native code/.test(o(i))},fHMY:function(e,t,n){var r,o=n("glrk"),i=n("N+g0"),a=n("eDl+"),c=n("0BK2"),u=n("G+Rx"),s=n("zBJ4"),l=n("93I0")("IE_PROTO"),f=function(){},p=function(e){return"<script>"+e+"<\/script>"},h=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(o){}var e,t;h=r?function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):((t=s("iframe")).style.display="none",u.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F);for(var n=a.length;n--;)delete h.prototype[a[n]];return h()};c[l]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f.prototype=o(e),n=new f,f.prototype=null,n[l]=e):n=h(),void 0===t?n:i(n,t)}},fdAy:function(e,t,n){"use strict";var r=n("I+eb"),o=n("ntOU"),i=n("4WOD"),a=n("0rvr"),c=n("1E5z"),u=n("kRJp"),s=n("busE"),l=n("tiKp"),f=n("xDBR"),p=n("P4y1"),h=n("rpNk"),v=h.IteratorPrototype,d=h.BUGGY_SAFARI_ITERATORS,y=l("iterator"),g="keys",k="values",m="entries",b=function(){return this};e.exports=function(e,t,n,l,h,_,T){o(n,t,l);var w,E,x,S=function(e){if(e===h&&P)return P;if(!d&&e in Z)return Z[e];switch(e){case g:case k:case m:return function(){return new n(this,e)}}return function(){return new n(this)}},O=t+" Iterator",D=!1,Z=e.prototype,z=Z[y]||Z["@@iterator"]||h&&Z[h],P=!d&&z||S(h),R="Array"==t&&Z.entries||z;if(R&&(w=i(R.call(new e)),v!==Object.prototype&&w.next&&(f||i(w)===v||(a?a(w,v):"function"!=typeof w[y]&&u(w,y,b)),c(w,O,!0,!0),f&&(p[O]=b))),h==k&&z&&z.name!==k&&(D=!0,P=function(){return z.call(this)}),f&&!T||Z[y]===P||u(Z,y,P),p[t]=P,h)if(E={values:S(k),keys:_?P:S(g),entries:S(m)},T)for(x in E)(d||D||!(x in Z))&&s(Z,x,E[x]);else r({target:t,proto:!0,forced:d||D},E);return E}},"g6v/":function(e,t,n){var r=n("0Dky");e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},glrk:function(e,t,n){var r=n("hh1v");e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},"hN/g":function(e,t,n){"use strict";n.r(t),n("6PKz"),n("m+po"),n("vU8d"),window.global=window},hh1v:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},iSVu:function(e,t,n){var r=n("xs3f"),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return o.call(e)}),e.exports=r.inspectSource},kOOl:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},kRJp:function(e,t,n){var r=n("g6v/"),o=n("m/L8"),i=n("XGwC");e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},lMq5:function(e,t,n){var r=n("0Dky"),o=/#|\.prototype\./,i=function(e,t){var n=c[a(e)];return n==s||n!=u&&("function"==typeof t?r(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},c=i.data={},u=i.NATIVE="N",s=i.POLYFILL="P";e.exports=i},lwsE:function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},"m+po":function(e,t,n){var r,o,i=n("Y3SK"),a=n("lwsE"),c=n("W8MJ");void 0===(o="function"==typeof(r=function(){"use strict";!function(e){var t=e.performance;function n(e){t&&t.mark&&t.mark(e)}function r(e,n){t&&t.measure&&t.measure(e,n)}n("Zone");var o=e.__Zone_symbol_prefix||"__zone_symbol__";function i(e){return o+e}var u=!0===e[i("forceDuplicateZoneCheck")];if(e.Zone){if(u||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}var s=function(){function t(e,n){a(this,t),this._parent=e,this._name=n?n.name||"unnamed":"<root>",this._properties=n&&n.properties||{},this._zoneDelegate=new p(this,this._parent&&this._parent._zoneDelegate,n)}return c(t,[{key:"get",value:function(e){var t=this.getZoneWith(e);if(t)return t._properties[e]}},{key:"getZoneWith",value:function(e){for(var t=this;t;){if(t._properties.hasOwnProperty(e))return t;t=t._parent}return null}},{key:"fork",value:function(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)}},{key:"wrap",value:function(e,t){if("function"!=typeof e)throw new Error("Expecting function got: "+e);var n=this._zoneDelegate.intercept(this,e,t),r=this;return function(){return r.runGuarded(n,this,arguments,t)}}},{key:"run",value:function(e,t,n,r){j={parent:j,zone:this};try{return this._zoneDelegate.invoke(this,e,t,n,r)}finally{j=j.parent}}},{key:"runGuarded",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;j={parent:j,zone:this};try{try{return this._zoneDelegate.invoke(this,e,t,n,r)}catch(o){if(this._zoneDelegate.handleError(this,o))throw o}}finally{j=j.parent}}},{key:"runTask",value:function(e,t,n){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||_).name+"; Execution: "+this.name+")");if(e.state!==T||e.type!==z&&e.type!==Z){var r=e.state!=x;r&&e._transitionTo(x,E),e.runCount++;var o=I;I=e,j={parent:j,zone:this};try{e.type==Z&&e.data&&!e.data.isPeriodic&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,e,t,n)}catch(i){if(this._zoneDelegate.handleError(this,i))throw i}}finally{e.state!==T&&e.state!==O&&(e.type==z||e.data&&e.data.isPeriodic?r&&e._transitionTo(E,x):(e.runCount=0,this._updateTaskCount(e,-1),r&&e._transitionTo(T,x,T))),j=j.parent,I=o}}}},{key:"scheduleTask",value:function(e){if(e.zone&&e.zone!==this)for(var t=this;t;){if(t===e.zone)throw Error("can not reschedule task to ".concat(this.name," which is descendants of the original zone ").concat(e.zone.name));t=t.parent}e._transitionTo(w,T);var n=[];e._zoneDelegates=n,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(r){throw e._transitionTo(O,w,T),this._zoneDelegate.handleError(this,r),r}return e._zoneDelegates===n&&this._updateTaskCount(e,1),e.state==w&&e._transitionTo(E,w),e}},{key:"scheduleMicroTask",value:function(e,t,n,r){return this.scheduleTask(new h(D,e,t,n,r,void 0))}},{key:"scheduleMacroTask",value:function(e,t,n,r,o){return this.scheduleTask(new h(Z,e,t,n,r,o))}},{key:"scheduleEventTask",value:function(e,t,n,r,o){return this.scheduleTask(new h(z,e,t,n,r,o))}},{key:"cancelTask",value:function(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||_).name+"; Execution: "+this.name+")");e._transitionTo(S,E,x);try{this._zoneDelegate.cancelTask(this,e)}catch(t){throw e._transitionTo(O,S),this._zoneDelegate.handleError(this,t),t}return this._updateTaskCount(e,-1),e._transitionTo(T,S),e.runCount=0,e}},{key:"_updateTaskCount",value:function(e,t){var n=e._zoneDelegates;-1==t&&(e._zoneDelegates=null);for(var r=0;r<n.length;r++)n[r]._updateTaskCount(e.type,t)}},{key:"parent",get:function(){return this._parent}},{key:"name",get:function(){return this._name}}],[{key:"assertZonePatched",value:function(){if(e.Promise!==P.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}},{key:"__load_patch",value:function(o,i){if(P.hasOwnProperty(o)){if(u)throw Error("Already loaded patch: "+o)}else if(!e["__Zone_disable_"+o]){var a="Zone:"+o;n(a),P[o]=i(e,t,R),r(a,a)}}},{key:"root",get:function(){for(var e=t.current;e.parent;)e=e.parent;return e}},{key:"current",get:function(){return j.zone}},{key:"currentTask",get:function(){return I}}]),t}();s.__symbol__=i;var l,f={name:"",onHasTask:function(e,t,n,r){return e.hasTask(n,r)},onScheduleTask:function(e,t,n,r){return e.scheduleTask(n,r)},onInvokeTask:function(e,t,n,r,o,i){return e.invokeTask(n,r,o,i)},onCancelTask:function(e,t,n,r){return e.cancelTask(n,r)}},p=function(){function e(t,n,r){a(this,e),this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=t,this._parentDelegate=n,this._forkZS=r&&(r&&r.onFork?r:n._forkZS),this._forkDlgt=r&&(r.onFork?n:n._forkDlgt),this._forkCurrZone=r&&(r.onFork?this.zone:n._forkCurrZone),this._interceptZS=r&&(r.onIntercept?r:n._interceptZS),this._interceptDlgt=r&&(r.onIntercept?n:n._interceptDlgt),this._interceptCurrZone=r&&(r.onIntercept?this.zone:n._interceptCurrZone),this._invokeZS=r&&(r.onInvoke?r:n._invokeZS),this._invokeDlgt=r&&(r.onInvoke?n:n._invokeDlgt),this._invokeCurrZone=r&&(r.onInvoke?this.zone:n._invokeCurrZone),this._handleErrorZS=r&&(r.onHandleError?r:n._handleErrorZS),this._handleErrorDlgt=r&&(r.onHandleError?n:n._handleErrorDlgt),this._handleErrorCurrZone=r&&(r.onHandleError?this.zone:n._handleErrorCurrZone),this._scheduleTaskZS=r&&(r.onScheduleTask?r:n._scheduleTaskZS),this._scheduleTaskDlgt=r&&(r.onScheduleTask?n:n._scheduleTaskDlgt),this._scheduleTaskCurrZone=r&&(r.onScheduleTask?this.zone:n._scheduleTaskCurrZone),this._invokeTaskZS=r&&(r.onInvokeTask?r:n._invokeTaskZS),this._invokeTaskDlgt=r&&(r.onInvokeTask?n:n._invokeTaskDlgt),this._invokeTaskCurrZone=r&&(r.onInvokeTask?this.zone:n._invokeTaskCurrZone),this._cancelTaskZS=r&&(r.onCancelTask?r:n._cancelTaskZS),this._cancelTaskDlgt=r&&(r.onCancelTask?n:n._cancelTaskDlgt),this._cancelTaskCurrZone=r&&(r.onCancelTask?this.zone:n._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;var o=r&&r.onHasTask;(o||n&&n._hasTaskZS)&&(this._hasTaskZS=o?r:f,this._hasTaskDlgt=n,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=t,r.onScheduleTask||(this._scheduleTaskZS=f,this._scheduleTaskDlgt=n,this._scheduleTaskCurrZone=this.zone),r.onInvokeTask||(this._invokeTaskZS=f,this._invokeTaskDlgt=n,this._invokeTaskCurrZone=this.zone),r.onCancelTask||(this._cancelTaskZS=f,this._cancelTaskDlgt=n,this._cancelTaskCurrZone=this.zone))}return c(e,[{key:"fork",value:function(e,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,e,t):new s(e,t)}},{key:"intercept",value:function(e,t,n){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,e,t,n):t}},{key:"invoke",value:function(e,t,n,r,o){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,e,t,n,r,o):t.apply(n,r)}},{key:"handleError",value:function(e,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,e,t)}},{key:"scheduleTask",value:function(e,t){var n=t;if(this._scheduleTaskZS)this._hasTaskZS&&n._zoneDelegates.push(this._hasTaskDlgtOwner),(n=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,e,t))||(n=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=D)throw new Error("Task is missing scheduleFn.");m(t)}return n}},{key:"invokeTask",value:function(e,t,n,r){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,e,t,n,r):t.callback.apply(n,r)}},{key:"cancelTask",value:function(e,t){var n;if(this._cancelTaskZS)n=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,e,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");n=t.cancelFn(t)}return n}},{key:"hasTask",value:function(e,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,e,t)}catch(n){this.handleError(e,n)}}},{key:"_updateTaskCount",value:function(e,t){var n=this._taskCounts,r=n[e],o=n[e]=r+t;if(o<0)throw new Error("More tasks executed then were scheduled.");0!=r&&0!=o||this.hasTask(this.zone,{microTask:n.microTask>0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:e})}}]),e}(),h=function(){function t(n,r,o,i,c,u){if(a(this,t),this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=n,this.source=r,this.data=i,this.scheduleFn=c,this.cancelFn=u,!o)throw new Error("callback is not defined");this.callback=o;var s=this;this.invoke=n===z&&i&&i.useG?t.invokeTask:function(){return t.invokeTask.call(e,s,this,arguments)}}return c(t,[{key:"cancelScheduleRequest",value:function(){this._transitionTo(T,w)}},{key:"_transitionTo",value:function(e,t,n){if(this._state!==t&&this._state!==n)throw new Error("".concat(this.type," '").concat(this.source,"': can not transition to '").concat(e,"', expecting state '").concat(t,"'").concat(n?" or '"+n+"'":"",", was '").concat(this._state,"'."));this._state=e,e==T&&(this._zoneDelegates=null)}},{key:"toString",value:function(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)}},{key:"toJSON",value:function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}},{key:"zone",get:function(){return this._zone}},{key:"state",get:function(){return this._state}}],[{key:"invokeTask",value:function(e,t,n){e||(e=this),C++;try{return e.runCount++,e.zone.runTask(e,t,n)}finally{1==C&&b(),C--}}}]),t}(),v=i("setTimeout"),d=i("Promise"),y=i("then"),g=[],k=!1;function m(t){if(0===C&&0===g.length)if(l||e[d]&&(l=e[d].resolve(0)),l){var n=l[y];n||(n=l.then),n.call(l,b)}else e[v](b,0);t&&g.push(t)}function b(){if(!k){for(k=!0;g.length;){var e=g;g=[];for(var t=0;t<e.length;t++){var n=e[t];try{n.zone.runTask(n,null,null)}catch(r){R.onUnhandledError(r)}}}R.microtaskDrainDone(),k=!1}}var _={name:"NO ZONE"},T="notScheduled",w="scheduling",E="scheduled",x="running",S="canceling",O="unknown",D="microTask",Z="macroTask",z="eventTask",P={},R={symbol:i,currentZoneFrame:function(){return j},onUnhandledError:M,microtaskDrainDone:M,scheduleMicroTask:m,showUncaughtError:function(){return!s[i("ignoreConsoleErrorUncaughtError")]},patchEventTarget:function(){return[]},patchOnProperties:M,patchMethod:function(){return M},bindArguments:function(){return[]},patchThen:function(){return M},patchMacroTask:function(){return M},patchEventPrototype:function(){return M},isIEOrEdge:function(){return!1},getGlobalObjects:function(){},ObjectDefineProperty:function(){return M},ObjectGetOwnPropertyDescriptor:function(){},ObjectCreate:function(){},ArraySlice:function(){return[]},patchClass:function(){return M},wrapWithCurrentZone:function(){return M},filterProperties:function(){return[]},attachOriginToPatched:function(){return M},_redefineProperty:function(){return M},patchCallbacks:function(){return M}},j={parent:null,zone:new s(null,null)},I=null,C=0;function M(){}r("Zone","Zone"),e.Zone=s}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global);var e=Object.getOwnPropertyDescriptor,t=Object.defineProperty,n=Object.getPrototypeOf,r=Object.create,o=Array.prototype.slice,u="addEventListener",s="removeEventListener",l=Zone.__symbol__(u),f=Zone.__symbol__(s),p="true",h="false",v=Zone.__symbol__("");function d(e,t){return Zone.current.wrap(e,t)}function y(e,t,n,r,o){return Zone.current.scheduleMacroTask(e,t,n,r,o)}var g=Zone.__symbol__,k="undefined"!=typeof window,m=k?window:void 0,b=k&&m||"object"==typeof self&&self||global,_=[null];function T(e,t){for(var n=e.length-1;n>=0;n--)"function"==typeof e[n]&&(e[n]=d(e[n],t+"_"+n));return e}function w(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}var E="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,x=!("nw"in b)&&void 0!==b.process&&"[object process]"==={}.toString.call(b.process),S=!x&&!E&&!(!k||!m.HTMLElement),O=void 0!==b.process&&"[object process]"==={}.toString.call(b.process)&&!E&&!(!k||!m.HTMLElement),D={},Z=function(e){if(e=e||b.event){var t=D[e.type];t||(t=D[e.type]=g("ON_PROPERTY"+e.type));var n,r=this||e.target||b,o=r[t];return S&&r===m&&"error"===e.type?!0===(n=o&&o.call(this,e.message,e.filename,e.lineno,e.colno,e.error))&&e.preventDefault():null==(n=o&&o.apply(this,arguments))||n||e.preventDefault(),n}};function z(n,r,o){var i=e(n,r);if(!i&&o&&e(o,r)&&(i={enumerable:!0,configurable:!0}),i&&i.configurable){var a=g("on"+r+"patched");if(!n.hasOwnProperty(a)||!n[a]){delete i.writable,delete i.value;var c=i.get,u=i.set,s=r.substr(2),l=D[s];l||(l=D[s]=g("ON_PROPERTY"+s)),i.set=function(e){var t=this;t||n!==b||(t=b),t&&(t[l]&&t.removeEventListener(s,Z),u&&u.apply(t,_),"function"==typeof e?(t[l]=e,t.addEventListener(s,Z,!1)):t[l]=null)},i.get=function(){var e=this;if(e||n!==b||(e=b),!e)return null;var t=e[l];if(t)return t;if(c){var o=c&&c.call(this);if(o)return i.set.call(this,o),"function"==typeof e.removeAttribute&&e.removeAttribute(r),o}return null},t(n,r,i),n[a]=!0}}}function P(e,t,n){if(t)for(var r=0;r<t.length;r++)z(e,"on"+t[r],n);else{var o=[];for(var i in e)"on"==i.substr(0,2)&&o.push(i);for(var a=0;a<o.length;a++)z(e,o[a],n)}}var R=g("originalInstance");function j(e){var n=b[e];if(n){b[g(e)]=n,b[e]=function(){var t=T(arguments,e);switch(t.length){case 0:this[R]=new n;break;case 1:this[R]=new n(t[0]);break;case 2:this[R]=new n(t[0],t[1]);break;case 3:this[R]=new n(t[0],t[1],t[2]);break;case 4:this[R]=new n(t[0],t[1],t[2],t[3]);break;default:throw new Error("Arg list too long.")}},M(b[e],n);var r,o=new n((function(){}));for(r in o)"XMLHttpRequest"===e&&"responseBlob"===r||function(n){"function"==typeof o[n]?b[e].prototype[n]=function(){return this[R][n].apply(this[R],arguments)}:t(b[e].prototype,n,{set:function(t){"function"==typeof t?(this[R][n]=d(t,e+"."+n),M(this[R][n],t)):this[R][n]=t},get:function(){return this[R][n]}})}(r);for(r in n)"prototype"!==r&&n.hasOwnProperty(r)&&(b[e][r]=n[r])}}function I(t,r,o){for(var i=t;i&&!i.hasOwnProperty(r);)i=n(i);!i&&t[r]&&(i=t);var a=g(r),c=null;if(i&&!(c=i[a])&&(c=i[a]=i[r],w(i&&e(i,r)))){var u=o(c,a,r);i[r]=function(){return u(this,arguments)},M(i[r],c)}return c}function C(e,t,n){var r=null;function o(e){var t=e.data;return t.args[t.cbIdx]=function(){e.invoke.apply(this,arguments)},r.apply(t.target,t.args),e}r=I(e,t,(function(e){return function(t,r){var i=n(t,r);return i.cbIdx>=0&&"function"==typeof r[i.cbIdx]?y(i.name,r[i.cbIdx],i,o):e.apply(t,r)}}))}function M(e,t){e[g("OriginalDelegate")]=t}var A=!1,N=!1;function L(){if(A)return N;A=!0;try{var e=m.navigator.userAgent;-1===e.indexOf("MSIE ")&&-1===e.indexOf("Trident/")&&-1===e.indexOf("Edge/")||(N=!0)}catch(t){}return N}Zone.__load_patch("ZoneAwarePromise",(function(e,t,n){var r=Object.getOwnPropertyDescriptor,o=Object.defineProperty,u=n.symbol,s=[],l=!0===e[u("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],f=u("Promise"),p=u("then");n.onUnhandledError=function(e){if(n.showUncaughtError()){var t=e&&e.rejection;t?console.error("Unhandled Promise rejection:",t instanceof Error?t.message:t,"; Zone:",e.zone.name,"; Task:",e.task&&e.task.source,"; Value:",t,t instanceof Error?t.stack:void 0):console.error(e)}},n.microtaskDrainDone=function(){for(var e=function(){var e=s.shift();try{e.zone.runGuarded((function(){throw e}))}catch(r){!function(e){n.onUnhandledError(e);try{var r=t[h];"function"==typeof r&&r.call(this,e)}catch(o){}}(r)}};s.length;)e()};var h=u("unhandledPromiseRejectionHandler");function v(e){return e&&e.then}function d(e){return e}function y(e){return R.reject(e)}var g=u("state"),k=u("value"),m=u("finally"),b=u("parentPromiseValue"),_=u("parentPromiseState"),T=null,w=!0,E=!1;function x(e,t){return function(n){try{O(e,t,n)}catch(r){O(e,!1,r)}}}var S=u("currentTaskTrace");function O(e,r,i){var a,c,u=(a=!1,function(e){return function(){a||(a=!0,e.apply(null,arguments))}});if(e===i)throw new TypeError("Promise resolved with itself");if(e[g]===T){var f=null;try{"object"!=typeof i&&"function"!=typeof i||(f=i&&i.then)}catch(y){return u((function(){O(e,!1,y)}))(),e}if(r!==E&&i instanceof R&&i.hasOwnProperty(g)&&i.hasOwnProperty(k)&&i[g]!==T)Z(i),O(e,i[g],i[k]);else if(r!==E&&"function"==typeof f)try{f.call(i,u(x(e,r)),u(x(e,!1)))}catch(y){u((function(){O(e,!1,y)}))()}else{e[g]=r;var p=e[k];if(e[k]=i,e[m]===m&&r===w&&(e[g]=e[_],e[k]=e[b]),r===E&&i instanceof Error){var h=t.currentTask&&t.currentTask.data&&t.currentTask.data.__creationTrace__;h&&o(i,S,{configurable:!0,enumerable:!1,writable:!0,value:h})}for(var v=0;v<p.length;)z(e,p[v++],p[v++],p[v++],p[v++]);if(0==p.length&&r==E){e[g]=0;var d=i;if(!l)try{throw new Error("Uncaught (in promise): "+((c=i)&&c.toString===Object.prototype.toString?(c.constructor&&c.constructor.name||"")+": "+JSON.stringify(c):c?c.toString():Object.prototype.toString.call(c))+(i&&i.stack?"\n"+i.stack:""))}catch(y){d=y}d.rejection=i,d.promise=e,d.zone=t.current,d.task=t.currentTask,s.push(d),n.scheduleMicroTask()}}}return e}var D=u("rejectionHandledHandler");function Z(e){if(0===e[g]){try{var n=t[D];n&&"function"==typeof n&&n.call(this,{rejection:e[k],promise:e})}catch(o){}e[g]=E;for(var r=0;r<s.length;r++)e===s[r].promise&&s.splice(r,1)}}function z(e,t,n,r,o){Z(e);var i=e[g],a=i?"function"==typeof r?r:d:"function"==typeof o?o:y;t.scheduleMicroTask("Promise.then",(function(){try{var r=e[k],o=!!n&&m===n[m];o&&(n[b]=r,n[_]=i);var c=t.run(a,void 0,o&&a!==y&&a!==d?[]:[r]);O(n,!0,c)}catch(u){O(n,!1,u)}}),n)}var P=function(){},R=function(){function e(t){a(this,e);var n=this;if(!(n instanceof e))throw new Error("Must be an instanceof Promise.");n[g]=T,n[k]=[];try{t&&t(x(n,w),x(n,E))}catch(r){O(n,!1,r)}}return c(e,null,[{key:"toString",value:function(){return"function ZoneAwarePromise() { [native code] }"}},{key:"resolve",value:function(e){return O(new this(null),w,e)}},{key:"reject",value:function(e){return O(new this(null),E,e)}},{key:"race",value:function(e){var t,n,r=new this((function(e,r){t=e,n=r}));function o(e){t(e)}function a(e){n(e)}var c,u=i(e);try{for(u.s();!(c=u.n()).done;){var s=c.value;v(s)||(s=this.resolve(s)),s.then(o,a)}}catch(l){u.e(l)}finally{u.f()}return r}},{key:"all",value:function(t){return e.allWithCallback(t)}},{key:"allSettled",value:function(t){return(this&&this.prototype instanceof e?this:e).allWithCallback(t,{thenCallback:function(e){return{status:"fulfilled",value:e}},errorCallback:function(e){return{status:"rejected",reason:e}}})}},{key:"allWithCallback",value:function(e,t){var n,r,o,a=this,c=new this((function(e,t){n=e,r=t})),u=2,s=0,l=[],f=i(e);try{var p=function(){var e=o.value;v(e)||(e=a.resolve(e));var i=s;try{e.then((function(e){l[i]=t?t.thenCallback(e):e,0==--u&&n(l)}),(function(e){t?(l[i]=t.errorCallback(e),0==--u&&n(l)):r(e)}))}catch(c){r(c)}u++,s++};for(f.s();!(o=f.n()).done;)p()}catch(h){f.e(h)}finally{f.f()}return 0==(u-=2)&&n(l),c}}]),c(e,[{key:"then",value:function(n,r){var o=this.constructor[Symbol.species];o&&"function"==typeof o||(o=this.constructor||e);var i=new o(P),a=t.current;return this[g]==T?this[k].push(a,i,n,r):z(this,a,i,n,r),i}},{key:"catch",value:function(e){return this.then(null,e)}},{key:"finally",value:function(n){var r=this.constructor[Symbol.species];r&&"function"==typeof r||(r=e);var o=new r(P);o[m]=m;var i=t.current;return this[g]==T?this[k].push(i,o,n,n):z(this,i,o,n,n),o}},{key:Symbol.toStringTag,get:function(){return"Promise"}},{key:Symbol.species,get:function(){return e}}]),e}();R.resolve=R.resolve,R.reject=R.reject,R.race=R.race,R.all=R.all;var j=e[f]=e.Promise;e.Promise=R;var C=u("thenPatched");function M(e){var t=e.prototype,n=r(t,"then");if(!n||!1!==n.writable&&n.configurable){var o=t.then;t[p]=o,e.prototype.then=function(e,t){var n=this;return new R((function(e,t){o.call(n,e,t)})).then(e,t)},e[C]=!0}}return n.patchThen=M,j&&(M(j),I(e,"fetch",(function(e){return t=e,function(e,n){var r=t.apply(e,n);if(r instanceof R)return r;var o=r.constructor;return o[C]||M(o),r};var t}))),Promise[t.__symbol__("uncaughtPromiseErrors")]=s,R})),Zone.__load_patch("toString",(function(e){var t=Function.prototype.toString,n=g("OriginalDelegate"),r=g("Promise"),o=g("Error"),i=function(){if("function"==typeof this){var i=this[n];if(i)return"function"==typeof i?t.call(i):Object.prototype.toString.call(i);if(this===Promise){var a=e[r];if(a)return t.call(a)}if(this===Error){var c=e[o];if(c)return t.call(c)}}return t.call(this)};i[n]=t,Function.prototype.toString=i;var a=Object.prototype.toString;Object.prototype.toString=function(){return this instanceof Promise?"[object Promise]":a.call(this)}}));var F=!1;if("undefined"!=typeof window)try{var H=Object.defineProperty({},"passive",{get:function(){F=!0}});window.addEventListener("test",H,H),window.removeEventListener("test",H,H)}catch(ve){F=!1}var W={useG:!0},G={},U={},K=new RegExp("^"+v+"(\\w+)(true|false)$"),V=g("propagationStopped");function B(e,t){var n=(t?t(e):e)+h,r=(t?t(e):e)+p,o=v+n,i=v+r;G[e]={},G[e].false=o,G[e].true=i}function Y(e,t,r){var o=r&&r.add||u,i=r&&r.rm||s,a=r&&r.listeners||"eventListeners",c=r&&r.rmAll||"removeAllListeners",l=g(o),f="."+o+":",d=function(e,t,n){if(!e.isRemoved){var r=e.callback;"object"==typeof r&&r.handleEvent&&(e.callback=function(e){return r.handleEvent(e)},e.originalDelegate=r),e.invoke(e,t,[n]);var o=e.options;o&&"object"==typeof o&&o.once&&t[i].call(t,n.type,e.originalDelegate?e.originalDelegate:e.callback,o)}},y=function(t){if(t=t||e.event){var n=this||t.target||e,r=n[G[t.type].false];if(r)if(1===r.length)d(r[0],n,t);else for(var o=r.slice(),i=0;i<o.length&&(!t||!0!==t[V]);i++)d(o[i],n,t)}},k=function(t){if(t=t||e.event){var n=this||t.target||e,r=n[G[t.type].true];if(r)if(1===r.length)d(r[0],n,t);else for(var o=r.slice(),i=0;i<o.length&&(!t||!0!==t[V]);i++)d(o[i],n,t)}};function m(t,r){if(!t)return!1;var u=!0;r&&void 0!==r.useG&&(u=r.useG);var s=r&&r.vh,d=!0;r&&void 0!==r.chkDup&&(d=r.chkDup);var m=!1;r&&void 0!==r.rt&&(m=r.rt);for(var b=t;b&&!b.hasOwnProperty(o);)b=n(b);if(!b&&t[o]&&(b=t),!b)return!1;if(b[l])return!1;var _,T=r&&r.eventNameToString,w={},E=b[l]=b[o],S=b[g(i)]=b[i],O=b[g(a)]=b[a],D=b[g(c)]=b[c];function Z(e,t){return!F&&"object"==typeof e&&e?!!e.capture:F&&t?"boolean"==typeof e?{capture:e,passive:!0}:e?"object"==typeof e&&!1!==e.passive?Object.assign(Object.assign({},e),{passive:!0}):e:{passive:!0}:e}r&&r.prepend&&(_=b[g(r.prepend)]=b[r.prepend]);var z=u?function(e){if(!w.isExisting)return E.call(w.target,w.eventName,w.capture?k:y,w.options)}:function(e){return E.call(w.target,w.eventName,e.invoke,w.options)},P=u?function(e){if(!e.isRemoved){var t,n=G[e.eventName];n&&(t=n[e.capture?p:h]);var r=t&&e.target[t];if(r)for(var o=0;o<r.length;o++)if(r[o]===e){r.splice(o,1),e.isRemoved=!0,0===r.length&&(e.allRemoved=!0,e.target[t]=null);break}}if(e.allRemoved)return S.call(e.target,e.eventName,e.capture?k:y,e.options)}:function(e){return S.call(e.target,e.eventName,e.invoke,e.options)},R=r&&r.diff?r.diff:function(e,t){var n=typeof t;return"function"===n&&e.callback===t||"object"===n&&e.originalDelegate===t},j=Zone[g("BLACK_LISTED_EVENTS")],I=e[g("PASSIVE_EVENTS")],C=function(t,n,o,i){var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],c=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return function(){var l=this||e,f=arguments[0];r&&r.transferEventName&&(f=r.transferEventName(f));var v=arguments[1];if(!v)return t.apply(this,arguments);if(x&&"uncaughtException"===f)return t.apply(this,arguments);var y=!1;if("function"!=typeof v){if(!v.handleEvent)return t.apply(this,arguments);y=!0}if(!s||s(t,v,l,arguments)){var g=F&&!!I&&-1!==I.indexOf(f),k=Z(arguments[2],g);if(j)for(var m=0;m<j.length;m++)if(f===j[m])return g?t.call(l,f,v,k):t.apply(this,arguments);var b=!!k&&("boolean"==typeof k||k.capture),_=!(!k||"object"!=typeof k)&&k.once,E=Zone.current,S=G[f];S||(B(f,T),S=G[f]);var O,D=S[b?p:h],z=l[D],P=!1;if(z){if(P=!0,d)for(var C=0;C<z.length;C++)if(R(z[C],v))return}else z=l[D]=[];var M=l.constructor.name,A=U[M];A&&(O=A[f]),O||(O=M+n+(T?T(f):f)),w.options=k,_&&(w.options.once=!1),w.target=l,w.capture=b,w.eventName=f,w.isExisting=P;var N=u?W:void 0;N&&(N.taskData=w);var L=E.scheduleEventTask(O,v,N,o,i);return w.target=null,N&&(N.taskData=null),_&&(k.once=!0),(F||"boolean"!=typeof L.options)&&(L.options=k),L.target=l,L.capture=b,L.eventName=f,y&&(L.originalDelegate=v),c?z.unshift(L):z.push(L),a?l:void 0}}};return b[o]=C(E,f,z,P,m),_&&(b.prependListener=C(_,".prependListener:",(function(e){return _.call(w.target,w.eventName,e.invoke,w.options)}),P,m,!0)),b[i]=function(){var t=this||e,n=arguments[0];r&&r.transferEventName&&(n=r.transferEventName(n));var o=arguments[2],i=!!o&&("boolean"==typeof o||o.capture),a=arguments[1];if(!a)return S.apply(this,arguments);if(!s||s(S,a,t,arguments)){var c,u=G[n];u&&(c=u[i?p:h]);var l=c&&t[c];if(l)for(var f=0;f<l.length;f++){var d=l[f];if(R(d,a))return l.splice(f,1),d.isRemoved=!0,0===l.length&&(d.allRemoved=!0,t[c]=null,"string"==typeof n&&(t[v+"ON_PROPERTY"+n]=null)),d.zone.cancelTask(d),m?t:void 0}return S.apply(this,arguments)}},b[a]=function(){var t=this||e,n=arguments[0];r&&r.transferEventName&&(n=r.transferEventName(n));for(var o=[],i=q(t,T?T(n):n),a=0;a<i.length;a++){var c=i[a];o.push(c.originalDelegate?c.originalDelegate:c.callback)}return o},b[c]=function(){var t=this||e,n=arguments[0];if(n){r&&r.transferEventName&&(n=r.transferEventName(n));var o=G[n];if(o){var a=t[o.false],u=t[o.true];if(a)for(var s=a.slice(),l=0;l<s.length;l++){var f=s[l];this[i].call(this,n,f.originalDelegate?f.originalDelegate:f.callback,f.options)}if(u)for(var p=u.slice(),h=0;h<p.length;h++){var v=p[h];this[i].call(this,n,v.originalDelegate?v.originalDelegate:v.callback,v.options)}}}else{for(var d=Object.keys(t),y=0;y<d.length;y++){var g=K.exec(d[y]),k=g&&g[1];k&&"removeListener"!==k&&this[c].call(this,k)}this[c].call(this,"removeListener")}if(m)return this},M(b[o],E),M(b[i],S),D&&M(b[c],D),O&&M(b[a],O),!0}for(var b=[],_=0;_<t.length;_++)b[_]=m(t[_],r);return b}function q(e,t){if(!t){var n=[];for(var r in e){var o=K.exec(r),i=o&&o[1];if(i&&(!t||i===t)){var a=e[r];if(a)for(var c=0;c<a.length;c++)n.push(a[c])}}return n}var u=G[t];u||(B(t),u=G[t]);var s=e[u.false],l=e[u.true];return s?l?s.concat(l):s.slice():l?l.slice():[]}function J(e,t){var n=e.Event;n&&n.prototype&&t.patchMethod(n.prototype,"stopImmediatePropagation",(function(e){return function(t,n){t[V]=!0,e&&e.apply(t,n)}}))}function X(e,t,n,r,o){var i=Zone.__symbol__(r);if(!t[i]){var a=t[i]=t[r];t[r]=function(i,c,u){return c&&c.prototype&&o.forEach((function(t){var o="".concat(n,".").concat(r,"::")+t,i=c.prototype;if(i.hasOwnProperty(t)){var a=e.ObjectGetOwnPropertyDescriptor(i,t);a&&a.value?(a.value=e.wrapWithCurrentZone(a.value,o),e._redefineProperty(c.prototype,t,a)):i[t]&&(i[t]=e.wrapWithCurrentZone(i[t],o))}else i[t]&&(i[t]=e.wrapWithCurrentZone(i[t],o))})),a.call(t,i,c,u)},e.attachOriginToPatched(t[r],a)}}var Q=["absolutedeviceorientation","afterinput","afterprint","appinstalled","beforeinstallprompt","beforeprint","beforeunload","devicelight","devicemotion","deviceorientation","deviceorientationabsolute","deviceproximity","hashchange","languagechange","message","mozbeforepaint","offline","online","paint","pageshow","pagehide","popstate","rejectionhandled","storage","unhandledrejection","unload","userproximity","vrdisplayconnected","vrdisplaydisconnected","vrdisplaypresentchange"],$=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],ee=["load"],te=["blur","error","focus","load","resize","scroll","messageerror"],ne=["bounce","finish","start"],re=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],oe=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],ie=["close","error","open","message"],ae=["error","message"],ce=["abort","animationcancel","animationend","animationiteration","auxclick","beforeinput","blur","cancel","canplay","canplaythrough","change","compositionstart","compositionupdate","compositionend","cuechange","click","close","contextmenu","curechange","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","drop","durationchange","emptied","ended","error","focus","focusin","focusout","gotpointercapture","input","invalid","keydown","keypress","keyup","load","loadstart","loadeddata","loadedmetadata","lostpointercapture","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","orientationchange","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","mozpointerlockchange","webkitpointerlockerchange","pointerlockerror","mozpointerlockerror","webkitpointerlockerror","pointermove","pointout","pointerover","pointerup","progress","ratechange","reset","resize","scroll","seeked","seeking","select","selectionchange","selectstart","show","sort","stalled","submit","suspend","timeupdate","volumechange","touchcancel","touchmove","touchstart","touchend","transitioncancel","transitionend","waiting","wheel"].concat(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"],["autocomplete","autocompleteerror"],["toggle"],["afterscriptexecute","beforescriptexecute","DOMContentLoaded","freeze","fullscreenchange","mozfullscreenchange","webkitfullscreenchange","msfullscreenchange","fullscreenerror","mozfullscreenerror","webkitfullscreenerror","msfullscreenerror","readystatechange","visibilitychange","resume"],Q,["beforecopy","beforecut","beforepaste","copy","cut","paste","dragstart","loadend","animationstart","search","transitionrun","transitionstart","webkitanimationend","webkitanimationiteration","webkitanimationstart","webkittransitionend"],["activate","afterupdate","ariarequest","beforeactivate","beforedeactivate","beforeeditfocus","beforeupdate","cellchange","controlselect","dataavailable","datasetchanged","datasetcomplete","errorupdate","filterchange","layoutcomplete","losecapture","move","moveend","movestart","propertychange","resizeend","resizestart","rowenter","rowexit","rowsdelete","rowsinserted","command","compassneedscalibration","deactivate","help","mscontentzoom","msmanipulationstatechanged","msgesturechange","msgesturedoubletap","msgestureend","msgesturehold","msgesturestart","msgesturetap","msgotpointercapture","msinertiastart","mslostpointercapture","mspointercancel","mspointerdown","mspointerenter","mspointerhover","mspointerleave","mspointermove","mspointerout","mspointerover","mspointerup","pointerout","mssitemodejumplistitemremoved","msthumbnailclick","stop","storagecommit"]);function ue(e,t,n){if(!n||0===n.length)return t;var r=n.filter((function(t){return t.target===e}));if(!r||0===r.length)return t;var o=r[0].ignoreProperties;return t.filter((function(e){return-1===o.indexOf(e)}))}function se(e,t,n,r){e&&P(e,ue(e,t,n),r)}function le(e,t){if((!x||O)&&!Zone[e.symbol("patchEvents")]){var r="undefined"!=typeof WebSocket,o=t.__Zone_ignore_on_properties;if(S){var i=window,a=function(){try{var e=m.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch(t){}return!1}()?[{target:i,ignoreProperties:["error"]}]:[];se(i,ce.concat(["messageerror"]),o?o.concat(a):o,n(i)),se(Document.prototype,ce,o),void 0!==i.SVGElement&&se(i.SVGElement.prototype,ce,o),se(Element.prototype,ce,o),se(HTMLElement.prototype,ce,o),se(HTMLMediaElement.prototype,$,o),se(HTMLFrameSetElement.prototype,Q.concat(te),o),se(HTMLBodyElement.prototype,Q.concat(te),o),se(HTMLFrameElement.prototype,ee,o),se(HTMLIFrameElement.prototype,ee,o);var c=i.HTMLMarqueeElement;c&&se(c.prototype,ne,o);var u=i.Worker;u&&se(u.prototype,ae,o)}var s=t.XMLHttpRequest;s&&se(s.prototype,re,o);var l=t.XMLHttpRequestEventTarget;l&&se(l&&l.prototype,re,o),"undefined"!=typeof IDBIndex&&(se(IDBIndex.prototype,oe,o),se(IDBRequest.prototype,oe,o),se(IDBOpenDBRequest.prototype,oe,o),se(IDBDatabase.prototype,oe,o),se(IDBTransaction.prototype,oe,o),se(IDBCursor.prototype,oe,o)),r&&se(WebSocket.prototype,ie,o)}}Zone.__load_patch("util",(function(n,i,a){a.patchOnProperties=P,a.patchMethod=I,a.bindArguments=T,a.patchMacroTask=C;var c=i.__symbol__("BLACK_LISTED_EVENTS"),l=i.__symbol__("UNPATCHED_EVENTS");n[l]&&(n[c]=n[l]),n[c]&&(i[c]=i[l]=n[c]),a.patchEventPrototype=J,a.patchEventTarget=Y,a.isIEOrEdge=L,a.ObjectDefineProperty=t,a.ObjectGetOwnPropertyDescriptor=e,a.ObjectCreate=r,a.ArraySlice=o,a.patchClass=j,a.wrapWithCurrentZone=d,a.filterProperties=ue,a.attachOriginToPatched=M,a._redefineProperty=Object.defineProperty,a.patchCallbacks=X,a.getGlobalObjects=function(){return{globalSources:U,zoneSymbolEventNames:G,eventNames:ce,isBrowser:S,isMix:O,isNode:x,TRUE_STR:p,FALSE_STR:h,ZONE_SYMBOL_PREFIX:v,ADD_EVENT_LISTENER_STR:u,REMOVE_EVENT_LISTENER_STR:s}}}));var fe=g("zoneTask");function pe(e,t,n,r){var o=null,i=null;n+=r;var a={};function c(t){var n=t.data;return n.args[0]=function(){try{t.invoke.apply(this,arguments)}finally{t.data&&t.data.isPeriodic||("number"==typeof n.handleId?delete a[n.handleId]:n.handleId&&(n.handleId[fe]=null))}},n.handleId=o.apply(e,n.args),t}function u(t){return i.call(e,t.data.handleId)}o=I(e,t+=r,(function(n){return function(o,i){if("function"==typeof i[0]){var s=y(t,i[0],{isPeriodic:"Interval"===r,delay:"Timeout"===r||"Interval"===r?i[1]||0:void 0,args:i},c,u);if(!s)return s;var l=s.data.handleId;return"number"==typeof l?a[l]=s:l&&(l[fe]=s),l&&l.ref&&l.unref&&"function"==typeof l.ref&&"function"==typeof l.unref&&(s.ref=l.ref.bind(l),s.unref=l.unref.bind(l)),"number"==typeof l||l?l:s}return n.apply(e,i)}})),i=I(e,n,(function(t){return function(n,r){var o,i=r[0];"number"==typeof i?o=a[i]:(o=i&&i[fe])||(o=i),o&&"string"==typeof o.type?"notScheduled"!==o.state&&(o.cancelFn&&o.data.isPeriodic||0===o.runCount)&&("number"==typeof i?delete a[i]:i&&(i[fe]=null),o.zone.cancelTask(o)):t.apply(e,r)}}))}function he(e,t){if(!Zone[t.symbol("patchEventTarget")]){for(var n=t.getGlobalObjects(),r=n.eventNames,o=n.zoneSymbolEventNames,i=n.TRUE_STR,a=n.FALSE_STR,c=n.ZONE_SYMBOL_PREFIX,u=0;u<r.length;u++){var s=r[u],l=c+(s+a),f=c+(s+i);o[s]={},o[s][a]=l,o[s][i]=f}var p=e.EventTarget;if(p&&p.prototype)return t.patchEventTarget(e,[p&&p.prototype]),!0}}Zone.__load_patch("legacy",(function(e){var t=e[Zone.__symbol__("legacyPatch")];t&&t()})),Zone.__load_patch("timers",(function(e){var t="set",n="clear";pe(e,t,n,"Timeout"),pe(e,t,n,"Interval"),pe(e,t,n,"Immediate")})),Zone.__load_patch("requestAnimationFrame",(function(e){pe(e,"request","cancel","AnimationFrame"),pe(e,"mozRequest","mozCancel","AnimationFrame"),pe(e,"webkitRequest","webkitCancel","AnimationFrame")})),Zone.__load_patch("blocking",(function(e,t){for(var n=["alert","prompt","confirm"],r=0;r<n.length;r++)I(e,n[r],(function(n,r,o){return function(r,i){return t.current.run(n,e,i,o)}}))})),Zone.__load_patch("EventTarget",(function(e,t,n){(function(e,t){t.patchEventPrototype(e,t)})(e,n),he(e,n);var r=e.XMLHttpRequestEventTarget;r&&r.prototype&&n.patchEventTarget(e,[r.prototype])})),Zone.__load_patch("MutationObserver",(function(e,t,n){j("MutationObserver"),j("WebKitMutationObserver")})),Zone.__load_patch("IntersectionObserver",(function(e,t,n){j("IntersectionObserver")})),Zone.__load_patch("FileReader",(function(e,t,n){j("FileReader")})),Zone.__load_patch("on_property",(function(e,t,n){le(n,e)})),Zone.__load_patch("customElements",(function(e,t,n){!function(e,t){var n=t.getGlobalObjects();(n.isBrowser||n.isMix)&&e.customElements&&"customElements"in e&&t.patchCallbacks(t,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,n)})),Zone.__load_patch("XHR",(function(e,t){!function(e){var u=e.XMLHttpRequest;if(u){var s=u.prototype,p=s[l],h=s[f];if(!p){var v=e.XMLHttpRequestEventTarget;if(v){var d=v.prototype;p=d[l],h=d[f]}}var k="readystatechange",m="scheduled",b=I(s,"open",(function(){return function(e,t){return e[r]=0==t[2],e[a]=t[1],b.apply(e,t)}})),_=g("fetchTaskAborting"),T=g("fetchTaskScheduling"),w=I(s,"send",(function(){return function(e,n){if(!0===t.current[T])return w.apply(e,n);if(e[r])return w.apply(e,n);var o={target:e,url:e[a],isPeriodic:!1,args:n,aborted:!1},i=y("XMLHttpRequest.send",S,o,x,O);e&&!0===e[c]&&!o.aborted&&i.state===m&&i.invoke()}})),E=I(s,"abort",(function(){return function(e,r){var o=e[n];if(o&&"string"==typeof o.type){if(null==o.cancelFn||o.data&&o.data.aborted)return;o.zone.cancelTask(o)}else if(!0===t.current[_])return E.apply(e,r)}}))}function x(e){var r=e.data,a=r.target;a[i]=!1,a[c]=!1;var u=a[o];p||(p=a[l],h=a[f]),u&&h.call(a,k,u);var s=a[o]=function(){if(a.readyState===a.DONE)if(!r.aborted&&a[i]&&e.state===m){var n=a[t.__symbol__("loadfalse")];if(n&&n.length>0){var o=e.invoke;e.invoke=function(){for(var n=a[t.__symbol__("loadfalse")],i=0;i<n.length;i++)n[i]===e&&n.splice(i,1);r.aborted||e.state!==m||o.call(e)},n.push(e)}else e.invoke()}else r.aborted||!1!==a[i]||(a[c]=!0)};return p.call(a,k,s),a[n]||(a[n]=e),w.apply(a,r.args),a[i]=!0,e}function S(){}function O(e){var t=e.data;return t.aborted=!0,E.apply(t.target,t.args)}}(e);var n=g("xhrTask"),r=g("xhrSync"),o=g("xhrListener"),i=g("xhrScheduled"),a=g("xhrURL"),c=g("xhrErrorBeforeScheduled")})),Zone.__load_patch("geolocation",(function(t){t.navigator&&t.navigator.geolocation&&function(t,n){for(var r=t.constructor.name,o=function(o){var i=n[o],a=t[i];if(a){if(!w(e(t,i)))return"continue";t[i]=function(e){var t=function(){return e.apply(this,T(arguments,r+"."+i))};return M(t,e),t}(a)}},i=0;i<n.length;i++)o(i)}(t.navigator.geolocation,["getCurrentPosition","watchPosition"])})),Zone.__load_patch("PromiseRejectionEvent",(function(e,t){function n(t){return function(n){q(e,t).forEach((function(r){var o=e.PromiseRejectionEvent;if(o){var i=new o(t,{promise:n.promise,reason:n.rejection});r.invoke(i)}}))}}e.PromiseRejectionEvent&&(t[g("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),t[g("rejectionHandledHandler")]=n("rejectionhandled"))}))})?r.call(t,n,t,e):r)||(e.exports=o)},"m/L8":function(e,t,n){var r=n("g6v/"),o=n("DPsx"),i=n("glrk"),a=n("wE6v"),c=Object.defineProperty;t.f=r?c:function(e,t,n){if(i(e),t=a(t,!0),i(n),o)try{return c(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},m92n:function(e,t,n){var r=n("glrk");e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(a){var i=e.return;throw void 0!==i&&r(i.call(e)),a}}},ntOU:function(e,t,n){"use strict";var r=n("rpNk").IteratorPrototype,o=n("fHMY"),i=n("XGwC"),a=n("1E5z"),c=n("P4y1"),u=function(){return this};e.exports=function(e,t,n){var s=t+" Iterator";return e.prototype=o(r,{next:i(1,n)}),a(e,s,!1,!0),c[s]=u,e}},ppGB:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},qgGA:function(e,t,n){var r=n("I+eb"),o=n("eDxR"),i=n("glrk"),a=o.toKey,c=o.set;r({target:"Reflect",stat:!0},{metadata:function(e,t){return function(n,r){c(e,t,i(n),a(r))}}})},rKzb:function(e,t,n){"use strict";var r=n("4syw"),o=n("8YOa").getWeakData,i=n("glrk"),a=n("hh1v"),c=n("GarU"),u=n("ImZN"),s=n("tycR"),l=n("UTVS"),f=n("afO8"),p=f.set,h=f.getterFor,v=s.find,d=s.findIndex,y=0,g=function(e){return e.frozen||(e.frozen=new k)},k=function(){this.entries=[]},m=function(e,t){return v(e.entries,(function(e){return e[0]===t}))};k.prototype={get:function(e){var t=m(this,e);if(t)return t[1]},has:function(e){return!!m(this,e)},set:function(e,t){var n=m(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=d(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,s){var f=e((function(e,r){c(e,f,t),p(e,{type:t,id:y++,frozen:void 0}),null!=r&&u(r,e[s],e,n)})),v=h(t),d=function(e,t,n){var r=v(e),a=o(i(t),!0);return!0===a?g(r).set(t,n):a[r.id]=n,e};return r(f.prototype,{delete:function(e){var t=v(this);if(!a(e))return!1;var n=o(e);return!0===n?g(t).delete(e):n&&l(n,t.id)&&delete n[t.id]},has:function(e){var t=v(this);if(!a(e))return!1;var n=o(e);return!0===n?g(t).has(e):n&&l(n,t.id)}}),r(f.prototype,n?{get:function(e){var t=v(this);if(a(e)){var n=o(e);return!0===n?g(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return d(this,e,t)}}:{add:function(e){return d(this,e,!0)}}),f}}},rpNk:function(e,t,n){"use strict";var r,o,i,a=n("4WOD"),c=n("kRJp"),u=n("UTVS"),s=n("tiKp"),l=n("xDBR"),f=s("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(o=a(a(i)))!==Object.prototype&&(r=o):p=!0),null==r&&(r={}),l||u(r,f)||c(r,f,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},sQ9d:function(e,t,n){var r=n("I+eb"),o=n("eDxR"),i=n("glrk"),a=o.keys,c=o.toKey;r({target:"Reflect",stat:!0},{getOwnMetadataKeys:function(e){var t=arguments.length<2?void 0:c(arguments[1]);return a(i(e),t)}})},tiKp:function(e,t,n){var r=n("2oRo"),o=n("VpIT"),i=n("UTVS"),a=n("kOOl"),c=n("STAE"),u=n("/b8u"),s=o("wks"),l=r.Symbol,f=u?l:l&&l.withoutSetter||a;e.exports=function(e){return i(s,e)||(s[e]=c&&i(l,e)?l[e]:f("Symbol."+e)),s[e]}},tycR:function(e,t,n){var r=n("A2ZE"),o=n("RK3t"),i=n("ewvW"),a=n("UMSQ"),c=n("ZfDv"),u=[].push,s=function(e){var t=1==e,n=2==e,s=3==e,l=4==e,f=6==e,p=5==e||f;return function(h,v,d,y){for(var g,k,m=i(h),b=o(m),_=r(v,d,3),T=a(b.length),w=0,E=y||c,x=t?E(h,T):n?E(h,0):void 0;T>w;w++)if((p||w in b)&&(k=_(g=b[w],w,m),e))if(t)x[w]=k;else if(k)switch(e){case 3:return!0;case 5:return g;case 6:return w;case 2:u.call(x,g)}else if(l)return!1;return f?-1:s||l?l:x}};e.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6)}},uy83:function(e,t,n){var r=n("0Dky");e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},vU8d:function(e,t){!function(){"use strict";!function(){if(void 0!==window.Reflect&&void 0!==window.customElements&&!window.customElements.polyfillWrapFlushCallback){var e=HTMLElement;window.HTMLElement={HTMLElement:function(){return Reflect.construct(e,[],this.constructor)}}.HTMLElement,HTMLElement.prototype=e.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,e)}}()}()},vZi8:function(e,t,n){var r=n("I+eb"),o=n("YGK4"),i=n("eDxR"),a=n("glrk"),c=n("4WOD"),u=n("ImZN"),s=i.keys,l=i.toKey,f=function(e,t){var n=s(e,t),r=c(e);if(null===r)return n;var i,a,l=f(r,t);return l.length?n.length?(i=new o(n.concat(l)),u(i,(a=[]).push,a),a):l:n};r({target:"Reflect",stat:!0},{getMetadataKeys:function(e){var t=arguments.length<2?void 0:l(arguments[1]);return f(a(e),t)}})},wE6v:function(e,t,n){var r=n("hh1v");e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},xDBR:function(e,t){e.exports=!1},xrYK:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},xs3f:function(e,t,n){var r=n("2oRo"),o=n("zk60"),i="__core-js_shared__",a=r[i]||o(i,{});e.exports=a},yoRg:function(e,t,n){var r=n("UTVS"),o=n("/GqU"),i=n("TWQb").indexOf,a=n("0BK2");e.exports=function(e,t){var n,c=o(e),u=0,s=[];for(n in c)!r(a,n)&&r(c,n)&&s.push(n);for(;t.length>u;)r(c,n=t[u++])&&(~i(s,n)||s.push(n));return s}},zBJ4:function(e,t,n){var r=n("2oRo"),o=n("hh1v"),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},zk60:function(e,t,n){var r=n("2oRo"),o=n("kRJp");e.exports=function(e,t){try{o(r,e,t)}catch(n){r[e]=t}return t}}},[[2,0]]]);
!function(e,t){"use strict";function n(){var e=C.splice(0,C.length);for(We=0;e.length;)e.shift().call(null,e.shift())}function r(e,t){for(var n=0,r=e.length;n<r;n++)p(e[n],t)}function o(e){return function(t){Re(t)&&(p(t,e),le.length&&r(t.querySelectorAll(le),e))}}function l(e){var t=Be.call(e,"is"),n=e.nodeName.toUpperCase(),r=ie.call(re,t?ee+t.toUpperCase():J+n);return t&&-1<r&&!a(n,t)?-1:r}function a(e,t){return-1<le.indexOf(e+'[is="'+t+'"]')}function i(e){var t=e.currentTarget,n=e.attrChange,r=e.attrName,o=e.target,l=e[X]||2,a=e[$]||3;!rt||o&&o!==t||!t[B]||"style"===r||e.prevValue===e.newValue&&(""!==e.newValue||n!==l&&n!==a)||t[B](r,n===l?null:e.prevValue,n===a?null:e.newValue)}function u(e){var t=o(e);return function(e){C.push(t,e.target),We&&clearTimeout(We),We=setTimeout(n,1)}}function c(e){nt&&(nt=!1,e.currentTarget.removeEventListener(W,c)),le.length&&r((e.target||g).querySelectorAll(le),e.detail===x?x:_),Ve&&function(){for(var e,t=0,n=Ue.length;t<n;t++)ae.contains(e=Ue[t])||(n--,Ue.splice(t--,1),p(e,x))}()}function s(e,t){var n=this;Ge.call(n,e,t),w.call(n,{target:n})}function m(e,t,n){var r=t.apply(e,n),o=l(r);return-1<o&&F(r,oe[o]),n.pop()&&le.length&&function(e){for(var t,n=0,r=e.length;n<r;n++)F(t=e[n],oe[l(t)])}(r.querySelectorAll(le)),r}function f(e,t){De(e,t),N?N.observe(e,$e):(tt&&(e.setAttribute=s,e[R]=O(e),e[U](Y,w)),e[U](Q,i)),e[z]&&rt&&(e.created=!0,e[z](),e.created=!1)}function d(e){throw new Error("A "+e+" type is already registered")}function p(e,t){var n,r,o=l(e);-1<o&&!xe.call(e,"TEMPLATE")&&(I(e,oe[o]),o=0,t!==_||e[_]?t!==x||e[x]||(e[_]=!1,e[x]=!0,r="disconnected",o=1):(e[x]=!1,e[_]=!0,r="connected",o=1,Ve&&ie.call(Ue,e)<0&&Ue.push(e)),o&&(n=e[t+k]||e[r+k])&&n.call(e))}function h(){}function T(e,t,n){var r=n&&n[q]||"",o=t.prototype,l=Ne(o),a=t.observedAttributes||fe,i={prototype:l};Pe(l,z,{value:function(){if(ye)ye=!1;else if(!this[Me]){this[Me]=!0,new t(this),o[z]&&o[z].call(this);var e=Ce[Ae.get(t)];(!ve||e.create.length>1)&&E(this)}}}),Pe(l,B,{value:function(e){-1<ie.call(a,e)&&o[B]&&o[B].apply(this,arguments)}}),o[j]&&Pe(l,Z,{value:o[j]}),o[G]&&Pe(l,K,{value:o[G]}),r&&(i[q]=r),e=e.toUpperCase(),Ce[e]={constructor:t,create:r?[r,Oe(e)]:[e]},Ae.set(t,e),g[V](e.toLowerCase(),i),v(e),we[e].r()}function L(e){var t=Ce[e.toUpperCase()];return t&&t.constructor}function M(e){return"string"==typeof e?e:e&&e.is||""}function E(e){for(var t,n=e[B],r=n?e.attributes:fe,o=r.length;o--;)n.call(e,(t=r[o]).name||t.nodeName,null,t.value||t.nodeValue)}function v(e){return(e=e.toUpperCase())in we||(we[e]={},we[e].p=new be((function(t){we[e].r=t}))),we[e].p}function H(){Ee&&delete e.customElements,me(e,"customElements",{configurable:!0,value:new h}),me(e,"CustomElementRegistry",{configurable:!0,value:h});for(var t=y.get(/^HTML[A-Z]*[a-z]/),n=t.length;n--;function(t){var n=e[t];if(n){e[t]=function(e){var t,r;return e||(e=this),e[Me]||(ye=!0,t=Ce[Ae.get(e.constructor)],(e=(r=ve&&1===t.create.length)?Reflect.construct(n,fe,t.constructor):g.createElement.apply(g,t.create))[Me]=!0,ye=!1,r||E(e)),e},e[t].prototype=n.prototype;try{n.prototype.constructor=e[t]}catch(r){me(n,Me,{value:e[t]})}}}(t[n]));g.createElement=function(e,t){var n=M(t);return n?Xe.call(this,e,Oe(n)):Xe.call(this,e)},Ye||(et=!0,g[V](""))}var g=e.document,b=e.Object,y=function(e){var t,n,r,o,l=/^[A-Z]+[a-z]/,a=function(e,t){(t=t.toLowerCase())in i||(i[e]=(i[e]||[]).concat(t),i[t]=i[t.toUpperCase()]=e)},i=(b.create||b)(null),u={};for(n in e)for(o in e[n])for(i[o]=r=e[n][o],t=0;t<r.length;t++)i[r[t].toLowerCase()]=i[r[t].toUpperCase()]=o;return u.get=function(e){return"string"==typeof e?i[e]||(l.test(e)?[]:""):function(e){var t,n=[];for(t in i)e.test(t)&&n.push(t);return n}(e)},u.set=function(e,t){return l.test(e)?a(e,t):a(t,e),u},u}({collections:{HTMLAllCollection:["all"],HTMLCollection:["forms"],HTMLFormControlsCollection:["elements"],HTMLOptionsCollection:["options"]},elements:{Element:["element"],HTMLAnchorElement:["a"],HTMLAppletElement:["applet"],HTMLAreaElement:["area"],HTMLAttachmentElement:["attachment"],HTMLAudioElement:["audio"],HTMLBRElement:["br"],HTMLBaseElement:["base"],HTMLBodyElement:["body"],HTMLButtonElement:["button"],HTMLCanvasElement:["canvas"],HTMLContentElement:["content"],HTMLDListElement:["dl"],HTMLDataElement:["data"],HTMLDataListElement:["datalist"],HTMLDetailsElement:["details"],HTMLDialogElement:["dialog"],HTMLDirectoryElement:["dir"],HTMLDivElement:["div"],HTMLDocument:["document"],HTMLElement:["element","abbr","address","article","aside","b","bdi","bdo","cite","code","command","dd","dfn","dt","em","figcaption","figure","footer","header","i","kbd","mark","nav","noscript","rp","rt","ruby","s","samp","section","small","strong","sub","summary","sup","u","var","wbr"],HTMLEmbedElement:["embed"],HTMLFieldSetElement:["fieldset"],HTMLFontElement:["font"],HTMLFormElement:["form"],HTMLFrameElement:["frame"],HTMLFrameSetElement:["frameset"],HTMLHRElement:["hr"],HTMLHeadElement:["head"],HTMLHeadingElement:["h1","h2","h3","h4","h5","h6"],HTMLHtmlElement:["html"],HTMLIFrameElement:["iframe"],HTMLImageElement:["img"],HTMLInputElement:["input"],HTMLKeygenElement:["keygen"],HTMLLIElement:["li"],HTMLLabelElement:["label"],HTMLLegendElement:["legend"],HTMLLinkElement:["link"],HTMLMapElement:["map"],HTMLMarqueeElement:["marquee"],HTMLMediaElement:["media"],HTMLMenuElement:["menu"],HTMLMenuItemElement:["menuitem"],HTMLMetaElement:["meta"],HTMLMeterElement:["meter"],HTMLModElement:["del","ins"],HTMLOListElement:["ol"],HTMLObjectElement:["object"],HTMLOptGroupElement:["optgroup"],HTMLOptionElement:["option"],HTMLOutputElement:["output"],HTMLParagraphElement:["p"],HTMLParamElement:["param"],HTMLPictureElement:["picture"],HTMLPreElement:["pre"],HTMLProgressElement:["progress"],HTMLQuoteElement:["blockquote","q","quote"],HTMLScriptElement:["script"],HTMLSelectElement:["select"],HTMLShadowElement:["shadow"],HTMLSlotElement:["slot"],HTMLSourceElement:["source"],HTMLSpanElement:["span"],HTMLStyleElement:["style"],HTMLTableCaptionElement:["caption"],HTMLTableCellElement:["td","th"],HTMLTableColElement:["col","colgroup"],HTMLTableElement:["table"],HTMLTableRowElement:["tr"],HTMLTableSectionElement:["thead","tbody","tfoot"],HTMLTemplateElement:["template"],HTMLTextAreaElement:["textarea"],HTMLTimeElement:["time"],HTMLTitleElement:["title"],HTMLTrackElement:["track"],HTMLUListElement:["ul"],HTMLUnknownElement:["unknown","vhgroupv","vkeygen"],HTMLVideoElement:["video"]},nodes:{Attr:["node"],Audio:["audio"],CDATASection:["node"],CharacterData:["node"],Comment:["#comment"],Document:["#document"],DocumentFragment:["#document-fragment"],DocumentType:["node"],HTMLDocument:["#document"],Image:["img"],Option:["option"],ProcessingInstruction:["node"],ShadowRoot:["#shadow-root"],Text:["#text"],XMLDocument:["xml"]}});"object"!=typeof t&&(t={type:t||"auto"});var C,w,A,O,N,D,I,F,S,V="registerElement",P=1e5*e.Math.random()>>0,R="__"+V+P,U="addEventListener",_="attached",k="Callback",x="detached",q="extends",B="attributeChanged"+k,Z=_+k,j="connected"+k,G="disconnected"+k,z="created"+k,K=x+k,X="ADDITION",$="REMOVAL",Q="DOMAttrModified",W="DOMContentLoaded",Y="DOMSubtreeModified",J="<",ee="=",te=/^[A-Z][._A-Z0-9]*-[-._A-Z0-9]*$/,ne=["ANNOTATION-XML","COLOR-PROFILE","FONT-FACE","FONT-FACE-SRC","FONT-FACE-URI","FONT-FACE-FORMAT","FONT-FACE-NAME","MISSING-GLYPH"],re=[],oe=[],le="",ae=g.documentElement,ie=re.indexOf||function(e){for(var t=this.length;t--&&this[t]!==e;);return t},ue=b.prototype,ce=ue.hasOwnProperty,se=ue.isPrototypeOf,me=b.defineProperty,fe=[],de=b.getOwnPropertyDescriptor,pe=b.getOwnPropertyNames,he=b.getPrototypeOf,Te=b.setPrototypeOf,Le=!!b.__proto__,Me="__dreCEv1",Ee=e.customElements,ve=!/^force/.test(t.type)&&!!(Ee&&Ee.define&&Ee.get&&Ee.whenDefined),He=b.create||b,ge=e.Map||function(){var e,t=[],n=[];return{get:function(e){return n[ie.call(t,e)]},set:function(r,o){(e=ie.call(t,r))<0?n[t.push(r)-1]=o:n[e]=o}}},be=e.Promise||function(e){function t(e){for(r=!0;n.length;)n.shift()(e)}var n=[],r=!1,o={catch:function(){return o},then:function(e){return n.push(e),r&&setTimeout(t,1),o}};return e(t),o},ye=!1,Ce=He(null),we=He(null),Ae=new ge,Oe=function(e){return e.toLowerCase()},Ne=b.create||function e(t){return t?(e.prototype=t,new e):this},De=Te||(Le?function(e,t){return e.__proto__=t,e}:pe&&de?function(){function e(e,t){for(var n,r=pe(t),o=0,l=r.length;o<l;o++)ce.call(e,n=r[o])||me(e,n,de(t,n))}return function(t,n){do{e(t,n)}while((n=he(n))&&!se.call(n,t));return t}}():function(e,t){for(var n in t)e[n]=t[n];return e}),Ie=e.MutationObserver||e.WebKitMutationObserver,Fe=e.HTMLAnchorElement,Se=(e.HTMLElement||e.Element||e.Node).prototype,Ve=!se.call(Se,ae),Pe=Ve?function(e,t,n){return e[t]=n.value,e}:me,Re=Ve?function(e){return 1===e.nodeType}:function(e){return se.call(Se,e)},Ue=Ve&&[],_e=Se.attachShadow,ke=Se.cloneNode,xe=Se.closest||function(e){for(var t=this;t&&t.nodeName!==e;)t=t.parentNode;return t},qe=Se.dispatchEvent,Be=Se.getAttribute,Ze=Se.hasAttribute,je=Se.removeAttribute,Ge=Se.setAttribute,ze=g.createElement,Ke=g.importNode,Xe=ze,$e=Ie&&{attributes:!0,characterData:!0,attributeOldValue:!0},Qe=Ie||function(e){tt=!1,ae.removeEventListener(Q,Qe)},We=0,Ye=V in g&&!/^force-all/.test(t.type),Je=!0,et=!1,tt=!0,nt=!0,rt=!0;if(Ie&&((S=g.createElement("div")).innerHTML="<div><div></div></div>",new Ie((function(e,t){if(e[0]&&"childList"==e[0].type&&!e[0].removedNodes[0].childNodes.length){var n=(S=de(Se,"innerHTML"))&&S.set;n&&me(Se,"innerHTML",{set:function(e){for(;this.lastChild;)this.removeChild(this.lastChild);n.call(this,e)}})}t.disconnect(),S=null})).observe(S,{childList:!0,subtree:!0}),S.innerHTML=""),Ye||(Te||Le?(I=function(e,t){se.call(t,e)||f(e,t)},F=f):F=I=function(e,t){e[R]||(e[R]=b(!0),f(e,t))},Ve?(tt=!1,function(){var e=de(Se,U),t=e.value,n=function(e){var t=new CustomEvent(Q,{bubbles:!0});t.attrName=e,t.prevValue=Be.call(this,e),t.newValue=null,t[$]=t.attrChange=2,je.call(this,e),qe.call(this,t)},r=function(e,t){var n=Ze.call(this,e),r=n&&Be.call(this,e),o=new CustomEvent(Q,{bubbles:!0});Ge.call(this,e,t),o.attrName=e,o.prevValue=n?r:null,o.newValue=t,n?o.MODIFICATION=o.attrChange=1:o[X]=o.attrChange=0,qe.call(this,o)},o=function(e){var t,n=e.currentTarget,r=n[R],o=e.propertyName;r.hasOwnProperty(o)&&(r=r[o],(t=new CustomEvent(Q,{bubbles:!0})).attrName=r.name,t.prevValue=r.value||null,t.newValue=r.value=n[o]||null,null==t.prevValue?t[X]=t.attrChange=0:t.MODIFICATION=t.attrChange=1,qe.call(n,t))};e.value=function(e,l,a){e===Q&&this[B]&&this.setAttribute!==r&&(this[R]={className:{name:"class",value:this.className}},this.setAttribute=r,this.removeAttribute=n,t.call(this,"propertychange",o)),t.call(this,e,l,a)},me(Se,U,e)}()):Ie||(ae[U](Q,Qe),ae.setAttribute(R,1),ae.removeAttribute(R),tt&&(w=function(e){var t,n,r,o=this;if(o===e.target){for(r in t=o[R],o[R]=n=O(o),n){if(!(r in t))return A(0,o,r,t[r],n[r],X);if(n[r]!==t[r])return A(1,o,r,t[r],n[r],"MODIFICATION")}for(r in t)if(!(r in n))return A(2,o,r,t[r],n[r],$)}},A=function(e,t,n,r,o,l){var a={attrChange:e,currentTarget:t,attrName:n,prevValue:r,newValue:o};a[l]=e,i(a)},O=function(e){for(var t,n,r={},o=e.attributes,l=0,a=o.length;l<a;l++)"setAttribute"!==(n=(t=o[l]).name)&&(r[n]=t.value);return r})),g[V]=function(e,t){if(n=e.toUpperCase(),Je&&(Je=!1,Ie?(N=function(e,t){function n(e,t){for(var n=0,r=e.length;n<r;t(e[n++]));}return new Ie((function(r){for(var o,l,a,i=0,u=r.length;i<u;i++)"childList"===(o=r[i]).type?(n(o.addedNodes,e),n(o.removedNodes,t)):(l=o.target,rt&&l[B]&&"style"!==o.attributeName&&(a=Be.call(l,o.attributeName))!==o.oldValue&&l[B](o.attributeName,o.oldValue,a))}))}(o(_),o(x)),(D=function(e){return N.observe(e,{childList:!0,subtree:!0}),e})(g),_e&&(Se.attachShadow=function(){return D(_e.apply(this,arguments))})):(C=[],g[U]("DOMNodeInserted",u(_)),g[U]("DOMNodeRemoved",u(x))),g[U](W,c),g[U]("readystatechange",c),g.importNode=function(e,t){switch(e.nodeType){case 1:return m(g,Ke,[e,!!t]);case 11:for(var n=g.createDocumentFragment(),r=e.childNodes,o=r.length,l=0;l<o;l++)n.appendChild(g.importNode(r[l],!!t));return n;default:return ke.call(e,!!t)}},Se.cloneNode=function(e){return m(this,ke,[!!e])}),et)return et=!1;if(-2<ie.call(re,ee+n)+ie.call(re,J+n)&&d(e),!te.test(n)||-1<ie.call(ne,n))throw new Error("The type "+e+" is invalid");var n,l,a=function(){return s?g.createElement(f,n):g.createElement(f)},i=t||ue,s=ce.call(i,q),f=s?t[q].toUpperCase():n;return s&&-1<ie.call(re,J+f)&&d(f),l=re.push((s?ee:J)+n)-1,le=le.concat(le.length?",":"",s?f+'[is="'+e.toLowerCase()+'"]':f),a.prototype=oe[l]=ce.call(i,"prototype")?i.prototype:Ne(Se),le.length&&r(g.querySelectorAll(le),_),a},g.createElement=Xe=function(e,t){var n=M(t),r=n?ze.call(g,e,Oe(n)):ze.call(g,e),o=""+e,l=ie.call(re,(n?ee:J)+(n||o).toUpperCase()),i=-1<l;return n&&(r.setAttribute("is",n=n.toLowerCase()),i&&(i=a(o.toUpperCase(),n))),rt=!g.createElement.innerHTMLHelper,i&&F(r,oe[l]),r}),addEventListener("beforeunload",(function(){delete g.createElement,delete g.importNode,delete g[V]}),!1),h.prototype={constructor:h,define:ve?function(e,t,n){if(n)T(e,t,n);else{var r=e.toUpperCase();Ce[r]={constructor:t,create:[r]},Ae.set(t,r),Ee.define(e,t)}}:T,get:ve?function(e){return Ee.get(e)||L(e)}:L,whenDefined:ve?function(e){return be.race([Ee.whenDefined(e),v(e)])}:v},!Ee||/^force/.test(t.type))H();else if(!t.noBuiltIn)try{!function(t,n,r){var o=new RegExp("^<a\\s+is=('|\")"+r+"\\1></a>$");if(n[q]="a",(t.prototype=Ne(Fe.prototype)).constructor=t,e.customElements.define(r,t,n),!o.test(g.createElement("a",{is:r}).outerHTML)||!o.test((new t).outerHTML))throw n}((function e(){return Reflect.construct(Fe,[],e)}),{},"document-register-element-a"+P)}catch(ot){H()}if(!t.noBuiltIn)try{if(ze.call(g,"a","a").outerHTML.indexOf("is")<0)throw{}}catch(lt){Oe=function(e){return{is:e.toLowerCase()}}}}(window);
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"+27z":function(e,t){function n(e,t,n){var i={audio:!1,video:{mandatory:{chromeMediaSource:e?"screen":"desktop",maxWidth:window.screen.width>1920?window.screen.width:1920,maxHeight:window.screen.height>1080?window.screen.height:1080},optional:[]}};return n&&(i.audio={mandatory:{chromeMediaSource:e?"screen":"desktop"},optional:[]}),t&&(i.video.mandatory.chromeMediaSourceId=t,i.audio&&i.audio.mandatory&&(i.audio.mandatory.chromeMediaSourceId=t)),i}function i(e){r?r.isLoaded?r.contentWindow.postMessage(e?e.forEach?{captureCustomSourceId:e}:{captureSourceIdWithAudio:!0}:{captureSourceId:!0},"*"):setTimeout((function(){i(e)}),100):o((function(){i(e)}))}var r;function o(e){r?e():((r=document.createElement("iframe")).onload=function(){r.isLoaded=!0,e()},r.src="https://openvidu.github.io/openvidu-screen-sharing-chrome-extension/",r.style.display="none",(document.body||document.documentElement).appendChild(r))}function a(){r?r.isLoaded?r.contentWindow.postMessage({getChromeExtensionStatus:!0},"*"):setTimeout(a,100):o(a)}window.getScreenId=function(e,t,r){-1===navigator.userAgent.indexOf("Edge")||!navigator.msSaveOrOpenBlob&&!navigator.msSaveBlob?navigator.mozGetUserMedia?t(null,"firefox",{video:{mozMediaSource:e,mediaSource:e}}):(window.addEventListener("message",(function e(i){i.data&&(i.data.chromeMediaSourceId&&("PermissionDeniedError"===i.data.chromeMediaSourceId?t("permission-denied"):t(null,i.data.chromeMediaSourceId,n(null,i.data.chromeMediaSourceId,i.data.canRequestAudioTrack)),window.removeEventListener("message",e)),i.data.chromeExtensionStatus&&(t(i.data.chromeExtensionStatus,null,n(i.data.chromeExtensionStatus)),window.removeEventListener("message",e)))})),r?setTimeout((function(){i(r)}),100):setTimeout(i,100)):t({video:!0})},window.getScreenConstraints=function(e){o((function(){getScreenId((function(t,n,i){i||(i={video:!0}),e(t,i.video)}))}))},window.getChromeExtensionStatus=function(e){navigator.mozGetUserMedia?e("installed-enabled"):(window.addEventListener("message",(function t(n){n.data&&n.data.chromeExtensionStatus&&(e(n.data.chromeExtensionStatus),window.removeEventListener("message",t))})),setTimeout(a,100))},t.getScreenId=getScreenId},"+FKC":function(e,t,n){"use strict";t.__esModule=!0,t.WebRtcStats=void 0;var i=n("9m68"),r=n("4jfU"),o=i.OpenViduLogger.getInstance(),a=r.PlatformUtils.getInstance(),s=function(){function e(e){this.stream=e,this.webRtcStatsEnabled=!1,this.statsInterval=1,this.stats={inbound:{audio:{bytesReceived:0,packetsReceived:0,packetsLost:0},video:{bytesReceived:0,packetsReceived:0,packetsLost:0,framesDecoded:0,nackCount:0}},outbound:{audio:{bytesSent:0,packetsSent:0},video:{bytesSent:0,packetsSent:0,framesEncoded:0,nackCount:0}}}}return e.prototype.isEnabled=function(){return this.webRtcStatsEnabled},e.prototype.initWebRtcStats=function(){var e=this,t=localStorage.getItem("elastest-instrumentation");if(t){o.warn("WebRtc stats enabled for stream "+this.stream.streamId+" of connection "+this.stream.connection.connectionId),this.webRtcStatsEnabled=!0;var n=JSON.parse(t);return this.statsInterval=n.webrtc.interval,o.warn("localStorage item: "+JSON.stringify(n)),void(this.webRtcStatsIntervalId=setInterval((function(){e.sendStatsToHttpEndpoint(n)}),1e3*this.statsInterval))}o.debug("WebRtc stats not enabled")},e.prototype.stopWebRtcStats=function(){this.webRtcStatsEnabled&&(clearInterval(this.webRtcStatsIntervalId),o.warn("WebRtc stats stopped for disposed stream "+this.stream.streamId+" of connection "+this.stream.connection.connectionId))},e.prototype.getSelectedIceCandidateInfo=function(){var e=this;return new Promise((function(t,n){e.getStatsAgnostic(e.stream.getRTCPeerConnection(),(function(i){if(a.isChromeBrowser()||a.isChromeMobileBrowser()||a.isOperaBrowser()||a.isOperaMobileBrowser()){var r=void 0,o=void 0,s=void 0,u={},c={};for(var l in i){var h=i[l];"localcandidate"===h.type?u[h.id]=h:"remotecandidate"===h.type?c[h.id]=h:"googCandidatePair"===h.type&&"true"===h.googActiveConnection&&(s=h,r=h.localCandidateId,o=h.remoteCandidateId)}var d=u[r];if(d){var f=e.stream.getLocalIceCandidateList().filter((function(e){return!!e.candidate&&e.candidate.indexOf(d.ipAddress)>=0&&e.candidate.indexOf(d.portNumber)>=0&&e.candidate.indexOf(d.priority)>=0}));d.raw=f[0]?f[0].candidate:"ERROR: Cannot find local candidate in list of sent ICE candidates"}else d="ERROR: No active local ICE candidate. Probably ICE-TCP is being used";var p=c[o];p?(f=e.stream.getRemoteIceCandidateList().filter((function(e){return!!e.candidate&&e.candidate.indexOf(p.ipAddress)>=0&&e.candidate.indexOf(p.portNumber)>=0&&e.candidate.indexOf(p.priority)>=0})),p.raw=f[0]?f[0].candidate:"ERROR: Cannot find remote candidate in list of received ICE candidates"):p="ERROR: No active remote ICE candidate. Probably ICE-TCP is being used",t({googCandidatePair:s,localCandidate:d,remoteCandidate:p})}else n("Selected ICE candidate info only available for Chrome")}),(function(e){n(e)}))}))},e.prototype.sendStatsToHttpEndpoint=function(e){var t=this,n=function(n){var i=new XMLHttpRequest,r=e.webrtc.httpEndpoint;i.open("POST",r,!0),i.setRequestHeader("Content-type","application/json"),i.onreadystatechange=function(){4===i.readyState&&200===i.status&&o.log("WebRtc stats successfully sent to "+r+" for stream "+t.stream.streamId+" of connection "+t.stream.connection.connectionId)},i.send(n)};this.getStatsAgnostic(this.stream.getRTCPeerConnection(),(function(i){if(a.isFirefoxBrowser()||a.isFirefoxMobileBrowser())i.forEach((function(i){var r={};if("inbound-rtp"===i.type&&null!==i.nackCount&&!1===i.isRemote&&i.id.startsWith("inbound")&&i.remoteId.startsWith("inbound")){var o="webrtc_inbound_"+i.mediaType+"_"+i.ssrc,a={bytesReceived:(i.bytesReceived-t.stats.inbound[i.mediaType].bytesReceived)/t.statsInterval,jitter:1e3*i.jitter,packetsReceived:(i.packetsReceived-t.stats.inbound[i.mediaType].packetsReceived)/t.statsInterval,packetsLost:(i.packetsLost-t.stats.inbound[i.mediaType].packetsLost)/t.statsInterval},s={bytesReceived:"bytes",jitter:"ms",packetsReceived:"packets",packetsLost:"packets"};"video"===i.mediaType&&(a.framesDecoded=(i.framesDecoded-t.stats.inbound.video.framesDecoded)/t.statsInterval,a.nackCount=(i.nackCount-t.stats.inbound.video.nackCount)/t.statsInterval,s.framesDecoded="frames",s.nackCount="packets",t.stats.inbound.video.framesDecoded=i.framesDecoded,t.stats.inbound.video.nackCount=i.nackCount),t.stats.inbound[i.mediaType].bytesReceived=i.bytesReceived,t.stats.inbound[i.mediaType].packetsReceived=i.packetsReceived,t.stats.inbound[i.mediaType].packetsLost=i.packetsLost,(r={"@timestamp":new Date(i.timestamp).toISOString(),exec:e.exec,component:e.component,stream:"webRtc",et_type:o,stream_type:"composed_metrics",units:s})[o]=a,n(JSON.stringify(r))}else"outbound-rtp"===i.type&&!1===i.isRemote&&i.id.toLowerCase().includes("outbound")&&(o="webrtc_outbound_"+i.mediaType+"_"+i.ssrc,a={bytesSent:(i.bytesSent-t.stats.outbound[i.mediaType].bytesSent)/t.statsInterval,packetsSent:(i.packetsSent-t.stats.outbound[i.mediaType].packetsSent)/t.statsInterval},s={bytesSent:"bytes",packetsSent:"packets"},"video"===i.mediaType&&(a.framesEncoded=(i.framesEncoded-t.stats.outbound.video.framesEncoded)/t.statsInterval,s.framesEncoded="frames",t.stats.outbound.video.framesEncoded=i.framesEncoded),t.stats.outbound[i.mediaType].bytesSent=i.bytesSent,t.stats.outbound[i.mediaType].packetsSent=i.packetsSent,(r={"@timestamp":new Date(i.timestamp).toISOString(),exec:e.exec,component:e.component,stream:"webRtc",et_type:o,stream_type:"composed_metrics",units:s})[o]=a,n(JSON.stringify(r)))}));else if(a.isChromeBrowser()||a.isChromeMobileBrowser()||a.isOperaBrowser()||a.isOperaMobileBrowser())for(var r=0,o=Object.keys(i);r<o.length;r++){var s=i[o[r]];if("ssrc"===s.type){var u={};if("bytesReceived"in s&&("audio"===s.mediaType&&"audioOutputLevel"in s||"video"===s.mediaType&&"qpSum"in s)){var c="webrtc_inbound_"+s.mediaType+"_"+s.ssrc,l={bytesReceived:(s.bytesReceived-t.stats.inbound[s.mediaType].bytesReceived)/t.statsInterval,jitter:s.googJitterBufferMs,packetsReceived:(s.packetsReceived-t.stats.inbound[s.mediaType].packetsReceived)/t.statsInterval,packetsLost:(s.packetsLost-t.stats.inbound[s.mediaType].packetsLost)/t.statsInterval},h={bytesReceived:"bytes",jitter:"ms",packetsReceived:"packets",packetsLost:"packets"};"video"===s.mediaType&&(l.framesDecoded=(s.framesDecoded-t.stats.inbound.video.framesDecoded)/t.statsInterval,l.nackCount=(s.googNacksSent-t.stats.inbound.video.nackCount)/t.statsInterval,h.framesDecoded="frames",h.nackCount="packets",t.stats.inbound.video.framesDecoded=s.framesDecoded,t.stats.inbound.video.nackCount=s.googNacksSent),t.stats.inbound[s.mediaType].bytesReceived=s.bytesReceived,t.stats.inbound[s.mediaType].packetsReceived=s.packetsReceived,t.stats.inbound[s.mediaType].packetsLost=s.packetsLost,(u={"@timestamp":new Date(s.timestamp).toISOString(),exec:e.exec,component:e.component,stream:"webRtc",et_type:c,stream_type:"composed_metrics",units:h})[c]=l,n(JSON.stringify(u))}else"bytesSent"in s&&(c="webrtc_outbound_"+s.mediaType+"_"+s.ssrc,l={bytesSent:(s.bytesSent-t.stats.outbound[s.mediaType].bytesSent)/t.statsInterval,packetsSent:(s.packetsSent-t.stats.outbound[s.mediaType].packetsSent)/t.statsInterval},h={bytesSent:"bytes",packetsSent:"packets"},"video"===s.mediaType&&(l.framesEncoded=(s.framesEncoded-t.stats.outbound.video.framesEncoded)/t.statsInterval,h.framesEncoded="frames",t.stats.outbound.video.framesEncoded=s.framesEncoded),t.stats.outbound[s.mediaType].bytesSent=s.bytesSent,t.stats.outbound[s.mediaType].packetsSent=s.packetsSent,(u={"@timestamp":new Date(s.timestamp).toISOString(),exec:e.exec,component:e.component,stream:"webRtc",et_type:c,stream_type:"composed_metrics",units:h})[c]=l,n(JSON.stringify(u)))}}}),(function(e){o.log(e)}))},e.prototype.standardizeReport=function(e){o.log(e);var t={};return a.isFirefoxBrowser()||a.isFirefoxMobileBrowser()?(Object.keys(e).forEach((function(t){o.log(e[t])})),e):(e.result().forEach((function(e){var n={id:e.id,timestamp:e.timestamp,type:e.type};e.names().forEach((function(t){n[t]=e.stat(t)})),t[n.id]=n})),t)},e.prototype.getStatsAgnostic=function(e,t,n){var i=this;return a.isFirefoxBrowser()||a.isFirefoxMobileBrowser()?e.getStats(null).then((function(e){var n=i.standardizeReport(e);t(n)})).catch(n):a.isChromeBrowser()||a.isChromeMobileBrowser()||a.isOperaBrowser()||a.isOperaMobileBrowser()?e.getStats((function(e){var n=i.standardizeReport(e);t(n)}),null,n):void 0},e}();t.WebRtcStats=s},"+ig+":function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});t.__esModule=!0,t.FilterEvent=void 0;var o=function(e){function t(t,n,i){var r=e.call(this,!1,t,n)||this;return r.data=i,r}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(n("hzOQ").Event);t.FilterEvent=o},"+qE3":function(e,t,n){"use strict";var i,r="object"==typeof Reflect?Reflect:null,o=r&&"function"==typeof r.apply?r.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};i=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise((function(n,i){function r(){void 0!==o&&e.removeListener("error",o),n([].slice.call(arguments))}var o;"error"!==t&&(o=function(n){e.removeListener(t,r),i(n)},e.once("error",o)),e.once(t,r)}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var u=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function h(e,t,n,i){var r,o,a;if(c(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=i?[n,a]:[a,n]:i?a.unshift(n):a.push(n),(r=l(e))>0&&a.length>r&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,console&&console.warn&&console.warn(s)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=d.bind(i);return r.listener=n,i.wrapFn=r,r}function p(e,t,n){var i=e._events;if(void 0===i)return[];var r=i[t];return void 0===r?[]:"function"==typeof r?n?[r.listener||r]:[r]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(r):m(r,r.length)}function v(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function m(e,t){for(var n=new Array(t),i=0;i<t;++i)n[i]=e[i];return n}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");u=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return l(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,r=this._events;if(void 0!==r)i=i&&void 0===r.error;else if(!i)return!1;if(i){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=r[e];if(void 0===u)return!1;if("function"==typeof u)o(u,this,t);else{var c=u.length,l=m(u,c);for(n=0;n<c;++n)o(l[n],this,t)}return!0},s.prototype.on=s.prototype.addListener=function(e,t){return h(this,e,t,!1)},s.prototype.prependListener=function(e,t){return h(this,e,t,!0)},s.prototype.once=function(e,t){return c(t),this.on(e,f(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,f(this,e,t)),this},s.prototype.off=s.prototype.removeListener=function(e,t){var n,i,r,o,a;if(c(t),void 0===(i=this._events))return this;if(void 0===(n=i[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(r=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,r=o;break}if(r<0)return this;0===r?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,r),1===n.length&&(i[e]=n[0]),void 0!==i.removeListener&&this.emit("removeListener",e,a||t)}return this},s.prototype.removeAllListeners=function(e){var t,n,i;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var r,o=Object.keys(n);for(i=0;i<o.length;++i)"removeListener"!==(r=o[i])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(i=t.length-1;i>=0;i--)this.removeListener(e,t[i]);return this},s.prototype.listeners=function(e){return p(this,e,!0)},s.prototype.rawListeners=function(e){return p(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):v.call(e,t)},s.prototype.listenerCount=v,s.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},"+qwt":function(e,t,n){(function(e){var i;(function(){"use strict";var r={function:!0,object:!0},o=r[typeof window]&&window||this,a=r[typeof t]&&t&&r[typeof e]&&e&&!e.nodeType&&e&&"object"==typeof global&&global;!a||a.global!==a&&a.window!==a&&a.self!==a||(o=a);var s=Math.pow(2,53)-1,u=/\bOpera/,c=Object.prototype,l=c.hasOwnProperty,h=c.toString;function d(e){return(e=String(e)).charAt(0).toUpperCase()+e.slice(1)}function f(e){return e=y(e),/^(?:webOS|i(?:OS|P))/.test(e)?e:d(e)}function p(e,t){for(var n in e)l.call(e,n)&&t(e[n],n,e)}function v(e){return null==e?d(e):h.call(e).slice(8,-1)}function m(e){return String(e).replace(/([ -])(?!$)/g,"$1?")}function g(e,t){var n=null;return function(e,t){var n=-1,i=e?e.length:0;if("number"==typeof i&&i>-1&&i<=s)for(;++n<i;)t(e[n],n);else p(e,t)}(e,(function(i,r){n=t(n,i,r,e)})),n}function y(e){return String(e).replace(/^ +| +$/g,"")}var b=function e(t){var n=o,i=t&&"object"==typeof t&&"String"!=v(t);i&&(n=t,t=null);var r=n.navigator||{},a=r.userAgent||"";t||(t=a);var s,c,l,d,b=i?!!r.likeChrome:/\bChrome\b/.test(t)&&!/internal|\n/i.test(h.toString()),_="Object",k=i?_:"ScriptBridgingProxyObject",w=i?_:"Environment",S=i&&n.java?"JavaPackage":v(n.java),C=i?_:"RuntimeObject",E=/\bJava/.test(S)&&n.java,O=E&&v(n.environment)==w,x=E?"a":"\u03b1",T=E?"b":"\u03b2",M=n.document||{},P=n.operamini||n.opera,I=u.test(I=i&&P?P["[[Class]]"]:v(P))?I:P=null,A=t,R=[],D=null,N=t==a,L=N&&P&&"function"==typeof P.version&&P.version(),V=g([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"],(function(e,n){return e||RegExp("\\b"+(n.pattern||m(n))+"\\b","i").exec(t)&&(n.label||n)})),j=g(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"(?:Edge|Edg|EdgA|EdgiOS)"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Vivaldi","Waterfox","WebPositive",{label:"Yandex Browser",pattern:"YaBrowser"},{label:"UC Browser",pattern:"UCBrowser"},"Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chromium","Chrome",{label:"Chrome",pattern:"(?:HeadlessChrome)"},{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"],(function(e,n){return e||RegExp("\\b"+(n.pattern||m(n))+"\\b","i").exec(t)&&(n.label||n)})),F=z([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),B=g({Apple:{iPad:1,iPhone:1,iPod:1},Alcatel:{},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},Huawei:{},Lenovo:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Oppo:{},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1},Xiaomi:{Mi:1,Redmi:1}},(function(e,n,i){return e||(n[F]||n[/^[a-z]+(?: +[a-z]+\b)*/i.exec(F)]||RegExp("\\b"+m(i)+"(?:\\b|\\w*\\d)","i").exec(t))&&i})),U=g(["Windows Phone","KaiOS","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian",{label:"DragonFly BSD",pattern:"DragonFly"},"Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "],(function(e,n){var i=n.pattern||m(n);return!e&&(e=RegExp("\\b"+i+"(?:/[\\d.]+|[ \\w.]*)","i").exec(t))&&(e=function(e,t,n){var i={"10.0":"10",6.4:"10 Technical Preview",6.3:"8.1",6.2:"8",6.1:"Server 2008 R2 / 7","6.0":"Server 2008 / Vista",5.2:"Server 2003 / XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return t&&n&&/^Win/i.test(e)&&!/^Windows Phone /i.test(e)&&(i=i[/[\d.]+$/.exec(e)])&&(e="Windows "+i),e=String(e),t&&n&&(e=e.replace(RegExp(t,"i"),n)),f(e.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0])}(e,i,n.label||n)),e}));function z(e){return g(e,(function(e,n){var i=n.pattern||m(n);return!e&&(e=RegExp("\\b"+i+" *\\d+[.\\w_]*","i").exec(t)||RegExp("\\b"+i+" *\\w+-[\\w]*","i").exec(t)||RegExp("\\b"+i+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(t))&&((e=String(n.label&&!RegExp(i,"i").test(n.label)?n.label:e).split("/"))[1]&&!/[\d.]+/.test(e[0])&&(e[0]+=" "+e[1]),n=n.label||n,e=f(e[0].replace(RegExp(i,"i"),n).replace(RegExp("; *(?:"+n+"[_-])?","i")," ").replace(RegExp("("+n+")[-_.]?(\\w)","i"),"$1 $2"))),e}))}function W(e){return g(e,(function(e,n){return e||(RegExp(n+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(t)||0)[1]||null}))}if(V&&(V=[V]),/\bAndroid\b/.test(U)&&!F&&(s=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(t))&&(F=y(s[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),B&&!F?F=z([B]):B&&F&&(F=F.replace(RegExp("^("+m(B)+")[-_.\\s]","i"),B+" ").replace(RegExp("^("+m(B)+")[-_.]?(\\w)","i"),B+" $2")),(s=/\bGoogle TV\b/.exec(F))&&(F=s[0]),/\bSimulator\b/i.test(t)&&(F=(F?F+" ":"")+"Simulator"),"Opera Mini"==j&&/\bOPiOS\b/.test(t)&&R.push("running in Turbo/Uncompressed mode"),"IE"==j&&/\blike iPhone OS\b/.test(t)?(B=(s=e(t.replace(/like iPhone OS/,""))).manufacturer,F=s.product):/^iP/.test(F)?(j||(j="Safari"),U="iOS"+((s=/ OS ([\d_]+)/i.exec(t))?" "+s[1].replace(/_/g,"."):"")):"Konqueror"==j&&/^Linux\b/i.test(U)?U="Kubuntu":B&&"Google"!=B&&(/Chrome/.test(j)&&!/\bMobile Safari\b/i.test(t)||/\bVita\b/.test(F))||/\bAndroid\b/.test(U)&&/^Chrome/.test(j)&&/\bVersion\//i.test(t)?(j="Android Browser",U=/\bAndroid\b/.test(U)?U:"Android"):"Silk"==j?(/\bMobi/i.test(t)||(U="Android",R.unshift("desktop mode")),/Accelerated *= *true/i.test(t)&&R.unshift("accelerated")):"UC Browser"==j&&/\bUCWEB\b/.test(t)?R.push("speed mode"):"PaleMoon"==j&&(s=/\bFirefox\/([\d.]+)\b/.exec(t))?R.push("identifying as Firefox "+s[1]):"Firefox"==j&&(s=/\b(Mobile|Tablet|TV)\b/i.exec(t))?(U||(U="Firefox OS"),F||(F=s[1])):!j||(s=!/\bMinefield\b/i.test(t)&&/\b(?:Firefox|Safari)\b/.exec(j))?(j&&!F&&/[\/,]|^[^(]+?\)/.test(t.slice(t.indexOf(s+"/")+8))&&(j=null),(s=F||B||U)&&(F||B||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(U))&&(j=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(U)?U:s)+" Browser")):"Electron"==j&&(s=(/\bChrome\/([\d.]+)\b/.exec(t)||0)[1])&&R.push("Chromium "+s),L||(L=W(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",m(j),"(?:Firefox|Minefield|NetFront)"])),(s=("iCab"==V&&parseFloat(L)>3?"WebKit":/\bOpera\b/.test(j)&&(/\bOPR\b/.test(t)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(t)&&!/^(?:Trident|EdgeHTML)$/.test(V)&&"WebKit"||!V&&/\bMSIE\b/i.test(t)&&("Mac OS"==U?"Tasman":"Trident")||"WebKit"==V&&/\bPlayStation\b(?! Vita\b)/i.test(j)&&"NetFront")&&(V=[s]),"IE"==j&&(s=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(t)||0)[1])?(j+=" Mobile",U="Windows Phone "+(/\+$/.test(s)?s:s+".x"),R.unshift("desktop mode")):/\bWPDesktop\b/i.test(t)?(j="IE Mobile",U="Windows Phone 8.x",R.unshift("desktop mode"),L||(L=(/\brv:([\d.]+)/.exec(t)||0)[1])):"IE"!=j&&"Trident"==V&&(s=/\brv:([\d.]+)/.exec(t))&&(j&&R.push("identifying as "+j+(L?" "+L:"")),j="IE",L=s[1]),N){if(/^(?:boolean|number|string|undefined)$/.test(d=null!=(l=n)?typeof l.global:"number")||"object"==d&&!l.global)v(s=n.runtime)==k?(j="Adobe AIR",U=s.flash.system.Capabilities.os):v(s=n.phantom)==C?(j="PhantomJS",L=(s=s.version||null)&&s.major+"."+s.minor+"."+s.patch):"number"==typeof M.documentMode&&(s=/\bTrident\/(\d+)/i.exec(t))?((s=+s[1]+4)!=(L=[L,M.documentMode])[1]&&(R.push("IE "+L[1]+" mode"),V&&(V[1]=""),L[1]=s),L="IE"==j?String(L[1].toFixed(1)):L[0]):"number"==typeof M.documentMode&&/^(?:Chrome|Firefox)\b/.test(j)&&(R.push("masking as "+j+" "+L),j="IE",L="11.0",V=["Trident"],U="Windows");else if(E&&(A=(s=E.lang.System).getProperty("os.arch"),U=U||s.getProperty("os.name")+" "+s.getProperty("os.version")),O){try{L=n.require("ringo/engine").version.join("."),j="RingoJS"}catch(G){(s=n.system)&&s.global.system==n.system&&(j="Narwhal",U||(U=s[0].os||null))}j||(j="Rhino")}else"object"==typeof n.process&&!n.process.browser&&(s=n.process)&&("object"==typeof s.versions&&("string"==typeof s.versions.electron?(R.push("Node "+s.versions.node),j="Electron",L=s.versions.electron):"string"==typeof s.versions.nw&&(R.push("Chromium "+L,"Node "+s.versions.node),j="NW.js",L=s.versions.nw)),j||(j="Node.js",A=s.arch,U=s.platform,L=(L=/[\d.]+/.exec(s.version))?L[0]:null));U=U&&f(U)}if(L&&(s=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(L)||/(?:alpha|beta)(?: ?\d)?/i.exec(t+";"+(N&&r.appMinorVersion))||/\bMinefield\b/i.test(t)&&"a")&&(D=/b/i.test(s)?"beta":"alpha",L=L.replace(RegExp(s+"\\+?$"),"")+("beta"==D?T:x)+(/\d+\+?/.exec(s)||"")),"Fennec"==j||"Firefox"==j&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(U))j="Firefox Mobile";else if("Maxthon"==j&&L)L=L.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(F))"Xbox 360"==F&&(U=null),"Xbox 360"==F&&/\bIEMobile\b/.test(t)&&R.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(j)&&(!j||F||/Browser|Mobi/.test(j))||"Windows CE"!=U&&!/Mobi/i.test(t))if("IE"==j&&N)try{null===n.external&&R.unshift("platform preview")}catch(G){R.unshift("embedded")}else(/\bBlackBerry\b/.test(F)||/\bBB10\b/.test(t))&&(s=(RegExp(F.replace(/ +/g," *")+"/([.\\d]+)","i").exec(t)||0)[1]||L)?(U=((s=[s,/BB10/.test(t)])[1]?(F=null,B="BlackBerry"):"Device Software")+" "+s[0],L=null):this!=p&&"Wii"!=F&&(N&&P||/Opera/.test(j)&&/\b(?:MSIE|Firefox)\b/i.test(t)||"Firefox"==j&&/\bOS X (?:\d+\.){2,}/.test(U)||"IE"==j&&(U&&!/^Win/.test(U)&&L>5.5||/\bWindows XP\b/.test(U)&&L>8||8==L&&!/\bTrident\b/.test(t)))&&!u.test(s=e.call(p,t.replace(u,"")+";"))&&s.name&&(s="ing as "+s.name+((s=s.version)?" "+s:""),u.test(j)?(/\bIE\b/.test(s)&&"Mac OS"==U&&(U=null),s="identify"+s):(s="mask"+s,j=I?f(I.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(s)&&(U=null),N||(L=null)),V=["Presto"],R.push(s));else j+=" Mobile";(s=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(t)||0)[1])&&(s=[parseFloat(s.replace(/\.(\d)$/,".0$1")),s],"Safari"==j&&"+"==s[1].slice(-1)?(j="WebKit Nightly",D="alpha",L=s[1].slice(0,-1)):L!=s[1]&&L!=(s[2]=(/\bSafari\/([\d.]+\+?)/i.exec(t)||0)[1])||(L=null),s[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(t)||0)[1],537.36==s[0]&&537.36==s[2]&&parseFloat(s[1])>=28&&"WebKit"==V&&(V=["Blink"]),N&&(b||s[1])?(V&&(V[1]="like Chrome"),s=s[1]||((s=s[0])<530?1:s<532?2:s<532.05?3:s<533?4:s<534.03?5:s<534.07?6:s<534.1?7:s<534.13?8:s<534.16?9:s<534.24?10:s<534.3?11:s<535.01?12:s<535.02?"13+":s<535.07?15:s<535.11?16:s<535.19?17:s<536.05?18:s<536.1?19:s<537.01?20:s<537.11?"21+":s<537.13?23:s<537.18?24:s<537.24?25:s<537.36?26:"Blink"!=V?"27":"28")):(V&&(V[1]="like Safari"),s=(s=s[0])<400?1:s<500?2:s<526?3:s<533?4:s<534?"4+":s<535?5:s<537?6:s<538?7:s<601?8:s<602?9:s<604?10:s<606?11:s<608?12:"12"),V&&(V[1]+=" "+(s+="number"==typeof s?".x":/[.+]/.test(s)?"":"+")),"Safari"==j&&(!L||parseInt(L)>45)?L=s:"Chrome"==j&&/\bHeadlessChrome/i.test(t)&&R.unshift("headless")),"Opera"==j&&(s=/\bzbov|zvav$/.exec(U))?(j+=" ",R.unshift("desktop mode"),"zvav"==s?(j+="Mini",L=null):j+="Mobile",U=U.replace(RegExp(" *"+s+"$"),"")):"Safari"==j&&/\bChrome\b/.exec(V&&V[1])?(R.unshift("desktop mode"),j="Chrome Mobile",L=null,/\bOS X\b/.test(U)?(B="Apple",U="iOS 4.3+"):U=null):/\bSRWare Iron\b/.test(j)&&!L&&(L=W("Chrome")),L&&0==L.indexOf(s=/[\d.]+$/.exec(U))&&t.indexOf("/"+s+"-")>-1&&(U=y(U.replace(s,""))),U&&-1!=U.indexOf(j)&&!RegExp(j+" OS").test(U)&&(U=U.replace(RegExp(" *"+m(j)+" *"),"")),V&&!/\b(?:Avant|Nook)\b/.test(j)&&(/Browser|Lunascape|Maxthon/.test(j)||"Safari"!=j&&/^iOS/.test(U)&&/\bSafari\b/.test(V[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(j)&&V[1])&&(s=V[V.length-1])&&R.push(s),R.length&&(R=["("+R.join("; ")+")"]),B&&F&&F.indexOf(B)<0&&R.push("on "+B),F&&R.push((/^on /.test(R[R.length-1])?"":"on ")+F),U&&(s=/ ([\d.+]+)$/.exec(U),c=s&&"/"==U.charAt(U.length-s[0].length-1),U={architecture:32,family:s&&!c?U.replace(s[0],""):U,version:s?s[1]:null,toString:function(){var e=this.version;return this.family+(e&&!c?" "+e:"")+(64==this.architecture?" 64-bit":"")}}),(s=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(A))&&!/\bi686\b/i.test(A)?(U&&(U.architecture=64,U.family=U.family.replace(RegExp(" *"+s),"")),j&&(/\bWOW64\b/i.test(t)||N&&/\w(?:86|32)$/.test(r.cpuClass||r.platform)&&!/\bWin64; x64\b/i.test(t))&&R.unshift("32-bit")):U&&/^OS X/.test(U.family)&&"Chrome"==j&&parseFloat(L)>=39&&(U.architecture=64),t||(t=null);var H={};return H.description=t,H.layout=V&&V[0],H.manufacturer=B,H.name=j,H.prerelease=D,H.product=F,H.ua=t,H.version=j&&L,H.os=U||{architecture:null,family:null,version:null,toString:function(){return"null"}},H.parse=e,H.toString=function(){return this.description||""},H.version&&R.unshift(L),H.name&&R.unshift(j),U&&j&&(U!=String(U).split(" ")[0]||U!=j.split(" ")[0]&&!F)&&R.push(F?"("+U+")":"on "+U),R.length&&(H.description=R.join(" ")),H}();o.platform=b,void 0===(i=(function(){return b}).call(t,n,t,e))||(e.exports=i)}).call(this)}).call(this,n("YuTi")(e))},"/dLB":function(e,t,n){"use strict";var i;t.__esModule=!0,t.VideoInsertMode=void 0,(i=t.VideoInsertMode||(t.VideoInsertMode={})).AFTER="AFTER",i.APPEND="APPEND",i.BEFORE="BEFORE",i.PREPEND="PREPEND",i.REPLACE="REPLACE"},"/u9M":function(e,t,n){"use strict";t.__esModule=!0;var i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n("LXjW")),r=i.tokenize,o=i.options.Options;function a(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function s(e){return e.replace(/"/g,"&quot;")}function u(e){if(!e)return"";var t=[];for(var n in e)t.push(n+'="'+s(e[n]+"")+'"');return t.join(" ")}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=new o(t);for(var n=r(e),i=[],c=0;c<n.length;c++){var l=n[c];if("nl"===l.type&&t.nl2br)i.push("<br>\n");else if(l.isLink&&t.check(l)){var h=t.resolve(l),d=h.formatted,f=h.formattedHref,p=h.tagName,v=h.className,m=h.target,g=h.attributes,y="<"+p+' href="'+s(f)+'"';v&&(y+=' class="'+s(v)+'"'),m&&(y+=' target="'+s(m)+'"'),g&&(y+=" "+u(g)),y+=">"+a(d)+"</"+p+">",i.push(y)}else i.push(a(l.toString()))}return i.join("")}if(!String.prototype.linkify)try{Object.defineProperty(String.prototype,"linkify",{set:function(){},get:function(){return function(e){return c(this,e)}}})}catch(l){String.prototype.linkify||(String.prototype.linkify=function(e){return c(this,e)})}t.default=c},0:function(e,t,n){e.exports=n("zUnb")},"0wxW":function(e,t,n){var i=n("de4E"),r=n("pLL0");t.JsonRPC=i,t.XmlRPC=r},"4O8T":function(e,t,n){var i;!function(t){"use strict";function r(){}var o=r.prototype,a=t.EventEmitter;function s(e,t){for(var n=e.length;n--;)if(e[n].listener===t)return n;return-1}function u(e){return function(){return this[e].apply(this,arguments)}}o.getListeners=function(e){var t,n,i=this._getEvents();if(e instanceof RegExp)for(n in t={},i)i.hasOwnProperty(n)&&e.test(n)&&(t[n]=i[n]);else t=i[e]||(i[e]=[]);return t},o.flattenListeners=function(e){var t,n=[];for(t=0;t<e.length;t+=1)n.push(e[t].listener);return n},o.getListenersAsObject=function(e){var t,n=this.getListeners(e);return n instanceof Array&&((t={})[e]=n),t||n},o.addListener=function(e,t){if(!function e(t){return"function"==typeof t||t instanceof RegExp||!(!t||"object"!=typeof t)&&e(t.listener)}(t))throw new TypeError("listener must be a function");var n,i=this.getListenersAsObject(e),r="object"==typeof t;for(n in i)i.hasOwnProperty(n)&&-1===s(i[n],t)&&i[n].push(r?t:{listener:t,once:!1});return this},o.on=u("addListener"),o.addOnceListener=function(e,t){return this.addListener(e,{listener:t,once:!0})},o.once=u("addOnceListener"),o.defineEvent=function(e){return this.getListeners(e),this},o.defineEvents=function(e){for(var t=0;t<e.length;t+=1)this.defineEvent(e[t]);return this},o.removeListener=function(e,t){var n,i,r=this.getListenersAsObject(e);for(i in r)r.hasOwnProperty(i)&&-1!==(n=s(r[i],t))&&r[i].splice(n,1);return this},o.off=u("removeListener"),o.addListeners=function(e,t){return this.manipulateListeners(!1,e,t)},o.removeListeners=function(e,t){return this.manipulateListeners(!0,e,t)},o.manipulateListeners=function(e,t,n){var i,r,o=e?this.removeListener:this.addListener,a=e?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(i=n.length;i--;)o.call(this,t,n[i]);else for(i in t)t.hasOwnProperty(i)&&(r=t[i])&&("function"==typeof r?o.call(this,i,r):a.call(this,i,r));return this},o.removeEvent=function(e){var t,n=typeof e,i=this._getEvents();if("string"===n)delete i[e];else if(e instanceof RegExp)for(t in i)i.hasOwnProperty(t)&&e.test(t)&&delete i[t];else delete this._events;return this},o.removeAllListeners=u("removeEvent"),o.emitEvent=function(e,t){var n,i,r,o,a=this.getListenersAsObject(e);for(o in a)if(a.hasOwnProperty(o))for(n=a[o].slice(0),r=0;r<n.length;r++)!0===(i=n[r]).once&&this.removeListener(e,i.listener),i.listener.apply(this,t||[])===this._getOnceReturnValue()&&this.removeListener(e,i.listener);return this},o.trigger=u("emitEvent"),o.emit=function(e){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(e,t)},o.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},o._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},o._getEvents=function(){return this._events||(this._events={})},r.noConflict=function(){return t.EventEmitter=a,r},void 0===(i=(function(){return r}).call(t,n,t,e))||(e.exports=i)}("undefined"!=typeof window?window:this||{})},"4USb":function(e,t,n){"use strict";n.r(t),n.d(t,"v1",(function(){return v})),n.d(t,"v3",(function(){return E})),n.d(t,"v4",(function(){return O})),n.d(t,"v5",(function(){return M})),n.d(t,"NIL",(function(){return P})),n.d(t,"version",(function(){return I})),n.d(t,"validate",(function(){return s})),n.d(t,"stringify",(function(){return d})),n.d(t,"parse",(function(){return m}));var i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),r=new Uint8Array(16);function o(){if(!i)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(r)}for(var a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,s=function(e){return"string"==typeof e&&a.test(e)},u=[],c=0;c<256;++c)u.push((c+256).toString(16).substr(1));var l,h,d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(u[e[t+0]]+u[e[t+1]]+u[e[t+2]]+u[e[t+3]]+"-"+u[e[t+4]]+u[e[t+5]]+"-"+u[e[t+6]]+u[e[t+7]]+"-"+u[e[t+8]]+u[e[t+9]]+"-"+u[e[t+10]]+u[e[t+11]]+u[e[t+12]]+u[e[t+13]]+u[e[t+14]]+u[e[t+15]]).toLowerCase();if(!s(n))throw TypeError("Stringified UUID is invalid");return n},f=0,p=0,v=function(e,t,n){var i=t&&n||0,r=t||new Array(16),a=(e=e||{}).node||l,s=void 0!==e.clockseq?e.clockseq:h;if(null==a||null==s){var u=e.random||(e.rng||o)();null==a&&(a=l=[1|u[0],u[1],u[2],u[3],u[4],u[5]]),null==s&&(s=h=16383&(u[6]<<8|u[7]))}var c=void 0!==e.msecs?e.msecs:Date.now(),v=void 0!==e.nsecs?e.nsecs:p+1,m=c-f+(v-p)/1e4;if(m<0&&void 0===e.clockseq&&(s=s+1&16383),(m<0||c>f)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");f=c,p=v,h=s;var g=(1e4*(268435455&(c+=122192928e5))+v)%4294967296;r[i++]=g>>>24&255,r[i++]=g>>>16&255,r[i++]=g>>>8&255,r[i++]=255&g;var y=c/4294967296*1e4&268435455;r[i++]=y>>>8&255,r[i++]=255&y,r[i++]=y>>>24&15|16,r[i++]=y>>>16&255,r[i++]=s>>>8|128,r[i++]=255&s;for(var b=0;b<6;++b)r[i+b]=a[b];return t||d(r)},m=function(e){if(!s(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n},g=function(e,t,n){function i(e,i,r,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof i&&(i=m(i)),16!==i.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+e.length);if(a.set(i),a.set(e,i.length),(a=n(a))[6]=15&a[6]|t,a[8]=63&a[8]|128,r){o=o||0;for(var s=0;s<16;++s)r[o+s]=a[s];return r}return d(a)}try{i.name=e}catch(r){}return i.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",i.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",i};function y(e){return 14+(e+64>>>9<<4)+1}function b(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function _(e,t,n,i,r,o){return b((a=b(b(t,e),b(i,o)))<<(s=r)|a>>>32-s,n);var a,s}function k(e,t,n,i,r,o,a){return _(t&n|~t&i,e,t,r,o,a)}function w(e,t,n,i,r,o,a){return _(t&i|n&~i,e,t,r,o,a)}function S(e,t,n,i,r,o,a){return _(t^n^i,e,t,r,o,a)}function C(e,t,n,i,r,o,a){return _(n^(t|~i),e,t,r,o,a)}var E=g("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,i="0123456789abcdef",r=0;r<n;r+=8){var o=e[r>>5]>>>r%32&255,a=parseInt(i.charAt(o>>>4&15)+i.charAt(15&o),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[y(t)-1]=t;for(var n=1732584193,i=-271733879,r=-1732584194,o=271733878,a=0;a<e.length;a+=16){var s=n,u=i,c=r,l=o;n=k(n,i,r,o,e[a],7,-680876936),o=k(o,n,i,r,e[a+1],12,-389564586),r=k(r,o,n,i,e[a+2],17,606105819),i=k(i,r,o,n,e[a+3],22,-1044525330),n=k(n,i,r,o,e[a+4],7,-176418897),o=k(o,n,i,r,e[a+5],12,1200080426),r=k(r,o,n,i,e[a+6],17,-1473231341),i=k(i,r,o,n,e[a+7],22,-45705983),n=k(n,i,r,o,e[a+8],7,1770035416),o=k(o,n,i,r,e[a+9],12,-1958414417),r=k(r,o,n,i,e[a+10],17,-42063),i=k(i,r,o,n,e[a+11],22,-1990404162),n=k(n,i,r,o,e[a+12],7,1804603682),o=k(o,n,i,r,e[a+13],12,-40341101),r=k(r,o,n,i,e[a+14],17,-1502002290),n=w(n,i=k(i,r,o,n,e[a+15],22,1236535329),r,o,e[a+1],5,-165796510),o=w(o,n,i,r,e[a+6],9,-1069501632),r=w(r,o,n,i,e[a+11],14,643717713),i=w(i,r,o,n,e[a],20,-373897302),n=w(n,i,r,o,e[a+5],5,-701558691),o=w(o,n,i,r,e[a+10],9,38016083),r=w(r,o,n,i,e[a+15],14,-660478335),i=w(i,r,o,n,e[a+4],20,-405537848),n=w(n,i,r,o,e[a+9],5,568446438),o=w(o,n,i,r,e[a+14],9,-1019803690),r=w(r,o,n,i,e[a+3],14,-187363961),i=w(i,r,o,n,e[a+8],20,1163531501),n=w(n,i,r,o,e[a+13],5,-1444681467),o=w(o,n,i,r,e[a+2],9,-51403784),r=w(r,o,n,i,e[a+7],14,1735328473),n=S(n,i=w(i,r,o,n,e[a+12],20,-1926607734),r,o,e[a+5],4,-378558),o=S(o,n,i,r,e[a+8],11,-2022574463),r=S(r,o,n,i,e[a+11],16,1839030562),i=S(i,r,o,n,e[a+14],23,-35309556),n=S(n,i,r,o,e[a+1],4,-1530992060),o=S(o,n,i,r,e[a+4],11,1272893353),r=S(r,o,n,i,e[a+7],16,-155497632),i=S(i,r,o,n,e[a+10],23,-1094730640),n=S(n,i,r,o,e[a+13],4,681279174),o=S(o,n,i,r,e[a],11,-358537222),r=S(r,o,n,i,e[a+3],16,-722521979),i=S(i,r,o,n,e[a+6],23,76029189),n=S(n,i,r,o,e[a+9],4,-640364487),o=S(o,n,i,r,e[a+12],11,-421815835),r=S(r,o,n,i,e[a+15],16,530742520),n=C(n,i=S(i,r,o,n,e[a+2],23,-995338651),r,o,e[a],6,-198630844),o=C(o,n,i,r,e[a+7],10,1126891415),r=C(r,o,n,i,e[a+14],15,-1416354905),i=C(i,r,o,n,e[a+5],21,-57434055),n=C(n,i,r,o,e[a+12],6,1700485571),o=C(o,n,i,r,e[a+3],10,-1894986606),r=C(r,o,n,i,e[a+10],15,-1051523),i=C(i,r,o,n,e[a+1],21,-2054922799),n=C(n,i,r,o,e[a+8],6,1873313359),o=C(o,n,i,r,e[a+15],10,-30611744),r=C(r,o,n,i,e[a+6],15,-1560198380),i=C(i,r,o,n,e[a+13],21,1309151649),n=C(n,i,r,o,e[a+4],6,-145523070),o=C(o,n,i,r,e[a+11],10,-1120210379),r=C(r,o,n,i,e[a+2],15,718787259),i=C(i,r,o,n,e[a+9],21,-343485551),n=b(n,s),i=b(i,u),r=b(r,c),o=b(o,l)}return[n,i,r,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(y(t)),i=0;i<t;i+=8)n[i>>5]|=(255&e[i/8])<<i%32;return n}(e),8*e.length))})),O=function(e,t,n){var i=(e=e||{}).random||(e.rng||o)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(var r=0;r<16;++r)t[n+r]=i[r];return t}return d(i)};function x(e,t,n,i){switch(e){case 0:return t&n^~t&i;case 1:return t^n^i;case 2:return t&n^t&i^n&i;case 3:return t^n^i}}function T(e,t){return e<<t|e>>>32-t}var M=g("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var i=unescape(encodeURIComponent(e));e=[];for(var r=0;r<i.length;++r)e.push(i.charCodeAt(r))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=Math.ceil((e.length/4+2)/16),a=new Array(o),s=0;s<o;++s){for(var u=new Uint32Array(16),c=0;c<16;++c)u[c]=e[64*s+4*c]<<24|e[64*s+4*c+1]<<16|e[64*s+4*c+2]<<8|e[64*s+4*c+3];a[s]=u}a[o-1][14]=8*(e.length-1)/Math.pow(2,32),a[o-1][14]=Math.floor(a[o-1][14]),a[o-1][15]=8*(e.length-1)&4294967295;for(var l=0;l<o;++l){for(var h=new Uint32Array(80),d=0;d<16;++d)h[d]=a[l][d];for(var f=16;f<80;++f)h[f]=T(h[f-3]^h[f-8]^h[f-14]^h[f-16],1);for(var p=n[0],v=n[1],m=n[2],g=n[3],y=n[4],b=0;b<80;++b){var _=Math.floor(b/20),k=T(p,5)+x(_,v,m,g)+y+t[_]+h[b]>>>0;y=g,g=m,m=T(v,30)>>>0,v=p,p=k}n[0]=n[0]+p>>>0,n[1]=n[1]+v>>>0,n[2]=n[2]+m>>>0,n[3]=n[3]+g>>>0,n[4]=n[4]+y>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]})),P="00000000-0000-0000-0000-000000000000",I=function(e){if(!s(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},"4jfU":function(e,t,n){"use strict";t.__esModule=!0,t.PlatformUtils=void 0;var i=n("+qwt"),r=function(){function e(){}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.prototype.isChromeBrowser=function(){return"Chrome"===i.name},e.prototype.isSafariBrowser=function(){return"Safari"===i.name},e.prototype.isChromeMobileBrowser=function(){return"Chrome Mobile"===i.name},e.prototype.isFirefoxBrowser=function(){return"Firefox"===i.name},e.prototype.isFirefoxMobileBrowser=function(){return"Firefox Mobile"===i.name},e.prototype.isOperaBrowser=function(){return"Opera"===i.name},e.prototype.isOperaMobileBrowser=function(){return"Opera Mobile"===i.name},e.prototype.isAndroidBrowser=function(){return"Android Browser"===i.name},e.prototype.isElectron=function(){return"Electron"===i.name},e.prototype.isSamsungBrowser=function(){return"Samsung Internet Mobile"===i.name||"Samsung Internet"===i.name},e.prototype.isIPhoneOrIPad=function(){var e=i.ua?i.ua:navigator.userAgent,t="ontouchend"in document,n=/\b(\w*Macintosh\w*)\b/.test(e)&&t,r=/\b(\w*iPhone\w*)\b/.test(e)&&/\b(\w*Mobile\w*)\b/.test(e)&&t;return n||r},e.prototype.isIOSWithSafari=function(){var e=i.ua?i.ua:navigator.userAgent;return/\b(\w*Apple\w*)\b/.test(navigator.vendor)&&/\b(\w*Safari\w*)\b/.test(e)&&!/\b(\w*CriOS\w*)\b/.test(e)&&!/\b(\w*FxiOS\w*)\b/.test(e)},e.prototype.isIonicIos=function(){return this.isIPhoneOrIPad()&&-1===i.ua.indexOf("Safari")},e.prototype.isIonicAndroid=function(){return"Android"===i.os.family&&"Android Browser"==i.name},e.prototype.isMobileDevice=function(){return"iOS"===i.os.family||"Android"===i.os.family},e.prototype.canScreenShare=function(){var e=(null==i?void 0:i.version)?parseFloat(i.version):-1;return!this.isMobileDevice()&&(this.isChromeBrowser()||this.isFirefoxBrowser()||this.isOperaBrowser()||this.isElectron()||this.isSafariBrowser()&&e>=13)},e.prototype.getName=function(){return i.name||""},e.prototype.getVersion=function(){return i.version||""},e.prototype.getFamily=function(){return i.os.family||""},e.prototype.getDescription=function(){return i.description||""},e}();t.PlatformUtils=r},"5bWi":function(e){e.exports=JSON.parse('["stun.l.google.com:19302","stun1.l.google.com:19302","stun2.l.google.com:19302","stun3.l.google.com:19302","stun4.l.google.com:19302","stun.ekiga.net","stun.ideasip.com","stun.schlund.de","stun.stunprotocol.org:3478","stun.voiparound.com","stun.voipbuster.com","stun.voipstunt.com","stun.voxgratia.org"]')},"5kmN":function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});t.__esModule=!0,t.WebRtcPeerSendrecv=t.WebRtcPeerSendonly=t.WebRtcPeerRecvonly=t.WebRtcPeer=void 0;var o=n("8fGR"),a=n("4USb"),s=n("9m68"),u=n("4jfU"),c=s.OpenViduLogger.getInstance(),l=u.PlatformUtils.getInstance(),h=function(){function e(e){var t=this;this.configuration=e,this.remoteCandidatesQueue=[],this.localCandidatesQueue=[],this.iceCandidateList=[],this.candidategatheringdone=!1,this.configuration.iceServers=this.configuration.iceServers&&this.configuration.iceServers.length>0?this.configuration.iceServers:o(),this.pc=new RTCPeerConnection({iceServers:this.configuration.iceServers}),this.id=e.id?e.id:this.generateUniqueId(),this.pc.onicecandidate=function(e){if(e.candidate){var n=e.candidate;n?(t.localCandidatesQueue.push({candidate:n.candidate}),t.candidategatheringdone=!1,t.configuration.onicecandidate(e.candidate)):t.candidategatheringdone||(t.candidategatheringdone=!0)}},this.pc.onsignalingstatechange=function(){if("stable"===t.pc.signalingState)for(;t.iceCandidateList.length>0;){var e=t.iceCandidateList.shift();t.pc.addIceCandidate(e)}},this.start()}return e.prototype.start=function(){var e=this;return new Promise((function(t,n){if("closed"===e.pc.signalingState&&n('The peer connection object is in "closed" state. This is most likely due to an invocation of the dispose method before accepting in the dialogue'),e.configuration.mediaStream){for(var i=0,r=e.configuration.mediaStream.getTracks();i<r.length;i++)e.pc.addTrack(r[i],e.configuration.mediaStream);t()}}))},e.prototype.dispose=function(){if(c.debug("Disposing WebRtcPeer"),this.pc){if("closed"===this.pc.signalingState)return;this.pc.close(),this.remoteCandidatesQueue=[],this.localCandidatesQueue=[]}},e.prototype.generateOffer=function(){var e=this;return new Promise((function(t,n){var i,r=!0;e.configuration.mediaConstraints&&(i="boolean"!=typeof e.configuration.mediaConstraints.audio||e.configuration.mediaConstraints.audio,r="boolean"!=typeof e.configuration.mediaConstraints.video||e.configuration.mediaConstraints.video);var o={offerToReceiveAudio:"sendonly"!==e.configuration.mode&&i,offerToReceiveVideo:"sendonly"!==e.configuration.mode&&r};c.debug("RTCPeerConnection constraints: "+JSON.stringify(o)),l.isSafariBrowser()&&!l.isIonicIos()?(i&&e.pc.addTransceiver("audio",{direction:e.configuration.mode}),r&&e.pc.addTransceiver("video",{direction:e.configuration.mode}),e.pc.createOffer().then((function(t){return c.debug("Created SDP offer"),e.pc.setLocalDescription(t)})).then((function(){var i=e.pc.localDescription;i?(c.debug("Local description set",i.sdp),t(i.sdp)):n("Local description is not defined")})).catch((function(e){return n(e)}))):e.pc.createOffer(o).then((function(t){return c.debug("Created SDP offer"),e.pc.setLocalDescription(t)})).then((function(){var i=e.pc.localDescription;i?(c.debug("Local description set",i.sdp),t(i.sdp)):n("Local description is not defined")})).catch((function(e){return n(e)}))}))},e.prototype.processAnswer=function(e,t){var n=this;return new Promise((function(i,r){var o={type:"answer",sdp:e};c.debug("SDP answer received, setting remote description"),"closed"===n.pc.signalingState&&r("RTCPeerConnection is closed"),n.setRemoteDescription(o,t,i,r)}))},e.prototype.setRemoteDescription=function(e,t,n,i){var r=this;l.isIonicIos()?t?setTimeout((function(){c.info("setRemoteDescription run after timeout for Ionic iOS device"),r.pc.setRemoteDescription(new RTCSessionDescription(e)).then((function(){return n()})).catch((function(e){return i(e)}))}),250):this.pc.setRemoteDescription(new RTCSessionDescription(e)).then((function(){return n()})).catch((function(e){return i(e)})):this.pc.setRemoteDescription(e).then((function(){return n()})).catch((function(e){return i(e)}))},e.prototype.addIceCandidate=function(e){var t=this;return new Promise((function(n,i){switch(c.debug("Remote ICE candidate received",e),t.remoteCandidatesQueue.push(e),t.pc.signalingState){case"closed":i(new Error("PeerConnection object is closed"));break;case"stable":t.pc.remoteDescription?t.pc.addIceCandidate(e).then((function(){return n()})).catch((function(e){return i(e)})):(t.iceCandidateList.push(e),n());break;default:t.iceCandidateList.push(e),n()}}))},e.prototype.addIceConnectionStateChangeListener=function(e){var t=this;this.pc.oniceconnectionstatechange=function(){switch(t.pc.iceConnectionState){case"disconnected":c.warn("IceConnectionState of RTCPeerConnection "+t.id+" ("+e+') change to "disconnected". Possible network disconnection');break;case"failed":c.error("IceConnectionState of RTCPeerConnection "+t.id+" ("+e+') to "failed"');break;case"closed":c.log("IceConnectionState of RTCPeerConnection "+t.id+" ("+e+') change to "closed"');break;case"new":c.log("IceConnectionState of RTCPeerConnection "+t.id+" ("+e+') change to "new"');break;case"checking":c.log("IceConnectionState of RTCPeerConnection "+t.id+" ("+e+') change to "checking"');break;case"connected":c.log("IceConnectionState of RTCPeerConnection "+t.id+" ("+e+') change to "connected"');break;case"completed":c.log("IceConnectionState of RTCPeerConnection "+t.id+" ("+e+') change to "completed"')}}},e.prototype.generateUniqueId=function(){return a.v4()},e}();t.WebRtcPeer=h;var d=function(e){function t(t){return t.mode="recvonly",e.call(this,t)||this}return r(t,e),t}(h);t.WebRtcPeerRecvonly=d;var f=function(e){function t(t){return t.mode="sendonly",e.call(this,t)||this}return r(t,e),t}(h);t.WebRtcPeerSendonly=f;var p=function(e){function t(t){return t.mode="sendrecv",e.call(this,t)||this}return r(t,e),t}(h);t.WebRtcPeerSendrecv=p},"6qA3":function(e,t,n){"use strict";var i=n("OAkW"),r=n("Z5tI"),o=n("poJ0"),a=n("ozli"),s=n("yRPT"),u=n("90cg"),c=n("GMZp"),l=n("VKeD"),h=n("zfKp");t.subscribeTo=function(e){if(e&&"function"==typeof e[h.observable])return a.subscribeToObservable(e);if(s.isArrayLike(e))return i.subscribeToArray(e);if(u.isPromise(e))return r.subscribeToPromise(e);if(e&&"function"==typeof e[l.iterator])return o.subscribeToIterable(e);var t=c.isObject(e)?"an invalid object":"'"+e+"'";throw new TypeError("You provided "+t+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},"74bm":function(e,t,n){"use strict";t.__esModule=!0,t.Filter=void 0;var i=n("BwMD"),r=n("Tt94"),o=n("9m68").OpenViduLogger.getInstance(),a=function(){function e(e,t){this.handlers={},this.type=e,this.options=t}return e.prototype.execMethod=function(e,t){var n=this;return new Promise((function(a,s){var u;if(o.info("Executing filter method to stream "+n.stream.streamId),"string"!=typeof t)try{u=JSON.stringify(t)}catch(l){var c="'params' property must be a JSON formatted object";o.error(c),s(c)}else u=t;n.stream.session.openvidu.sendRequest("execFilterMethod",{streamId:n.stream.streamId,method:e,params:u},(function(t,c){if(t)o.error("Error executing filter method for Stream "+n.stream.streamId,t),s(401===t.code?new r.OpenViduError(r.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to execute a filter method"):t);else{o.info("Filter method successfully executed on Stream "+n.stream.streamId);var l=Object.assign({},n.stream.filter);n.stream.filter.lastExecMethod={method:e,params:JSON.parse(u)},n.stream.session.emitEvent("streamPropertyChanged",[new i.StreamPropertyChangedEvent(n.stream.session,n.stream,"filter",n.stream.filter,l,"execFilterMethod")]),n.stream.streamManager.emitEvent("streamPropertyChanged",[new i.StreamPropertyChangedEvent(n.stream.streamManager,n.stream,"filter",n.stream.filter,l,"execFilterMethod")]),a()}}))}))},e.prototype.addEventListener=function(e,t){var n=this;return new Promise((function(i,a){o.info("Adding filter event listener to event "+e+" to stream "+n.stream.streamId),n.stream.session.openvidu.sendRequest("addFilterEventListener",{streamId:n.stream.streamId,eventType:e},(function(s,u){s?(o.error("Error adding filter event listener to event "+e+"for Stream "+n.stream.streamId,s),a(401===s.code?new r.OpenViduError(r.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to add a filter event listener"):s)):(n.handlers[e]=t,o.info("Filter event listener to event "+e+" successfully applied on Stream "+n.stream.streamId),i())}))}))},e.prototype.removeEventListener=function(e){var t=this;return new Promise((function(n,i){o.info("Removing filter event listener to event "+e+" to stream "+t.stream.streamId),t.stream.session.openvidu.sendRequest("removeFilterEventListener",{streamId:t.stream.streamId,eventType:e},(function(a,s){a?(o.error("Error removing filter event listener to event "+e+"for Stream "+t.stream.streamId,a),i(401===a.code?new r.OpenViduError(r.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to add a filter event listener"):a)):(delete t.handlers[e],o.info("Filter event listener to event "+e+" successfully removed on Stream "+t.stream.streamId),n())}))}))},e}();t.Filter=a},"7RJT":function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("ds6q"),o=n("Mxlh");t.BehaviorSubject=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return i(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.ObjectUnsubscribedError;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(r.Subject)},"8KVD":function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});t.__esModule=!0,t.ConnectionEvent=void 0;var o=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i)||this;return a.connection=r,a.reason=o,a}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(n("hzOQ").Event);t.ConnectionEvent=o},"8b8G":function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});t.__esModule=!0,t.ConnectionPropertyChangedEvent=void 0;var o=function(e){function t(t,n,i,r,o){var a=e.call(this,!1,t,"connectionPropertyChanged")||this;return a.connection=n,a.changedProperty=i,a.newValue=r,a.oldValue=o,a}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(n("hzOQ").Event);t.ConnectionPropertyChangedEvent=o},"8fGR":function(e,t,n){"use strict";var i=n("ohuM");e.exports=function(e){var t,r={stun:(e||{}).stun||n("5bWi"),turn:(e||{}).turn||n("wJ6L")},o=(e||{}).turnCount||0;function a(e,t){for(var n,o=[],a=[].concat(r[e]);a.length&&o.length<t;)n=Math.random()*a.length|0,o=o.concat(a.splice(n,1));return o.map((function(t){return"string"==typeof t||t instanceof String?i(e+":"+t):t}))}return t=[].concat(a("stun",(e||{}).stunCount||2)),o&&(t=t.concat(a("turn",o))),t}},"90cg":function(e,t,n){"use strict";t.isPromise=function(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}},"9AGB":function(e,t,n){"use strict";var i=n("yoF8");function r(e){return 0===e.length?i.identity:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}t.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r(e)},t.pipeFromArray=r},"9m68":function(e,t,n){"use strict";t.__esModule=!0,t.OpenViduLogger=void 0;var i=function(){function e(){this.logger=window.console,this.LOG_FNS=[this.logger.log,this.logger.debug,this.logger.info,this.logger.warn,this.logger.error],this.isProdMode=!1}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.isProdMode||this.LOG_FNS[0].apply(this.logger,arguments)},e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.isProdMode||this.LOG_FNS[1].apply(this.logger,arguments)},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.isProdMode||this.LOG_FNS[2].apply(this.logger,arguments)},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.isProdMode||this.LOG_FNS[3].apply(this.logger,arguments)},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.LOG_FNS[4].apply(this.logger,arguments)},e.prototype.enableProdMode=function(){this.isProdMode=!0},e}();t.OpenViduLogger=i},AeG9:function(e,t,n){var i=!1;if(Object.defineProperty)try{Object.defineProperty({},"x",{})}catch(p){i=!0}Function.prototype.bind||(Function.prototype.bind=function(e){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var t=Array.prototype.slice.call(arguments,1),n=this,i=function(){},r=function(){return n.apply(this instanceof i&&e?this:e,t.concat(Array.prototype.slice.call(arguments)))};return i.prototype=this.prototype,r.prototype=new i,r});var r=n("+qE3").EventEmitter,o=n("P7XM"),a=n("0wxW"),s=n("gUCu"),u=5e3;function c(e){if(e){if(e instanceof Function)return{send:e};if(e.send instanceof Function)return e;if(e.postMessage instanceof Function)return e.send=e.postMessage,e;if(e.write instanceof Function)return e.send=e.write,e;if(void 0===e.onmessage&&!(e.pause instanceof Function))throw new SyntaxError("Transport is not a function nor a valid object")}}function l(e,t){i?(this.method=e,this.params=t):(Object.defineProperty(this,"method",{value:e,enumerable:!0}),Object.defineProperty(this,"params",{value:t,enumerable:!0}))}function h(e,t,n,a){var h=this;if(!e)throw new SyntaxError("Packer is not defined");if(!e.pack||!e.unpack)throw new SyntaxError("Packer is invalid");var d=function(e){if(!e)return{};for(var t in e){var n=e[t];"string"==typeof n&&(e[t]={response:n})}return e}(e.responseMethods);if(t instanceof Function){if(null!=n)throw new SyntaxError("There can't be parameters after onRequest");a=t,n=void 0,t=void 0}if(t&&t.send instanceof Function){if(n&&!(n instanceof Function))throw new SyntaxError("Only a function can be after transport");a=n,n=t,t=void 0}if(n instanceof Function){if(null!=a)throw new SyntaxError("There can't be parameters after onRequest");a=n,n=void 0}if(n&&n.send instanceof Function&&a&&!(a instanceof Function))throw new SyntaxError("Only a function can be after transport");t=t||{},r.call(this),a&&this.on("request",a),i?this.peerID=t.peerID:Object.defineProperty(this,"peerID",{value:t.peerID});var f=t.max_retries||0;function v(e){h.decode(e.data||e)}this.getTransport=function(){return n},this.setTransport=function(e){n&&(n.removeEventListener?n.removeEventListener("message",v):n.removeListener&&n.removeListener("data",v)),e&&(e.addEventListener?e.addEventListener("message",v):e.addListener&&e.addListener("data",v)),n=c(e)},i||Object.defineProperty(this,"transport",{get:this.getTransport.bind(this),set:this.setTransport.bind(this)}),this.setTransport(n);var m=t.request_timeout||u,g=t.ping_request_timeout||m,y=t.response_timeout||u,b=t.duplicates_timeout||u,_=0,k=new s,w=new s,S=new s,C={};function E(e,t){var n=setTimeout((function(){S.remove(e,t)}),b);S.set(n,e,t)}function O(t,n,r,o,a){l.call(this,t,n),this.getTransport=function(){return a},this.setTransport=function(e){a=c(e)},i||Object.defineProperty(this,"transport",{get:this.getTransport.bind(this),set:this.setTransport.bind(this)});var s=w.get(r,o);a||h.getTransport()||(i?this.duplicated=Boolean(s):Object.defineProperty(this,"duplicated",{value:Boolean(s)}));var u=d[t];this.pack=e.pack.bind(e,this,r),this.reply=function(t,n,i){if(t instanceof Function||t&&t.send instanceof Function){if(null!=n)throw new SyntaxError("There can't be parameters after callback");i=t,n=null,t=void 0}else if(n instanceof Function||n&&n.send instanceof Function){if(null!=i)throw new SyntaxError("There can't be parameters after callback");i=n,n=null}var a;return i=c(i),s&&clearTimeout(s.timeout),null!=o&&(t&&(t.dest=o),n&&(n.dest=o)),t||null!=n?(null!=h.peerID&&(t?t.from=h.peerID:n.from=h.peerID),a=e.pack(a=u?null==u.error&&t?{error:t}:{method:t?u.error:u.response,params:t||n}:{error:t,result:n},r)):a=s?s.message:e.pack({result:null},r),function(e,t,n){var i={message:e,timeout:setTimeout((function(){w.remove(t,n)}),y)};w.set(i,t,n)}(a,r,o),(i=i||this.getTransport()||h.getTransport())?i.send(a):a}}function x(e){var t=C[e];if(t){delete C[e];var n=k.pop(t.id,t.dest);n&&(clearTimeout(n.timeout),E(t.id,t.dest))}}o(O,l),this.cancel=function(e){if(e)return x(e);for(var e in C)x(e)},this.close=function(){var e=this.getTransport();e&&e.close&&e.close(4003,"Cancel request"),this.cancel(),S.forEach(clearTimeout),w.forEach((function(e){clearTimeout(e.timeout)}))},this.encode=function(t,n,i,r,o){if(n instanceof Function){if(null!=i)throw new SyntaxError("There can't be parameters after callback");o=n,r=void 0,i=void 0,n=void 0}else if(i instanceof Function){if(null!=r)throw new SyntaxError("There can't be parameters after callback");o=i,r=void 0,i=void 0}else if(r instanceof Function){if(null!=o)throw new SyntaxError("There can't be parameters after callback");o=r,r=void 0}null!=h.peerID&&((n=n||{}).from=h.peerID),null!=i&&((n=n||{}).dest=i);var a={method:t,params:n};if(o){var s=function(e,t){h.cancel(a),o(e,t)},u=function(e){return b.timeout=setTimeout(p,("ping"===t?g:m)*Math.pow(2,y++)),C[a]={id:v,dest:i},k.set(b,v,i),(e=e||w||h.getTransport())?e.send(a):a},l=function(e){e=c(e),console.warn(y+" retry for request message:",a);var t=S.pop(v,i);return clearTimeout(t),u(e)},p=function(){if(y<f)return l(r);var e=new Error("Request has timed out");e.request=a,e.retry=l,s(e)},v=_++,y=0,b={message:a=e.pack(a,v),callback:s,responseMethods:d[t]||{}},w=c(r);return u(r)}return a=e.pack(a),(r=r||this.getTransport())?r.send(a):a},this.decode=function(t,n){if(!t)throw new TypeError("Message is not defined");try{t=e.unpack(t)}catch(p){return console.debug(p,t)}var i=t.id,r=t.ack,o=t.method,a=t.params||{},s=a.from,u=a.dest;if(null==h.peerID||s!=h.peerID){if(null==i&&null==r){var d=new l(o,a);if(h.emit("request",d))return;return d}if(o){if(null==u||u==h.peerID){if(g=k.get(r,s)){var f=g.responseMethods;return o==f.error?_(g,a):o==f.response?_(g,null,a):b()}if(y=S.get(r,s))return C(y)}return b()}var v=t.error,m=t.result;if(!(v&&v.dest&&v.dest!=h.peerID||m&&m.dest&&m.dest!=h.peerID)){var g,y;if(!(g=k.get(r,s)))return(y=S.get(r,s))?C(y):console.warn("No callback was defined for this message",t);_(g,v,m)}}function b(){if(n=c(n)||h.getTransport()){var e=w.get(i,s);if(e)return n.send(e.message)}var t=new O(o,a,null!=i?i:r,s,n);if(!h.emit("request",t))return t}function _(e,t,n){e.callback(t,n)}function C(e){console.warn("Response already processed",t),clearTimeout(e),E(r,s)}}}o(h,r),h.RpcNotification=l,e.exports=h;var d=n("SYuc"),f=n("ee8k");(h.clients=d).transports=f,h.packers=a},BDvu:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});t.__esModule=!0,t.NetworkQualityLevelChangedEvent=void 0;var o=function(e){function t(t,n,i,r){var o=e.call(this,!1,t,"networkQualityLevelChanged")||this;return o.newValue=n,o.oldValue=i,o.connection=r,o}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(n("hzOQ").Event);t.NetworkQualityLevelChangedEvent=o},BwMD:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});t.__esModule=!0,t.StreamPropertyChangedEvent=void 0;var o=function(e){function t(t,n,i,r,o,a){var s=e.call(this,!1,t,"streamPropertyChanged")||this;return s.stream=n,s.changedProperty=i,s.newValue=r,s.oldValue=o,s.reason=a,s}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(n("hzOQ").Event);t.StreamPropertyChangedEvent=o},DPKQ:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});t.__esModule=!0,t.Stream=void 0;var o=n("74bm"),a=n("bk74"),s=n("Dztv"),u=n("5kmN"),c=n("+FKC"),l=n("e8ps"),h=n("HxXY"),d=n("BwMD"),f=n("Tt94"),p=n("9m68"),v=n("4jfU"),m=n("aMtt"),g=p.OpenViduLogger.getInstance(),y=v.PlatformUtils.getInstance(),b=function(e){function t(t,n){var i=e.call(this)||this;return i.isSubscribeToRemote=!1,i.isLocalStreamReadyToPublish=!1,i.isLocalStreamPublished=!1,i.publishedOnce=!1,i.publisherStartSpeakingEventEnabled=!1,i.publisherStartSpeakingEventEnabledOnce=!1,i.publisherStopSpeakingEventEnabled=!1,i.publisherStopSpeakingEventEnabledOnce=!1,i.volumeChangeEventEnabled=!1,i.volumeChangeEventEnabledOnce=!1,i.session=t,n.hasOwnProperty("id")?(i.inboundStreamOpts=n,i.streamId=i.inboundStreamOpts.id,i.creationTime=i.inboundStreamOpts.createdAt,i.hasAudio=i.inboundStreamOpts.hasAudio,i.hasVideo=i.inboundStreamOpts.hasVideo,i.hasAudio&&(i.audioActive=i.inboundStreamOpts.audioActive),i.hasVideo&&(i.videoActive=i.inboundStreamOpts.videoActive,i.typeOfVideo=i.inboundStreamOpts.typeOfVideo?i.inboundStreamOpts.typeOfVideo:void 0,i.frameRate=-1===i.inboundStreamOpts.frameRate?void 0:i.inboundStreamOpts.frameRate,i.videoDimensions=i.inboundStreamOpts.videoDimensions),i.inboundStreamOpts.filter&&Object.keys(i.inboundStreamOpts.filter).length>0&&(i.inboundStreamOpts.filter.lastExecMethod&&0===Object.keys(i.inboundStreamOpts.filter.lastExecMethod).length&&delete i.inboundStreamOpts.filter.lastExecMethod,i.filter=i.inboundStreamOpts.filter)):(i.outboundStreamOpts=n,i.hasAudio=i.isSendAudio(),i.hasVideo=i.isSendVideo(),i.hasAudio&&(i.audioActive=!!i.outboundStreamOpts.publisherProperties.publishAudio),i.hasVideo&&(i.videoActive=!!i.outboundStreamOpts.publisherProperties.publishVideo,i.frameRate=i.outboundStreamOpts.publisherProperties.frameRate,i.typeOfVideo="undefined"!=typeof MediaStreamTrack&&i.outboundStreamOpts.publisherProperties.videoSource instanceof MediaStreamTrack?"CUSTOM":i.isSendScreen()?"SCREEN":"CAMERA"),i.outboundStreamOpts.publisherProperties.filter&&(i.filter=i.outboundStreamOpts.publisherProperties.filter)),i.ee.on("mediastream-updated",(function(){i.streamManager.updateMediaStream(i.mediaStream),g.debug("Video srcObject ["+i.mediaStream+"] updated in stream ["+i.streamId+"]")})),i}return r(t,e),t.prototype.on=function(t,n){return e.prototype.onAux.call(this,t,"Event '"+t+"' triggered by stream '"+this.streamId+"'",n),this},t.prototype.once=function(t,n){return e.prototype.onceAux.call(this,t,"Event '"+t+"' triggered once by stream '"+this.streamId+"'",n),this},t.prototype.off=function(t,n){return e.prototype.off.call(this,t,n),this},t.prototype.applyFilter=function(e,t){var n=this;return new Promise((function(i,r){g.info("Applying filter to stream "+n.streamId),"string"!=typeof(t=t||{})&&(t=JSON.stringify(t)),n.session.openvidu.sendRequest("applyFilter",{streamId:n.streamId,type:e,options:t},(function(a,s){if(a)g.error("Error applying filter for Stream "+n.streamId,a),r(401===a.code?new f.OpenViduError(f.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to apply a filter"):a);else{g.info("Filter successfully applied on Stream "+n.streamId);var u=n.filter;n.filter=new o.Filter(e,t),n.filter.stream=n,n.session.emitEvent("streamPropertyChanged",[new d.StreamPropertyChangedEvent(n.session,n,"filter",n.filter,u,"applyFilter")]),n.streamManager.emitEvent("streamPropertyChanged",[new d.StreamPropertyChangedEvent(n.streamManager,n,"filter",n.filter,u,"applyFilter")]),i(n.filter)}}))}))},t.prototype.removeFilter=function(){var e=this;return new Promise((function(t,n){g.info("Removing filter of stream "+e.streamId),e.session.openvidu.sendRequest("removeFilter",{streamId:e.streamId},(function(i,r){if(i)g.error("Error removing filter for Stream "+e.streamId,i),n(401===i.code?new f.OpenViduError(f.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to remove a filter"):i);else{g.info("Filter successfully removed from Stream "+e.streamId);var o=e.filter;delete e.filter,e.session.emitEvent("streamPropertyChanged",[new d.StreamPropertyChangedEvent(e.session,e,"filter",e.filter,o,"applyFilter")]),e.streamManager.emitEvent("streamPropertyChanged",[new d.StreamPropertyChangedEvent(e.streamManager,e,"filter",e.filter,o,"applyFilter")]),t()}}))}))},t.prototype.getRTCPeerConnection=function(){return this.webRtcPeer.pc},t.prototype.getMediaStream=function(){return this.mediaStream},t.prototype.setMediaStream=function(e){this.mediaStream=e},t.prototype.updateMediaStreamInVideos=function(){this.ee.emitEvent("mediastream-updated",[])},t.prototype.getWebRtcPeer=function(){return this.webRtcPeer},t.prototype.subscribeToMyRemote=function(e){this.isSubscribeToRemote=e},t.prototype.setOutboundStreamOptions=function(e){this.outboundStreamOpts=e},t.prototype.subscribe=function(){var e=this;return new Promise((function(t,n){e.initWebRtcPeerReceive(!1).then((function(){t()})).catch((function(e){n(e)}))}))},t.prototype.publish=function(){var e=this;return new Promise((function(t,n){e.isLocalStreamReadyToPublish?e.initWebRtcPeerSend(!1).then((function(){t()})).catch((function(e){n(e)})):e.ee.once("stream-ready-to-publish",(function(){e.publish().then((function(){t()})).catch((function(e){n(e)}))}))}))},t.prototype.disposeWebRtcPeer=function(){this.webRtcPeer&&(this.webRtcPeer.dispose(),this.stopWebRtcStats()),g.info((this.outboundStreamOpts?"Outbound ":"Inbound ")+"WebRTCPeer from 'Stream' with id ["+this.streamId+"] is now closed")},t.prototype.disposeMediaStream=function(){this.mediaStream&&(this.mediaStream.getAudioTracks().forEach((function(e){e.stop()})),this.mediaStream.getVideoTracks().forEach((function(e){e.stop()})),delete this.mediaStream),this.localMediaStreamWhenSubscribedToRemote&&(this.localMediaStreamWhenSubscribedToRemote.getAudioTracks().forEach((function(e){e.stop()})),this.localMediaStreamWhenSubscribedToRemote.getVideoTracks().forEach((function(e){e.stop()})),delete this.localMediaStreamWhenSubscribedToRemote),this.speechEvent&&(this.speechEvent.stop&&this.speechEvent.stop(),delete this.speechEvent),g.info((this.outboundStreamOpts?"Local ":"Remote ")+"MediaStream from 'Stream' with id ["+this.streamId+"] is now disposed")},t.prototype.displayMyRemote=function(){return this.isSubscribeToRemote},t.prototype.isSendAudio=function(){return!!this.outboundStreamOpts&&null!==this.outboundStreamOpts.publisherProperties.audioSource&&!1!==this.outboundStreamOpts.publisherProperties.audioSource},t.prototype.isSendVideo=function(){return!!this.outboundStreamOpts&&null!==this.outboundStreamOpts.publisherProperties.videoSource&&!1!==this.outboundStreamOpts.publisherProperties.videoSource},t.prototype.isSendScreen=function(){var e="screen"===this.outboundStreamOpts.publisherProperties.videoSource;return y.isElectron()&&(e="string"==typeof this.outboundStreamOpts.publisherProperties.videoSource&&this.outboundStreamOpts.publisherProperties.videoSource.startsWith("screen:")),!!this.outboundStreamOpts&&e},t.prototype.enableStartSpeakingEvent=function(){var e=this;this.setSpeechEventIfNotExists(),this.publisherStartSpeakingEventEnabled||(this.publisherStartSpeakingEventEnabled=!0,this.speechEvent.on("speaking",(function(){e.session.emitEvent("publisherStartSpeaking",[new l.PublisherSpeakingEvent(e.session,"publisherStartSpeaking",e.connection,e.streamId)]),e.publisherStartSpeakingEventEnabledOnce=!1})))},t.prototype.enableOnceStartSpeakingEvent=function(){var e=this;this.setSpeechEventIfNotExists(),this.publisherStartSpeakingEventEnabledOnce||(this.publisherStartSpeakingEventEnabledOnce=!0,this.speechEvent.once("speaking",(function(){e.publisherStartSpeakingEventEnabledOnce&&e.session.emitEvent("publisherStartSpeaking",[new l.PublisherSpeakingEvent(e.session,"publisherStartSpeaking",e.connection,e.streamId)]),e.disableStartSpeakingEvent(!0)})))},t.prototype.disableStartSpeakingEvent=function(e){if(this.speechEvent){if(this.publisherStartSpeakingEventEnabledOnce=!1,e){if(this.publisherStartSpeakingEventEnabled)return}else this.publisherStartSpeakingEventEnabled=!1;this.volumeChangeEventEnabled||this.volumeChangeEventEnabledOnce||this.publisherStopSpeakingEventEnabled||this.publisherStopSpeakingEventEnabledOnce?this.speechEvent.off("speaking"):(this.speechEvent.stop(),delete this.speechEvent)}},t.prototype.enableStopSpeakingEvent=function(){var e=this;this.setSpeechEventIfNotExists(),this.publisherStopSpeakingEventEnabled||(this.publisherStopSpeakingEventEnabled=!0,this.speechEvent.on("stopped_speaking",(function(){e.session.emitEvent("publisherStopSpeaking",[new l.PublisherSpeakingEvent(e.session,"publisherStopSpeaking",e.connection,e.streamId)]),e.publisherStopSpeakingEventEnabledOnce=!1})))},t.prototype.enableOnceStopSpeakingEvent=function(){var e=this;this.setSpeechEventIfNotExists(),this.publisherStopSpeakingEventEnabledOnce||(this.publisherStopSpeakingEventEnabledOnce=!0,this.speechEvent.once("stopped_speaking",(function(){e.publisherStopSpeakingEventEnabledOnce&&e.session.emitEvent("publisherStopSpeaking",[new l.PublisherSpeakingEvent(e.session,"publisherStopSpeaking",e.connection,e.streamId)]),e.disableStopSpeakingEvent(!0)})))},t.prototype.disableStopSpeakingEvent=function(e){if(this.speechEvent){if(this.publisherStopSpeakingEventEnabledOnce=!1,e){if(this.publisherStopSpeakingEventEnabled)return}else this.publisherStopSpeakingEventEnabled=!1;this.volumeChangeEventEnabled||this.volumeChangeEventEnabledOnce||this.publisherStartSpeakingEventEnabled||this.publisherStartSpeakingEventEnabledOnce?this.speechEvent.off("stopped_speaking"):(this.speechEvent.stop(),delete this.speechEvent)}},t.prototype.enableVolumeChangeEvent=function(e){var t=this;this.setSpeechEventIfNotExists()?this.volumeChangeEventEnabled&&!e||(this.volumeChangeEventEnabled=!0,this.speechEvent.on("volume_change",(function(e){var n={newValue:e,oldValue:t.speechEvent.oldVolumeValue};t.speechEvent.oldVolumeValue=e,t.streamManager.emitEvent("streamAudioVolumeChange",[new h.StreamManagerEvent(t.streamManager,"streamAudioVolumeChange",n)])}))):this.volumeChangeEventEnabled=!0},t.prototype.enableOnceVolumeChangeEvent=function(e){var t=this;this.setSpeechEventIfNotExists()?this.volumeChangeEventEnabledOnce&&!e||(this.volumeChangeEventEnabledOnce=!0,this.speechEvent.once("volume_change",(function(e){var n={newValue:e,oldValue:t.speechEvent.oldVolumeValue};t.speechEvent.oldVolumeValue=e,t.disableVolumeChangeEvent(!0),t.streamManager.emitEvent("streamAudioVolumeChange",[new h.StreamManagerEvent(t.streamManager,"streamAudioVolumeChange",n)])}))):this.volumeChangeEventEnabledOnce=!0},t.prototype.disableVolumeChangeEvent=function(e){if(this.speechEvent){if(this.volumeChangeEventEnabledOnce=!1,e){if(this.volumeChangeEventEnabled)return}else this.volumeChangeEventEnabled=!1;this.publisherStartSpeakingEventEnabled||this.publisherStartSpeakingEventEnabledOnce||this.publisherStopSpeakingEventEnabled||this.publisherStopSpeakingEventEnabledOnce?this.speechEvent.off("volume_change"):(this.speechEvent.stop(),delete this.speechEvent)}},t.prototype.isLocal=function(){return!this.inboundStreamOpts&&!!this.outboundStreamOpts},t.prototype.getSelectedIceCandidate=function(){var e=this;return new Promise((function(t,n){e.webRtcStats.getSelectedIceCandidateInfo().then((function(e){return t(e)})).catch((function(e){return n(e)}))}))},t.prototype.getRemoteIceCandidateList=function(){return this.webRtcPeer.remoteCandidatesQueue},t.prototype.getLocalIceCandidateList=function(){return this.webRtcPeer.localCandidatesQueue},t.prototype.streamIceConnectionStateBroken=function(){if(!this.getWebRtcPeer()||!this.getRTCPeerConnection())return!1;if(this.isLocal&&this.session.openvidu.advancedConfiguration.forceMediaReconnectionAfterNetworkDrop)return g.warn('OpenVidu Browser advanced configuration option "forceMediaReconnectionAfterNetworkDrop" is enabled. Publisher stream '+this.streamId+"will force a reconnection"),!0;var e=this.getRTCPeerConnection().iceConnectionState;return"disconnected"===e||"failed"===e},t.prototype.setSpeechEventIfNotExists=function(){if(this.mediaStream){if(!this.speechEvent){var e=this.harkOptions?this.harkOptions:this.session.openvidu.advancedConfiguration.publisherSpeakingEventsOptions||{};e.interval="number"==typeof e.interval?e.interval:100,e.threshold="number"==typeof e.threshold?e.threshold:-50,this.speechEvent=m(this.mediaStream,e)}return!0}return!1},t.prototype.initWebRtcPeerSend=function(e){var t=this;return new Promise((function(n,i){e||t.initHarkEvents();var r={audio:t.isSendAudio(),video:t.isSendVideo()},o={mediaStream:t.mediaStream,mediaConstraints:r,onicecandidate:t.connection.sendIceCandidate.bind(t.connection),iceServers:t.getIceServersConf(),simulcast:!1};e&&t.disposeWebRtcPeer(),t.webRtcPeer=t.displayMyRemote()?new u.WebRtcPeerSendrecv(o):new u.WebRtcPeerSendonly(o),t.webRtcPeer.addIceConnectionStateChangeListener("publisher of "+t.connection.connectionId),t.webRtcPeer.generateOffer().then((function(r){!function(r){g.debug("Sending SDP offer to publish as "+t.streamId,r);var o,a=e?"reconnectStream":"publishVideo";if(e)o={stream:t.streamId};else{var s="";t.isSendVideo()&&(s="undefined"!=typeof MediaStreamTrack&&t.outboundStreamOpts.publisherProperties.videoSource instanceof MediaStreamTrack?"CUSTOM":t.isSendScreen()?"SCREEN":"CAMERA"),o={doLoopback:t.displayMyRemote()||!1,hasAudio:t.isSendAudio(),hasVideo:t.isSendVideo(),audioActive:t.audioActive,videoActive:t.videoActive,typeOfVideo:s,frameRate:t.frameRate?t.frameRate:-1,videoDimensions:JSON.stringify(t.videoDimensions),filter:t.outboundStreamOpts.publisherProperties.filter}}o.sdpOffer=r,t.session.openvidu.sendRequest(a,o,(function(r,o){r?i(401===r.code?new f.OpenViduError(f.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to publish"):"Error on publishVideo: "+JSON.stringify(r)):t.webRtcPeer.processAnswer(o.sdpAnswer,!1).then((function(){t.streamId=o.id,t.creationTime=o.createdAt,t.isLocalStreamPublished=!0,t.publishedOnce=!0,t.displayMyRemote()&&(t.localMediaStreamWhenSubscribedToRemote=t.mediaStream,t.remotePeerSuccessfullyEstablished()),t.ee.emitEvent(e?"stream-reconnected-by-publisher":"stream-created-by-publisher",[]),t.initWebRtcStats(),g.info("'Publisher' ("+t.streamId+") successfully "+(e?"reconnected":"published")+" to session"),n()})).catch((function(e){i(e)}))}))}(r)})).catch((function(e){i(new Error("(publish) SDP offer error: "+JSON.stringify(e)))}))}))},t.prototype.initWebRtcPeerReceive=function(e){var t=this;return new Promise((function(n,i){var r={audio:t.inboundStreamOpts.hasAudio,video:t.inboundStreamOpts.hasVideo};g.debug("'Session.subscribe(Stream)' called. Constraints of generate SDP offer",r);var o={onicecandidate:t.connection.sendIceCandidate.bind(t.connection),mediaConstraints:r,iceServers:t.getIceServersConf(),simulcast:!1};t.webRtcPeer=new u.WebRtcPeerRecvonly(o),t.webRtcPeer.addIceConnectionStateChangeListener(t.streamId),t.webRtcPeer.generateOffer().then((function(r){!function(r){g.debug("Sending SDP offer to subscribe to "+t.streamId,r);var o=e?"reconnectStream":"receiveVideoFrom",a={sdpOffer:r};a[e?"stream":"sender"]=t.streamId,t.session.openvidu.sendRequest(o,a,(function(r,o){r?i(new Error("Error on recvVideoFrom: "+JSON.stringify(r))):(t.session.isFirstIonicIosSubscriber&&(t.session.isFirstIonicIosSubscriber=!1,setTimeout((function(){t.session.countDownForIonicIosSubscribersActive=!1}),400)),t.webRtcPeer.processAnswer(o.sdpAnswer,t.session.countDownForIonicIosSubscribersActive).then((function(){g.info("'Subscriber' ("+t.streamId+") successfully "+(e?"reconnected":"subscribed")),t.remotePeerSuccessfullyEstablished(),t.initWebRtcStats(),n()})).catch((function(e){i(e)})))}))}(r)})).catch((function(e){i(new Error("(subscribe) SDP offer error: "+JSON.stringify(e)))}))}))},t.prototype.remotePeerSuccessfullyEstablished=function(){var e;this.mediaStream=new MediaStream;for(var t=0,n=this.webRtcPeer.pc.getReceivers();t<n.length;t++)(e=n[t]).track&&this.mediaStream.addTrack(e.track);if(g.debug("Peer remote stream",this.mediaStream),this.mediaStream){if(this.streamManager instanceof a.Subscriber){if(this.mediaStream.getAudioTracks()[0]){var i=!!this.streamManager.properties.subscribeToAudio;this.mediaStream.getAudioTracks()[0].enabled=i}this.mediaStream.getVideoTracks()[0]&&(i=!!this.streamManager.properties.subscribeToVideo,this.mediaStream.getVideoTracks()[0].enabled=i)}this.updateMediaStreamInVideos(),this.initHarkEvents()}},t.prototype.initHarkEvents=function(){this.mediaStream.getAudioTracks()[0]&&(this.streamManager.remote&&(this.session.startSpeakingEventsEnabled&&this.enableStartSpeakingEvent(),this.session.startSpeakingEventsEnabledOnce&&this.enableOnceStartSpeakingEvent(),this.session.stopSpeakingEventsEnabled&&this.enableStopSpeakingEvent(),this.session.stopSpeakingEventsEnabledOnce&&this.enableOnceStopSpeakingEvent()),this.volumeChangeEventEnabled&&this.enableVolumeChangeEvent(!0),this.volumeChangeEventEnabledOnce&&this.enableOnceVolumeChangeEvent(!0))},t.prototype.initWebRtcStats=function(){this.webRtcStats=new c.WebRtcStats(this),this.webRtcStats.initWebRtcStats()},t.prototype.stopWebRtcStats=function(){this.webRtcStats&&this.webRtcStats.isEnabled()&&this.webRtcStats.stopWebRtcStats()},t.prototype.getIceServersConf=function(){return this.session.openvidu.advancedConfiguration.iceServers?"freeice"===this.session.openvidu.advancedConfiguration.iceServers?void 0:this.session.openvidu.advancedConfiguration.iceServers:this.session.openvidu.iceServers?this.session.openvidu.iceServers:void 0},t.prototype.gatherStatsForPeer=function(){var e=this;return new Promise((function(t,n){e.isLocal()?e.getRTCPeerConnection().getSenders().forEach((function(t){return t.getStats().then((function(t){t.forEach((function(t){if(e.isReportWanted(t)){var n={};n.type=t.type,n.timestamp=t.timestamp,n.id=t.id,"outbound-rtp"===t.type&&(n.ssrc=t.ssrc,n.firCount=t.firCount,n.pliCount=t.pliCount,n.nackCount=t.nackCount,n.qpSum=t.qpSum,n.mediaType=t.kind?t.kind:t.mediaType?t.mediaType:-1!==t.id.indexOf("VideoStream")?"video":"audio","video"===n.mediaType&&(n.framesEncoded=t.framesEncoded),n.packetsSent=t.packetsSent,n.bytesSent=t.bytesSent),"candidate-pair"===t.type&&void 0!==t.totalRoundTripTime&&(n.availableOutgoingBitrate=t.availableOutgoingBitrate,n.rtt=t.currentRoundTripTime,n.averageRtt=t.totalRoundTripTime/t.responsesReceived),g.log(n)}}))}))})):e.getRTCPeerConnection().getReceivers().forEach((function(t){return t.getStats().then((function(t){t.forEach((function(t){if(e.isReportWanted(t)){var n={};n.type=t.type,n.timestamp=t.timestamp,n.id=t.id,"inbound-rtp"===t.type&&(n.ssrc=t.ssrc,n.firCount=t.firCount,n.pliCount=t.pliCount,n.nackCount=t.nackCount,n.qpSum=t.qpSum,n.mediaType=t.kind?t.kind:t.mediaType?t.mediaType:-1!==t.id.indexOf("VideoStream")?"video":"audio","video"===n.mediaType&&(n.framesDecoded=t.framesDecoded),n.packetsReceived=t.packetsReceived,n.packetsLost=t.packetsLost,n.jitter=t.jitter,n.bytesReceived=t.bytesReceived),"candidate-pair"===t.type&&void 0!==t.totalRoundTripTime&&(n.availableIncomingBitrate=t.availableIncomingBitrate,n.rtt=t.currentRoundTripTime,n.averageRtt=t.totalRoundTripTime/t.responsesReceived),g.log(n)}}))}))}))}))},t.prototype.isReportWanted=function(e){return"inbound-rtp"===e.type&&!this.isLocal()||"outbound-rtp"===e.type&&this.isLocal()||"candidate-pair"===e.type&&e.nominated&&e.bytesSent>0},t}(s.EventDispatcher);t.Stream=b},Dztv:function(e,t,n){"use strict";t.__esModule=!0,t.EventDispatcher=void 0;var i=n("4O8T"),r=n("9m68").OpenViduLogger.getInstance(),o=function(){function e(){this.userHandlerArrowHandler=new WeakMap,this.ee=new i}return e.prototype.off=function(e,t){if(t){var n=this.userHandlerArrowHandler.get(t);n&&this.ee.off(e,n),this.userHandlerArrowHandler.delete(t)}else this.ee.removeAllListeners(e);return this},e.prototype.onAux=function(e,t,n){var i=function(e){e?r.info(t,e):r.info(t),n(e)};return this.userHandlerArrowHandler.set(n,i),this.ee.on(e,i),this},e.prototype.onceAux=function(e,t,n){var i=this,o=function(e){e?r.info(t,e):r.info(t),n(e),i.userHandlerArrowHandler.delete(n)};return this.userHandlerArrowHandler.set(n,o),this.ee.once(e,o),this},e}();t.EventDispatcher=o},EDod:function(e,t,n){var i=n("AeG9"),r=n("cUzU");Date.now=Date.now||function(){return+new Date};var o="RECONNECTING",a="CONNECTED",s="DISCONNECTED",u=console;e.exports=function(e){var t,n=this,c=e.ws,l=-1,h=0,d=!0,f=!1,p=s,v=c.onreconnecting,m=c.onreconnected,g=c.onconnected,y=c.onerror;e.rpc.pull=function(e,t){t.reply(null,"push")},c.onreconnecting=function(){u.debug("--------- ONRECONNECTING -----------"),p!==o?(C(),p=o,v&&v()):u.error("Websocket already in RECONNECTING state when receiving a new ONRECONNECTING message. Ignoring it")},c.onreconnected=function(){u.debug("--------- ONRECONNECTED -----------"),p!==a?(p=a,k(),m&&m()):u.error("Websocket already in CONNECTED state when receiving a new ONRECONNECTED message. Ignoring it")},c.onconnected=function(){u.debug("--------- ONCONNECTED -----------"),p!==a?(p=a,d=!0,S(),g&&g()):u.error("Websocket already in CONNECTED state when receiving a new ONCONNECTED message. Ignoring it")},c.onerror=function(e){u.debug("--------- ONERROR -----------"),p=s,C(),y&&y(e)};var b=new r(c);u.debug("Connecting websocket to URI: "+c.uri);var _=new i(i.packers.JsonRPC,{request_timeout:e.rpc.requestTimeout,ping_request_timeout:e.rpc.heartbeatRequestTimeout},b,(function(t){u.debug("Received request: "+JSON.stringify(t));try{var n=e.rpc[t.method];void 0===n?u.error("Method "+t.method+" not registered in client"):n(t.params,t)}catch(i){u.error("Exception processing request: "+JSON.stringify(t)),u.error(i)}}));function k(){u.debug("notReconnectIfNumLessThan = "+h+" (old="+l+")"),l=h}function w(){if(d){var t=null;0!=h&&h!=l||(t={interval:e.heartbeat||5e3}),h++,n.send("ping",t,(i=h,function(e,t){e&&(u.debug("Error in ping request #"+i+" ("+e.message+")"),i>l&&(d=!1,k(),u.debug("Server did not respond to ping message #"+i+". Reconnecting... "),b.reconnectWs()))}))}else u.debug("Trying to send ping, but ping is not enabled");var i}function S(){f||(u.debug("Starting ping (if configured)"),f=!0,null!=e.heartbeat&&(t=setInterval(w,e.heartbeat),w()))}function C(){clearInterval(t),f=!1,d=!1,h=-1,_.cancel()}this.send=function(e,t,n){"ping"!==e&&u.debug("Request: method:"+e+" params:"+JSON.stringify(t));var i=Date.now();_.encode(e,t,(function(r,o){if(r){try{u.error("ERROR:"+r.message+" in Request: method:"+e+" params:"+JSON.stringify(t)+" request:"+r.request),r.data&&u.error("ERROR DATA:"+JSON.stringify(r.data))}catch(a){}r.requestTime=i}n&&(null!=o&&"pong"!==o.value&&u.debug("Response: "+JSON.stringify(o)),n(r,o))}))},this.close=function(e,n){u.debug("Closing with code: "+e+" because: "+n),null!=t&&(u.debug("Clearing ping interval"),clearInterval(t)),f=!1,d=!1,b.close(e,n)},this.forceClose=function(e){b.forceClose(e)},this.reconnect=function(){b.reconnectWs()},this.resetPing=function(){d=!0,h=0,S()}}},EcWD:function(e,t){var n,i,r="screen";if("undefined"!=typeof window&&"undefined"!=typeof navigator&&void 0!==navigator.userAgent){var o=void 0!==window.InstallTrigger;window.opera||navigator.userAgent.indexOf(" OPR/"),window,window.addEventListener("message",(function(e){e.origin==window.location.origin&&function(e){if("PermissionDeniedError"==e){if(i)return i("PermissionDeniedError");throw new Error("PermissionDeniedError")}"rtcmulticonnection-extension-loaded"==e&&(r="desktop"),e.sourceId&&i&&i(n=e.sourceId,!0===e.canRequestAudioTrack)}(e.data)}))}function a(e){if(!e)throw'"callback" parameter is mandatory.';if(n)return e(n);i=e,window.postMessage("get-sourceId","*")}function s(e,t){if(n="",o)return e(null,{mozMediaSource:"window",mediaSource:"window"});var s={mandatory:{chromeMediaSource:r,maxWidth:screen.width>1920?screen.width:1920,maxHeight:screen.height>1080?screen.height:1080},optional:[]};"desktop"!=r||n?("desktop"==r&&(s.mandatory.chromeMediaSourceId=n),e(null,s)):t?function(e){if(!e)throw'"callback" parameter is mandatory.';if(n)return e(n);i=e,window.postMessage("audio-plus-tab","*")}((function(t,n){s.mandatory.chromeMediaSourceId=t,n&&(s.canRequestAudioTrack=!0),e("PermissionDeniedError"==t?t:null,s)})):a((function(t){s.mandatory.chromeMediaSourceId=t,e("PermissionDeniedError"==t?t:null,s)}))}t.getScreenConstraints=s,t.getScreenConstraintsWithAudio=function(e){s(e,!0)},t.isChromeExtensionAvailable=function(e){if(e){if("desktop"==r)return e(!0);window.postMessage("are-you-there","*"),setTimeout((function(){e("screen"!=r)}),2e3)}},t.getChromeExtensionStatus=function(e,t){if(o)return t("not-chrome");2!=arguments.length&&(t=e,e="lfcgfepafnobdloecchnfaclibenjold");var n=document.createElement("img");n.src="chrome-extension://"+e+"/icon.png",n.onload=function(){r="screen",window.postMessage("are-you-there","*"),setTimeout((function(){t("screen"==r?"installed-disabled":"installed-enabled")}),2e3)},n.onerror=function(){t("not-installed")}},t.getSourceId=a},FWf1:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("pshJ"),o=n("GiSu"),a=n("zB/H"),s=n("p//D"),u=n("n3uD"),c=n("MkmW"),l=function(e){function t(n,i,r){var a=e.call(this)||this;switch(a.syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=o.empty;break;case 1:if(!n){a.destination=o.empty;break}if("object"==typeof n){n instanceof t?(a.syncErrorThrowable=n.syncErrorThrowable,a.destination=n,n.add(a)):(a.syncErrorThrowable=!0,a.destination=new h(a,n));break}default:a.syncErrorThrowable=!0,a.destination=new h(a,n,i,r)}return a}return i(t,e),t.prototype[s.rxSubscriber]=function(){return this},t.create=function(e,n,i){var r=new t(e,n,i);return r.syncErrorThrowable=!1,r},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},t}(a.Subscription);t.Subscriber=l;var h=function(e){function t(t,n,i,a){var s,u=e.call(this)||this;u._parentSubscriber=t;var c=u;return r.isFunction(n)?s=n:n&&(s=n.next,i=n.error,a=n.complete,n!==o.empty&&(c=Object.create(n),r.isFunction(c.unsubscribe)&&u.add(c.unsubscribe.bind(c)),c.unsubscribe=u.unsubscribe.bind(u))),u._context=c,u._next=s,u._error=i,u._complete=a,u}return i(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;u.config.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=u.config.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):c.hostReportError(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;c.hostReportError(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};u.config.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),u.config.useDeprecatedSynchronousErrorHandling)throw n;c.hostReportError(n)}},t.prototype.__tryOrSetError=function(e,t,n){if(!u.config.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(i){return u.config.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=i,e.syncErrorThrown=!0,!0):(c.hostReportError(i),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(l);t.SafeSubscriber=h},FiyT:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();t.SubjectSubscription=function(e){function t(t,n){var i=e.call(this)||this;return i.subject=t,i.subscriber=n,i.closed=!1,i}return i(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},t}(n("zB/H").Subscription)},FlKs:function(e,t,n){"use strict";t.__esModule=!0,t.stateify=t.TokenState=t.CharacterState=void 0;var i=n("JUw6"),r=function(e){this.j=[],this.T=e||null};r.prototype={defaultTransition:!1,on:function(e,t){if(e instanceof Array){for(var n=0;n<e.length;n++)this.j.push([e[n],t]);return this}return this.j.push([e,t]),this},next:function(e){for(var t=0;t<this.j.length;t++){var n=this.j[t],i=n[1];if(this.test(e,n[0]))return i}return this.defaultTransition},accepts:function(){return!!this.T},test:function(e,t){return e===t},emit:function(){return this.T}};var o=(0,i.inherits)(r,(function(e){this.j=[],this.T=e||null}),{test:function(e,t){return e===t||t instanceof RegExp&&t.test(e)}}),a=(0,i.inherits)(r,(function(e){this.j=[],this.T=e||null}),{jump:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.next(new e(""));return n===this.defaultTransition?(n=new this.constructor(t),this.on(e,n)):t&&(n.T=t),n},test:function(e,t){return e instanceof t}});t.CharacterState=o,t.TokenState=a,t.stateify=function(e,t,n,i){for(var r=0,a=e.length,s=t,u=[],c=void 0;r<a&&(c=s.next(e[r]));)s=c,r++;if(r>=a)return[];for(;r<a-1;)c=new o(i),u.push(c),s.on(e[r],c),s=c,r++;return c=new o(n),u.push(c),s.on(e[a-1],c),u}},GMZp:function(e,t,n){"use strict";t.isObject=function(e){return null!==e&&"object"==typeof e}},GiSu:function(e,t,n){"use strict";var i=n("n3uD"),r=n("MkmW");t.empty={closed:!0,next:function(e){},error:function(e){if(i.config.useDeprecatedSynchronousErrorHandling)throw e;r.hostReportError(e)},complete:function(){}}},HxXY:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});t.__esModule=!0,t.StreamManagerEvent=void 0;var o=function(e){function t(t,n,i){var r=e.call(this,!1,t,n)||this;return r.value=i,r}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(n("hzOQ").Event);t.StreamManagerEvent=o},JTMn:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{u(i.next(e))}catch(t){o(t)}}function s(e){try{u(i.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((i=i.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};t.__esModule=!0,t.Session=void 0;var s=n("ryRr"),u=n("74bm"),c=n("bk74"),l=n("Dztv"),h=n("8KVD"),d=n("+ig+"),f=n("rUL0"),p=n("ksJj"),v=n("suHS"),m=n("Te8r"),g=n("BwMD"),y=n("8b8G"),b=n("BDvu"),_=n("Tt94"),k=n("/dLB"),w=n("9m68"),S=n("4jfU"),C=w.OpenViduLogger.getInstance(),E=S.PlatformUtils.getInstance(),O=function(e){function t(t){var n=e.call(this)||this;return n.streamManagers=[],n.remoteStreamsCreated={},n.isFirstIonicIosSubscriber=!0,n.countDownForIonicIosSubscribersActive=!0,n.remoteConnections={},n.startSpeakingEventsEnabled=!1,n.startSpeakingEventsEnabledOnce=!1,n.stopSpeakingEventsEnabled=!1,n.stopSpeakingEventsEnabledOnce=!1,n.openvidu=t,n}return r(t,e),t.prototype.connect=function(e,t){var n=this;return new Promise((function(i,r){n.processToken(e),n.openvidu.checkSystemRequirements()?(n.options={sessionId:n.sessionId,participantId:e,metadata:t?n.stringClientMetadata(t):""},n.connectAux(e).then((function(){i()})).catch((function(e){r(e)}))):r(new _.OpenViduError(_.OpenViduErrorName.BROWSER_NOT_SUPPORTED,"Browser "+E.getName()+" (version "+E.getVersion()+") for "+E.getFamily()+" is not supported in OpenVidu"))}))},t.prototype.disconnect=function(){this.leave(!1,"disconnect")},t.prototype.subscribe=function(e,t,n,i){var r,o={};o=n&&"function"!=typeof n?{insertMode:void 0!==n.insertMode?"string"==typeof n.insertMode?k.VideoInsertMode[n.insertMode]:o.insertMode:k.VideoInsertMode.APPEND,subscribeToAudio:void 0===n.subscribeToAudio||n.subscribeToAudio,subscribeToVideo:void 0===n.subscribeToVideo||n.subscribeToVideo}:{insertMode:k.VideoInsertMode.APPEND,subscribeToAudio:!0,subscribeToVideo:!0},n&&"function"==typeof n?r=n:i&&(r=i),C.info("Subscribing to "+e.connection.connectionId),e.subscribe().then((function(){C.info("Subscribed correctly to "+e.connection.connectionId),void 0!==r&&r(void 0)})).catch((function(e){void 0!==r&&r(e)}));var a=new c.Subscriber(e,t,o);return a.targetElement&&e.streamManager.createVideoElement(a.targetElement,o.insertMode),a},t.prototype.subscribeAsync=function(e,t,n){var i=this;return new Promise((function(r,o){var a,s=function(e){e?o(e):r(a)};a=n?i.subscribe(e,t,n,s):i.subscribe(e,t,s)}))},t.prototype.unsubscribe=function(e){var t=e.stream.connection.connectionId;C.info("Unsubscribing from "+t),this.openvidu.sendRequest("unsubscribeFromVideo",{sender:e.stream.connection.connectionId},(function(n,i){n?C.error("Error unsubscribing from "+t,n):C.info("Unsubscribed correctly from "+t),e.stream.disposeWebRtcPeer(),e.stream.disposeMediaStream()})),e.stream.streamManager.removeAllVideos()},t.prototype.publish=function(e){var t=this;return new Promise((function(n,i){e.session=t,e.stream.session=t,e.stream.publishedOnce?e.initialize().then((function(){t.connection.addStream(e.stream),e.reestablishStreamPlayingEvent(),e.stream.publish().then((function(){t.sendVideoData(e,8,!0,5),n()})).catch((function(e){i(e)}))})).catch((function(e){i(e)})):(t.connection.addStream(e.stream),e.stream.publish().then((function(){t.sendVideoData(e,8,!0,5),n()})).catch((function(e){i(e)})))}))},t.prototype.unpublish=function(e){var t=e.stream;if(t.connection)if(t.connection===this.connection){C.info("Unpublishing local media ("+t.connection.connectionId+")"),this.openvidu.sendRequest("unpublishVideo",(function(e,t){e?C.error(e):C.info("Media unpublished correctly")})),t.disposeWebRtcPeer(),delete t.connection.stream;var n=new m.StreamEvent(!0,e,"streamDestroyed",e.stream,"unpublish");e.emitEvent("streamDestroyed",[n]),n.callDefaultBehavior()}else C.error("The associated Connection object of this Publisher is not your local Connection.Only moderators can force unpublish on remote Streams via 'forceUnpublish' method",t);else C.error("The associated Connection object of this Publisher is null",t)},t.prototype.forceDisconnect=function(e){var t=this;return new Promise((function(n,i){C.info("Forcing disconnect for connection "+e.connectionId),t.openvidu.sendRequest("forceDisconnect",{connectionId:e.connectionId},(function(t,r){t?(C.error("Error forcing disconnect for Connection "+e.connectionId,t),i(401===t.code?new _.OpenViduError(_.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to force a disconnection"):t)):(C.info("Forcing disconnect correctly for Connection "+e.connectionId),n())}))}))},t.prototype.forceUnpublish=function(e){var t=this;return new Promise((function(n,i){C.info("Forcing unpublish for stream "+e.streamId),t.openvidu.sendRequest("forceUnpublish",{streamId:e.streamId},(function(t,r){t?(C.error("Error forcing unpublish for Stream "+e.streamId,t),i(401===t.code?new _.OpenViduError(_.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to force an unpublishing"):t)):(C.info("Forcing unpublish correctly for Stream "+e.streamId),n())}))}))},t.prototype.signal=function(e){var t=this;return new Promise((function(n,i){var r={};if(e.to&&e.to.length>0){var o=[];e.to.forEach((function(e){e.connectionId&&o.push(e.connectionId)})),r.to=o}else r.to=[];r.data=e.data?e.data:"";var a=e.type?e.type:"signal";a&&"signal:"!==a.substring(0,7)&&(a="signal:"+a),r.type=a,t.openvidu.sendRequest("sendMessage",{message:JSON.stringify(r)},(function(e,t){e?i(e):n()}))}))},t.prototype.on=function(t,n){if(e.prototype.onAux.call(this,t,"Event '"+t+"' triggered by 'Session'",n),"publisherStartSpeaking"===t)for(var i in this.startSpeakingEventsEnabled=!0,this.remoteConnections)(r=this.remoteConnections[i].stream)&&r.hasAudio&&r.enableStartSpeakingEvent();if("publisherStopSpeaking"===t)for(var i in this.stopSpeakingEventsEnabled=!0,this.remoteConnections){var r;(r=this.remoteConnections[i].stream)&&r.hasAudio&&r.enableStopSpeakingEvent()}return this},t.prototype.once=function(t,n){if(e.prototype.onceAux.call(this,t,"Event '"+t+"' triggered once by 'Session'",n),"publisherStartSpeaking"===t)for(var i in this.startSpeakingEventsEnabledOnce=!0,this.remoteConnections)(r=this.remoteConnections[i].stream)&&r.hasAudio&&r.enableOnceStartSpeakingEvent();if("publisherStopSpeaking"===t)for(var i in this.stopSpeakingEventsEnabledOnce=!0,this.remoteConnections){var r;(r=this.remoteConnections[i].stream)&&r.hasAudio&&r.enableOnceStopSpeakingEvent()}return this},t.prototype.off=function(t,n){if(e.prototype.off.call(this,t,n),"publisherStartSpeaking"===t&&0===this.ee.getListeners(t).length)for(var i in this.startSpeakingEventsEnabled=!1,this.remoteConnections)(r=this.remoteConnections[i].stream)&&r.disableStartSpeakingEvent(!1);if("publisherStopSpeaking"===t&&0===this.ee.getListeners(t).length)for(var i in this.stopSpeakingEventsEnabled=!1,this.remoteConnections){var r;(r=this.remoteConnections[i].stream)&&r.disableStopSpeakingEvent(!1)}return this},t.prototype.onParticipantJoined=function(e){var t=this;this.getConnection(e.id,"").then((function(t){C.warn("Connection "+e.id+" already exists in connections list")})).catch((function(n){var i=new s.Connection(t,e);t.remoteConnections[e.id]=i,t.ee.emitEvent("connectionCreated",[new h.ConnectionEvent(!1,t,"connectionCreated",i,"")])}))},t.prototype.onParticipantLeft=function(e){var t=this;this.getRemoteConnection(e.connectionId,"Remote connection "+e.connectionId+" unknown when 'onParticipantLeft'. Existing remote connections: "+JSON.stringify(Object.keys(this.remoteConnections))).then((function(n){if(n.stream){var i=n.stream,r=new m.StreamEvent(!0,t,"streamDestroyed",i,e.reason);t.ee.emitEvent("streamDestroyed",[r]),r.callDefaultBehavior(),delete t.remoteStreamsCreated[i.streamId],0===Object.keys(t.remoteStreamsCreated).length&&(t.isFirstIonicIosSubscriber=!0,t.countDownForIonicIosSubscribersActive=!0)}delete t.remoteConnections[n.connectionId],t.ee.emitEvent("connectionDestroyed",[new h.ConnectionEvent(!1,t,"connectionDestroyed",n,e.reason)])})).catch((function(e){C.error(e)}))},t.prototype.onParticipantPublished=function(e){var t,n=this,i=function(e){n.remoteConnections[e.connectionId]=e,n.remoteStreamsCreated[e.stream.streamId]||n.ee.emitEvent("streamCreated",[new m.StreamEvent(!1,n,"streamCreated",e.stream,"")]),n.remoteStreamsCreated[e.stream.streamId]=!0};this.getRemoteConnection(e.id,"Remote connection '"+e.id+"' unknown when 'onParticipantPublished'. Existing remote connections: "+JSON.stringify(Object.keys(this.remoteConnections))).then((function(n){t=n,e.metadata=n.data,t.remoteOptions=e,t.initRemoteStreams(e.streams),i(t)})).catch((function(r){t=new s.Connection(n,e),i(t)}))},t.prototype.onParticipantUnpublished=function(e){var t=this;e.connectionId===this.connection.connectionId?this.stopPublisherStream(e.reason):this.getRemoteConnection(e.connectionId,"Remote connection '"+e.connectionId+"' unknown when 'onParticipantUnpublished'. Existing remote connections: "+JSON.stringify(Object.keys(this.remoteConnections))).then((function(n){var i=new m.StreamEvent(!0,t,"streamDestroyed",n.stream,e.reason);t.ee.emitEvent("streamDestroyed",[i]),i.callDefaultBehavior();var r=n.stream.streamId;delete t.remoteStreamsCreated[r],0===Object.keys(t.remoteStreamsCreated).length&&(t.isFirstIonicIosSubscriber=!0,t.countDownForIonicIosSubscribersActive=!0),n.removeStream(r)})).catch((function(e){C.error(e)}))},t.prototype.onParticipantEvicted=function(e){e.connectionId===this.connection.connectionId&&this.sessionId&&!this.connection.disposed&&this.leave(!0,e.reason)},t.prototype.onNewMessage=function(e){var t=this;C.info("New signal: "+JSON.stringify(e));var n=e.type?e.type.replace(/^(signal:)/,""):void 0;e.from?this.getConnection(e.from,"Connection '"+e.from+"' unknow when 'onNewMessage'. Existing remote connections: "+JSON.stringify(Object.keys(this.remoteConnections))+". Existing local connection: "+this.connection.connectionId).then((function(i){t.ee.emitEvent("signal",[new v.SignalEvent(t,n,e.data,i)]),"signal"!==e.type&&t.ee.emitEvent(e.type,[new v.SignalEvent(t,n,e.data,i)])})).catch((function(e){C.error(e)})):(this.ee.emitEvent("signal",[new v.SignalEvent(this,n,e.data,void 0)]),"signal"!==e.type&&this.ee.emitEvent(e.type,[new v.SignalEvent(this,n,e.data,void 0)]))},t.prototype.onStreamPropertyChanged=function(e){var t=this,n=function(n){if(n.stream&&n.stream.streamId===e.streamId){var i=n.stream,r=void 0;switch(e.property){case"audioActive":r=i.audioActive,e.newValue="true"===e.newValue,i.audioActive=e.newValue;break;case"videoActive":r=i.videoActive,e.newValue="true"===e.newValue,i.videoActive=e.newValue;break;case"videoDimensions":r=i.videoDimensions,e.newValue=JSON.parse(JSON.parse(e.newValue)),i.videoDimensions=e.newValue;break;case"filter":r=i.filter,e.newValue=Object.keys(e.newValue).length>0?e.newValue:void 0,void 0!==e.newValue?(i.filter=new u.Filter(e.newValue.type,e.newValue.options),i.filter.stream=i,e.newValue.lastExecMethod&&(i.filter.lastExecMethod=e.newValue.lastExecMethod)):delete i.filter,e.newValue=i.filter}t.ee.emitEvent("streamPropertyChanged",[new g.StreamPropertyChangedEvent(t,i,e.property,e.newValue,r,e.reason)]),i.streamManager&&i.streamManager.emitEvent("streamPropertyChanged",[new g.StreamPropertyChangedEvent(i.streamManager,i,e.property,e.newValue,r,e.reason)])}else C.error("No stream with streamId '"+e.streamId+"' found for connection '"+e.connectionId+"' on 'streamPropertyChanged' event")};e.connectionId===this.connection.connectionId?n(this.connection):this.getRemoteConnection(e.connectionId,"Remote connection "+e.connectionId+" unknown when 'onStreamPropertyChanged'. Existing remote connections: "+JSON.stringify(Object.keys(this.remoteConnections))).then((function(e){n(e)})).catch((function(e){C.error(e)}))},t.prototype.onConnectionPropertyChanged=function(e){var t;switch(e.property){case"role":t=this.connection.role.slice(),this.connection.role=e.newValue,this.connection.localOptions.role=e.newValue;break;case"record":t=this.connection.record,e.newValue="true"===e.newValue,this.connection.record=e.newValue,this.connection.localOptions.record=e.newValue}this.ee.emitEvent("connectionPropertyChanged",[new y.ConnectionPropertyChangedEvent(this,this.connection,e.property,e.newValue,t)])},t.prototype.onNetworkQualityLevelChangedChanged=function(e){var t=this;e.connectionId===this.connection.connectionId?this.ee.emitEvent("networkQualityLevelChanged",[new b.NetworkQualityLevelChangedEvent(this,e.newValue,e.oldValue,this.connection)]):this.getConnection(e.connectionId,"Connection not found for connectionId "+e.connectionId).then((function(n){t.ee.emitEvent("networkQualityLevelChanged",[new b.NetworkQualityLevelChangedEvent(t,e.newValue,e.oldValue,n)])})).catch((function(e){C.error(e)}))},t.prototype.recvIceCandidate=function(e){var t={candidate:e.candidate,component:e.component,foundation:e.foundation,port:e.port,priority:e.priority,protocol:e.protocol,relatedAddress:e.relatedAddress,relatedPort:e.relatedPort,sdpMid:e.sdpMid,sdpMLineIndex:e.sdpMLineIndex,tcpType:e.tcpType,usernameFragment:e.usernameFragment,type:e.type,toJSON:function(){return{candidate:e.candidate}}};this.getConnection(e.senderConnectionId,"Connection not found for connectionId "+e.senderConnectionId+" owning endpoint "+e.endpointName+". Ice candidate will be ignored: "+t).then((function(n){var i=n.stream;i.getWebRtcPeer().addIceCandidate(t).catch((function(t){C.error("Error adding candidate for "+i.streamId+" stream of endpoint "+e.endpointName+": "+t)}))})).catch((function(e){C.error(e)}))},t.prototype.onSessionClosed=function(e){C.info("Session closed: "+JSON.stringify(e));var t=e.sessionId;void 0!==t?this.ee.emitEvent("session-closed",[{session:t}]):C.warn("Session undefined on session closed",e)},t.prototype.onLostConnection=function(e){C.warn("Lost connection in Session "+this.sessionId),this.sessionId&&this.connection&&!this.connection.disposed&&this.leave(!0,e)},t.prototype.onRecoveredConnection=function(){C.info("Recovered connection in Session "+this.sessionId),this.reconnectBrokenStreams(),this.ee.emitEvent("reconnected",[])},t.prototype.onMediaError=function(e){C.error("Media error: "+JSON.stringify(e));var t=e.error;t?this.ee.emitEvent("error-media",[{error:t}]):C.warn("Received undefined media error. Params:",e)},t.prototype.onRecordingStarted=function(e){this.ee.emitEvent("recordingStarted",[new f.RecordingEvent(this,"recordingStarted",e.id,e.name)])},t.prototype.onRecordingStopped=function(e){this.ee.emitEvent("recordingStopped",[new f.RecordingEvent(this,"recordingStopped",e.id,e.name,e.reason)])},t.prototype.onFilterEventDispatched=function(e){var t=e.connectionId;this.getConnection(t,"No connection found for connectionId "+t).then((function(t){C.info("Filter event dispatched");var n=t.stream;n.filter.handlers[e.eventType](new d.FilterEvent(n.filter,e.eventType,e.data))}))},t.prototype.reconnectBrokenStreams=function(){C.info("Re-establishing media connections...");var e=!1;this.connection.stream&&this.connection.stream.streamIceConnectionStateBroken()&&(C.warn("Re-establishing Publisher "+this.connection.stream.streamId),this.connection.stream.initWebRtcPeerSend(!0),e=!0);for(var t=0,n=Object.values(this.remoteConnections);t<n.length;t++){var i=n[t];i.stream&&i.stream.streamIceConnectionStateBroken()&&(C.warn("Re-establishing Subscriber "+i.stream.streamId),i.stream.initWebRtcPeerReceive(!0),e=!0)}e||C.info("There were no media streams in need of a reconnection")},t.prototype.emitEvent=function(e,t){this.ee.emitEvent(e,t)},t.prototype.leave=function(e,t){var n=this;if(C.info("Leaving Session (forced="+(e=!!e)+")"),this.connection){if(this.connection.disposed||e?this.openvidu.closeWs():this.openvidu.sendRequest("leaveRoom",(function(e,t){e&&C.error(e),n.openvidu.closeWs()})),this.stopPublisherStream(t),!this.connection.disposed){var i=new p.SessionDisconnectedEvent(this,t);this.ee.emitEvent("sessionDisconnected",[i]),i.callDefaultBehavior()}}else C.warn("You were not connected to the session "+this.sessionId)},t.prototype.initializeParams=function(e){return{token:e||"",session:this.sessionId,platform:E.getDescription()?E.getDescription():"unknown",metadata:this.options.metadata?this.options.metadata:"",secret:this.openvidu.getSecret(),recorder:this.openvidu.getRecorder()}},t.prototype.sendVideoData=function(e,t,n,i){var r=this;if(void 0===t&&(t=1),void 0===n&&(n=!1),void 0===i&&(i=1),E.isChromeBrowser()||E.isChromeMobileBrowser()||E.isOperaBrowser()||E.isOperaMobileBrowser()||E.isElectron()||E.isSafariBrowser()&&!E.isIonicIos()||E.isAndroidBrowser()||E.isSamsungBrowser()||E.isIonicAndroid()||E.isIPhoneOrIPad()&&E.isIOSWithSafari()){var s=function(){return o(r,void 0,void 0,(function(){var t,n;return a(this,(function(i){switch(i.label){case 0:return[4,e.stream.getRTCPeerConnection().getStats()];case 1:return t=i.sent(),n=[],t.forEach((function(e){"frameWidth"in e&&"frameHeight"in e&&0===n.length&&n.push(e)})),n.length>0&&this.openvidu.sendRequest("videoData",{height:n[0].frameHeight,width:n[0].frameWidth,videoActive:null!=e.stream.videoActive&&e.stream.videoActive,audioActive:null!=e.stream.audioActive&&e.stream.audioActive},(function(e,t){e&&C.error("Error sending 'videoData' event",e)})),[2]}}))}))};if(n){var u=1;setTimeout((function e(){return o(this,void 0,void 0,(function(){return a(this,(function(n){switch(n.label){case 0:return[4,s()];case 1:return n.sent(),u<i&&(u++,setTimeout(e,1e3*t)),[2]}}))}))}),1e3*t)}else setTimeout(s,1e3*t)}else E.isFirefoxBrowser()||E.isFirefoxMobileBrowser()||E.isIonicIos()?this.openvidu.sendRequest("videoData",{height:e.stream.videoDimensions.height,width:e.stream.videoDimensions.width,videoActive:e.stream.videoActive,audioActive:e.stream.audioActive},(function(e,t){e&&C.error("Error sending 'videoData' event",e)})):C.error("Browser "+E.getName()+" (version "+E.getVersion()+") for "+E.getFamily()+" is not supported in OpenVidu for Network Quality")},t.prototype.connectAux=function(e){var t=this;return new Promise((function(n,i){t.openvidu.startWs((function(r){if(r)i(r);else{var o=t.initializeParams(e);t.openvidu.sendRequest("joinRoom",o,(function(e,r){if(e)i(e);else{t.processJoinRoomResponse(r),t.connection=new s.Connection(t,r);var o={connections:new Array,streams:new Array};r.value.forEach((function(e){var n=new s.Connection(t,e);t.remoteConnections[n.connectionId]=n,o.connections.push(n),n.stream&&(t.remoteStreamsCreated[n.stream.streamId]=!0,o.streams.push(n.stream))})),t.ee.emitEvent("connectionCreated",[new h.ConnectionEvent(!1,t,"connectionCreated",t.connection,"")]),o.connections.forEach((function(e){t.ee.emitEvent("connectionCreated",[new h.ConnectionEvent(!1,t,"connectionCreated",e,"")])})),o.streams.forEach((function(e){t.ee.emitEvent("streamCreated",[new m.StreamEvent(!1,t,"streamCreated",e,"")])})),n()}}))}}))}))},t.prototype.stopPublisherStream=function(e){this.connection.stream&&(this.connection.stream.disposeWebRtcPeer(),this.connection.stream.isLocalStreamPublished&&this.connection.stream.ee.emitEvent("local-stream-destroyed",[e]))},t.prototype.stringClientMetadata=function(e){return"string"!=typeof e?JSON.stringify(e):e},t.prototype.getConnection=function(e,t){var n=this;return new Promise((function(i,r){var o=n.remoteConnections[e];o?i(o):n.connection.connectionId===e?i(n.connection):r(new _.OpenViduError(_.OpenViduErrorName.GENERIC_ERROR,t))}))},t.prototype.getRemoteConnection=function(e,t){var n=this;return new Promise((function(i,r){var o=n.remoteConnections[e];o?i(o):r(new _.OpenViduError(_.OpenViduErrorName.GENERIC_ERROR,t))}))},t.prototype.processToken=function(e){var t=e.match(/^(wss?\:)\/\/(([^:\/?#]*)(?:\:([0-9]+))?)([\/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/);if(t){var n={protocol:t[1],host:t[2],hostname:t[3],port:t[4],pathname:t[5],search:t[6],hash:t[7]},i=e.split("?"),r=decodeURI(i[1]).split("&").map((function(e){return e.split("=")})).reduce((function(e,t){return e[t[0]]=t[1],e}),{});this.sessionId=r.sessionId;var o=r.secret,a=r.recorder,s=r.webrtcStatsInterval;o&&(this.openvidu.secret=o),a&&(this.openvidu.recorder=!0),s&&(this.openvidu.webrtcStatsInterval=+s),this.openvidu.wsUri="wss://"+n.host+"/openvidu",this.openvidu.httpUri="https://"+n.host}else C.error('Token "'+e+'" is not valid')},t.prototype.processJoinRoomResponse=function(e){if(this.sessionId=e.session,null!=e.coturnIp&&null!=e.turnUsername&&null!=e.turnCredential){var t="turn:"+e.coturnIp+":3478";this.openvidu.iceServers=[{urls:["stun:"+e.coturnIp+":3478"]},{urls:[t,t+"?transport=tcp"],username:e.turnUsername,credential:e.turnCredential}],C.log("STUN/TURN server IP: "+e.coturnIp),C.log("TURN temp credentials ["+e.turnUsername+":"+e.turnCredential+"]")}this.openvidu.role=e.role,this.capabilities={subscribe:!0,publish:"SUBSCRIBER"!==this.openvidu.role,forceUnpublish:"MODERATOR"===this.openvidu.role,forceDisconnect:"MODERATOR"===this.openvidu.role},C.info("openvidu-server version: "+e.version),e.version!==this.openvidu.libraryVersion&&C.warn("OpenVidu Server ("+e.version+") and OpenVidu Browser ("+this.openvidu.libraryVersion+") versions do NOT match. There may be incompatibilities")},t}(l.EventDispatcher);t.Session=O},JUw6:function(e,t,n){"use strict";t.__esModule=!0,t.inherits=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=Object.create(e.prototype);for(var r in n)i[r]=n[r];return i.constructor=t,t.prototype=i,t}},LBXl:function(e,t,n){"use strict";t.UnsubscriptionError=function(){function e(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}()},LXjW:function(e,t,n){"use strict";t.__esModule=!0,t.tokenize=t.test=t.scanner=t.parser=t.options=t.inherits=t.find=void 0;var i=n("JUw6"),r=s(n("MW5i")),o=s(n("t/6/")),a=s(n("QSjB"));function s(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var u=function(e){return a.run(o.run(e))};t.find=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=u(e),i=[],r=0;r<n.length;r++){var o=n[r];!o.isLink||t&&o.type!==t||i.push(o.toObject())}return i},t.inherits=i.inherits,t.options=r,t.parser=a,t.scanner=o,t.test=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=u(e);return 1===n.length&&n[0].isLink&&(!t||n[0].type===t)},t.tokenize=u},MW5i:function(e,t,n){"use strict";t.__esModule=!0;var i="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},r={defaultProtocol:"http",events:null,format:a,formatHref:a,nl2br:!1,tagName:"a",target:function(e,t){return"url"===t?"_blank":null},validate:!0,ignoreTags:[],attributes:null,className:"linkified"};function o(e){this.defaultProtocol=(e=e||{}).hasOwnProperty("defaultProtocol")?e.defaultProtocol:r.defaultProtocol,this.events=e.hasOwnProperty("events")?e.events:r.events,this.format=e.hasOwnProperty("format")?e.format:r.format,this.formatHref=e.hasOwnProperty("formatHref")?e.formatHref:r.formatHref,this.nl2br=e.hasOwnProperty("nl2br")?e.nl2br:r.nl2br,this.tagName=e.hasOwnProperty("tagName")?e.tagName:r.tagName,this.target=e.hasOwnProperty("target")?e.target:r.target,this.validate=e.hasOwnProperty("validate")?e.validate:r.validate,this.ignoreTags=[],this.attributes=e.attributes||e.linkAttributes||r.attributes,this.className=e.hasOwnProperty("className")?e.className:e.linkClass||r.className;for(var t=e.hasOwnProperty("ignoreTags")?e.ignoreTags:r.ignoreTags,n=0;n<t.length;n++)this.ignoreTags.push(t[n].toUpperCase())}function a(e){return e}t.defaults=r,t.Options=o,t.contains=function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1},o.prototype={resolve:function(e){var t=e.toHref(this.defaultProtocol);return{formatted:this.get("format",e.toString(),e),formattedHref:this.get("formatHref",t,e),tagName:this.get("tagName",t,e),className:this.get("className",t,e),target:this.get("target",t,e),events:this.getObject("events",t,e),attributes:this.getObject("attributes",t,e)}},check:function(e){return this.get("validate",e.toString(),e)},get:function(e,t,n){var o=void 0,a=this[e];if(!a)return a;switch(void 0===a?"undefined":i(a)){case"function":return a(t,n.type);case"object":return"function"==typeof(o=a.hasOwnProperty(n.type)?a[n.type]:r[e])?o(t,n.type):o}return a},getObject:function(e,t,n){var i=this[e];return"function"==typeof i?i(t,n.type):i}}},MkmW:function(e,t,n){"use strict";t.hostReportError=function(e){setTimeout((function(){throw e}),0)}},Mxlh:function(e,t,n){"use strict";t.ObjectUnsubscribedError=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}()},OAkW:function(e,t,n){"use strict";t.subscribeToArray=function(e){return function(t){for(var n=0,i=e.length;n<i&&!t.closed;n++)t.next(e[n]);t.complete()}}},P3vI:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});t.__esModule=!0,t.StreamManager=void 0;var o=n("Dztv"),a=n("HxXY"),s=n("oIG1"),u=n("/dLB"),c=n("9m68"),l=n("4jfU"),h=c.OpenViduLogger.getInstance(),d=l.PlatformUtils.getInstance(),f=function(e){function t(t,n){var i=e.call(this)||this;if(i.videos=[],i.lazyLaunchVideoElementCreatedEvent=!1,i.stream=t,i.stream.streamManager=i,i.remote=!i.stream.isLocal(),n){var r=void 0;"string"==typeof n?r=document.getElementById(n):n instanceof HTMLElement&&(r=n),r&&(i.firstVideoElement={targetElement:r,video:document.createElement("video"),id:"",canplayListenerAdded:!1},d.isSafariBrowser()&&i.firstVideoElement.video.setAttribute("playsinline","true"),i.targetElement=r,i.element=r)}return i.canPlayListener=function(){i.stream.isLocal()?i.stream.displayMyRemote()?(h.info("Your own remote 'Stream' with id ["+i.stream.streamId+"] video is now playing"),i.ee.emitEvent("remoteVideoPlaying",[new s.VideoElementEvent(i.videos[0].video,i,"remoteVideoPlaying")])):(h.info("Your local 'Stream' with id ["+i.stream.streamId+"] video is now playing"),i.ee.emitEvent("videoPlaying",[new s.VideoElementEvent(i.videos[0].video,i,"videoPlaying")])):(h.info("Remote 'Stream' with id ["+i.stream.streamId+"] video is now playing"),i.ee.emitEvent("videoPlaying",[new s.VideoElementEvent(i.videos[0].video,i,"videoPlaying")])),i.ee.emitEvent("streamPlaying",[new a.StreamManagerEvent(i,"streamPlaying",void 0)])},i}return r(t,e),t.prototype.on=function(t,n){return e.prototype.onAux.call(this,t,"Event '"+t+"' triggered by '"+(this.remote?"Subscriber":"Publisher")+"'",n),"videoElementCreated"===t&&this.stream&&this.lazyLaunchVideoElementCreatedEvent&&(this.ee.emitEvent("videoElementCreated",[new s.VideoElementEvent(this.videos[0].video,this,"videoElementCreated")]),this.lazyLaunchVideoElementCreatedEvent=!1),"streamPlaying"!==t&&"videoPlaying"!==t||this.videos[0]&&this.videos[0].video&&this.videos[0].video.currentTime>0&&!1===this.videos[0].video.paused&&!1===this.videos[0].video.ended&&4===this.videos[0].video.readyState&&(this.ee.emitEvent("streamPlaying",[new a.StreamManagerEvent(this,"streamPlaying",void 0)]),this.ee.emitEvent("videoPlaying",[new s.VideoElementEvent(this.videos[0].video,this,"videoPlaying")])),"streamAudioVolumeChange"===t&&this.stream.hasAudio&&this.stream.enableVolumeChangeEvent(!1),this},t.prototype.once=function(t,n){return e.prototype.onceAux.call(this,t,"Event '"+t+"' triggered once by '"+(this.remote?"Subscriber":"Publisher")+"'",n),"videoElementCreated"===t&&this.stream&&this.lazyLaunchVideoElementCreatedEvent&&this.ee.emitEvent("videoElementCreated",[new s.VideoElementEvent(this.videos[0].video,this,"videoElementCreated")]),"streamPlaying"!==t&&"videoPlaying"!==t||this.videos[0]&&this.videos[0].video&&this.videos[0].video.currentTime>0&&!1===this.videos[0].video.paused&&!1===this.videos[0].video.ended&&4===this.videos[0].video.readyState&&(this.ee.emitEvent("streamPlaying",[new a.StreamManagerEvent(this,"streamPlaying",void 0)]),this.ee.emitEvent("videoPlaying",[new s.VideoElementEvent(this.videos[0].video,this,"videoPlaying")])),"streamAudioVolumeChange"===t&&this.stream.hasAudio&&this.stream.enableOnceVolumeChangeEvent(!1),this},t.prototype.off=function(t,n){return e.prototype.off.call(this,t,n),"streamAudioVolumeChange"===t&&0===this.ee.getListeners(t).length&&this.stream.disableVolumeChangeEvent(!1),this},t.prototype.addVideoElement=function(e){this.initializeVideoProperties(e),this.stream.isLocal()&&this.stream.displayMyRemote()&&e.srcObject!==this.stream.getMediaStream()&&(e.srcObject=this.stream.getMediaStream());for(var t=0,n=this.videos;t<n.length;t++)if(n[t].video===e)return 0;for(var i=1,r=0,o=this.stream.session.streamManagers;r<o.length;r++)if(o[r].disassociateVideo(e)){i=-1;break}return this.stream.session.streamManagers.forEach((function(t){t.disassociateVideo(e)})),this.pushNewStreamManagerVideo({video:e,id:e.id,canplayListenerAdded:!1}),h.info("New video element associated to ",this),i},t.prototype.createVideoElement=function(e,t){var n;if("string"==typeof e){if(!(n=document.getElementById(e)))throw new Error("The provided 'targetElement' couldn't be resolved to any HTML element: "+e)}else{if(!(e instanceof HTMLElement))throw new Error("The provided 'targetElement' couldn't be resolved to any HTML element: "+e);n=e}var i=this.createVideo();this.initializeVideoProperties(i);var r=t||u.VideoInsertMode.APPEND;switch(r){case u.VideoInsertMode.AFTER:n.parentNode.insertBefore(i,n.nextSibling);break;case u.VideoInsertMode.APPEND:n.appendChild(i);break;case u.VideoInsertMode.BEFORE:n.parentNode.insertBefore(i,n);break;case u.VideoInsertMode.PREPEND:n.insertBefore(i,n.childNodes[0]);break;case u.VideoInsertMode.REPLACE:n.parentNode.replaceChild(i,n);break;default:r=u.VideoInsertMode.APPEND,n.appendChild(i)}var o={targetElement:n,video:i,insertMode:r,id:i.id,canplayListenerAdded:!1};return this.pushNewStreamManagerVideo(o),this.ee.emitEvent("videoElementCreated",[new s.VideoElementEvent(o.video,this,"videoElementCreated")]),this.lazyLaunchVideoElementCreatedEvent=!!this.firstVideoElement,i},t.prototype.updatePublisherSpeakingEventsOptions=function(e){var t=this.stream.harkOptions?this.stream.harkOptions:this.stream.session.openvidu.advancedConfiguration.publisherSpeakingEventsOptions||{},n="number"==typeof e.interval?e.interval:"number"==typeof t.interval?t.interval:100,i="number"==typeof e.threshold?e.threshold:"number"==typeof t.threshold?t.threshold:-50;this.stream.harkOptions={interval:n,threshold:i},this.stream.speechEvent&&(this.stream.speechEvent.setInterval(n),this.stream.speechEvent.setThreshold(i))},t.prototype.initializeVideoProperties=function(e){this.stream.isLocal()&&this.stream.displayMyRemote()||e.srcObject!==this.stream.getMediaStream()&&(e.srcObject=this.stream.getMediaStream()),e.autoplay=!0,e.controls=!1,d.isSafariBrowser()&&e.setAttribute("playsinline","true"),e.id||(e.id=(this.remote?"remote-":"local-")+"video-"+this.stream.streamId,!this.id&&this.targetElement&&(this.id=e.id)),this.remote||this.stream.displayMyRemote()||(e.muted=!0,"rotateY(180deg)"!==e.style.transform||this.stream.outboundStreamOpts.publisherProperties.mirror?this.stream.outboundStreamOpts.publisherProperties.mirror&&!this.stream.isSendScreen()&&this.mirrorVideo(e):this.removeMirrorVideo(e))},t.prototype.removeAllVideos=function(){for(var e=this,t=this.stream.session.streamManagers.length-1;t>=0;--t)this.stream.session.streamManagers[t]===this&&this.stream.session.streamManagers.splice(t,1);this.videos.forEach((function(t){t.video&&t.video.removeEventListener&&t.video.removeEventListener("canplay",e.canPlayListener),t.canplayListenerAdded=!1,t.targetElement&&(t.video.parentNode.removeChild(t.video),e.ee.emitEvent("videoElementDestroyed",[new s.VideoElementEvent(t.video,e,"videoElementDestroyed")])),e.removeSrcObject(t),e.videos.filter((function(e){return!e.targetElement}))}))},t.prototype.disassociateVideo=function(e){for(var t=!1,n=0;n<this.videos.length;n++)if(this.videos[n].video===e){this.videos[n].video.removeEventListener("canplay",this.canPlayListener),this.videos.splice(n,1),t=!0,h.info("Video element disassociated from ",this);break}return t},t.prototype.addPlayEventToFirstVideo=function(){this.videos[0]&&this.videos[0].video&&!this.videos[0].canplayListenerAdded&&(this.videos[0].video.addEventListener("canplay",this.canPlayListener),this.videos[0].canplayListenerAdded=!0)},t.prototype.updateMediaStream=function(e){this.videos.forEach((function(t){if(t.video.srcObject=e,d.isIonicIos()){var n=t.video;t.video.parentElement.replaceChild(n,t.video),t.video=n}}))},t.prototype.emitEvent=function(e,t){this.ee.emitEvent(e,t)},t.prototype.createVideo=function(){return document.createElement("video")},t.prototype.removeSrcObject=function(e){e.video.srcObject=null},t.prototype.pushNewStreamManagerVideo=function(e){this.videos.push(e),this.addPlayEventToFirstVideo(),-1===this.stream.session.streamManagers.indexOf(this)&&this.stream.session.streamManagers.push(this)},t.prototype.mirrorVideo=function(e){d.isIonicIos()||(e.style.transform="rotateY(180deg)",e.style.webkitTransform="rotateY(180deg)")},t.prototype.removeMirrorVideo=function(e){e.style.transform="unset",e.style.webkitTransform="unset"},t}(o.EventDispatcher);t.StreamManager=f},P7XM:function(e,t){e.exports="function"==typeof Object.create?function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},PEz1:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});t.__esModule=!0,t.Publisher=void 0;var o=n("JTMn"),a=n("DPKQ"),s=n("P3vI"),u=n("Te8r"),c=n("BwMD"),l=n("oIG1"),h=n("Tt94"),d=n("9m68"),f=n("4jfU"),p=d.OpenViduLogger.getInstance(),v=f.PlatformUtils.getInstance(),m=function(e){function t(t,n,i){var r=e.call(this,new a.Stream(i.session?i.session:new o.Session(i),{publisherProperties:n,mediaConstraints:{}}),t)||this;return r.accessAllowed=!1,r.isSubscribedToRemote=!1,r.accessDenied=!1,r.properties=n,r.openvidu=i,r.stream.ee.on("local-stream-destroyed",(function(e){r.stream.isLocalStreamPublished=!1;var t=new u.StreamEvent(!0,r,"streamDestroyed",r.stream,e);r.emitEvent("streamDestroyed",[t]),t.callDefaultBehavior()})),r}return r(t,e),t.prototype.publishAudio=function(e){var t=this;this.stream.audioActive!==e&&((this.stream.displayMyRemote()?this.stream.localMediaStreamWhenSubscribedToRemote:this.stream.getMediaStream()).getAudioTracks().forEach((function(t){t.enabled=e})),this.session&&this.stream.streamId&&this.session.openvidu.sendRequest("streamPropertyChanged",{streamId:this.stream.streamId,property:"audioActive",newValue:e,reason:"publishAudio"},(function(n,i){n?p.error("Error sending 'streamPropertyChanged' event",n):(t.session.emitEvent("streamPropertyChanged",[new c.StreamPropertyChangedEvent(t.session,t.stream,"audioActive",e,!e,"publishAudio")]),t.emitEvent("streamPropertyChanged",[new c.StreamPropertyChangedEvent(t,t.stream,"audioActive",e,!e,"publishAudio")]),t.session.sendVideoData(t.stream.streamManager))})),this.stream.audioActive=e,p.info("'Publisher' has "+(e?"published":"unpublished")+" its audio stream"))},t.prototype.publishVideo=function(e){var t=this;this.stream.videoActive!==e&&((this.stream.displayMyRemote()?this.stream.localMediaStreamWhenSubscribedToRemote:this.stream.getMediaStream()).getVideoTracks().forEach((function(t){t.enabled=e})),this.session&&this.stream.streamId&&this.session.openvidu.sendRequest("streamPropertyChanged",{streamId:this.stream.streamId,property:"videoActive",newValue:e,reason:"publishVideo"},(function(n,i){n?p.error("Error sending 'streamPropertyChanged' event",n):(t.session.emitEvent("streamPropertyChanged",[new c.StreamPropertyChangedEvent(t.session,t.stream,"videoActive",e,!e,"publishVideo")]),t.emitEvent("streamPropertyChanged",[new c.StreamPropertyChangedEvent(t,t.stream,"videoActive",e,!e,"publishVideo")]),t.session.sendVideoData(t.stream.streamManager))})),this.stream.videoActive=e,p.info("'Publisher' has "+(e?"published":"unpublished")+" its video stream"))},t.prototype.subscribeToRemote=function(e){this.isSubscribedToRemote=e=void 0===e||e,this.stream.subscribeToMyRemote(e)},t.prototype.on=function(t,n){var i=this;return e.prototype.on.call(this,t,n),"streamCreated"===t&&(this.stream&&this.stream.isLocalStreamPublished?this.emitEvent("streamCreated",[new u.StreamEvent(!1,this,"streamCreated",this.stream,"")]):this.stream.ee.on("stream-created-by-publisher",(function(){i.emitEvent("streamCreated",[new u.StreamEvent(!1,i,"streamCreated",i.stream,"")])}))),"remoteVideoPlaying"===t&&this.stream.displayMyRemote()&&this.videos[0]&&this.videos[0].video&&this.videos[0].video.currentTime>0&&!1===this.videos[0].video.paused&&!1===this.videos[0].video.ended&&4===this.videos[0].video.readyState&&this.emitEvent("remoteVideoPlaying",[new l.VideoElementEvent(this.videos[0].video,this,"remoteVideoPlaying")]),"accessAllowed"===t&&this.accessAllowed&&this.emitEvent("accessAllowed",[]),"accessDenied"===t&&this.accessDenied&&this.emitEvent("accessDenied",[]),this},t.prototype.once=function(t,n){var i=this;return e.prototype.once.call(this,t,n),"streamCreated"===t&&(this.stream&&this.stream.isLocalStreamPublished?this.emitEvent("streamCreated",[new u.StreamEvent(!1,this,"streamCreated",this.stream,"")]):this.stream.ee.once("stream-created-by-publisher",(function(){i.emitEvent("streamCreated",[new u.StreamEvent(!1,i,"streamCreated",i.stream,"")])}))),"remoteVideoPlaying"===t&&this.stream.displayMyRemote()&&this.videos[0]&&this.videos[0].video&&this.videos[0].video.currentTime>0&&!1===this.videos[0].video.paused&&!1===this.videos[0].video.ended&&4===this.videos[0].video.readyState&&this.emitEvent("remoteVideoPlaying",[new l.VideoElementEvent(this.videos[0].video,this,"remoteVideoPlaying")]),"accessAllowed"===t&&this.accessAllowed&&this.emitEvent("accessAllowed",[]),"accessDenied"===t&&this.accessDenied&&this.emitEvent("accessDenied",[]),this},t.prototype.replaceTrack=function(e){var t=this,n=function(){var n,i=t.stream.displayMyRemote()?t.stream.localMediaStreamWhenSubscribedToRemote:t.stream.getMediaStream();n="video"===e.kind?i.getVideoTracks()[0]:i.getAudioTracks()[0],i.removeTrack(n),n.stop(),i.addTrack(e),t.session.sendVideoData(t.stream.streamManager,5,!0,5)};return new Promise((function(i,r){if(t.stream.isLocalStreamPublished){var o=t.stream.getRTCPeerConnection().getSenders(),a=void 0;"video"===e.kind?(a=o.find((function(e){return!!e.track&&"video"===e.track.kind})))||r(new Error("There's no replaceable track for that kind of MediaStreamTrack in this Publisher object")):"audio"===e.kind?(a=o.find((function(e){return!!e.track&&"audio"===e.track.kind})))||r(new Error("There's no replaceable track for that kind of MediaStreamTrack in this Publisher object")):r(new Error("Unknown track kind "+e.kind)),a.replaceTrack(e).then((function(){n(),i()})).catch((function(e){r(e)}))}else n(),i()}))},t.prototype.initialize=function(){var e=this;return new Promise((function(t,n){var i,r={},o={},a=1250,s=function(t){e.accessDenied=!0,e.accessAllowed=!1,n(t)},u=function(n){if(e.accessAllowed=!0,e.accessDenied=!1,"undefined"!=typeof MediaStreamTrack&&e.properties.audioSource instanceof MediaStreamTrack&&(n.removeTrack(n.getAudioTracks()[0]),n.addTrack(e.properties.audioSource)),"undefined"!=typeof MediaStreamTrack&&e.properties.videoSource instanceof MediaStreamTrack&&(n.removeTrack(n.getVideoTracks()[0]),n.addTrack(e.properties.videoSource)),n.getAudioTracks()[0]){var i=null!=e.stream.audioActive?e.stream.audioActive:!!e.stream.outboundStreamOpts.publisherProperties.publishAudio;n.getAudioTracks()[0].enabled=i}if(n.getVideoTracks()[0]&&(i=null!=e.stream.videoActive?e.stream.videoActive:!!e.stream.outboundStreamOpts.publisherProperties.publishVideo,n.getVideoTracks()[0].enabled=i),e.initializeVideoReference(n),e.stream.displayMyRemote()||e.stream.updateMediaStreamInVideos(),delete e.firstVideoElement,e.stream.isSendVideo())if(e.stream.isSendScreen())e.videoReference.addEventListener("loadedmetadata",(function(){e.stream.videoDimensions={width:e.videoReference.videoWidth,height:e.videoReference.videoHeight},e.screenShareResizeInterval=setInterval((function(){var t=n.getVideoTracks()[0].getSettings(),i=v.isChromeBrowser()||v.isOperaBrowser()?e.videoReference.videoWidth:t.width,r=v.isChromeBrowser()||v.isOperaBrowser()?e.videoReference.videoHeight:t.height;if(e.stream.isLocalStreamPublished&&(i!==e.stream.videoDimensions.width||r!==e.stream.videoDimensions.height)){var o={width:e.stream.videoDimensions.width,height:e.stream.videoDimensions.height};e.stream.videoDimensions={width:i||0,height:r||0},e.session.openvidu.sendRequest("streamPropertyChanged",{streamId:e.stream.streamId,property:"videoDimensions",newValue:JSON.stringify(e.stream.videoDimensions),reason:"screenResized"},(function(t,n){t?p.error("Error sending 'streamPropertyChanged' event",t):(e.session.emitEvent("streamPropertyChanged",[new c.StreamPropertyChangedEvent(e.session,e.stream,"videoDimensions",e.stream.videoDimensions,o,"screenResized")]),e.emitEvent("streamPropertyChanged",[new c.StreamPropertyChangedEvent(e,e.stream,"videoDimensions",e.stream.videoDimensions,o,"screenResized")]),e.session.sendVideoData(e.stream.streamManager))}))}}),500),e.stream.isLocalStreamReadyToPublish=!0,e.stream.ee.emitEvent("stream-ready-to-publish",[])}));else if(v.isIonicIos()||v.isSafariBrowser()){e.videoReference.style.display="none",document.body.appendChild(e.videoReference);var r,o=function(){e.stream.videoDimensions={width:e.videoReference.videoWidth,height:e.videoReference.videoHeight},e.stream.isLocalStreamReadyToPublish=!0,e.stream.ee.emitEvent("stream-ready-to-publish",[]),document.body.removeChild(e.videoReference)};e.videoReference.addEventListener("loadedmetadata",(function(){0===e.videoReference.videoWidth?r=setInterval((function(){0!==e.videoReference.videoWidth&&(clearInterval(r),o())}),40):o()}))}else{var a=e.getVideoDimensions(n),s=a.width,u=a.height;e.stream.videoDimensions=v.isMobileDevice()&&window.innerHeight>window.innerWidth?{width:u||0,height:s||0}:{width:s||0,height:u||0},e.stream.isLocalStreamReadyToPublish=!0,e.stream.ee.emitEvent("stream-ready-to-publish",[])}else e.stream.isLocalStreamReadyToPublish=!0,e.stream.ee.emitEvent("stream-ready-to-publish",[]);t()},l=function(t,n){e.clearPermissionDialogTimer(i,a),e.stream.isSendScreen()&&e.stream.isSendAudio()?(o.audio=n,o.video=!1,i=Date.now(),e.setPermissionDialogTimer(a),navigator.mediaDevices.getUserMedia(o).then((function(n){e.clearPermissionDialogTimer(i,a),t.addTrack(n.getAudioTracks()[0]),u(t)})).catch((function(n){e.clearPermissionDialogTimer(i,a),t.getAudioTracks().forEach((function(e){e.stop()})),t.getVideoTracks().forEach((function(e){e.stop()})),s(e.openvidu.generateAudioDeviceError(n,r))}))):u(t)},d=function(t){var n,o;switch(p.error(t),e.clearPermissionDialogTimer(i,a),"Error"===t.name&&(t.name=t.constructor.name),t.name.toLowerCase()){case"notfounderror":navigator.mediaDevices.getUserMedia({audio:!1,video:r.video}).then((function(e){e.getVideoTracks().forEach((function(e){e.stop()})),n=h.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,o=t.toString(),s(new h.OpenViduError(n,o))})).catch((function(e){n=h.OpenViduErrorName.INPUT_VIDEO_DEVICE_NOT_FOUND,o=t.toString(),s(new h.OpenViduError(n,o))}));break;case"notallowederror":n=e.stream.isSendScreen()?h.OpenViduErrorName.SCREEN_CAPTURE_DENIED:h.OpenViduErrorName.DEVICE_ACCESS_DENIED,o=t.toString(),s(new h.OpenViduError(n,o));break;case"overconstrainederror":navigator.mediaDevices.getUserMedia({audio:!1,video:r.video}).then((function(e){e.getVideoTracks().forEach((function(e){e.stop()})),"deviceid"===t.constraint.toLowerCase()?(n=h.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,o="Audio input device with deviceId '"+r.audio.deviceId.exact+"' not found"):(n=h.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,o="Audio input device doesn't support the value passed for constraint '"+t.constraint+"'"),s(new h.OpenViduError(n,o))})).catch((function(e){"deviceid"===t.constraint.toLowerCase()?(n=h.OpenViduErrorName.INPUT_VIDEO_DEVICE_NOT_FOUND,o="Video input device with deviceId '"+r.video.deviceId.exact+"' not found"):(n=h.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,o="Video input device doesn't support the value passed for constraint '"+t.constraint+"'"),s(new h.OpenViduError(n,o))}));break;case"aborterror":case"notreadableerror":n=h.OpenViduErrorName.DEVICE_ALREADY_IN_USE,o=t.toString(),s(new h.OpenViduError(n,o));break;default:n=h.OpenViduErrorName.GENERIC_ERROR,o=t.toString(),s(new h.OpenViduError(n,o))}};e.openvidu.generateMediaConstraints(e.properties).then((function(t){var n,s;if(t.videoTrack&&t.audioTrack||t.audioTrack&&!1===(null===(n=t.constraints)||void 0===n?void 0:n.video)||t.videoTrack&&!1===(null===(s=t.constraints)||void 0===s?void 0:s.audio))u(e.openvidu.addAlreadyProvidedTracks(t,new MediaStream));else{e.stream.setOutboundStreamOptions({mediaConstraints:r=t.constraints,publisherProperties:e.properties});var c=void 0===r.audio||r.audio;o.audio=!e.stream.isSendScreen()&&c,o.video=r.video,i=Date.now(),e.setPermissionDialogTimer(a),e.stream.isSendScreen()&&navigator.mediaDevices.getDisplayMedia&&!v.isElectron()?navigator.mediaDevices.getDisplayMedia({video:!0}).then((function(n){e.openvidu.addAlreadyProvidedTracks(t,n),l(n,c)})).catch((function(e){d(e)})):navigator.mediaDevices.getUserMedia(o).then((function(n){e.openvidu.addAlreadyProvidedTracks(t,n),l(n,c)})).catch((function(e){d(e)}))}})).catch((function(e){s(e)}))}))},t.prototype.getVideoDimensions=function(e){return e.getVideoTracks()[0].getSettings()},t.prototype.reestablishStreamPlayingEvent=function(){this.ee.getListeners("streamPlaying").length>0&&this.addPlayEventToFirstVideo()},t.prototype.initializeVideoReference=function(e){this.videoReference=document.createElement("video"),v.isSafariBrowser()&&this.videoReference.setAttribute("playsinline","true"),this.stream.setMediaStream(e),this.firstVideoElement&&this.createVideoElement(this.firstVideoElement.targetElement,this.properties.insertMode),this.videoReference.srcObject=e},t.prototype.setPermissionDialogTimer=function(e){var t=this;this.permissionDialogTimeout=setTimeout((function(){t.emitEvent("accessDialogOpened",[])}),e)},t.prototype.clearPermissionDialogTimer=function(e,t){clearTimeout(this.permissionDialogTimeout),Date.now()-e>t&&this.emitEvent("accessDialogClosed",[])},t}(s.StreamManager);t.Publisher=m},PPcv:function(e,t,n){"use strict";t.__esModule=!0,t.OpenVidu=void 0;var i=n("tInm"),r=n("PEz1"),o=n("JTMn"),a=n("ksJj"),s=n("BwMD"),u=n("Tt94"),c=n("/dLB"),l=n("9m68"),h=n("4jfU"),d=n("+27z"),f=n("EcWD"),p=n("4O8T"),v=n("AeG9"),m=n("vqFl"),g=l.OpenViduLogger.getInstance(),y=h.PlatformUtils.getInstance(),b=function(){function e(){var e=this;this.publishers=[],this.secret="",this.recorder=!1,this.advancedConfiguration={},this.webrtcStatsInterval=0,this.ee=new p,this.libraryVersion=m.version,g.info("'OpenVidu' initialized"),g.info("openvidu-browser version: "+this.libraryVersion),y.isMobileDevice()&&window.addEventListener("orientationchange",(function(){e.publishers.forEach((function(t){if(t.stream.isLocalStreamPublished&&t.stream&&t.stream.hasVideo&&t.stream.streamManager.videos[0])var n=0,i=t.stream.videoDimensions.width,r=t.stream.videoDimensions.height,o=setInterval((function(){new Promise((function(e,n){if(y.isIonicIos())e({newWidth:t.stream.streamManager.videos[0].video.videoWidth,newHeight:t.stream.streamManager.videos[0].video.videoHeight});else{var i=t.stream.getMediaStream().getVideoTracks()[0].getSettings();e({newWidth:y.isFirefoxBrowser()||y.isFirefoxMobileBrowser()?i.width:t.videoReference.videoWidth,newHeight:y.isFirefoxBrowser()||y.isFirefoxMobileBrowser()?i.height:t.videoReference.videoHeight})}})).then((function(e){a(i,r,e.newWidth,e.newHeight)}))}),75),a=function(i,r,a,u){++n>10&&clearTimeout(o),a===i&&u===r||(t.stream.videoDimensions={width:a||0,height:u||0},e.sendRequest("streamPropertyChanged",{streamId:t.stream.streamId,property:"videoDimensions",newValue:JSON.stringify(t.stream.videoDimensions),reason:"deviceRotated"},(function(n,o){n?g.error("Error sending 'streamPropertyChanged' event",n):(e.session.emitEvent("streamPropertyChanged",[new s.StreamPropertyChangedEvent(e.session,t.stream,"videoDimensions",t.stream.videoDimensions,{width:i,height:r},"deviceRotated")]),t.emitEvent("streamPropertyChanged",[new s.StreamPropertyChangedEvent(t,t.stream,"videoDimensions",t.stream.videoDimensions,{width:i,height:r},"deviceRotated")]),e.session.sendVideoData(t))})),clearTimeout(o))}}))}))}return e.prototype.initSession=function(){return this.session=new o.Session(this),this.session},e.prototype.initPublisher=function(e,t,n){var i;i=t&&"function"!=typeof t?{audioSource:void 0!==(i=t).audioSource?i.audioSource:void 0,frameRate:"undefined"!=typeof MediaStreamTrack&&i.videoSource instanceof MediaStreamTrack?void 0:void 0!==i.frameRate?i.frameRate:void 0,insertMode:void 0!==i.insertMode?"string"==typeof i.insertMode?c.VideoInsertMode[i.insertMode]:i.insertMode:c.VideoInsertMode.APPEND,mirror:void 0===i.mirror||i.mirror,publishAudio:void 0===i.publishAudio||i.publishAudio,publishVideo:void 0===i.publishVideo||i.publishVideo,resolution:"undefined"!=typeof MediaStreamTrack&&i.videoSource instanceof MediaStreamTrack?void 0:void 0!==i.resolution?i.resolution:"640x480",videoSource:void 0!==i.videoSource?i.videoSource:void 0,filter:i.filter}:{insertMode:c.VideoInsertMode.APPEND,mirror:!0,publishAudio:!0,publishVideo:!0,resolution:"640x480"};var o,a=new r.Publisher(e,i,this);return t&&"function"==typeof t?o=t:n&&(o=n),a.initialize().then((function(){void 0!==o&&o(void 0),a.emitEvent("accessAllowed",[])})).catch((function(e){void 0!==o&&o(e),a.emitEvent("accessDenied",[e])})),this.publishers.push(a),a},e.prototype.initPublisherAsync=function(e,t){var n=this;return new Promise((function(i,r){var o,a=function(e){e?r(e):i(o)};o=t?n.initPublisher(e,t,a):n.initPublisher(e,a)}))},e.prototype.initLocalRecorder=function(e){return new i.LocalRecorder(e)},e.prototype.checkSystemRequirements=function(){return y.isIPhoneOrIPad()?y.isIOSWithSafari()||y.isIonicIos()?1:0:y.isSafariBrowser()||y.isChromeBrowser()||y.isChromeMobileBrowser()||y.isFirefoxBrowser()||y.isFirefoxMobileBrowser()||y.isOperaBrowser()||y.isOperaMobileBrowser()||y.isAndroidBrowser()||y.isElectron()||y.isSamsungBrowser()?1:0},e.prototype.checkScreenSharingCapabilities=function(){return y.canScreenShare()},e.prototype.getDevices=function(){return new Promise((function(e,t){navigator.mediaDevices.enumerateDevices().then((function(t){var n,i=[];y.isIonicAndroid()&&"undefined"!=typeof cordova&&(null===(n=null===cordova||void 0===cordova?void 0:cordova.plugins)||void 0===n?void 0:n.EnumerateDevicesPlugin)?cordova.plugins.EnumerateDevicesPlugin.getEnumerateDevices().then((function(n){var r=[],o=[],a=[];r=n.filter((function(e){return"audioinput"===e.kind})),o=t.filter((function(e){return"videoinput"===e.kind})),a=t.filter((function(e){return"audioinput"===e.kind})),o.forEach((function(e,t){i.push(e.label?{kind:e.kind,deviceId:e.deviceId,label:e.label}:{kind:e.kind,deviceId:e.deviceId,label:0===t?"Front Camera":1===t?"Back Camera":"Unknown Camera"})})),a.forEach((function(e,t){if(e.label)i.push({kind:e.kind,deviceId:e.deviceId,label:e.label});else{var n="";switch(t){case 0:n="Default";break;case 1:var o=r.filter((function(e){return e.label.includes("Built")}))[0];n=o?o.label:"Built-in Microphone";break;case 2:var a=r.filter((function(e){return e.label.includes("Wired")}))[0];n=a?a.label:"Headset earpiece";break;case 3:var s=r.filter((function(e){return e.label.includes("Bluetooth")}))[0];n=s?s.label:"Wireless";break;default:n="Unknown Microphone"}i.push({kind:e.kind,deviceId:e.deviceId,label:n})}})),e(i)})):(t.forEach((function(e){"audioinput"!==e.kind&&"videoinput"!==e.kind||i.push({kind:e.kind,deviceId:e.deviceId,label:e.label})})),e(i))})).catch((function(e){g.error("Error getting devices",e),t(e)}))}))},e.prototype.getUserMedia=function(e){var t=this;return new Promise((function(n,i){var r=function(e,r){var o={audio:void 0===r.audio||r.audio,video:!1};navigator.mediaDevices.getUserMedia(o).then((function(t){e.addTrack(t.getAudioTracks()[0]),n(e)})).catch((function(n){e.getAudioTracks().forEach((function(e){e.stop()})),e.getVideoTracks().forEach((function(e){e.stop()})),i(t.generateAudioDeviceError(n,o))}))};t.generateMediaConstraints(e).then((function(o){var a,s;if(o.videoTrack&&o.audioTrack||o.audioTrack&&!1===(null===(a=o.constraints)||void 0===a?void 0:a.video)||o.videoTrack&&!1===(null===(s=o.constraints)||void 0===s?void 0:s.audio))n(t.addAlreadyProvidedTracks(o,new MediaStream));else{o.videoTrack&&delete o.constraints.video,o.audioTrack&&delete o.constraints.audio;var c=!1;if("string"==typeof e.videoSource&&("screen"===e.videoSource||"window"===e.videoSource||y.isElectron()&&e.videoSource.startsWith("screen:"))&&(c=!o.audioTrack&&null!==e.audioSource&&!1!==e.audioSource,navigator.mediaDevices.getDisplayMedia&&!y.isElectron()))return void navigator.mediaDevices.getDisplayMedia({video:!0}).then((function(e){t.addAlreadyProvidedTracks(o,e),c?r(e,o.constraints):n(e)})).catch((function(e){var t=u.OpenViduErrorName.SCREEN_CAPTURE_DENIED,n=e.toString();i(new u.OpenViduError(t,n))}));navigator.mediaDevices.getUserMedia(c?{video:o.constraints.video}:o.constraints).then((function(e){t.addAlreadyProvidedTracks(o,e),c?r(e,o.constraints):n(e)})).catch((function(t){var n=t.toString();i(new u.OpenViduError("screen"!==e.videoSource?u.OpenViduErrorName.DEVICE_ACCESS_DENIED:u.OpenViduErrorName.SCREEN_CAPTURE_DENIED,n))}))}})).catch((function(e){i(e)}))}))},e.prototype.enableProdMode=function(){g.enableProdMode()},e.prototype.setAdvancedConfiguration=function(e){this.advancedConfiguration=e},e.prototype.generateMediaConstraints=function(e){var t=this;return new Promise((function(n,i){var r={audioTrack:void 0,videoTrack:void 0,constraints:{audio:void 0,video:void 0}},o=e.audioSource,a=e.videoSource;if(null!==o&&!1!==o||(r.constraints.audio=!1),null!==a&&!1!==a||(r.constraints.video=!1),!1===r.constraints.audio&&!1===r.constraints.video&&i(new u.OpenViduError(u.OpenViduErrorName.NO_INPUT_SOURCE_SET,"Properties 'audioSource' and 'videoSource' cannot be set to false or null at the same time")),"undefined"!=typeof MediaStreamTrack&&o instanceof MediaStreamTrack&&(r.audioTrack=o),"undefined"!=typeof MediaStreamTrack&&a instanceof MediaStreamTrack&&(r.videoTrack=a),void 0===o&&(r.constraints.audio=!0),void 0===a&&(r.constraints.video={width:{ideal:640},height:{ideal:480}}),null!==a&&!1!==a){if(e.resolution){var s=e.resolution.toLowerCase().split("x"),c=Number(s[0]),l=Number(s[1]);r.constraints.video={width:{ideal:c},height:{ideal:l}}}e.frameRate&&(r.constraints.video.frameRate={ideal:e.frameRate})}t.configureDeviceIdOrScreensharing(r,e,n,i),n(r)}))},e.prototype.startWs=function(e){var t={heartbeat:5e3,ws:{uri:this.wsUri,onconnected:e,ondisconnect:this.disconnectCallback.bind(this),onreconnecting:this.reconnectingCallback.bind(this),onreconnected:this.reconnectedCallback.bind(this)},rpc:{requestTimeout:1e4,participantJoined:this.session.onParticipantJoined.bind(this.session),participantPublished:this.session.onParticipantPublished.bind(this.session),participantUnpublished:this.session.onParticipantUnpublished.bind(this.session),participantLeft:this.session.onParticipantLeft.bind(this.session),participantEvicted:this.session.onParticipantEvicted.bind(this.session),recordingStarted:this.session.onRecordingStarted.bind(this.session),recordingStopped:this.session.onRecordingStopped.bind(this.session),sendMessage:this.session.onNewMessage.bind(this.session),streamPropertyChanged:this.session.onStreamPropertyChanged.bind(this.session),connectionPropertyChanged:this.session.onConnectionPropertyChanged.bind(this.session),networkQualityLevelChanged:this.session.onNetworkQualityLevelChangedChanged.bind(this.session),filterEventDispatched:this.session.onFilterEventDispatched.bind(this.session),iceCandidate:this.session.recvIceCandidate.bind(this.session),mediaError:this.session.onMediaError.bind(this.session)}};this.jsonRpcClient=new v.clients.JsonRpcClient(t)},e.prototype.closeWs=function(){this.jsonRpcClient.close(4102,"Connection closed by client")},e.prototype.sendRequest=function(e,t,n){t&&t instanceof Function&&(n=t,t={}),g.debug('Sending request: {method:"'+e+'", params: '+JSON.stringify(t)+"}"),this.jsonRpcClient.send(e,t,n)},e.prototype.getWsUri=function(){return this.wsUri},e.prototype.getSecret=function(){return this.secret},e.prototype.getRecorder=function(){return this.recorder},e.prototype.generateAudioDeviceError=function(e,t){var n,i;switch("Error"===e.name&&(e.name=e.constructor.name),e.name.toLowerCase()){case"notfounderror":return n=u.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,i=e.toString(),new u.OpenViduError(n,i);case"notallowederror":return n=u.OpenViduErrorName.DEVICE_ACCESS_DENIED,i=e.toString(),new u.OpenViduError(n,i);case"overconstrainederror":return"deviceid"===e.constraint.toLowerCase()?(n=u.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,i="Audio input device with deviceId '"+t.audio.deviceId.exact+"' not found"):(n=u.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,i="Audio input device doesn't support the value passed for constraint '"+e.constraint+"'"),new u.OpenViduError(n,i);case"notreadableerror":return n=u.OpenViduErrorName.DEVICE_ALREADY_IN_USE,i=e.toString(),new u.OpenViduError(n,i);default:return new u.OpenViduError(u.OpenViduErrorName.INPUT_AUDIO_DEVICE_GENERIC_ERROR,e.toString())}},e.prototype.addAlreadyProvidedTracks=function(e,t){return e.videoTrack&&t.addTrack(e.videoTrack),e.audioTrack&&t.addTrack(e.audioTrack),t},e.prototype.configureDeviceIdOrScreensharing=function(e,t,n,i){var r=this,o=t.audioSource,a=t.videoSource;if("string"==typeof o&&(e.constraints.audio={deviceId:{exact:o}}),"string"==typeof a)if(this.isScreenShare(a))if(this.checkScreenSharingCapabilities())if(y.isElectron()){var s="screen:",c=a.substr(a.indexOf(s)+s.length);e.constraints.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:c}},n(e)}else{if(this.advancedConfiguration.screenShareChromeExtension&&!y.isFirefoxBrowser()&&!y.isFirefoxMobileBrowser()&&!navigator.mediaDevices.getDisplayMedia)return void f.getScreenConstraints((function(t,o){if(t||o.mandatory&&"screen"===o.mandatory.chromeMediaSource){if("permission-denied"!==t&&"PermissionDeniedError"!==t){var a=r.advancedConfiguration.screenShareChromeExtension.split("/").pop().trim();return void f.getChromeExtensionStatus(a,(function(e){if("installed-disabled"===e){var t=new u.OpenViduError(u.OpenViduErrorName.SCREEN_EXTENSION_DISABLED,"You must enable the screen extension");g.error(t),i(t)}if("not-installed"===e){var n=new u.OpenViduError(u.OpenViduErrorName.SCREEN_EXTENSION_NOT_INSTALLED,r.advancedConfiguration.screenShareChromeExtension);g.error(n),i(n)}}))}var s=new u.OpenViduError(u.OpenViduErrorName.SCREEN_CAPTURE_DENIED,"You must allow access to one window of your desktop");g.error(s),i(s)}else e.constraints.video=o,n(e)}));if(!navigator.mediaDevices.getDisplayMedia){var l=y.isFirefoxBrowser()||y.isFirefoxMobileBrowser()?t.videoSource:void 0;return void d.getScreenId(l,(function(t,o,a){if(t)if("not-installed"===t){var s=new u.OpenViduError(u.OpenViduErrorName.SCREEN_EXTENSION_NOT_INSTALLED,r.advancedConfiguration.screenShareChromeExtension?r.advancedConfiguration.screenShareChromeExtension:"https://chrome.google.com/webstore/detail/openvidu-screensharing/lfcgfepafnobdloecchnfaclibenjold");g.error(s),i(s)}else"installed-disabled"===t?(s=new u.OpenViduError(u.OpenViduErrorName.SCREEN_EXTENSION_DISABLED,"You must enable the screen extension"),g.error(s),i(s)):"permission-denied"===t?(s=new u.OpenViduError(u.OpenViduErrorName.SCREEN_CAPTURE_DENIED,"You must allow access to one window of your desktop"),g.error(s),i(s)):(s=new u.OpenViduError(u.OpenViduErrorName.GENERIC_ERROR,"Unknown error when accessing screen share"),g.error(s),g.error(t),i(s));else e.constraints.video=a.video,n(e)}))}n(e)}else{var h=new u.OpenViduError(u.OpenViduErrorName.SCREEN_SHARING_NOT_SUPPORTED,"You can only screen share in desktop Chrome, Firefox, Opera, Safari (>=13.0) or Electron. Detected client: "+y.getName());g.error(h),i(h)}else this.setVideoSource(e,a)},e.prototype.setVideoSource=function(e,t){e.constraints.video||(e.constraints.video={}),e.constraints.video.deviceId={exact:t}},e.prototype.disconnectCallback=function(){g.warn("Websocket connection lost"),this.isRoomAvailable()?this.session.onLostConnection("networkDisconnect"):alert("Connection error. Please reload page.")},e.prototype.reconnectingCallback=function(){g.warn("Websocket connection lost (reconnecting)"),this.isRoomAvailable()?this.session.emitEvent("reconnecting",[]):alert("Connection error. Please reload page.")},e.prototype.reconnectedCallback=function(){var e=this;if(g.warn("Websocket reconnected"),this.isRoomAvailable())if(this.session.connection)this.sendRequest("connect",{sessionId:this.session.connection.rpcSessionId},(function(t,n){t?(g.error(t),g.warn("Websocket was able to reconnect to OpenVidu Server, but your Connection was already destroyed due to timeout. You are no longer a participant of the Session and your media streams have been destroyed"),e.session.onLostConnection("networkDisconnect"),e.jsonRpcClient.close(4101,"Reconnection fault")):(e.jsonRpcClient.resetPing(),e.session.onRecoveredConnection())}));else{g.warn("There was no previous connection when running reconnection callback");var t=new a.SessionDisconnectedEvent(this.session,"networkDisconnect");this.session.ee.emitEvent("sessionDisconnected",[t]),t.callDefaultBehavior()}else alert("Connection error. Please reload page.")},e.prototype.isRoomAvailable=function(){return void 0!==this.session&&this.session instanceof o.Session||(g.warn("Session instance not found"),!1)},e.prototype.isScreenShare=function(e){return"screen"===e||"window"===e||y.isElectron()&&e.startsWith("screen:")},e}();t.OpenVidu=b},PZzU:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]});t.__esModule=!0,t.EventDispatcher=t.NetworkQualityLevelChangedEvent=t.FilterEvent=t.ConnectionPropertyChangedEvent=t.StreamPropertyChangedEvent=t.VideoElementEvent=t.StreamManagerEvent=t.StreamEvent=t.SignalEvent=t.SessionDisconnectedEvent=t.RecordingEvent=t.PublisherSpeakingEvent=t.ConnectionEvent=t.Event=t.VideoInsertMode=t.OpenViduError=t.LocalRecorderState=t.Filter=t.LocalRecorder=t.Connection=t.Stream=t.StreamManager=t.Subscriber=t.Publisher=t.Session=t.OpenVidu=void 0,i(t,n("PPcv"),"OpenVidu"),i(t,n("JTMn"),"Session"),i(t,n("PEz1"),"Publisher"),i(t,n("bk74"),"Subscriber"),i(t,n("P3vI"),"StreamManager"),i(t,n("DPKQ"),"Stream"),i(t,n("ryRr"),"Connection"),i(t,n("tInm"),"LocalRecorder"),i(t,n("74bm"),"Filter"),i(t,n("Yn0Z"),"LocalRecorderState"),i(t,n("Tt94"),"OpenViduError"),i(t,n("/dLB"),"VideoInsertMode"),i(t,n("hzOQ"),"Event"),i(t,n("8KVD"),"ConnectionEvent"),i(t,n("e8ps"),"PublisherSpeakingEvent"),i(t,n("rUL0"),"RecordingEvent"),i(t,n("ksJj"),"SessionDisconnectedEvent"),i(t,n("suHS"),"SignalEvent"),i(t,n("Te8r"),"StreamEvent"),i(t,n("HxXY"),"StreamManagerEvent"),i(t,n("oIG1"),"VideoElementEvent"),i(t,n("BwMD"),"StreamPropertyChangedEvent"),i(t,n("8b8G"),"ConnectionPropertyChangedEvent"),i(t,n("+ig+"),"FilterEvent"),i(t,n("BDvu"),"NetworkQualityLevelChangedEvent"),i(t,n("Dztv"),"EventDispatcher")},Q1FS:function(e,t,n){"use strict";var i=n("yx2s"),r=n("Xwq/"),o=n("zfKp"),a=n("9AGB"),s=n("n3uD");function u(e){if(e||(e=s.config.Promise||Promise),!e)throw new Error("no Promise impl found");return e}t.Observable=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var i=this.operator,o=r.toSubscriber(e,t,n);if(o.add(i?i.call(o,this.source):this.source||s.config.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),s.config.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){s.config.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),i.canReportError(e)?e.error(t):console.warn(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=u(t))((function(t,i){var r;r=n.subscribe((function(t){try{e(t)}catch(n){i(n),r&&r.unsubscribe()}}),i,t)}))},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[o.observable]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?this:a.pipeFromArray(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=u(e))((function(e,n){var i;t.subscribe((function(e){return i=e}),(function(e){return n(e)}),(function(){return e(i)}))}))},e.create=function(t){return new e(t)},e}()},QSjB:function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var i=n("FlKs"),r=n("vqGb"),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(r),a=n("dlaP"),s=function(e){return new i.TokenState(e)},u=s(),c=s(),l=s(),h=s(),d=s(),f=s(),p=s(),v=s(r.URL),m=s(),g=s(r.URL),y=s(r.URL),b=s(),_=s(),k=s(),w=s(),S=s(),C=s(r.URL),E=s(r.URL),O=s(r.URL),x=s(r.URL),T=s(),M=s(),P=s(),I=s(),A=s(),R=s(),D=s(r.EMAIL),N=s(),L=s(r.EMAIL),V=s(r.MAILTOEMAIL),j=s(),F=s(),B=s(),U=s(),z=s(r.NL);u.on(a.NL,z).on(a.PROTOCOL,c).on(a.MAILTO,l).on(a.SLASH,h),c.on(a.SLASH,h),h.on(a.SLASH,d),u.on(a.TLD,f).on(a.DOMAIN,f).on(a.LOCALHOST,v).on(a.NUM,f),d.on(a.TLD,y).on(a.DOMAIN,y).on(a.NUM,y).on(a.LOCALHOST,y),f.on(a.DOT,p),A.on(a.DOT,R),p.on(a.TLD,v).on(a.DOMAIN,f).on(a.NUM,f).on(a.LOCALHOST,f),R.on(a.TLD,D).on(a.DOMAIN,A).on(a.NUM,A).on(a.LOCALHOST,A),v.on(a.DOT,p),D.on(a.DOT,R),v.on(a.COLON,m).on(a.SLASH,y),m.on(a.NUM,g),g.on(a.SLASH,y),D.on(a.COLON,N),N.on(a.NUM,L);var W=[a.DOMAIN,a.AT,a.LOCALHOST,a.NUM,a.PLUS,a.POUND,a.PROTOCOL,a.SLASH,a.TLD,a.UNDERSCORE,a.SYM,a.AMPERSAND],H=[a.COLON,a.DOT,a.QUERY,a.PUNCTUATION,a.CLOSEBRACE,a.CLOSEBRACKET,a.CLOSEANGLEBRACKET,a.CLOSEPAREN,a.OPENBRACE,a.OPENBRACKET,a.OPENANGLEBRACKET,a.OPENPAREN];y.on(a.OPENBRACE,_).on(a.OPENBRACKET,k).on(a.OPENANGLEBRACKET,w).on(a.OPENPAREN,S),b.on(a.OPENBRACE,_).on(a.OPENBRACKET,k).on(a.OPENANGLEBRACKET,w).on(a.OPENPAREN,S),_.on(a.CLOSEBRACE,y),k.on(a.CLOSEBRACKET,y),w.on(a.CLOSEANGLEBRACKET,y),S.on(a.CLOSEPAREN,y),C.on(a.CLOSEBRACE,y),E.on(a.CLOSEBRACKET,y),O.on(a.CLOSEANGLEBRACKET,y),x.on(a.CLOSEPAREN,y),T.on(a.CLOSEBRACE,y),M.on(a.CLOSEBRACKET,y),P.on(a.CLOSEANGLEBRACKET,y),I.on(a.CLOSEPAREN,y),_.on(W,C),k.on(W,E),w.on(W,O),S.on(W,x),_.on(H,T),k.on(H,M),w.on(H,P),S.on(H,I),C.on(W,C),E.on(W,E),O.on(W,O),x.on(W,x),C.on(H,C),E.on(H,E),O.on(H,O),x.on(H,x),T.on(W,C),M.on(W,E),P.on(W,O),I.on(W,x),T.on(H,T),M.on(H,M),P.on(H,P),I.on(H,I),y.on(W,y),b.on(W,y),y.on(H,b),b.on(H,b),l.on(a.TLD,V).on(a.DOMAIN,V).on(a.NUM,V).on(a.LOCALHOST,V),V.on(W,V).on(H,j),j.on(W,V).on(H,j);var G=[a.DOMAIN,a.NUM,a.PLUS,a.POUND,a.QUERY,a.UNDERSCORE,a.SYM,a.AMPERSAND,a.TLD];f.on(G,F).on(a.AT,B),v.on(G,F).on(a.AT,B),p.on(G,F),F.on(G,F).on(a.AT,B).on(a.DOT,U),U.on(G,F),B.on(a.TLD,A).on(a.DOMAIN,A).on(a.LOCALHOST,D),t.State=i.TokenState,t.TOKENS=o,t.run=function(e){for(var t=e.length,n=0,i=[],o=[];n<t;){for(var a=u,s=null,c=null,l=0,h=null,d=-1;n<t&&!(s=a.next(e[n]));)o.push(e[n++]);for(;n<t&&(c=s||a.next(e[n]));)s=null,(a=c).accepts()?(d=0,h=a):d>=0&&d++,n++,l++;if(d<0)for(var f=n-l;f<n;f++)o.push(e[f]);else{o.length>0&&(i.push(new r.TEXT(o)),o=[]),n-=d,l-=d;var p=h.emit();i.push(new p(e.slice(n-l,n)))}}return o.length>0&&i.push(new r.TEXT(o)),i},t.start=u},RvMX:function(e,t,n){"use strict";t.__esModule=!0,t.createTokenClass=function(){return function(e){e&&(this.v=e)}}},SYuc:function(e,t,n){var i=n("EDod");t.JsonRpcClient=i},Te8r:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});t.__esModule=!0,t.StreamEvent=void 0;var o=n("hzOQ"),a=n("PEz1"),s=n("JTMn"),u=n("9m68").OpenViduLogger.getInstance(),c=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i)||this;return a.stream=r,a.reason=o,a}return r(t,e),t.prototype.callDefaultBehavior=function(){if("streamDestroyed"===this.type){if(this.target instanceof s.Session)u.info("Calling default behavior upon '"+this.type+"' event dispatched by 'Session'"),this.stream.disposeWebRtcPeer();else if(this.target instanceof a.Publisher){u.info("Calling default behavior upon '"+this.type+"' event dispatched by 'Publisher'"),clearInterval(this.target.screenShareResizeInterval),this.stream.isLocalStreamReadyToPublish=!1;for(var e=this.target.openvidu.publishers,t=0;t<e.length;t++)if(e[t]===this.target){e.splice(t,1);break}}this.stream.disposeMediaStream(),this.stream.streamManager&&this.stream.streamManager.removeAllVideos(),delete this.stream.session.remoteStreamsCreated[this.stream.streamId];var n=this.stream.session.remoteConnections[this.stream.connection.connectionId];if(n&&n.remoteOptions){var i=n.remoteOptions.streams;for(t=i.length-1;t>=0;--t)i[t].id===this.stream.streamId&&i.splice(t,1)}}},t}(o.Event);t.StreamEvent=c},Tt94:function(e,t,n){"use strict";var i;t.__esModule=!0,t.OpenViduError=t.OpenViduErrorName=void 0,(i=t.OpenViduErrorName||(t.OpenViduErrorName={})).BROWSER_NOT_SUPPORTED="BROWSER_NOT_SUPPORTED",i.DEVICE_ACCESS_DENIED="DEVICE_ACCESS_DENIED",i.DEVICE_ALREADY_IN_USE="DEVICE_ALREADY_IN_USE",i.SCREEN_CAPTURE_DENIED="SCREEN_CAPTURE_DENIED",i.SCREEN_SHARING_NOT_SUPPORTED="SCREEN_SHARING_NOT_SUPPORTED",i.SCREEN_EXTENSION_NOT_INSTALLED="SCREEN_EXTENSION_NOT_INSTALLED",i.SCREEN_EXTENSION_DISABLED="SCREEN_EXTENSION_DISABLED",i.INPUT_VIDEO_DEVICE_NOT_FOUND="INPUT_VIDEO_DEVICE_NOT_FOUND",i.INPUT_AUDIO_DEVICE_NOT_FOUND="INPUT_AUDIO_DEVICE_NOT_FOUND",i.INPUT_AUDIO_DEVICE_GENERIC_ERROR="INPUT_AUDIO_DEVICE_GENERIC_ERROR",i.NO_INPUT_SOURCE_SET="NO_INPUT_SOURCE_SET",i.PUBLISHER_PROPERTIES_ERROR="PUBLISHER_PROPERTIES_ERROR",i.OPENVIDU_PERMISSION_DENIED="OPENVIDU_PERMISSION_DENIED",i.OPENVIDU_NOT_CONNECTED="OPENVIDU_NOT_CONNECTED",i.GENERIC_ERROR="GENERIC_ERROR",t.OpenViduError=function(e,t){this.name=e,this.message=t}},VKeD:function(e,t,n){"use strict";function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}t.getSymbolIterator=i,t.iterator=i(),t.$$iterator=t.iterator},"Xwq/":function(e,t,n){"use strict";var i=n("FWf1"),r=n("p//D"),o=n("GiSu");t.toSubscriber=function(e,t,n){if(e){if(e instanceof i.Subscriber)return e;if(e[r.rxSubscriber])return e[r.rxSubscriber]()}return e||t||n?new i.Subscriber(e,t,n):new i.Subscriber(o.empty)}},Yn0Z:function(e,t,n){"use strict";var i;t.__esModule=!0,t.LocalRecorderState=void 0,(i=t.LocalRecorderState||(t.LocalRecorderState={})).READY="READY",i.RECORDING="RECORDING",i.PAUSED="PAUSED",i.FINISHED="FINISHED"},YuTi:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},Z5tI:function(e,t,n){"use strict";var i=n("MkmW");t.subscribeToPromise=function(e){return function(t){return e.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,i.hostReportError),t}}},aMtt:function(e,t,n){var i,r=n("p7Ng");"undefined"!=typeof window&&(i=window.AudioContext||window.webkitAudioContext);var o=null;e.exports=function(e,t){var n=new r;if(!i)return n;var a,s,u,c=(t=t||{}).smoothing||.1,l=t.interval||50,h=t.threshold,d=t.play,f=t.history||10,p=!0;o=t.audioContext||o||new i,(u=o.createAnalyser()).fftSize=512,u.smoothingTimeConstant=c,s=new Float32Array(u.frequencyBinCount),e.jquery&&(e=e[0]),e instanceof HTMLAudioElement||e instanceof HTMLVideoElement?(a=o.createMediaElementSource(e),void 0===d&&(d=!0),h=h||-50):(a=o.createMediaStreamSource(e),h=h||-50),a.connect(u),d&&u.connect(o.destination),n.speaking=!1,n.suspend=function(){return o.suspend()},n.resume=function(){return o.resume()},Object.defineProperty(n,"state",{get:function(){return o.state}}),o.onstatechange=function(){n.emit("state_change",o.state)},n.setThreshold=function(e){h=e},n.setInterval=function(e){l=e},n.stop=function(){p=!1,n.emit("volume_change",-100,h),n.speaking&&(n.speaking=!1,n.emit("stopped_speaking")),u.disconnect(),a.disconnect()},n.speakingHistory=[];for(var v=0;v<f;v++)n.speakingHistory.push(0);return function e(){setTimeout((function(){if(p){var t=function(e,t){var n=-1/0;e.getFloatFrequencyData(t);for(var i=4,r=t.length;i<r;i++)t[i]>n&&t[i]<0&&(n=t[i]);return n}(u,s);n.emit("volume_change",t,h);var i=0;if(t>h&&!n.speaking){for(var r=n.speakingHistory.length-3;r<n.speakingHistory.length;r++)i+=n.speakingHistory[r];i>=2&&(n.speaking=!0,n.emit("speaking"))}else if(t<h&&n.speaking){for(r=0;r<n.speakingHistory.length;r++)i+=n.speakingHistory[r];0==i&&(n.speaking=!1,n.emit("stopped_speaking"))}n.speakingHistory.shift(),n.speakingHistory.push(0+(t>h)),e()}}),l)}(),n}},bk74:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});t.__esModule=!0,t.Subscriber=void 0;var o=n("P3vI"),a=n("9m68").OpenViduLogger.getInstance(),s=function(e){function t(t,n,i){var r=e.call(this,t,n)||this;return r.element=r.targetElement,r.stream=t,r.properties=i,r}return r(t,e),t.prototype.subscribeToAudio=function(e){return this.stream.getMediaStream().getAudioTracks().forEach((function(t){t.enabled=e})),this.stream.audioActive=e,a.info("'Subscriber' has "+(e?"subscribed to":"unsubscribed from")+" its audio stream"),this},t.prototype.subscribeToVideo=function(e){return this.stream.getMediaStream().getVideoTracks().forEach((function(t){t.enabled=e})),this.stream.videoActive=e,a.info("'Subscriber' has "+(e?"subscribed to":"unsubscribed from")+" its video stream"),this},t}(o.StreamManager);t.Subscriber=s},cUzU:function(e,t,n){"use strict";var i=console;e.exports=function(e){var t,n=!1,r=e.uri,o=!1,a=new WebSocket(r);a.onopen=function(){i.debug("WebSocket connected to "+r),e.onconnected&&e.onconnected()},a.onerror=function(t){i.error("Could not connect to "+r+" (invoking onerror if defined)",t),e.onerror&&e.onerror(t)};var s=function(){3===a.readyState?n?i.debug("Connection closed by user"):(i.debug("Connection closed unexpectecly. Reconnecting..."),u(2e3,1)):i.debug("Close callback from previous websocket. Ignoring it")};function u(n,c){if(i.debug("reconnect (attempt #"+c+", max="+n+")"),1===c){if(o)return void i.warn("Trying to reconnect when already reconnecting... Ignoring this reconnection.");o=!0,e.onreconnecting&&e.onreconnecting()}!function(n,c){i.debug("Reconnection attempt #"+c),a.close(),(a=new WebSocket(r)).onopen=function(){i.debug("Reconnected to "+r+" after "+c+" attempts..."),o=!1,t(),e.onreconnected()&&e.onreconnected(),a.onclose=s},a.onerror=function(t){i.warn("Reconnection error: ",t),c===n?e.ondisconnect&&e.ondisconnect():setTimeout((function(){u(n,c+1)}),3e3)}}(n,c)}a.onclose=s,this.close=function(){n=!0,a.close()},this.reconnectWs=function(){i.debug("reconnectWs"),u(2e3,1)},this.send=function(e){a.send(e)},this.addEventListener=function(e,n){(t=function(){a.addEventListener(e,n)})()}}},crnd:function(e,t){function n(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="crnd"},de4E:function(e,t){t.pack=function(e,t){var n={jsonrpc:"2.0"};if(e.method)n.method=e.method,e.params&&(n.params=e.params),null!=t&&(n.id=t);else if(null!=t){if(e.error){if(void 0!==e.result)throw new TypeError("Both result and error are defined");n.error=e.error}else{if(void 0===e.result)throw new TypeError("No result or error is defined");n.result=e.result}n.id=t}return JSON.stringify(n)},t.unpack=function(e){var t=e;("string"==typeof e||e instanceof String)&&(t=JSON.parse(e));var n=t.jsonrpc;if("2.0"!==n)throw new TypeError("Invalid JsonRPC version '"+n+"': "+e);if(null==t.method){if(null==t.id)throw new TypeError("Invalid message: "+e);var i=void 0!==t.result,r=void 0!==t.error;if(i&&r)throw new TypeError("Both result and error are defined: "+e);if(!i&&!r)throw new TypeError("No result or error is defined: "+e);t.ack=t.id,delete t.id}return t}},dlaP:function(e,t,n){"use strict";t.__esModule=!0,t.AMPERSAND=t.CLOSEPAREN=t.CLOSEANGLEBRACKET=t.CLOSEBRACKET=t.CLOSEBRACE=t.OPENPAREN=t.OPENANGLEBRACKET=t.OPENBRACKET=t.OPENBRACE=t.WS=t.TLD=t.SYM=t.UNDERSCORE=t.SLASH=t.MAILTO=t.PROTOCOL=t.QUERY=t.POUND=t.PLUS=t.NUM=t.NL=t.LOCALHOST=t.PUNCTUATION=t.DOT=t.COLON=t.AT=t.DOMAIN=t.Base=void 0;var i=n("RvMX"),r=n("JUw6"),o=(0,i.createTokenClass)();function a(e){var t=e?{v:e}:{};return(0,r.inherits)(o,(0,i.createTokenClass)(),t)}o.prototype={toString:function(){return this.v+""}};var s=a(),u=a("@"),c=a(":"),l=a("."),h=a(),d=a(),f=a("\n"),p=a(),v=a("+"),m=a("#"),g=a(),y=a("mailto:"),b=a("?"),_=a("/"),k=a("_"),w=a(),S=a(),C=a(),E=a("{"),O=a("["),x=a("<"),T=a("("),M=a("}"),P=a("]"),I=a(">"),A=a(")"),R=a("&");t.Base=o,t.DOMAIN=s,t.AT=u,t.COLON=c,t.DOT=l,t.PUNCTUATION=h,t.LOCALHOST=d,t.NL=f,t.NUM=p,t.PLUS=v,t.POUND=m,t.QUERY=b,t.PROTOCOL=g,t.MAILTO=y,t.SLASH=_,t.UNDERSCORE=k,t.SYM=w,t.TLD=S,t.WS=C,t.OPENBRACE=E,t.OPENBRACKET=O,t.OPENANGLEBRACKET=x,t.OPENPAREN=T,t.CLOSEBRACE=M,t.CLOSEBRACKET=P,t.CLOSEANGLEBRACKET=I,t.CLOSEPAREN=A,t.AMPERSAND=R},ds6q:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("Q1FS"),o=n("FWf1"),a=n("zB/H"),s=n("Mxlh"),u=n("FiyT"),c=n("p//D"),l=function(e){function t(t){var n=e.call(this,t)||this;return n.destination=t,n}return i(t,e),t}(o.Subscriber);t.SubjectSubscriber=l;var h=function(e){function t(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i(t,e),t.prototype[c.rxSubscriber]=function(){return new l(this)},t.prototype.lift=function(e){var t=new d(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new s.ObjectUnsubscribedError;if(!this.isStopped)for(var t=this.observers,n=t.length,i=t.slice(),r=0;r<n;r++)i[r].next(e)},t.prototype.error=function(e){if(this.closed)throw new s.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,i=t.slice(),r=0;r<n;r++)i[r].error(e);this.observers.length=0},t.prototype.complete=function(){if(this.closed)throw new s.ObjectUnsubscribedError;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),i=0;i<t;i++)n[i].complete();this.observers.length=0},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(t){if(this.closed)throw new s.ObjectUnsubscribedError;return e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){if(this.closed)throw new s.ObjectUnsubscribedError;return this.hasError?(e.error(this.thrownError),a.Subscription.EMPTY):this.isStopped?(e.complete(),a.Subscription.EMPTY):(this.observers.push(e),new u.SubjectSubscription(this,e))},t.prototype.asObservable=function(){var e=new r.Observable;return e.source=this,e},t.create=function(e,t){return new d(e,t)},t}(r.Observable);t.Subject=h;var d=function(e){function t(t,n){var i=e.call(this)||this;return i.destination=t,i.source=n,i}return i(t,e),t.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},t.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},t.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},t.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):a.Subscription.EMPTY},t}(h);t.AnonymousSubject=d},e8ps:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});t.__esModule=!0,t.PublisherSpeakingEvent=void 0;var o=function(e){function t(t,n,i,r){var o=e.call(this,!1,t,n)||this;return o.type=n,o.connection=i,o.streamId=r,o}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(n("hzOQ").Event);t.PublisherSpeakingEvent=o},ee8k:function(e,t,n){var i=n("cUzU");t.WebSocketWithReconnection=i},gUCu:function(e,t){function n(){var e={};this.forEach=function(t){for(var n in e){var i=e[n];for(var r in i)t(i[r])}},this.get=function(t,n){var i=e[n];if(null!=i)return i[t]},this.remove=function(t,n){var i=e[n];if(null!=i){for(var r in delete i[t],i)return!1;delete e[n]}},this.set=function(t,n,i){if(null==t)return this.remove(n,i);var r=e[i];null==r&&(e[i]=r={}),r[n]=t}}n.prototype.pop=function(e,t){var n=this.get(e,t);if(null!=n)return this.remove(e,t),n},e.exports=n},hzOQ:function(e,t,n){"use strict";t.__esModule=!0,t.Event=void 0;var i=function(){function e(e,t,n){this.hasBeenPrevented=!1,this.cancelable=e,this.target=t,this.type=n}return e.prototype.isDefaultPrevented=function(){return this.hasBeenPrevented},e.prototype.preventDefault=function(){this.callDefaultBehavior=function(){},this.hasBeenPrevented=!0},e}();t.Event=i},kiQV:function(e){e.exports=JSON.parse('{"dependencies":{"@angular/animations":"10.1.2","@angular/cdk":"10.2.2","@angular/common":"10.1.2","@angular/compiler":"10.1.2","@angular/core":"10.1.2","@angular/elements":"10.1.2","@angular/flex-layout":"10.0.0-beta.32","@angular/forms":"10.1.2","@angular/material":"10.2.2","@angular/platform-browser":"10.1.2","@angular/platform-browser-dynamic":"10.1.2","@angular/router":"10.1.2","core-js":"3.6.5","linkifyjs":"2.1.9","openvidu-browser":"2.16.0","rxjs":"6.6.3","unique-names-generator":"4.3.1","zone.js":"0.11.1"},"devDependencies":{"@angular-devkit/build-angular":"0.1001.2","@angular-devkit/build-ng-packagr":"0.1001.2","@angular/cli":"10.1.2","@angular/compiler-cli":"10.1.2","@angular/language-service":"10.1.2","@types/jasmine":"3.5.14","@types/jasminewd2":"2.0.8","@types/linkifyjs":"2.1.3","@types/node":"14.11.2","@webcomponents/webcomponentsjs":"2.4.4","codelyzer":"6.0.0","concat":"1.0.3","document-register-element":"1.14.6","elements-zone-strategy":"10.0.0","fs-extra":"9.0.1","jasmine-core":"3.6.0","jasmine-spec-reporter":"6.0.0","karma":"5.2.2","karma-chrome-launcher":"3.1.0","karma-coverage-istanbul-reporter":"3.0.3","karma-jasmine":"4.0.1","karma-jasmine-html-reporter":"1.5.4","karma-junit-reporter":"2.0.1","karma-mocha-reporter":"2.2.5","karma-notify-reporter":"1.2.0","ng-packagr":"10.1.0","protractor":"7.0.0","ts-node":"9.0.0","tslib":"2.0.1","tslint":"6.1.3","typedoc":"0.19.2","typescript":"3.9.6"},"name":"openvidu-call","private":true,"scripts":{"build":"./node_modules/@angular/cli/bin/ng build && npm run copy:backend","build-prod":"func() { ./node_modules/@angular/cli/bin/ng build --prod --base-href=\\"${1:-/}\\" && npm run copy:backend-prod; }; func","build-win:openvidu-angular":"node .\\\\openvidu-angular-build.js && node .\\\\node_modules\\\\@angular\\\\cli\\\\bin\\\\ng build openvidu-angular --prod","build-win:openvidu-webcomponent":"node .\\\\openvidu-webcomponent-prepare.js && node .\\\\node_modules\\\\@angular\\\\cli\\\\bin\\\\ng build --prod --output-hashing none && node .\\\\openvidu-webcomponent-build.js","build:openvidu-angular":"node openvidu-angular-build.js && ./node_modules/@angular/cli/bin/ng build openvidu-angular --prod","build:openvidu-webcomponent":"node ./openvidu-webcomponent-prepare.js && ./node_modules/@angular/cli/bin/ng build --prod --output-hashing none && node ./openvidu-webcomponent-build.js","copy:backend":"cp -a dist/openvidu-call/. ../openvidu-call-back/public/","copy:backend-prod":"mkdir -p ../openvidu-call-back/dist/public && cp -a dist/openvidu-call/. ../openvidu-call-back/dist/public/","e2e":"ng e2e","lint":"ng lint","pack:openvidu-angular":"cd dist/openvidu-angular && npm pack","start":"ng serve","start:https":"ng serve --host 192.168.1.161 --ssl --ssl-key cert.key --ssl-cert cert.crt","test":"ng test openvidu-call --watch=false --code-coverage"},"version":"2.16.0"}')},ksJj:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});t.__esModule=!0,t.SessionDisconnectedEvent=void 0;var o=n("hzOQ"),a=n("9m68").OpenViduLogger.getInstance(),s=function(e){function t(t,n){var i=e.call(this,!0,t,"sessionDisconnected")||this;return i.reason=n,i}return r(t,e),t.prototype.callDefaultBehavior=function(){a.info("Calling default behavior upon '"+this.type+"' event dispatched by 'Session'");var e=this.target;for(var t in e.remoteConnections)e.remoteConnections[t].stream&&(e.remoteConnections[t].stream.disposeWebRtcPeer(),e.remoteConnections[t].stream.disposeMediaStream(),e.remoteConnections[t].stream.streamManager&&e.remoteConnections[t].stream.streamManager.removeAllVideos(),delete e.remoteStreamsCreated[e.remoteConnections[t].stream.streamId],e.remoteConnections[t].dispose()),delete e.remoteConnections[t]},t}(o.Event);t.SessionDisconnectedEvent=s},mbIT:function(e,t,n){"use strict";t.isArray=function(){return Array.isArray||function(e){return e&&"number"==typeof e.length}}()},mgp7:function(e,t,n){e.exports=n("/u9M").default},n3uD:function(e,t,n){"use strict";var i=!1;t.config={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 i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=e},get useDeprecatedSynchronousErrorHandling(){return i}}},oIG1:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});t.__esModule=!0,t.VideoElementEvent=void 0;var o=function(e){function t(t,n,i){var r=e.call(this,!1,n,i)||this;return r.element=t,r}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(n("hzOQ").Event);t.VideoElementEvent=o},ohuM:function(e,t){var n=["stun:","turn:"];e.exports=function(e){var t,i,r=(e||{}).url||e,o={};return"string"==typeof r||r instanceof String?(r=r.trim(),(t=n[n.indexOf(r.slice(0,5))])?(i=(r=r.slice(5)).split("@"),o.username=e.username,o.credential=e.credential,i.length>1&&(r=i[1],i=i[0].split(":"),o.username=i[0],o.credential=(e||{}).credential||i[1]||""),o.url=t+r,o.urls=[o.url],o):e):e}},ozli:function(e,t,n){"use strict";var i=n("zfKp");t.subscribeToObservable=function(e){return function(t){var n=e[i.observable]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)}}},"p//D":function(e,t,n){"use strict";t.rxSubscriber=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),t.$$rxSubscriber=t.rxSubscriber},p7Ng:function(e,t){function n(){}e.exports=n,n.mixin=function(e){var t=e.prototype||e;t.isWildEmitter=!0,t.on=function(e,t,n){this.callbacks=this.callbacks||{};var i=3===arguments.length,r=i?arguments[1]:void 0,o=i?arguments[2]:arguments[1];return o._groupName=r,(this.callbacks[e]=this.callbacks[e]||[]).push(o),this},t.once=function(e,t,n){var i=this,r=3===arguments.length,o=r?arguments[1]:void 0,a=r?arguments[2]:arguments[1];function s(){i.off(e,s),a.apply(this,arguments)}return this.on(e,o,s),this},t.releaseGroup=function(e){var t,n,i,r;for(t in this.callbacks=this.callbacks||{},this.callbacks)for(n=0,i=(r=this.callbacks[t]).length;n<i;n++)r[n]._groupName===e&&(r.splice(n,1),n--,i--);return this},t.off=function(e,t){this.callbacks=this.callbacks||{};var n,i=this.callbacks[e];return i?1===arguments.length?(delete this.callbacks[e],this):(-1!==(n=i.indexOf(t))&&(i.splice(n,1),0===i.length&&delete this.callbacks[e]),this):this},t.emit=function(e){this.callbacks=this.callbacks||{};var t,n,i,r=[].slice.call(arguments,1),o=this.callbacks[e],a=this.getWildcardCallbacks(e);if(o)for(t=0,n=(i=o.slice()).length;t<n&&i[t];++t)i[t].apply(this,r);if(a)for(n=a.length,t=0,n=(i=a.slice()).length;t<n&&i[t];++t)i[t].apply(this,[e].concat(r));return this},t.getWildcardCallbacks=function(e){this.callbacks=this.callbacks||{};var t,n,i=[];for(t in this.callbacks)n=t.split("*"),("*"===t||2===n.length&&e.slice(0,n[0].length)===n[0])&&(i=i.concat(this.callbacks[t]));return i}},n.mixin(n)},pLL0:function(e,t){t.pack=function(e){throw new TypeError("Not yet implemented")},t.unpack=function(e){throw new TypeError("Not yet implemented")}},poJ0:function(e,t,n){"use strict";var i=n("VKeD");t.subscribeToIterable=function(e){return function(t){for(var n=e[i.iterator]();;){var r=void 0;try{r=n.next()}catch(o){return t.error(o),t}if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof n.return&&t.add((function(){n.return&&n.return()})),t}}},pshJ:function(e,t,n){"use strict";t.isFunction=function(e){return"function"==typeof e}},rNzc:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("wjEo");t.catchError=function(e){return function(t){var n=new o(e),i=t.lift(n);return n.caught=i}};var o=function(){function e(e){this.selector=e}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.selector,this.caught))},e}(),a=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.selector=n,r.caught=i,r}return i(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=void 0;try{n=this.selector(t,this.caught)}catch(a){return void e.prototype.error.call(this,a)}this._unsubscribeAndRecycle();var i=new r.SimpleInnerSubscriber(this);this.add(i);var o=r.innerSubscribe(n,i);o!==i&&this.add(o)}},t}(r.SimpleOuterSubscriber)},rUL0:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});t.__esModule=!0,t.RecordingEvent=void 0;var o=function(e){function t(t,n,i,r,o){var a=e.call(this,!1,t,n)||this;return a.id=i,r!==i&&(a.name=r),a.reason=o,a}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(n("hzOQ").Event);t.RecordingEvent=o},ryRr:function(e,t,n){"use strict";t.__esModule=!0,t.Connection=void 0;var i=n("DPKQ"),r=n("9m68").OpenViduLogger.getInstance(),o=function(){function e(e,t){this.session=e,this.disposed=!1;var n="'Connection' created ";t.role?(this.localOptions=t,this.connectionId=this.localOptions.id,this.creationTime=this.localOptions.createdAt,this.data=this.localOptions.metadata,this.rpcSessionId=this.localOptions.sessionId,this.role=this.localOptions.role,this.record=this.localOptions.record,n+="(local)"):(this.remoteOptions=t,this.connectionId=this.remoteOptions.id,this.creationTime=this.remoteOptions.createdAt,this.remoteOptions.metadata&&(this.data=this.remoteOptions.metadata),this.remoteOptions.streams&&this.initRemoteStreams(this.remoteOptions.streams),n+="(remote) with 'connectionId' ["+this.remoteOptions.id+"]"),r.info(n)}return e.prototype.sendIceCandidate=function(e){r.debug((this.stream.outboundStreamOpts?"Local":"Remote")+"candidate for"+this.connectionId,e),this.session.openvidu.sendRequest("onIceCandidate",{endpointName:this.connectionId,candidate:e.candidate,sdpMid:e.sdpMid,sdpMLineIndex:e.sdpMLineIndex},(function(e,t){e&&r.error("Error sending ICE candidate: "+JSON.stringify(e))}))},e.prototype.initRemoteStreams=function(e){var t=this;e.forEach((function(e){var n={id:e.id,createdAt:e.createdAt,connection:t,hasAudio:e.hasAudio,hasVideo:e.hasVideo,audioActive:e.audioActive,videoActive:e.videoActive,typeOfVideo:e.typeOfVideo,frameRate:e.frameRate,videoDimensions:e.videoDimensions?JSON.parse(e.videoDimensions):void 0,filter:e.filter?e.filter:void 0},r=new i.Stream(t.session,n);t.addStream(r)})),r.info("Remote 'Connection' with 'connectionId' ["+this.connectionId+"] is now configured for receiving Streams with options: ",this.stream.inboundStreamOpts)},e.prototype.addStream=function(e){e.connection=this,this.stream=e},e.prototype.removeStream=function(e){delete this.stream},e.prototype.dispose=function(){this.stream&&delete this.stream,this.disposed=!0},e}();t.Connection=o},suHS:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});t.__esModule=!0,t.SignalEvent=void 0;var o=function(e){function t(t,n,i,r){var o=e.call(this,!1,t,"signal")||this;return n&&(o.type="signal:"+n),o.data=i,o.from=r,o}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(n("hzOQ").Event);t.SignalEvent=o},"t/6/":function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var i=n("FlKs"),r=n("dlaP"),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(r),a="aaa|aarp|abarth|abb|abbott|abbvie|abc|able|abogado|abudhabi|ac|academy|accenture|accountant|accountants|aco|active|actor|ad|adac|ads|adult|ae|aeg|aero|aetna|af|afamilycompany|afl|africa|ag|agakhan|agency|ai|aig|aigo|airbus|airforce|airtel|akdn|al|alfaromeo|alibaba|alipay|allfinanz|allstate|ally|alsace|alstom|am|americanexpress|americanfamily|amex|amfam|amica|amsterdam|analytics|android|anquan|anz|ao|aol|apartments|app|apple|aq|aquarelle|ar|arab|aramco|archi|army|arpa|art|arte|as|asda|asia|associates|at|athleta|attorney|au|auction|audi|audible|audio|auspost|author|auto|autos|avianca|aw|aws|ax|axa|az|azure|ba|baby|baidu|banamex|bananarepublic|band|bank|bar|barcelona|barclaycard|barclays|barefoot|bargains|baseball|basketball|bauhaus|bayern|bb|bbc|bbt|bbva|bcg|bcn|bd|be|beats|beauty|beer|bentley|berlin|best|bestbuy|bet|bf|bg|bh|bharti|bi|bible|bid|bike|bing|bingo|bio|biz|bj|black|blackfriday|blanco|blockbuster|blog|bloomberg|blue|bm|bms|bmw|bn|bnl|bnpparibas|bo|boats|boehringer|bofa|bom|bond|boo|book|booking|boots|bosch|bostik|boston|bot|boutique|box|br|bradesco|bridgestone|broadway|broker|brother|brussels|bs|bt|budapest|bugatti|build|builders|business|buy|buzz|bv|bw|by|bz|bzh|ca|cab|cafe|cal|call|calvinklein|cam|camera|camp|cancerresearch|canon|capetown|capital|capitalone|car|caravan|cards|care|career|careers|cars|cartier|casa|case|caseih|cash|casino|cat|catering|catholic|cba|cbn|cbre|cbs|cc|cd|ceb|center|ceo|cern|cf|cfa|cfd|cg|ch|chanel|channel|chase|chat|cheap|chintai|chloe|christmas|chrome|chrysler|church|ci|cipriani|circle|cisco|citadel|citi|citic|city|cityeats|ck|cl|claims|cleaning|click|clinic|clinique|clothing|cloud|club|clubmed|cm|cn|co|coach|codes|coffee|college|cologne|com|comcast|commbank|community|company|compare|computer|comsec|condos|construction|consulting|contact|contractors|cooking|cookingchannel|cool|coop|corsica|country|coupon|coupons|courses|cr|credit|creditcard|creditunion|cricket|crown|crs|cruise|cruises|csc|cu|cuisinella|cv|cw|cx|cy|cymru|cyou|cz|dabur|dad|dance|data|date|dating|datsun|day|dclk|dds|de|deal|dealer|deals|degree|delivery|dell|deloitte|delta|democrat|dental|dentist|desi|design|dev|dhl|diamonds|diet|digital|direct|directory|discount|discover|dish|diy|dj|dk|dm|dnp|do|docs|doctor|dodge|dog|doha|domains|dot|download|drive|dtv|dubai|duck|dunlop|duns|dupont|durban|dvag|dvr|dz|earth|eat|ec|eco|edeka|edu|education|ee|eg|email|emerck|energy|engineer|engineering|enterprises|epost|epson|equipment|er|ericsson|erni|es|esq|estate|esurance|et|etisalat|eu|eurovision|eus|events|everbank|exchange|expert|exposed|express|extraspace|fage|fail|fairwinds|faith|family|fan|fans|farm|farmers|fashion|fast|fedex|feedback|ferrari|ferrero|fi|fiat|fidelity|fido|film|final|finance|financial|fire|firestone|firmdale|fish|fishing|fit|fitness|fj|fk|flickr|flights|flir|florist|flowers|fly|fm|fo|foo|food|foodnetwork|football|ford|forex|forsale|forum|foundation|fox|fr|free|fresenius|frl|frogans|frontdoor|frontier|ftr|fujitsu|fujixerox|fun|fund|furniture|futbol|fyi|ga|gal|gallery|gallo|gallup|game|games|gap|garden|gb|gbiz|gd|gdn|ge|gea|gent|genting|george|gf|gg|ggee|gh|gi|gift|gifts|gives|giving|gl|glade|glass|gle|global|globo|gm|gmail|gmbh|gmo|gmx|gn|godaddy|gold|goldpoint|golf|goo|goodhands|goodyear|goog|google|gop|got|gov|gp|gq|gr|grainger|graphics|gratis|green|gripe|grocery|group|gs|gt|gu|guardian|gucci|guge|guide|guitars|guru|gw|gy|hair|hamburg|hangout|haus|hbo|hdfc|hdfcbank|health|healthcare|help|helsinki|here|hermes|hgtv|hiphop|hisamitsu|hitachi|hiv|hk|hkt|hm|hn|hockey|holdings|holiday|homedepot|homegoods|homes|homesense|honda|honeywell|horse|hospital|host|hosting|hot|hoteles|hotels|hotmail|house|how|hr|hsbc|ht|htc|hu|hughes|hyatt|hyundai|ibm|icbc|ice|icu|id|ie|ieee|ifm|ikano|il|im|imamat|imdb|immo|immobilien|in|industries|infiniti|info|ing|ink|institute|insurance|insure|int|intel|international|intuit|investments|io|ipiranga|iq|ir|irish|is|iselect|ismaili|ist|istanbul|it|itau|itv|iveco|iwc|jaguar|java|jcb|jcp|je|jeep|jetzt|jewelry|jio|jlc|jll|jm|jmp|jnj|jo|jobs|joburg|jot|joy|jp|jpmorgan|jprs|juegos|juniper|kaufen|kddi|ke|kerryhotels|kerrylogistics|kerryproperties|kfh|kg|kh|ki|kia|kim|kinder|kindle|kitchen|kiwi|km|kn|koeln|komatsu|kosher|kp|kpmg|kpn|kr|krd|kred|kuokgroup|kw|ky|kyoto|kz|la|lacaixa|ladbrokes|lamborghini|lamer|lancaster|lancia|lancome|land|landrover|lanxess|lasalle|lat|latino|latrobe|law|lawyer|lb|lc|lds|lease|leclerc|lefrak|legal|lego|lexus|lgbt|li|liaison|lidl|life|lifeinsurance|lifestyle|lighting|like|lilly|limited|limo|lincoln|linde|link|lipsy|live|living|lixil|lk|loan|loans|locker|locus|loft|lol|london|lotte|lotto|love|lpl|lplfinancial|lr|ls|lt|ltd|ltda|lu|lundbeck|lupin|luxe|luxury|lv|ly|ma|macys|madrid|maif|maison|makeup|man|management|mango|map|market|marketing|markets|marriott|marshalls|maserati|mattel|mba|mc|mckinsey|md|me|med|media|meet|melbourne|meme|memorial|men|menu|meo|merckmsd|metlife|mg|mh|miami|microsoft|mil|mini|mint|mit|mitsubishi|mk|ml|mlb|mls|mm|mma|mn|mo|mobi|mobile|mobily|moda|moe|moi|mom|monash|money|monster|mopar|mormon|mortgage|moscow|moto|motorcycles|mov|movie|movistar|mp|mq|mr|ms|msd|mt|mtn|mtr|mu|museum|mutual|mv|mw|mx|my|mz|na|nab|nadex|nagoya|name|nationwide|natura|navy|nba|nc|ne|nec|net|netbank|netflix|network|neustar|new|newholland|news|next|nextdirect|nexus|nf|nfl|ng|ngo|nhk|ni|nico|nike|nikon|ninja|nissan|nissay|nl|no|nokia|northwesternmutual|norton|now|nowruz|nowtv|np|nr|nra|nrw|ntt|nu|nyc|nz|obi|observer|off|office|okinawa|olayan|olayangroup|oldnavy|ollo|om|omega|one|ong|onl|online|onyourside|ooo|open|oracle|orange|org|organic|origins|osaka|otsuka|ott|ovh|pa|page|panasonic|panerai|paris|pars|partners|parts|party|passagens|pay|pccw|pe|pet|pf|pfizer|pg|ph|pharmacy|phd|philips|phone|photo|photography|photos|physio|piaget|pics|pictet|pictures|pid|pin|ping|pink|pioneer|pizza|pk|pl|place|play|playstation|plumbing|plus|pm|pn|pnc|pohl|poker|politie|porn|post|pr|pramerica|praxi|press|prime|pro|prod|productions|prof|progressive|promo|properties|property|protection|pru|prudential|ps|pt|pub|pw|pwc|py|qa|qpon|quebec|quest|qvc|racing|radio|raid|re|read|realestate|realtor|realty|recipes|red|redstone|redumbrella|rehab|reise|reisen|reit|reliance|ren|rent|rentals|repair|report|republican|rest|restaurant|review|reviews|rexroth|rich|richardli|ricoh|rightathome|ril|rio|rip|rmit|ro|rocher|rocks|rodeo|rogers|room|rs|rsvp|ru|rugby|ruhr|run|rw|rwe|ryukyu|sa|saarland|safe|safety|sakura|sale|salon|samsclub|samsung|sandvik|sandvikcoromant|sanofi|sap|sapo|sarl|sas|save|saxo|sb|sbi|sbs|sc|sca|scb|schaeffler|schmidt|scholarships|school|schule|schwarz|science|scjohnson|scor|scot|sd|se|search|seat|secure|security|seek|select|sener|services|ses|seven|sew|sex|sexy|sfr|sg|sh|shangrila|sharp|shaw|shell|shia|shiksha|shoes|shop|shopping|shouji|show|showtime|shriram|si|silk|sina|singles|site|sj|sk|ski|skin|sky|skype|sl|sling|sm|smart|smile|sn|sncf|so|soccer|social|softbank|software|sohu|solar|solutions|song|sony|soy|space|spiegel|spot|spreadbetting|sr|srl|srt|st|stada|staples|star|starhub|statebank|statefarm|statoil|stc|stcgroup|stockholm|storage|store|stream|studio|study|style|su|sucks|supplies|supply|support|surf|surgery|suzuki|sv|swatch|swiftcover|swiss|sx|sy|sydney|symantec|systems|sz|tab|taipei|talk|taobao|target|tatamotors|tatar|tattoo|tax|taxi|tc|tci|td|tdk|team|tech|technology|tel|telecity|telefonica|temasek|tennis|teva|tf|tg|th|thd|theater|theatre|tiaa|tickets|tienda|tiffany|tips|tires|tirol|tj|tjmaxx|tjx|tk|tkmaxx|tl|tm|tmall|tn|to|today|tokyo|tools|top|toray|toshiba|total|tours|town|toyota|toys|tr|trade|trading|training|travel|travelchannel|travelers|travelersinsurance|trust|trv|tt|tube|tui|tunes|tushu|tv|tvs|tw|tz|ua|ubank|ubs|uconnect|ug|uk|unicom|university|uno|uol|ups|us|uy|uz|va|vacations|vana|vanguard|vc|ve|vegas|ventures|verisign|versicherung|vet|vg|vi|viajes|video|vig|viking|villas|vin|vip|virgin|visa|vision|vista|vistaprint|viva|vivo|vlaanderen|vn|vodka|volkswagen|volvo|vote|voting|voto|voyage|vu|vuelos|wales|walmart|walter|wang|wanggou|warman|watch|watches|weather|weatherchannel|webcam|weber|website|wed|wedding|weibo|weir|wf|whoswho|wien|wiki|williamhill|win|windows|wine|winners|wme|wolterskluwer|woodside|work|works|world|wow|ws|wtc|wtf|xbox|xerox|xfinity|xihuan|xin|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--30rr7y|xn--3bst00m|xn--3ds443g|xn--3e0b707e|xn--3hcrj9c|xn--3oq18vl8pn36a|xn--3pxu8k|xn--42c2d9a|xn--45br5cyl|xn--45brj9c|xn--45q11c|xn--4gbrim|xn--54b7fta0cc|xn--55qw42g|xn--55qx5d|xn--5su34j936bgsg|xn--5tzm5g|xn--6frz82g|xn--6qq986b3xl|xn--80adxhks|xn--80ao21a|xn--80aqecdr1a|xn--80asehdb|xn--80aswg|xn--8y0a063a|xn--90a3ac|xn--90ae|xn--90ais|xn--9dbq2a|xn--9et52u|xn--9krt00a|xn--b4w605ferd|xn--bck1b9a5dre4c|xn--c1avg|xn--c2br7g|xn--cck2b3b|xn--cg4bki|xn--clchc0ea0b2g2a9gcd|xn--czr694b|xn--czrs0t|xn--czru2d|xn--d1acj3b|xn--d1alf|xn--e1a4c|xn--eckvdtc9d|xn--efvy88h|xn--estv75g|xn--fct429k|xn--fhbei|xn--fiq228c5hs|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--fjq720a|xn--flw351e|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--fzys8d69uvgm|xn--g2xx48c|xn--gckr3f0f|xn--gecrj9c|xn--gk3at1e|xn--h2breg3eve|xn--h2brj9c|xn--h2brj9c8c|xn--hxt814e|xn--i1b6b1a6a2e|xn--imr513n|xn--io0a7i|xn--j1aef|xn--j1amh|xn--j6w193g|xn--jlq61u9w7b|xn--jvr189m|xn--kcrx77d1x4a|xn--kprw13d|xn--kpry57d|xn--kpu716f|xn--kput3i|xn--l1acc|xn--lgbbat1ad8j|xn--mgb9awbf|xn--mgba3a3ejt|xn--mgba3a4f16a|xn--mgba7c0bbn0a|xn--mgbaakc7dvf|xn--mgbaam7a8h|xn--mgbab2bd|xn--mgbai9azgqp6j|xn--mgbayh7gpa|xn--mgbb9fbpob|xn--mgbbh1a|xn--mgbbh1a71e|xn--mgbc0a9azcg|xn--mgbca7dzdo|xn--mgberp4a5d4ar|xn--mgbgu82a|xn--mgbi4ecexp|xn--mgbpl2fh|xn--mgbt3dhd|xn--mgbtx2b|xn--mgbx4cd0ab|xn--mix891f|xn--mk1bu44c|xn--mxtq1m|xn--ngbc5azd|xn--ngbe9e0a|xn--ngbrx|xn--node|xn--nqv7f|xn--nqv7fs00ema|xn--nyqy26a|xn--o3cw4h|xn--ogbpf8fl|xn--p1acf|xn--p1ai|xn--pbt977c|xn--pgbs0dh|xn--pssy2u|xn--q9jyb4c|xn--qcka1pmc|xn--qxam|xn--rhqv96g|xn--rovu88b|xn--rvc1e0am3e|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--tckwe|xn--tiq49xqyj|xn--unup4y|xn--vermgensberater-ctb|xn--vermgensberatung-pwb|xn--vhquv|xn--vuq861b|xn--w4r85el8fhu5dnra|xn--w4rs40l|xn--wgbh1c|xn--wgbl6a|xn--xhq521b|xn--xkc2al3hye2a|xn--xkc2dl3a5ee0h|xn--y9a3aq|xn--yfro4i67o|xn--ygbi2ammx|xn--zfr164b|xperia|xxx|xyz|yachts|yahoo|yamaxun|yandex|ye|yodobashi|yoga|yokohama|you|youtube|yt|yun|za|zappos|zara|zero|zip|zippo|zm|zone|zuerich|zw".split("|"),s="0123456789".split(""),u="0123456789abcdefghijklmnopqrstuvwxyz".split(""),c=[" ","\f","\r","\t","\v","\xa0","\u1680","\u180e"],l=[],h=function(e){return new i.CharacterState(e)},d=h(),f=h(r.NUM),p=h(r.DOMAIN),v=h(),m=h(r.WS);d.on("@",h(r.AT)).on(".",h(r.DOT)).on("+",h(r.PLUS)).on("#",h(r.POUND)).on("?",h(r.QUERY)).on("/",h(r.SLASH)).on("_",h(r.UNDERSCORE)).on(":",h(r.COLON)).on("{",h(r.OPENBRACE)).on("[",h(r.OPENBRACKET)).on("<",h(r.OPENANGLEBRACKET)).on("(",h(r.OPENPAREN)).on("}",h(r.CLOSEBRACE)).on("]",h(r.CLOSEBRACKET)).on(">",h(r.CLOSEANGLEBRACKET)).on(")",h(r.CLOSEPAREN)).on("&",h(r.AMPERSAND)).on([",",";","!",'"',"'"],h(r.PUNCTUATION)),d.on("\n",h(r.NL)).on(c,m),m.on(c,m);for(var g=0;g<a.length;g++){var y=(0,i.stateify)(a[g],d,r.TLD,r.DOMAIN);l.push.apply(l,y)}var b=(0,i.stateify)("file",d,r.DOMAIN,r.DOMAIN),_=(0,i.stateify)("ftp",d,r.DOMAIN,r.DOMAIN),k=(0,i.stateify)("http",d,r.DOMAIN,r.DOMAIN),w=(0,i.stateify)("mailto",d,r.DOMAIN,r.DOMAIN);l.push.apply(l,b),l.push.apply(l,_),l.push.apply(l,k),l.push.apply(l,w);var S=b.pop(),C=_.pop(),E=k.pop(),O=w.pop(),x=h(r.DOMAIN),T=h(r.PROTOCOL),M=h(r.MAILTO);C.on("s",x).on(":",T),E.on("s",x).on(":",T),l.push(x),S.on(":",T),x.on(":",T),O.on(":",M);var P=(0,i.stateify)("localhost",d,r.LOCALHOST,r.DOMAIN);l.push.apply(l,P),d.on(s,f),f.on("-",v).on(s,f).on(u,p),p.on("-",v).on(u,p);for(var I=0;I<l.length;I++)l[I].on("-",v).on(u,p);v.on("-",v).on(s,p).on(u,p),d.defaultTransition=h(r.SYM);var A=d;t.State=i.CharacterState,t.TOKENS=o,t.run=function(e){for(var t=e.replace(/[A-Z]/g,(function(e){return e.toLowerCase()})),n=e.length,i=[],r=0;r<n;){for(var o=d,a=null,s=0,u=null,c=-1;r<n&&(a=o.next(t[r]));)(o=a).accepts()?(c=0,u=o):c>=0&&c++,s++,r++;if(!(c<0)){r-=c,s-=c;var l=u.emit();i.push(new l(e.substr(r-s,s)))}}return i},t.start=A},tInm:function(e,t,n){"use strict";t.__esModule=!0,t.LocalRecorder=void 0;var i=n("Yn0Z"),r=n("9m68"),o=n("4jfU"),a=r.OpenViduLogger.getInstance(),s=o.PlatformUtils.getInstance(),u=function(){function e(e){this.stream=e,this.chunks=[],this.connectionId=this.stream.connection?this.stream.connection.connectionId:"default-connection",this.id=this.stream.streamId+"_"+this.connectionId+"_localrecord",this.state=i.LocalRecorderState.READY}return e.prototype.record=function(e){var t=this;return new Promise((function(n,r){try{if("undefined"==typeof MediaRecorder)throw a.error("MediaRecorder not supported on your browser. See compatibility in https://caniuse.com/#search=MediaRecorder"),Error("MediaRecorder not supported on your browser. See compatibility in https://caniuse.com/#search=MediaRecorder");if(t.state!==i.LocalRecorderState.READY)throw Error("'LocalRecord.record()' needs 'LocalRecord.state' to be 'READY' (current value: '"+t.state+"'). Call 'LocalRecorder.clean()' or init a new LocalRecorder before");a.log("Starting local recording of stream '"+t.stream.streamId+"' of connection '"+t.connectionId+"'");var o={};"function"==typeof MediaRecorder.isTypeSupported?e?(MediaRecorder.isTypeSupported(e)||r(new Error('mimeType "'+e+'" is not supported')),o={mimeType:e}):a.log("No mimeType parameter provided. Using default codecs"):a.warn("MediaRecorder#isTypeSupported is not supported. Using default codecs"),t.mediaRecorder=new MediaRecorder(t.stream.getMediaStream(),o),t.mediaRecorder.start(10)}catch(s){r(s)}t.mediaRecorder.ondataavailable=function(e){t.chunks.push(e.data)},t.mediaRecorder.onerror=function(e){a.error("MediaRecorder error: ",e)},t.mediaRecorder.onstart=function(){a.log("MediaRecorder started (state="+t.mediaRecorder.state+")")},t.mediaRecorder.onstop=function(){t.onStopDefault()},t.mediaRecorder.onpause=function(){a.log("MediaRecorder paused (state="+t.mediaRecorder.state+")")},t.mediaRecorder.onresume=function(){a.log("MediaRecorder resumed (state="+t.mediaRecorder.state+")")},t.mediaRecorder.onwarning=function(e){a.log("MediaRecorder warning: "+e)},t.state=i.LocalRecorderState.RECORDING,n()}))},e.prototype.stop=function(){var e=this;return new Promise((function(t,n){try{if(e.state===i.LocalRecorderState.READY||e.state===i.LocalRecorderState.FINISHED)throw Error("'LocalRecord.stop()' needs 'LocalRecord.state' to be 'RECORDING' or 'PAUSED' (current value: '"+e.state+"'). Call 'LocalRecorder.start()' before");e.mediaRecorder.onstop=function(){e.onStopDefault(),t()},e.mediaRecorder.stop()}catch(r){n(r)}}))},e.prototype.pause=function(){var e=this;return new Promise((function(t,n){try{e.state!==i.LocalRecorderState.RECORDING&&n(Error("'LocalRecord.pause()' needs 'LocalRecord.state' to be 'RECORDING' (current value: '"+e.state+"'). Call 'LocalRecorder.start()' or 'LocalRecorder.resume()' before")),e.mediaRecorder.pause(),e.state=i.LocalRecorderState.PAUSED,t()}catch(r){n(r)}}))},e.prototype.resume=function(){var e=this;return new Promise((function(t,n){try{if(e.state!==i.LocalRecorderState.PAUSED)throw Error("'LocalRecord.resume()' needs 'LocalRecord.state' to be 'PAUSED' (current value: '"+e.state+"'). Call 'LocalRecorder.pause()' before");e.mediaRecorder.resume(),e.state=i.LocalRecorderState.RECORDING,t()}catch(r){n(r)}}))},e.prototype.preview=function(e){if(this.state!==i.LocalRecorderState.FINISHED)throw Error("'LocalRecord.preview()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+this.state+"'). Call 'LocalRecorder.stop()' before");if(this.videoPreview=document.createElement("video"),this.videoPreview.id=this.id,this.videoPreview.autoplay=!0,s.isSafariBrowser()&&this.videoPreview.setAttribute("playsinline","true"),"string"==typeof e){var t=document.getElementById(e);t&&(this.videoPreview=t.appendChild(this.videoPreview))}else this.videoPreview=e.appendChild(this.videoPreview);return this.videoPreview.src=this.videoPreviewSrc,this.videoPreview},e.prototype.clean=function(){var e=this,t=function(){delete e.blob,e.chunks=[],delete e.mediaRecorder,e.state=i.LocalRecorderState.READY};this.state===i.LocalRecorderState.RECORDING||this.state===i.LocalRecorderState.PAUSED?this.stop().then((function(){return t()})).catch((function(){return t()})):t()},e.prototype.download=function(){if(this.state!==i.LocalRecorderState.FINISHED)throw Error("'LocalRecord.download()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+this.state+"'). Call 'LocalRecorder.stop()' before");var e=document.createElement("a");e.style.display="none",document.body.appendChild(e);var t=window.URL.createObjectURL(this.blob);e.href=t,e.download=this.id+".webm",e.click(),window.URL.revokeObjectURL(t),document.body.removeChild(e)},e.prototype.getBlob=function(){if(this.state!==i.LocalRecorderState.FINISHED)throw Error("Call 'LocalRecord.stop()' before getting Blob file");return this.blob},e.prototype.uploadAsBinary=function(e,t){var n=this;return new Promise((function(r,o){if(n.state!==i.LocalRecorderState.FINISHED)o(Error("'LocalRecord.uploadAsBinary()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+n.state+"'). Call 'LocalRecorder.stop()' before"));else{var a=new XMLHttpRequest;if(a.open("POST",e,!0),"object"==typeof t)for(var s=0,u=Object.keys(t);s<u.length;s++){var c=u[s];a.setRequestHeader(c,t[c])}a.onreadystatechange=function(){4===a.readyState&&("2"===a.status.toString().charAt(0)?r(a.responseText):o(a.status))},a.send(n.blob)}}))},e.prototype.uploadAsMultipartfile=function(e,t){var n=this;return new Promise((function(r,o){if(n.state!==i.LocalRecorderState.FINISHED)o(Error("'LocalRecord.uploadAsMultipartfile()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+n.state+"'). Call 'LocalRecorder.stop()' before"));else{var a=new XMLHttpRequest;if(a.open("POST",e,!0),"object"==typeof t)for(var s=0,u=Object.keys(t);s<u.length;s++){var c=u[s];a.setRequestHeader(c,t[c])}var l=new FormData;l.append("file",n.blob,n.id+".webm"),a.onreadystatechange=function(){4===a.readyState&&("2"===a.status.toString().charAt(0)?r(a.responseText):o(a.status))},a.send(l)}}))},e.prototype.onStopDefault=function(){a.log("MediaRecorder stopped (state="+this.mediaRecorder.state+")"),this.blob=new Blob(this.chunks,{type:"video/webm"}),this.chunks=[],this.videoPreviewSrc=window.URL.createObjectURL(this.blob),this.state=i.LocalRecorderState.FINISHED},e}();t.LocalRecorder=u},vLqr:function(e,t,n){"use strict";var i=n("Q1FS");function r(e){e.subscriber.error(e.error)}t.throwError=function(e,t){return new i.Observable(t?function(n){return t.schedule(r,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}},vqFl:function(e){e.exports=JSON.parse('{"_from":"openvidu-browser@2.16.0","_id":"openvidu-browser@2.16.0","_inBundle":false,"_integrity":"sha512-o7TWCKhEKPYYuDpYhL1u2OMvZVhzj6Kef8iD64QOTO3q3Wq6jpDGpM6J9ZxfqjE9owyJWQkDL6jdzq4tEiiQvw==","_location":"/openvidu-browser","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"openvidu-browser@2.16.0","name":"openvidu-browser","escapedName":"openvidu-browser","rawSpec":"2.16.0","saveSpec":null,"fetchSpec":"2.16.0"},"_requiredBy":["/"],"_resolved":"https://registry.npmjs.org/openvidu-browser/-/openvidu-browser-2.16.0.tgz","_shasum":"db2b6343618498fcf821417a0f52e31a481037ae","_spec":"openvidu-browser@2.16.0","_where":"/opt/openvidu-call-front","author":{"name":"OpenVidu"},"bugs":{"url":"https://github.com/OpenVidu/openvidu/issues"},"bundleDependencies":false,"dependencies":{"@types/node":"14.14.7","@types/platform":"1.3.3","freeice":"2.2.2","hark":"1.2.3","platform":"1.3.6","uuid":"8.3.1","wolfy87-eventemitter":"5.2.9"},"deprecated":false,"description":"OpenVidu Browser","devDependencies":{"browserify":"17.0.0","grunt":"1.3.0","grunt-cli":"1.3.2","grunt-contrib-copy":"1.0.0","grunt-contrib-sass":"2.0.0","grunt-contrib-uglify":"5.0.0","grunt-contrib-watch":"1.1.0","grunt-postcss":"0.9.0","grunt-string-replace":"1.3.1","grunt-ts":"6.0.0-beta.22","terser":"5.3.8","tsify":"5.0.2","tslint":"6.1.3","typedoc":"0.19.2","typescript":"4.0.5"},"homepage":"https://github.com/OpenVidu/openvidu#readme","license":"Apache-2.0","main":"lib/index.js","name":"openvidu-browser","repository":{"type":"git","url":"git://github.com/OpenVidu/openvidu.git"},"scripts":{"browserify":"VERSION=${VERSION:-dev}; cd src && ../node_modules/browserify/bin/cmd.js Main.ts -p [ tsify ] --exclude kurento-browser-extensions --debug -o ../static/js/openvidu-browser-$VERSION.js -v","browserify-prod":"VERSION=${VERSION:-dev}; cd src && ../node_modules/browserify/bin/cmd.js --debug Main.ts -p [ tsify ] --exclude kurento-browser-extensions | ../node_modules/terser/bin/terser --source-map content=inline --output ../static/js/openvidu-browser-$VERSION.min.js","build":"cd src/OpenVidu && ./../../node_modules/typescript/bin/tsc && cd ../.. && ./node_modules/typescript/bin/tsc --declaration src/index.ts --outDir ./lib --sourceMap --lib dom,es5,es2015.promise,scripthost","docs":"./generate-docs.sh"},"types":"lib/index.d.ts","version":"2.16.0"}')},vqGb:function(e,t,n){"use strict";t.__esModule=!0,t.URL=t.TEXT=t.NL=t.EMAIL=t.MAILTOEMAIL=t.Base=void 0;var i=n("RvMX"),r=n("JUw6"),o=n("dlaP");function a(e){return e instanceof o.DOMAIN||e instanceof o.TLD}var s=(0,i.createTokenClass)();s.prototype={type:"token",isLink:!1,toString:function(){for(var e=[],t=0;t<this.v.length;t++)e.push(this.v[t].toString());return e.join("")},toHref:function(){return this.toString()},toObject:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http";return{type:this.type,value:this.toString(),href:this.toHref(e)}}};var u=(0,r.inherits)(s,(0,i.createTokenClass)(),{type:"email",isLink:!0}),c=(0,r.inherits)(s,(0,i.createTokenClass)(),{type:"email",isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),l=(0,r.inherits)(s,(0,i.createTokenClass)(),{type:"text"}),h=(0,r.inherits)(s,(0,i.createTokenClass)(),{type:"nl"}),d=(0,r.inherits)(s,(0,i.createTokenClass)(),{type:"url",isLink:!0,toHref:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http",t=!1,n=!1,i=this.v,r=[],s=0;i[s]instanceof o.PROTOCOL;)t=!0,r.push(i[s].toString().toLowerCase()),s++;for(;i[s]instanceof o.SLASH;)n=!0,r.push(i[s].toString()),s++;for(;a(i[s]);)r.push(i[s].toString().toLowerCase()),s++;for(;s<i.length;s++)r.push(i[s].toString());return r=r.join(""),t||n||(r=e+"://"+r),r},hasProtocol:function(){return this.v[0]instanceof o.PROTOCOL}});t.Base=s,t.MAILTOEMAIL=u,t.EMAIL=c,t.NL=h,t.TEXT=l,t.URL=d},wJ6L:function(e){e.exports=JSON.parse("[]")},wjEo:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("FWf1"),o=n("Q1FS"),a=n("6qA3");t.SimpleInnerSubscriber=function(e){function t(t){var n=e.call(this)||this;return n.parent=t,n}return i(t,e),t.prototype._next=function(e){this.parent.notifyNext(e)},t.prototype._error=function(e){this.parent.notifyError(e),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},t}(r.Subscriber),t.ComplexInnerSubscriber=function(e){function t(t,n,i){var r=e.call(this)||this;return r.parent=t,r.outerValue=n,r.outerIndex=i,r}return i(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this)},t.prototype._error=function(e){this.parent.notifyError(e),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(r.Subscriber),t.SimpleOuterSubscriber=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.notifyNext=function(e){this.destination.next(e)},t.prototype.notifyError=function(e){this.destination.error(e)},t.prototype.notifyComplete=function(){this.destination.complete()},t}(r.Subscriber),t.ComplexOuterSubscriber=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.notifyNext=function(e,t,n,i){this.destination.next(t)},t.prototype.notifyError=function(e){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(r.Subscriber),t.innerSubscribe=function(e,t){if(!t.closed)return e instanceof o.Observable?e.subscribe(t):a.subscribeTo(e)(t)}},yRPT:function(e,t,n){"use strict";t.isArrayLike=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},yoF8:function(e,t,n){"use strict";t.identity=function(e){return e}},yx2s:function(e,t,n){"use strict";var i=n("FWf1");t.canReportError=function(e){for(;e;){var t=e.destination;if(e.closed||e.isStopped)return!1;e=t&&t instanceof i.Subscriber?t:null}return!0}},"zB/H":function(e,t,n){"use strict";var i=n("mbIT"),r=n("GMZp"),o=n("pshJ"),a=n("LBXl");function s(e){return e.reduce((function(e,t){return e.concat(t instanceof a.UnsubscriptionError?t.errors:t)}),[])}t.Subscription=function(){function e(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}var t;return e.prototype.unsubscribe=function(){var t;if(!this.closed){var n=this,u=n._parentOrParents,c=n._ctorUnsubscribe,l=n._unsubscribe,h=n._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,u instanceof e)u.remove(this);else if(null!==u)for(var d=0;d<u.length;++d)u[d].remove(this);if(o.isFunction(l)){c&&(this._unsubscribe=void 0);try{l.call(this)}catch(v){t=v instanceof a.UnsubscriptionError?s(v.errors):[v]}}if(i.isArray(h)){d=-1;for(var f=h.length;++d<f;){var p=h[d];if(r.isObject(p))try{p.unsubscribe()}catch(v){t=t||[],v instanceof a.UnsubscriptionError?t=t.concat(s(v.errors)):t.push(v)}}}if(t)throw new a.UnsubscriptionError(t)}},e.prototype.add=function(t){var n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var i=n;(n=new e)._subscriptions=[i]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var r=n._parentOrParents;if(null===r)n._parentOrParents=this;else if(r instanceof e){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},e.EMPTY=((t=new e).closed=!0,t),e}()},zUnb:function(e,t,n){"use strict";function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function r(e,t,n){return(r="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=i(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e){if(Array.isArray(e))return e}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function u(e,t){if(e){if("string"==typeof e)return s(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)?s(e,t):void 0}}function c(){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 l(e,t){return a(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(u){r=!0,o=u}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}return n}}(e,t)||u(e,t)||c()}function h(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function d(e){return function(e){if(Array.isArray(e))return s(e)}(e)||h(e)||u(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 f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){return a(e)||h(e)||u(e)||c()}function v(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=u(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 o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}function y(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function b(e){return(b="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)}function _(e,t){return!t||"object"!==b(t)&&"function"!=typeof t?o(e):t}function k(e){var t=y();return function(){var n,r=i(e);if(t){var o=i(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _(this,n)}}function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function C(e,t,n){return t&&S(e.prototype,t),n&&S(e,n),e}function E(e,t,n){return(E=y()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&m(r,n.prototype),r}).apply(null,arguments)}n.r(t);var O=function(){return Array.isArray||function(e){return e&&"number"==typeof e.length}}();function x(e){return null!==e&&"object"==typeof e}function T(e){return"function"==typeof e}var M=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}(),P=function(){var e=function(){function e(t){w(this,e),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return C(e,[{key:"unsubscribe",value:function(){var t;if(!this.closed){var n=this._parentOrParents,i=this._ctorUnsubscribe,r=this._unsubscribe,o=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(var a=0;a<n.length;++a)n[a].remove(this);if(T(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(l){t=l instanceof M?I(l.errors):[l]}}if(O(o))for(var s=-1,u=o.length;++s<u;){var c=o[s];if(x(c))try{c.unsubscribe()}catch(l){t=t||[],l instanceof M?t=t.concat(I(l.errors)):t.push(l)}}if(t)throw new M(t)}}},{key:"add",value:function(t){var n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var i=n;(n=new e)._subscriptions=[i]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var r=n._parentOrParents;if(null===r)n._parentOrParents=this;else if(r instanceof e){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n}},{key:"remove",value:function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}]),e}();return e.EMPTY=function(e){return e.closed=!0,e}(new e),e}();function I(e){return e.reduce((function(e,t){return e.concat(t instanceof M?t.errors:t)}),[])}var A=!1,R={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 A&&console.log("RxJS: Back to a better error behavior. Thank you. <3");A=e},get useDeprecatedSynchronousErrorHandling(){return A}};function D(e){setTimeout((function(){throw e}),0)}var N={closed:!0,next:function(e){},error:function(e){if(R.useDeprecatedSynchronousErrorHandling)throw e;D(e)},complete:function(){}},L=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),V=function(e){g(n,e);var t=k(n);function n(e,i,r){var a;switch(w(this,n),(a=t.call(this)).syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=N;break;case 1:if(!e){a.destination=N;break}if("object"==typeof e){e instanceof n?(a.syncErrorThrowable=e.syncErrorThrowable,a.destination=e,e.add(o(a))):(a.syncErrorThrowable=!0,a.destination=new j(o(a),e));break}default:a.syncErrorThrowable=!0,a.destination=new j(o(a),e,i,r)}return a}return C(n,[{key:L,value:function(){return this}},{key:"next",value:function(e){this.isStopped||this._next(e)}},{key:"error",value:function(e){this.isStopped||(this.isStopped=!0,this._error(e))}},{key:"complete",value:function(){this.isStopped||(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,r(i(n.prototype),"unsubscribe",this).call(this))}},{key:"_next",value:function(e){this.destination.next(e)}},{key:"_error",value:function(e){this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}],[{key:"create",value:function(e,t,i){var r=new n(e,t,i);return r.syncErrorThrowable=!1,r}}]),n}(P),j=function(e){g(n,e);var t=k(n);function n(e,i,r,a){var s,u;w(this,n),(s=t.call(this))._parentSubscriber=e;var c=o(s);return T(i)?u=i:i&&(u=i.next,r=i.error,a=i.complete,i!==N&&(T((c=Object.create(i)).unsubscribe)&&s.add(c.unsubscribe.bind(c)),c.unsubscribe=s.unsubscribe.bind(o(s)))),s._context=c,s._next=u,s._error=r,s._complete=a,s}return C(n,[{key:"next",value:function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;R.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}},{key:"error",value:function(e){if(!this.isStopped){var t=this._parentSubscriber,n=R.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):D(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;D(e)}}}},{key:"complete",value:function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};R.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),R.useDeprecatedSynchronousErrorHandling)throw n;D(n)}}},{key:"__tryOrSetError",value:function(e,t,n){if(!R.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(i){return R.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=i,e.syncErrorThrown=!0,!0):(D(i),!0)}return!1}},{key:"_unsubscribe",value:function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}]),n}(V),F=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function B(e){return e}function U(e){return 0===e.length?B:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var z=function(){var e=function(){function e(t){w(this,e),this._isScalar=!1,t&&(this._subscribe=t)}return C(e,[{key:"lift",value:function(t){var n=new e;return n.source=this,n.operator=t,n}},{key:"subscribe",value:function(e,t,n){var i=this.operator,r=function(e,t,n){if(e){if(e instanceof V)return e;if(e[L])return e[L]()}return e||t||n?new V(e,t,n):new V(N)}(e,t,n);if(r.add(i?i.call(r,this.source):this.source||R.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),R.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r}},{key:"_trySubscribe",value:function(e){try{return this._subscribe(e)}catch(t){R.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e.destination;if(e.closed||e.isStopped)return!1;e=t&&t instanceof V?t:null}return!0}(e)?e.error(t):console.warn(t)}}},{key:"forEach",value:function(e,t){var n=this;return new(t=W(t))((function(t,i){var r;r=n.subscribe((function(t){try{e(t)}catch(n){i(n),r&&r.unsubscribe()}}),i,t)}))}},{key:"_subscribe",value:function(e){var t=this.source;return t&&t.subscribe(e)}},{key:F,value:function(){return this}},{key:"pipe",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?this:U(t)(this)}},{key:"toPromise",value:function(e){var t=this;return new(e=W(e))((function(e,n){var i;t.subscribe((function(e){return i=e}),(function(e){return n(e)}),(function(){return e(i)}))}))}}]),e}();return e.create=function(t){return new e(t)},e}();function W(e){if(e||(e=R.Promise||Promise),!e)throw new Error("no Promise impl found");return e}var H=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}(),G=function(e){g(n,e);var t=k(n);function n(e,i){var r;return w(this,n),(r=t.call(this)).subject=e,r.subscriber=i,r.closed=!1,r}return C(n,[{key:"unsubscribe",value:function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}}}]),n}(P),q=function(e){g(n,e);var t=k(n);function n(e){var i;return w(this,n),(i=t.call(this,e)).destination=e,i}return n}(V),Z=function(){var e=function(e){g(n,e);var t=k(n);function n(){var e;return w(this,n),(e=t.call(this)).observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return C(n,[{key:L,value:function(){return new q(this)}},{key:"lift",value:function(e){var t=new Q(this,this);return t.operator=e,t}},{key:"next",value:function(e){if(this.closed)throw new H;if(!this.isStopped)for(var t=this.observers,n=t.length,i=t.slice(),r=0;r<n;r++)i[r].next(e)}},{key:"error",value:function(e){if(this.closed)throw new H;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,i=t.slice(),r=0;r<n;r++)i[r].error(e);this.observers.length=0}},{key:"complete",value:function(){if(this.closed)throw new H;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),i=0;i<t;i++)n[i].complete();this.observers.length=0}},{key:"unsubscribe",value:function(){this.isStopped=!0,this.closed=!0,this.observers=null}},{key:"_trySubscribe",value:function(e){if(this.closed)throw new H;return r(i(n.prototype),"_trySubscribe",this).call(this,e)}},{key:"_subscribe",value:function(e){if(this.closed)throw new H;return this.hasError?(e.error(this.thrownError),P.EMPTY):this.isStopped?(e.complete(),P.EMPTY):(this.observers.push(e),new G(this,e))}},{key:"asObservable",value:function(){var e=new z;return e.source=this,e}}]),n}(z);return e.create=function(e,t){return new Q(e,t)},e}(),Q=function(e){g(n,e);var t=k(n);function n(e,i){var r;return w(this,n),(r=t.call(this)).destination=e,r.source=i,r}return C(n,[{key:"next",value:function(e){var t=this.destination;t&&t.next&&t.next(e)}},{key:"error",value:function(e){var t=this.destination;t&&t.error&&this.destination.error(e)}},{key:"complete",value:function(){var e=this.destination;e&&e.complete&&this.destination.complete()}},{key:"_subscribe",value:function(e){return this.source?this.source.subscribe(e):P.EMPTY}}]),n}(Z);function Y(e){return e&&"function"==typeof e.schedule}function K(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new J(e,t))}}var J=function(){function e(t,n){w(this,e),this.project=t,this.thisArg=n}return C(e,[{key:"call",value:function(e,t){return t.subscribe(new X(e,this.project,this.thisArg))}}]),e}(),X=function(e){g(n,e);var t=k(n);function n(e,i,r){var a;return w(this,n),(a=t.call(this,e)).project=i,a.count=0,a.thisArg=r||o(a),a}return C(n,[{key:"_next",value:function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(V),$=function(e){return function(t){for(var n=0,i=e.length;n<i&&!t.closed;n++)t.next(e[n]);t.complete()}};function ee(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var te=ee(),ne=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function ie(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}var re=function(e){if(e&&"function"==typeof e[F])return i=e,function(e){var t=i[F]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(ne(e))return $(e);if(ie(e))return n=e,function(e){return n.then((function(t){e.closed||(e.next(t),e.complete())}),(function(t){return e.error(t)})).then(null,D),e};if(e&&"function"==typeof e[te])return t=e,function(e){for(var n=t[te]();;){var i=void 0;try{i=n.next()}catch(r){return e.error(r),e}if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}return"function"==typeof n.return&&e.add((function(){n.return&&n.return()})),e};var t,n,i,r=x(e)?"an invalid object":"'".concat(e,"'"),o="You provided ".concat(r," where a stream was expected.")+" You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(o)};function oe(e,t){return new z((function(n){var i=new P,r=0;return i.add(t.schedule((function(){r!==e.length?(n.next(e[r++]),n.closed||i.add(this.schedule())):n.complete()}))),i}))}function ae(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[F]}(e))return function(e,t){return new z((function(n){var i=new P;return i.add(t.schedule((function(){var r=e[F]();i.add(r.subscribe({next:function(e){i.add(t.schedule((function(){return n.next(e)})))},error:function(e){i.add(t.schedule((function(){return n.error(e)})))},complete:function(){i.add(t.schedule((function(){return n.complete()})))}}))}))),i}))}(e,t);if(ie(e))return function(e,t){return new z((function(n){var i=new P;return i.add(t.schedule((function(){return e.then((function(e){i.add(t.schedule((function(){n.next(e),i.add(t.schedule((function(){return n.complete()})))})))}),(function(e){i.add(t.schedule((function(){return n.error(e)})))}))}))),i}))}(e,t);if(ne(e))return oe(e,t);if(function(e){return e&&"function"==typeof e[te]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new z((function(n){var i,r=new P;return r.add((function(){i&&"function"==typeof i.return&&i.return()})),r.add(t.schedule((function(){i=e[te](),r.add(t.schedule((function(){if(!n.closed){var e,t;try{var r=i.next();e=r.value,t=r.done}catch(o){return void n.error(o)}t?n.complete():(n.next(e),this.schedule())}})))}))),r}))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof z?e:new z(re(e))}var se=function(e){g(n,e);var t=k(n);function n(e){var i;return w(this,n),(i=t.call(this)).parent=e,i}return C(n,[{key:"_next",value:function(e){this.parent.notifyNext(e)}},{key:"_error",value:function(e){this.parent.notifyError(e),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(),this.unsubscribe()}}]),n}(V),ue=function(e){g(n,e);var t=k(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyError",value:function(e){this.destination.error(e)}},{key:"notifyComplete",value:function(){this.destination.complete()}}]),n}(V);function ce(e,t){if(!t.closed)return e instanceof z?e.subscribe(t):re(e)(t)}function le(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(i){return i.pipe(le((function(n,i){return ae(e(n,i)).pipe(K((function(e,r){return t(n,e,i,r)})))}),n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new he(e,n))})}var he=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;w(this,e),this.project=t,this.concurrent=n}return C(e,[{key:"call",value:function(e,t){return t.subscribe(new de(e,this.project,this.concurrent))}}]),e}(),de=function(e){g(n,e);var t=k(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return w(this,n),(r=t.call(this,e)).project=i,r.concurrent=o,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return C(n,[{key:"_next",value:function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=new se(this),n=this.destination;n.add(t);var i=ce(e,t);i!==t&&n.add(i)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyComplete",value:function(){var e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(ue);function fe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return le(B,e)}function pe(e,t){return t?oe(e,t):new z($(e))}function ve(){for(var e=Number.POSITIVE_INFINITY,t=null,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];var o=i[i.length-1];return Y(o)?(t=i.pop(),i.length>1&&"number"==typeof i[i.length-1]&&(e=i.pop())):"number"==typeof o&&(e=i.pop()),null===t&&1===i.length&&i[0]instanceof z?i[0]:fe(e)(pe(i,t))}function me(){return function(e){return e.lift(new ge(e))}}var ge=function(){function e(t){w(this,e),this.connectable=t}return C(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var i=new ye(e,n),r=t.subscribe(i);return i.closed||(i.connection=n.connect()),r}}]),e}(),ye=function(e){g(n,e);var t=k(n);function n(e,i){var r;return w(this,n),(r=t.call(this,e)).connectable=i,r}return C(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}(V),be=function(e){g(n,e);var t=k(n);function n(e,i){var r;return w(this,n),(r=t.call(this)).source=e,r.subjectFactory=i,r._refCount=0,r._isComplete=!1,r}return C(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 P).add(this.source.subscribe(new ke(this.getSubject(),this))),e.closed&&(this._connection=null,e=P.EMPTY)),e}},{key:"refCount",value:function(){return me()(this)}}]),n}(z),_e=function(){var e=be.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}}(),ke=function(e){g(n,e);var t=k(n);function n(e,i){var r;return w(this,n),(r=t.call(this,e)).connectable=i,r}return C(n,[{key:"_error",value:function(e){this._unsubscribe(),r(i(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),r(i(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}(q);function we(){return new Z}function Se(){return function(e){return me()((t=we,function(e){var n;n="function"==typeof t?t:function(){return t};var i=Object.create(e,_e);return i.source=e,i.subjectFactory=n,i})(e));var t}}function Ce(e){return{toString:e}.toString()}var Ee="__parameters__";function Oe(e,t,n){return Ce((function(){var i=function(e){return function(){if(e){var t=e.apply(void 0,arguments);for(var n in t)this[n]=t[n]}}}(t);function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(this instanceof r)return i.apply(this,t),this;var o=E(r,t);return a.annotation=o,a;function a(e,t,n){for(var i=e.hasOwnProperty(Ee)?e[Ee]:Object.defineProperty(e,Ee,{value:[]})[Ee];i.length<=n;)i.push(null);return(i[n]=i[n]||[]).push(o),e}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r}))}var xe=Oe("Inject",(function(e){return{token:e}})),Te=Oe("Optional"),Me=Oe("Self"),Pe=Oe("SkipSelf"),Ie=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 Ae(e){for(var t in e)if(e[t]===Ae)return t;throw Error("Could not find renamed property on target object.")}function Re(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function De(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ne(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function Le(e){return Ve(e,e[Fe])||Ve(e,e[ze])}function Ve(e,t){return t&&t.token===e?t:null}function je(e){return e&&(e.hasOwnProperty(Be)||e.hasOwnProperty(We))?e[Be]:null}var Fe=Ae({"\u0275prov":Ae}),Be=Ae({"\u0275inj":Ae}),Ue=Ae({"\u0275provFallback":Ae}),ze=Ae({ngInjectableDef:Ae}),We=Ae({ngInjectorDef:Ae});function He(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(He).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 Ge(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var qe=Ae({__forward_ref__:Ae});function Ze(e){return e.__forward_ref__=Ze,e.toString=function(){return He(this())},e}function Qe(e){return Ye(e)?e():e}function Ye(e){return"function"==typeof e&&e.hasOwnProperty(qe)&&e.__forward_ref__===Ze}var Ke,Je="undefined"!=typeof globalThis&&globalThis,Xe="undefined"!=typeof window&&window,$e="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,et="undefined"!=typeof global&&global,tt=Je||et||Xe||$e,nt=Ae({"\u0275cmp":Ae}),it=Ae({"\u0275dir":Ae}),rt=Ae({"\u0275pipe":Ae}),ot=Ae({"\u0275mod":Ae}),at=Ae({"\u0275loc":Ae}),st=Ae({"\u0275fac":Ae}),ut=Ae({__NG_ELEMENT_ID__:Ae}),ct=function(){function e(t,n){w(this,e),this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=De({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}return C(e,[{key:"toString",value:function(){return"InjectionToken ".concat(this._desc)}}]),e}(),lt=new ct("INJECTOR",-1),ht={},dt=/\n/gm,ft="__source",pt=Ae({provide:String,useValue:Ae}),vt=void 0;function mt(e){var t=vt;return vt=e,t}function gt(e){var t=Ke;return Ke=e,t}function yt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ie.Default;if(void 0===vt)throw new Error("inject() must be called from an injection context");return null===vt?kt(e,void 0,t):vt.get(e,t&Ie.Optional?null:void 0,t)}function bt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ie.Default;return(Ke||yt)(Qe(e),t)}var _t=bt;function kt(e,t,n){var i=Le(e);if(i&&"root"==i.providedIn)return void 0===i.value?i.value=i.factory():i.value;if(n&Ie.Optional)return null;if(void 0!==t)return t;throw new Error("Injector: NOT_FOUND [".concat(He(e),"]"))}function wt(e){for(var t=[],n=0;n<e.length;n++){var i=Qe(e[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");for(var r=void 0,o=Ie.Default,a=0;a<i.length;a++){var s=i[a];s instanceof Te||"Optional"===s.ngMetadataName||s===Te?o|=Ie.Optional:s instanceof Pe||"SkipSelf"===s.ngMetadataName||s===Pe?o|=Ie.SkipSelf:s instanceof Me||"Self"===s.ngMetadataName||s===Me?o|=Ie.Self:r=s instanceof xe||s===xe?s.token:s}t.push(bt(r,o))}else t.push(bt(i))}return t}var St=function(){function e(){w(this,e)}return C(e,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ht;if(t===ht){var n=new Error("NullInjectorError: No provider for ".concat(He(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}();function Ct(e,t,n,i){var r=e.ngTempTokenPath;throw t[ft]&&r.unshift(t[ft]),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=He(t);if(Array.isArray(t))r=t.map(He).join(" -> ");else if("object"==typeof t){var o=[];for(var a in t)if(t.hasOwnProperty(a)){var s=t[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):He(s)))}r="{".concat(o.join(", "),"}")}return"".concat(n).concat(i?"("+i+")":"","[").concat(r,"]: ").concat(e.replace(dt,"\n "))}("\n"+e.message,r,n,i),e.ngTokenPath=r,e.ngTempTokenPath=null,e}var Et=function e(){w(this,e)},Ot=function e(){w(this,e)};function xt(e,t){e.forEach((function(e){return Array.isArray(e)?xt(e,t):t(e)}))}function Tt(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Mt(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Pt(e,t){for(var n=[],i=0;i<e;i++)n.push(t);return n}function It(e,t,n){var i=Rt(e,t);return 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 At(e,t){var n=Rt(e,t);if(n>=0)return e[1|n]}function Rt(e,t){return function(e,t,n){for(var i=0,r=e.length>>1;r!==i;){var o=i+(r-i>>1),a=e[o<<1];if(t===a)return o<<1;a>t?r=o:i=o+1}return~(r<<1)}(e,t)}var Dt=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),Nt=function(e){return e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),Lt={},Vt=[],jt=0;function Ft(e){return Ce((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===Dt.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Vt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Nt.Emulated,id:"c",styles:e.styles||Vt,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,r=e.features,o=e.pipes;return n.id+=jt++,n.inputs=Ht(e.inputs,t),n.outputs=Ht(e.outputs),r&&r.forEach((function(e){return e(n)})),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map(Bt)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(Ut)}:null,n}))}function Bt(e){return Zt(e)||function(e){return e[it]||null}(e)}function Ut(e){return function(e){return e[rt]||null}(e)}var zt={};function Wt(e){var t={type:e.type,bootstrap:e.bootstrap||Vt,declarations:e.declarations||Vt,imports:e.imports||Vt,exports:e.exports||Vt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&Ce((function(){zt[e.id]=e.type})),t}function Ht(e,t){if(null==e)return Lt;var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),n[r]=i,t&&(t[r]=o)}return n}var Gt=Ft;function qt(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Zt(e){return e[nt]||null}function Qt(e,t){return e.hasOwnProperty(st)?e[st]:null}function Yt(e,t){var n=e[ot]||null;if(!n&&!0===t)throw new Error("Type ".concat(He(e)," does not have '\u0275mod' property."));return n}var Kt=20,Jt=10;function Xt(e){return Array.isArray(e)&&"object"==typeof e[1]}function $t(e){return Array.isArray(e)&&!0===e[1]}function en(e){return 0!=(8&e.flags)}function tn(e){return 2==(2&e.flags)}function nn(e){return 1==(1&e.flags)}function rn(e){return null!==e.template}function on(e){return 0!=(512&e[2])}var an=function(){function e(t,n,i){w(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=i}return C(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function sn(){return un}function un(e){return e.type.prototype.ngOnChanges&&(e.setInput=ln),cn}function cn(){var e=hn(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===Lt)e.previous=t;else for(var i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function ln(e,t,n,i){var r=hn(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:Lt,current:null}),o=r.current||(r.current={}),a=r.previous,s=this.declaredInputs[n],u=a[s];o[s]=new an(u&&u.currentValue,t,a===Lt),e[i]=t}function hn(e){return e.__ngSimpleChanges__||null}sn.ngInherit=!0;var dn=void 0;function fn(){return void 0!==dn?dn:"undefined"!=typeof document?document:void 0}function pn(e){return!!e.listen}var vn={createRenderer:function(e,t){return fn()}};function mn(e){for(;Array.isArray(e);)e=e[0];return e}function gn(e,t){return mn(t[e+Kt])}function yn(e,t){return mn(t[e.index])}function bn(e,t){return e.data[t+Kt]}function _n(e,t){return e[t+Kt]}function kn(e,t){var n=t[e];return Xt(n)?n:n[0]}function wn(e){var t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Sn(e){return 4==(4&e[2])}function Cn(e){return 128==(128&e[2])}function En(e,t){return null===e||null==t?null:e[t]}function On(e){e[18]=0}function xn(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 Tn={lFrame:Kn(null),bindingsEnabled:!0,checkNoChangesMode:!1};function Mn(){return Tn.bindingsEnabled}function Pn(){return Tn.lFrame.lView}function In(){return Tn.lFrame.tView}function An(e){Tn.lFrame.contextLView=e}function Rn(){return Tn.lFrame.previousOrParentTNode}function Dn(e,t){Tn.lFrame.previousOrParentTNode=e,Tn.lFrame.isParent=t}function Nn(){return Tn.lFrame.isParent}function Ln(){Tn.lFrame.isParent=!1}function Vn(){return Tn.checkNoChangesMode}function jn(e){Tn.checkNoChangesMode=e}function Fn(){var e=Tn.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Bn(){return Tn.lFrame.bindingIndex++}function Un(e){var t=Tn.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function zn(e,t){var n=Tn.lFrame;n.bindingIndex=n.bindingRootIndex=e,Wn(t)}function Wn(e){Tn.lFrame.currentDirectiveIndex=e}function Hn(e){var t=Tn.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function Gn(){return Tn.lFrame.currentQueryIndex}function qn(e){Tn.lFrame.currentQueryIndex=e}function Zn(e,t){var n=Yn();Tn.lFrame=n,n.previousOrParentTNode=t,n.lView=e}function Qn(e,t){var n=Yn(),i=e[1];Tn.lFrame=n,n.previousOrParentTNode=t,n.lView=e,n.tView=i,n.contextLView=e,n.bindingIndex=i.bindingStartIndex}function Yn(){var e=Tn.lFrame,t=null===e?null:e.child;return null===t?Kn(e):t}function Kn(e){var t={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null};return null!==e&&(e.child=t),t}function Jn(){var e=Tn.lFrame;return Tn.lFrame=e.parent,e.previousOrParentTNode=null,e.lView=null,e}var Xn=Jn;function $n(){var e=Jn();e.isParent=!0,e.tView=null,e.selectedIndex=0,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function ei(e){return(Tn.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,Tn.lFrame.contextLView))[8]}function ti(){return Tn.lFrame.selectedIndex}function ni(e){Tn.lFrame.selectedIndex=e}function ii(){var e=Tn.lFrame;return bn(e.tView,e.selectedIndex)}function ri(e,t){for(var n=t.directiveStart,i=t.directiveEnd;n<i;n++){var r=e.data[n].type.prototype,o=r.ngAfterContentInit,a=r.ngAfterContentChecked,s=r.ngAfterViewInit,u=r.ngAfterViewChecked,c=r.ngOnDestroy;o&&(e.contentHooks||(e.contentHooks=[])).push(-n,o),a&&((e.contentHooks||(e.contentHooks=[])).push(n,a),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,a)),s&&(e.viewHooks||(e.viewHooks=[])).push(-n,s),u&&((e.viewHooks||(e.viewHooks=[])).push(n,u),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,u)),null!=c&&(e.destroyHooks||(e.destroyHooks=[])).push(n,c)}}function oi(e,t,n){ui(e,t,3,n)}function ai(e,t,n,i){(3&e[2])===n&&ui(e,t,n,i)}function si(e,t){var n=e[2];(3&n)===t&&(n&=2047,e[2]=n+=1)}function ui(e,t,n,i){for(var r=null!=i?i:-1,o=0,a=void 0!==i?65535&e[18]:0;a<t.length;a++)if("number"==typeof t[a+1]){if(o=t[a],null!=i&&o>=i)break}else t[a]<0&&(e[18]+=65536),(o<r||-1==r)&&(ci(e,n,t,a),e[18]=(4294901760&e[18])+a+2),a++}function ci(e,t,n,i){var r=n[i]<0,o=n[i+1],a=e[r?-n[i]:n[i]];r?e[2]>>11<e[18]>>16&&(3&e[2])===t&&(e[2]+=2048,o.call(a)):o.call(a)}var li=function e(t,n,i){w(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i};function hi(e,t,n){for(var i=pn(e),r=0;r<n.length;){var o=n[r];if("number"==typeof o){if(0!==o)break;r++;var a=n[r++],s=n[r++],u=n[r++];i?e.setAttribute(t,s,u,a):t.setAttributeNS(a,s,u)}else{var c=o,l=n[++r];fi(c)?i&&e.setProperty(t,c,l):i?e.setAttribute(t,c,l):t.setAttribute(c,l),r++}}return r}function di(e){return 3===e||4===e||6===e}function fi(e){return 64===e.charCodeAt(0)}function pi(e,t){if(null===t||0===t.length);else if(null===e||0===e.length)e=t.slice();else for(var n=-1,i=0;i<t.length;i++){var r=t[i];"number"==typeof r?n=r:0===n||vi(e,n,r,null,-1===n||2===n?t[++i]:null)}return e}function vi(e,t,n,i,r){var o=0,a=e.length;if(-1===t)a=-1;else for(;o<e.length;){var s=e[o++];if("number"==typeof s){if(s===t){a=-1;break}if(s>t){a=o-1;break}}}for(;o<e.length;){var u=e[o];if("number"==typeof u)break;if(u===n){if(null===i)return void(null!==r&&(e[o+1]=r));if(i===e[o+1])return void(e[o+2]=r)}o++,null!==i&&o++,null!==r&&o++}-1!==a&&(e.splice(a,0,t),o=a+1),e.splice(o++,0,n),null!==i&&e.splice(o++,0,i),null!==r&&e.splice(o++,0,r)}function mi(e){return-1!==e}function gi(e){return 32767&e}function yi(e){return e>>16}function bi(e,t){for(var n=yi(e),i=t;n>0;)i=i[15],n--;return i}function _i(e){return"string"==typeof e?e:null==e?"":""+e}function ki(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():_i(e)}var wi=function(){return("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(tt)}();function Si(e){return{name:"window",target:e.ownerDocument.defaultView}}function Ci(e){return{name:"document",target:e.ownerDocument}}function Ei(e){return{name:"body",target:e.ownerDocument.body}}function Oi(e){return e instanceof Function?e():e}var xi=!0;function Ti(e){var t=xi;return xi=e,t}var Mi=0;function Pi(e,t){var n=Ai(e,t);if(-1!==n)return n;var i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,Ii(i.data,e),Ii(t,null),Ii(i.blueprint,null));var r=Ri(e,t),o=e.injectorIndex;if(mi(r))for(var a=gi(r),s=bi(r,t),u=s[1].data,c=0;c<8;c++)t[o+c]=s[a+c]|u[a+c];return t[o+8]=r,o}function Ii(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ai(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null==t[e.injectorIndex+8]?-1:e.injectorIndex}function Ri(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=t[6],i=1;n&&-1===n.injectorIndex;)n=(t=t[15])?t[6]:null,i++;return n?n.injectorIndex|i<<16:-1}function Di(e,t,n){!function(e,t,n){var i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(ut)&&(i=n[ut]),null==i&&(i=n[ut]=Mi++);var r=255&i,o=1<<r,a=64&r,s=32&r,u=t.data;128&r?a?s?u[e+7]|=o:u[e+6]|=o:s?u[e+5]|=o:u[e+4]|=o:a?s?u[e+3]|=o:u[e+2]|=o:s?u[e+1]|=o:u[e]|=o}(e,t,n)}function Ni(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ie.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=Bi(n);if("function"==typeof o){Zn(t,e);try{var a=o();if(null!=a||i&Ie.Optional)return a;throw new Error("No provider for ".concat(ki(n),"!"))}finally{Xn()}}else if("number"==typeof o){if(-1===o)return new Wi(e,t);var s=null,u=Ai(e,t),c=-1,l=i&Ie.Host?t[16][6]:null;for((-1===u||i&Ie.SkipSelf)&&(c=-1===u?Ri(e,t):t[u+8],zi(i,!1)?(s=t[1],u=gi(c),t=bi(c,t)):u=-1);-1!==u;){c=t[u+8];var h=t[1];if(Ui(o,u,h.data)){var d=Vi(u,t,n,s,i,l);if(d!==Li)return d}zi(i,t[1].data[u+8]===l)&&Ui(o,u,t)?(s=h,u=gi(c),t=bi(c,t)):u=-1}}}if(i&Ie.Optional&&void 0===r&&(r=null),0==(i&(Ie.Self|Ie.Host))){var f=t[9],p=gt(void 0);try{return f?f.get(n,r,i&Ie.Optional):kt(n,r,i&Ie.Optional)}finally{gt(p)}}if(i&Ie.Optional)return r;throw new Error("NodeInjector: NOT_FOUND [".concat(ki(n),"]"))}var Li={};function Vi(e,t,n,i,r,o){var a=t[1],s=a.data[e+8],u=ji(s,a,n,null==i?tn(s)&&xi:i!=a&&3===s.type,r&Ie.Host&&o===s);return null!==u?Fi(t,a,u,s):Li}function ji(e,t,n,i,r){for(var o=e.providerIndexes,a=t.data,s=1048575&o,u=e.directiveStart,c=o>>20,l=r?s+c:e.directiveEnd,h=i?s:s+c;h<l;h++){var d=a[h];if(h<u&&n===d||h>=u&&d.type===n)return h}if(r){var f=a[u];if(f&&rn(f)&&f.type===n)return u}return null}function Fi(e,t,n,i){var r=e[n],o=t.data;if(r instanceof li){var a=r;if(a.resolving)throw new Error("Circular dep for ".concat(ki(o[n])));var s,u=Ti(a.canSeeViewProviders);a.resolving=!0,a.injectImpl&&(s=gt(a.injectImpl)),Zn(e,i);try{r=e[n]=a.factory(void 0,o,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){var i=t.type.prototype,r=i.ngOnInit,o=i.ngDoCheck;if(i.ngOnChanges){var a=un(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,r),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{a.injectImpl&&gt(s),Ti(u),a.resolving=!1,Xn()}}return r}function Bi(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(ut)?e[ut]:void 0;return"number"==typeof t&&t>0?255&t:t}function Ui(e,t,n){var i=64&e,r=32&e;return!!((128&e?i?r?n[t+7]:n[t+6]:r?n[t+5]:n[t+4]:i?r?n[t+3]:n[t+2]:r?n[t+1]:n[t])&1<<e)}function zi(e,t){return!(e&Ie.Self||e&Ie.Host&&t)}var Wi=function(){function e(t,n){w(this,e),this._tNode=t,this._lView=n}return C(e,[{key:"get",value:function(e,t){return Ni(this._tNode,this._lView,e,void 0,t)}}]),e}();function Hi(e){var t=e;if(Ye(e))return function(){var e=Hi(Qe(t));return e?e():null};var n=Qt(t);if(null===n){var i=je(t);n=i&&i.factory}return n||null}function Gi(e){return Ce((function(){for(var t=e.prototype.constructor,n=t[st]||Hi(t),i=Object.prototype,r=Object.getPrototypeOf(e.prototype).constructor;r&&r!==i;){var o=r[st]||Hi(r);if(o&&o!==n)return o;r=Object.getPrototypeOf(r)}return function(e){return new e}}))}function qi(e){return e.ngDebugContext}function Zi(e){return e.ngOriginalError}function Qi(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];e.error.apply(e,n)}var Yi=function(){function e(){w(this,e),this._console=console}return C(e,[{key:"handleError",value:function(e){var t=this._findOriginalError(e),n=this._findContext(e),i=function(e){return e.ngErrorLogger||Qi}(e);i(this._console,"ERROR",e),t&&i(this._console,"ORIGINAL ERROR",t),n&&i(this._console,"ERROR CONTEXT",n)}},{key:"_findContext",value:function(e){return e?qi(e)?qi(e):this._findContext(Zi(e)):null}},{key:"_findOriginalError",value:function(e){for(var t=Zi(e);t&&Zi(t);)t=Zi(t);return t}}]),e}(),Ki=function(){function e(t){w(this,e),this.changingThisBreaksApplicationSecurity=t}return C(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see http://g.co/ng/security#xss)"}}]),e}(),Ji=function(e){g(n,e);var t=k(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"getTypeName",value:function(){return"HTML"}}]),n}(Ki),Xi=function(e){g(n,e);var t=k(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"getTypeName",value:function(){return"Style"}}]),n}(Ki),$i=function(e){g(n,e);var t=k(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"getTypeName",value:function(){return"Script"}}]),n}(Ki),er=function(e){g(n,e);var t=k(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"getTypeName",value:function(){return"URL"}}]),n}(Ki),tr=function(e){g(n,e);var t=k(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),n}(Ki);function nr(e){return e instanceof Ki?e.changingThisBreaksApplicationSecurity:e}function ir(e,t){var n=rr(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error("Required a safe ".concat(t,", got a ").concat(n," (see http://g.co/ng/security#xss)"))}return n===t}function rr(e){return e instanceof Ki&&e.getTypeName()||null}var or=!0,ar=!1;function sr(){return ar=!0,or}var ur=function(){function e(){w(this,e)}return C(e,[{key:"getInertBodyElement",value:function(e){e="<body><remove></remove>"+e;try{var t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(n){return null}}}]),e}(),cr=function(){function e(t){if(w(this,e),this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);var i=this.inertDocument.createElement("body");n.appendChild(i)}}return C(e,[{key:"getInertBodyElement",value:function(e){var t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=e,t;var n=this.inertDocument.createElement("body");return n.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(e){for(var t=e.attributes,n=t.length-1;0<n;n--){var i=t.item(n).name;"xmlns:ns1"!==i&&0!==i.indexOf("ns1:")||e.removeAttribute(i)}for(var r=e.firstChild;r;)r.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(r),r=r.nextSibling}}]),e}(),lr=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,hr=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function dr(e){return(e=String(e)).match(lr)||e.match(hr)?e:(sr()&&console.warn("WARNING: sanitizing unsafe URL value ".concat(e," (see http://g.co/ng/security#xss)")),"unsafe:"+e)}function fr(e){var t,n={},i=v(e.split(","));try{for(i.s();!(t=i.n()).done;)n[t.value]=!0}catch(r){i.e(r)}finally{i.f()}return n}function pr(){for(var e={},t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];for(var r=0,o=n;r<o.length;r++){var a=o[r];for(var s in a)a.hasOwnProperty(s)&&(e[s]=!0)}return e}var vr,mr=fr("area,br,col,hr,img,wbr"),gr=fr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),yr=fr("rp,rt"),br=pr(yr,gr),_r=pr(mr,pr(gr,fr("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),pr(yr,fr("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),br),kr=fr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),wr=fr("srcset"),Sr=pr(kr,wr,fr("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),fr("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Cr=fr("script,style,template"),Er=function(){function e(){w(this,e),this.sanitizedSomething=!1,this.buf=[]}return C(e,[{key:"sanitizeChildren",value:function(e){for(var t=e.firstChild,n=!0;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);var i=this.checkClobberedElement(t,t.nextSibling);if(i){t=i;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}},{key:"startElement",value:function(e){var t,n=e.nodeName.toLowerCase();if(!_r.hasOwnProperty(n))return this.sanitizedSomething=!0,!Cr.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);for(var i=e.attributes,r=0;r<i.length;r++){var o=i.item(r),a=o.name,s=a.toLowerCase();if(Sr.hasOwnProperty(s)){var u=o.value;kr[s]&&(u=dr(u)),wr[s]&&(t=u,u=(t=String(t)).split(",").map((function(e){return dr(e.trim())})).join(", ")),this.buf.push(" ",a,'="',Tr(u),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();_r.hasOwnProperty(t)&&!mr.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}},{key:"chars",value:function(e){this.buf.push(Tr(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}(),Or=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,xr=/([^\#-~ |!])/g;function Tr(e){return e.replace(/&/g,"&amp;").replace(Or,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"})).replace(xr,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Mr(e,t){var n=null;try{vr=vr||function(e){return function(){try{return!!(new window.DOMParser).parseFromString("","text/html")}catch(e){return!1}}()?new ur:new cr(e)}(e);var i=t?String(t):"";n=vr.getInertBodyElement(i);var r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=n.innerHTML,n=vr.getInertBodyElement(i)}while(i!==o);var a=new Er,s=a.sanitizeChildren(Pr(n)||n);return sr()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),s}finally{if(n)for(var u=Pr(n)||n;u.firstChild;)u.removeChild(u.firstChild)}}function Pr(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Ir=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 Ar(e){var t=Dr();return t?t.sanitize(Ir.HTML,e)||"":ir(e,"HTML")?nr(e):Mr(fn(),_i(e))}function Rr(e){var t=Dr();return t?t.sanitize(Ir.URL,e)||"":ir(e,"URL")?nr(e):dr(_i(e))}function Dr(){var e=Pn();return e&&e[12]}function Nr(e,t){e.__ngContext__=t}function Lr(e,t,n){for(var i=e.length;;){var r=e.indexOf(t,n);if(-1===r)return r;if(0===r||e.charCodeAt(r-1)<=32){var o=t.length;if(r+o===i||e.charCodeAt(r+o)<=32)return r}n=r+1}}var Vr="ng-template";function jr(e,t,n){for(var i=0;i<e.length;){var r=e[i++];if(n&&"class"===r){if(-1!==Lr((r=e[i]).toLowerCase(),t,0))return!0}else if(1===r){for(;i<e.length&&"string"==typeof(r=e[i++]);)if(r.toLowerCase()===t)return!0;return!1}}return!1}function Fr(e){return 0===e.type&&e.tagName!==Vr}function Br(e,t,n){return t===(0!==e.type||n?e.tagName:Vr)}function Ur(e,t,n){for(var i=4,r=e.attrs||[],o=function(e){for(var t=0;t<e.length;t++)if(di(e[t]))return t;return e.length}(r),a=!1,s=0;s<t.length;s++){var u=t[s];if("number"!=typeof u){if(!a)if(4&i){if(i=2|1&i,""!==u&&!Br(e,u,n)||""===u&&1===t.length){if(zr(i))return!1;a=!0}}else{var c=8&i?u:t[++s];if(8&i&&null!==e.attrs){if(!jr(e.attrs,c,n)){if(zr(i))return!1;a=!0}continue}var l=Wr(8&i?"class":u,r,Fr(e),n);if(-1===l){if(zr(i))return!1;a=!0;continue}if(""!==c){var h;h=l>o?"":r[l+1].toLowerCase();var d=8&i?h:null;if(d&&-1!==Lr(d,c,0)||2&i&&c!==h){if(zr(i))return!1;a=!0}}}}else{if(!a&&!zr(i)&&!zr(u))return!1;if(a&&zr(u))continue;a=!1,i=u|1&i}}return zr(i)||a}function zr(e){return 0==(1&e)}function Wr(e,t,n,i){if(null===t)return-1;var r=0;if(i||!n){for(var o=!1;r<t.length;){var a=t[r];if(a===e)return r;if(3===a||6===a)o=!0;else{if(1===a||2===a){for(var s=t[++r];"string"==typeof s;)s=t[++r];continue}if(4===a)break;if(0===a){r+=4;continue}}r+=o?1:2}return-1}return function(e,t){var n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){var i=e[n];if("number"==typeof i)return-1;if(i===t)return n;n++}return-1}(t,e)}function Hr(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=0;i<t.length;i++)if(Ur(e,t[i],n))return!0;return!1}function Gr(e,t){e:for(var n=0;n<t.length;n++){var i=t[n];if(e.length===i.length){for(var r=0;r<e.length;r++)if(e[r]!==i[r])continue e;return!0}}return!1}function qr(e,t){return e?":not("+t.trim()+")":t}function Zr(e){for(var t=e[0],n=1,i=2,r="",o=!1;n<e.length;){var a=e[n];if("string"==typeof a)if(2&i){var s=e[++n];r+="["+a+(s.length>0?'="'+s+'"':"")+"]"}else 8&i?r+="."+a:4&i&&(r+=" "+a);else""===r||zr(a)||(t+=qr(o,r),r=""),i=a,o=o||!zr(i);n++}return""!==r&&(t+=qr(o,r)),t}var Qr={};function Yr(e){var t=e[3];return $t(t)?t[3]:t}function Kr(e){return Xr(e[13])}function Jr(e){return Xr(e[4])}function Xr(e){for(;null!==e&&!$t(e);)e=e[4];return e}function $r(e){eo(In(),Pn(),ti()+e,Vn())}function eo(e,t,n,i){if(!i)if(3==(3&t[2])){var r=e.preOrderCheckHooks;null!==r&&oi(t,r,n)}else{var o=e.preOrderHooks;null!==o&&ai(t,o,0,n)}ni(n)}function to(e,t){return e<<17|t<<2}function no(e){return e>>17&32767}function io(e){return 2|e}function ro(e){return(131068&e)>>2}function oo(e,t){return-131069&e|t<<2}function ao(e){return 1|e}function so(e,t){var n=e.contentQueries;if(null!==n)for(var i=0;i<n.length;i+=2){var r=n[i+1];if(-1!==r){var o=e.data[r];qn(n[i]),o.contentQueries(2,t[r],r)}}}function uo(e,t,n){return pn(t)?t.createElement(e,n):null===n?t.createElement(e):t.createElementNS(n,e)}function co(e,t,n,i,r,o,a,s,u,c){var l=t.blueprint.slice();return l[0]=r,l[2]=140|i,On(l),l[3]=l[15]=e,l[8]=n,l[10]=a||e&&e[10],l[11]=s||e&&e[11],l[12]=u||e&&e[12]||null,l[9]=c||e&&e[9]||null,l[6]=o,l[16]=2==t.type?e[16]:l,l}function lo(e,t,n,i,r,o){var a=n+Kt,s=e.data[a]||function(e,t,n,i,r,o){var a=Rn(),s=Nn(),u=s?a:a&&a.parent,c=e.data[n]=wo(0,u&&u!==t?u:null,i,n,r,o);return null===e.firstChild&&(e.firstChild=c),a&&(!s||null!=a.child||null===c.parent&&2!==a.type?s||(a.next=c):a.child=c),c}(e,t,a,i,r,o);return Dn(s,!0),s}function ho(e,t,n){Qn(t,t[6]);try{var i=e.viewQuery;null!==i&&Ho(1,i,n);var r=e.template;null!==r&&vo(e,t,r,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&so(e,t),e.staticViewQueries&&Ho(2,e.viewQuery,n);var o=e.components;null!==o&&function(e,t){for(var n=0;n<t.length;n++)Fo(e,t[n])}(t,o)}catch(a){throw e.firstCreatePass&&(e.incompleteFirstPass=!0),a}finally{t[2]&=-5,$n()}}function fo(e,t,n,i){var r=t[2];if(256!=(256&r)){Qn(t,t[6]);var o=Vn();try{On(t),Tn.lFrame.bindingIndex=e.bindingStartIndex,null!==n&&vo(e,t,n,2,i);var a=3==(3&r);if(!o)if(a){var s=e.preOrderCheckHooks;null!==s&&oi(t,s,null)}else{var u=e.preOrderHooks;null!==u&&ai(t,u,0,null),si(t,0)}if(function(e){for(var t=Kr(e);null!==t;t=Jr(t))if(t[2])for(var n=t[9],i=0;i<n.length;i++){var r=n[i];0==(1024&r[2])&&xn(r[3],1),r[2]|=1024}}(t),function(e){for(var t=Kr(e);null!==t;t=Jr(t))for(var n=Jt;n<t.length;n++){var i=t[n],r=i[1];Cn(i)&&fo(r,i,r.template,i[8])}}(t),null!==e.contentQueries&&so(e,t),!o)if(a){var c=e.contentCheckHooks;null!==c&&oi(t,c)}else{var l=e.contentHooks;null!==l&&ai(t,l,1),si(t,1)}!function(e,t){try{var n=e.expandoInstructions;if(null!==n)for(var i=e.expandoStartIndex,r=-1,o=0;o<n.length;o++){var a=n[o];"number"==typeof a?a<=0?(ni(0-a),r=i+=9+n[++o]):i+=a:(null!==a&&(zn(i,r),a(2,t[r])),r++)}}finally{ni(-1)}}(e,t);var h=e.components;null!==h&&function(e,t){for(var n=0;n<t.length;n++)jo(e,t[n])}(t,h);var d=e.viewQuery;if(null!==d&&Ho(2,d,i),!o)if(a){var f=e.viewCheckHooks;null!==f&&oi(t,f)}else{var p=e.viewHooks;null!==p&&ai(t,p,2),si(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),o||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,xn(t[3],-1))}finally{$n()}}}function po(e,t,n,i){var r=t[10],o=!Vn(),a=Sn(t);try{o&&!a&&r.begin&&r.begin(),a&&ho(e,t,i),fo(e,t,n,i)}finally{o&&!a&&r.end&&r.end()}}function vo(e,t,n,i,r){var o=ti();try{ni(-1),2&i&&t.length>Kt&&eo(e,t,0,Vn()),n(i,r)}finally{ni(o)}}function mo(e,t,n){if(en(t))for(var i=t.directiveEnd,r=t.directiveStart;r<i;r++){var o=e.data[r];o.contentQueries&&o.contentQueries(1,n[r],r)}}function go(e,t,n){Mn()&&(function(e,t,n,i){var r=n.directiveStart,o=n.directiveEnd;e.firstCreatePass||Pi(n,t),Nr(i,t);for(var a=n.initialInputs,s=r;s<o;s++){var u=e.data[s],c=rn(u);c&&Do(t,n,u);var l=Fi(t,e,s,n);Nr(l,t),null!==a&&No(0,s-r,l,u,0,a),c&&(kn(n.index,t)[8]=l)}}(e,t,n,yn(n,t)),128==(128&n.flags)&&function(e,t,n){var i=n.directiveStart,r=n.directiveEnd,o=e.expandoInstructions,a=e.firstCreatePass,s=n.index-Kt,u=Tn.lFrame.currentDirectiveIndex;try{ni(s);for(var c=i;c<r;c++){var l=e.data[c],h=t[c];Wn(c),null!==l.hostBindings||0!==l.hostVars||null!==l.hostAttrs?To(l,h):a&&o.push(null)}}finally{ni(-1),Wn(u)}}(e,t,n))}function yo(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:yn,i=t.localNames;if(null!==i)for(var r=t.index+1,o=0;o<i.length;o+=2){var a=i[o+1],s=-1===a?n(t,e):e[a];e[r++]=s}}function bo(e){var t=e.tView;return null===t||t.incompleteFirstPass?e.tView=_o(1,-1,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function _o(e,t,n,i,r,o,a,s,u,c){var l=Kt+i,h=l+r,d=function(e,t){for(var n=[],i=0;i<t;i++)n.push(i<e?null:Qr);return n}(l,h),f="function"==typeof c?c():c;return d[1]={type:e,id:t,blueprint:d,template:n,queries:null,viewQuery:s,node:null,data:d.slice().fill(null,l),bindingStartIndex:l,expandoStartIndex:h,expandoInstructions:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof a?a():a,firstChild:null,schemas:u,consts:f,incompleteFirstPass:!1}}function ko(e,t,n,i){var r=qo(t);r.push(n),e.firstCreatePass&&function(e){return e.cleanup||(e.cleanup=[])}(e).push(i,r.length-1)}function wo(e,t,n,i,r,o){return{type:n,index:i,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function So(e,t,n){for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(t,r):n[i]=[t,r]}return n}function Co(e,t,n,i,r,o,a,s){var u,c,l=yn(t,n),h=t.inputs;!s&&null!=h&&(u=h[i])?(Yo(e,n,u,i,r),tn(t)&&function(e,t){var n=kn(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3===t.type&&(i="class"===(c=i)?"className":"for"===c?"htmlFor":"formaction"===c?"formAction":"innerHtml"===c?"innerHTML":"readonly"===c?"readOnly":"tabindex"===c?"tabIndex":c,r=null!=a?a(r,t.tagName||"",i):r,pn(o)?o.setProperty(l,i,r):fi(i)||(l.setProperty?l.setProperty(i,r):l[i]=r))}function Eo(e,t,n,i){var r=!1;if(Mn()){var o=function(e,t,n){var i=e.directiveRegistry,r=null;if(i)for(var o=0;o<i.length;o++){var a=i[o];Hr(n,a.selectors,!1)&&(r||(r=[]),Di(Pi(n,t),e,a.type),rn(a)?(Po(e,n),r.unshift(a)):r.push(a))}return r}(e,t,n),a=null===i?null:{"":-1};if(null!==o){var s=0;r=!0,Ao(n,e.data.length,o.length);for(var u=0;u<o.length;u++){var c=o[u];c.providersResolver&&c.providersResolver(c)}Mo(e,n,o.length);for(var l=!1,h=!1,d=0;d<o.length;d++){var f=o[d];n.mergedAttrs=pi(n.mergedAttrs,f.hostAttrs),Ro(e,t,f),Io(e.data.length-1,f,a),null!==f.contentQueries&&(n.flags|=8),null===f.hostBindings&&null===f.hostAttrs&&0===f.hostVars||(n.flags|=128);var p=f.type.prototype;!l&&(p.ngOnChanges||p.ngOnInit||p.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index-Kt),l=!0),h||!p.ngOnChanges&&!p.ngDoCheck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index-Kt),h=!0),Oo(e,f),s+=f.hostVars}!function(e,t){for(var n=t.directiveEnd,i=e.data,r=t.attrs,o=[],a=null,s=null,u=t.directiveStart;u<n;u++){var c=i[u],l=c.inputs,h=null===r||Fr(t)?null:Lo(l,r);o.push(h),a=So(l,u,a),s=So(c.outputs,u,s)}null!==a&&(a.hasOwnProperty("class")&&(t.flags|=16),a.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=o,t.inputs=a,t.outputs=s}(e,n),xo(e,t,s)}a&&function(e,t,n){if(t)for(var i=e.localNames=[],r=0;r<t.length;r+=2){var o=n[t[r+1]];if(null==o)throw new Error("Export of name '".concat(t[r+1],"' not found!"));i.push(t[r],o)}}(n,i,a)}return n.mergedAttrs=pi(n.mergedAttrs,n.attrs),r}function Oo(e,t){var n=e.expandoInstructions;n.push(t.hostBindings),0!==t.hostVars&&n.push(t.hostVars)}function xo(e,t,n){for(var i=0;i<n;i++)t.push(Qr),e.blueprint.push(Qr),e.data.push(null)}function To(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Mo(e,t,n){var i=Kt-t.index,r=e.data.length-(1048575&t.providerIndexes);(e.expandoInstructions||(e.expandoInstructions=[])).push(i,r,n)}function Po(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Io(e,t,n){if(n){if(t.exportAs)for(var i=0;i<t.exportAs.length;i++)n[t.exportAs[i]]=e;rn(t)&&(n[""]=e)}}function Ao(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Ro(e,t,n){e.data.push(n);var i=n.factory||(n.factory=Qt(n.type)),r=new li(i,rn(n),null);e.blueprint.push(r),t.push(r)}function Do(e,t,n){var i=yn(t,e),r=bo(n),o=e[10],a=Bo(e,co(e,r,null,n.onPush?64:16,i,t,o,o.createRenderer(i,n)));e[t.index]=a}function No(e,t,n,i,r,o){var a=o[t];if(null!==a)for(var s=i.setInput,u=0;u<a.length;){var c=a[u++],l=a[u++],h=a[u++];null!==s?i.setInput(n,h,c,l):n[l]=h}}function Lo(e,t){for(var n=null,i=0;i<t.length;){var r=t[i];if(0!==r)if(5!==r){if("number"==typeof r)break;e.hasOwnProperty(r)&&(null===n&&(n=[]),n.push(r,e[r],t[i+1])),i+=2}else i+=2;else i+=4}return n}function Vo(e,t,n,i){return new Array(e,!0,!1,t,null,0,i,n,null,null)}function jo(e,t){var n=kn(t,e);if(Cn(n)){var i=n[1];80&n[2]?fo(i,n,i.template,n[8]):n[5]>0&&function e(t){for(var n=Kr(t);null!==n;n=Jr(n))for(var i=Jt;i<n.length;i++){var r=n[i];if(1024&r[2]){var o=r[1];fo(o,r,o.template,r[8])}else r[5]>0&&e(r)}var a=t[1].components;if(null!==a)for(var s=0;s<a.length;s++){var u=kn(a[s],t);Cn(u)&&u[5]>0&&e(u)}}(n)}}function Fo(e,t){var n=kn(t,e),i=n[1];!function(e,t){for(var n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(i,n),ho(i,n,n[8])}function Bo(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function Uo(e){for(;e;){e[2]|=64;var t=Yr(e);if(on(e)&&!t)return e;e=t}return null}function zo(e,t,n){var i=t[10];i.begin&&i.begin();try{fo(e,t,e.template,n)}catch(r){throw Qo(t,r),r}finally{i.end&&i.end()}}function Wo(e){!function(e){for(var t=0;t<e.components.length;t++){var n=e.components[t],i=wn(n),r=i[1];po(r,i,r.template,n)}}(e[8])}function Ho(e,t,n){qn(0),t(e,n)}var Go=function(){return Promise.resolve(null)}();function qo(e){return e[7]||(e[7]=[])}function Zo(e,t,n){return(null===e||rn(e))&&(n=function(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function Qo(e,t){var n=e[9],i=n?n.get(Yi,null):null;i&&i.handleError(t)}function Yo(e,t,n,i,r){for(var o=0;o<n.length;){var a=n[o++],s=n[o++],u=t[a],c=e.data[a];null!==c.setInput?c.setInput(u,r,i,s):u[s]=r}}function Ko(e,t){var n=t[3];return-1===e.index?$t(n)?n:null:n}function Jo(e,t){var n=Ko(e,t);return n?la(t[11],n[7]):null}function Xo(e,t,n,i,r){if(null!=i){var o,a=!1;$t(i)?o=i:Xt(i)&&(a=!0,i=i[0]);var s=mn(i);0===e&&null!==n?null==r?ua(t,n,s):sa(t,n,s,r||null):1===e&&null!==n?sa(t,n,s,r||null):2===e?function(e,t,n){var i=la(e,t);i&&function(e,t,n,i){pn(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}(t,s,a):3===e&&t.destroyNode(s),null!=o&&function(e,t,n,i,r){var o=n[7];o!==mn(n)&&Xo(t,e,i,o,r);for(var a=Jt;a<n.length;a++){var s=n[a];va(s[1],s,e,t,i,o)}}(t,e,o,n,r)}}function $o(e,t){return pn(t)?t.createText(e):t.createTextNode(e)}function ea(e,t,n,i){var r=Jo(e.node,t);r&&va(e,t,t[11],n?1:2,r,i)}function ta(e,t){var n=e[9],i=n.indexOf(t),r=t[3];1024&t[2]&&(t[2]&=-1025,xn(r,-1)),n.splice(i,1)}function na(e,t){if(!(e.length<=Jt)){var n=Jt+t,i=e[n];if(i){var r=i[17];null!==r&&r!==e&&ta(r,i),t>0&&(e[n-1][4]=i[4]);var o=Mt(e,Jt+t);ea(i[1],i,!1,null);var a=o[19];null!==a&&a.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}}function ia(e,t){if(!(256&t[2])){var n=t[11];pn(n)&&n.destroyNode&&va(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return oa(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)&&oa(t[1],t),t=ra(t,e);null===t&&(t=e),Xt(t)&&oa(t[1],t),n=t&&t[4]}t=n}}(t)}}function ra(e,t){var n;return Xt(e)&&(n=e[6])&&2===n.type?Ko(n,e):e[3]===t?null:e[3]}function oa(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<n.length;i+=2){var r=t[n[i]];if(!(r instanceof li)){var o=n[i+1];if(Array.isArray(o))for(var a=0;a<o.length;a+=2)o[a+1].call(r[o[a]]);else o.call(r)}}}(e,t),function(e,t){var n=e.cleanup;if(null!==n){for(var i=t[7],r=0;r<n.length-1;r+=2)if("string"==typeof n[r]){var o=n[r+1],a="function"==typeof o?o(t):mn(t[o]),s=n[r+3];"boolean"==typeof s?a.removeEventListener(n[r],i[n[r+2]],s):s>=0?i[s]():i[-s].unsubscribe(),r+=2}else n[r].call(i[n[r+1]]);t[7]=null}}(e,t);var n=t[6];n&&3===n.type&&pn(t[11])&&t[11].destroy();var i=t[17];if(null!==i&&$t(t[3])){i!==t[3]&&ta(i,t);var r=t[19];null!==r&&r.detachView(e)}}}function aa(e,t,n){for(var i=t.parent;null!=i&&(4===i.type||5===i.type);)i=(t=i).parent;if(null==i){var r=n[6];return 2===r.type?Jo(r,n):n[0]}if(t&&5===t.type&&4&t.flags)return yn(t,n).parentNode;if(2&i.flags){var o=e.data,a=o[o[i.index].directiveStart].encapsulation;if(a!==Nt.ShadowDom&&a!==Nt.Native)return null}return yn(i,n)}function sa(e,t,n,i){pn(e)?e.insertBefore(t,n,i):t.insertBefore(n,i,!0)}function ua(e,t,n){pn(e)?e.appendChild(t,n):t.appendChild(n)}function ca(e,t,n,i){null!==i?sa(e,t,n,i):ua(e,t,n)}function la(e,t){return pn(e)?e.parentNode(t):t.parentNode}function ha(e,t){if(2===e.type){var n=Ko(e,t);return null===n?null:fa(n.indexOf(t,Jt)-Jt,n)}return 4===e.type||5===e.type?yn(e,t):null}function da(e,t,n,i){var r=aa(e,i,t);if(null!=r){var o=t[11],a=ha(i.parent||t[6],t);if(Array.isArray(n))for(var s=0;s<n.length;s++)ca(o,r,n[s],a);else ca(o,r,n,a)}}function fa(e,t){var n=Jt+e+1;if(n<t.length){var i=t[n],r=i[1].firstChild;if(null!==r)return function e(t,n){if(null!==n){var i=n.type;if(3===i)return yn(n,t);if(0===i)return fa(-1,t[n.index]);if(4===i||5===i){var r=n.child;if(null!==r)return e(t,r);var o=t[n.index];return $t(o)?fa(-1,o):mn(o)}var a=t[16],s=a[6],u=Yr(a),c=s.projection[n.projection];return null!=c?e(u,c):e(t,n.next)}return null}(i,r)}return t[7]}function pa(e,t,n,i,r,o,a){for(;null!=n;){var s=i[n.index],u=n.type;a&&0===t&&(s&&Nr(mn(s),i),n.flags|=4),64!=(64&n.flags)&&(4===u||5===u?(pa(e,t,n.child,i,r,o,!1),Xo(t,e,r,s,o)):1===u?ga(e,t,i,n,r,o):Xo(t,e,r,s,o)),n=a?n.projectionNext:n.next}}function va(e,t,n,i,r,o){pa(n,i,e.node.child,t,r,o,!1)}function ma(e,t,n){ga(t[11],0,t,n,aa(e,n,t),ha(n.parent||t[6],t))}function ga(e,t,n,i,r,o){var a=n[16],s=a[6].projection[i.projection];if(Array.isArray(s))for(var u=0;u<s.length;u++)Xo(t,e,r,s[u],o);else pa(e,t,s,a[3],r,o,!0)}function ya(e,t,n){pn(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function ba(e,t,n){pn(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}var _a,ka,wa,Sa=function(){function e(t,n){w(this,e),this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._viewContainerRef=null}return C(e,[{key:"destroy",value:function(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){var e=this._viewContainerRef.indexOf(this);e>-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}ia(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){ko(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){Uo(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){zo(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){jn(!0);try{zo(e,t,n)}finally{jn(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,va(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}},{key:"rootNodes",get:function(){var e=this._lView;return null==e[0]?function e(t,n,i,r){for(var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==i;){var a=n[i.index];if(null!==a&&r.push(mn(a)),$t(a))for(var s=Jt;s<a.length;s++){var u=a[s],c=u[1].firstChild;null!==c&&e(u[1],u,c,r)}var l=i.type;if(4===l||5===l)e(t,n,i.child,r);else if(1===l){var h=n[16],f=h[6],p=f.projection[i.projection];if(Array.isArray(p))r.push.apply(r,d(p));else{var v=Yr(h);e(v[1],v,p,r,!0)}}i=o?i.projectionNext:i.next}return r}(e[1],e,e[6].child,[]):[]}},{key:"context",get:function(){return this._lView[8]}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}}]),e}(),Ca=function(e){g(n,e);var t=k(n);function n(e){var i;return w(this,n),(i=t.call(this,e))._view=e,i}return C(n,[{key:"detectChanges",value:function(){Wo(this._view)}},{key:"checkNoChanges",value:function(){!function(e){jn(!0);try{Wo(e)}finally{jn(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(Sa);function Ea(e,t,n){return _a||(_a=function(e){g(n,e);var t=k(n);function n(){return w(this,n),t.apply(this,arguments)}return n}(e)),new _a(yn(t,n))}function Oa(e,t,n,i){return ka||(ka=function(e){g(n,e);var t=k(n);function n(e,i,r){var o;return w(this,n),(o=t.call(this))._declarationView=e,o._declarationTContainer=i,o.elementRef=r,o}return C(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=co(this._declarationView,t,e,16,null,t.node);n[17]=this._declarationView[this._declarationTContainer.index];var i=this._declarationView[19];return null!==i&&(n[19]=i.createEmbeddedView(t)),ho(t,n,e),new Sa(n)}}]),n}(e)),0===n.type?new ka(i,n,Ea(t,n,i)):null}function xa(e,t,n,i){var r;wa||(wa=function(e){g(i,e);var n=k(i);function i(e,t,r){var o;return w(this,i),(o=n.call(this))._lContainer=e,o._hostTNode=t,o._hostView=r,o}return C(i,[{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){return null!==this._lContainer[8]&&this._lContainer[8][e]||null}},{key:"createEmbeddedView",value:function(e,t,n){var i=e.createEmbeddedView(t||{});return this.insert(i,n),i}},{key:"createComponent",value:function(e,t,n,i,r){var o=n||this.parentInjector;if(!r&&null==e.ngModule&&o){var a=o.get(Et,null);a&&(r=a)}var s=e.create(o,i,void 0,r);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var n=e._lView,i=n[1];if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),$t(n[3])){var r=this.indexOf(e);if(-1!==r)this.detach(r);else{var o=n[3],a=new wa(o,o[6],o[3]);a.detach(a.indexOf(e))}}var s=this._adjustIndex(t);return function(e,t,n,i){var r=Jt+i,o=n.length;i>0&&(n[r-1][4]=t),i<o-Jt?(t[4]=n[r],Tt(n,Jt+i,t)):(n.push(t),t[4]=null),t[3]=n;var a=t[17];null!==a&&n!==a&&function(e,t){var n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(a,t);var s=t[19];null!==s&&s.insertView(e),t[2]|=128}(i,n,this._lContainer,s),ea(i,n,!0,fa(s,this._lContainer)),e.attachToViewContainerRef(this),Tt(this._lContainer[8],s,e),e}},{key:"move",value:function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(e,t)}},{key:"indexOf",value:function(e){var t=this._lContainer[8];return null!==t?t.indexOf(e):-1}},{key:"remove",value:function(e){this.allocateContainerIfNeeded();var t=this._adjustIndex(e,-1),n=na(this._lContainer,t);n&&(Mt(this._lContainer[8],t),ia(n[1],n))}},{key:"detach",value:function(e){this.allocateContainerIfNeeded();var t=this._adjustIndex(e,-1),n=na(this._lContainer,t);return n&&null!=Mt(this._lContainer[8],t)?new Sa(n):null}},{key:"_adjustIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}},{key:"allocateContainerIfNeeded",value:function(){null===this._lContainer[8]&&(this._lContainer[8]=[])}},{key:"element",get:function(){return Ea(t,this._hostTNode,this._hostView)}},{key:"injector",get:function(){return new Wi(this._hostTNode,this._hostView)}},{key:"parentInjector",get:function(){var e=Ri(this._hostTNode,this._hostView),t=bi(e,this._hostView),n=function(e,t,n){if(n.parent&&-1!==n.parent.injectorIndex){for(var i=n.parent.injectorIndex,r=n.parent;null!=r.parent&&i==r.parent.injectorIndex;)r=r.parent;return r}for(var o=yi(e),a=t,s=t[6];o>1;)s=(a=a[15])[6],o--;return s}(e,this._hostView,this._hostTNode);return mi(e)&&null!=n?new Wi(n,t):new Wi(null,this._hostView)}},{key:"length",get:function(){return this._lContainer.length-Jt}}]),i}(e));var o=i[n.index];if($t(o))r=o;else{var a;if(4===n.type)a=mn(o);else if(a=i[11].createComment(""),on(i)){var s=i[11],u=yn(n,i);sa(s,la(s,u),a,function(e,t){return pn(e)?e.nextSibling(t):t.nextSibling}(s,u))}else da(i[1],i,a,n);i[n.index]=r=Vo(o,i,a,n),Bo(i,r)}return new wa(r,n,i)}function Ta(e,t,n){if(!n&&tn(e)){var i=kn(e.index,t);return new Sa(i,i)}return 3===e.type||0===e.type||4===e.type||5===e.type?new Sa(t[16],t):null}var Ma=function(){var e=function e(){w(this,e)};return e.__NG_ELEMENT_ID__=function(){return Pa()},e}(),Pa=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Ta(Rn(),Pn(),e)},Ia=Function,Aa=new ct("Set Injector scope."),Ra={},Da={},Na=[],La=void 0;function Va(){return void 0===La&&(La=new St),La}function ja(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 Fa(e,n,t||Va(),i)}var Fa=function(){function e(t,n,i){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;w(this,e),this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&xt(n,(function(e){return r.processProvider(e,t,n)})),xt([t],(function(e){return r.processInjectorType(e,[],a)})),this.records.set(lt,za(void 0,this));var s=this.records.get(Aa);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof t?null:He(t))}return C(e,[{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach((function(e){return e.ngOnDestroy()}))}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ht,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ie.Default;this.assertNotDestroyed();var i=mt(this);try{if(!(n&Ie.SkipSelf)){var r=this.records.get(e);if(void 0===r){var o=Ga(e)&&Le(e);r=o&&this.injectableDefInScope(o)?za(Ba(e),Ra):null,this.records.set(e,r)}if(null!=r)return this.hydrate(e,r)}var a=n&Ie.Self?Va():this.parent;return a.get(e,t=n&Ie.Optional&&t===ht?null:t)}catch(u){if("NullInjectorError"===u.name){var s=u.ngTempTokenPath=u.ngTempTokenPath||[];if(s.unshift(He(e)),i)throw u;return Ct(u,e,"R3InjectorError",this.source)}throw u}finally{mt(i)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach((function(t){return e.get(t)}))}},{key:"toString",value:function(){var e=[];return this.records.forEach((function(t,n){return e.push(He(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=Qe(e)))return!1;var r=je(e),o=null==r&&e.ngModule||void 0,a=void 0===o?e:o,s=-1!==n.indexOf(a);if(void 0!==o&&(r=je(o)),null==r)return!1;if(null!=r.imports&&!s){var u;n.push(a);try{xt(r.imports,(function(e){i.processInjectorType(e,t,n)&&(void 0===u&&(u=[]),u.push(e))}))}finally{}if(void 0!==u)for(var c=function(e){var t=u[e],n=t.ngModule,r=t.providers;xt(r,(function(e){return i.processProvider(e,n,r||Na)}))},l=0;l<u.length;l++)c(l)}this.injectorDefTypes.add(a),this.records.set(a,za(r.factory,Ra));var h=r.providers;if(null!=h&&!s){var d=e;xt(h,(function(e){return i.processProvider(e,d,h)}))}return void 0!==o&&void 0!==e.providers}},{key:"processProvider",value:function(e,t,n){var i=Ha(e=Qe(e))?e:Qe(e&&e.provide),r=function(e,t,n){return Wa(e)?za(void 0,e.useValue):za(Ua(e),Ra)}(e);if(Ha(e)||!0!==e.multi)this.records.get(i);else{var o=this.records.get(i);o||((o=za(void 0,Ra,!0)).factory=function(){return wt(o.multi)},this.records.set(i,o)),i=e,o.multi.push(e)}this.records.set(i,r)}},{key:"hydrate",value:function(e,t){var n;return t.value===Ra&&(t.value=Da,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}},{key:"injectableDefInScope",value:function(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();function Ba(e){var t=Le(e),n=null!==t?t.factory:Qt(e);if(null!==n)return n;var i=je(e);if(null!==i)return i.factory;if(e instanceof ct)throw new Error("Token ".concat(He(e)," is missing a \u0275prov definition."));if(e instanceof Function)return function(e){var t=e.length;if(t>0){var n=Pt(t,"?");throw new Error("Can't resolve all parameters for ".concat(He(e),": (").concat(n.join(", "),")."))}var i=function(e){var t=e&&(e[Fe]||e[ze]||e[Ue]&&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.\n')+'This 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 Ua(e,t,n){var i,r=void 0;if(Ha(e)){var o=Qe(e);return Qt(o)||Ba(o)}if(Wa(e))r=function(){return Qe(e.useValue)};else if((i=e)&&i.useFactory)r=function(){return e.useFactory.apply(e,d(wt(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))r=function(){return bt(Qe(e.useExisting))};else{var a=Qe(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Qt(a)||Ba(a);r=function(){return E(a,d(wt(e.deps)))}}return r}function za(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function Wa(e){return null!==e&&"object"==typeof e&&pt in e}function Ha(e){return"function"==typeof e}function Ga(e){return"function"==typeof e||"object"==typeof e&&e instanceof ct}var qa=function(e,t,n){return function(e){var t=ja(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,arguments.length>3?arguments[3]:void 0);return t._resolveInjectorDefTypes(),t}({name:n},t,e,n)},Za=function(){var e=function(){function e(){w(this,e)}return C(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?qa(e,t,""):qa(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=ht,e.NULL=new St,e.\u0275prov=De({token:e,providedIn:"any",factory:function(){return bt(lt)}}),e.__NG_ELEMENT_ID__=-1,e}(),Qa=new ct("AnalyzeForEntryComponents");function Ya(e,t,n){var i=n?e.styles:null,r=n?e.classes:null,o=0;if(null!==t)for(var a=0;a<t.length;a++){var s=t[a];"number"==typeof s?o=s:1==o?r=Ge(r,s):2==o&&(i=Ge(i,s+": "+t[++a]+";"))}n?e.styles=i:e.stylesWithoutHost=i,n?e.classes=r:e.classesWithoutHost=r}var Ka=null;function Ja(){if(!Ka){var e=tt.Symbol;if(e&&e.iterator)Ka=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n<t.length;++n){var i=t[n];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(Ka=i)}}return Ka}var Xa=function(){function e(t){w(this,e),this.wrapped=t}return C(e,null,[{key:"wrap",value:function(t){return new e(t)}},{key:"unwrap",value:function(t){return e.isWrapped(t)?t.wrapped:t}},{key:"isWrapped",value:function(t){return t instanceof e}}]),e}();function $a(e){return!!es(e)&&(Array.isArray(e)||!(e instanceof Map)&&Ja()in e)}function es(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function ts(e,t,n){return e[t]=n}function ns(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function is(e,t,n,i){var r=Pn();return ns(r,Bn(),t)&&(In(),function(e,t,n,i,r,o){var a=yn(e,t),s=t[11];if(null==i)pn(s)?s.removeAttribute(a,n,o):a.removeAttribute(n);else{var u=null==r?_i(i):r(i,e.tagName||"",n);pn(s)?s.setAttribute(a,n,u,o):o?a.setAttributeNS(o,n,u):a.setAttribute(n,u)}}(ii(),r,e,t,n,i)),is}function rs(e,t,n,i){return ns(e,Bn(),n)?t+_i(n)+i:Qr}function os(e,t,n,i,r,o,a,s){var u=Pn(),c=In(),l=e+Kt,h=c.firstCreatePass?function(e,t,n,i,r,o,a,s,u){var c=t.consts,l=lo(t,n[6],e,0,a||null,En(c,s));Eo(t,n,l,En(c,u)),ri(t,l);var h=l.tViews=_o(2,-1,i,r,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c),d=wo(0,null,2,-1,null,null);return d.injectorIndex=l.injectorIndex,h.node=d,null!==t.queries&&(t.queries.template(t,l),h.queries=t.queries.embeddedTView(l)),l}(e,c,u,t,n,i,r,o,a):c.data[l];Dn(h,!1);var d=u[11].createComment("");da(c,u,d,h),Nr(d,u),Bo(u,u[l]=Vo(d,u,d,h)),nn(h)&&go(c,u,h),null!=a&&yo(u,h,s)}function as(e){return _n(Tn.lFrame.contextLView,e)}function ss(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ie.Default,n=Pn();if(null==n)return bt(e,t);var i=Rn();return Ni(i,n,Qe(e),t)}function us(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;var n=e.attrs;if(n)for(var i=n.length,r=0;r<i;){var o=n[r];if(di(o))break;if(0===o)r+=2;else if("number"==typeof o)for(r++;r<i&&"string"==typeof n[r];)r++;else{if(o===t)return n[r+1];r+=2}}return null}(Rn(),e)}function cs(e,t,n){var i=Pn();return ns(i,Bn(),t)&&Co(In(),ii(),i,e,t,i[11],n,!1),cs}function ls(e,t,n,i,r){var o=r?"class":"style";Yo(e,n,t.inputs[o],o,i)}function hs(e,t,n,i){var r=Pn(),o=In(),a=Kt+e,s=r[11],u=r[a]=uo(t,s,Tn.lFrame.currentNamespace),c=o.firstCreatePass?function(e,t,n,i,r,o,a){var s=t.consts,u=En(s,o),c=lo(t,n[6],e,3,r,u);return Eo(t,n,c,En(s,a)),null!==c.attrs&&Ya(c,c.attrs,!1),null!==c.mergedAttrs&&Ya(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(e,o,r,0,t,n,i):o.data[a];Dn(c,!0);var l=c.mergedAttrs;null!==l&&hi(s,u,l);var h=c.classes;null!==h&&ba(s,u,h);var d=c.styles;null!==d&&ya(s,u,d),da(o,r,u,c),0===Tn.lFrame.elementDepthCount&&Nr(u,r),Tn.lFrame.elementDepthCount++,nn(c)&&(go(o,r,c),mo(o,c,r)),null!==i&&yo(r,c)}function ds(){var e=Rn();Nn()?Ln():Dn(e=e.parent,!1);var t=e;Tn.lFrame.elementDepthCount--;var n=In();n.firstCreatePass&&(ri(n,e),en(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&ls(n,t,Pn(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&ls(n,t,Pn(),t.stylesWithoutHost,!1)}function fs(e,t,n,i){hs(e,t,n,i),ds()}function ps(e,t,n){var i=Pn(),r=In(),o=e+Kt,a=r.firstCreatePass?function(e,t,n,i,r){var o=t.consts,a=En(o,i),s=lo(t,n[6],e,4,"ng-container",a);return null!==a&&Ya(s,a,!0),Eo(t,n,s,En(o,r)),null!==t.queries&&t.queries.elementStart(t,s),s}(e,r,i,t,n):r.data[o];Dn(a,!0);var s=i[o]=i[11].createComment("");da(r,i,s,a),Nr(s,i),nn(a)&&(go(r,i,a),mo(r,a,i)),null!=n&&yo(i,a)}function vs(){var e=Rn(),t=In();Nn()?Ln():Dn(e=e.parent,!1),t.firstCreatePass&&(ri(t,e),en(e)&&t.queries.elementEnd(e))}function ms(){return Pn()}function gs(e){return!!e&&"function"==typeof e.then}function ys(e){return!!e&&"function"==typeof e.subscribe}function bs(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=Pn(),o=In(),a=Rn();return ws(o,r,r[11],a,e,t,n,i),bs}function _s(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=Rn(),o=Pn(),a=In(),s=Hn(a.data),u=Zo(s,r,o);return ws(a,o,u,r,e,t,n,i),_s}function ks(e,t,n,i){var r=e.cleanup;if(null!=r)for(var o=0;o<r.length-1;o+=2){var a=r[o];if(a===n&&r[o+1]===i){var s=t[7],u=r[o+2];return s.length>u?s[u]:null}"string"==typeof a&&(o+=2)}return null}function ws(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,u=nn(i),c=e.firstCreatePass,l=c&&(e.cleanup||(e.cleanup=[])),h=qo(t),d=!0;if(3===i.type){var f=yn(i,t),p=s?s(f):Lt,v=p.target||f,m=h.length,g=s?function(e){return s(mn(e[i.index])).target}:i.index;if(pn(n)){var y=null;if(!s&&u&&(y=ks(e,t,r,i.index)),null!==y){var b=y.__ngLastListenerFn__||y;b.__ngNextListenerFn__=o,y.__ngLastListenerFn__=o,d=!1}else{o=Cs(i,t,o,!1);var _=n.listen(p.name||v,r,o);h.push(o,_),l&&l.push(r,g,m,m+1)}}else o=Cs(i,t,o,!0),v.addEventListener(r,o,a),h.push(o),l&&l.push(r,g,m,a)}var k,w=i.outputs;if(d&&null!==w&&(k=w[r])){var S=k.length;if(S)for(var C=0;C<S;C+=2){var E=k[C],O=k[C+1],x=t[E],T=x[O],M=T.subscribe(o),P=h.length;h.push(o,M),l&&l.push(r,i.index,P,-(P+1))}}}function Ss(e,t,n){try{return!1!==t(n)}catch(i){return Qo(e,i),!1}}function Cs(e,t,n,i){return function r(o){if(o===Function)return n;var a=2&e.flags?kn(e.index,t):t;0==(32&t[2])&&Uo(a);for(var s=Ss(t,n,o),u=r.__ngNextListenerFn__;u;)s=Ss(t,u,o)&&s,u=u.__ngNextListenerFn__;return i&&!1===s&&(o.preventDefault(),o.returnValue=!1),s}}function Es(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return ei(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;r<t.length;r++){var o=t[r];if("*"!==o){if(null===i?Hr(e,o,!0):Gr(i,o))return r}else n=r}return n}function xs(e){var t=Pn()[16][6];if(!t.projection)for(var n=t.projection=Pt(e?e.length:1,null),i=n.slice(),r=t.child;null!==r;){var o=e?Os(r,e):0;null!==o&&(i[o]?i[o].projectionNext=r:n[o]=r,i[o]=r),r=r.next}}function Ts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=Pn(),r=In(),o=lo(r,i[6],e,1,null,n||null);null===o.projection&&(o.projection=t),Ln(),ma(r,i,o)}function Ms(e,t,n){return Ps(e,"",t,"",n),Ms}function Ps(e,t,n,i,r){var o=Pn(),a=rs(o,t,n,i);return a!==Qr&&Co(In(),ii(),o,e,a,o[11],r,!1),Ps}var Is=[];function As(e,t,n,i,r){for(var o=e[n+1],a=null===t,s=i?no(o):ro(o),u=!1;0!==s&&(!1===u||a);){var c=e[s+1];Rs(e[s],t)&&(u=!0,e[s+1]=i?ao(c):io(c)),s=i?no(c):ro(c)}u&&(e[n+1]=i?io(o):ao(o))}function Rs(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Rt(e,t)>=0}var Ds={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ns(e){return e.substring(Ds.key,Ds.keyEnd)}function Ls(e,t){var n=Ds.textEnd;return n===t?-1:(t=Ds.keyEnd=function(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,Ds.key=t,n),Vs(e,t,n))}function Vs(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function js(e,t,n){return Us(e,t,n,!1),js}function Fs(e,t){return Us(e,t,null,!0),Fs}function Bs(e,t){for(var n=function(e){return function(e){Ds.key=0,Ds.keyEnd=0,Ds.value=0,Ds.valueEnd=0,Ds.textEnd=e.length}(e),Ls(e,Vs(e,0,Ds.textEnd))}(t);n>=0;n=Ls(t,n))It(e,Ns(t),!0)}function Us(e,t,n,i){var r=Pn(),o=In(),a=Un(2);o.firstUpdatePass&&Ws(o,e,a,i),t!==Qr&&ns(r,a,t)&&qs(o,o.data[ti()+Kt],r,r[11],e,r[a+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=He(nr(e)))),e}(t,n),i,a)}function zs(e,t){return t>=e.expandoStartIndex}function Ws(e,t,n,i){var r=e.data;if(null===r[n+1]){var o=r[ti()+Kt],a=zs(e,n);Ys(o,i)&&null===t&&!a&&(t=!1),t=function(e,t,n,i){var r=Hn(e),o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=Gs(n=Hs(null,e,t,n,i),t.attrs,i),o=null);else{var a=t.directiveStylingLast;if(-1===a||e[a]!==r)if(n=Hs(r,e,t,n,i),null===o){var s=function(e,t,n){var i=n?t.classBindings:t.styleBindings;if(0!==ro(i))return e[no(i)]}(e,t,i);void 0!==s&&Array.isArray(s)&&function(e,t,n,i){e[no(n?t.classBindings:t.styleBindings)]=i}(e,t,i,s=Gs(s=Hs(null,e,t,s[1],i),t.attrs,i))}else o=function(e,t,n){for(var i=void 0,r=t.directiveEnd,o=1+t.directiveStylingLast;o<r;o++)i=Gs(i,e[o].hostAttrs,n);return Gs(i,t.attrs,n)}(e,t,i)}return void 0!==o&&(i?t.residualClasses=o:t.residualStyles=o),n}(r,o,t,i),function(e,t,n,i,r,o){var a=o?t.classBindings:t.styleBindings,s=no(a),u=ro(a);e[i]=n;var c,l=!1;if(Array.isArray(n)?(null===(c=n[1])||Rt(n,c)>0)&&(l=!0):c=n,r)if(0!==u){var h=no(e[s+1]);e[i+1]=to(h,s),0!==h&&(e[h+1]=oo(e[h+1],i)),e[s+1]=131071&e[s+1]|i<<17}else e[i+1]=to(s,0),0!==s&&(e[s+1]=oo(e[s+1],i)),s=i;else e[i+1]=to(u,0),0===s?s=i:e[u+1]=oo(e[u+1],i),u=i;l&&(e[i+1]=io(e[i+1])),As(e,c,i,!0),As(e,c,i,!1),function(e,t,n,i,r){var o=r?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&Rt(o,t)>=0&&(n[i+1]=ao(n[i+1]))}(t,c,e,i,o),a=to(s,u),o?t.classBindings=a:t.styleBindings=a}(r,o,t,n,a,i)}}function Hs(e,t,n,i,r){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s<a&&(i=Gs(i,(o=t[s]).hostAttrs,r),o!==e);)s++;return null!==e&&(n.directiveStylingLast=s),i}function Gs(e,t,n){var i=n?1:2,r=-1;if(null!==t)for(var o=0;o<t.length;o++){var a=t[o];"number"==typeof a?r=a:r===i&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),It(e,a,!!n||t[++o]))}return void 0===e?null:e}function qs(e,t,n,i,r,o,a,s){if(3===t.type){var u=e.data,c=u[s+1];Qs(1==(1&c)?Zs(u,t,n,r,ro(c),a):void 0)||(Qs(o)||2==(2&c)&&(o=Zs(u,null,n,r,s,a)),function(e,t,n,i,r){var o=pn(e);if(t)r?o?e.addClass(n,i):n.classList.add(i):o?e.removeClass(n,i):n.classList.remove(i);else{var a=-1==i.indexOf("-")?void 0:2;null==r?o?e.removeStyle(n,i,a):n.style.removeProperty(i):o?e.setStyle(n,i,r,a):n.style.setProperty(i,r)}}(i,a,gn(ti(),n),r,o))}}function Zs(e,t,n,i,r,o){for(var a=null===t,s=void 0;r>0;){var u=e[r],c=Array.isArray(u),l=c?u[1]:u,h=null===l,d=n[r+1];d===Qr&&(d=h?Is:void 0);var f=h?At(d,i):l===i?d:void 0;if(c&&!Qs(f)&&(f=At(u,i)),Qs(f)&&(s=f,a))return s;var p=e[r+1];r=a?no(p):ro(p)}if(null!==t){var v=o?t.residualClasses:t.residualStyles;null!=v&&(s=At(v,i))}return s}function Qs(e){return void 0!==e}function Ys(e,t){return 0!=(e.flags&(t?16:32))}function Ks(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Pn(),i=In(),r=e+Kt,o=i.firstCreatePass?lo(i,n[6],e,3,null,null):i.data[r],a=n[r]=$o(t,n[11]);da(i,n,a,o),Dn(o,!1)}function Js(e){return Xs("",e,""),Js}function Xs(e,t,n){var i=Pn(),r=rs(i,e,t,n);return r!==Qr&&function(e,t,n){var i=gn(t,e),r=e[11];pn(r)?r.setValue(i,n):i.textContent=n}(i,ti(),r),Xs}function $s(e,t,n){var i=Pn();return ns(i,Bn(),t)&&Co(In(),ii(),i,e,t,i[11],n,!0),$s}function eu(e,t,n){var i=Pn();if(ns(i,Bn(),t)){var r=In(),o=ii();Co(r,o,i,e,t,Zo(Hn(r.data),o,i),n,!0)}return eu}function tu(e,t){var n=wn(e)[1],i=n.data.length-1;ri(n,{directiveStart:i,directiveEnd:i+1})}function nu(e){for(var t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0,i=[e];t;){var r=void 0;if(rn(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 o=e;o.inputs=iu(e.inputs),o.declaredInputs=iu(e.declaredInputs),o.outputs=iu(e.outputs);var a=r.hostBindings;a&&au(e,a);var s=r.viewQuery,u=r.contentQueries;if(s&&ru(e,s),u&&ou(e,u),Re(e.inputs,r.inputs),Re(e.declaredInputs,r.declaredInputs),Re(e.outputs,r.outputs),rn(r)&&r.data.animation){var c=e.data;c.animation=(c.animation||[]).concat(r.data.animation)}}var l=r.features;if(l)for(var h=0;h<l.length;h++){var d=l[h];d&&d.ngInherit&&d(e),d===nu&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){for(var t=0,n=null,i=e.length-1;i>=0;i--){var r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=pi(r.hostAttrs,n=pi(n,r.hostAttrs))}}(i)}function iu(e){return e===Lt?{}:e===Vt?[]:e}function ru(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,i){t(e,i),n(e,i)}:t}function ou(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,i,r){t(e,i,r),n(e,i,r)}:t}function au(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,i){t(e,i),n(e,i)}:t}function su(e,t,n){var i=In();if(i.firstCreatePass){var r=rn(e);uu(n,i.data,i.blueprint,r,!0),uu(t,i.data,i.blueprint,r,!1)}}function uu(e,t,n,i,r){if(e=Qe(e),Array.isArray(e))for(var o=0;o<e.length;o++)uu(e[o],t,n,i,r);else{var a=In(),s=Pn(),u=Ha(e)?e:Qe(e.provide),c=Ua(e),l=Rn(),h=1048575&l.providerIndexes,d=l.directiveStart,f=l.providerIndexes>>20;if(Ha(e)||!e.multi){var p=new li(c,r,ss),v=hu(u,t,r?h:h+f,d);-1===v?(Di(Pi(l,s),a,u),cu(a,e,t.length),t.push(u),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),n.push(p),s.push(p)):(n[v]=p,s[v]=p)}else{var m=hu(u,t,h+f,d),g=hu(u,t,h,h+f),y=g>=0&&n[g];if(r&&!y||!r&&!(m>=0&&n[m])){Di(Pi(l,s),a,u);var b=function(e,t,n,i,r){var o=new li(e,n,ss);return o.multi=[],o.index=t,o.componentProviders=0,lu(o,r,i&&!n),o}(r?fu:du,n.length,r,i,c);!r&&y&&(n[g].providerFactory=b),cu(a,e,t.length,0),t.push(u),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),n.push(b),s.push(b)}else cu(a,e,m>-1?m:g,lu(n[r?g:m],c,!r&&i));!r&&i&&y&&n[g].componentProviders++}}}function cu(e,t,n,i){var r=Ha(t);if(r||t.useClass){var o=(t.useClass||t).prototype.ngOnDestroy;if(o){var a=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){var s=a.indexOf(n);-1===s?a.push(n,[i,o]):a[s+1].push(i,o)}else a.push(n,o)}}}function lu(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function hu(e,t,n,i){for(var r=n;r<i;r++)if(t[r]===e)return r;return-1}function du(e,t,n,i){return pu(this.multi,[])}function fu(e,t,n,i){var r,o=this.multi;if(this.providerFactory){var a=this.providerFactory.componentProviders,s=Fi(n,n[1],this.providerFactory.index,i);pu(o,r=s.slice(0,a));for(var u=a;u<s.length;u++)r.push(s[u])}else pu(o,r=[]);return r}function pu(e,t){for(var n=0;n<e.length;n++)t.push((0,e[n])());return t}function vu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,i){return su(n,i?i(e):e,t)}}}var mu=function e(){w(this,e)},gu=function e(){w(this,e)},yu=function(){function e(){w(this,e)}return C(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(He(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),bu=function(){var e=function e(){w(this,e)};return e.NULL=new yu,e}(),_u=function(){var e=function e(t){w(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=function(){return ku(e)},e}(),ku=function(e){return Ea(e,Rn(),Pn())},wu=function e(){w(this,e)},Su=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({}),Cu=function(){var e=function e(){w(this,e)};return e.__NG_ELEMENT_ID__=function(){return Eu()},e}(),Eu=function(){var e=Pn(),t=kn(Rn().index,e);return function(e){var t=e[11];if(pn(t))return t;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Xt(t)?t:e)},Ou=function(){var e=function e(){w(this,e)};return e.\u0275prov=De({token:e,providedIn:"root",factory:function(){return null}}),e}(),xu=function e(t){w(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},Tu=new xu("10.1.2"),Mu=function(){function e(){w(this,e)}return C(e,[{key:"supports",value:function(e){return $a(e)}},{key:"create",value:function(e){return new Iu(e)}}]),e}(),Pu=function(e,t){return t},Iu=function(){function e(t){w(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||Pu}return C(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 o=!n||t&&t.currentIndex<Nu(n,i,r)?t:n,a=Nu(o,i,r),s=o.currentIndex;if(o===n)i--,n=n._nextRemoved;else if(t=t._next,null==o.previousIndex)i++;else{r||(r=[]);var u=a-i,c=s-i;if(u!=c){for(var l=0;l<u;l++){var h=l<r.length?r[l]:r[l]=0,d=h+l;c<=d&&d<u&&(r[l]=h+1)}r[o.previousIndex]=c-u}}a!==s&&e(o,a,s)}}},{key:"forEachPreviousItem",value:function(e){var t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}},{key:"forEachAddedItem",value:function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}},{key:"forEachMovedItem",value:function(e){var t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}},{key:"forEachRemovedItem",value:function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}},{key:"forEachIdentityChange",value:function(e){var t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}},{key:"diff",value:function(e){if(null==e&&(e=[]),!$a(e))throw new Error("Error trying to diff '".concat(He(e),"'. Only arrays and iterables are allowed"));return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(e){var t=this;this._reset();var n,i,r,o=this._itHead,a=!1;if(Array.isArray(e)){this.length=e.length;for(var s=0;s<this.length;s++)r=this._trackByFn(s,i=e[s]),null!==o&&Object.is(o.trackById,r)?(a&&(o=this._verifyReinsertion(o,i,r,s)),Object.is(o.item,i)||this._addIdentityChange(o,i)):(o=this._mismatch(o,i,r,s),a=!0),o=o._next}else n=0,function(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t(e[n]);else for(var i,r=e[Ja()]();!(i=r.next()).done;)t(i.value)}(e,(function(e){r=t._trackByFn(n,e),null!==o&&Object.is(o.trackById,r)?(a&&(o=t._verifyReinsertion(o,e,r,n)),Object.is(o.item,e)||t._addIdentityChange(o,e)):(o=t._mismatch(o,e,r,n),a=!0),o=o._next,n++})),this.length=n;return this._truncate(o),this.collection=e,this.isDirty}},{key:"_reset",value:function(){if(this.isDirty){var e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}},{key:"_mismatch",value:function(e,t,n,i){var r;return null===e?r=this._itTail:(r=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,r,i)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,r,i)):e=this._addAfter(new Au(t,n),r,i),e}},{key:"_verifyReinsertion",value:function(e,t,n,i){var r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?e=this._reinsertAfter(r,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}},{key:"_truncate",value:function(e){for(;null!==e;){var t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}},{key:"_reinsertAfter",value:function(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);var i=e._prevRemoved,r=e._nextRemoved;return null===i?this._removalsHead=r:i._nextRemoved=r,null===r?this._removalsTail=i:r._prevRemoved=i,this._insertAfter(e,t,n),this._addToMoves(e,n),e}},{key:"_moveAfter",value:function(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}},{key:"_addAfter",value:function(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}},{key:"_insertAfter",value:function(e,t,n){var i=null===t?this._itHead:t._next;return e._next=i,e._prev=t,null===i?this._itTail=e:i._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new Du),this._linkedRecords.put(e),e.currentIndex=n,e}},{key:"_remove",value:function(e){return this._addToRemovals(this._unlink(e))}},{key:"_unlink",value:function(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);var t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}},{key:"_addToMoves",value:function(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}},{key:"_addToRemovals",value:function(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Du),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}},{key:"_addIdentityChange",value:function(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}}]),e}(),Au=function e(t,n){w(this,e),this.item=t,this.trackById=n,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},Ru=function(){function e(){w(this,e),this._head=null,this._tail=null}return C(e,[{key:"add",value:function(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}},{key:"get",value:function(e,t){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}},{key:"remove",value:function(e){var t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}]),e}(),Du=function(){function e(){w(this,e),this.map=new Map}return C(e,[{key:"put",value:function(e){var t=e.trackById,n=this.map.get(t);n||(n=new Ru,this.map.set(t,n)),n.add(e)}},{key:"get",value:function(e,t){var n=this.map.get(e);return n?n.get(e,t):null}},{key:"remove",value:function(e){var t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}},{key:"clear",value:function(){this.map.clear()}},{key:"isEmpty",get:function(){return 0===this.map.size}}]),e}();function Nu(e,t,n){var i=e.previousIndex;if(null===i)return i;var r=0;return n&&i<n.length&&(r=n[i]),i+t+r}var Lu=function(){function e(){w(this,e)}return C(e,[{key:"supports",value:function(e){return e instanceof Map||es(e)}},{key:"create",value:function(){return new Vu}}]),e}(),Vu=function(){function e(){w(this,e),this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return C(e,[{key:"forEachItem",value:function(e){var t;for(t=this._mapHead;null!==t;t=t._next)e(t)}},{key:"forEachPreviousItem",value:function(e){var t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}},{key:"forEachChangedItem",value:function(e){var t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}},{key:"forEachAddedItem",value:function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}},{key:"forEachRemovedItem",value:function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}},{key:"diff",value:function(e){if(e){if(!(e instanceof Map||es(e)))throw new Error("Error trying to diff '".concat(He(e),"'. Only maps and objects are allowed"))}else e=new Map;return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(e){var t=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(e,(function(e,i){if(n&&n.key===i)t._maybeAddToChanges(n,e),t._appendAfter=n,n=n._next;else{var r=t._getOrCreateRecordForKey(i,e);n=t._insertBeforeOrAppend(n,r)}})),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}},{key:"_insertBeforeOrAppend",value:function(e,t){if(e){var n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}},{key:"_getOrCreateRecordForKey",value:function(e,t){if(this._records.has(e)){var n=this._records.get(e);this._maybeAddToChanges(n,t);var i=n._prev,r=n._next;return i&&(i._next=r),r&&(r._prev=i),n._next=null,n._prev=null,n}var o=new ju(e);return this._records.set(e,o),o.currentValue=t,this._addToAdditions(o),o}},{key:"_reset",value:function(){if(this.isDirty){var e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}},{key:"_maybeAddToChanges",value:function(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}},{key:"_addToAdditions",value:function(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}},{key:"_addToChanges",value:function(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}},{key:"_forEach",value:function(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach((function(n){return t(e[n],n)}))}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}}]),e}(),ju=function e(t){w(this,e),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},Fu=function(){var e=function(){function e(t){w(this,e),this.factories=t}return C(e,[{key:"find",value:function(e){var t,n=this.factories.find((function(t){return t.supports(e)}));if(null!=n)return n;throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'"))}}],[{key:"create",value:function(t,n){if(null!=n){var i=n.factories.slice();t=t.concat(i)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new Pe,new Te]]}}}]),e}();return e.\u0275prov=De({token:e,providedIn:"root",factory:function(){return new e([new Mu])}}),e}(),Bu=function(){var e=function(){function e(t){w(this,e),this.factories=t}return C(e,[{key:"find",value:function(e){var t=this.factories.find((function(t){return t.supports(e)}));if(t)return t;throw new Error("Cannot find a differ supporting object '".concat(e,"'"))}}],[{key:"create",value:function(t,n){if(n){var i=n.factories.slice();t=t.concat(i)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new Pe,new Te]]}}}]),e}();return e.\u0275prov=De({token:e,providedIn:"root",factory:function(){return new e([new Lu])}}),e}(),Uu=[new Lu],zu=new Fu([new Mu]),Wu=new Bu(Uu),Hu=function(){var e=function e(){w(this,e)};return e.__NG_ELEMENT_ID__=function(){return Gu(e,_u)},e}(),Gu=function(e,t){return Oa(e,t,Rn(),Pn())},qu=function(){var e=function e(){w(this,e)};return e.__NG_ELEMENT_ID__=function(){return Zu(e,_u)},e}(),Zu=function(e,t){return xa(e,t,Rn(),Pn())},Qu={},Yu=function(e){g(n,e);var t=k(n);function n(e){var i;return w(this,n),(i=t.call(this)).ngModule=e,i}return C(n,[{key:"resolveComponentFactory",value:function(e){var t=Zt(e);return new Xu(t,this.ngModule)}}]),n}(bu);function Ku(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var Ju=new ct("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return wi}}),Xu=function(e){g(n,e);var t=k(n);function n(e,i){var r;return w(this,n),(r=t.call(this)).componentDef=e,r.ngModule=i,r.componentType=e.type,r.selector=e.selectors.map(Zr).join(","),r.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],r.isBoundToModule=!!i,r}return C(n,[{key:"create",value:function(e,t,n,i){var r,o,a=(i=i||this.ngModule)?function(e,t){return{get:function(n,i,r){var o=e.get(n,Qu,r);return o!==Qu||i===Qu?o:t.get(n,i,r)}}}(e,i.injector):e,s=a.get(wu,vn),u=a.get(Ou,null),c=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",h=n?function(e,t,n){if(pn(e))return e.selectRootElement(t,n===Nt.ShadowDom);var i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(c,n,this.componentDef.encapsulation):uo(l,s.createRenderer(null,this.componentDef),function(e){var t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(l)),d=this.componentDef.onPush?576:528,f={components:[],scheduler:wi,clean:Go,playerHandler:null,flags:0},p=_o(0,-1,null,1,0,null,null,null,null,null),v=co(null,p,f,d,null,null,s,c,u,a);Qn(v,null);try{var m=function(e,t,n,i,r,o){var a=n[1];n[20]=e;var s=lo(a,null,0,3,null,null),u=s.mergedAttrs=t.hostAttrs;null!==u&&(Ya(s,u,!0),null!==e&&(hi(r,e,u),null!==s.classes&&ba(r,e,s.classes),null!==s.styles&&ya(r,e,s.styles)));var c=i.createRenderer(e,t),l=co(n,bo(t),null,t.onPush?64:16,n[20],s,i,c,void 0);return a.firstCreatePass&&(Di(Pi(s,n),a,t.type),Po(a,s),Ao(s,n.length,1)),Bo(n,l),n[20]=l}(h,this.componentDef,v,s,c);if(h)if(n)hi(c,h,["ng-version",Tu.full]);else{var g=function(e){for(var t=[],n=[],i=1,r=2;i<e.length;){var o=e[i];if("string"==typeof o)2===r?""!==o&&t.push(o,e[++i]):8===r&&n.push(o);else{if(!zr(r))break;r=o}i++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]),y=g.attrs,b=g.classes;y&&hi(c,h,y),b&&b.length>0&&ba(c,h,b.join(" "))}if(o=bn(p,0),void 0!==t)for(var _=o.projection=[],k=0;k<this.ngContentSelectors.length;k++){var w=t[k];_.push(null!=w?Array.from(w):null)}r=function(e,t,n,i,r){var o=n[1],a=function(e,t,n){var i=Rn();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Mo(e,i,1),Ro(e,t,n));var r=Fi(t,e,t.length-1,i);Nr(r,t);var o=yn(i,t);return o&&Nr(o,t),r}(o,n,t);i.components.push(a),e[8]=a,r&&r.forEach((function(e){return e(a,t)})),t.contentQueries&&t.contentQueries(1,a,n.length-1);var s=Rn();if(o.firstCreatePass&&(null!==t.hostBindings||null!==t.hostAttrs)){ni(s.index-Kt);var u=n[1];Oo(u,t),xo(u,n,t.hostVars),To(t,a)}return a}(m,this.componentDef,v,f,[tu]),ho(p,v,null)}finally{$n()}var S=new $u(this.componentType,r,Ea(_u,o,v),v,o);return p.node.child=o,S}},{key:"inputs",get:function(){return Ku(this.componentDef.inputs)}},{key:"outputs",get:function(){return Ku(this.componentDef.outputs)}}]),n}(gu),$u=function(e){g(n,e);var t=k(n);function n(e,i,r,o,a){var s,u,c,l;return w(this,n),(s=t.call(this)).location=r,s._rootLView=o,s._tNode=a,s.destroyCbs=[],s.instance=i,s.hostView=s.changeDetectorRef=new Ca(o),c=o,null==(l=(u=o[1]).node)&&(u.node=l=wo(0,null,2,-1,null,null)),c[6]=l,s.componentType=e,s}return C(n,[{key:"destroy",value:function(){this.destroyCbs&&(this.destroyCbs.forEach((function(e){return e()})),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}},{key:"onDestroy",value:function(e){this.destroyCbs&&this.destroyCbs.push(e)}},{key:"injector",get:function(){return new Wi(this._tNode,this._rootLView)}}]),n}(mu),ec=void 0,tc=["en",[["a","p"],["AM","PM"],ec],[["AM","PM"],ec,ec],[["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"]],ec,[["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"]],ec,[["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}",ec,"{1} 'at' {0}",ec],[".",",",";","%","+","-","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}],nc={};function ic(e){return e in nc||(nc[e]=tt.ng&&tt.ng.common&&tt.ng.common.locales&&tt.ng.common.locales[e]),nc[e]}var rc=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}({}),oc="en-US";function ac(e){var t,n;n="Expected localeId to be defined",null==(t=e)&&function(e,t,n,i){throw new Error("ASSERTION ERROR: ".concat(e)+" [Expected=> ".concat(null," ").concat("!="," ").concat(t," <=Actual]"))}(n,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}var sc=new Map,uc=function(e){g(n,e);var t=k(n);function n(e,i){var r;w(this,n),(r=t.call(this))._parent=i,r._bootstrapComponents=[],r.injector=o(r),r.destroyCbs=[],r.componentFactoryResolver=new Yu(o(r));var a=Yt(e),s=e[at]||null;return s&&ac(s),r._bootstrapComponents=Oi(a.bootstrap),r._r3Injector=ja(e,i,[{provide:Et,useValue:o(r)},{provide:bu,useValue:r.componentFactoryResolver}],He(e)),r._r3Injector._resolveInjectorDefTypes(),r.instance=r.get(e),r}return C(n,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Za.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ie.Default;return e===Za||e===Et||e===lt?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}(Et),cc=function(e){g(n,e);var t=k(n);function n(e){var i;return w(this,n),(i=t.call(this)).moduleType=e,null!==Yt(e)&&function e(t){if(null!==t.\u0275mod.id){var n=t.\u0275mod.id;(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(He(t)," vs ").concat(He(t.name)))})(n,sc.get(n),t),sc.set(n,t)}var i=t.\u0275mod.imports;i instanceof Function&&(i=i()),i&&i.forEach((function(t){return e(t)}))}(e),i}return C(n,[{key:"create",value:function(e){return new uc(this.moduleType,e)}}]),n}(Ot);function lc(e,t,n,i){return dc(Pn(),Fn(),e,t,n,i)}function hc(e,t){var n=e[t];return n===Qr?void 0:n}function dc(e,t,n,i,r,o){var a=t+n;return ns(e,a,r)?ts(e,a+1,o?i.call(o,r):i(r)):hc(e,a+1)}function fc(e,t){var n,i=In(),r=e+Kt;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 Error("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 o=n.factory||(n.factory=Qt(n.type)),a=gt(ss),s=Ti(!1),u=o();return Ti(s),gt(a),function(e,t,n,i){var r=n+Kt;r>=e.data.length&&(e.data[r]=null,e.blueprint[r]=null),t[r]=i}(i,Pn(),e,u),u}function pc(e,t,n){var i=Pn(),r=_n(i,e);return function(e,t){return Xa.isWrapped(t)&&(t=Xa.unwrap(t),e[Tn.lFrame.bindingIndex]=Qr),t}(i,function(e,t){return e[1].data[t+Kt].pure}(i,e)?dc(i,Fn(),t,r.transform,n,r):r.transform(n))}var vc=function(e){g(n,e);var t=k(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return w(this,n),(e=t.call(this)).__isAsync=i,e}return C(n,[{key:"emit",value:function(e){r(i(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,o){var a,s=function(e){return null},u=function(){return null};e&&"object"==typeof e?(a=this.__isAsync?function(t){setTimeout((function(){return e.next(t)}))}:function(t){e.next(t)},e.error&&(s=this.__isAsync?function(t){setTimeout((function(){return e.error(t)}))}:function(t){e.error(t)}),e.complete&&(u=this.__isAsync?function(){setTimeout((function(){return e.complete()}))}:function(){e.complete()})):(a=this.__isAsync?function(t){setTimeout((function(){return e(t)}))}:function(t){e(t)},t&&(s=this.__isAsync?function(e){setTimeout((function(){return t(e)}))}:function(e){t(e)}),o&&(u=this.__isAsync?function(){setTimeout((function(){return o()}))}:function(){o()}));var c=r(i(n.prototype),"subscribe",this).call(this,a,s,u);return e instanceof P&&e.add(c),c}}]),n}(Z);function mc(){return this._results[Ja()]()}var gc=function(){function e(){w(this,e),this.dirty=!0,this._results=[],this.changes=new vc,this.length=0;var t=Ja(),n=e.prototype;n[t]||(n[t]=mc)}return C(e,[{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e){this._results=function e(t,n){void 0===n&&(n=t);for(var i=0;i<t.length;i++){var r=t[i];Array.isArray(r)?(n===t&&(n=t.slice(0,i)),e(r,n)):n!==t&&n.push(r)}return n}(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}},{key:"notifyOnChanges",value:function(){this.changes.emit(this)}},{key:"setDirty",value:function(){this.dirty=!0}},{key:"destroy",value:function(){this.changes.complete(),this.changes.unsubscribe()}}]),e}(),yc=function(){function e(t){w(this,e),this.queryList=t,this.matches=null}return C(e,[{key:"clone",value:function(){return new e(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),e}(),bc=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];w(this,e),this.queries=t}return C(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=[],o=0;o<i;o++){var a=n.getByIndex(o);r.push(this.queries[a.indexInDeclarationView].clone())}return new e(r)}return null}},{key:"insertView",value:function(e){this.dirtyQueriesWithMatches(e)}},{key:"detachView",value:function(e){this.dirtyQueriesWithMatches(e)}},{key:"dirtyQueriesWithMatches",value:function(e){for(var t=0;t<this.queries.length;t++)null!==Lc(e,t).matches&&this.queries[t].setDirty()}}]),e}(),_c=function e(t,n,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;w(this,e),this.predicate=t,this.descendants=n,this.isStatic=i,this.read=r},kc=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];w(this,e),this.queries=t}return C(e,[{key:"elementStart",value:function(e,t){for(var n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,t)}},{key:"elementEnd",value:function(e){for(var t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}},{key:"embeddedTView",value:function(t){for(var n=null,i=0;i<this.length;i++){var r=null!==n?n.length:0,o=this.getByIndex(i).embeddedTView(t,r);o&&(o.indexInDeclarationView=i,null!==n?n.push(o):n=[o])}return null!==n?new e(n):null}},{key:"template",value:function(e,t){for(var n=0;n<this.queries.length;n++)this.queries[n].template(e,t)}},{key:"getByIndex",value:function(e){return this.queries[e]}},{key:"track",value:function(e){this.queries.push(e)}},{key:"length",get:function(){return this.queries.length}}]),e}(),wc=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;w(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return C(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&!1===this.metadata.descendants){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&4===n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var n=this.metadata.predicate;if(Array.isArray(n))for(var i=0;i<n.length;i++){var r=n[i];this.matchTNodeWithReadOption(e,t,Sc(t,r)),this.matchTNodeWithReadOption(e,t,ji(t,e,r,!1,!1))}else n===Hu?0===t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,ji(t,e,n,!1,!1))}},{key:"matchTNodeWithReadOption",value:function(e,t,n){if(null!==n){var i=this.metadata.read;if(null!==i)if(i===_u||i===qu||i===Hu&&0===t.type)this.addMatch(t.index,-2);else{var r=ji(t,e,i,!1,!1);null!==r&&this.addMatch(t.index,r)}else this.addMatch(t.index,n)}}},{key:"addMatch",value:function(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}]),e}();function Sc(e,t){var n=e.localNames;if(null!==n)for(var i=0;i<n.length;i+=2)if(n[i]===t)return n[i+1];return null}function Cc(e,t,n,i){return-1===n?function(e,t){return 3===e.type||4===e.type?Ea(_u,e,t):0===e.type?Oa(Hu,_u,e,t):null}(t,e):-2===n?function(e,t,n){return n===_u?Ea(_u,t,e):n===Hu?Oa(Hu,_u,t,e):n===qu?xa(qu,_u,t,e):void 0}(e,t,i):Fi(e,e[1],n,t)}function Ec(e,t,n,i){var r=t[19].queries[i];if(null===r.matches){for(var o=e.data,a=n.matches,s=[],u=0;u<a.length;u+=2){var c=a[u];s.push(c<0?null:Cc(t,o[c],a[u+1],n.metadata.read))}r.matches=s}return r.matches}function Oc(e){var t=Pn(),n=In(),i=Gn();qn(i+1);var r=Lc(n,i);if(e.dirty&&Sn(t)===r.metadata.isStatic){if(null===r.matches)e.reset([]);else{var o=r.crossesNgTemplate?function e(t,n,i,r){var o=t.queries.getByIndex(i),a=o.matches;if(null!==a)for(var s=Ec(t,n,o,i),u=0;u<a.length;u+=2){var c=a[u];if(c>0)r.push(s[u/2]);else{for(var l=a[u+1],h=n[-c],d=Jt;d<h.length;d++){var f=h[d];f[17]===f[3]&&e(f[1],f,l,r)}if(null!==h[9])for(var p=h[9],v=0;v<p.length;v++){var m=p[v];e(m[1],m,l,r)}}}return r}(n,t,i,[]):Ec(n,t,r,i);e.reset(o),e.notifyOnChanges()}return!0}return!1}function xc(e,t,n){Mc(In(),Pn(),e,t,n,!0)}function Tc(e,t,n){Mc(In(),Pn(),e,t,n,!1)}function Mc(e,t,n,i,r,o){e.firstCreatePass&&(Nc(e,new _c(n,i,o,r),-1),o&&(e.staticViewQueries=!0)),Dc(e,t)}function Pc(e,t,n,i){Ac(In(),Pn(),t,n,i,!1,Rn(),e)}function Ic(e,t,n,i){Ac(In(),Pn(),t,n,i,!0,Rn(),e)}function Ac(e,t,n,i,r,o,a,s){e.firstCreatePass&&(Nc(e,new _c(n,i,o,r),a.index),function(e,t){var n=e.contentQueries||(e.contentQueries=[]);t!==(e.contentQueries.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(e,s),o&&(e.staticContentQueries=!0)),Dc(e,t)}function Rc(){return e=Pn(),t=Gn(),e[19].queries[t].queryList;var e,t}function Dc(e,t){var n=new gc;ko(e,t,n,n.destroy),null===t[19]&&(t[19]=new bc),t[19].queries.push(new yc(n))}function Nc(e,t,n){null===e.queries&&(e.queries=new kc),e.queries.track(new wc(t,n))}function Lc(e,t){return e.queries.getByIndex(t)}var Vc=new ct("Application Initializer"),jc=function(){var e=function(){function e(t){var n=this;w(this,e),this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((function(e,t){n.resolve=e,n.reject=t}))}return C(e,[{key:"runInitializers",value:function(){var e=this;if(!this.initialized){var t=[],n=function(){e.done=!0,e.resolve()};if(this.appInits)for(var i=0;i<this.appInits.length;i++){var r=this.appInits[i]();gs(r)&&t.push(r)}Promise.all(t).then((function(){n()})).catch((function(t){e.reject(t)})),0===t.length&&n(),this.initialized=!0}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(bt(Vc,8))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),Fc=new ct("AppId"),Bc={provide:Fc,useFactory:function(){return"".concat(Uc()).concat(Uc()).concat(Uc())},deps:[]};function Uc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var zc=new ct("Platform Initializer"),Wc=new ct("Platform ID"),Hc=new ct("appBootstrapListener"),Gc=function(){var e=function(){function e(){w(this,e)}return C(e,[{key:"log",value:function(e){console.log(e)}},{key:"warn",value:function(e){console.warn(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),qc=new ct("LocaleId"),Zc=new ct("DefaultCurrencyCode"),Qc=function e(t,n){w(this,e),this.ngModuleFactory=t,this.componentFactories=n},Yc=function(e){return new cc(e)},Kc=Yc,Jc=function(e){return Promise.resolve(Yc(e))},Xc=function(e){var t=Yc(e),n=Oi(Yt(e).declarations).reduce((function(e,t){var n=Zt(t);return n&&e.push(new Xu(n)),e}),[]);return new Qc(t,n)},$c=Xc,el=function(e){return Promise.resolve(Xc(e))},tl=function(){var e=function(){function e(){w(this,e),this.compileModuleSync=Kc,this.compileModuleAsync=Jc,this.compileModuleAndAllComponentsSync=$c,this.compileModuleAndAllComponentsAsync=el}return C(e,[{key:"clearCache",value:function(){}},{key:"clearCacheFor",value:function(e){}},{key:"getModuleId",value:function(e){}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),nl=function(){return Promise.resolve(0)}();function il(e){"undefined"==typeof Zone?nl.then((function(){e&&e.apply(null,null)})):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}var rl=function(){function e(t){var n=t.enableLongStackTrace,i=void 0!==n&&n,r=t.shouldCoalesceEventChangeDetection,o=void 0!==r&&r;if(w(this,e),this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new vc(!1),this.onMicrotaskEmpty=new vc(!1),this.onStable=new vc(!1),this.onError=new vc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();var a,s,u,c=this;c._nesting=0,c._outer=c._inner=Zone.current,Zone.wtfZoneSpec&&(c._inner=c._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(c._inner=c._inner.fork(new Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(c._inner=c._inner.fork(Zone.longStackTraceZoneSpec)),c.shouldCoalesceEventChangeDetection=o,c.lastRequestAnimationFrameId=-1,c.nativeRequestAnimationFrame=function(){var e=tt.requestAnimationFrame,t=tt.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){var n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);var i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,s=function(){!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(tt,(function(){e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",(function(){e.lastRequestAnimationFrameId=-1,ul(e),sl(e)}),void 0,(function(){}),(function(){}))),e.fakeTopEventTask.invoke()})),ul(e))}(a)},(a=c)._inner=a._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:u=!!a.shouldCoalesceEventChangeDetection&&a.nativeRequestAnimationFrame&&s},onInvokeTask:function(e,t,n,i,r,o){try{return cl(a),e.invokeTask(n,i,r,o)}finally{u&&"eventTask"===i.type&&u(),ll(a)}},onInvoke:function(e,t,n,i,r,o,s){try{return cl(a),e.invoke(n,i,r,o,s)}finally{ll(a)}},onHasTask:function(e,t,n,i){e.hasTask(n,i),t===n&&("microTask"==i.change?(a._hasPendingMicrotasks=i.microTask,ul(a),sl(a)):"macroTask"==i.change&&(a.hasPendingMacrotasks=i.macroTask))},onHandleError:function(e,t,n,i){return e.handleError(n,i),a.runOutsideAngular((function(){return a.onError.emit(i)})),!1}})}return C(e,[{key:"run",value:function(e,t,n){return this._inner.run(e,t,n)}},{key:"runTask",value:function(e,t,n,i){var r=this._inner,o=r.scheduleEventTask("NgZoneEvent: "+i,e,al,ol,ol);try{return r.runTask(o,t,n)}finally{r.cancelTask(o)}}},{key:"runGuarded",value:function(e,t,n){return this._inner.runGuarded(e,t,n)}},{key:"runOutsideAngular",value:function(e){return this._outer.run(e)}}],[{key:"isInAngularZone",value:function(){return!0===Zone.current.get("isAngularZone")}},{key:"assertInAngularZone",value:function(){if(!e.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}},{key:"assertNotInAngularZone",value:function(){if(e.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}}]),e}();function ol(){}var al={};function sl(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular((function(){return e.onStable.emit(null)}))}finally{e.isStable=!0}}}function ul(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||e.shouldCoalesceEventChangeDetection&&-1!==e.lastRequestAnimationFrameId)}function cl(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function ll(e){e._nesting--,sl(e)}var hl,dl=function(){function e(){w(this,e),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new vc,this.onMicrotaskEmpty=new vc,this.onStable=new vc,this.onError=new vc}return C(e,[{key:"run",value:function(e,t,n){return e.apply(t,n)}},{key:"runGuarded",value:function(e,t,n){return e.apply(t,n)}},{key:"runOutsideAngular",value:function(e){return e()}},{key:"runTask",value:function(e,t,n,i){return e.apply(t,n)}}]),e}(),fl=function(){var e=function(){function e(t){var n=this;w(this,e),this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run((function(){n.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")}))}return C(e,[{key:"_watchAngularEvents",value:function(){var e=this;this._ngZone.onUnstable.subscribe({next:function(){e._didWork=!0,e._isZoneStable=!1}}),this._ngZone.runOutsideAngular((function(){e._ngZone.onStable.subscribe({next:function(){rl.assertNotInAngularZone(),il((function(){e._isZoneStable=!0,e._runCallbacksIfReady()}))}})}))}},{key:"increasePendingRequestCount",value:function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}},{key:"decreasePendingRequestCount",value:function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}},{key:"isStable",value:function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}},{key:"_runCallbacksIfReady",value:function(){var e=this;if(this.isStable())il((function(){for(;0!==e._callbacks.length;){var t=e._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(e._didWork)}e._didWork=!1}));else{var t=this.getPendingTasks();this._callbacks=this._callbacks.filter((function(e){return!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)})),this._didWork=!0}}},{key:"getPendingTasks",value:function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map((function(e){return{source:e.source,creationLocation:e.creationLocation,data:e.data}})):[]}},{key:"addCallback",value:function(e,t,n){var i=this,r=-1;t&&t>0&&(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)(bt(rl))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),pl=function(){var e=function(){function e(){w(this,e),this._applications=new Map,vl.addToWindow(this)}return C(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 vl.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),vl=new(function(){function e(){w(this,e)}return C(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),ml=function(e,t,n){var i=new cc(n);return Promise.resolve(i)},gl=new ct("AllowMultipleToken"),yl=function e(t,n){w(this,e),this.name=t,this.token=n};function bl(e){if(hl&&!hl.destroyed&&!hl.injector.get(gl,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");hl=e.get(Sl);var t=e.get(zc,null);return t&&t.forEach((function(e){return e()})),hl}function _l(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="Platform: ".concat(t),r=new ct(i);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=wl();if(!o||o.injector.get(gl,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{var a=n.concat(t).concat({provide:r,useValue:!0},{provide:Aa,useValue:"platform"});bl(Za.create({providers:a,name:i}))}return kl(r)}}function kl(e){var t=wl();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}function wl(){return hl&&!hl.destroyed?hl:null}var Sl=function(){var e=function(){function e(t){w(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return C(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,i,r=this,o=(i=t&&t.ngZoneEventCoalescing||!1,"noop"===(n=t?t.ngZone:void 0)?new dl:("zone.js"===n?void 0:n)||new rl({enableLongStackTrace:sr(),shouldCoalesceEventChangeDetection:i})),a=[{provide:rl,useValue:o}];return o.run((function(){var t=Za.create({providers:a,parent:r.injector,name:e.moduleType.name}),n=e.create(t),i=n.injector.get(Yi,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy((function(){return Ol(r._modules,n)})),o.runOutsideAngular((function(){return o.onError.subscribe({next:function(e){i.handleError(e)}})})),function(e,t,i){try{var o=((a=n.injector.get(jc)).runInitializers(),a.donePromise.then((function(){return ac(n.injector.get(qc,oc)||oc),r._moduleDoBootstrap(n),n})));return gs(o)?o.catch((function(n){throw t.runOutsideAngular((function(){return e.handleError(n)})),n})):o}catch(s){throw t.runOutsideAngular((function(){return e.handleError(s)})),s}var a}(i,o)}))}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=Cl({},n);return ml(0,0,e).then((function(e){return t.bootstrapModuleFactory(e,i)}))}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(El);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(He(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. ')+"Please define one of these.");e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach((function(e){return e.destroy()})),this._destroyListeners.forEach((function(e){return e()})),this._destroyed=!0}},{key:"injector",get:function(){return this._injector}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(bt(Za))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}();function Cl(e,t){return Array.isArray(t)?t.reduce(Cl,e):Object.assign(Object.assign({},e),t)}var El=function(){var e=function(){function e(t,n,i,r,o,a){var s=this;w(this,e),this._zone=t,this._console=n,this._injector=i,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=sr(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run((function(){s.tick()}))}});var u=new z((function(e){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular((function(){e.next(s._stable),e.complete()}))})),c=new z((function(e){var t;s._zone.runOutsideAngular((function(){t=s._zone.onStable.subscribe((function(){rl.assertNotInAngularZone(),il((function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,e.next(!0))}))}))}));var n=s._zone.onUnstable.subscribe((function(){rl.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular((function(){e.next(!1)})))}));return function(){t.unsubscribe(),n.unsubscribe()}}));this.isStable=ve(u,c.pipe(Se()))}return C(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 gu?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var r=n.isBoundToModule?void 0:this._injector.get(Et),o=n.create(Za.NULL,[],t||n.selector,r);o.onDestroy((function(){i._unloadComponent(o)}));var a=o.injector.get(fl,null);return a&&o.injector.get(pl).registerApplication(o.location.nativeElement,a),this._loadComponent(o),sr()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),o}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=v(this._views);try{for(n.s();!(t=n.n()).done;)t.value.detectChanges()}catch(o){n.e(o)}finally{n.f()}if(this._enforceNoNewChanges){var i,r=v(this._views);try{for(r.s();!(i=r.n()).done;)i.value.checkNoChanges()}catch(o){r.e(o)}finally{r.f()}}}catch(a){this._zone.runOutsideAngular((function(){return e._exceptionHandler.handleError(a)}))}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;Ol(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Hc,[]).concat(this._bootstrapListeners).forEach((function(t){return t(e)}))}},{key:"_unloadComponent",value:function(e){this.detachView(e.hostView),Ol(this.components,e)}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach((function(e){return e.destroy()}))}},{key:"viewCount",get:function(){return this._views.length}}]),e}();return e.\u0275fac=function(t){return new(t||e)(bt(rl),bt(Gc),bt(Za),bt(Yi),bt(bu),bt(jc))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}();function Ol(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var xl=function e(){w(this,e)},Tl=function e(){w(this,e)},Ml={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Pl=function(){var e=function(){function e(t,n){w(this,e),this._compiler=t,this._config=n||Ml}return C(e,[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var t=this,i=l(e.split("#"),2),r=i[0],o=i[1];return void 0===o&&(o="default"),n("crnd")(r).then((function(e){return e[o]})).then((function(e){return Il(e,r,o)})).then((function(e){return t._compiler.compileModuleAsync(e)}))}},{key:"loadFactory",value:function(e){var t=l(e.split("#"),2),i=t[0],r=t[1],o="NgFactory";return void 0===r&&(r="default",o=""),n("crnd")(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then((function(e){return e[r+o]})).then((function(e){return Il(e,i,r)}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(bt(tl),bt(Tl,8))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}();function Il(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var Al=_l(null,"core",[{provide:Wc,useValue:"unknown"},{provide:Sl,deps:[Za]},{provide:pl,deps:[]},{provide:Gc,deps:[]}]),Rl=[{provide:El,useClass:El,deps:[rl,Gc,Za,Yi,bu,jc]},{provide:Ju,deps:[rl],useFactory:function(e){var t=[];return e.onStable.subscribe((function(){for(;t.length;)t.pop()()})),function(e){t.push(e)}}},{provide:jc,useClass:jc,deps:[[new Te,Vc]]},{provide:tl,useClass:tl,deps:[]},Bc,{provide:Fu,useFactory:function(){return zu},deps:[]},{provide:Bu,useFactory:function(){return Wu},deps:[]},{provide:qc,useFactory:function(e){return ac(e=e||"undefined"!=typeof $localize&&$localize.locale||oc),e},deps:[[new xe(qc),new Te,new Pe]]},{provide:Zc,useValue:"USD"}],Dl=function(){var e=function e(t){w(this,e)};return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)(bt(El))},providers:Rl}),e}(),Nl=null;function Ll(){return Nl}var Vl=function e(){w(this,e)},jl=new ct("DocumentToken"),Fl=function(){var e=function e(){w(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=De({factory:Bl,token:e,providedIn:"platform"}),e}();function Bl(){return bt(zl)}var Ul=new ct("Location Initialized"),zl=function(){var e=function(e){g(n,e);var t=k(n);function n(e){var i;return w(this,n),(i=t.call(this))._doc=e,i._init(),i}return C(n,[{key:"_init",value:function(){this.location=Ll().getLocation(),this._history=Ll().getHistory()}},{key:"getBaseHrefFromDOM",value:function(){return Ll().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){Ll().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}},{key:"onHashChange",value:function(e){Ll().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}},{key:"pushState",value:function(e,t,n){Wl()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){Wl()?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}},{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}}]),n}(Fl);return e.\u0275fac=function(t){return new(t||e)(bt(jl))},e.\u0275prov=De({factory:Hl,token:e,providedIn:"platform"}),e}();function Wl(){return!!window.history.pushState}function Hl(){return new zl(bt(jl))}function Gl(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 ql(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 Zl(e){return e&&"?"!==e[0]?"?"+e:e}var Ql=function(){var e=function e(){w(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=De({factory:Yl,token:e,providedIn:"root"}),e}();function Yl(e){var t=bt(jl).location;return new Jl(bt(Fl),t&&t.origin||"")}var Kl=new ct("appBaseHref"),Jl=function(){var e=function(e){g(n,e);var t=k(n);function n(e,i){var r;if(w(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,r}return C(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 Gl(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+Zl(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+Zl(i));this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+Zl(i));this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(Ql);return e.\u0275fac=function(t){return new(t||e)(bt(Fl),bt(Kl,8))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),Xl=function(){var e=function(e){g(n,e);var t=k(n);function n(e,i){var r;return w(this,n),(r=t.call(this))._platformLocation=e,r._baseHref="",null!=i&&(r._baseHref=i),r}return C(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=Gl(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+Zl(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+Zl(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}(Ql);return e.\u0275fac=function(t){return new(t||e)(bt(Fl),bt(Kl,8))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),$l=function(){var e=function(){function e(t,n){var i=this;w(this,e),this._subject=new vc,this._urlChangeListeners=[],this._platformStrategy=t;var r=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=ql(th(r)),this._platformStrategy.onPopState((function(e){i._subject.emit({url:i.path(!0),pop:!0,state:e.state,type:e.type})}))}return C(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+Zl(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,th(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+Zl(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+Zl(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}();return e.\u0275fac=function(t){return new(t||e)(bt(Ql),bt(Fl))},e.normalizeQueryParams=Zl,e.joinWithSlash=Gl,e.stripTrailingSlash=ql,e.\u0275prov=De({factory:eh,token:e,providedIn:"root"}),e}();function eh(){return new $l(bt(Ql),bt(Fl))}function th(e){return e.replace(/\/index.html$/,"")}var nh=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}({}),ih=function e(){w(this,e)},rh=function(){var e=function(e){g(n,e);var t=k(n);function n(e){var i;return w(this,n),(i=t.call(this)).locale=e,i}return C(n,[{key:"getPluralCategory",value:function(e,t){switch(function(e){return function(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=ic(t);if(n)return n;var i=t.split("-")[0];if(n=ic(i))return n;if("en"===i)return tc;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}(e)[rc.PluralCase]}(t||this.locale)(e)){case nh.Zero:return"zero";case nh.One:return"one";case nh.Two:return"two";case nh.Few:return"few";case nh.Many:return"many";default:return"other"}}}]),n}(ih);return e.\u0275fac=function(t){return new(t||e)(bt(qc))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}();function oh(e,t){t=encodeURIComponent(t);var n,i=v(e.split(";"));try{for(i.s();!(n=i.n()).done;){var r=n.value,o=r.indexOf("="),a=l(-1==o?[r,""]:[r.slice(0,o),r.slice(o+1)],2),s=a[1];if(a[0].trim()===t)return decodeURIComponent(s)}}catch(u){i.e(u)}finally{i.f()}return null}var ah=function(){var e=function(){function e(t,n,i,r){w(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 C(e,[{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem((function(e){return t._toggleClass(e.key,e.currentValue)})),e.forEachChangedItem((function(e){return t._toggleClass(e.key,e.currentValue)})),e.forEachRemovedItem((function(e){e.previousValue&&t._toggleClass(e.key,!1)}))}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem((function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(He(e.item)));t._toggleClass(e.item,!0)})),e.forEachRemovedItem((function(e){return t._toggleClass(e.item,!1)}))}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach((function(e){return t._toggleClass(e,!0)})):Object.keys(e).forEach((function(n){return t._toggleClass(n,!!e[n])})))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach((function(e){return t._toggleClass(e,!1)})):Object.keys(e).forEach((function(e){return t._toggleClass(e,!1)})))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach((function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)}))}},{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&($a(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(Fu),ss(Bu),ss(_u),ss(Cu))},e.\u0275dir=Gt({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),sh=function(){function e(t,n,i,r){w(this,e),this.$implicit=t,this.ngForOf=n,this.index=i,this.count=r}return C(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}(),uh=function(){var e=function(){function e(t,n,i){w(this,e),this._viewContainer=t,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return C(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 o=t._viewContainer.createEmbeddedView(t._template,new sh(null,t._ngForOf,-1,-1),null===r?void 0:r),a=new ch(e,o);n.push(a)}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 u=new ch(e,s);n.push(u)}}));for(var i=0;i<n.length;i++)this._perViewChange(n[i].view,n[i].record);for(var r=0,o=this._viewContainer.length;r<o;r++){var a=this._viewContainer.get(r);a.context.index=r,a.context.count=o,a.context.ngForOf=this._ngForOf}e.forEachIdentityChange((function(e){t._viewContainer.get(e.currentIndex).context.$implicit=e.item}))}},{key:"_perViewChange",value:function(e,t){e.context.$implicit=t.item}},{key:"ngForOf",set:function(e){this._ngForOf=e,this._ngForOfDirty=!0}},{key:"ngForTrackBy",set:function(e){sr()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn("trackBy must be a function, but received ".concat(JSON.stringify(e),". ")+"See https://angular.io/api/common/NgForOf#change-propagation for more information."),this._trackByFn=e},get:function(){return this._trackByFn}},{key:"ngForTemplate",set:function(e){e&&(this._template=e)}}],[{key:"ngTemplateContextGuard",value:function(e,t){return!0}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(qu),ss(Hu),ss(Fu))},e.\u0275dir=Gt({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e}(),ch=function e(t,n){w(this,e),this.record=t,this.view=n},lh=function(){var e=function(){function e(t,n){w(this,e),this._viewContainer=t,this._context=new hh,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}return C(e,[{key:"_updateView",value:function(){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)))}},{key:"ngIf",set:function(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}},{key:"ngIfThen",set:function(e){dh("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}},{key:"ngIfElse",set:function(e){dh("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}}],[{key:"ngTemplateContextGuard",value:function(e,t){return!0}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(qu),ss(Hu))},e.\u0275dir=Gt({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e}(),hh=function e(){w(this,e),this.$implicit=null,this.ngIf=null};function dh(e,t){if(t&&!t.createEmbeddedView)throw new Error("".concat(e," must be a TemplateRef, but received '").concat(He(t),"'."))}var fh=function(){function e(t,n){w(this,e),this._viewContainerRef=t,this._templateRef=n,this._created=!1}return C(e,[{key:"create",value:function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}},{key:"destroy",value:function(){this._created=!1,this._viewContainerRef.clear()}},{key:"enforceState",value:function(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}]),e}(),ph=function(){var e=function(){function e(){w(this,e),this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return C(e,[{key:"_addCase",value:function(){return this._caseCount++}},{key:"_addDefault",value:function(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}},{key:"_matchCase",value:function(e){var t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t}},{key:"_updateDefaultCases",value:function(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(var t=0;t<this._defaultViews.length;t++)this._defaultViews[t].enforceState(e)}}},{key:"ngSwitch",set:function(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Gt({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),e}(),vh=function(){var e=function(){function e(t,n,i){w(this,e),this.ngSwitch=i,i._addCase(),this._view=new fh(t,n)}return C(e,[{key:"ngDoCheck",value:function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(qu),ss(Hu),ss(ph,1))},e.\u0275dir=Gt({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),e}(),mh=function(){var e=function e(t,n,i){w(this,e),i._addDefault(new fh(t,n))};return e.\u0275fac=function(t){return new(t||e)(ss(qu),ss(Hu),ss(ph,1))},e.\u0275dir=Gt({type:e,selectors:[["","ngSwitchDefault",""]]}),e}(),gh=function(){var e=function(){function e(t,n,i){w(this,e),this._ngEl=t,this._differs=n,this._renderer=i,this._ngStyle=null,this._differ=null}return C(e,[{key:"ngDoCheck",value:function(){if(this._differ){var e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}},{key:"_setStyle",value:function(e,t){var n=l(e.split("."),2),i=n[0],r=n[1];null!=(t=null!=t&&r?"".concat(t).concat(r):t)?this._renderer.setStyle(this._ngEl.nativeElement,i,t):this._renderer.removeStyle(this._ngEl.nativeElement,i)}},{key:"_applyChanges",value:function(e){var t=this;e.forEachRemovedItem((function(e){return t._setStyle(e.key,null)})),e.forEachAddedItem((function(e){return t._setStyle(e.key,e.currentValue)})),e.forEachChangedItem((function(e){return t._setStyle(e.key,e.currentValue)}))}},{key:"ngStyle",set:function(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(_u),ss(Bu),ss(Cu))},e.\u0275dir=Gt({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),e}(),yh=function(){function e(){w(this,e)}return C(e,[{key:"createSubscription",value:function(e,t){return e.subscribe({next:t,error:function(e){throw e}})}},{key:"dispose",value:function(e){e.unsubscribe()}},{key:"onDestroy",value:function(e){e.unsubscribe()}}]),e}(),bh=new(function(){function e(){w(this,e)}return C(e,[{key:"createSubscription",value:function(e,t){return e.then(t,(function(e){throw e}))}},{key:"dispose",value:function(e){}},{key:"onDestroy",value:function(e){}}]),e}()),_h=new yh,kh=function(){var e=function(){function e(t){w(this,e),this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}return C(e,[{key:"ngOnDestroy",value:function(){this._subscription&&this._dispose()}},{key:"transform",value:function(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}},{key:"_subscribe",value:function(e){var t=this;this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,(function(n){return t._updateLatestValue(e,n)}))}},{key:"_selectStrategy",value:function(t){if(gs(t))return bh;if(ys(t))return _h;throw n=e,Error("InvalidPipeArgument: '".concat(t,"' for pipe '").concat(He(n),"'"));var n}},{key:"_dispose",value:function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}},{key:"_updateLatestValue",value:function(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(Ma))},e.\u0275pipe=qt({name:"async",type:e,pure:!1}),e}(),wh=function(){var e=function e(){w(this,e)};return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)},providers:[{provide:ih,useClass:rh}]}),e}();function Sh(e){return"browser"===e}function Ch(e){return"server"===e}var Eh=function(){var e=function e(){w(this,e)};return e.\u0275prov=De({token:e,providedIn:"root",factory:function(){return new Oh(bt(jl),window,bt(Yi))}}),e}(),Oh=function(){function e(t,n,i){w(this,e),this.document=t,this.window=n,this.errorHandler=i,this.offset=function(){return[0,0]}}return C(e,[{key:"setOffset",value:function(e){this.offset=Array.isArray(e)?function(){return e}:e}},{key:"getScrollPosition",value:function(){return this.supportsScrolling()?[this.window.scrollX,this.window.scrollY]:[0,0]}},{key:"scrollToPosition",value:function(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}},{key:"scrollToAnchor",value:function(e){if(this.supportsScrolling()){var t=this.document.getElementById(e)||this.document.getElementsByName(e)[0];t&&this.scrollToElement(t)}}},{key:"setHistoryScrollRestoration",value:function(e){if(this.supportScrollRestoration()){var t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}},{key:"scrollToElement",value:function(e){var t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],i-r[1])}},{key:"supportScrollRestoration",value:function(){try{if(!this.window||!this.window.scrollTo)return!1;var e=xh(this.window.history)||xh(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(t){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window.scrollTo}catch(e){return!1}}}]),e}();function xh(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}var Th,Mh=function(e){g(n,e);var t=k(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"getProperty",value:function(e,t){return e[t]}},{key:"log",value:function(e){window.console&&window.console.log&&window.console.log(e)}},{key:"logGroup",value:function(e){window.console&&window.console.group&&window.console.group(e)}},{key:"logGroupEnd",value:function(){window.console&&window.console.groupEnd&&window.console.groupEnd()}},{key:"onAndCancel",value:function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}}},{key:"dispatchEvent",value:function(e,t){e.dispatchEvent(t)}},{key:"remove",value:function(e){return e.parentNode&&e.parentNode.removeChild(e),e}},{key:"getValue",value:function(e){return e.value}},{key:"createElement",value:function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(e){return e.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(e){return e instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}},{key:"getHistory",value:function(){return window.history}},{key:"getLocation",value:function(){return window.location}},{key:"getBaseHref",value:function(e){var t,n=Ph||(Ph=document.querySelector("base"))?Ph.getAttribute("href"):null;return null==n?null:(t=n,Th||(Th=document.createElement("a")),Th.setAttribute("href",t),"/"===Th.pathname.charAt(0)?Th.pathname:"/"+Th.pathname)}},{key:"resetBaseElement",value:function(){Ph=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"performanceNow",value:function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}},{key:"supportsCookies",value:function(){return!0}},{key:"getCookie",value:function(e){return oh(document.cookie,e)}}],[{key:"makeCurrent",value:function(){var e;e=new n,Nl||(Nl=e)}}]),n}(function(e){g(n,e);var t=k(n);function n(){return w(this,n),t.call(this)}return C(n,[{key:"supportsDOMEvents",value:function(){return!0}}]),n}(Vl)),Ph=null,Ih=new ct("TRANSITION_ID"),Ah=[{provide:Vc,useFactory:function(e,t,n){return function(){n.get(jc).donePromise.then((function(){var n=Ll();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter((function(t){return t.getAttribute("ng-transition")===e})).forEach((function(e){return n.remove(e)}))}))}},deps:[Ih,jl,Za],multi:!0}],Rh=function(){function e(){w(this,e)}return C(e,[{key:"addToWindow",value:function(e){tt.getAngularTestability=function(t){var n=!(arguments.length>1&&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},tt.getAllAngularTestabilities=function(){return e.getAllTestabilities()},tt.getAllAngularRootElements=function(){return e.getAllRootElements()},tt.frameworkStabilizers||(tt.frameworkStabilizers=[]),tt.frameworkStabilizers.push((function(e){var t=tt.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?Ll().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){var t;t=new e,vl=t}}]),e}(),Dh=new ct("EventManagerPlugins"),Nh=function(){var e=function(){function e(t,n){var i=this;w(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach((function(e){return e.manager=i})),this._plugins=t.slice().reverse()}return C(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<n.length;i++){var r=n[i];if(r.supports(e))return this._eventNameToPlugin.set(e,r),r}throw new Error("No event manager plugin found for event ".concat(e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(bt(Dh),bt(rl))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),Lh=function(){function e(t){w(this,e),this._doc=t}return C(e,[{key:"addGlobalEventListener",value:function(e,t,n){var i=Ll().getGlobalEventTarget(this._doc,e);if(!i)throw new Error("Unsupported event target ".concat(i," for event ").concat(t));return this.addEventListener(i,t,n)}}]),e}(),Vh=function(){var e=function(){function e(){w(this,e),this._stylesSet=new Set}return C(e,[{key:"addStyles",value:function(e){var t=this,n=new Set;e.forEach((function(e){t._stylesSet.has(e)||(t._stylesSet.add(e),n.add(e))})),this.onStylesAdded(n)}},{key:"onStylesAdded",value:function(e){}},{key:"getAllStyles",value:function(){return Array.from(this._stylesSet)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),jh=function(){var e=function(e){g(n,e);var t=k(n);function n(e){var i;return w(this,n),(i=t.call(this))._doc=e,i._hostNodes=new Set,i._styleNodes=new Set,i._hostNodes.add(e.head),i}return C(n,[{key:"_addStylesToHost",value:function(e,t){var n=this;e.forEach((function(e){var i=n._doc.createElement("style");i.textContent=e,n._styleNodes.add(t.appendChild(i))}))}},{key:"addHost",value:function(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}},{key:"removeHost",value:function(e){this._hostNodes.delete(e)}},{key:"onStylesAdded",value:function(e){var t=this;this._hostNodes.forEach((function(n){return t._addStylesToHost(e,n)}))}},{key:"ngOnDestroy",value:function(){this._styleNodes.forEach((function(e){return Ll().remove(e)}))}}]),n}(Vh);return e.\u0275fac=function(t){return new(t||e)(bt(jl))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),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/"},Bh=/%COMP%/g,Uh="%COMP%",zh="_nghost-".concat(Uh),Wh="_ngcontent-".concat(Uh);function Hh(e,t,n){for(var i=0;i<t.length;i++){var r=t[i];Array.isArray(r)?Hh(e,r,n):(r=r.replace(Bh,e),n.push(r))}return n}function Gh(e){return function(t){if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}var qh=function(){var e=function(){function e(t,n,i){w(this,e),this.eventManager=t,this.sharedStylesHost=n,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new Zh(t)}return C(e,[{key:"createRenderer",value:function(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case Nt.Emulated:var n=this.rendererByCompId.get(t.id);return n||(n=new Qh(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n;case Nt.Native:case Nt.ShadowDom:return new Yh(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){var i=Hh(t.id,t.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}},{key:"begin",value:function(){}},{key:"end",value:function(){}}]),e}();return e.\u0275fac=function(t){return new(t||e)(bt(Nh),bt(jh),bt(Fc))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),Zh=function(){function e(t){w(this,e),this.eventManager=t,this.data=Object.create(null)}return C(e,[{key:"destroy",value:function(){}},{key:"createElement",value:function(e,t){return t?document.createElementNS(Fh[t]||t,e):document.createElement(e)}},{key:"createComment",value:function(e){return document.createComment(e)}},{key:"createText",value:function(e){return document.createTextNode(e)}},{key:"appendChild",value:function(e,t){e.appendChild(t)}},{key:"insertBefore",value:function(e,t,n){e&&e.insertBefore(t,n)}},{key:"removeChild",value:function(e,t){e&&e.removeChild(t)}},{key:"selectRootElement",value:function(e,t){var n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error('The selector "'.concat(e,'" did not match any elements'));return t||(n.textContent=""),n}},{key:"parentNode",value:function(e){return e.parentNode}},{key:"nextSibling",value:function(e){return e.nextSibling}},{key:"setAttribute",value:function(e,t,n,i){if(i){t=i+":"+t;var r=Fh[i];r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}},{key:"removeAttribute",value:function(e,t,n){if(n){var i=Fh[n];i?e.removeAttributeNS(i,t):e.removeAttribute("".concat(n,":").concat(t))}else e.removeAttribute(t)}},{key:"addClass",value:function(e,t){e.classList.add(t)}},{key:"removeClass",value:function(e,t){e.classList.remove(t)}},{key:"setStyle",value:function(e,t,n,i){i&Su.DashCase?e.style.setProperty(t,n,i&Su.Important?"important":""):e.style[t]=n}},{key:"removeStyle",value:function(e,t,n){n&Su.DashCase?e.style.removeProperty(t):e.style[t]=""}},{key:"setProperty",value:function(e,t,n){e[t]=n}},{key:"setValue",value:function(e,t){e.nodeValue=t}},{key:"listen",value:function(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,Gh(n)):this.eventManager.addEventListener(e,t,Gh(n))}}]),e}(),Qh=function(e){g(n,e);var t=k(n);function n(e,i,r,o){var a;w(this,n),(a=t.call(this,e)).component=r;var s=Hh(o+"-"+r.id,r.styles,[]);return i.addStyles(s),a.contentAttr=Wh.replace(Bh,o+"-"+r.id),a.hostAttr=zh.replace(Bh,o+"-"+r.id),a}return C(n,[{key:"applyToHost",value:function(e){r(i(n.prototype),"setAttribute",this).call(this,e,this.hostAttr,"")}},{key:"createElement",value:function(e,t){var o=r(i(n.prototype),"createElement",this).call(this,e,t);return r(i(n.prototype),"setAttribute",this).call(this,o,this.contentAttr,""),o}}]),n}(Zh),Yh=function(e){g(n,e);var t=k(n);function n(e,i,r,o){var a;w(this,n),(a=t.call(this,e)).sharedStylesHost=i,a.hostEl=r,a.component=o,a.shadowRoot=o.encapsulation===Nt.ShadowDom?r.attachShadow({mode:"open"}):r.createShadowRoot(),a.sharedStylesHost.addHost(a.shadowRoot);for(var s=Hh(o.id,o.styles,[]),u=0;u<s.length;u++){var c=document.createElement("style");c.textContent=s[u],a.shadowRoot.appendChild(c)}return a}return C(n,[{key:"nodeOrShadowRoot",value:function(e){return e===this.hostEl?this.shadowRoot:e}},{key:"destroy",value:function(){this.sharedStylesHost.removeHost(this.shadowRoot)}},{key:"appendChild",value:function(e,t){return r(i(n.prototype),"appendChild",this).call(this,this.nodeOrShadowRoot(e),t)}},{key:"insertBefore",value:function(e,t,o){return r(i(n.prototype),"insertBefore",this).call(this,this.nodeOrShadowRoot(e),t,o)}},{key:"removeChild",value:function(e,t){return r(i(n.prototype),"removeChild",this).call(this,this.nodeOrShadowRoot(e),t)}},{key:"parentNode",value:function(e){return this.nodeOrShadowRoot(r(i(n.prototype),"parentNode",this).call(this,this.nodeOrShadowRoot(e)))}}]),n}(Zh),Kh=function(){var e=function(e){g(n,e);var t=k(n);function n(e){return w(this,n),t.call(this,e)}return C(n,[{key:"supports",value:function(e){return!0}},{key:"addEventListener",value:function(e,t,n){var i=this;return e.addEventListener(t,n,!1),function(){return i.removeEventListener(e,t,n)}}},{key:"removeEventListener",value:function(e,t,n){return e.removeEventListener(t,n)}}]),n}(Lh);return e.\u0275fac=function(t){return new(t||e)(bt(jl))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),Jh=["alt","control","meta","shift"],Xh={"\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"},$h={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"},ed={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},td=function(){var e=function(e){g(n,e);var t=k(n);function n(e){return w(this,n),t.call(this,e)}return C(n,[{key:"supports",value:function(e){return null!=n.parseEventName(e)}},{key:"addEventListener",value:function(e,t,i){var r=n.parseEventName(t),o=n.eventCallback(r.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular((function(){return Ll().onAndCancel(e,r.domEventName,o)}))}}],[{key:"parseEventName",value:function(e){var t=e.toLowerCase().split("."),i=t.shift();if(0===t.length||"keydown"!==i&&"keyup"!==i)return null;var r=n._normalizeKey(t.pop()),o="";if(Jh.forEach((function(e){var n=t.indexOf(e);n>-1&&(t.splice(n,1),o+=e+".")})),o+=r,0!=t.length||0===r.length)return null;var a={};return a.domEventName=i,a.fullKey=o,a}},{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&&$h.hasOwnProperty(t)&&(t=$h[t]))}return Xh[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Jh.forEach((function(i){i!=n&&(0,ed[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}(Lh);return e.\u0275fac=function(t){return new(t||e)(bt(jl))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),nd=function(){var e=function e(){w(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=De({factory:function(){return bt(id)},token:e,providedIn:"root"}),e}(),id=function(){var e=function(e){g(n,e);var t=k(n);function n(e){var i;return w(this,n),(i=t.call(this))._doc=e,i}return C(n,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case Ir.NONE:return t;case Ir.HTML:return ir(t,"HTML")?nr(t):Mr(this._doc,String(t));case Ir.STYLE:return ir(t,"Style")?nr(t):t;case Ir.SCRIPT:if(ir(t,"Script"))return nr(t);throw new Error("unsafe value used in a script context");case Ir.URL:return rr(t),ir(t,"URL")?nr(t):dr(String(t));case Ir.RESOURCE_URL:if(ir(t,"ResourceURL"))return nr(t);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(e," (see http://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return new Ji(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return new Xi(e)}},{key:"bypassSecurityTrustScript",value:function(e){return new $i(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return new er(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return new tr(e)}}]),n}(nd);return e.\u0275fac=function(t){return new(t||e)(bt(jl))},e.\u0275prov=De({factory:function(){return e=bt(lt),new id(e.get(jl));var e},token:e,providedIn:"root"}),e}(),rd=_l(Al,"browser",[{provide:Wc,useValue:"browser"},{provide:zc,useValue:function(){Mh.makeCurrent(),Rh.init()},multi:!0},{provide:jl,useFactory:function(){return function(e){dn=e}(document),document},deps:[]}]),od=[[],{provide:Aa,useValue:"root"},{provide:Yi,useFactory:function(){return new Yi},deps:[]},{provide:Dh,useClass:Kh,multi:!0,deps:[jl,rl,Wc]},{provide:Dh,useClass:td,multi:!0,deps:[jl]},[],{provide:qh,useClass:qh,deps:[Nh,jh,Fc]},{provide:wu,useExisting:qh},{provide:Vh,useExisting:jh},{provide:jh,useClass:jh,deps:[jl]},{provide:fl,useClass:fl,deps:[rl]},{provide:Nh,useClass:Nh,deps:[Dh,rl]},[]],ad=function(){var e=function(){function e(t){if(w(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 C(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:Fc,useValue:t.appId},{provide:Ih,useExisting:Fc},Ah]}}}]),e}();return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)(bt(e,12))},providers:od,imports:[wh,Dl]}),e}();function sd(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length){var i=t[0];if(O(i))return ud(i,null);if(x(i)&&Object.getPrototypeOf(i)===Object.prototype){var r=Object.keys(i);return ud(r.map((function(e){return i[e]})),r)}}if("function"==typeof t[t.length-1]){var o=t.pop();return ud(t=1===t.length&&O(t[0])?t[0]:t,null).pipe(K((function(e){return o.apply(void 0,d(e))})))}return ud(t,null)}function ud(e,t){return new z((function(n){var i=e.length;if(0!==i)for(var r=new Array(i),o=0,a=0,s=function(s){var u=ae(e[s]),c=!1;n.add(u.subscribe({next:function(e){c||(c=!0,a++),r[s]=e},error:function(e){return n.error(e)},complete:function(){++o!==i&&c||(a===i&&n.next(t?t.reduce((function(e,t,n){return e[t]=r[n],e}),{}):r),n.complete())}}))},u=0;u<i;u++)s(u);else n.complete()}))}"undefined"!=typeof window&&window;var cd=new ct("NgValueAccessor"),ld={provide:cd,useExisting:Ze((function(){return hd})),multi:!0},hd=function(){var e=function(){function e(t,n){w(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return C(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(Cu),ss(_u))},e.\u0275dir=Gt({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,t){1&e&&bs("change",(function(e){return t.onChange(e.target.checked)}))("blur",(function(){return t.onTouched()}))},features:[vu([ld])]}),e}(),dd={provide:cd,useExisting:Ze((function(){return pd})),multi:!0},fd=new ct("CompositionEventMode"),pd=function(){var e=function(){function e(t,n,i){var r;w(this,e),this._renderer=t,this._elementRef=n,this._compositionMode=i,this.onChange=function(e){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(r=Ll()?Ll().getUserAgent():"",!/android (\d+)/.test(r.toLowerCase())))}return C(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_handleInput",value:function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(Cu),ss(_u),ss(fd,8))},e.\u0275dir=Gt({type:e,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(e,t){1&e&&bs("input",(function(e){return t._handleInput(e.target.value)}))("blur",(function(){return t.onTouched()}))("compositionstart",(function(){return t._compositionStart()}))("compositionend",(function(e){return t._compositionEnd(e.target.value)}))},features:[vu([dd])]}),e}(),vd=function(){var e=function(){function e(){w(this,e)}return C(e,[{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;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}},{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}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Gt({type:e}),e}(),md=function(){var e=function(e){g(n,e);var t=k(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(vd);return e.\u0275fac=function(t){return gd(t||e)},e.\u0275dir=Gt({type:e,features:[nu]}),e}(),gd=Gi(md),yd=function(e){g(n,e);var t=k(n);function n(){var e;return w(this,n),(e=t.apply(this,arguments))._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return C(n,[{key:"validator",get:function(){}},{key:"asyncValidator",get:function(){}}]),n}(vd),bd=function(){function e(t){w(this,e),this._cd=t}return C(e,[{key:"ngClassUntouched",get:function(){return!!this._cd.control&&this._cd.control.untouched}},{key:"ngClassTouched",get:function(){return!!this._cd.control&&this._cd.control.touched}},{key:"ngClassPristine",get:function(){return!!this._cd.control&&this._cd.control.pristine}},{key:"ngClassDirty",get:function(){return!!this._cd.control&&this._cd.control.dirty}},{key:"ngClassValid",get:function(){return!!this._cd.control&&this._cd.control.valid}},{key:"ngClassInvalid",get:function(){return!!this._cd.control&&this._cd.control.invalid}},{key:"ngClassPending",get:function(){return!!this._cd.control&&this._cd.control.pending}}]),e}(),_d=function(){var e=function(e){g(n,e);var t=k(n);function n(e){return w(this,n),t.call(this,e)}return n}(bd);return e.\u0275fac=function(t){return new(t||e)(ss(yd,2))},e.\u0275dir=Gt({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&Fs("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[nu]}),e}(),kd=function(){var e=function(e){g(n,e);var t=k(n);function n(e){return w(this,n),t.call(this,e)}return n}(bd);return e.\u0275fac=function(t){return new(t||e)(ss(md,2))},e.\u0275dir=Gt({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&Fs("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[nu]}),e}();function wd(e){return null==e||0===e.length}function Sd(e){return null!=e&&"number"==typeof e.length}var Cd=new ct("NgValidators"),Ed=new ct("NgAsyncValidators"),Od=/^(?=.{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])?)*$/,xd=function(){function e(){w(this,e)}return C(e,null,[{key:"min",value:function(e){return function(t){if(wd(t.value)||wd(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}},{key:"max",value:function(e){return function(t){if(wd(t.value)||wd(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}},{key:"required",value:function(e){return wd(e.value)?{required:!0}:null}},{key:"requiredTrue",value:function(e){return!0===e.value?null:{required:!0}}},{key:"email",value:function(e){return wd(e.value)||Od.test(e.value)?null:{email:!0}}},{key:"minLength",value:function(e){return function(t){return wd(t.value)||!Sd(t.value)?null:t.value.length<e?{minlength:{requiredLength:e,actualLength:t.value.length}}:null}}},{key:"maxLength",value:function(e){return function(t){return Sd(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}}},{key:"pattern",value:function(t){return t?("string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),n=new RegExp(i)):(i=t.toString(),n=t),function(e){if(wd(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:i,actualValue:t}}}):e.nullValidator;var n,i}},{key:"nullValidator",value:function(e){return null}},{key:"compose",value:function(e){if(!e)return null;var t=e.filter(Td);return 0==t.length?null:function(e){return Pd(Id(e,t))}}},{key:"composeAsync",value:function(e){if(!e)return null;var t=e.filter(Td);return 0==t.length?null:function(e){return sd(Id(e,t).map(Md)).pipe(K(Pd))}}}]),e}();function Td(e){return null!=e}function Md(e){var t=gs(e)?ae(e):e;return ys(t),t}function Pd(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 Id(e,t){return t.map((function(t){return t(e)}))}function Ad(e){return e.map((function(e){return function(e){return!e.validate}(e)?e:function(t){return e.validate(t)}}))}var Rd={provide:cd,useExisting:Ze((function(){return Dd})),multi:!0},Dd=function(){var e=function(){function e(t,n){w(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return C(e,[{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)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(Cu),ss(_u))},e.\u0275dir=Gt({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&bs("input",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},features:[vu([Rd])]}),e}(),Nd={provide:cd,useExisting:Ze((function(){return Vd})),multi:!0},Ld=function(){var e=function(){function e(){w(this,e),this._accessors=[]}return C(e,[{key:"add",value:function(e,t){this._accessors.push([e,t])}},{key:"remove",value:function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}},{key:"select",value:function(e){var t=this;this._accessors.forEach((function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)}))}},{key:"_isSameGroup",value:function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),Vd=function(){var e=function(){function e(t,n,i,r){w(this,e),this._renderer=t,this._elementRef=n,this._registry=i,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return C(e,[{key:"ngOnInit",value:function(){this._control=this._injector.get(yd),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}},{key:"registerOnChange",value:function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}}},{key:"fireUncheck",value:function(e){this.writeValue(e)}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_checkName",value:function(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(Cu),ss(_u),ss(Ld),ss(Za))},e.\u0275dir=Gt({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&bs("change",(function(){return t.onChange()}))("blur",(function(){return t.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[vu([Nd])]}),e}(),jd={provide:cd,useExisting:Ze((function(){return Fd})),multi:!0},Fd=function(){var e=function(){function e(t,n){w(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return C(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(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)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(Cu),ss(_u))},e.\u0275dir=Gt({type:e,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e,t){1&e&&bs("change",(function(e){return t.onChange(e.target.value)}))("input",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},features:[vu([jd])]}),e}(),Bd={provide:cd,useExisting:Ze((function(){return Ud})),multi:!0},Ud=function(){var e=function(){function e(t,n){w(this,e),this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=Object.is}return C(e,[{key:"writeValue",value:function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=function(e,t){return null==e?"".concat(t):(t&&"object"==typeof t&&(t="Object"),"".concat(e,": ").concat(t).slice(0,50))}(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(e){for(var t=0,n=Array.from(this._optionMap.keys());t<n.length;t++){var i=n[t];if(this._compareWith(this._optionMap.get(i),e))return i}return null}},{key:"_getOptionValue",value:function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}},{key:"compareWith",set:function(e){this._compareWith=e}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(Cu),ss(_u))},e.\u0275dir=Gt({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,t){1&e&&bs("change",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},inputs:{compareWith:"compareWith"},features:[vu([Bd])]}),e}(),zd={provide:cd,useExisting:Ze((function(){return Wd})),multi:!0},Wd=function(){var e=function(){function e(t,n){w(this,e),this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=Object.is}return C(e,[{key:"writeValue",value:function(e){var t,n=this;if(this.value=e,Array.isArray(e)){var i=e.map((function(e){return n._getOptionId(e)}));t=function(e,t){e._setSelected(i.indexOf(t.toString())>-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){var i=[];if(void 0!==n.selectedOptions)for(var r=n.selectedOptions,o=0;o<r.length;o++){var a=r.item(o),s=t._getOptionValue(a.value);i.push(s)}else for(var u=n.options,c=0;c<u.length;c++){var l=u.item(c);if(l.selected){var h=t._getOptionValue(l.value);i.push(h)}}t.value=i,e(i)}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_registerOption",value:function(e){var t=(this._idCounter++).toString();return this._optionMap.set(t,e),t}},{key:"_getOptionId",value:function(e){for(var t=0,n=Array.from(this._optionMap.keys());t<n.length;t++){var i=n[t];if(this._compareWith(this._optionMap.get(i)._value,e))return i}return null}},{key:"_getOptionValue",value:function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e}},{key:"compareWith",set:function(e){this._compareWith=e}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(Cu),ss(_u))},e.\u0275dir=Gt({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(e,t){1&e&&bs("change",(function(e){return t.onChange(e.target)}))("blur",(function(){return t.onTouched()}))},inputs:{compareWith:"compareWith"},features:[vu([zd])]}),e}();function Hd(e,t){e.validator=xd.compose([e.validator,t.validator]),e.asyncValidator=xd.composeAsync([e.asyncValidator,t.asyncValidator]),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&&Gd(e,t)}))}(e,t),function(e,t){e.registerOnChange((function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)}))}(e,t),function(e,t){t.valueAccessor.registerOnTouched((function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&Gd(e,t),"submit"!==e.updateOn&&e.markAsTouched()}))}(e,t),t.valueAccessor.setDisabledState&&e.registerOnDisabledChange((function(e){t.valueAccessor.setDisabledState(e)})),t._rawValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange((function(){return e.updateValueAndValidity()}))})),t._rawAsyncValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange((function(){return e.updateValueAndValidity()}))}))}function Gd(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function qd(e,t){e.validator=xd.compose([e.validator,t.validator]),e.asyncValidator=xd.composeAsync([e.asyncValidator,t.asyncValidator])}function Zd(e){return null!=e?xd.compose(Ad(e)):null}function Qd(e){return null!=e?xd.composeAsync(Ad(e)):null}function Yd(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}var Kd=[hd,Fd,Dd,Ud,Wd,Vd];function Jd(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 Xd(e,t){if(!t)return null;Array.isArray(t);var n=void 0,i=void 0,r=void 0;return t.forEach((function(e){var t;e.constructor===pd?n=e:(t=e,Kd.some((function(e){return t.constructor===e}))?i=e:r=e)})),r||i||n||null}function $d(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var ef="VALID",tf="INVALID",nf="PENDING",rf="DISABLED";function of(e){return(cf(e)?e.validators:e)||null}function af(e){return Array.isArray(e)?Zd(e):e||null}function sf(e,t){return(cf(t)?t.asyncValidators:e)||null}function uf(e){return Array.isArray(e)?Qd(e):e||null}function cf(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var lf=function(){function e(t,n){w(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=af(this._rawValidators),this._composedAsyncValidatorFn=uf(this._rawAsyncValidators)}return C(e,[{key:"setValidators",value:function(e){this._rawValidators=e,this._composedValidatorFn=af(e)}},{key:"setAsyncValidators",value:function(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=uf(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=nf,!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=rf,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=ef,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(),this.status!==ef&&this.status!==nf||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()?rf:ef}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status=nf,this._hasOwnPendingAsyncValidator=!0;var n=Md(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 df?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof ff&&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:"_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 vc,this.statusChanges=new vc}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?rf:this.errors?tf:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(nf)?nf:this._anyControlsHaveStatus(tf)?tf:ef}},{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){cf(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}},{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 this.status===ef}},{key:"invalid",get:function(){return this.status===tf}},{key:"pending",get:function(){return this.status==nf}},{key:"disabled",get:function(){return this.status===rf}},{key:"enabled",get:function(){return this.status!==rf}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}}]),e}(),hf=function(e){g(n,e);var t=k(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return w(this,n),(e=t.call(this,of(r),sf(o,r)))._onChange=[],e._applyFormState(i),e._setUpdateStrategy(r),e.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),e._initObservables(),e}return C(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:"_clearChangeFns",value:function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(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}(lf),df=function(e){g(n,e);var t=k(n);function n(e,i,r){var o;return w(this,n),(o=t.call(this,of(i),sf(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return C(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]:{};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 hf?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){return e(t.controls[n],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);t<n.length;t++){var i=n[t],r=this.controls[i];if(this.contains(i)&&e(r))return!0}return!1}},{key:"_reduceValue",value:function(){var e=this;return this._reduceChildren({},(function(t,n,i){return(n.enabled||e.disabled)&&(t[i]=n.value),t}))}},{key:"_reduceChildren",value:function(e,t){var n=e;return this._forEachChild((function(e,i){n=t(n,e,i)})),n}},{key:"_allControlsDisabled",value:function(){for(var e=0,t=Object.keys(this.controls);e<t.length;e++)if(this.controls[t[e]].enabled)return!1;return Object.keys(this.controls).length>0||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}(lf),ff=function(e){g(n,e);var t=k(n);function n(e,i,r){var o;return w(this,n),(o=t.call(this,of(i),sf(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return C(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:"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]:{};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 hf?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=v(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)}},{key:"length",get:function(){return this.controls.length}}]),n}(lf),pf={provide:md,useExisting:Ze((function(){return mf}))},vf=function(){return Promise.resolve(null)}(),mf=function(){var e=function(e){g(n,e);var t=k(n);function n(e,i){var r;return w(this,n),(r=t.call(this)).submitted=!1,r._directives=[],r.ngSubmit=new vc,r.form=new df({},Zd(e),Qd(i)),r}return C(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"addControl",value:function(e){var t=this;vf.then((function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),Hd(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;vf.then((function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),$d(t._directives,e)}))}},{key:"addFormGroup",value:function(e){var t=this;vf.then((function(){var n=t._findContainer(e.path),i=new df({});qd(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})}))}},{key:"removeFormGroup",value:function(e){var t=this;vf.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;vf.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,Jd(this.form,this._directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;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}},{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}}]),n}(md);return e.\u0275fac=function(t){return new(t||e)(ss(Cd,10),ss(Ed,10))},e.\u0275dir=Gt({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&bs("submit",(function(e){return t.onSubmit(e)}))("reset",(function(){return t.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[vu([pf]),nu]}),e}(),gf={provide:yd,useExisting:Ze((function(){return bf}))},yf=function(){return Promise.resolve(null)}(),bf=function(){var e=function(e){g(n,e);var t=k(n);function n(e,i,r,a){var s;return w(this,n),(s=t.call(this)).control=new hf,s._registered=!1,s.update=new vc,s._parent=e,s._rawValidators=i||[],s._rawAsyncValidators=r||[],s.valueAccessor=Xd(o(s),a),s}return C(n,[{key:"ngOnChanges",value:function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),Yd(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{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(){Hd(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;yf.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;yf.then((function(){i&&!t.control.disabled?t.control.disable():!i&&t.control.disabled&&t.control.enable()}))}},{key:"path",get:function(){return this._parent?(e=this.name,[].concat(d(this._parent.path),[e])):[this.name];var e}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return Zd(this._rawValidators)}},{key:"asyncValidator",get:function(){return Qd(this._rawAsyncValidators)}}]),n}(yd);return e.\u0275fac=function(t){return new(t||e)(ss(md,9),ss(Cd,10),ss(Ed,10),ss(cd,10))},e.\u0275dir=Gt({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[vu([gf]),nu,sn]}),e}(),_f=function(){var e=function e(){w(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Gt({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e}(),kf=new ct("NgModelWithFormControlWarning"),wf={provide:yd,useExisting:Ze((function(){return Sf}))},Sf=function(){var e=function(e){g(n,e);var t=k(n);function n(e,i,r,a){var s;return w(this,n),(s=t.call(this))._ngModelWarningConfig=a,s.update=new vc,s._ngModelWarningSent=!1,s._rawValidators=e||[],s._rawAsyncValidators=i||[],s.valueAccessor=Xd(o(s),r),s}return C(n,[{key:"ngOnChanges",value:function(e){var t,i;this._isControlChanged(e)&&(Hd(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),Yd(e,this.viewModel)&&(t=n,this,i=this._ngModelWarningConfig,sr()&&"never"!==i&&((null!==i&&"once"!==i||t._ngModelWarningSentOnce)&&("always"!==i||this._ngModelWarningSent)||(t._ngModelWarningSentOnce=!0,this._ngModelWarningSent=!0)),this.form.setValue(this.model),this.viewModel=this.model)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_isControlChanged",value:function(e){return e.hasOwnProperty("form")}},{key:"isDisabled",set:function(e){}},{key:"path",get:function(){return[]}},{key:"validator",get:function(){return Zd(this._rawValidators)}},{key:"asyncValidator",get:function(){return Qd(this._rawAsyncValidators)}},{key:"control",get:function(){return this.form}}]),n}(yd);return e.\u0275fac=function(t){return new(t||e)(ss(Cd,10),ss(Ed,10),ss(cd,10),ss(kf,8))},e.\u0275dir=Gt({type:e,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[vu([wf]),nu,sn]}),e._ngModelWarningSentOnce=!1,e}(),Cf={provide:md,useExisting:Ze((function(){return Ef}))},Ef=function(){var e=function(e){g(n,e);var t=k(n);function n(e,i){var r;return w(this,n),(r=t.call(this))._validators=e,r._asyncValidators=i,r.submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new vc,r}return C(n,[{key:"ngOnChanges",value:function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}},{key:"addControl",value:function(e){var t=this.form.get(e.path);return Hd(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){$d(this.directives,e)}},{key:"addFormGroup",value:function(e){var t=this.form.get(e.path);qd(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormGroup",value:function(e){}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"addFormArray",value:function(e){var t=this.form.get(e.path);qd(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormArray",value:function(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,Jd(this.form,this.directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(e),this.submitted=!1}},{key:"_updateDomValue",value:function(){var e=this;this.directives.forEach((function(t){var n=e.form.get(t.path);t.control!==n&&(function(e,t){var n=function(){};t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n),t._rawValidators.forEach((function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)})),t._rawAsyncValidators.forEach((function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)})),e&&e._clearChangeFns()}(t.control,t),n&&Hd(n,t),t.control=n)})),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_updateRegistrations",value:function(){var e=this;this.form._registerOnCollectionChange((function(){return e._updateDomValue()})),this._oldForm&&this._oldForm._registerOnCollectionChange((function(){})),this._oldForm=this.form}},{key:"_updateValidators",value:function(){var e=Zd(this._validators);this.form.validator=xd.compose([this.form.validator,e]);var t=Qd(this._asyncValidators);this.form.asyncValidator=xd.composeAsync([this.form.asyncValidator,t])}},{key:"_checkFormPresent",value:function(){}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}}]),n}(md);return e.\u0275fac=function(t){return new(t||e)(ss(Cd,10),ss(Ed,10))},e.\u0275dir=Gt({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&bs("submit",(function(e){return t.onSubmit(e)}))("reset",(function(){return t.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[vu([Cf]),nu,sn]}),e}(),Of=function(){var e=function e(){w(this,e)};return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)}}),e}();function xf(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}var Tf=function(){var e=function(){function e(){w(this,e)}return C(e,[{key:"group",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this._reduceControls(e),i=null,r=null,o=void 0;return null!=t&&(xf(t)?(i=null!=t.validators?t.validators:null,r=null!=t.asyncValidators?t.asyncValidators:null,o=null!=t.updateOn?t.updateOn:void 0):(i=null!=t.validator?t.validator:null,r=null!=t.asyncValidator?t.asyncValidator:null)),new df(n,{asyncValidators:r,updateOn:o,validators:i})}},{key:"control",value:function(e,t,n){return new hf(e,t,n)}},{key:"array",value:function(e,t,n){var i=this,r=e.map((function(e){return i._createControl(e)}));return new ff(r,t,n)}},{key:"_reduceControls",value:function(e){var t=this,n={};return Object.keys(e).forEach((function(i){n[i]=t._createControl(e[i])})),n}},{key:"_createControl",value:function(e){return e instanceof hf||e instanceof df||e instanceof ff?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),Mf=function(){var e=function e(){w(this,e)};return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)},providers:[Ld],imports:[Of]}),e}(),Pf=function(){var e=function(){function e(){w(this,e)}return C(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:[{provide:kf,useValue:t.warnOnNgModelWithFormControl}]}}}]),e}();return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)},providers:[Tf,Ld],imports:[Of]}),e}(),If=function e(){w(this,e)},Af=function e(){w(this,e)},Rf="*";function Df(e,t){return{type:7,name:e,definitions:t,options:{}}}function Nf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function Lf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:3,steps:e,options:t}}function Vf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function jf(e){return{type:6,styles:e,offset:null}}function Ff(e,t,n){return{type:0,name:e,styles:t,options:n}}function Bf(e){return{type:5,steps:e}}function Uf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:n}}function zf(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}function Wf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:t,options:n}}function Hf(e){Promise.resolve(null).then(e)}var Gf=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;w(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+n}return C(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;Hf((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){}},{key:"getPosition",value:function(){return 0}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}}]),e}(),qf=function(){function e(t){var n=this;w(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,o=0,a=this.players.length;0==a?Hf((function(){return n._onFinish()})):this.players.forEach((function(e){e.onDone((function(){++i==a&&n._onFinish()})),e.onDestroy((function(){++r==a&&n._onDestroy()})),e.onStart((function(){++o==a&&n._onStart()}))})),this.totalTime=this.players.reduce((function(e,t){return Math.max(e,t.totalTime)}),0)}return C(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=0;return this.players.forEach((function(t){var n=t.getPosition();e=Math.min(n,e)})),e}},{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}(),Zf="!";function Qf(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Yf(e){switch(e.length){case 0:return new Gf;case 1:return e[0];default:return new qf(e)}}function Kf(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=[],s=[],u=-1,c=null;if(i.forEach((function(e){var n=e.offset,i=n==u,l=i&&c||{};Object.keys(e).forEach((function(n){var i=n,s=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,a),s){case Zf:s=r[n];break;case Rf:s=o[n];break;default:s=t.normalizeStyleValue(n,i,s,a)}l[i]=s})),i||s.push(l),c=l,u=n})),a.length){var l="\n - ";throw new Error("Unable to animate due to the following errors:".concat(l).concat(a.join(l)))}return s}function Jf(e,t,n,i){switch(t){case"start":e.onStart((function(){return i(n&&Xf(n,"start",e))}));break;case"done":e.onDone((function(){return i(n&&Xf(n,"done",e))}));break;case"destroy":e.onDestroy((function(){return i(n&&Xf(n,"destroy",e))}))}}function Xf(e,t,n){var i=n.totalTime,r=$f(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==i?e.totalTime:i,!!n.disabled),o=e._data;return null!=o&&(r._data=o),r}function $f(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:t,fromState:n,toState:i,phaseName:r,totalTime:o,disabled:!!a}}function ep(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 tp(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var np=function(e,t){return!1},ip=function(e,t){return!1},rp=function(e,t,n){return[]},op=Qf();(op||"undefined"!=typeof Element)&&(np=function(e,t){return e.contains(t)},ip=function(){if(op||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])}:ip}(),rp=function(e,t,n){var i=[];if(n)i.push.apply(i,d(e.querySelectorAll(t)));else{var r=e.querySelector(t);r&&i.push(r)}return i});var ap=null,sp=!1;function up(e){ap||(ap=("undefined"!=typeof document?document.body:null)||{},sp=!!ap.style&&"WebkitAppearance"in ap.style);var t=!0;return ap.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&!(t=e in ap.style)&&sp&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in ap.style),t}var cp=ip,lp=np,hp=rp;function dp(e){var t={};return Object.keys(e).forEach((function(n){var i=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[i]=e[n]})),t}var fp=function(){var e=function(){function e(){w(this,e)}return C(e,[{key:"validateStyleProperty",value:function(e){return up(e)}},{key:"matchesElement",value:function(e,t){return cp(e,t)}},{key:"containsElement",value:function(e,t){return lp(e,t)}},{key:"query",value:function(e,t,n){return hp(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return n||""}},{key:"animate",value:function(e,t,n,i,r){return new Gf(n,i)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),pp=function(){var e=function e(){w(this,e)};return e.NOOP=new fp,e}(),vp="ng-enter",mp="ng-leave",gp="ng-trigger",yp=".ng-trigger",bp="ng-animating",_p=".ng-animating";function kp(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:wp(parseFloat(t[1]),t[2])}function wp(e,t){switch(t){case"s":return 1e3*e;default:return e}}function Sp(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){var i,r=0,o="";if("string"==typeof e){var a=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push('The provided timing value "'.concat(e,'" is invalid.')),{duration:0,delay:0,easing:""};i=wp(parseFloat(a[1]),a[2]);var s=a[3];null!=s&&(r=wp(parseFloat(s),a[4]));var u=a[5];u&&(o=u)}else i=e;if(!n){var c=!1,l=t.length;i<0&&(t.push("Duration values below 0 are not allowed for this animation step."),c=!0),r<0&&(t.push("Delay values below 0 are not allowed for this animation step."),c=!0),c&&t.splice(l,0,'The provided timing value "'.concat(e,'" is invalid.'))}return{duration:i,delay:r,easing:o}}(e,t,n)}function Cp(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach((function(n){t[n]=e[n]})),t}function Ep(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 Cp(e,n);return n}function Op(e,t,n){return n?t+":"+n+";":""}function xp(e){for(var t="",n=0;n<e.style.length;n++){var i=e.style.item(n);t+=Op(0,i,e.style.getPropertyValue(i))}for(var r in e.style)e.style.hasOwnProperty(r)&&!r.startsWith("_")&&(t+=Op(0,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[r]));e.setAttribute("style",t)}function Tp(e,t,n){e.style&&(Object.keys(t).forEach((function(i){var r=Lp(i);n&&!n.hasOwnProperty(i)&&(n[i]=e.style[r]),e.style[r]=t[i]})),Qf()&&xp(e))}function Mp(e,t){e.style&&(Object.keys(t).forEach((function(t){var n=Lp(t);e.style[n]=""})),Qf()&&xp(e))}function Pp(e){return Array.isArray(e)?1==e.length?e[0]:Vf(e):e}var Ip=new RegExp("".concat("{{","\\s*(.+?)\\s*").concat("}}"),"g");function Ap(e){var t=[];if("string"==typeof e){for(var n;n=Ip.exec(e);)t.push(n[1]);Ip.lastIndex=0}return t}function Rp(e,t,n){var i=e.toString(),r=i.replace(Ip,(function(e,i){var r=t[i];return t.hasOwnProperty(i)||(n.push("Please provide a value for the animation param ".concat(i)),r=""),r.toString()}));return r==i?e:r}function Dp(e){for(var t=[],n=e.next();!n.done;)t.push(n.value),n=e.next();return t}var Np=/-+([a-z0-9])/g;function Lp(e){return e.replace(Np,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t[1].toUpperCase()}))}function Vp(e,t){return 0===e||0===t}function jp(e,t,n){var i=Object.keys(n);if(i.length&&t.length){var r=t[0],o=[];if(i.forEach((function(e){r.hasOwnProperty(e)||o.push(e),r[e]=n[e]})),o.length)for(var a=function(){var n=t[s];o.forEach((function(t){n[t]=Bp(e,t)}))},s=1;s<t.length;s++)a()}return t}function Fp(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw new Error("Unable to resolve animation metadata node #".concat(t.type))}}function Bp(e,t){return window.getComputedStyle(e)[t]}var Up="*",zp=new Set(["true","1"]),Wp=new Set(["false","0"]);function Hp(e,t){var n=zp.has(e)||Wp.has(e),i=zp.has(t)||Wp.has(t);return function(r,o){var a=e==Up||e==r,s=t==Up||t==o;return!a&&n&&"boolean"==typeof r&&(a=r?zp.has(e):Wp.has(e)),!s&&i&&"boolean"==typeof o&&(s=o?zp.has(t):Wp.has(t)),a&&s}}var Gp=":self",qp=new RegExp("s*".concat(Gp,"s*,?"),"g");function Zp(e,t,n){return new Qp(e).build(t,n)}var Qp=function(){function e(t){w(this,e),this._driver=t}return C(e,[{key:"build",value:function(e,t){var n=new Yp(t);return this._resetContextStyleTimingState(n),Fp(this,Pp(e),n)}},{key:"_resetContextStyleTimingState",value:function(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}},{key:"visitTrigger",value:function(e,t){var n=this,i=t.queryCount=0,r=t.depCount=0,o=[],a=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach((function(e){if(n._resetContextStyleTimingState(t),0==e.type){var s=e,u=s.name;u.toString().split(/\s*,\s*/).forEach((function(e){s.name=e,o.push(n.visitState(s,t))})),s.name=u}else if(1==e.type){var c=n.visitTransition(e,t);i+=c.queryCount,r+=c.depCount,a.push(c)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")})),{type:7,name:e.name,states:o,transitions:a,queryCount:i,depCount:r,options:null}}},{key:"visitState",value:function(e,t){var n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){var r=new Set,o=i||{};if(n.styles.forEach((function(e){if(Kp(e)){var t=e;Object.keys(t).forEach((function(e){Ap(t[e]).forEach((function(e){o.hasOwnProperty(e)||r.add(e)}))}))}})),r.size){var a=Dp(r.values());t.errors.push('state("'.concat(e.name,'", ...) must define default values for all the following style substitutions: ').concat(a.join(", ")))}}return{type:0,name:e.name,style:n,options:i?{params:i}:null}}},{key:"visitTransition",value:function(e,t){t.queryCount=0,t.depCount=0;var n,i,r,o=Fp(this,Pp(e.animation),t);return{type:1,matchers:(n=e.expr,i=t.errors,r=[],"string"==typeof n?n.split(/\s*,\s*/).forEach((function(e){return function(e,t,n){if(":"==e[0]){var i=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t)<parseFloat(e)};default:return t.push('The transition alias value "'.concat(e,'" is not supported')),"* => *"}}(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 o=r[1],a=r[2],s=r[3];t.push(Hp(o,s)),"<"!=a[0]||o==Up&&s==Up||t.push(Hp(s,o))}(e,r,i)})):r.push(n),r),animation:o,queryCount:t.queryCount,depCount:t.depCount,options:Jp(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map((function(e){return Fp(n,e,t)})),options:Jp(e.options)}}},{key:"visitGroup",value:function(e,t){var n=this,i=t.currentTime,r=0,o=e.steps.map((function(e){t.currentTime=i;var o=Fp(n,e,t);return r=Math.max(r,t.currentTime),o}));return t.currentTime=r,{type:3,steps:o,options:Jp(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 Xp(Sp(e,t).duration,0,"");var i=e;if(i.split(/\s+/).some((function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)}))){var r=Xp(0,0,"");return r.dynamic=!0,r.strValue=i,r}return Xp((n=n||Sp(i,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;var r=e.styles?e.styles:jf({});if(5==r.type)n=this.visitKeyframes(r,t);else{var o=e.styles,a=!1;if(!o){a=!0;var s={};i.easing&&(s.easing=i.easing),o=jf(s)}t.currentTime+=i.duration+i.delay;var u=this.visitStyle(o,t);u.isEmptyStep=a,n=u}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==Rf?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(Kp(e)){var t=e,n=t.easing;if(n&&(r=n,delete t.easing),!i)for(var o in t)if(t[o].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,o=t.currentTime;i&&o>0&&(o-=i.duration+i.delay),e.styles.forEach((function(e){"string"!=typeof e&&Object.keys(e).forEach((function(i){if(n._driver.validateStyleProperty(i)){var a,s,u,c=t.collectedStyles[t.currentQuerySelector],l=c[i],h=!0;l&&(o!=r&&o>=l.startTime&&r<=l.endTime&&(t.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(l.startTime,'ms" and "').concat(l.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(o,'ms" and "').concat(r,'ms"')),h=!1),o=l.startTime),h&&(c[i]={startTime:o,endTime:r}),t.options&&(a=t.errors,s=t.options.params||{},(u=Ap(e[i])).length&&u.forEach((function(e){s.hasOwnProperty(e)||a.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,o=[],a=!1,s=!1,u=0,c=e.steps.map((function(e){var i=n._makeStyleAst(e,t),c=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(Kp(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}}));else if(Kp(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(i.styles),l=0;return null!=c&&(r++,l=i.offset=c),s=s||l<0||l>1,a=a||l<u,u=l,o.push(l),i}));s&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),a&&t.errors.push("Please ensure that all keyframe offsets are in order");var l=e.steps.length,h=0;r>0&&r<l?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==r&&(h=1/(l-1));var d=l-1,f=t.currentTime,p=t.currentAnimateTimings,v=p.duration;return c.forEach((function(e,r){var a=h>0?r==d?1:h*r:o[r],s=a*v;t.currentTime=f+p.delay+s,p.duration=s,n._validateStyleAst(e,t),e.offset=a,i.styles.push(e)})),i}},{key:"visitReference",value:function(e,t){return{type:8,animation:Fp(this,Pp(e.animation),t),options:Jp(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:Jp(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Jp(e.options)}}},{key:"visitQuery",value:function(e,t){var n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;var r=l(function(e){var t=!!e.split(/\s*,\s*/).find((function(e){return e==Gp}));return t&&(e=e.replace(qp,"")),[e=e.replace(/@\*/g,yp).replace(/@\w+/g,(function(e){return".ng-trigger-"+e.substr(1)})).replace(/:animating/g,_p),t]}(e.selector),2),o=r[0],a=r[1];t.currentQuerySelector=n.length?n+" "+o:o,ep(t.collectedStyles,t.currentQuerySelector,{});var s=Fp(this,Pp(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:s,originalSelector:e.selector,options:Jp(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"}:Sp(e.timings,t.errors,!0);return{type:12,animation:Fp(this,Pp(e.animation),t),timings:n,options:null}}}]),e}(),Yp=function e(t){w(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 Kp(e){return!Array.isArray(e)&&"object"==typeof e}function Jp(e){var t;return e?(e=Cp(e)).params&&(e.params=(t=e.params)?Cp(t):null):e={},e}function Xp(e,t,n){return{duration:e,delay:t,easing:n}}function $p(e,t,n,i,r,o){var a=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:o,totalTime:r+o,easing:a,subTimeline:s}}var ev=function(){function e(){w(this,e),this._map=new Map}return C(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,d(t))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),tv=new RegExp(":enter","g"),nv=new RegExp(":leave","g");function iv(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new rv).buildKeyframes(e,t,n,i,r,o,a,s,u,c)}var rv=function(){function e(){w(this,e)}return C(e,[{key:"buildKeyframes",value:function(e,t,n,i,r,o,a,s,u){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];u=u||new ev;var l=new av(e,t,u,i,r,c,[]);l.options=s,l.currentTimeline.setStyles([o],null,l.errors,s),Fp(this,n,l);var h=l.timelines.filter((function(e){return e.containsAnimation()}));if(h.length&&Object.keys(a).length){var d=h[h.length-1];d.allowOnlyTimelineStyles()||d.setStyles([a],null,l.errors,s)}return h.length?h.map((function(e){return e.buildKeyframes()})):[$p(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,o=this._visitSubInstructions(n,i,i.options);r!=o&&t.transformIntoNewTimeline(o)}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?kp(n.duration):null,o=null!=n.delay?kp(n.delay):null;return 0!==r&&e.forEach((function(e){var n=t.appendInstructionToTimeline(e,r,o);i=Math.max(i,n.duration+n.delay)})),i}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),Fp(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var n=this,i=t.subContextCount,r=t,o=e.options;if(o&&(o.params||o.delay)&&((r=t.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=ov);var a=kp(o.delay);r.delayNextStep(a)}e.steps.length&&(e.steps.forEach((function(e){return Fp(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,o=e.options&&e.options.delay?kp(e.options.delay):0;e.steps.forEach((function(a){var s=t.createSubContext(e.options);o&&s.delayNextStep(o),Fp(n,a,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 Sp(t.params?Rp(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,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach((function(e){o.forwardTime((e.offset||0)*r),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()})),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+r),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var n=this,i=t.currentTimeline.currentTime,r=e.options||{},o=r.delay?kp(r.delay):0;o&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ov);var a=i,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=s.length;var u=null;s.forEach((function(i,r){t.currentQueryIndex=r;var s=t.createSubContext(e.options,i);o&&s.delayNextStep(o),i===t.element&&(u=s.currentTimeline),Fp(n,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)})),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),u&&(t.currentTimeline.mergeTimelineCollectedStyles(u),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var n=t.parentContext,i=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),s=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var u=t.currentTimeline;s&&u.delayNextStep(s);var c=u.currentTime;Fp(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}]),e}(),ov={},av=function(){function e(t,n,i,r,o,a,s,u){w(this,e),this._driver=t,this.element=n,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ov,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new sv(this._driver,n,0),s.push(this.currentTimeline)}return C(e,[{key:"updateOptions",value:function(e,t){var n=this;if(e){var i=e,r=this.options;null!=i.duration&&(r.duration=kp(i.duration)),null!=i.delay&&(r.delay=kp(i.delay));var o=i.params;if(o){var a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach((function(e){t&&a.hasOwnProperty(e)||(a[e]=Rp(o[e],a,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,o=new e(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=ov,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 uv(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 a=[];if(i&&a.push(this.element),e.length>0){e=(e=e.replace(tv,"."+this._enterClassName)).replace(nv,"."+this._leaveClassName);var s=this._driver.query(this.element,e,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),a.push.apply(a,d(s))}return r||0!=a.length||o.push('`query("'.concat(t,'")` returned zero elements. (Use `query("').concat(t,'", { optional: true })` if you wish to allow this.)')),a}},{key:"params",get:function(){return this.options.params}}]),e}(),sv=function(){function e(t,n,i,r){w(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 C(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:"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]||Rf,t._currentKeyframe[e]=Rf})),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,n,i){var r=this;t&&(this._previousKeyframe.easing=t);var o=i&&i.params||{},a=function(e,t){var n,i={};return e.forEach((function(e){"*"===e?(n=n||Object.keys(t)).forEach((function(e){i[e]=Rf})):Ep(e,!1,i)})),i}(e,this._globalTimelineStyles);Object.keys(a).forEach((function(e){var t=Rp(a[e],o,n);r._pendingStyles[e]=t,r._localTimelineStyles.hasOwnProperty(e)||(r._backFill[e]=r._globalTimelineStyles.hasOwnProperty(e)?r._globalTimelineStyles[e]:Rf),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:"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(o,a){var s=Ep(o,!0);Object.keys(s).forEach((function(e){var i=s[e];i==Zf?t.add(e):i==Rf&&n.add(e)})),i||(s.offset=a/e.duration),r.push(s)}));var o=t.size?Dp(t.values()):[],a=n.size?Dp(n.values()):[];if(i){var s=r[0],u=Cp(s);s.offset=0,u.offset=1,r=[s,u]}return $p(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}}]),e}(),uv=function(e){g(n,e);var t=k(n);function n(e,i,r,o,a,s){var u,c=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return w(this,n),(u=t.call(this,e,i,s.delay)).element=i,u.keyframes=r,u.preStyleProps=o,u.postStyleProps=a,u._stretchStartingKeyframe=c,u.timings={duration:s.duration,delay:s.delay,easing:s.easing},u}return C(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 o=[],a=i+n,s=n/a,u=Ep(e[0],!1);u.offset=0,o.push(u);var c=Ep(e[0],!1);c.offset=cv(s),o.push(c);for(var l=e.length-1,h=1;h<=l;h++){var d=Ep(e[h],!1);d.offset=cv((n+d.offset*i)/a),o.push(d)}i=a,n=0,r="",e=o}return $p(this.element,e,this.preStyleProps,this.postStyleProps,i,n,r,!0)}}]),n}(sv);function cv(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 lv=function e(){w(this,e)},hv=function(e){g(n,e);var t=k(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"normalizePropertyName",value:function(e,t){return Lp(e)}},{key:"normalizeStyleValue",value:function(e,t,n,i){var r="",o=n.toString().trim();if(dv[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push("Please provide a CSS unit value for ".concat(e,":").concat(n))}return o+r}}]),n}(lv),dv=function(){return 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(","),t={},e.forEach((function(e){return t[e]=!0})),t;var e,t}();function fv(e,t,n,i,r,o,a,s,u,c,l,h,d){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:o,toState:i,toStyles:a,timelines:s,queriedElements:u,preStyleProps:c,postStyleProps:l,totalTime:h,errors:d}}var pv={},vv=function(){function e(t,n,i){w(this,e),this._triggerName=t,this.ast=n,this._stateStyles=i}return C(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],o=i?i.buildStyles(t,n):{};return r?r.buildStyles(t,n):o}},{key:"build",value:function(e,t,n,i,r,o,a,s,u,c){var l=[],h=this.ast.options&&this.ast.options.params||pv,d=this.buildStyles(n,a&&a.params||pv,l),f=s&&s.params||pv,p=this.buildStyles(i,f,l),v=new Set,m=new Map,g=new Map,y="void"===i,b={params:Object.assign(Object.assign({},h),f)},_=c?[]:iv(e,t,this.ast.animation,r,o,d,p,b,u,l),k=0;if(_.forEach((function(e){k=Math.max(e.duration+e.delay,k)})),l.length)return fv(t,this._triggerName,n,i,y,d,p,[],[],m,g,k,l);_.forEach((function(e){var n=e.element,i=ep(m,n,{});e.preStyleProps.forEach((function(e){return i[e]=!0}));var r=ep(g,n,{});e.postStyleProps.forEach((function(e){return r[e]=!0})),n!==t&&v.add(n)}));var w=Dp(v.values());return fv(t,this._triggerName,n,i,y,d,p,_,w,m,g,k)}}]),e}(),mv=function(){function e(t,n){w(this,e),this.styles=t,this.defaultParams=n}return C(e,[{key:"buildStyles",value:function(e,t){var n={},i=Cp(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 o=r[e];o.length>1&&(o=Rp(o,i,t)),n[e]=o}))}})),n}}]),e}(),gv=function(){function e(t,n){var i=this;w(this,e),this.name=t,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach((function(e){i.states[e.name]=new mv(e.style,e.options&&e.options.params||{})})),yv(this.states,"true","1"),yv(this.states,"false","0"),n.transitions.forEach((function(e){i.transitionFactories.push(new vv(t,e,i.states))})),this.fallbackTransition=new vv(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return C(e,[{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)}},{key:"containsQueries",get:function(){return this.ast.queryCount>0}}]),e}();function yv(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var bv=new ev,_v=function(){function e(t,n,i){w(this,e),this.bodyNode=t,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}return C(e,[{key:"register",value:function(e,t){var n=[],i=Zp(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=Kf(this._driver,this._normalizer,i,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]:{},o=[],a=this._animations[e],s=new Map;if(a?(n=iv(this._driver,t,a,vp,mp,{},{},r,bv,o)).forEach((function(e){var t=ep(s,e.element,{});e.postStyleProps.forEach((function(e){return t[e]=null}))})):(o.push("The requested animation doesn't exist or has already been destroyed"),n=[]),o.length)throw new Error("Unable to create the animation due to the following errors: ".concat(o.join("\n")));s.forEach((function(e,t){Object.keys(e).forEach((function(n){e[n]=i._driver.computeStyle(t,n,Rf)}))}));var u=n.map((function(e){var t=s.get(e.element);return i._buildPlayer(e,{},t)})),c=Yf(u);return this._playersById[e]=c,c.onDestroy((function(){return i.destroy(e)})),this.players.push(c),c}},{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=$f(t,"","","");return Jf(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}(),kv="ng-animate-queued",wv="ng-animate-disabled",Sv=".ng-animate-disabled",Cv="ng-star-inserted",Ev=[],Ov={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},xv={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Tv=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";w(this,e),this.namespaceId=n;var i=t&&t.hasOwnProperty("value"),r=i?t.value:t;if(this.value=Dv(r),i){var o=Cp(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}return C(e,[{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])}))}}},{key:"params",get:function(){return this.options.params}}]),e}(),Mv="void",Pv=new Tv(Mv),Iv=function(){function e(t,n,i){w(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,Fv(n,this._hostClassName)}return C(e,[{key:"listen",value:function(e,t,n,i){var r,o=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 a=ep(this._elementListeners,e,[]),s={name:t,phase:n,callback:i};a.push(s);var u=ep(this._engine.statesByElement,e,{});return u.hasOwnProperty(t)||(Fv(e,gp),Fv(e,"ng-trigger-"+t),u[t]=Pv),function(){o._engine.afterFlush((function(){var e=a.indexOf(s);e>=0&&a.splice(e,1),o._triggers[t]||delete u[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],o=this._getTrigger(t),a=new Rv(this.id,t,e),s=this._engine.statesByElement.get(e);s||(Fv(e,gp),Fv(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));var u=s[t],c=new Tv(n,this.id),l=n&&n.hasOwnProperty("value");!l&&u&&c.absorbOptions(u.options),s[t]=c,u||(u=Pv);var h=c.value===Mv;if(h||u.value!==c.value){var d=ep(this._engine.playersByElement,e,[]);d.forEach((function(e){e.namespaceId==i.id&&e.triggerName==t&&e.queued&&e.destroy()}));var f=o.matchTransition(u.value,c.value,e,c.params),p=!1;if(!f){if(!r)return;f=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:f,fromState:u,toState:c,player:a,isFallbackTransition:p}),p||(Fv(e,kv),a.onStart((function(){Bv(e,kv)}))),a.onDone((function(){var t=i.players.indexOf(a);t>=0&&i.players.splice(t,1);var n=i._engine.playersByElement.get(e);if(n){var r=n.indexOf(a);r>=0&&n.splice(r,1)}})),this.players.push(a),d.push(a),a}if(!zv(u.params,c.params)){var v=[],m=o.matchStyles(u.value,u.params,v),g=o.matchStyles(c.value,c.params,v);v.length?this._engine.reportError(v):this._engine.afterFlush((function(){Mp(e,m),Tp(e,g)}))}}},{key:"deregister",value:function(e){var t=this;delete this._triggers[e],this._engine.statesByElement.forEach((function(t,n){delete t[e]})),this._elementListeners.forEach((function(n,i){t._elementListeners.set(i,n.filter((function(t){return t.name!=e})))}))}},{key:"clearElementCache",value:function(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);var t=this._engine.playersByElement.get(e);t&&(t.forEach((function(e){return e.destroy()})),this._engine.playersByElement.delete(e))}},{key:"_signalRemovalForInnerTriggers",value:function(e,t){var n=this,i=this._engine.driver.query(e,yp,!0);i.forEach((function(e){if(!e.__ng_removed){var i=n._engine.fetchNamespacesByElement(e);i.size?i.forEach((function(n){return n.triggerLeaveAnimation(e,t,!1,!0)})):n.clearElementCache(e)}})),this._engine.afterFlushAnimationsDone((function(){return i.forEach((function(e){return n.clearElementCache(e)}))}))}},{key:"triggerLeaveAnimation",value:function(e,t,n,i){var r=this,o=this._engine.statesByElement.get(e);if(o){var a=[];if(Object.keys(o).forEach((function(t){if(r._triggers[t]){var n=r.trigger(e,t,Mv,i);n&&a.push(n)}})),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&Yf(a).onDone((function(){return r._engine.processLeaveNode(e)})),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(e){var t=this,n=this._elementListeners.get(e);if(n){var i=new Set;n.forEach((function(n){var r=n.name;if(!i.has(r)){i.add(r);var o=t._triggers[r].fallbackTransition,a=t._engine.statesByElement.get(e)[r]||Pv,s=new Tv(Mv),u=new Rv(t.id,r,e);t._engine.totalQueuedPlayers++,t._queue.push({element:e,triggerName:r,transition:o,fromState:a,toState:s,player:u,isFallbackTransition:!0})}}))}}},{key:"removeNode",value:function(e,t){var n=this,i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),!this.triggerLeaveAnimation(e,t,!0)){var r=!1;if(i.totalAnimations){var o=i.players.length?i.playersByQueriedElement.get(e):[];if(o&&o.length)r=!0;else for(var a=e;a=a.parentNode;)if(i.statesByElement.get(a)){r=!0;break}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,t);else{var s=e.__ng_removed;s&&s!==Ov||(i.afterFlush((function(){return n.clearElementCache(e)})),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}}},{key:"insertNode",value:function(e,t){Fv(e,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(e){var t=this,n=[];return this._queue.forEach((function(i){var r=i.player;if(!r.destroyed){var o=i.element,a=t._elementListeners.get(o);a&&a.forEach((function(t){if(t.name==i.triggerName){var n=$f(o,i.triggerName,i.fromState.value,i.toState.value);n._data=e,Jf(i.player,t.phase,n,t.callback)}})),r.markedForDestroy?t._engine.afterFlush((function(){r.destroy()})):n.push(i)}})),this._queue=[],n.sort((function(e,n){var i=e.transition.ast.depCount,r=n.transition.ast.depCount;return 0==i||0==r?i-r:t._engine.driver.containsElement(e.element,n.element)?1:-1}))}},{key:"destroy",value:function(e){this.players.forEach((function(e){return e.destroy()})),this._signalRemovalForInnerTriggers(this.hostElement,e)}},{key:"elementContainsData",value:function(e){var t=!1;return this._elementListeners.has(e)&&(t=!0),!!this._queue.find((function(t){return t.element===e}))||t}}]),e}(),Av=function(){function e(t,n,i){w(this,e),this.bodyNode=t,this.driver=n,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=function(e,t){}}return C(e,[{key:"_onRemovalComplete",value:function(e,t){this.onRemovalComplete(e,t)}},{key:"createNamespace",value:function(e,t){var n=new Iv(e,t,this);return t.parentNode?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}},{key:"_balanceNamespaceList",value:function(e,t){var n=this._namespaceList.length-1;if(n>=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<i.length;r++){var o=n[i[r]].namespaceId;if(o){var a=this._fetchNamespace(o);a&&t.add(a)}}return t}},{key:"trigger",value:function(e,t,n,i){if(Nv(t)){var r=this._fetchNamespace(e);if(r)return r.trigger(t,n,i),!0}return!1}},{key:"insertNode",value:function(e,t,n,i){if(Nv(t)){var r=t.__ng_removed;if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;var o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){var a=this._fetchNamespace(e);a&&a.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),Fv(e,wv)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Bv(e,wv))}},{key:"removeNode",value:function(e,t,n,i){if(Nv(t)){var r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),n){var o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.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 Nv(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,yp,!0);n.forEach((function(e){return t.destroyActiveAnimationsForElement(e)})),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,_p,!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 Yf(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=Ov,n.namespaceId){this.destroyInnerAnimations(e);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,Sv)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Sv,!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<this.collectedEnterElements.length;i++){var r=this.collectedEnterElements[i];Fv(r,Cv)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var o=[];try{n=this._flushAnimations(o,t)}finally{for(var a=0;a<o.length;a++)o[a]()}}else for(var s=0;s<this.collectedLeaveElements.length;s++){var u=this.collectedLeaveElements[s];this.processLeaveNode(u)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach((function(e){return e()})),this._flushFns=[],this._whenQuietFns.length){var c=this._whenQuietFns;this._whenQuietFns=[],n.length?Yf(n).onDone((function(){c.forEach((function(e){return e()}))})):c.forEach((function(e){return e()}))}}},{key:"reportError",value:function(e){throw new Error("Unable to process animations due to the following failed trigger transitions\n ".concat(e.join("\n")))}},{key:"_flushAnimations",value:function(e,t){var n=this,i=new ev,r=[],o=new Map,a=[],s=new Map,u=new Map,c=new Map,l=new Set;this.disabledNodes.forEach((function(e){l.add(e);for(var t=n.driver.query(e,".ng-animate-queued",!0),i=0;i<t.length;i++)l.add(t[i])}));var h=this.bodyNode,f=Array.from(this.statesByElement.keys()),p=jv(f,this.collectedEnterElements),v=new Map,m=0;p.forEach((function(e,t){var n=vp+m++;v.set(t,n),e.forEach((function(e){return Fv(e,n)}))}));for(var g=[],y=new Set,b=new Set,_=0;_<this.collectedLeaveElements.length;_++){var k=this.collectedLeaveElements[_],w=k.__ng_removed;w&&w.setForRemoval&&(g.push(k),y.add(k),w.hasAnimation?this.driver.query(k,".ng-star-inserted",!0).forEach((function(e){return y.add(e)})):b.add(k))}var S=new Map,C=jv(f,Array.from(y));C.forEach((function(e,t){var n=mp+m++;S.set(t,n),e.forEach((function(e){return Fv(e,n)}))})),e.push((function(){p.forEach((function(e,t){var n=v.get(t);e.forEach((function(e){return Bv(e,n)}))})),C.forEach((function(e,t){var n=S.get(t);e.forEach((function(e){return Bv(e,n)}))})),g.forEach((function(e){n.processLeaveNode(e)}))}));for(var E=[],O=[],x=this._namespaceList.length-1;x>=0;x--)this._namespaceList[x].drainQueuedTransitions(t).forEach((function(e){var t=e.player,o=e.element;if(E.push(t),n.collectedEnterElements.length){var l=o.__ng_removed;if(l&&l.setForMove)return void t.destroy()}var d=!h||!n.driver.containsElement(h,o),f=S.get(o),p=v.get(o),m=n._buildInstruction(e,i,p,f,d);if(m.errors&&m.errors.length)O.push(m);else{if(d)return t.onStart((function(){return Mp(o,m.fromStyles)})),t.onDestroy((function(){return Tp(o,m.toStyles)})),void r.push(t);if(e.isFallbackTransition)return t.onStart((function(){return Mp(o,m.fromStyles)})),t.onDestroy((function(){return Tp(o,m.toStyles)})),void r.push(t);m.timelines.forEach((function(e){return e.stretchStartingKeyframe=!0})),i.append(o,m.timelines),a.push({instruction:m,player:t,element:o}),m.queriedElements.forEach((function(e){return ep(s,e,[]).push(t)})),m.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)}))}})),m.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(O.length){var T=[];O.forEach((function(e){T.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach((function(e){return T.push("- ".concat(e,"\n"))}))})),E.forEach((function(e){return e.destroy()})),this.reportError(T)}var M=new Map,P=new Map;a.forEach((function(e){var t=e.element;i.has(t)&&(P.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,M))})),r.forEach((function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach((function(e){ep(M,t,[]).push(e),e.destroy()}))}));var I=g.filter((function(e){return Wv(e,u,c)})),A=new Map;Vv(A,this.driver,b,c,Rf).forEach((function(e){Wv(e,u,c)&&I.push(e)}));var R=new Map;p.forEach((function(e,t){Vv(R,n.driver,new Set(e),u,Zf)})),I.forEach((function(e){var t=A.get(e),n=R.get(e);A.set(e,Object.assign(Object.assign({},t),n))}));var D=[],N=[],L={};a.forEach((function(e){var t=e.element,a=e.player,s=e.instruction;if(i.has(t)){if(l.has(t))return a.onDestroy((function(){return Tp(t,s.toStyles)})),a.disabled=!0,a.overrideTotalTime(s.totalTime),void r.push(a);var u=L;if(P.size>1){for(var c=t,h=[];c=c.parentNode;){var d=P.get(c);if(d){u=d;break}h.push(c)}h.forEach((function(e){return P.set(e,u)}))}var f=n._buildAnimation(a.namespaceId,s,M,o,R,A);if(a.setRealPlayer(f),u===L)D.push(a);else{var p=n.playersByElement.get(u);p&&p.length&&(a.parentPlayer=Yf(p)),r.push(a)}}else Mp(t,s.fromStyles),a.onDestroy((function(){return Tp(t,s.toStyles)})),N.push(a),l.has(t)&&r.push(a)})),N.forEach((function(e){var t=o.get(e.element);if(t&&t.length){var n=Yf(t);e.setRealPlayer(n)}})),r.forEach((function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()}));for(var V=0;V<g.length;V++){var j=g[V],F=j.__ng_removed;if(Bv(j,mp),!F||!F.hasAnimation){var B=[];if(s.size){var U=s.get(j);U&&U.length&&B.push.apply(B,d(U));for(var z=this.driver.query(j,_p,!0),W=0;W<z.length;W++){var H=s.get(z[W]);H&&H.length&&B.push.apply(B,d(H))}}var G=B.filter((function(e){return!e.destroyed}));G.length?Uv(this,j,G):this.processLeaveNode(j)}}return g.length=0,D.forEach((function(e){n.players.push(e),e.onDone((function(){e.destroy();var t=n.players.indexOf(e);n.players.splice(t,1)})),e.play()})),D}},{key:"elementContainsData",value:function(e,t){var n=!1,i=t.__ng_removed;return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n}},{key:"afterFlush",value:function(e){this._flushFns.push(e)}},{key:"afterFlushAnimationsDone",value:function(e){this._whenQuietFns.push(e)}},{key:"_getPreviousPlayers",value:function(e,t,n,i,r){var o=[];if(t){var a=this.playersByQueriedElement.get(e);a&&(o=a)}else{var s=this.playersByElement.get(e);if(s){var u=!r||r==Mv;s.forEach((function(e){e.queued||(u||e.triggerName==i)&&o.push(e)}))}}return(n||i)&&(o=o.filter((function(e){return!(n&&n!=e.namespaceId||i&&i!=e.triggerName)}))),o}},{key:"_beforeAnimationBuild",value:function(e,t,n){var i,r=this,o=t.element,a=t.isRemovalTransition?void 0:e,s=t.isRemovalTransition?void 0:t.triggerName,u=v(t.timelines);try{var c=function(){var e=i.value.element,u=e!==o,c=ep(n,e,[]);r._getPreviousPlayers(e,u,a,s,t.toState).forEach((function(e){var t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),c.push(e)}))};for(u.s();!(i=u.n()).done;)c()}catch(l){u.e(l)}finally{u.f()}Mp(o,t.fromStyles)}},{key:"_buildAnimation",value:function(e,t,n,i,r,o){var a=this,s=t.triggerName,u=t.element,c=[],l=new Set,h=new Set,d=t.timelines.map((function(t){var d=t.element;l.add(d);var f=d.__ng_removed;if(f&&f.removedBeforeQueried)return new Gf(t.duration,t.delay);var p,v,m=d!==u,g=(p=(n.get(d)||Ev).map((function(e){return e.getRealPlayer()})),v=[],function e(t,n){for(var i=0;i<t.length;i++){var r=t[i];r instanceof qf?e(r.players,n):n.push(r)}}(p,v),v).filter((function(e){return!!e.element&&e.element===d})),y=r.get(d),b=o.get(d),_=Kf(a.driver,a._normalizer,d,t.keyframes,y,b),k=a._buildPlayer(t,_,g);if(t.subTimeline&&i&&h.add(d),m){var w=new Rv(e,s,d);w.setRealPlayer(k),c.push(w)}return k}));c.forEach((function(e){ep(a.playersByQueriedElement,e.element,[]).push(e),e.onDone((function(){return function(e,t,n){var i;if(e instanceof Map){if(i=e.get(t)){if(i.length){var r=i.indexOf(n);i.splice(r,1)}0==i.length&&e.delete(t)}}else if(i=e[t]){if(i.length){var o=i.indexOf(n);i.splice(o,1)}0==i.length&&delete e[t]}return i}(a.playersByQueriedElement,e.element,e)}))})),l.forEach((function(e){return Fv(e,bp)}));var f=Yf(d);return f.onDestroy((function(){l.forEach((function(e){return Bv(e,bp)})),Tp(u,t.toStyles)})),h.forEach((function(e){ep(i,e,[]).push(f)})),f}},{key:"_buildPlayer",value:function(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new Gf(e.duration,e.delay)}},{key:"queuedPlayers",get:function(){var e=[];return this._namespaceList.forEach((function(t){t.players.forEach((function(t){t.queued&&e.push(t)}))})),e}}]),e}(),Rv=function(){function e(t,n,i){w(this,e),this.namespaceId=t,this.triggerName=n,this.element=i,this._player=new Gf,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return C(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 Jf(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){ep(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 Dv(e){return null!=e?e:null}function Nv(e){return e&&1===e.nodeType}function Lv(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function Vv(e,t,n,i,r){var o=[];n.forEach((function(e){return o.push(Lv(e))}));var a=[];i.forEach((function(n,i){var o={};n.forEach((function(e){var n=o[e]=t.computeStyle(i,e,r);n&&0!=n.length||(i.__ng_removed=xv,a.push(i))})),e.set(i,o)}));var s=0;return n.forEach((function(e){return Lv(e,o[s++])})),a}function jv(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;return t.forEach((function(e){var t=function e(t){if(!t)return 1;var o=r.get(t);if(o)return o;var a=t.parentNode;return o=n.has(a)?a:i.has(a)?1:e(a),r.set(t,o),o}(e);1!==t&&n.get(t).push(e)})),n}function Fv(e,t){if(e.classList)e.classList.add(t);else{var n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function Bv(e,t){if(e.classList)e.classList.remove(t);else{var n=e.$$classes;n&&delete n[t]}}function Uv(e,t,n){Yf(n).onDone((function(){return e.processLeaveNode(t)}))}function zv(e,t){var n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(var r=0;r<n.length;r++){var o=n[r];if(!t.hasOwnProperty(o)||e[o]!==t[o])return!1}return!0}function Wv(e,t,n){var i=n.get(e);if(!i)return!1;var r=t.get(e);return r?i.forEach((function(e){return r.add(e)})):t.set(e,i),n.delete(e),!0}var Hv=function(){function e(t,n,i){var r=this;w(this,e),this.bodyNode=t,this._driver=n,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new Av(t,n,i),this._timelineEngine=new _v(t,n,i),this._transitionEngine.onRemovalComplete=function(e,t){return r.onRemovalComplete(e,t)}}return C(e,[{key:"registerTrigger",value:function(e,t,n,i,r){var o=e+"-"+i,a=this._triggerCache[o];if(!a){var s=[],u=Zp(this._driver,r,s);if(s.length)throw new Error('The animation trigger "'.concat(i,'" has failed to build due to the following errors:\n - ').concat(s.join("\n - ")));a=function(e,t){return new gv(e,t)}(i,u),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,i,a)}},{key:"register",value:function(e,t){this._transitionEngine.register(e,t)}},{key:"destroy",value:function(e,t){this._transitionEngine.destroy(e,t)}},{key:"onInsert",value:function(e,t,n,i){this._transitionEngine.insertNode(e,t,n,i)}},{key:"onRemove",value:function(e,t,n,i){this._transitionEngine.removeNode(e,t,i||!1,n)}},{key:"disableAnimations",value:function(e,t){this._transitionEngine.markElementAsDisabled(e,t)}},{key:"process",value:function(e,t,n,i){if("@"==n.charAt(0)){var r=l(tp(n),2);this._timelineEngine.command(r[0],t,r[1],i)}else this._transitionEngine.trigger(e,t,n,i)}},{key:"listen",value:function(e,t,n,i,r){if("@"==n.charAt(0)){var o=l(tp(n),2);return this._timelineEngine.listen(o[0],t,o[1],r)}return this._transitionEngine.listen(e,t,n,i,r)}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}}]),e}();function Gv(e,t){var n=null,i=null;return Array.isArray(t)&&t.length?(n=Zv(t[0]),t.length>1&&(i=Zv(t[t.length-1]))):t&&(n=Zv(t)),n||i?new qv(e,n,i):null}var qv=function(){var e=function(){function e(t,n,i){w(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 C(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&Tp(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(Tp(this._element,this._initialStyles),this._endStyles&&(Tp(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&&(Mp(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Mp(this._element,this._endStyles),this._endStyles=null),Tp(this._element,this._initialStyles),this._state=3)}}]),e}();return e.initialStylesByElement=new WeakMap,e}();function Zv(e){for(var t=null,n=Object.keys(e),i=0;i<n.length;i++){var r=n[i];Qv(r)&&((t=t||{})[r]=e[r])}return t}function Qv(e){return"display"===e||"position"===e}var Yv="animation",Kv="animationend",Jv=function(){function e(t,n,i,r,o,a,s){var u=this;w(this,e),this._element=t,this._name=n,this._duration=i,this._delay=r,this._easing=o,this._fillMode=a,this._onDoneFn=s,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function(e){return u._handleCallback(e)}}return C(e,[{key:"apply",value:function(){var e,t,n;e=this._element,t="".concat(this._duration,"ms ").concat(this._easing," ").concat(this._delay,"ms 1 normal ").concat(this._fillMode," ").concat(this._name),(n=im(e,"").trim()).length&&(function(e,t){for(var n=0;n<e.length;n++)","===e.charAt(n)&&0}(n),t="".concat(n,", ").concat(t)),nm(e,"",t),tm(this._element,this._eventFn,!1),this._startTime=Date.now()}},{key:"pause",value:function(){Xv(this._element,this._name,"paused")}},{key:"resume",value:function(){Xv(this._element,this._name,"running")}},{key:"setPosition",value:function(e){var t=$v(this._element,this._name);this._position=e*this._duration,nm(this._element,"Delay","-".concat(this._position,"ms"),t)}},{key:"getPosition",value:function(){return this._position}},{key:"_handleCallback",value:function(e){var t=e._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(e.elapsedTime.toFixed(3));e.animationName==this._name&&Math.max(t-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),tm(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var e,t,n,i;this._destroyed||(this._destroyed=!0,this.finish(),t=this._name,(i=em(n=im(e=this._element,"").split(","),t))>=0&&(n.splice(i,1),nm(e,"",n.join(","))))}}]),e}();function Xv(e,t,n){nm(e,"PlayState",n,$v(e,t))}function $v(e,t){var n=im(e,"");return n.indexOf(",")>0?em(n.split(","),t):em([n],t)}function em(e,t){for(var n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function tm(e,t,n){n?e.removeEventListener(Kv,t):e.addEventListener(Kv,t)}function nm(e,t,n,i){var r=Yv+t;if(null!=i){var o=e.style[r];if(o.length){var a=o.split(",");a[i]=n,n=a.join(",")}}e.style[r]=n}function im(e,t){return e.style[Yv+t]}var rm=function(){function e(t,n,i,r,o,a,s,u){w(this,e),this.element=t,this.keyframes=n,this.animationName=i,this._duration=r,this._delay=o,this._finalStyles=s,this._specialStyles=u,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=r+o,this._buildStyler()}return C(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 Jv(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]:Bp(e.element,i))}))}this.currentSnapshot=t}}]),e}(),om=function(e){g(n,e);var t=k(n);function n(e,i){var r;return w(this,n),(r=t.call(this)).element=e,r._startingStyles={},r.__initialized=!1,r._styles=dp(i),r}return C(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]})),r(i(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])})),r(i(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,r(i(n.prototype),"destroy",this).call(this))}}]),n}(Gf),am="gen_css_kf_",sm=function(){function e(){w(this,e),this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return C(e,[{key:"validateStyleProperty",value:function(e){return up(e)}},{key:"matchesElement",value:function(e,t){return cp(e,t)}},{key:"containsElement",value:function(e,t){return lp(e,t)}},{key:"query",value:function(e,t,n){return hp(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 dp(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 o=document.createElement("style");return o.innerHTML=i,o}},{key:"animate",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;a&&this._notifyFaultyScrubber();var s=o.filter((function(e){return e instanceof rm})),u={};Vp(n,i)&&s.forEach((function(e){var t=e.currentSnapshot;Object.keys(t).forEach((function(e){return u[e]=t[e]}))}));var c=um(t=jp(e,t,u));if(0==n)return new om(e,c);var l="".concat(am).concat(this._count++),h=this.buildKeyframeElement(e,l,t);document.querySelector("head").appendChild(h);var d=Gv(e,t),f=new rm(e,t,l,n,i,r,c,d);return f.onDestroy((function(){return cm(h)})),f}},{key:"_notifyFaultyScrubber",value:function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}]),e}();function um(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}function cm(e){e.parentNode.removeChild(e)}var lm=function(){function e(t,n,i,r){w(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 C(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){this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{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]:Bp(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}},{key:"totalTime",get:function(){return this._delay+this._duration}}]),e}(),hm=function(){function e(){w(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(dm().toString()),this._cssKeyframesDriver=new sm}return C(e,[{key:"validateStyleProperty",value:function(e){return up(e)}},{key:"matchesElement",value:function(e,t){return cp(e,t)}},{key:"containsElement",value:function(e,t){return lp(e,t)}},{key:"query",value:function(e,t,n){return hp(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 o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0,s=!a&&!this._isNativeImpl;if(s)return this._cssKeyframesDriver.animate(e,t,n,i,r,o);var u=0==i?"both":"forwards",c={duration:n,delay:i,fill:u};r&&(c.easing=r);var l={},h=o.filter((function(e){return e instanceof lm}));Vp(n,i)&&h.forEach((function(e){var t=e.currentSnapshot;Object.keys(t).forEach((function(e){return l[e]=t[e]}))}));var d=Gv(e,t=jp(e,t=t.map((function(e){return Ep(e,!1)})),l));return new lm(e,t,c,d)}}]),e}();function dm(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var fm=function(){var e=function(e){g(n,e);var t=k(n);function n(e,i){var r;return w(this,n),(r=t.call(this))._nextAnimationId=0,r._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Nt.None,styles:[],data:{animation:[]}}),r}return C(n,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?Vf(e):e;return mm(this._renderer,null,t,"register",[n]),new pm(t,this._renderer)}}]),n}(If);return e.\u0275fac=function(t){return new(t||e)(bt(wu),bt(jl))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),pm=function(e){g(n,e);var t=k(n);function n(e,i){var r;return w(this,n),(r=t.call(this))._id=e,r._renderer=i,r}return C(n,[{key:"create",value:function(e,t){return new vm(this._id,e,t||{},this._renderer)}}]),n}(Af),vm=function(){function e(t,n,i,r){w(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 C(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<t;i++)n[i-1]=arguments[i];return mm(this._renderer,this.element,this.id,e,n)}},{key:"onDone",value:function(e){this._listen("done",e)}},{key:"onStart",value:function(e){this._listen("start",e)}},{key:"onDestroy",value:function(e){this._listen("destroy",e)}},{key:"init",value:function(){this._command("init")}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this._command("play"),this._started=!0}},{key:"pause",value:function(){this._command("pause")}},{key:"restart",value:function(){this._command("restart")}},{key:"finish",value:function(){this._command("finish")}},{key:"destroy",value:function(){this._command("destroy")}},{key:"reset",value:function(){this._command("reset")}},{key:"setPosition",value:function(e){this._command("setPosition",e)}},{key:"getPosition",value:function(){return 0}}]),e}();function mm(e,t,n,i,r){return e.setProperty(t,"@@".concat(n,":").concat(i),r)}var gm,ym="@",bm="@.disabled",_m=function(){var e=function(){function e(t,n,i){w(this,e),this.delegate=t,this.engine=n,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),n.onRemovalComplete=function(e,t){t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}return C(e,[{key:"createRenderer",value:function(e,t){var n=this,i=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){var r=this._rendererCache.get(i);return r||(r=new km("",i,this.engine),this._rendererCache.set(i,r)),r}var o=t.id,a=t.id+"-"+this._currentId;return this._currentId++,this.engine.register(a,e),t.data.animation.forEach((function t(i){Array.isArray(i)?i.forEach(t):n.engine.registerTrigger(o,a,e,i.name,i)})),new wm(this,a,i,this.engine)}},{key:"begin",value:function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}},{key:"_scheduleCountTask",value:function(){var e=this;this.promise.then((function(){e._microtaskId++}))}},{key:"scheduleListenerCallback",value:function(e,t,n){var i=this;e>=0&&e<this._microtaskId?this._zone.run((function(){return t(n)})):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then((function(){i._zone.run((function(){i._animationCallbacksBuffer.forEach((function(e){var t=l(e,2);(0,t[0])(t[1])})),i._animationCallbacksBuffer=[]}))})),this._animationCallbacksBuffer.push([t,n]))}},{key:"end",value:function(){var e=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular((function(){e._scheduleCountTask(),e.engine.flush(e._microtaskId)})),this.delegate.end&&this.delegate.end()}},{key:"whenRenderingDone",value:function(){return this.engine.whenRenderingDone()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(bt(wu),bt(Hv),bt(rl))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),km=function(){function e(t,n,i){w(this,e),this.namespaceId=t,this.delegate=n,this.engine=i,this.destroyNode=this.delegate.destroyNode?function(e){return n.destroyNode(e)}:null}return C(e,[{key:"destroy",value:function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}},{key:"createElement",value:function(e,t){return this.delegate.createElement(e,t)}},{key:"createComment",value:function(e){return this.delegate.createComment(e)}},{key:"createText",value:function(e){return this.delegate.createText(e)}},{key:"appendChild",value:function(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}},{key:"insertBefore",value:function(e,t,n){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,!0)}},{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)==ym&&t==bm?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)}},{key:"data",get:function(){return this.delegate.data}}]),e}(),wm=function(e){g(n,e);var t=k(n);function n(e,i,r,o){var a;return w(this,n),(a=t.call(this,i,r,o)).factory=e,a.namespaceId=i,a}return C(n,[{key:"setProperty",value:function(e,t,n){t.charAt(0)==ym?"."==t.charAt(1)&&t==bm?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,n){var i,r,o=this;if(t.charAt(0)==ym){var a=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e),s=t.substr(1),u="";if(s.charAt(0)!=ym){var c=l((r=(i=s).indexOf("."),[i.substring(0,r),i.substr(r+1)]),2);s=c[0],u=c[1]}return this.engine.listen(this.namespaceId,a,s,u,(function(e){o.factory.scheduleListenerCallback(e._data||-1,n,e)}))}return this.delegate.listen(e,t,n)}}]),n}(km),Sm=function(){var e=function(e){g(n,e);var t=k(n);function n(e,i,r){return w(this,n),t.call(this,e.body,i,r)}return n}(Hv);return e.\u0275fac=function(t){return new(t||e)(bt(jl),bt(pp),bt(lv))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),Cm=new ct("AnimationModuleType"),Em=[{provide:If,useClass:fm},{provide:lv,useFactory:function(){return new hv}},{provide:Hv,useClass:Sm},{provide:wu,useFactory:function(e,t,n){return new _m(e,t,n)},deps:[qh,Hv,rl]}],Om=[{provide:pp,useFactory:function(){return"function"==typeof dm()?new hm:new sm}},{provide:Cm,useValue:"BrowserAnimations"}].concat(Em),xm=([{provide:pp,useClass:fp},{provide:Cm,useValue:"NoopAnimations"}].concat(Em),function(){var e=function e(){w(this,e)};return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)},providers:Om,imports:[ad]}),e}());try{gm="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(gR){gm=!1}var Tm,Mm,Pm,Im,Am,Rm=function(){var e=function e(t){w(this,e),this._platformId=t,this.isBrowser=this._platformId?Sh(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&&!gm)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT};return e.\u0275fac=function(t){return new(t||e)(bt(Wc))},e.\u0275prov=De({factory:function(){return new e(bt(Wc))},token:e,providedIn:"root"}),e}(),Dm=function(){var e=function e(){w(this,e)};return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)}}),e}(),Nm=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Lm(){if(Tm)return Tm;if("object"!=typeof document||!document)return Tm=new Set(Nm);var e=document.createElement("input");return Tm=new Set(Nm.filter((function(t){return e.setAttribute("type",t),e.type===t})))}function Vm(e){return function(){if(null==Mm&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Mm=!0}}))}finally{Mm=Mm||!1}return Mm}()?e:!!e.capture}function jm(){if("object"!=typeof document||!document)return 0;if(null==Pm){var e=document.createElement("div"),t=e.style;e.dir="rtl",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";var n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",e.appendChild(n),document.body.appendChild(e),Pm=0,0===e.scrollLeft&&(e.scrollLeft=1,Pm=0===e.scrollLeft?1:2),e.parentNode.removeChild(e)}return Pm}function Fm(e){if(function(){if(null==Am){var e="undefined"!=typeof document?document.head:null;Am=!(!e||!e.createShadowRoot&&!e.attachShadow)}return Am}()){var t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function Bm(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[t.length-1];return Y(i)?(t.pop(),oe(t,i)):pe(t)}var Um=27;function zm(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.length?n.some((function(t){return e[t]})):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}function Wm(){}function Hm(e,t,n){return function(i){return i.lift(new Gm(e,t,n))}}var Gm=function(){function e(t,n,i){w(this,e),this.nextOrObserver=t,this.error=n,this.complete=i}return C(e,[{key:"call",value:function(e,t){return t.subscribe(new qm(e,this.nextOrObserver,this.error,this.complete))}}]),e}(),qm=function(e){g(n,e);var t=k(n);function n(e,i,r,a){var s;return w(this,n),(s=t.call(this,e))._tapNext=Wm,s._tapError=Wm,s._tapComplete=Wm,s._tapError=r||Wm,s._tapComplete=a||Wm,T(i)?(s._context=o(s),s._tapNext=i):i&&(s._context=i,s._tapNext=i.next||Wm,s._tapError=i.error||Wm,s._tapComplete=i.complete||Wm),s}return C(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}(V),Zm=function(e){g(n,e);var t=k(n);function n(e,i){var r;return w(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r.pending=!1,r}return C(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=!1,i=void 0;try{this.work(e)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i}},{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){g(n,e);var t=k(n);function n(e,i){return w(this,n),t.call(this)}return C(n,[{key:"schedule",value:function(e){return this}}]),n}(P)),Qm=function(){var e=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;w(this,e),this.SchedulerAction=t,this.now=n}return C(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}(),Ym=function(e){g(n,e);var t=k(n);function n(e){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Qm.now;return w(this,n),(i=t.call(this,e,(function(){return n.delegate&&n.delegate!==o(i)?n.delegate.now():r()}))).actions=[],i.active=!1,i.scheduled=void 0,i}return C(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,t,o):r(i(n.prototype),"schedule",this).call(this,e,t,o)}},{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}(Qm),Km=new Ym(Zm);function Jm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Km;return function(n){return n.lift(new Xm(e,t))}}var Xm=function(){function e(t,n){w(this,e),this.dueTime=t,this.scheduler=n}return C(e,[{key:"call",value:function(e,t){return t.subscribe(new $m(e,this.dueTime,this.scheduler))}}]),e}(),$m=function(e){g(n,e);var t=k(n);function n(e,i,r){var o;return w(this,n),(o=t.call(this,e)).dueTime=i,o.scheduler=r,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return C(n,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(eg,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}(V);function eg(e){e.debouncedNext()}function tg(e,t){return function(n){return n.lift(new ng(e,t))}}var ng=function(){function e(t,n){w(this,e),this.predicate=t,this.thisArg=n}return C(e,[{key:"call",value:function(e,t){return t.subscribe(new ig(e,this.predicate,this.thisArg))}}]),e}(),ig=function(e){g(n,e);var t=k(n);function n(e,i,r){var o;return w(this,n),(o=t.call(this,e)).predicate=i,o.thisArg=r,o.count=0,o}return C(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}(V),rg=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}(),og=new z((function(e){return e.complete()}));function ag(e){return e?function(e){return new z((function(t){return e.schedule((function(){return t.complete()}))}))}(e):og}function sg(e){return function(t){return 0===e?ag():t.lift(new ug(e))}}var ug=function(){function e(t){if(w(this,e),this.total=t,this.total<0)throw new rg}return C(e,[{key:"call",value:function(e,t){return t.subscribe(new cg(e,this.total))}}]),e}(),cg=function(e){g(n,e);var t=k(n);function n(e,i){var r;return w(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return C(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}(V);function lg(e){return null!=e&&"false"!=="".concat(e)}function hg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return dg(e)?Number(e):t}function dg(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function fg(e){return Array.isArray(e)?e:[e]}function pg(e){return null==e?"":"string"==typeof e?e:"".concat(e,"px")}function vg(e){return e instanceof _u?e.nativeElement:e}var mg=function(){var e=function(){function e(){w(this,e)}return C(e,[{key:"create",value:function(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=De({factory:function(){return new e},token:e,providedIn:"root"}),e}(),gg=function(){var e=function(){function e(t){w(this,e),this._mutationObserverFactory=t,this._observedElements=new Map}return C(e,[{key:"ngOnDestroy",value:function(){var e=this;this._observedElements.forEach((function(t,n){return e._cleanupObserver(n)}))}},{key:"observe",value:function(e){var t=this,n=vg(e);return new z((function(e){var i=t._observeElement(n).subscribe(e);return function(){i.unsubscribe(),t._unobserveElement(n)}}))}},{key:"_observeElement",value:function(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{var t=new Z,n=this._mutationObserverFactory.create((function(e){return t.next(e)}));n&&n.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:n,stream:t,count:1})}return this._observedElements.get(e).stream}},{key:"_unobserveElement",value:function(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}},{key:"_cleanupObserver",value:function(e){if(this._observedElements.has(e)){var t=this._observedElements.get(e),n=t.observer,i=t.stream;n&&n.disconnect(),i.complete(),this._observedElements.delete(e)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(bt(mg))},e.\u0275prov=De({factory:function(){return new e(bt(mg))},token:e,providedIn:"root"}),e}(),yg=function(){var e=function(){function e(t,n,i){w(this,e),this._contentObserver=t,this._elementRef=n,this._ngZone=i,this.event=new vc,this._disabled=!1,this._currentSubscription=null}return C(e,[{key:"ngAfterContentInit",value:function(){this._currentSubscription||this.disabled||this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var e=this;this._unsubscribe();var t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular((function(){e._currentSubscription=(e.debounce?t.pipe(Jm(e.debounce)):t).subscribe(e.event)}))}},{key:"_unsubscribe",value:function(){this._currentSubscription&&this._currentSubscription.unsubscribe()}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=lg(e),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(e){this._debounce=hg(e),this._subscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(gg),ss(_u),ss(rl))},e.\u0275dir=Gt({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),e}(),bg=function(){var e=function e(){w(this,e)};return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)},providers:[mg]}),e}();function _g(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}var kg="cdk-describedby-message-container",wg="cdk-describedby-message",Sg="cdk-describedby-host",Cg=0,Eg=new Map,Og=null,xg=function(){var e=function(){function e(t,n){w(this,e),this._platform=n,this._document=t}return C(e,[{key:"describe",value:function(e,t){this._canBeDescribed(e,t)&&("string"!=typeof t?(this._setMessageId(t),Eg.set(t,{messageElement:t,referenceCount:0})):Eg.has(t)||this._createMessageElement(t),this._isElementDescribedByMessage(e,t)||this._addMessageReference(e,t))}},{key:"removeDescription",value:function(e,t){if(t&&this._isElementNode(e)){if(this._isElementDescribedByMessage(e,t)&&this._removeMessageReference(e,t),"string"==typeof t){var n=Eg.get(t);n&&0===n.referenceCount&&this._deleteMessageElement(t)}Og&&0===Og.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var e=this._document.querySelectorAll("[".concat(Sg,"]")),t=0;t<e.length;t++)this._removeCdkDescribedByReferenceIds(e[t]),e[t].removeAttribute(Sg);Og&&this._deleteMessagesContainer(),Eg.clear()}},{key:"_createMessageElement",value:function(e){var t=this._document.createElement("div");this._setMessageId(t),t.textContent=e,this._createMessagesContainer(),Og.appendChild(t),Eg.set(e,{messageElement:t,referenceCount:0})}},{key:"_setMessageId",value:function(e){e.id||(e.id="".concat(wg,"-").concat(Cg++))}},{key:"_deleteMessageElement",value:function(e){var t=Eg.get(e),n=t&&t.messageElement;Og&&n&&Og.removeChild(n),Eg.delete(e)}},{key:"_createMessagesContainer",value:function(){if(!Og){var e=!this._platform||!this._platform.EDGE&&!this._platform.TRIDENT,t=this._document.getElementById(kg);t&&t.parentNode&&t.parentNode.removeChild(t),(Og=this._document.createElement("div")).id=kg,Og.classList.add("cdk-visually-hidden"),Og.setAttribute("aria-hidden",e+""),this._document.body.appendChild(Og)}}},{key:"_deleteMessagesContainer",value:function(){Og&&Og.parentNode&&(Og.parentNode.removeChild(Og),Og=null)}},{key:"_removeCdkDescribedByReferenceIds",value:function(e){var t=_g(e,"aria-describedby").filter((function(e){return 0!=e.indexOf(wg)}));e.setAttribute("aria-describedby",t.join(" "))}},{key:"_addMessageReference",value:function(e,t){var n,i,r,o=Eg.get(t);i=o.messageElement.id,(r=_g(n=e,"aria-describedby")).some((function(e){return e.trim()==i.trim()}))||(r.push(i.trim()),n.setAttribute("aria-describedby",r.join(" "))),e.setAttribute(Sg,""),o.referenceCount++}},{key:"_removeMessageReference",value:function(e,t){var n,i,r,o,a=Eg.get(t);a.referenceCount--,r=a.messageElement.id,(o=_g(n=e,i="aria-describedby").filter((function(e){return e!=r.trim()}))).length?n.setAttribute(i,o.join(" ")):n.removeAttribute(i),e.removeAttribute(Sg)}},{key:"_isElementDescribedByMessage",value:function(e,t){var n=_g(e,"aria-describedby"),i=Eg.get(t),r=i&&i.messageElement.id;return!!r&&-1!=n.indexOf(r)}},{key:"_canBeDescribed",value:function(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;var n=null==t?"":"".concat(t).trim(),i=e.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}},{key:"_isElementNode",value:function(e){return e.nodeType===this._document.ELEMENT_NODE}}]),e}();return e.\u0275fac=function(t){return new(t||e)(bt(jl),bt(Rm))},e.\u0275prov=De({factory:function(){return new e(bt(jl),bt(Rm))},token:e,providedIn:"root"}),e}(),Tg=function(){function e(t){var n=this;w(this,e),this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Z,this._typeaheadSubscription=P.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=function(e){return e.disabled},this._pressedLetters=[],this.tabOut=new Z,this.change=new Z,t instanceof gc&&t.changes.subscribe((function(e){if(n._activeItem){var t=e.toArray().indexOf(n._activeItem);t>-1&&t!==n._activeItemIndex&&(n._activeItemIndex=t)}}))}return C(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(Hm((function(t){return e._pressedLetters.push(t)})),Jm(t),tg((function(){return e._pressedLetters.length>0})),K((function(){return e._pressedLetters.join("")}))).subscribe((function(t){for(var n=e._getItemsArray(),i=1;i<n.length+1;i++){var r=(e._activeItemIndex+i)%n.length,o=n[r];if(!e._skipPredicateFn(o)&&0===o.getLabel().toUpperCase().trim().indexOf(t)){e.setActiveItem(r);break}}e._pressedLetters=[]})),this}},{key:"withHomeAndEnd",value:function(){var e=!(arguments.length>0&&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||zm(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:"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 gc?this._items.toArray():this._items}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}}]),e}(),Mg=function(e){g(n,e);var t=k(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"setActiveItem",value:function(e){this.activeItem&&this.activeItem.setInactiveStyles(),r(i(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.setActiveStyles()}}]),n}(Tg),Pg=function(e){g(n,e);var t=k(n);function n(){var e;return w(this,n),(e=t.apply(this,arguments))._origin="program",e}return C(n,[{key:"setFocusOrigin",value:function(e){return this._origin=e,this}},{key:"setActiveItem",value:function(e){r(i(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.focus(this._origin)}}]),n}(Tg),Ig=function(){var e=function(){function e(t){w(this,e),this._platform=t}return C(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(gR){return null}}((t=e).ownerDocument&&t.ownerDocument.defaultView||window);if(n){if(-1===Rg(n))return!1;if(!this.isVisible(n))return!1}var i=e.nodeName.toLowerCase(),r=Rg(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")||Ag(e))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(bt(Rm))},e.\u0275prov=De({factory:function(){return new e(bt(Rm))},token:e,providedIn:"root"}),e}();function Ag(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 Rg(e){if(!Ag(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var Dg=function(){function e(t,n,i,r){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];w(this,e),this._element=t,this._checker=n,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,a||this.attachAnchors()}return C(e,[{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<t.length;n++)t[n].hasAttribute("cdk-focus-".concat(e))?console.warn("Found use of deprecated attribute 'cdk-focus-".concat(e,"', ")+"use 'cdkFocusRegion".concat(e,"' instead. The deprecated ")+"attribute will be removed in 8.0.0.",t[n]):t[n].hasAttribute("cdk-focus-region-".concat(e))&&console.warn("Found use of deprecated attribute 'cdk-focus-region-".concat(e,"', ")+"use 'cdkFocusRegion".concat(e,"' instead. The deprecated attribute ")+"will be removed in 8.0.0.",t[n]);return"start"==e?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}},{key:"focusInitialElement",value:function(){var e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");return e?(e.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",e),e.focus(),!0):this.focusFirstTabbableElement()}},{key:"focusFirstTabbableElement",value:function(){var e=this._getRegionBoundary("start");return e&&e.focus(),!!e}},{key:"focusLastTabbableElement",value:function(){var e=this._getRegionBoundary("end");return e&&e.focus(),!!e}},{key:"hasAttached",value:function(){return this._hasAttached}},{key:"_getFirstTabbableElement",value:function(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;for(var t=e.children||e.childNodes,n=0;n<t.length;n++){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[n]):null;if(i)return i}return null}},{key:"_getLastTabbableElement",value:function(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;for(var t=e.children||e.childNodes,n=t.length-1;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(sg(1)).subscribe(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))}}]),e}(),Ng=function(){var e=function(){function e(t,n,i){w(this,e),this._checker=t,this._ngZone=n,this._document=i}return C(e,[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Dg(e,this._checker,this._ngZone,this._document,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(bt(Ig),bt(rl),bt(jl))},e.\u0275prov=De({factory:function(){return new e(bt(Ig),bt(rl),bt(jl))},token:e,providedIn:"root"}),e}();"undefined"!=typeof Element&&Element;var Lg=new ct("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Vg=new ct("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),jg=function(){var e=function(){function e(t,n,i,r){w(this,e),this._ngZone=n,this._defaultOptions=r,this._document=i,this._liveElement=t||this._createLiveElement()}return C(e,[{key:"announce",value:function(e){for(var t,n,i=this,r=this._defaultOptions,o=arguments.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return 1===a.length&&"number"==typeof a[0]?n=a[0]:(t=a[0],n=a[1]),this.clear(),clearTimeout(this._previousTimeout),t||(t=r&&r.politeness?r.politeness:"polite"),null==n&&r&&(n=r.duration),this._liveElement.setAttribute("aria-live",t),this._ngZone.runOutsideAngular((function(){return new Promise((function(t){clearTimeout(i._previousTimeout),i._previousTimeout=setTimeout((function(){i._liveElement.textContent=e,t(),"number"==typeof n&&(i._previousTimeout=setTimeout((function(){return i.clear()}),n))}),100)}))}))}},{key:"clear",value:function(){this._liveElement&&(this._liveElement.textContent="")}},{key:"ngOnDestroy",value:function(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}},{key:"_createLiveElement",value:function(){for(var e="cdk-live-announcer-element",t=this._document.getElementsByClassName(e),n=this._document.createElement("div"),i=0;i<t.length;i++)t[i].parentNode.removeChild(t[i]);return n.classList.add(e),n.classList.add("cdk-visually-hidden"),n.setAttribute("aria-atomic","true"),n.setAttribute("aria-live","polite"),this._document.body.appendChild(n),n}}]),e}();return e.\u0275fac=function(t){return new(t||e)(bt(Lg,8),bt(rl),bt(jl),bt(Vg,8))},e.\u0275prov=De({factory:function(){return new e(bt(Lg,8),bt(rl),bt(jl),bt(Vg,8))},token:e,providedIn:"root"}),e}();function Fg(e){return 0===e.buttons}var Bg=new ct("cdk-focus-monitor-default-options"),Ug=Vm({passive:!0,capture:!0}),zg=function(){var e=function(){function e(t,n,i,r){var o=this;w(this,e),this._ngZone=t,this._platform=n,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=function(){o._lastTouchTarget=null,o._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=function(e){if(!o._lastTouchTarget){var t=Fg(e)?"keyboard":"mouse";o._setOriginForCurrentEventQueue(t)}},this._documentTouchstartListener=function(e){null!=o._touchTimeoutId&&clearTimeout(o._touchTimeoutId),o._lastTouchTarget=Wg(e),o._touchTimeoutId=setTimeout((function(){return o._lastTouchTarget=null}),650)},this._windowFocusListener=function(){o._windowFocused=!0,o._windowFocusTimeoutId=setTimeout((function(){return o._windowFocused=!1}))},this._rootNodeFocusAndBlurListener=function(e){for(var t=Wg(e),n="focus"===e.type?o._onFocus:o._onBlur,i=t;i;i=i.parentElement)n.call(o,e,i)},this._document=i,this._detectionMode=(null==r?void 0:r.detectionMode)||0}return C(e,[{key:"monitor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this._platform.isBrowser)return Bm(null);var n=vg(e),i=Fm(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return t&&(r.checkChildren=!0),r.subject;var o={checkChildren:t,subject:new Z,rootNode:i};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject}},{key:"stopMonitoring",value:function(e){var t=vg(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,n){var i=vg(e);this._setOriginForCurrentEventQueue(t),"function"==typeof i.focus&&i.focus(n)}},{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=Wg(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);if(n&&(n.checkChildren||t===Wg(e))){var i=this._getFocusOrigin(e);this._setClasses(t,i),this._emitOrigin(n.subject,i),this._lastFocusOrigin=i}}},{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,Ug),n.addEventListener("blur",t._rootNodeFocusAndBlurListener,Ug)})),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,Ug),e.addEventListener("mousedown",t._documentMousedownListener,Ug),e.addEventListener("touchstart",t._documentTouchstartListener,Ug),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,Ug),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Ug),this._rootNodeFocusListenerCount.delete(t))}if(!--this._monitoredElementCount){var i=this._getDocument(),r=this._getWindow();i.removeEventListener("keydown",this._documentKeydownListener,Ug),i.removeEventListener("mousedown",this._documentMousedownListener,Ug),i.removeEventListener("touchstart",this._documentTouchstartListener,Ug),r.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(bt(rl),bt(Rm),bt(jl,8),bt(Bg,8))},e.\u0275prov=De({factory:function(){return new e(bt(rl),bt(Rm),bt(jl,8),bt(Bg,8))},token:e,providedIn:"root"}),e}();function Wg(e){return e.composedPath?e.composedPath()[0]:e.target}var Hg="cdk-high-contrast-black-on-white",Gg="cdk-high-contrast-white-on-black",qg="cdk-high-contrast-active",Zg=function(){var e=function(){function e(t,n){w(this,e),this._platform=t,this._document=n}return C(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(qg),e.remove(Hg),e.remove(Gg);var t=this.getHighContrastMode();1===t?(e.add(qg),e.add(Hg)):2===t&&(e.add(qg),e.add(Gg))}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(bt(Rm),bt(jl))},e.\u0275prov=De({factory:function(){return new e(bt(Rm),bt(jl))},token:e,providedIn:"root"}),e}(),Qg=function(){var e=function e(t){w(this,e),t._applyBodyHighContrastModeCssClasses()};return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)(bt(Zg))},imports:[[Dm,bg]]}),e}(),Yg=new ct("cdk-dir-doc",{providedIn:"root",factory:function(){return _t(jl)}}),Kg=function(){var e=function(){function e(t){if(w(this,e),this.value="ltr",this.change=new vc,t){var n=(t.body?t.body.dir:null)||(t.documentElement?t.documentElement.dir:null);this.value="ltr"===n||"rtl"===n?n:"ltr"}}return C(e,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(bt(Yg,8))},e.\u0275prov=De({factory:function(){return new e(bt(Yg,8))},token:e,providedIn:"root"}),e}(),Jg=function(){var e=function e(){w(this,e)};return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)}}),e}(),Xg=new xu("10.2.2");function $g(){return fe(1)}function ey(){return $g()(Bm.apply(void 0,arguments))}function ty(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[t.length-1];return Y(i)?(t.pop(),function(e){return ey(t,e,i)}):function(e){return ey(t,e)}}function ny(e,t){if(1&e&&fs(0,"mat-pseudo-checkbox",3),2&e){var n=Es();cs("state",n.selected?"checked":"unchecked")("disabled",n.disabled)}}var iy=["*"],ry=new xu("10.2.2"),oy=new ct("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),ay=function(){var e=function(){function e(t,n,i){w(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 C(e,[{key:"_getDocument",value:function(){var e=this._document||document;return"object"==typeof e&&e?e:null}},{key:"_getWindow",value:function(){var e=this._getDocument(),t=(null==e?void 0:e.defaultView)||window;return"object"==typeof t&&t?t:null}},{key:"_checksAreEnabled",value:function(){return sr()&&!this._isTestEnv()}},{key:"_isTestEnv",value:function(){var e=this._getWindow();return e&&(e.__karma__||e.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){var e=this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype),t=this._getDocument();e&&t&&!t.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(){var e=!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme,t=this._getDocument();if(!e&&t&&t.body&&"function"==typeof getComputedStyle){var n=t.createElement("div");n.classList.add("mat-theme-loaded-marker"),t.body.appendChild(n);var i=getComputedStyle(n);i&&"none"!==i.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),t.body.removeChild(n)}}},{key:"_checkCdkVersionMatch",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&ry.full!==Xg.full&&console.warn("The Angular Material version ("+ry.full+") does not match the Angular CDK version ("+Xg.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),e}();return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)(bt(Zg),bt(oy,8),bt(jl,8))},imports:[[Jg],Jg]}),e}();function sy(e){return function(e){g(n,e);var t=k(n);function n(){var e;w(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r)))._disabled=!1,e}return C(n,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=lg(e)}}]),n}(e)}function uy(e,t){return function(e){g(i,e);var n=k(i);function i(){var e;w(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=n.call.apply(n,[this].concat(o))).defaultColor=t,e.color=t,e}return C(i,[{key:"color",get:function(){return this._color},set:function(e){var t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-".concat(this._color)),t&&this._elementRef.nativeElement.classList.add("mat-".concat(t)),this._color=t)}}]),i}(e)}function cy(e){return function(e){g(n,e);var t=k(n);function n(){var e;w(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r)))._disableRipple=!1,e}return C(n,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(e){this._disableRipple=lg(e)}}]),n}(e)}function ly(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=function(e){g(i,e);var n=k(i);function i(){var e;w(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=n.call.apply(n,[this].concat(o)))._tabIndex=t,e.defaultTabIndex=t,e}return C(i,[{key:"tabIndex",get:function(){return this.disabled?-1:this._tabIndex},set:function(e){this._tabIndex=null!=e?hg(e):this.defaultTabIndex}}]),i}(e);return n}function hy(e){return function(e){g(n,e);var t=k(n);function n(){var e;w(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))).errorState=!1,e.stateChanges=new Z,e}return C(n,[{key:"updateErrorState",value:function(){var e=this.errorState,t=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);t!==e&&(this.errorState=t,this.stateChanges.next())}}]),n}(e)}var dy=function(){var e=function(){function e(){w(this,e)}return C(e,[{key:"isErrorState",value:function(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=De({factory:function(){return new e},token:e,providedIn:"root"}),e}(),fy=function(){var e=function e(){w(this,e)};return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)},imports:[[ay],ay]}),e}(),py=function(){function e(t,n,i){w(this,e),this._renderer=t,this.element=n,this.config=i,this.state=3}return C(e,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),e}(),vy={enterDuration:450,exitDuration:400},my=Vm({passive:!0}),gy=["mousedown","touchstart"],yy=["mouseup","mouseleave","touchend","touchcancel"],by=function(){function e(t,n,i,r){w(this,e),this._target=t,this._ngZone=n,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=vg(i))}return C(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(),o=Object.assign(Object.assign({},vy),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);var a=i.radius||ky(e,t,r),s=e-r.left,u=t-r.top,c=o.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left="".concat(s-a,"px"),l.style.top="".concat(u-a,"px"),l.style.height="".concat(2*a,"px"),l.style.width="".concat(2*a,"px"),null!=i.color&&(l.style.backgroundColor=i.color),l.style.transitionDuration="".concat(c,"ms"),this._containerElement.appendChild(l),_y(l),l.style.transform="scale(1)";var h=new py(this,l,i);return h.state=0,this._activeRipples.add(h),i.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone((function(){var e=h===n._mostRecentTransientRipple;h.state=1,i.persistent||e&&n._isPointerDown||h.fadeOut()}),c),h}},{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({},vy),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=vg(e);t&&t!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(gy))}},{key:"handleEvent",value:function(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(yy),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(e){var t=Fg(e),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||t||n||(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}},{key:"_onTouchStart",value:function(e){if(!this._target.rippleDisabled){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;for(var t=e.changedTouches,n=0;n<t.length;n++)this.fadeInRipple(t[n].clientX,t[n].clientY,this._target.rippleConfig)}}},{key:"_onPointerUp",value:function(){this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach((function(e){!e.config.persistent&&(1===e.state||e.config.terminateOnPointerUp&&0===e.state)&&e.fadeOut()})))}},{key:"_runTimeoutOutsideZone",value:function(e){var t=arguments.length>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,my)}))}))}},{key:"_removeTriggerEvents",value:function(){var e=this;this._triggerElement&&(gy.forEach((function(t){e._triggerElement.removeEventListener(t,e,my)})),this._pointerUpEventsRegistered&&yy.forEach((function(t){e._triggerElement.removeEventListener(t,e,my)})))}}]),e}();function _y(e){window.getComputedStyle(e).getPropertyValue("opacity")}function ky(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)}var wy=new ct("mat-ripple-global-options"),Sy=function(){var e=function(){function e(t,n,i,r,o){w(this,e),this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new by(this,n,t,i)}return C(e,[{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(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))}},{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:"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}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(_u),ss(rl),ss(Rm),ss(wy,8),ss(Cm,8))},e.\u0275dir=Gt({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&Fs("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"]}),e}(),Cy=function(){var e=function e(){w(this,e)};return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)},imports:[[ay,Dm],ay]}),e}(),Ey=function(){var e=function e(t){w(this,e),this._animationMode=t,this.state="unchecked",this.disabled=!1};return e.\u0275fac=function(t){return new(t||e)(ss(Cm,8))},e.\u0275cmp=Ft({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&Fs("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}),e}(),Oy=function(){var e=function e(){w(this,e)};return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)}}),e}(),xy=sy((function e(){w(this,e)})),Ty=0,My=function(){var e=function(e){g(n,e);var t=k(n);function n(){var e;return w(this,n),(e=t.apply(this,arguments))._labelId="mat-optgroup-label-".concat(Ty++),e}return n}(xy);return e.\u0275fac=function(t){return Py(t||e)},e.\u0275dir=Gt({type:e,inputs:{label:"label"},features:[nu]}),e}(),Py=Gi(My),Iy=new ct("MatOptgroup"),Ay=0,Ry=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];w(this,e),this.source=t,this.isUserInput=n},Dy=new ct("MAT_OPTION_PARENT_COMPONENT"),Ny=function(){var e=function(){function e(t,n,i,r){w(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-".concat(Ay++),this.onSelectionChange=new vc,this._stateChanges=new Z}return C(e,[{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||zm(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 Ry(this,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=lg(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()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(_u),ss(Ma),ss(void 0),ss(My))},e.\u0275dir=Gt({type:e,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),e}(),Ly=function(){var e=function(e){g(n,e);var t=k(n);function n(e,i,r,o){return w(this,n),t.call(this,e,i,r,o)}return n}(Ny);return e.\u0275fac=function(t){return new(t||e)(ss(_u),ss(Ma),ss(Dy,8),ss(Iy,8))},e.\u0275cmp=Ft({type:e,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&bs("click",(function(){return t._selectViaInteraction()}))("keydown",(function(e){return t._handleKeydown(e)})),2&e&&($s("id",t.id),is("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),Fs("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[nu],ngContentSelectors:iy,decls:4,vars:3,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"]],template:function(e,t){1&e&&(xs(),os(0,ny,1,2,"mat-pseudo-checkbox",0),hs(1,"span",1),Ts(2),ds(),fs(3,"div",2)),2&e&&(cs("ngIf",t.multiple),$r(3),cs("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[lh,Sy,Ey],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),e}();function Vy(e,t,n){if(n.length){for(var i=t.toArray(),r=n.toArray(),o=0,a=0;a<e+1;a++)i[a].group&&i[a].group===r[o]&&o++;return o}return 0}var jy=function(){var e=function e(){w(this,e)};return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)},imports:[[Cy,wh,Oy]]}),e}(),Fy=new ct("mat-label-global-options"),By=0,Uy=sy((function e(){w(this,e)})),zy=function(){var e=function(e){g(n,e);var t=k(n);function n(e,i,r,o,a){var s;return w(this,n),(s=t.call(this))._ngZone=e,s._elementRef=i,s._ariaDescriber=r,s._renderer=o,s._animationMode=a,s._hasContent=!1,s._color="primary",s._overlap=!0,s.position="above after",s.size="medium",s._id=By++,s}return C(n,[{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"),t="mat-badge-active",n="mat-badge-content";return this._clearExistingBadges(n),e.setAttribute("id","mat-badge-content-".concat(this._id)),e.classList.add(n),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(t)}))})):e.classList.add(t),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)}},{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=lg(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=lg(e)}}]),n}(Uy);return e.\u0275fac=function(t){return new(t||e)(ss(rl),ss(_u),ss(xg),ss(Cu),ss(Cm,8))},e.\u0275dir=Gt({type:e,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(e,t){2&e&&Fs("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:[nu,sn]}),e}(),Wy=function(){var e=function e(){w(this,e)};return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)},imports:[[Qg,ay],ay]}),e}(),Hy=["mat-button",""],Gy=["*"],qy=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Zy=uy(sy(cy((function e(t){w(this,e),this._elementRef=t})))),Qy=function(){var e=function(e){g(n,e);var t=k(n);function n(e,i,r){var o;w(this,n),(o=t.call(this,e))._focusMonitor=i,o._animationMode=r,o.isRoundButton=o._hasHostAttributes("mat-fab","mat-mini-fab"),o.isIconButton=o._hasHostAttributes("mat-icon-button");var a,s=v(qy);try{for(s.s();!(a=s.n()).done;){var u=a.value;o._hasHostAttributes(u)&&o._getHostElement().classList.add(u)}}catch(c){s.e(c)}finally{s.f()}return e.nativeElement.classList.add("mat-button-base"),o.isRoundButton&&(o.color="accent"),o}return C(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",t=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._getHostElement(),e,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;i<t;i++)n[i]=arguments[i];return n.some((function(t){return e._getHostElement().hasAttribute(t)}))}}]),n}(Zy);return e.\u0275fac=function(t){return new(t||e)(ss(_u),ss(zg),ss(Cm,8))},e.\u0275cmp=Ft({type:e,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(e,t){var n;1&e&&Tc(Sy,!0),2&e&&Oc(n=Rc())&&(t.ripple=n.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(is("disabled",t.disabled||null),Fs("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[nu],attrs:Hy,ngContentSelectors:Gy,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(e,t){1&e&&(xs(),hs(0,"span",0),Ts(1),ds(),fs(2,"span",1),fs(3,"span",2)),2&e&&($r(2),Fs("mat-button-ripple-round",t.isRoundButton||t.isIconButton),cs("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},directives:[Sy],styles:[".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}.cdk-high-contrast-active .mat-button-focus-overlay{background-color:#fff}.cdk-high-contrast-black-on-white .mat-button-focus-overlay{background-color:#000}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),e}(),Yy=function(){var e=function e(){w(this,e)};return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)},imports:[[Cy,ay],ay]}),e}(),Ky=function(){var e=function e(){w(this,e)};return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)},imports:[[ay],ay]}),e}();function Jy(e,t,n,i){return T(n)&&(i=n,n=void 0),i?Jy(e,t,n).pipe(K((function(e){return O(e)?i.apply(void 0,d(e)):i(e)}))):new z((function(i){!function e(t,n,i,r,o){var a;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(t)){var s=t;t.addEventListener(n,i,o),a=function(){return s.removeEventListener(n,i,o)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(t)){var u=t;t.on(n,i),a=function(){return u.off(n,i)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(t)){var c=t;t.addListener(n,i),a=function(){return c.removeListener(n,i)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var l=0,h=t.length;l<h;l++)e(t[l],n,i,r,o)}r.add(a)}(e,t,(function(e){i.next(arguments.length>1?Array.prototype.slice.call(arguments):e)}),i,n)}))}var Xy=1,$y=function(){return Promise.resolve()}(),eb={};function tb(e){return e in eb&&(delete eb[e],!0)}var nb=function(e){var t=Xy++;return eb[t]=!0,$y.then((function(){return tb(t)&&e()})),t},ib=function(e){tb(e)},rb=function(e){g(n,e);var t=k(n);function n(e,i){var r;return w(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r}return C(n,[{key:"requestAsyncId",value:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==o&&o>0?r(i(n.prototype),"requestAsyncId",this).call(this,e,t,o):(e.actions.push(this),e.scheduled||(e.scheduled=nb(e.flush.bind(e,null))))}},{key:"recycleAsyncId",value:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==o&&o>0||null===o&&this.delay>0)return r(i(n.prototype),"recycleAsyncId",this).call(this,e,t,o);0===e.actions.length&&(ib(t),e.scheduled=void 0)}}]),n}(Zm),ob=new(function(e){g(n,e);var t=k(n);function n(){return w(this,n),t.apply(this,arguments)}return C(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(++i<r&&(e=n.shift()));if(this.active=!1,t){for(;++i<r&&(e=n.shift());)e.unsubscribe();throw t}}}]),n}(Ym))(rb);function ab(e,t){return function(n){return n.lift(new sb(e,t))}}var sb=function(){function e(t,n){w(this,e),this.compare=t,this.keySelector=n}return C(e,[{key:"call",value:function(e,t){return t.subscribe(new ub(e,this.compare,this.keySelector))}}]),e}(),ub=function(e){g(n,e);var t=k(n);function n(e,i,r){var o;return w(this,n),(o=t.call(this,e)).keySelector=r,o.hasKey=!1,"function"==typeof i&&(o.compare=i),o}return C(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}(V);function cb(e){return function(t){return t.lift(new lb(e))}}var lb=function(){function e(t){w(this,e),this.durationSelector=t}return C(e,[{key:"call",value:function(e,t){return t.subscribe(new hb(e,this.durationSelector))}}]),e}(),hb=function(e){g(n,e);var t=k(n);function n(e,i){var r;return w(this,n),(r=t.call(this,e)).durationSelector=i,r.hasValue=!1,r}return C(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=ce(t,new se(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}(ue);function db(e){return!O(e)&&e-parseFloat(e)+1>=0}function fb(){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 db(t)?i=Number(t)<1?1:Number(t):Y(t)&&(n=t),Y(n)||(n=Km),new z((function(t){var r=db(e)?e:+e-n.now();return n.schedule(pb,r,{index:0,period:i,subscriber:t})}))}function pb(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 vb(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Km;return cb((function(){return fb(e,t)}))}function mb(e){return function(t){return t.lift(new gb(e))}}var gb=function(){function e(t){w(this,e),this.notifier=t}return C(e,[{key:"call",value:function(e,t){var n=new yb(e),i=ce(this.notifier,new se(n));return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n}}]),e}(),yb=function(e){g(n,e);var t=k(n);function n(e){var i;return w(this,n),(i=t.call(this,e)).seenValue=!1,i}return C(n,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),n}(ue);function bb(e,t){return"function"==typeof t?function(n){return n.pipe(bb((function(n,i){return ae(e(n,i)).pipe(K((function(e,r){return t(n,e,i,r)})))})))}:function(t){return t.lift(new _b(e))}}var _b=function(){function e(t){w(this,e),this.project=t}return C(e,[{key:"call",value:function(e,t){return t.subscribe(new kb(e,this.project))}}]),e}(),kb=function(e){g(n,e);var t=k(n);function n(e,i){var r;return w(this,n),(r=t.call(this,e)).project=i,r.index=0,r}return C(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 se(this),i=this.destination;i.add(n),this.innerSubscription=ce(e,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}},{key:"_complete",value:function(){var e=this.innerSubscription;e&&!e.closed||r(i(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&&r(i(n.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(e){this.destination.next(e)}}]),n}(ue),wb=function(e){g(n,e);var t=k(n);function n(e,i){var r;return w(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r}return C(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t>0?r(i(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?r(i(n.prototype),"execute",this).call(this,e,t):this._execute(e,t)}},{key:"requestAsyncId",value:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==o&&o>0||null===o&&this.delay>0?r(i(n.prototype),"requestAsyncId",this).call(this,e,t,o):e.flush(this)}}]),n}(Zm),Sb=new(function(e){g(n,e);var t=k(n);function n(){return w(this,n),t.apply(this,arguments)}return n}(Ym))(wb);function Cb(e,t){return new z(t?function(n){return t.schedule(Eb,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function Eb(e){e.subscriber.error(e.error)}var Ob=function(){var e=function(){function e(t,n,i){w(this,e),this.kind=t,this.value=n,this.error=i,this.hasValue="N"===t}return C(e,[{key:"observe",value:function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}},{key:"do",value:function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}},{key:"accept",value:function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return Bm(this.value);case"E":return Cb(this.error);case"C":return ag()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}},{key:"createError",value:function(t){return new e("E",void 0,t)}},{key:"createComplete",value:function(){return e.completeNotification}}]),e}();return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}(),xb=function(e){g(n,e);var t=k(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return w(this,n),(r=t.call(this,e)).scheduler=i,r.delay=o,r}return C(n,[{key:"scheduleMessage",value:function(e){this.destination.add(this.scheduler.schedule(n.dispatch,this.delay,new Tb(e,this.destination)))}},{key:"_next",value:function(e){this.scheduleMessage(Ob.createNext(e))}},{key:"_error",value:function(e){this.scheduleMessage(Ob.createError(e)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(Ob.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){e.notification.observe(e.destination),this.unsubscribe()}}]),n}(V),Tb=function e(t,n){w(this,e),this.notification=t,this.destination=n},Mb=function(e){g(n,e);var t=k(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,o=arguments.length>2?arguments[2]:void 0;return w(this,n),(e=t.call(this)).scheduler=o,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 C(n,[{key:"nextInfiniteTimeWindow",value:function(e){if(!this.isStopped){var t=this._events;t.push(e),t.length>this._bufferSize&&t.shift()}r(i(n.prototype),"next",this).call(this,e)}},{key:"nextTimeWindow",value:function(e){this.isStopped||(this._events.push(new Pb(this._getNow(),e)),this._trimBufferThenGetEvents()),r(i(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,o=i.length;if(this.closed)throw new H;if(this.isStopped||this.hasError?t=P.EMPTY:(this.observers.push(e),t=new G(this,e)),r&&e.add(e=new xb(e,r)),n)for(var a=0;a<o&&!e.closed;a++)e.next(i[a]);else for(var s=0;s<o&&!e.closed;s++)e.next(i[s].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),t}},{key:"_getNow",value:function(){return(this.scheduler||Sb).now()}},{key:"_trimBufferThenGetEvents",value:function(){for(var e=this._getNow(),t=this._bufferSize,n=this._windowTime,i=this._events,r=i.length,o=0;o<r&&!(e-i[o].time<n);)o++;return r>t&&(o=Math.max(o,r-t)),o>0&&i.splice(0,o),i}}]),n}(Z),Pb=function e(t,n){w(this,e),this.time=t,this.value=n},Ib=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];w(this,e),this._multiple=n,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Z,i&&i.length&&(n?i.forEach((function(e){return t._markSelected(e)})):this._markSelected(i[0]),this._selectedToEmit.length=0)}return C(e,[{key:"select",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];this._verifyValueAssignment(n),n.forEach((function(t){return e._markSelected(t)})),this._emitChangeEvent()}},{key:"deselect",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];this._verifyValueAssignment(n),n.forEach((function(t){return e._unmarkSelected(t)})),this._emitChangeEvent()}},{key:"toggle",value:function(e){this.isSelected(e)?this.deselect(e):this.select(e)}},{key:"clear",value:function(){this._unmarkAll(),this._emitChangeEvent()}},{key:"isSelected",value:function(e){return this._selection.has(e)}},{key:"isEmpty",value:function(){return 0===this._selection.size}},{key:"hasValue",value:function(){return!this.isEmpty()}},{key:"sort",value:function(e){this._multiple&&this.selected&&this._selected.sort(e)}},{key:"isMultipleSelection",value:function(){return this._multiple}},{key:"_emitChangeEvent",value:function(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}},{key:"_markSelected",value:function(e){this.isSelected(e)||(this._multiple||this._unmarkAll(),this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}},{key:"_unmarkSelected",value:function(e){this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}},{key:"_unmarkAll",value:function(){var e=this;this.isEmpty()||this._selection.forEach((function(t){return e._unmarkSelected(t)}))}},{key:"_verifyValueAssignment",value:function(e){}},{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}}]),e}(),Ab=function(){var e=function(){function e(t,n,i){w(this,e),this._ngZone=t,this._platform=n,this._scrolled=new Z,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}return C(e,[{key:"register",value:function(e){var t=this;this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe((function(){return t._scrolled.next(e)})))}},{key:"deregister",value:function(e){var t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}},{key:"scrolled",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new z((function(n){e._globalSubscription||e._addGlobalListener();var i=t>0?e._scrolled.pipe(vb(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){i.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}})):Bm()}},{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(tg((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:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_scrollableContainsElement",value:function(e,t){var n=t.nativeElement,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 Jy(e._getWindow().document,"scroll").subscribe((function(){return e._scrolled.next()}))}))}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(bt(rl),bt(Rm),bt(jl,8))},e.\u0275prov=De({factory:function(){return new e(bt(rl),bt(Rm),bt(jl,8))},token:e,providedIn:"root"}),e}(),Rb=function(){var e=function(){function e(t,n,i,r){var o=this;w(this,e),this.elementRef=t,this.scrollDispatcher=n,this.ngZone=i,this.dir=r,this._destroyed=new Z,this._elementScrolled=new z((function(e){return o.ngZone.runOutsideAngular((function(){return Jy(o.elementRef.nativeElement,"scroll").pipe(mb(o._destroyed)).subscribe(e)}))}))}return C(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!=jm()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==jm()?e.left=e.right:1==jm()&&(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;!function(){if(null==Im)if("object"==typeof document&&document||(Im=!1),"scrollBehavior"in document.documentElement.style)Im=!0;else{var e=Element.prototype.scrollTo;Im=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}return Im}()?(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left)):t.scrollTo(e)}},{key:"measureScrollOffset",value:function(e){var t="left",n="right",i=this.elementRef.nativeElement;if("top"==e)return i.scrollTop;if("bottom"==e)return i.scrollHeight-i.clientHeight-i.scrollTop;var r=this.dir&&"rtl"==this.dir.value;return"start"==e?e=r?n:t:"end"==e&&(e=r?t:n),r&&2==jm()?e==t?i.scrollWidth-i.clientWidth-i.scrollLeft:i.scrollLeft:r&&1==jm()?e==t?i.scrollLeft+i.scrollWidth-i.clientWidth:-i.scrollLeft:e==t?i.scrollLeft:i.scrollWidth-i.clientWidth-i.scrollLeft}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(_u),ss(Ab),ss(rl),ss(Kg,8))},e.\u0275dir=Gt({type:e,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),e}(),Db=function(){var e=function(){function e(t,n,i){var r=this;w(this,e),this._platform=t,this._change=new Z,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 C(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._getDocument(),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(vb(e)):this._change}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().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}();return e.\u0275fac=function(t){return new(t||e)(bt(Rm),bt(rl),bt(jl,8))},e.\u0275prov=De({factory:function(){return new e(bt(Rm),bt(rl),bt(jl,8))},token:e,providedIn:"root"}),e}(),Nb=function(){var e=function e(){w(this,e)};return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)}}),e}(),Lb=function(){var e=function e(){w(this,e)};return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)},imports:[[Jg,Dm,Nb],Jg,Nb]}),e}(),Vb=function(){function e(){w(this,e)}return C(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:"setAttachedHost",value:function(e){this._attachedHost=e}},{key:"isAttached",get:function(){return null!=this._attachedHost}}]),e}(),jb=function(e){g(n,e);var t=k(n);function n(e,i,r,o){var a;return w(this,n),(a=t.call(this)).component=e,a.viewContainerRef=i,a.injector=r,a.componentFactoryResolver=o,a}return n}(Vb),Fb=function(e){g(n,e);var t=k(n);function n(e,i,r){var o;return w(this,n),(o=t.call(this)).templateRef=e,o.viewContainerRef=i,o.context=r,o}return C(n,[{key:"attach",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=t,r(i(n.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(){return this.context=void 0,r(i(n.prototype),"detach",this).call(this)}},{key:"origin",get:function(){return this.templateRef.elementRef}}]),n}(Vb),Bb=function(e){g(n,e);var t=k(n);function n(e){var i;return w(this,n),(i=t.call(this)).element=e instanceof _u?e.nativeElement:e,i}return n}(Vb),Ub=function(){function e(){w(this,e),this._isDisposed=!1,this.attachDomPortal=null}return C(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(e){return e instanceof jb?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof Fb?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof Bb?(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}(),zb=function(e){g(n,e);var t=k(n);function n(e,a,s,u,c){var l,h;return w(this,n),(h=t.call(this)).outletElement=e,h._componentFactoryResolver=a,h._appRef=s,h._defaultInjector=u,h.attachDomPortal=function(e){var t=e.element,a=h._document.createComment("dom-portal");t.parentNode.insertBefore(a,t),h.outletElement.appendChild(t),r((l=o(h),i(n.prototype)),"setDisposeFn",l).call(l,(function(){a.parentNode&&a.parentNode.replaceChild(t,a)}))},h._document=c,h}return C(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(){r(i(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}(Ub),Wb=function(){var e=function(e){g(n,e);var t=k(n);function n(e,a,s){var u,c;return w(this,n),(c=t.call(this))._componentFactoryResolver=e,c._viewContainerRef=a,c._isInitialized=!1,c.attached=new vc,c.attachDomPortal=function(e){var t=e.element,a=c._document.createComment("dom-portal");e.setAttachedHost(o(c)),t.parentNode.insertBefore(a,t),c._getRootNode().appendChild(t),r((u=o(c),i(n.prototype)),"setDisposeFn",u).call(u,(function(){a.parentNode&&a.parentNode.replaceChild(t,a)}))},c._document=s,c}return C(n,[{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){r(i(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,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),a=t.createComponent(o,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),r(i(n.prototype),"setDisposeFn",this).call(this,(function(){return a.destroy()})),this._attachedPortal=e,this._attachedRef=a,this.attached.emit(a),a}},{key:"attachTemplatePortal",value:function(e){var t=this;e.setAttachedHost(this);var o=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return r(i(n.prototype),"setDisposeFn",this).call(this,(function(){return t._viewContainerRef.clear()})),this._attachedPortal=e,this._attachedRef=o,this.attached.emit(o),o}},{key:"_getRootNode",value:function(){var e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}},{key:"portal",get:function(){return this._attachedPortal},set:function(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&r(i(n.prototype),"detach",this).call(this),e&&r(i(n.prototype),"attach",this).call(this,e),this._attachedPortal=e)}},{key:"attachedRef",get:function(){return this._attachedRef}}]),n}(Ub);return e.\u0275fac=function(t){return new(t||e)(ss(bu),ss(qu),ss(jl))},e.\u0275dir=Gt({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[nu]}),e}(),Hb=function(){var e=function e(){w(this,e)};return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)}}),e}(),Gb=function(){function e(t,n){w(this,e),this.predicate=t,this.inclusive=n}return C(e,[{key:"call",value:function(e,t){return t.subscribe(new qb(e,this.predicate,this.inclusive))}}]),e}(),qb=function(e){g(n,e);var t=k(n);function n(e,i,r){var o;return w(this,n),(o=t.call(this,e)).predicate=i,o.inclusive=r,o.index=0,o}return C(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}(V),Zb=function(){function e(t,n){w(this,e),this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=n}return C(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=pg(-this._previousScrollPosition.left),e.style.top=pg(-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"),t.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),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}(),Qb=function(){function e(t,n,i,r){var o=this;w(this,e),this._scrollDispatcher=t,this._ngZone=n,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=function(){o.disable(),o._overlayRef.hasAttached()&&o._ngZone.run((function(){return o._overlayRef.detach()}))}}return C(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}(),Yb=function(){function e(){w(this,e)}return C(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function Kb(e,t){return t.some((function(t){return e.bottom<t.top||e.top>t.bottom||e.right<t.left||e.left>t.right}))}function Jb(e,t){return t.some((function(t){return e.top<t.top||e.bottom>t.bottom||e.left<t.left||e.right>t.right}))}var Xb=function(){function e(t,n,i,r){w(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this._config=r,this._scrollSubscription=null}return C(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;Kb(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}(),$b=function(){var e=function e(t,n,i,r){var o=this;w(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new Yb},this.close=function(e){return new Qb(o._scrollDispatcher,o._ngZone,o._viewportRuler,e)},this.block=function(){return new Zb(o._viewportRuler,o._document)},this.reposition=function(e){return new Xb(o._scrollDispatcher,o._viewportRuler,o._ngZone,e)},this._document=r};return e.\u0275fac=function(t){return new(t||e)(bt(Ab),bt(Db),bt(rl),bt(jl))},e.\u0275prov=De({factory:function(){return new e(bt(Ab),bt(Db),bt(rl),bt(jl))},token:e,providedIn:"root"}),e}(),e_=function e(t){if(w(this,e),this.scrollStrategy=new Yb,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t)for(var n=0,i=Object.keys(t);n<i.length;n++){var r=i[n];void 0!==t[r]&&(this[r]=t[r])}},t_=function e(t,n,i,r,o){w(this,e),this.offsetX=i,this.offsetY=r,this.panelClass=o,this.originX=t.originX,this.originY=t.originY,this.overlayX=n.overlayX,this.overlayY=n.overlayY},n_=function e(t,n){w(this,e),this.connectionPair=t,this.scrollableViewProperties=n},i_=function(){var e=function(){function e(t){w(this,e),this._attachedOverlays=[],this._document=t}return C(e,[{key:"ngOnDestroy",value:function(){this.detach()}},{key:"add",value:function(e){this.remove(e),this._attachedOverlays.push(e)}},{key:"remove",value:function(e){var t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(bt(jl))},e.\u0275prov=De({factory:function(){return new e(bt(jl))},token:e,providedIn:"root"}),e}(),r_=function(){var e=function(e){g(n,e);var t=k(n);function n(e){var i;return w(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 C(n,[{key:"add",value:function(e){r(i(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}(i_);return e.\u0275fac=function(t){return new(t||e)(bt(jl))},e.\u0275prov=De({factory:function(){return new e(bt(jl))},token:e,providedIn:"root"}),e}(),o_=function(){var e=function(e){g(n,e);var t=k(n);function n(e,i){var r;return w(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 o=n[i];if(!(o._outsidePointerEvents.observers.length<1)&&o.hasAttached()){if(o.overlayElement.contains(t))break;o._outsidePointerEvents.next(e)}}},r}return C(n,[{key:"add",value:function(e){r(i(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}(i_);return e.\u0275fac=function(t){return new(t||e)(bt(jl),bt(Rm))},e.\u0275prov=De({factory:function(){return new e(bt(jl),bt(Rm))},token:e,providedIn:"root"}),e}(),a_=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),s_=function(){var e=function(){function e(t,n){w(this,e),this._platform=n,this._document=t}return C(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(){var e=this._platform?this._platform.isBrowser:"undefined"!=typeof window,t="cdk-overlay-container";if(e||a_)for(var n=this._document.querySelectorAll(".".concat(t,'[platform="server"], ')+".".concat(t,'[platform="test"]')),i=0;i<n.length;i++)n[i].parentNode.removeChild(n[i]);var r=this._document.createElement("div");r.classList.add(t),a_?r.setAttribute("platform","test"):e||r.setAttribute("platform","server"),this._document.body.appendChild(r),this._containerElement=r}}]),e}();return e.\u0275fac=function(t){return new(t||e)(bt(jl),bt(Rm))},e.\u0275prov=De({factory:function(){return new e(bt(jl),bt(Rm))},token:e,providedIn:"root"}),e}(),u_=function(){function e(t,n,i,r,o,a,s,u,c){var l=this;w(this,e),this._portalOutlet=t,this._host=n,this._pane=i,this._config=r,this._ngZone=o,this._keyboardDispatcher=a,this._document=s,this._location=u,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new Z,this._attachments=new Z,this._detachments=new Z,this._locationChanges=P.EMPTY,this._backdropClickHandler=function(e){return l._backdropClick.next(e)},this._keydownEvents=new Z,this._outsidePointerEvents=new Z,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}return C(e,[{key:"attach",value:function(e){var t=this,n=this._portalOutlet.attach(e);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(sg(1)).subscribe((function(){t.hasAttached()&&t.updatePosition()})),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&this._location&&(this._locationChanges=this._location.subscribe((function(){return t.dispose()}))),this._outsideClickDispatcher&&this._outsideClickDispatcher.add(this),n}},{key:"detach",value:function(){if(this.hasAttached()){this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();var e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher&&this._outsideClickDispatcher.remove(this),e}}},{key:"dispose",value:function(){var e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher&&this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,e&&this._detachments.next(),this._detachments.complete()}},{key:"hasAttached",value:function(){return this._portalOutlet.hasAttached()}},{key:"backdropClick",value:function(){return this._backdropClick}},{key:"attachments",value:function(){return this._attachments}},{key:"detachments",value:function(){return this._detachments}},{key:"keydownEvents",value:function(){return this._keydownEvents}},{key:"outsidePointerEvents",value:function(){return this._outsidePointerEvents}},{key:"getConfig",value:function(){return this._config}},{key:"updatePosition",value:function(){this._positionStrategy&&this._positionStrategy.apply()}},{key:"updatePositionStrategy",value:function(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}},{key:"updateSize",value:function(e){this._config=Object.assign(Object.assign({},this._config),e),this._updateElementSize()}},{key:"setDirection",value:function(e){this._config=Object.assign(Object.assign({},this._config),{direction:e}),this._updateElementDirection()}},{key:"addPanelClass",value:function(e){this._pane&&this._toggleClasses(this._pane,e,!0)}},{key:"removePanelClass",value:function(e){this._pane&&this._toggleClasses(this._pane,e,!1)}},{key:"getDirection",value:function(){var e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}},{key:"updateScrollStrategy",value:function(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}},{key:"_updateElementDirection",value:function(){this._host.setAttribute("dir",this.getDirection())}},{key:"_updateElementSize",value:function(){if(this._pane){var e=this._pane.style;e.width=pg(this._config.width),e.height=pg(this._config.height),e.minWidth=pg(this._config.minWidth),e.minHeight=pg(this._config.minHeight),e.maxWidth=pg(this._config.maxWidth),e.maxHeight=pg(this._config.maxHeight)}}},{key:"_togglePointerEvents",value:function(e){this._pane.style.pointerEvents=e?"auto":"none"}},{key:"_attachBackdrop",value:function(){var e=this,t="cdk-overlay-backdrop-showing";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((function(){requestAnimationFrame((function(){e._backdropElement&&e._backdropElement.classList.add(t)}))})):this._backdropElement.classList.add(t)}},{key:"_updateStackingOrder",value:function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}},{key:"detachBackdrop",value:function(){var e=this,t=this._backdropElement;if(t){var n,i=function i(){t&&(t.removeEventListener("click",e._backdropClickHandler),t.removeEventListener("transitionend",i),t.parentNode&&t.parentNode.removeChild(t)),e._backdropElement==t&&(e._backdropElement=null),e._config.backdropClass&&e._toggleClasses(t,e._config.backdropClass,!1),clearTimeout(n)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular((function(){t.addEventListener("transitionend",i)})),t.style.pointerEvents="none",n=this._ngZone.runOutsideAngular((function(){return setTimeout(i,500)}))}}},{key:"_toggleClasses",value:function(e,t,n){var i=e.classList;fg(t).forEach((function(e){e&&(n?i.add(e):i.remove(e))}))}},{key:"_detachContentWhenStable",value:function(){var e=this;this._ngZone.runOutsideAngular((function(){var t=e._ngZone.onStable.pipe(mb(ve(e._attachments,e._detachments))).subscribe((function(){e._pane&&e._host&&0!==e._pane.children.length||(e._pane&&e._config.panelClass&&e._toggleClasses(e._pane,e._config.panelClass,!1),e._host&&e._host.parentElement&&(e._previousHostParent=e._host.parentElement,e._previousHostParent.removeChild(e._host)),t.unsubscribe())}))}))}},{key:"_disposeScrollStrategy",value:function(){var e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}},{key:"overlayElement",get:function(){return this._pane}},{key:"backdropElement",get:function(){return this._backdropElement}},{key:"hostElement",get:function(){return this._host}}]),e}(),c_="cdk-overlay-connected-position-bounding-box",l_=/([A-Za-z%]+)$/,h_=function(){function e(t,n,i,r,o){w(this,e),this._viewportRuler=n,this._document=i,this._platform=r,this._overlayContainer=o,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 Z,this._resizeSubscription=P.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}return C(e,[{key:"attach",value:function(e){var t=this;this._validatePositions(),e.hostElement.classList.add(c_),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe((function(){t._isInitialRender=!0,t.apply()}))}},{key:"apply",value:function(){if(!this._isDisposed&&this._platform.isBrowser)if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)this.reapplyLastPosition();else{this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();var e,t,n=this._originRect,i=this._overlayRect,r=this._viewportRect,o=[],a=v(this._preferredPositions);try{for(a.s();!(t=a.n()).done;){var s=t.value,u=this._getOriginPoint(n,s),c=this._getOverlayPoint(u,i,s),l=this._getOverlayFit(c,i,r,s);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,u);this._canFitWithFlexibleDimensions(l,c,r)?o.push({position:s,origin:u,overlayRect:i,boundingBoxRect:this._calculateBoundingBoxRect(u,s)}):(!e||e.overlayFit.visibleArea<l.visibleArea)&&(e={overlayFit:l,overlayPoint:c,originPoint:u,position:s,overlayRect:i})}}catch(y){a.e(y)}finally{a.f()}if(o.length){var h,d=null,f=-1,p=v(o);try{for(p.s();!(h=p.n()).done;){var m=h.value,g=m.boundingBoxRect.width*m.boundingBoxRect.height*(m.position.weight||1);g>f&&(f=g,d=m)}}catch(y){p.e(y)}finally{p.f()}return this._isPushed=!1,void this._applyPosition(d.position,d.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&&d_(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(c_),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;return i="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,{x:e.x+i,y:e.y+("center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height)}}},{key:"_getOverlayFit",value:function(e,t,n,i){var r=e.x,o=e.y,a=this._getOffset(i,"x"),s=this._getOffset(i,"y");a&&(r+=a),s&&(o+=s);var u=0-o,c=o+t.height-n.height,l=this._subtractOverflows(t.width,0-r,r+t.width-n.width),h=this._subtractOverflows(t.height,u,c),d=l*h;return{visibleArea:d,isCompletelyWithinViewport:t.width*t.height===d,fitsInViewportVertically:h===t.height,fitsInViewportHorizontally:l==t.width}}},{key:"_canFitWithFlexibleDimensions",value:function(e,t,n){if(this._hasFlexibleDimensions){var i=n.bottom-t.y,r=n.right-t.x,o=f_(this._overlayRef.getConfig().minHeight),a=f_(this._overlayRef.getConfig().minWidth);return(e.fitsInViewportVertically||null!=o&&o<=i)&&(e.fitsInViewportHorizontally||null!=a&&a<=r)}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,o=this._viewportRect,a=Math.max(e.x+t.width-o.width,0),s=Math.max(e.y+t.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 this._previousPushAmount={x:i=t.width<=o.width?c||-a:e.x<this._viewportMargin?o.left-n.left-e.x:0,y:r=t.height<=o.height?u||-s:e.y<this._viewportMargin?o.top-n.top-e.y:0},{x:e.x+i,y:e.y+r}}},{key:"_applyPosition",value:function(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._lastPosition=e,this._positionChanges.observers.length){var n=this._getScrollVisibility(),i=new n_(e,n);this._positionChanges.next(i)}this._isInitialRender=!1}},{key:"_setTransformOrigin",value:function(e){if(this._transformOriginSelector){var t,n=this._boundingBox.querySelectorAll(this._transformOriginSelector),i=e.overlayY;t="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(var r=0;r<n.length;r++)n[r].style.transformOrigin="".concat(t," ").concat(i)}}},{key:"_calculateBoundingBoxRect",value:function(e,t){var n,i,r,o,a,s,u=this._viewportRect,c=this._isRtl();if("top"===t.overlayY)n=u.height-(i=e.y)+this._viewportMargin;else if("bottom"===t.overlayY)n=u.height-(r=u.height-e.y+2*this._viewportMargin)+this._viewportMargin;else{var l=Math.min(u.bottom-e.y+u.top,e.y),h=this._lastBoundingBoxSize.height;i=e.y-l,(n=2*l)>h&&!this._isInitialRender&&!this._growAfterOpen&&(i=e.y-h/2)}if("end"===t.overlayX&&!c||"start"===t.overlayX&&c)s=u.width-e.x+this._viewportMargin,o=e.x-this._viewportMargin;else if("start"===t.overlayX&&!c||"end"===t.overlayX&&c)a=e.x,o=u.right-e.x;else{var d=Math.min(u.right-e.x+u.left,e.x),f=this._lastBoundingBoxSize.width;a=e.x-d,(o=2*d)>f&&!this._isInitialRender&&!this._growAfterOpen&&(a=e.x-f/2)}return{top:i,left:a,bottom:r,right:s,width:o,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,o=this._overlayRef.getConfig().maxWidth;i.height=pg(n.height),i.top=pg(n.top),i.bottom=pg(n.bottom),i.width=pg(n.width),i.left=pg(n.left),i.right=pg(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=pg(r)),o&&(i.maxWidth=pg(o))}this._lastBoundingBoxSize=n,d_(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){d_(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){d_(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(e,t){var n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(i){var a=this._viewportRuler.getViewportScrollPosition();d_(n,this._getExactOverlayY(t,e,a)),d_(n,this._getExactOverlayX(t,e,a))}else n.position="static";var s="",u=this._getOffset(t,"x"),c=this._getOffset(t,"y");u&&(s+="translateX(".concat(u,"px) ")),c&&(s+="translateY(".concat(c,"px)")),n.transform=s.trim(),o.maxHeight&&(i?n.maxHeight=pg(o.maxHeight):r&&(n.maxHeight="")),o.maxWidth&&(i?n.maxWidth=pg(o.maxWidth):r&&(n.maxWidth="")),d_(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 o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=o,"bottom"===e.overlayY?i.bottom="".concat(this._document.documentElement.clientHeight-(r.y+this._overlayRect.height),"px"):i.top=pg(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="".concat(this._document.documentElement.clientWidth-(r.x+this._overlayRect.width),"px"):i.left=pg(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:Jb(e,n),isOriginOutsideView:Kb(e,n),isOverlayClipped:Jb(t,n),isOverlayOutsideView:Kb(t,n)}}},{key:"_subtractOverflows",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.reduce((function(e,t){return e-Math.max(t,0)}),e)}},{key:"_getNarrowedViewportRect",value:function(){var e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+e-this._viewportMargin,bottom:n.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}},{key:"_isRtl",value:function(){return"rtl"===this._overlayRef.getDirection()}},{key:"_hasExactPosition",value:function(){return!this._hasFlexibleDimensions||this._isPushed}},{key:"_getOffset",value:function(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}},{key:"_validatePositions",value:function(){}},{key:"_addPanelClasses",value:function(e){var t=this;this._pane&&fg(e).forEach((function(e){""!==e&&-1===t._appliedPanelClasses.indexOf(e)&&(t._appliedPanelClasses.push(e),t._pane.classList.add(e))}))}},{key:"_clearPanelClasses",value:function(){var e=this;this._pane&&(this._appliedPanelClasses.forEach((function(t){e._pane.classList.remove(t)})),this._appliedPanelClasses=[])}},{key:"_getOriginRect",value:function(){var e=this._origin;if(e instanceof _u)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();var t=e.width||0,n=e.height||0;return{top:e.y,bottom:e.y+n,left:e.x,right:e.x+t,height:n,width:t}}},{key:"positions",get:function(){return this._preferredPositions}}]),e}();function d_(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function f_(e){if("number"!=typeof e&&null!=e){var t=l(e.split(l_),2),n=t[1];return n&&"px"!==n?null:parseFloat(t[0])}return e||null}var p_=function(){function e(t,n,i,r,o,a,s){w(this,e),this._preferredPositions=[],this._positionStrategy=new h_(i,r,o,a,s).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,n),this.onPositionChange=this._positionStrategy.positionChanges}return C(e,[{key:"attach",value:function(e){this._overlayRef=e,this._positionStrategy.attach(e),this._direction&&(e.setDirection(this._direction),this._direction=null)}},{key:"dispose",value:function(){this._positionStrategy.dispose()}},{key:"detach",value:function(){this._positionStrategy.detach()}},{key:"apply",value:function(){this._positionStrategy.apply()}},{key:"recalculateLastPosition",value:function(){this._positionStrategy.reapplyLastPosition()}},{key:"withScrollableContainers",value:function(e){this._positionStrategy.withScrollableContainers(e)}},{key:"withFallbackPosition",value:function(e,t,n,i){var r=new t_(e,t,n,i);return this._preferredPositions.push(r),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"withDirection",value:function(e){return this._overlayRef?this._overlayRef.setDirection(e):this._direction=e,this}},{key:"withOffsetX",value:function(e){return this._positionStrategy.withDefaultOffsetX(e),this}},{key:"withOffsetY",value:function(e){return this._positionStrategy.withDefaultOffsetY(e),this}},{key:"withLockedPosition",value:function(e){return this._positionStrategy.withLockedPosition(e),this}},{key:"withPositions",value:function(e){return this._preferredPositions=e.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"setOrigin",value:function(e){return this._positionStrategy.setOrigin(e),this}},{key:"positions",get:function(){return this._preferredPositions}}]),e}(),v_="cdk-global-overlay-wrapper",m_=function(){function e(){w(this,e),this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}return C(e,[{key:"attach",value:function(e){var t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(v_),this._isDisposed=!1}},{key:"top",value:function(){var e=arguments.length>0&&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,o=n.maxWidth,a=n.maxHeight,s=!("100%"!==i&&"100vw"!==i||o&&"100%"!==o&&"100vw"!==o),u=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a);e.position=this._cssPosition,e.marginLeft=s?"0":this._leftOffset,e.marginTop=u?"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=u?"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(v_),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),g_=function(){var e=function(){function e(t,n,i,r){w(this,e),this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=r}return C(e,[{key:"global",value:function(){return new m_}},{key:"connectedTo",value:function(e,t,n){return new p_(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(e){return new h_(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(bt(Db),bt(jl),bt(Rm),bt(s_))},e.\u0275prov=De({factory:function(){return new e(bt(Db),bt(jl),bt(Rm),bt(s_))},token:e,providedIn:"root"}),e}(),y_=0,b_=function(){var e=function(){function e(t,n,i,r,o,a,s,u,c,l,h){w(this,e),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=r,this._keyboardDispatcher=o,this._injector=a,this._ngZone=s,this._document=u,this._directionality=c,this._location=l,this._outsideClickDispatcher=h}return C(e,[{key:"create",value:function(e){var t=this._createHostElement(),n=this._createPaneElement(t),i=this._createPortalOutlet(n),r=new e_(e);return r.direction=r.direction||this._directionality.value,new u_(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-".concat(y_++),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(El)),new zb(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(bt($b),bt(s_),bt(bu),bt(g_),bt(r_),bt(Za),bt(rl),bt(jl),bt(Kg),bt($l),bt(o_))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),__=[{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"}],k_=new ct("cdk-connected-overlay-scroll-strategy"),w_=function(){var e=function e(t){w(this,e),this.elementRef=t};return e.\u0275fac=function(t){return new(t||e)(ss(_u))},e.\u0275dir=Gt({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),e}(),S_=function(){var e=function(){function e(t,n,i,r,o){w(this,e),this._overlay=t,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=P.EMPTY,this._attachSubscription=P.EMPTY,this._detachSubscription=P.EMPTY,this._positionSubscription=P.EMPTY,this.viewportMargin=0,this.open=!1,this.backdropClick=new vc,this.positionChange=new vc,this.attach=new vc,this.detach=new vc,this.overlayKeydown=new vc,this.overlayOutsideClick=new vc,this._templatePortal=new Fb(n,i),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}return C(e,[{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=__);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),t.keyCode!==Um||zm(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 e_({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 Gb(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()}},{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=lg(e)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(e){this._lockPosition=lg(e)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(e){this._flexibleDimensions=lg(e)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(e){this._growAfterOpen=lg(e)}},{key:"push",get:function(){return this._push},set:function(e){this._push=lg(e)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(b_),ss(Hu),ss(qu),ss(k_),ss(Kg,8))},e.\u0275dir=Gt({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[sn]}),e}(),C_={provide:k_,deps:[b_],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},E_=function(){var e=function e(){w(this,e)};return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)},providers:[b_,C_],imports:[[Jg,Hb,Lb],Lb]}),e}();function O_(e){return new z((function(t){var n;try{n=e()}catch(i){return void t.error(i)}return(n?ae(n):ag()).subscribe(t)}))}function x_(e,t){}var T_=function e(){w(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},M_={dialogContainer:Df("dialogContainer",[Ff("void, exit",jf({opacity:0,transform:"scale(0.7)"})),Ff("enter",jf({transform:"none"})),Uf("* => enter",Nf("150ms cubic-bezier(0, 0, 0.2, 1)",jf({transform:"none",opacity:1}))),Uf("* => void, * => exit",Nf("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",jf({opacity:0})))])},P_=function(){var e=function(e){g(n,e);var t=k(n);function n(e,i,r,o,a,s){var u;return w(this,n),(u=t.call(this))._elementRef=e,u._focusTrapFactory=i,u._changeDetectorRef=r,u._config=a,u._focusMonitor=s,u._animationStateChanged=new vc,u._elementFocusedBeforeDialogWasOpened=null,u._closeInteractionType=null,u.attachDomPortal=function(e){return u._portalOutlet.hasAttached(),u._portalOutlet.attachDomPortal(e)},u._ariaLabelledBy=a.ariaLabelledBy||null,u._document=o,u}return C(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._document.activeElement,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._document.activeElement)}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var e=this._elementRef.nativeElement,t=this._document.activeElement;return e===t||e.contains(t)}}]),n}(Ub);return e.\u0275fac=function(t){return new(t||e)(ss(_u),ss(Ng),ss(Ma),ss(jl,8),ss(T_),ss(zg))},e.\u0275dir=Gt({type:e,viewQuery:function(e,t){var n;1&e&&xc(Wb,!0),2&e&&Oc(n=Rc())&&(t._portalOutlet=n.first)},features:[nu]}),e}(),I_=function(){var e=function(e){g(n,e);var t=k(n);function n(){var e;return w(this,n),(e=t.apply(this,arguments))._state="enter",e}return C(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}(P_);return e.\u0275fac=function(t){return A_(t||e)},e.\u0275cmp=Ft({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&_s("@dialogContainer.start",(function(e){return t._onAnimationStart(e)}))("@dialogContainer.done",(function(e){return t._onAnimationDone(e)})),2&e&&($s("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),eu("@dialogContainer",t._state))},features:[nu],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&os(0,x_,0,0,"ng-template",0)},directives:[Wb],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[M_.dialogContainer]}}),e}(),A_=Gi(I_),R_=0,D_=function(){function e(t,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat(R_++);w(this,e),this._overlayRef=t,this._containerInstance=n,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new Z,this._afterClosed=new Z,this._beforeClosed=new Z,this._state=0,n._id=r,n._animationStateChanged.pipe(tg((function(e){return"opened"===e.state})),sg(1)).subscribe((function(){i._afterOpened.next(),i._afterOpened.complete()})),n._animationStateChanged.pipe(tg((function(e){return"closed"===e.state})),sg(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(tg((function(e){return e.keyCode===Um&&!i.disableClose&&!zm(e)}))).subscribe((function(e){e.preventDefault(),N_(i,"keyboard")})),t.backdropClick().subscribe((function(){i.disableClose?i._containerInstance._recaptureFocus():N_(i,"mouse")}))}return C(e,[{key:"close",value:function(e){var t=this;this._result=e,this._containerInstance._animationStateChanged.pipe(tg((function(e){return"closing"===e.state})),sg(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._getPositionStrategy().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 N_(e,t,n){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=t),e.close(n)}var L_=new ct("MatDialogData"),V_=new ct("mat-dialog-default-options"),j_=new ct("mat-dialog-scroll-strategy"),F_={provide:j_,deps:[b_],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},B_=function(){var e=function(){function e(t,n,i,r,o,a,s,u,c){var l=this;w(this,e),this._overlay=t,this._injector=n,this._defaultOptions=i,this._parentDialog=r,this._overlayContainer=o,this._dialogRefConstructor=s,this._dialogContainerType=u,this._dialogDataToken=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Z,this._afterOpenedAtThisLevel=new Z,this._ariaHiddenElements=new Map,this.afterAllClosed=O_((function(){return l.openDialogs.length?l._getAfterAllClosed():l._getAfterAllClosed().pipe(ty(void 0))})),this._scrollStrategy=a}return C(e,[{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 T_)).id&&this.getDialogById(t.id);var i=this._createOverlay(t),r=this._attachDialogContainer(i,t),o=this._attachDialogContent(e,r,i,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.afterClosed().subscribe((function(){return n._removeOpenDialog(o)})),this.afterOpened.next(o),r._initializeWithAttachedContent(),o}},{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 e_({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=Za.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:T_,useValue:t}]}),i=new jb(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 Hu)t.attachTemplatePortal(new Fb(e,null,{$implicit:i.data,dialogRef:r}));else{var o=this._createInjector(i,r,t),a=t.attachComponentPortal(new jb(e,i.viewContainerRef,o));r.componentInstance=a.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(Kg,null)||r.push({provide:Kg,useValue:{value:e.direction,change:Bm()}}),Za.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()}},{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(b_),ss(Za),ss(void 0),ss(void 0),ss(s_),ss(void 0),ss(Ia),ss(Ia),ss(ct))},e.\u0275dir=Gt({type:e}),e}(),U_=function(){var e=function(e){g(n,e);var t=k(n);function n(e,i,r,o,a,s,u){return w(this,n),t.call(this,e,i,o,s,u,a,D_,I_,L_)}return n}(B_);return e.\u0275fac=function(t){return new(t||e)(bt(b_),bt(Za),bt($l,8),bt(V_,8),bt(j_),bt(e,12),bt(s_))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),z_=0,W_=function(){var e=function(){function e(t,n,i){w(this,e),this._dialogRef=t,this._elementRef=n,this._dialog=i,this.id="mat-dialog-title-".concat(z_++)}return C(e,[{key:"ngOnInit",value:function(){var e=this;this._dialogRef||(this._dialogRef=function(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}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then((function(){var t=e._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=e.id)}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(D_,8),ss(_u),ss(U_))},e.\u0275dir=Gt({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&$s("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),e}(),H_=function(){var e=function e(){w(this,e)};return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)},providers:[U_,F_],imports:[[E_,Hb,ay],ay]}),e}();function G_(e){return e instanceof Date&&!isNaN(+e)}function q_(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Km,n=G_(e),i=n?+e-t.now():Math.abs(e);return function(e){return e.lift(new Z_(i,t))}}var Z_=function(){function e(t,n){w(this,e),this.delay=t,this.scheduler=n}return C(e,[{key:"call",value:function(e,t){return t.subscribe(new Q_(e,this.delay,this.scheduler))}}]),e}(),Q_=function(e){g(n,e);var t=k(n);function n(e,i,r){var o;return w(this,n),(o=t.call(this,e)).delay=i,o.scheduler=r,o.queue=[],o.active=!1,o.errored=!1,o}return C(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 Y_(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}}},{key:"_next",value:function(e){this.scheduleNotification(Ob.createNext(e))}},{key:"_error",value:function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(Ob.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 o=Math.max(0,n[0].time-i.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1}}]),n}(V),Y_=function e(t,n){w(this,e),this.time=t,this.notification=n},K_=["mat-menu-item",""],J_=["*"];function X_(e,t){if(1&e){var n=ms();hs(0,"div",0),bs("keydown",(function(e){return An(n),Es()._handleKeydown(e)}))("click",(function(){return An(n),Es().closed.emit("click")}))("@transformMenu.start",(function(e){return An(n),Es()._onAnimationStart(e)}))("@transformMenu.done",(function(e){return An(n),Es()._onAnimationDone(e)})),hs(1,"div",1),Ts(2),ds(),ds()}if(2&e){var i=Es();cs("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 $_={transformMenu:Df("transformMenu",[Ff("void",jf({opacity:0,transform:"scale(0.8)"})),Uf("void => enter",Lf([Wf(".mat-menu-content, .mat-mdc-menu-content",Nf("100ms linear",jf({opacity:1}))),Nf("120ms cubic-bezier(0, 0, 0.2, 1)",jf({transform:"scale(1)"}))])),Uf("* => void",Nf("100ms 25ms linear",jf({opacity:0})))]),fadeInItems:Df("fadeInItems",[Ff("showing",jf({opacity:1})),Uf("void => *",[jf({opacity:0}),Nf("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},ek=new ct("MatMenuContent"),tk=new ct("MAT_MENU_PANEL"),nk=cy(sy((function e(){w(this,e)}))),ik=function(){var e=function(e){g(n,e);var t=k(n);function n(e,i,r,a){var s;return w(this,n),(s=t.call(this))._elementRef=e,s._focusMonitor=r,s._parentMenu=a,s.role="menuitem",s._hovered=new Z,s._focused=new Z,s._highlighted=!1,s._triggersSubmenu=!1,a&&a.addItem&&a.addItem(o(s)),s._document=i,s}return C(n,[{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",t=arguments.length>1?arguments[1]:void 0;this._focusMonitor?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(){var e=this._elementRef.nativeElement,t=this._document?this._document.TEXT_NODE:3,n="";if(e.childNodes)for(var i=e.childNodes.length,r=0;r<i;r++)e.childNodes[r].nodeType===t&&(n+=e.childNodes[r].textContent);return n.trim()}}]),n}(nk);return e.\u0275fac=function(t){return new(t||e)(ss(_u),ss(jl),ss(zg),ss(tk,8))},e.\u0275cmp=Ft({type:e,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(e,t){1&e&&bs("click",(function(e){return t._checkDisabled(e)}))("mouseenter",(function(){return t._handleMouseEnter()})),2&e&&(is("role",t.role)("tabindex",t._getTabIndex())("aria-disabled",t.disabled.toString())("disabled",t.disabled||null),Fs("mat-menu-item",!0)("mat-menu-item-highlighted",t._highlighted)("mat-menu-item-submenu-trigger",t._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[nu],attrs:K_,ngContentSelectors:J_,decls:2,vars:2,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"]],template:function(e,t){1&e&&(xs(),Ts(0),fs(1,"div",0)),2&e&&($r(1),cs("matRippleDisabled",t.disableRipple||t.disabled)("matRippleTrigger",t._getHostElement()))},directives:[Sy],encapsulation:2,changeDetection:0}),e}(),rk=new ct("mat-menu-default-options",{providedIn:"root",factory:function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}}),ok=0,ak=function(){var e=function(){function e(t,n,i){w(this,e),this._elementRef=t,this._ngZone=n,this._defaultOptions=i,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new gc,this._tabSubscription=P.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new Z,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new vc,this.close=this.closed,this.panelId="mat-menu-panel-".concat(ok++)}return C(e,[{key:"ngOnInit",value:function(){this.setPositionClasses()}},{key:"ngAfterContentInit",value:function(){var e=this;this._updateDirectDescendants(),this._keyManager=new Pg(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe((function(){return e.closed.emit("tab")})),this._directDescendantItems.changes.pipe(ty(this._directDescendantItems),bb((function(e){return ve.apply(void 0,d(e.map((function(e){return e._focused}))))}))).subscribe((function(t){return e._keyManager.updateActiveItem(t)}))}},{key:"ngOnDestroy",value:function(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}},{key:"_hovered",value:function(){return this._directDescendantItems.changes.pipe(ty(this._directDescendantItems),bb((function(e){return ve.apply(void 0,d(e.map((function(e){return e._hovered}))))})))}},{key:"addItem",value:function(e){}},{key:"removeItem",value:function(e){}},{key:"_handleKeydown",value:function(e){var t=e.keyCode,n=this._keyManager;switch(t){case Um:zm(e)||(e.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!==t&&40!==t||n.setFocusOrigin("keyboard"),n.onKeydown(e)}}},{key:"focusFirstItem",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.pipe(sg(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=Math.min(4+e,24),n="mat-elevation-z".concat(t),i=Object.keys(this._classList).find((function(e){return e.startsWith("mat-elevation-z")}));i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[n]=!0,this._previousElevation=n)}},{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(ty(this._allItems)).subscribe((function(t){e._directDescendantItems.reset(t.filter((function(t){return t._parentMenu===e}))),e._directDescendantItems.notifyOnChanges()}))}},{key:"xPosition",get:function(){return this._xPosition},set:function(e){this._xPosition=e,this.setPositionClasses()}},{key:"yPosition",get:function(){return this._yPosition},set:function(e){this._yPosition=e,this.setPositionClasses()}},{key:"overlapTrigger",get:function(){return this._overlapTrigger},set:function(e){this._overlapTrigger=lg(e)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=lg(e)}},{key:"panelClass",set:function(e){var t=this,n=this._previousPanelClass;n&&n.length&&n.split(" ").forEach((function(e){t._classList[e]=!1})),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach((function(e){t._classList[e]=!0})),this._elementRef.nativeElement.className="")}},{key:"classList",get:function(){return this.panelClass},set:function(e){this.panelClass=e}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(_u),ss(rl),ss(rk))},e.\u0275dir=Gt({type:e,contentQueries:function(e,t,n){var i;1&e&&(Pc(n,ek,!0),Pc(n,ik,!0),Pc(n,ik,!1)),2&e&&(Oc(i=Rc())&&(t.lazyContent=i.first),Oc(i=Rc())&&(t._allItems=i),Oc(i=Rc())&&(t.items=i))},viewQuery:function(e,t){var n;1&e&&Tc(Hu,!0),2&e&&Oc(n=Rc())&&(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"}}),e}(),sk=function(){var e=function(e){g(n,e);var t=k(n);function n(){return w(this,n),t.apply(this,arguments)}return n}(ak);return e.\u0275fac=function(t){return uk(t||e)},e.\u0275dir=Gt({type:e,features:[nu]}),e}(),uk=Gi(sk),ck=function(){var e=function(e){g(n,e);var t=k(n);function n(e,i,r){return w(this,n),t.call(this,e,i,r)}return n}(sk);return e.\u0275fac=function(t){return new(t||e)(ss(_u),ss(rl),ss(rk))},e.\u0275cmp=Ft({type:e,selectors:[["mat-menu"]],exportAs:["matMenu"],features:[vu([{provide:tk,useExisting:sk},{provide:sk,useExisting:e}]),nu],ngContentSelectors:J_,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&&(xs(),os(0,X_,3,6,"ng-template"))},directives:[ah],styles:['.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[$_.transformMenu,$_.fadeInItems]},changeDetection:0}),e}(),lk=new ct("mat-menu-scroll-strategy"),hk={provide:lk,deps:[b_],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},dk=Vm({passive:!0}),fk=function(){var e=function(){function e(t,n,i,r,o,a,s,u){var c=this;w(this,e),this._overlay=t,this._element=n,this._viewContainerRef=i,this._parentMenu=o,this._menuItemInstance=a,this._dir=s,this._focusMonitor=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=P.EMPTY,this._hoverSubscription=P.EMPTY,this._menuCloseSubscription=P.EMPTY,this._handleTouchStart=function(){return c._openedBy="touch"},this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new vc,this.onMenuOpen=this.menuOpened,this.menuClosed=new vc,this.onMenuClose=this.menuClosed,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,dk),a&&(a._triggersSubmenu=this.triggersSubmenu()),this._scrollStrategy=r}return C(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,dk),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var 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 sk&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",t=arguments.length>1?arguments[1]:void 0;this._focusMonitor?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"_destroyMenu",value:function(){var e=this;if(this._overlayRef&&this.menuOpen){var t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this._restoreFocus(),t instanceof sk?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(tg((function(e){return"void"===e.toState})),sg(1),mb(t.lazyContent._attached)).subscribe({next:function(){return t.lazyContent.detach()},complete:function(){return e._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedBy||"program")}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var e=0,t=this.menu.parentMenu;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}},{key:"_restoreFocus",value:function(){this.restoreFocus&&(this._openedBy?this.triggersSubmenu()||this.focus(this._openedBy):this.focus()),this._openedBy=null}},{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 e_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().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=l("before"===this.menu.xPosition?["end","start"]:["start","end"],2),n=t[0],i=t[1],r=l("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),o=r[0],a=r[1],s=o,u=a,c=n,h=i,d=0;this.triggersSubmenu()?(h=n="before"===this.menu.xPosition?"start":"end",i=c="end"===n?"start":"end",d="bottom"===o?8:-8):this.menu.overlapTrigger||(s="top"===o?"bottom":"top",u="top"===a?"bottom":"top"),e.withPositions([{originX:n,originY:s,overlayX:c,overlayY:o,offsetY:d},{originX:i,originY:s,overlayX:h,overlayY:o,offsetY:d},{originX:n,originY:u,overlayX:c,overlayY:a,offsetY:-d},{originX:i,originY:u,overlayX:h,overlayY:a,offsetY:-d}])}},{key:"_menuClosingActions",value:function(){var e=this,t=this._overlayRef.backdropClick(),n=this._overlayRef.detachments();return ve(t,this._parentMenu?this._parentMenu.closed:Bm(),this._parentMenu?this._parentMenu._hovered().pipe(tg((function(t){return t!==e._menuItemInstance})),tg((function(){return e._menuOpen}))):Bm(),n)}},{key:"_handleMousedown",value:function(e){Fg(e)||(this._openedBy=0===e.button?"mouse":null,this.triggersSubmenu()&&e.preventDefault())}},{key:"_handleKeydown",value:function(e){var t=e.keyCode;this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&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._hoverSubscription=this._parentMenu._hovered().pipe(tg((function(t){return t===e._menuItemInstance&&!t.disabled})),q_(0,ob)).subscribe((function(){e._openedBy="mouse",e.menu instanceof sk&&e.menu._isAnimating?e.menu._animationDone.pipe(sg(1),q_(0,ob),mb(e._parentMenu._hovered())).subscribe((function(){return e.openMenu()})):e.openMenu()})))}},{key:"_getPortal",value:function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new Fb(this.menu.templateRef,this._viewContainerRef)),this._portal}},{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(),"click"!==e&&"tab"!==e||!t._parentMenu||t._parentMenu.closed.emit(e)}))))}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(b_),ss(_u),ss(qu),ss(lk),ss(sk,8),ss(ik,10),ss(Kg,8),ss(zg))},e.\u0275dir=Gt({type:e,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(e,t){1&e&&bs("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"]}),e}(),pk=function(){var e=function e(){w(this,e)};return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)},providers:[hk],imports:[ay]}),e}(),vk=function(){var e=function e(){w(this,e)};return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)},providers:[hk],imports:[[wh,ay,Cy,E_,pk],Nb,ay,pk]}),e}(),mk=["underline"],gk=["connectionContainer"],yk=["inputContainer"],bk=["label"];function _k(e,t){1&e&&(ps(0),hs(1,"div",14),fs(2,"div",15),fs(3,"div",16),fs(4,"div",17),ds(),hs(5,"div",18),fs(6,"div",15),fs(7,"div",16),fs(8,"div",17),ds(),vs())}function kk(e,t){1&e&&(hs(0,"div",19),Ts(1,1),ds())}function wk(e,t){if(1&e&&(ps(0),Ts(1,2),hs(2,"span"),Ks(3),ds(),vs()),2&e){var n=Es(2);$r(3),Js(n._control.placeholder)}}function Sk(e,t){1&e&&Ts(0,3,["*ngSwitchCase","true"])}function Ck(e,t){1&e&&(hs(0,"span",23),Ks(1," *"),ds())}function Ek(e,t){if(1&e){var n=ms();hs(0,"label",20,21),bs("cdkObserveContent",(function(){return An(n),Es().updateOutlineGap()})),os(2,wk,4,1,"ng-container",12),os(3,Sk,1,0,"ng-content",12),os(4,Ck,2,0,"span",22),ds()}if(2&e){var i=Es();Fs("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),cs("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),is("for",i._control.id)("aria-owns",i._control.id),$r(2),cs("ngSwitchCase",!1),$r(1),cs("ngSwitchCase",!0),$r(1),cs("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function Ok(e,t){1&e&&(hs(0,"div",24),Ts(1,4),ds())}function xk(e,t){if(1&e&&(hs(0,"div",25,26),fs(2,"span",27),ds()),2&e){var n=Es();$r(2),Fs("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function Tk(e,t){1&e&&(hs(0,"div"),Ts(1,5),ds()),2&e&&cs("@transitionMessages",Es()._subscriptAnimationState)}function Mk(e,t){if(1&e&&(hs(0,"div",31),Ks(1),ds()),2&e){var n=Es(2);cs("id",n._hintLabelId),$r(1),Js(n.hintLabel)}}function Pk(e,t){if(1&e&&(hs(0,"div",28),os(1,Mk,2,2,"div",29),Ts(2,6),fs(3,"div",30),Ts(4,7),ds()),2&e){var n=Es();cs("@transitionMessages",n._subscriptAnimationState),$r(1),cs("ngIf",n.hintLabel)}}var Ik=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Ak=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],Rk=0,Dk=new ct("MatError"),Nk=function(){var e=function e(){w(this,e),this.id="mat-error-".concat(Rk++)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Gt({type:e,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:[vu([{provide:Dk,useExisting:e}])]}),e}(),Lk={transitionMessages:Df("transitionMessages",[Ff("enter",jf({opacity:1,transform:"translateY(0%)"})),Uf("void => enter",[jf({opacity:0,transform:"translateY(-100%)"}),Nf("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Vk=function(){var e=function e(){w(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Gt({type:e}),e}(),jk=new ct("MatHint"),Fk=function(){var e=function e(){w(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Gt({type:e,selectors:[["mat-label"]]}),e}(),Bk=function(){var e=function e(){w(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Gt({type:e,selectors:[["mat-placeholder"]]}),e}(),Uk=new ct("MatPrefix"),zk=new ct("MatSuffix"),Wk=0,Hk=uy((function e(t){w(this,e),this._elementRef=t}),"primary"),Gk=new ct("MAT_FORM_FIELD_DEFAULT_OPTIONS"),qk=new ct("MatFormField"),Zk=function(){var e=function(e){g(n,e);var t=k(n);function n(e,i,r,o,a,s,u,c){var l;return w(this,n),(l=t.call(this,e))._elementRef=e,l._changeDetectorRef=i,l._dir=o,l._defaults=a,l._platform=s,l._ngZone=u,l._outlineGapCalculationNeededImmediately=!1,l._outlineGapCalculationNeededOnStable=!1,l._destroyed=new Z,l._showAlwaysAnimate=!1,l._subscriptAnimationState="",l._hintLabel="",l._hintLabelId="mat-hint-".concat(Wk++),l._labelId="mat-form-field-label-".concat(Wk++),l._labelOptions=r||{},l.floatLabel=l._getDefaultFloatLabelState(),l._animationsEnabled="NoopAnimations"!==c,l.appearance=a&&a.appearance?a.appearance:"legacy",l._hideRequiredMarker=!(!a||null==a.hideRequiredMarker)&&a.hideRequiredMarker,l}return C(n,[{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{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(ty(null)).subscribe((function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()})),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(mb(this._destroyed)).subscribe((function(){return e._changeDetectorRef.markForCheck()})),this._ngZone.runOutsideAngular((function(){e._ngZone.onStable.pipe(mb(e._destroyed)).subscribe((function(){e._outlineGapCalculationNeededOnStable&&e.updateOutlineGap()}))})),ve(this._prefixChildren.changes,this._suffixChildren.changes).subscribe((function(){e._outlineGapCalculationNeededOnStable=!0,e._changeDetectorRef.markForCheck()})),this._hintChildren.changes.pipe(ty(null)).subscribe((function(){e._processHints(),e._changeDetectorRef.markForCheck()})),this._errorChildren.changes.pipe(ty(null)).subscribe((function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()})),this._dir&&this._dir.change.pipe(mb(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,Jy(this._label.nativeElement,"transitionend").pipe(sg(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||this._labelOptions.float||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push.apply(e,d(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,d(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"),o=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var a=i.getBoundingClientRect();if(0===a.width&&0===a.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var s=this._getStartEnd(a),u=e.children,c=this._getStartEnd(u[0].getBoundingClientRect()),l=0,h=0;h<u.length;h++)l+=u[h].offsetWidth;t=Math.abs(c-s)-5,n=l>0?.75*l+10:0}for(var d=0;d<r.length;d++)r[d].style.width="".concat(t,"px");for(var f=0;f<o.length;f++)o[f].style.width="".concat(n,"px");this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}else this._outlineGapCalculationNeededImmediately=!0}},{key:"_getStartEnd",value:function(e){return this._dir&&"rtl"===this._dir.value?e.right:e.left}},{key:"_isAttachedToDOM",value:function(){var e=this._elementRef.nativeElement;if(e.getRootNode){var t=e.getRootNode();return t&&t!==e}return document.documentElement.contains(e)}},{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=lg(e)}},{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}}]),n}(Hk);return e.\u0275fac=function(t){return new(t||e)(ss(_u),ss(Ma),ss(Fy,8),ss(Kg,8),ss(Gk,8),ss(Rm),ss(rl),ss(Cm,8))},e.\u0275cmp=Ft({type:e,selectors:[["mat-form-field"]],contentQueries:function(e,t,n){var i;1&e&&(Pc(n,Vk,!0),Ic(n,Vk,!0),Pc(n,Fk,!0),Ic(n,Fk,!0),Pc(n,Bk,!0),Pc(n,Dk,!0),Pc(n,jk,!0),Pc(n,Uk,!0),Pc(n,zk,!0)),2&e&&(Oc(i=Rc())&&(t._controlNonStatic=i.first),Oc(i=Rc())&&(t._controlStatic=i.first),Oc(i=Rc())&&(t._labelChildNonStatic=i.first),Oc(i=Rc())&&(t._labelChildStatic=i.first),Oc(i=Rc())&&(t._placeholderChild=i.first),Oc(i=Rc())&&(t._errorChildren=i),Oc(i=Rc())&&(t._hintChildren=i),Oc(i=Rc())&&(t._prefixChildren=i),Oc(i=Rc())&&(t._suffixChildren=i))},viewQuery:function(e,t){var n;1&e&&(Tc(mk,!0),xc(gk,!0),Tc(yk,!0),Tc(bk,!0)),2&e&&(Oc(n=Rc())&&(t.underlineRef=n.first),Oc(n=Rc())&&(t._connectionContainerRef=n.first),Oc(n=Rc())&&(t._inputContainerRef=n.first),Oc(n=Rc())&&(t._label=n.first))},hostAttrs:[1,"mat-form-field"],hostVars:44,hostBindings:function(e,t){2&e&&Fs("mat-form-field-appearance-standard","standard"==t.appearance)("mat-form-field-appearance-fill","fill"==t.appearance)("mat-form-field-appearance-outline","outline"==t.appearance)("mat-form-field-appearance-legacy","legacy"==t.appearance)("mat-form-field-invalid",t._control.errorState)("mat-form-field-can-float",t._canLabelFloat())("mat-form-field-should-float",t._shouldLabelFloat())("mat-form-field-has-label",t._hasFloatingLabel())("mat-form-field-hide-placeholder",t._hideControlPlaceholder())("mat-form-field-disabled",t._control.disabled)("mat-form-field-autofilled",t._control.autofilled)("mat-focused",t._control.focused)("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)("ng-untouched",t._shouldForward("untouched"))("ng-touched",t._shouldForward("touched"))("ng-pristine",t._shouldForward("pristine"))("ng-dirty",t._shouldForward("dirty"))("ng-valid",t._shouldForward("valid"))("ng-invalid",t._shouldForward("invalid"))("ng-pending",t._shouldForward("pending"))("_mat-animation-noopable",!t._animationsEnabled)},inputs:{color:"color",floatLabel:"floatLabel",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[vu([{provide:qk,useExisting:e}]),nu],ngContentSelectors:Ak,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],["underline",""],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(e,t){1&e&&(xs(Ik),hs(0,"div",0),hs(1,"div",1,2),bs("click",(function(e){return t._control.onContainerClick&&t._control.onContainerClick(e)})),os(3,_k,9,0,"ng-container",3),os(4,kk,2,0,"div",4),hs(5,"div",5,6),Ts(7),hs(8,"span",7),os(9,Ek,5,16,"label",8),ds(),ds(),os(10,Ok,2,0,"div",9),ds(),os(11,xk,3,4,"div",10),hs(12,"div",11),os(13,Tk,2,1,"div",12),os(14,Pk,5,2,"div",13),ds(),ds()),2&e&&($r(3),cs("ngIf","outline"==t.appearance),$r(1),cs("ngIf",t._prefixChildren.length),$r(5),cs("ngIf",t._hasFloatingLabel()),$r(1),cs("ngIf",t._suffixChildren.length),$r(1),cs("ngIf","outline"!=t.appearance),$r(1),cs("ngSwitch",t._getDisplayedMessages()),$r(1),cs("ngSwitchCase","error"),$r(1),cs("ngSwitchCase","hint"))},directives:[lh,ph,vh,yg],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:scaleX(1);transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px);-ms-transform:none}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[Lk.transitionMessages]},changeDetection:0}),e}(),Qk=function(){var e=function e(){w(this,e)};return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)},imports:[[wh,ay,bg],ay]}),e}(),Yk=function(){var e=function e(){w(this,e)};return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)},imports:[[fy,ay],fy,ay]}),e}();function Kk(e){return function(t){var n=new Jk(e),i=t.lift(n);return n.caught=i}}var Jk=function(){function e(t){w(this,e),this.selector=t}return C(e,[{key:"call",value:function(e,t){return t.subscribe(new Xk(e,this.selector,this.caught))}}]),e}(),Xk=function(e){g(n,e);var t=k(n);function n(e,i,r){var o;return w(this,n),(o=t.call(this,e)).selector=i,o.caught=r,o}return C(n,[{key:"error",value:function(e){if(!this.isStopped){var t;try{t=this.selector(e,this.caught)}catch(s){return void r(i(n.prototype),"error",this).call(this,s)}this._unsubscribeAndRecycle();var o=new se(this);this.add(o);var a=ce(t,o);a!==o&&this.add(a)}}}]),n}(ue);function $k(e){return function(t){return t.lift(new ew(e))}}var ew=function(){function e(t){w(this,e),this.callback=t}return C(e,[{key:"call",value:function(e,t){return t.subscribe(new tw(e,this.callback))}}]),e}(),tw=function(e){g(n,e);var t=k(n);function n(e,i){var r;return w(this,n),(r=t.call(this,e)).add(new P(i)),r}return n}(V);function nw(e,t){return le(e,t,1)}var iw=function e(){w(this,e)},rw=function e(){w(this,e)},ow=function(){function e(t){var n=this;w(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(),o=e.slice(t+1).trim();n.maybeSetNormalizedName(i,r),n.headers.has(r)?n.headers.get(r).push(o):n.headers.set(r,[o])}}))}: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 C(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,d(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}(),aw=function(){function e(){w(this,e)}return C(e,[{key:"encodeKey",value:function(e){return uw(e)}},{key:"encodeValue",value:function(e){return uw(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}();function sw(e,t){var n=new Map;return e.length>0&&e.split("&").forEach((function(e){var i=e.indexOf("="),r=l(-1==i?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,i)),t.decodeValue(e.slice(i+1))],2),o=r[0],a=r[1],s=n.get(o)||[];s.push(a),n.set(o,s)})),n}function uw(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 cw=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(w(this,e),this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new aw,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=sw(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach((function(e){var i=n.fromObject[e];t.map.set(e,Array.isArray(i)?i:[i])}))):this.map=null}return C(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:"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 lw(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function hw(e){return"undefined"!=typeof Blob&&e instanceof Blob}function dw(e){return"undefined"!=typeof FormData&&e instanceof FormData}var fw=function(){function e(t,n,i,r){var o;if(w(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,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new ow),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var s=n.indexOf("?");this.urlWithParams=n+(-1===s?"?":s<n.length-1?"&":"")+a}}else this.params=new cw,this.urlWithParams=n}return C(e,[{key:"serializeBody",value:function(){return null===this.body?null:lw(this.body)||hw(this.body)||dw(this.body)||"string"==typeof this.body?this.body:this.body instanceof cw?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}},{key:"detectContentTypeHeader",value:function(){return null===this.body||dw(this.body)?null:hw(this.body)?this.body.type||null:lw(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof cw?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}},{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.method||this.method,i=t.url||this.url,r=t.responseType||this.responseType,o=void 0!==t.body?t.body:this.body,a=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,s=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,u=t.headers||this.headers,c=t.params||this.params;return void 0!==t.setHeaders&&(u=Object.keys(t.setHeaders).reduce((function(e,n){return e.set(n,t.setHeaders[n])}),u)),t.setParams&&(c=Object.keys(t.setParams).reduce((function(e,n){return e.set(n,t.setParams[n])}),c)),new e(n,i,o,{params:c,headers:u,reportProgress:s,responseType:r,withCredentials:a})}}]),e}(),pw=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}({}),vw=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";w(this,e),this.headers=t.headers||new ow,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},mw=function(e){g(n,e);var t=k(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return w(this,n),(e=t.call(this,i)).type=pw.ResponseHeader,e}return C(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}(vw),gw=function(e){g(n,e);var t=k(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return w(this,n),(e=t.call(this,i)).type=pw.Response,e.body=void 0!==i.body?i.body:null,e}return C(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}(vw),yw=function(e){g(n,e);var t=k(n);function n(e){var i;return w(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}(vw);function bw(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var _w=function(){var e=function(){function e(t){w(this,e),this.handler=t}return C(e,[{key:"request",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e instanceof fw)n=e;else{var o=void 0;o=r.headers instanceof ow?r.headers:new ow(r.headers);var a=void 0;r.params&&(a=r.params instanceof cw?r.params:new cw({fromObject:r.params})),n=new fw(e,t,void 0!==r.body?r.body:null,{headers:o,params:a,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}var s=Bm(n).pipe(nw((function(e){return i.handler.handle(e)})));if(e instanceof fw||"events"===r.observe)return s;var u=s.pipe(tg((function(e){return e instanceof gw})));switch(r.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return u.pipe(K((function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body})));case"blob":return u.pipe(K((function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body})));case"text":return u.pipe(K((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 u.pipe(K((function(e){return e.body})))}case"response":return u;default:throw new Error("Unreachable: unhandled observe type ".concat(r.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 cw).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,bw(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,bw(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,bw(n,t))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(bt(iw))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),kw=function(){function e(t,n){w(this,e),this.next=t,this.interceptor=n}return C(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),ww=new ct("HTTP_INTERCEPTORS"),Sw=function(){var e=function(){function e(){w(this,e)}return C(e,[{key:"intercept",value:function(e,t){return t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),Cw=/^\)\]\}',?\n/,Ew=function e(){w(this,e)},Ow=function(){var e=function(){function e(){w(this,e)}return C(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),xw=function(){var e=function(){function e(t){w(this,e),this.xhrFactory=t}return C(e,[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new z((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 o=e.responseType.toLowerCase();i.responseType="json"!==o?o:"text"}var a=e.serializeBody(),s=null,u=function(){if(null!==s)return s;var t=1223===i.status?204:i.status,n=i.statusText||"OK",r=new ow(i.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(i)||e.url;return s=new mw({headers:r,status:t,statusText:n,url:o})},c=function(){var t=u(),r=t.headers,o=t.status,a=t.statusText,s=t.url,c=null;204!==o&&(c=void 0===i.response?i.responseText:i.response),0===o&&(o=c?200:0);var l=o>=200&&o<300;if("json"===e.responseType&&"string"==typeof c){var h=c;c=c.replace(Cw,"");try{c=""!==c?JSON.parse(c):null}catch(d){c=h,l&&(l=!1,c={error:d,text:c})}}l?(n.next(new gw({body:c,headers:r,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new yw({error:c,headers:r,status:o,statusText:a,url:s||void 0}))},l=function(e){var t=u(),r=new yw({error:e,status:i.status||0,statusText:i.statusText||"Unknown Error",url:t.url||void 0});n.error(r)},h=!1,d=function(t){h||(n.next(u()),h=!0);var r={type:pw.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:pw.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return i.addEventListener("load",c),i.addEventListener("error",l),e.reportProgress&&(i.addEventListener("progress",d),null!==a&&i.upload&&i.upload.addEventListener("progress",f)),i.send(a),n.next({type:pw.Sent}),function(){i.removeEventListener("error",l),i.removeEventListener("load",c),e.reportProgress&&(i.removeEventListener("progress",d),null!==a&&i.upload&&i.upload.removeEventListener("progress",f)),i.readyState!==i.DONE&&i.abort()}}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(bt(Ew))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),Tw=new ct("XSRF_COOKIE_NAME"),Mw=new ct("XSRF_HEADER_NAME"),Pw=function e(){w(this,e)},Iw=function(){var e=function(){function e(t,n,i){w(this,e),this.doc=t,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return C(e,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=oh(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}();return e.\u0275fac=function(t){return new(t||e)(bt(jl),bt(Wc),bt(Tw))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),Aw=function(){var e=function(){function e(t,n){w(this,e),this.tokenService=t,this.headerName=n}return C(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}();return e.\u0275fac=function(t){return new(t||e)(bt(Pw),bt(Mw))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),Rw=function(){var e=function(){function e(t,n){w(this,e),this.backend=t,this.injector=n,this.chain=null}return C(e,[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(ww,[]);this.chain=t.reduceRight((function(e,t){return new kw(e,t)}),this.backend)}return this.chain.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(bt(rw),bt(Za))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),Dw=function(){var e=function(){function e(){w(this,e)}return C(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:Aw,useClass:Sw}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:Tw,useValue:t.cookieName}:[],t.headerName?{provide:Mw,useValue:t.headerName}:[]]}}}]),e}();return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)},providers:[Aw,{provide:ww,useExisting:Aw,multi:!0},{provide:Pw,useClass:Iw},{provide:Tw,useValue:"XSRF-TOKEN"},{provide:Mw,useValue:"X-XSRF-TOKEN"}]}),e}(),Nw=function(){var e=function e(){w(this,e)};return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)},providers:[_w,{provide:iw,useClass:Rw},xw,{provide:rw,useExisting:xw},Ow,{provide:Ew,useExisting:Ow}],imports:[[Dw.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e}(),Lw=["*"];function Vw(e){return Error('Unable to find icon with the name "'.concat(e,'"'))}function jw(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 Fw(e){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+"Angular's DomSanitizer. Attempted literal was \"".concat(e,'".'))}var Bw=function e(t,n,i){w(this,e),this.url=t,this.svgText=n,this.options=i},Uw=function(){var e=function(){function e(t,n,i,r){w(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._defaultFontSetClass="material-icons",this._document=i}return C(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 Bw(n,null,i))}},{key:"addSvgIconLiteralInNamespace",value:function(e,t,n,i){var r=this._sanitizer.sanitize(Ir.HTML,n);if(!r)throw Fw(n);return this._addSvgIconConfig(e,t,new Bw("",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 Bw(t,null,n))}},{key:"addSvgIconSetLiteralInNamespace",value:function(e,t,n){var i=this._sanitizer.sanitize(Ir.HTML,t);if(!i)throw Fw(t);return this._addSvgIconSetConfig(e,new Bw("",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(Ir.RESOURCE_URL,e);if(!n)throw jw(e);var i=this._cachedIconsByUrl.get(n);return i?Bm(zw(i)):this._loadSvgIconFromConfig(new Bw(e,null)).pipe(Hm((function(e){return t._cachedIconsByUrl.set(n,e)})),K((function(e){return zw(e)})))}},{key:"getNamedSvgIcon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Ww(t,e),i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);var r=this._iconSetConfigs.get(t);return r?this._getSvgFromIconSetConfigs(e,r):Cb(Vw(n))}},{key:"ngOnDestroy",value:function(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(e){return e.svgText?Bm(zw(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(K((function(e){return zw(e)})))}},{key:"_getSvgFromIconSetConfigs",value:function(e,t){var n=this,i=this._extractIconWithNameFromAnySet(e,t);return i?Bm(i):sd(t.filter((function(e){return!e.svgText})).map((function(e){return n._loadSvgIconSetFromConfig(e).pipe(Kk((function(t){var i=n._sanitizer.sanitize(Ir.RESOURCE_URL,e.url),r="Loading icon set URL: ".concat(i," failed: ").concat(t.message);return n._errorHandler.handleError(new Error(r)),Bm(null)})))}))).pipe(K((function(){var i=n._extractIconWithNameFromAnySet(e,t);if(!i)throw Vw(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),o=this._extractSvgIconFromSet(r,e,i.options);if(o)return o}}return null}},{key:"_loadSvgIconFromConfig",value:function(e){var t=this;return this._fetchIcon(e).pipe(Hm((function(t){return e.svgText=t})),K((function(){return t._svgElementFromConfig(e)})))}},{key:"_loadSvgIconSetFromConfig",value:function(e){return e.svgText?Bm(null):this._fetchIcon(e).pipe(Hm((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 o=this._svgElementFromString("<svg></svg>");return o.appendChild(r),this._setSvgAttributes(o,n)}},{key:"_svgElementFromString",value:function(e){var t=this._document.createElement("DIV");t.innerHTML=e;var n=t.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n}},{key:"_toSvgElement",value:function(e){for(var t=this._svgElementFromString("<svg></svg>"),n=e.attributes,i=0;i<n.length;i++){var r=n[i],o=r.name;"id"!==o&&t.setAttribute(o,r.value)}for(var a=0;a<e.childNodes.length;a++)e.childNodes[a].nodeType===this._document.ELEMENT_NODE&&t.appendChild(e.childNodes[a].cloneNode(!0));return t}},{key:"_setSvgAttributes",value:function(e,t){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),t&&t.viewBox&&e.setAttribute("viewBox",t.viewBox),e}},{key:"_fetchIcon",value:function(e){var t,n=this,i=e.url,r=e.options,o=null!==(t=null==r?void 0:r.withCredentials)&&void 0!==t&&t;if(!this._httpClient)throw Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.");if(null==i)throw Error('Cannot fetch icon from URL "'.concat(i,'".'));var a=this._sanitizer.sanitize(Ir.RESOURCE_URL,i);if(!a)throw jw(i);var s=this._inProgressUrlFetches.get(a);if(s)return s;var u=this._httpClient.get(a,{responseType:"text",withCredentials:o}).pipe($k((function(){return n._inProgressUrlFetches.delete(a)})),Se());return this._inProgressUrlFetches.set(a,u),u}},{key:"_addSvgIconConfig",value:function(e,t,n){return this._svgIconConfigs.set(Ww(e,t),n),this}},{key:"_addSvgIconSetConfig",value:function(e,t){var n=this._iconSetConfigs.get(e);return n?n.push(t):this._iconSetConfigs.set(e,[t]),this}},{key:"_svgElementFromConfig",value:function(e){if(!e.svgElement){var t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}}]),e}();return e.\u0275fac=function(t){return new(t||e)(bt(_w,8),bt(nd),bt(jl,8),bt(Yi))},e.\u0275prov=De({factory:function(){return new e(bt(_w,8),bt(nd),bt(jl,8),bt(Yi))},token:e,providedIn:"root"}),e}();function zw(e){return e.cloneNode(!0)}function Ww(e,t){return e+":"+t}var Hw=uy((function e(t){w(this,e),this._elementRef=t})),Gw=new ct("mat-icon-location",{providedIn:"root",factory:function(){var e=_t(jl),t=e?e.location:null;return{getPathname:function(){return t?t.pathname+t.search:""}}}}),qw=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Zw=qw.map((function(e){return"[".concat(e,"]")})).join(", "),Qw=/^url\(['"]?#(.*?)['"]?\)$/,Yw=function(){var e=function(e){g(n,e);var t=k(n);function n(e,i,r,o,a){var s;return w(this,n),(s=t.call(this,e))._iconRegistry=i,s._location=o,s._errorHandler=a,s._inline=!1,s._currentIconFetch=P.EMPTY,r||e.nativeElement.setAttribute("aria-hidden","true"),s}return C(n,[{key:"_splitIconName",value:function(e){if(!e)return["",""];var t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error('Invalid icon name: "'.concat(e,'"'))}}},{key:"ngOnChanges",value:function(e){var t=this,n=e.svgIcon;if(this._svgNamespace=null,this._svgName=null,n)if(this._currentIconFetch.unsubscribe(),this.svgIcon){var i=l(this._splitIconName(this.svgIcon),2),r=i[0],o=i[1];r&&(this._svgNamespace=r),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,r).pipe(sg(1)).subscribe((function(e){return t._setSvgElement(e)}),(function(e){var n="Error retrieving icon ".concat(r,":").concat(o,"! ").concat(e.message);t._errorHandler.handleError(new Error(n))}))}else n.previousValue&&this._clearSvgElement();this._usingFontIcon()&&this._updateFontIconClasses()}},{key:"ngOnInit",value:function(){this._usingFontIcon()&&this._updateFontIconClasses()}},{key:"ngAfterViewChecked",value:function(){var e=this._elementsWithExternalReferences;if(e&&e.size){var t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}},{key:"ngOnDestroy",value:function(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}},{key:"_usingFontIcon",value:function(){return!this.svgIcon}},{key:"_setSvgElement",value:function(e){this._clearSvgElement();for(var t=e.querySelectorAll("style"),n=0;n<t.length;n++)t[n].textContent+=" ";var i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}},{key:"_clearSvgElement",value:function(){var e=this._elementRef.nativeElement,t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){var n=e.childNodes[t];1===n.nodeType&&"svg"!==n.nodeName.toLowerCase()||e.removeChild(n)}}},{key:"_updateFontIconClasses",value:function(){if(this._usingFontIcon()){var e=this._elementRef.nativeElement,t=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();t!=this._previousFontSetClass&&(this._previousFontSetClass&&e.classList.remove(this._previousFontSetClass),t&&e.classList.add(t),this._previousFontSetClass=t),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}}},{key:"_cleanupFontValue",value:function(e){return"string"==typeof e?e.trim().split(" ")[0]:e}},{key:"_prependPathToReferences",value:function(e){var t=this._elementsWithExternalReferences;t&&t.forEach((function(t,n){t.forEach((function(t){n.setAttribute(t.name,"url('".concat(e,"#").concat(t.value,"')"))}))}))}},{key:"_cacheChildrenWithExternalReferences",value:function(e){for(var t=e.querySelectorAll(Zw),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map,i=function(e){qw.forEach((function(i){var r=t[e],o=r.getAttribute(i),a=o?o.match(Qw):null;if(a){var s=n.get(r);s||n.set(r,s=[]),s.push({name:i,value:a[1]})}}))},r=0;r<t.length;r++)i(r)}},{key:"inline",get:function(){return this._inline},set:function(e){this._inline=lg(e)}},{key:"fontSet",get:function(){return this._fontSet},set:function(e){this._fontSet=this._cleanupFontValue(e)}},{key:"fontIcon",get:function(){return this._fontIcon},set:function(e){this._fontIcon=this._cleanupFontValue(e)}}]),n}(Hw);return e.\u0275fac=function(t){return new(t||e)(ss(_u),ss(Uw),us("aria-hidden"),ss(Gw),ss(Yi))},e.\u0275cmp=Ft({type:e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(is("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),Fs("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",fontSet:"fontSet",fontIcon:"fontIcon",svgIcon:"svgIcon"},exportAs:["matIcon"],features:[nu,sn],ngContentSelectors:Lw,decls:1,vars:0,template:function(e,t){1&e&&(xs(),Ts(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}),e}(),Kw=function(){var e=function e(){w(this,e)};return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)},imports:[[ay],ay]}),e}(),Jw=Vm({passive:!0}),Xw=function(){var e=function(){function e(t,n){w(this,e),this._platform=t,this._ngZone=n,this._monitoredElements=new Map}return C(e,[{key:"monitor",value:function(e){var t=this;if(!this._platform.isBrowser)return og;var n=vg(e),i=this._monitoredElements.get(n);if(i)return i.subject;var r=new Z,o="cdk-text-field-autofilled",a=function(e){"cdk-text-field-autofill-start"!==e.animationName||n.classList.contains(o)?"cdk-text-field-autofill-end"===e.animationName&&n.classList.contains(o)&&(n.classList.remove(o),t._ngZone.run((function(){return r.next({target:e.target,isAutofilled:!1})}))):(n.classList.add(o),t._ngZone.run((function(){return r.next({target:e.target,isAutofilled:!0})})))};return this._ngZone.runOutsideAngular((function(){n.addEventListener("animationstart",a,Jw),n.classList.add("cdk-text-field-autofill-monitored")})),this._monitoredElements.set(n,{subject:r,unlisten:function(){n.removeEventListener("animationstart",a,Jw)}}),r}},{key:"stopMonitoring",value:function(e){var t=vg(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}();return e.\u0275fac=function(t){return new(t||e)(bt(Rm),bt(rl))},e.\u0275prov=De({factory:function(){return new e(bt(Rm),bt(rl))},token:e,providedIn:"root"}),e}(),$w=function(){var e=function e(){w(this,e)};return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)},imports:[[Dm]]}),e}(),eS=new ct("MAT_INPUT_VALUE_ACCESSOR"),tS=["button","checkbox","file","hidden","image","radio","range","reset","submit"],nS=0,iS=hy((function e(t,n,i,r){w(this,e),this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r})),rS=function(){var e=function(e){g(n,e);var t=k(n);function n(e,i,r,o,a,s,u,c,l,h){var d;w(this,n),(d=t.call(this,s,o,a,r))._elementRef=e,d._platform=i,d.ngControl=r,d._autofillMonitor=c,d._formField=h,d._uid="mat-input-".concat(nS++),d.focused=!1,d.stateChanges=new Z,d.controlType="mat-input",d.autofilled=!1,d._disabled=!1,d._required=!1,d._type="text",d._readonly=!1,d._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter((function(e){return Lm().has(e)}));var f=d._elementRef.nativeElement,p=f.nodeName.toLowerCase();return d._inputValueAccessor=u||f,d._previousNativeValue=d.value,d.id=d.id,i.IOS&&l.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))}))})),d._isServer=!d._platform.isBrowser,d._isNativeSelect="select"===p,d._isTextarea="textarea"===p,d._isNativeSelect&&(d.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select"),d}return C(n,[{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(){tS.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:"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()}},{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(e){this._disabled=lg(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=lg(e)}},{key:"type",get:function(){return this._type},set:function(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Lm().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=lg(e)}},{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}}]),n}(iS);return e.\u0275fac=function(t){return new(t||e)(ss(_u),ss(Rm),ss(yd,10),ss(mf,8),ss(Ef,8),ss(dy),ss(eS,10),ss(Xw),ss(rl),ss(qk,8))},e.\u0275dir=Gt({type:e,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&&bs("focus",(function(){return t._focusChanged(!0)}))("blur",(function(){return t._focusChanged(!1)}))("input",(function(){return t._onInput()})),2&e&&($s("disabled",t.disabled)("required",t.required),is("id",t.id)("data-placeholder",t.placeholder)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.errorState)("aria-required",t.required.toString()),Fs("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:[vu([{provide:Vk,useExisting:e}]),nu,sn]}),e}(),oS=function(){var e=function e(){w(this,e)};return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)},providers:[dy],imports:[[$w,Qk],$w,Qk]}),e}(),aS=function(){var e=function e(){w(this,e)};return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)},imports:[[ay,wh],ay]}),e}(),sS=["trigger"],uS=["panel"];function cS(e,t){if(1&e&&(hs(0,"span",8),Ks(1),ds()),2&e){var n=Es();$r(1),Js(n.placeholder||"\xa0")}}function lS(e,t){if(1&e&&(hs(0,"span"),Ks(1),ds()),2&e){var n=Es(2);$r(1),Js(n.triggerValue||"\xa0")}}function hS(e,t){1&e&&Ts(0,0,["*ngSwitchCase","true"])}function dS(e,t){1&e&&(hs(0,"span",9),os(1,lS,2,1,"span",10),os(2,hS,1,0,"ng-content",11),ds()),2&e&&(cs("ngSwitch",!!Es().customTrigger),$r(2),cs("ngSwitchCase",!0))}function fS(e,t){if(1&e){var n=ms();hs(0,"div",12),hs(1,"div",13,14),bs("@transformPanel.done",(function(e){return An(n),Es()._panelDoneAnimatingStream.next(e.toState)}))("keydown",(function(e){return An(n),Es()._handleKeydown(e)})),Ts(3,1),ds(),ds()}if(2&e){var i=Es();cs("@transformPanelWrap",void 0),$r(1),r="mat-select-panel ",o=i._getPanelTheme(),a="",function(e,t,n,i){var r=In(),o=Un(2);r.firstUpdatePass&&Ws(r,null,o,i);var a=Pn();if(n!==Qr&&ns(a,o,n)){var s=r.data[ti()+Kt];if(Ys(s,i)&&!zs(r,o)){var u=s.classesWithoutHost;null!==u&&(n=Ge(u,n||"")),ls(r,s,a,n,i)}else!function(e,t,n,i,r,o,a,s){r===Qr&&(r=Is);for(var u=0,c=0,l=0<r.length?r[0]:null,h=0<o.length?o[0]:null;null!==l||null!==h;){var d=u<r.length?r[u+1]:void 0,f=c<o.length?o[c+1]:void 0,p=null,v=void 0;l===h?(u+=2,c+=2,d!==f&&(p=h,v=f)):null===h||null!==l&&l<h?(u+=2,p=l):(c+=2,p=h,v=f),null!==p&&qs(e,t,n,i,p,v,!0,s),l=u<r.length?r[u]:null,h=c<o.length?o[c]:null}}(r,s,a,a[11],a[o+1],a[o+1]=function(e,t,n){if(null==n||""===n)return Is;var i=[],r=nr(n);if(Array.isArray(r))for(var o=0;o<r.length;o++)e(i,r[o],!0);else if("object"==typeof r)for(var a in r)r.hasOwnProperty(a)&&e(i,a,r[a]);else"string"==typeof r&&t(i,r);return i}(e,t,n),0,o)}}(It,Bs,rs(Pn(),r,o,a),!0),js("transform-origin",i._transformOrigin)("font-size",i._triggerFontSize,"px"),cs("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 r,o,a}var pS=[[["mat-select-trigger"]],"*"],vS=["mat-select-trigger","*"],mS={transformPanelWrap:Df("transformPanelWrap",[Uf("* => void",Wf("@transformPanel",[zf()],{optional:!0}))]),transformPanel:Df("transformPanel",[Ff("void",jf({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Ff("showing",jf({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Ff("showing-multiple",jf({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Uf("void => *",Nf("120ms cubic-bezier(0, 0, 0.2, 1)")),Uf("* => void",Nf("100ms 25ms linear",jf({opacity:0})))])},gS=0,yS=256,bS=new ct("mat-select-scroll-strategy"),_S=new ct("MAT_SELECT_CONFIG"),kS={provide:bS,deps:[b_],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},wS=function e(t,n){w(this,e),this.source=t,this.value=n},SS=cy(ly(sy(hy((function e(t,n,i,r,o){w(this,e),this._elementRef=t,this._defaultErrorStateMatcher=n,this._parentForm=i,this._parentFormGroup=r,this.ngControl=o}))))),CS=new ct("MatSelectTrigger"),ES=function(){var e=function(e){g(n,e);var t=k(n);function n(e,i,r,a,s,u,c,l,h,f,p,v,m,g){var y;return w(this,n),(y=t.call(this,s,a,c,l,f))._viewportRuler=e,y._changeDetectorRef=i,y._ngZone=r,y._dir=u,y._parentFormField=h,y.ngControl=f,y._liveAnnouncer=m,y._panelOpen=!1,y._required=!1,y._scrollTop=0,y._multiple=!1,y._compareWith=function(e,t){return e===t},y._uid="mat-select-".concat(gS++),y._triggerAriaLabelledBy=null,y._destroy=new Z,y._triggerFontSize=0,y._onChange=function(){},y._onTouched=function(){},y._valueId="mat-select-value-".concat(gS++),y._transformOrigin="top",y._panelDoneAnimatingStream=new Z,y._offsetY=0,y._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],y._disableOptionCentering=!1,y._focused=!1,y.controlType="mat-select",y.ariaLabel="",y.optionSelectionChanges=O_((function(){var e=y.options;return e?e.changes.pipe(ty(e),bb((function(){return ve.apply(void 0,d(e.map((function(e){return e.onSelectionChange}))))}))):y._ngZone.onStable.pipe(sg(1),bb((function(){return y.optionSelectionChanges})))})),y.openedChange=new vc,y._openedStream=y.openedChange.pipe(tg((function(e){return e})),K((function(){}))),y._closedStream=y.openedChange.pipe(tg((function(e){return!e})),K((function(){}))),y.selectionChange=new vc,y.valueChange=new vc,y.ngControl&&(y.ngControl.valueAccessor=o(y)),y._scrollStrategyFactory=v,y._scrollStrategy=y._scrollStrategyFactory(),y.tabIndex=parseInt(p)||0,y.id=y.id,g&&(null!=g.disableOptionCentering&&(y.disableOptionCentering=g.disableOptionCentering),null!=g.typeaheadDebounceInterval&&(y.typeaheadDebounceInterval=g.typeaheadDebounceInterval)),y}return C(n,[{key:"ngOnInit",value:function(){var e=this;this._selectionModel=new Ib(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(ab(),mb(this._destroy)).subscribe((function(){e.panelOpen?(e._scrollTop=0,e.openedChange.emit(!0)):(e.openedChange.emit(!1),e.overlayDir.offsetX=0,e._changeDetectorRef.markForCheck())})),this._viewportRuler.change().pipe(mb(this._destroy)).subscribe((function(){e._panelOpen&&(e._triggerRect=e.trigger.nativeElement.getBoundingClientRect(),e._changeDetectorRef.markForCheck())}))}},{key:"ngAfterContentInit",value:function(){var e=this;this._initKeyManager(),this._selectionModel.changed.pipe(mb(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(ty(null),mb(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(){var e=this;!this.disabled&&this.options&&this.options.length&&!this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._calculateOverlayPosition(),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this._ngZone.onStable.pipe(sg(1)).subscribe((function(){e._triggerFontSize&&e.overlayDir.overlayRef&&e.overlayDir.overlayRef.overlayElement&&(e.overlayDir.overlayRef.overlayElement.style.fontSize="".concat(e._triggerFontSize,"px"))})))}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(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:"_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&&!zm(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){var o=this.selected;r.onKeydown(e);var a=this.selected;a&&o!==a&&this._liveAnnouncer.announce(a.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||zm(e))if(!r&&this._multiple&&65===n&&e.ctrlKey){e.preventDefault();var o=this.options.some((function(e){return!e.disabled&&!e.selected}));this.options.forEach((function(e){e.disabled||(o?e.select():e.deselect())}))}else{var a=t.activeItemIndex;t.onKeydown(e),this._multiple&&i&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==a&&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(sg(1)).subscribe((function(){e._changeDetectorRef.detectChanges(),e._calculateOverlayOffsetX(),e.panel.nativeElement.scrollTop=e._scrollTop}))}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{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.multiple&&e)Array.isArray(e),this._selectionModel.clear(),e.forEach((function(e){return t._selectValue(e)})),this._sortValues();else{this._selectionModel.clear();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){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 Mg(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(mb(this._destroy)).subscribe((function(){e.panelOpen&&(!e.multiple&&e._keyManager.activeItem&&e._keyManager.activeItem._selectViaInteraction(),e.focus(),e.close())})),this._keyManager.change.pipe(mb(this._destroy)).subscribe((function(){e._panelOpen&&e.panel?e._scrollActiveOptionIntoView():e._panelOpen||e.multiple||!e._keyManager.activeItem||e._keyManager.activeItem._selectViaInteraction()}))}},{key:"_resetOptions",value:function(){var e=this,t=ve(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(mb(t)).subscribe((function(t){e._onSelect(t.source,t.isUserInput),t.isUserInput&&!e.multiple&&e._panelOpen&&(e.close(),e.focus())})),ve.apply(void 0,d(this.options.map((function(e){return e._stateChanges})))).pipe(mb(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(new wS(this,t)),this._changeDetectorRef.markForCheck()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_scrollActiveOptionIntoView",value:function(){var e,t,n,i=this._keyManager.activeItemIndex||0,r=Vy(i,this.options,this.optionGroups),o=this._getItemHeight();this.panel.nativeElement.scrollTop=(t=o,(e=(i+r)*o)<(n=this.panel.nativeElement.scrollTop)?e:e+t>n+256?Math.max(0,e-256+t):n)}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_getOptionIndex",value:function(e){return this.options.reduce((function(t,n,i){return void 0!==t?t:e===n?i:void 0}),void 0)}},{key:"_calculateOverlayPosition",value:function(){var e=this._getItemHeight(),t=this._getItemCount(),n=Math.min(t*e,yS),i=t*e-n,r=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);r+=Vy(r,this.options,this.optionGroups);var o=n/2;this._scrollTop=this._calculateOverlayScroll(r,o,i),this._offsetY=this._calculateOverlayOffsetY(r,o,i),this._checkOverlayWithinViewport(i)}},{key:"_calculateOverlayScroll",value:function(e,t,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*e-t+i/2),n)}},{key:"_getPanelAriaLabelledby",value:function(){if(this.ariaLabel)return null;var e=this._getLabelId();return this.ariaLabelledby?e+" "+this.ariaLabelledby:e}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getLabelId",value:function(){var e;return(null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId())||""}},{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{var o=this._selectionModel.selected[0]||this.options.first;e=o&&o.group?32:16}i||(e*=-1);var a=0-(t.left+e-(i?r:0)),s=t.right+e-n.width+(i?0:r);a>0?e+=a+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(),o=(r-this._triggerRect.height)/2,a=Math.floor(yS/r);return this._disableOptionCentering?0:(i=0===this._scrollTop?e*r:this._scrollTop===n?(e-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-yS)%r):t-r/2,Math.round(-1*i-o))}},{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,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*t,yS)-o-this._triggerRect.height;a>r?this._adjustPanelUp(a,r):o>i?this._adjustPanelDown(o,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:"_getOriginBasedOnOption",value:function(){var e=this._getItemHeight(),t=(e-this._triggerRect.height)/2,n=Math.abs(this._offsetY)-t+e/2;return"50% ".concat(n,"px 0px")}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getTriggerAriaLabelledby",value:function(){if(this.ariaLabel)return null;var e=this._getLabelId()+" "+this._valueId;return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(e){this._required=lg(e),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=lg(e)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(e){this._disableOptionCentering=lg(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.options&&this._setSelectionByValue(e),this._value=e)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(e){this._typeaheadDebounceInterval=hg(e)}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid,this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var e=this._selectionModel.selected.map((function(e){return e.viewValue}));return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty}}]),n}(SS);return e.\u0275fac=function(t){return new(t||e)(ss(Db),ss(Ma),ss(rl),ss(dy),ss(_u),ss(Kg,8),ss(mf,8),ss(Ef,8),ss(qk,8),ss(yd,10),us("tabindex"),ss(bS),ss(jg),ss(_S,8))},e.\u0275cmp=Ft({type:e,selectors:[["mat-select"]],contentQueries:function(e,t,n){var i;1&e&&(Pc(n,CS,!0),Pc(n,Ly,!0),Pc(n,Iy,!0)),2&e&&(Oc(i=Rc())&&(t.customTrigger=i.first),Oc(i=Rc())&&(t.options=i),Oc(i=Rc())&&(t.optionGroups=i))},viewQuery:function(e,t){var n;1&e&&(Tc(sS,!0),Tc(uS,!0),Tc(S_,!0)),2&e&&(Oc(n=Rc())&&(t.trigger=n.first),Oc(n=Rc())&&(t.panel=n.first),Oc(n=Rc())&&(t.overlayDir=n.first))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&bs("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()),Fs("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",ariaLabel:["aria-label","ariaLabel"],id:"id",disableOptionCentering:"disableOptionCentering",typeaheadDebounceInterval:"typeaheadDebounceInterval",placeholder:"placeholder",required:"required",multiple:"multiple",compareWith:"compareWith",value:"value",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[vu([{provide:Vk,useExisting:e},{provide:Dy,useExisting:e}]),nu,sn],ngContentSelectors:vS,decls:9,vars:10,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder"],[1,"mat-select-value-text",3,"ngSwitch"],[4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(xs(pS),hs(0,"div",0,1),bs("click",(function(){return t.toggle()})),hs(3,"div",2),os(4,cS,2,1,"span",3),os(5,dS,3,2,"span",4),ds(),hs(6,"div",5),fs(7,"div",6),ds(),ds(),os(8,fS,4,14,"ng-template",7),bs("backdropClick",(function(){return t.close()}))("attach",(function(){return t._onAttached()}))("detach",(function(){return t.close()}))),2&e){var n=as(1);$r(3),cs("ngSwitch",t.empty),is("id",t._valueId),$r(1),cs("ngSwitchCase",!0),$r(1),cs("ngSwitchCase",!1),$r(3),cs("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[w_,ph,vh,S_,mh,ah],styles:[".mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}\n"],encapsulation:2,data:{animation:[mS.transformPanelWrap,mS.transformPanel]},changeDetection:0}),e}(),OS=function(){var e=function e(){w(this,e)};return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)},providers:[kS],imports:[[wh,E_,jy,ay],Nb,Qk,jy,ay]}),e}();function xS(e){return function(t){return t.lift(new TS(e))}}var TS=function(){function e(t){w(this,e),this.value=t}return C(e,[{key:"call",value:function(e,t){return t.subscribe(new MS(e,this.value))}}]),e}(),MS=function(e){g(n,e);var t=k(n);function n(e,i){var r;return w(this,n),(r=t.call(this,e)).value=i,r}return C(n,[{key:"_next",value:function(e){this.destination.next(this.value)}}]),n}(V),PS=["*"];function IS(e,t){if(1&e){var n=ms();hs(0,"div",2),bs("click",(function(){return An(n),Es()._onBackdropClicked()})),ds()}2&e&&Fs("mat-drawer-shown",Es()._isShowingBackdrop())}function AS(e,t){1&e&&(hs(0,"mat-drawer-content"),Ts(1,2),ds())}var RS=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],DS=["mat-drawer","mat-drawer-content","*"];function NS(e,t){if(1&e){var n=ms();hs(0,"div",2),bs("click",(function(){return An(n),Es()._onBackdropClicked()})),ds()}2&e&&Fs("mat-drawer-shown",Es()._isShowingBackdrop())}function LS(e,t){1&e&&(hs(0,"mat-sidenav-content",3),Ts(1,2),ds())}var VS=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],jS=["mat-sidenav","mat-sidenav-content","*"],FS=".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",BS={transformDrawer:Df("transform",[Ff("open, open-instant",jf({transform:"none",visibility:"visible"})),Ff("void",jf({"box-shadow":"none",visibility:"hidden"})),Uf("void => open-instant",Nf("0ms")),Uf("void <=> open, open-instant => void",Nf("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},US=new ct("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),zS=new ct("MAT_DRAWER_CONTAINER"),WS=function(){var e=function(e){g(n,e);var t=k(n);function n(e,i,r,o,a){var s;return w(this,n),(s=t.call(this,r,o,a))._changeDetectorRef=e,s._container=i,s}return C(n,[{key:"ngAfterContentInit",value:function(){var e=this;this._container._contentMarginChanges.subscribe((function(){e._changeDetectorRef.markForCheck()}))}}]),n}(Rb);return e.\u0275fac=function(t){return new(t||e)(ss(Ma),ss(Ze((function(){return GS}))),ss(_u),ss(Ab),ss(rl))},e.\u0275cmp=Ft({type:e,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,t){2&e&&js("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[nu],ngContentSelectors:PS,decls:1,vars:0,template:function(e,t){1&e&&(xs(),Ts(0))},encapsulation:2,changeDetection:0}),e}(),HS=function(){var e=function(){function e(t,n,i,r,o,a,s){var u=this;w(this,e),this._elementRef=t,this._focusTrapFactory=n,this._focusMonitor=i,this._platform=r,this._ngZone=o,this._doc=a,this._container=s,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new Z,this._animationEnd=new Z,this._animationState="void",this.openedChange=new vc(!0),this._openedStream=this.openedChange.pipe(tg((function(e){return e})),K((function(){}))),this.openedStart=this._animationStarted.pipe(tg((function(e){return e.fromState!==e.toState&&0===e.toState.indexOf("open")})),xS(void 0)),this._closedStream=this.openedChange.pipe(tg((function(e){return!e})),K((function(){}))),this.closedStart=this._animationStarted.pipe(tg((function(e){return e.fromState!==e.toState&&"void"===e.toState})),xS(void 0)),this._destroyed=new Z,this.onPositionChanged=new vc,this._modeChanged=new Z,this.openedChange.subscribe((function(e){e?(u._doc&&(u._elementFocusedBeforeDrawerWasOpened=u._doc.activeElement),u._takeFocus()):u._isFocusWithinDrawer()&&u._restoreFocus()})),this._ngZone.runOutsideAngular((function(){Jy(u._elementRef.nativeElement,"keydown").pipe(tg((function(e){return e.keyCode===Um&&!u.disableClose&&!zm(e)})),mb(u._destroyed)).subscribe((function(e){return u._ngZone.run((function(){u.close(),e.stopPropagation(),e.preventDefault()}))}))})),this._animationEnd.pipe(ab((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"))&&u.openedChange.emit(u._opened)}))}return C(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(sg(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)}},{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=lg(e)}},{key:"autoFocus",get:function(){var e=this._autoFocus;return null==e?"side"!==this.mode:e},set:function(e){this._autoFocus=lg(e)}},{key:"opened",get:function(){return this._opened},set:function(e){this.toggle(lg(e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(_u),ss(Ng),ss(zg),ss(Rm),ss(rl),ss(jl,8),ss(zS,8))},e.\u0275cmp=Ft({type:e,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,t){1&e&&_s("@transform.start",(function(e){return t._animationStartListener(e)}))("@transform.done",(function(e){return t._animationDoneListener(e)})),2&e&&(is("align",null),eu("@transform",t._animationState),Fs("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:PS,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(e,t){1&e&&(xs(),hs(0,"div",0),Ts(1),ds())},encapsulation:2,data:{animation:[BS.transformDrawer]},changeDetection:0}),e}(),GS=function(){var e=function(){function e(t,n,i,r,o){var a=this,s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],u=arguments.length>6?arguments[6]:void 0;w(this,e),this._dir=t,this._element=n,this._ngZone=i,this._changeDetectorRef=r,this._animationMode=u,this._drawers=new gc,this.backdropClick=new vc,this._destroyed=new Z,this._doCheckSubject=new Z,this._contentMargins={left:null,right:null},this._contentMarginChanges=new Z,t&&t.change.pipe(mb(this._destroyed)).subscribe((function(){a._validateDrawers(),a.updateContentMargins()})),o.change().pipe(mb(this._destroyed)).subscribe((function(){return a.updateContentMargins()})),this._autosize=s}return C(e,[{key:"ngAfterContentInit",value:function(){var e=this;this._allDrawers.changes.pipe(ty(this._allDrawers),mb(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(ty(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(Jm(10),mb(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(tg((function(e){return e.fromState!==e.toState})),mb(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(mb(this._drawers.changes)).subscribe((function(){return t._setContainerClass(e.opened)}))}},{key:"_watchDrawerPosition",value:function(e){var t=this;e&&e.onPositionChanged.pipe(mb(this._drawers.changes)).subscribe((function(){t._ngZone.onMicrotaskEmpty.pipe(sg(1)).subscribe((function(){t._validateDrawers()}))}))}},{key:"_watchDrawerMode",value:function(e){var t=this;e&&e._modeChanged.pipe(mb(ve(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}},{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=lg(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:lg(e)}},{key:"scrollable",get:function(){return this._userContent||this._content}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(Kg,8),ss(_u),ss(rl),ss(Ma),ss(Db),ss(US),ss(Cm,8))},e.\u0275cmp=Ft({type:e,selectors:[["mat-drawer-container"]],contentQueries:function(e,t,n){var i;1&e&&(Pc(n,WS,!0),Pc(n,HS,!0)),2&e&&(Oc(i=Rc())&&(t._content=i.first),Oc(i=Rc())&&(t._allDrawers=i))},viewQuery:function(e,t){var n;1&e&&Tc(WS,!0),2&e&&Oc(n=Rc())&&(t._userContent=n.first)},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,t){2&e&&Fs("mat-drawer-container-explicit-backdrop",t._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[vu([{provide:zS,useExisting:e}])],ngContentSelectors:DS,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&&(xs(RS),os(0,IS,1,2,"div",0),Ts(1),Ts(2,1),os(3,AS,2,0,"mat-drawer-content",1)),2&e&&(cs("ngIf",t.hasBackdrop),$r(3),cs("ngIf",!t._content))},directives:[lh,WS],styles:[FS],encapsulation:2,changeDetection:0}),e}(),qS=function(){var e=function(e){g(n,e);var t=k(n);function n(e,i,r,o,a){return w(this,n),t.call(this,e,i,r,o,a)}return n}(WS);return e.\u0275fac=function(t){return new(t||e)(ss(Ma),ss(Ze((function(){return YS}))),ss(_u),ss(Ab),ss(rl))},e.\u0275cmp=Ft({type:e,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,t){2&e&&js("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[nu],ngContentSelectors:PS,decls:1,vars:0,template:function(e,t){1&e&&(xs(),Ts(0))},encapsulation:2,changeDetection:0}),e}(),ZS=function(){var e=function(e){g(n,e);var t=k(n);function n(){var e;return w(this,n),(e=t.apply(this,arguments))._fixedInViewport=!1,e._fixedTopGap=0,e._fixedBottomGap=0,e}return C(n,[{key:"fixedInViewport",get:function(){return this._fixedInViewport},set:function(e){this._fixedInViewport=lg(e)}},{key:"fixedTopGap",get:function(){return this._fixedTopGap},set:function(e){this._fixedTopGap=hg(e)}},{key:"fixedBottomGap",get:function(){return this._fixedBottomGap},set:function(e){this._fixedBottomGap=hg(e)}}]),n}(HS);return e.\u0275fac=function(t){return QS(t||e)},e.\u0275cmp=Ft({type:e,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,t){2&e&&(is("align",null),js("top",t.fixedInViewport?t.fixedTopGap:null,"px")("bottom",t.fixedInViewport?t.fixedBottomGap:null,"px"),Fs("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)("mat-sidenav-fixed",t.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[nu],ngContentSelectors:PS,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(e,t){1&e&&(xs(),hs(0,"div",0),Ts(1),ds())},encapsulation:2,data:{animation:[BS.transformDrawer]},changeDetection:0}),e}(),QS=Gi(ZS),YS=function(){var e=function(e){g(n,e);var t=k(n);function n(){return w(this,n),t.apply(this,arguments)}return n}(GS);return e.\u0275fac=function(t){return KS(t||e)},e.\u0275cmp=Ft({type:e,selectors:[["mat-sidenav-container"]],contentQueries:function(e,t,n){var i;1&e&&(Pc(n,qS,!0),Pc(n,ZS,!0)),2&e&&(Oc(i=Rc())&&(t._content=i.first),Oc(i=Rc())&&(t._allDrawers=i))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,t){2&e&&Fs("mat-drawer-container-explicit-backdrop",t._backdropOverride)},exportAs:["matSidenavContainer"],features:[vu([{provide:zS,useExisting:e}]),nu],ngContentSelectors:jS,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(e,t){1&e&&(xs(VS),os(0,NS,1,2,"div",0),Ts(1),Ts(2,1),os(3,LS,2,0,"mat-sidenav-content",1)),2&e&&(cs("ngIf",t.hasBackdrop),$r(3),cs("ngIf",!t._content))},directives:[lh,qS,Rb],styles:[FS],encapsulation:2,changeDetection:0}),e}(),KS=Gi(YS),JS=function(){var e=function e(){w(this,e)};return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)},imports:[[wh,ay,Dm,Nb],Nb,ay]}),e}(),XS=function(){var e=function e(){w(this,e)};return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)},imports:[[wh,ay],ay]}),e}(),$S=["*",[["mat-toolbar-row"]]],eC=["*","mat-toolbar-row"],tC=uy((function e(t){w(this,e),this._elementRef=t})),nC=function(){var e=function e(){w(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Gt({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),e}(),iC=function(){var e=function(e){g(n,e);var t=k(n);function n(e,i,r){var o;return w(this,n),(o=t.call(this,e))._platform=i,o._document=r,o}return C(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}(tC);return e.\u0275fac=function(t){return new(t||e)(ss(_u),ss(Rm),ss(jl))},e.\u0275cmp=Ft({type:e,selectors:[["mat-toolbar"]],contentQueries:function(e,t,n){var i;1&e&&Pc(n,nC,!0),2&e&&Oc(i=Rc())&&(t._toolbarRows=i)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&Fs("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[nu],ngContentSelectors:eC,decls:2,vars:0,template:function(e,t){1&e&&(xs($S),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}),e}(),rC=function(){var e=function e(){w(this,e)};return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)},imports:[[ay],ay]}),e}(),oC=function(e){g(n,e);var t=k(n);function n(){return w(this,n),t.apply(this,arguments)}return C(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}(V),aC=function(e){g(n,e);var t=k(n);function n(e,i,r){var o;return w(this,n),(o=t.call(this)).parent=e,o.outerValue=i,o.outerIndex=r,o.index=0,o}return C(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}(V);function sC(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new aC(e,n,i);if(!r.closed)return t instanceof z?t.subscribe(r):re(t)(r)}var uC={};function cC(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=void 0,r=void 0;return Y(t[t.length-1])&&(r=t.pop()),"function"==typeof t[t.length-1]&&(i=t.pop()),1===t.length&&O(t[0])&&(t=t[0]),pe(t,r).lift(new hC(i))}var lC,hC=function(){function e(t){w(this,e),this.resultSelector=t}return C(e,[{key:"call",value:function(e,t){return t.subscribe(new dC(e,this.resultSelector))}}]),e}(),dC=function(e){g(n,e);var t=k(n);function n(e,i){var r;return w(this,n),(r=t.call(this,e)).resultSelector=i,r.active=0,r.values=[],r.observables=[],r}return C(n,[{key:"_next",value:function(e){this.values.push(uC),this.observables.push(e)}},{key:"_complete",value:function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n<t;n++)this.add(sC(this,e[n],void 0,n))}}},{key:"notifyComplete",value:function(e){0==(this.active-=1)&&this.destination.complete()}},{key:"notifyNext",value:function(e,t,n){var i=this.values,r=this.toRespond?i[n]===uC?--this.toRespond:this.toRespond:0;i[n]=t,0===r&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}},{key:"_tryResultSelector",value:function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(oC),fC=function(){function e(t){w(this,e),this.total=t}return C(e,[{key:"call",value:function(e,t){return t.subscribe(new pC(e,this.total))}}]),e}(),pC=function(e){g(n,e);var t=k(n);function n(e,i){var r;return w(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return C(n,[{key:"_next",value:function(e){++this.count>this.total&&this.destination.next(e)}}]),n}(V),vC=new Set,mC=function(){var e=function(){function e(t){w(this,e),this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):gC}return C(e,[{key:"matchMedia",value:function(e){return this._platform.WEBKIT&&function(e){if(!vC.has(e))try{lC||((lC=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(lC)),lC.sheet&&(lC.sheet.insertRule("@media ".concat(e," {.fx-query-test{ }}"),0),vC.add(e))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(bt(Rm))},e.\u0275prov=De({factory:function(){return new e(bt(Rm))},token:e,providedIn:"root"}),e}();function gC(e){return{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}}var yC=function(){var e=function(){function e(t,n){w(this,e),this._mediaMatcher=t,this._zone=n,this._queries=new Map,this._destroySubject=new Z}return C(e,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(e){var t=this;return bC(fg(e)).some((function(e){return t._registerQuery(e).mql.matches}))}},{key:"observe",value:function(e){var t=this,n=cC(bC(fg(e)).map((function(e){return t._registerQuery(e).observable})));return(n=ey(n.pipe(sg(1)),n.pipe((function(e){return e.lift(new fC(1))}),Jm(0)))).pipe(K((function(e){var t={matches:!1,breakpoints:{}};return e.forEach((function(e){var n=e.matches,i=e.query;t.matches=t.matches||n,t.breakpoints[i]=n})),t})))}},{key:"_registerQuery",value:function(e){var t=this;if(this._queries.has(e))return this._queries.get(e);var n=this._mediaMatcher.matchMedia(e),i={observable:new z((function(e){var i=function(n){return t._zone.run((function(){return e.next(n)}))};return n.addListener(i),function(){n.removeListener(i)}})).pipe(ty(n),K((function(t){return{query:e,matches:t.matches}})),mb(this._destroySubject)),mql:n};return this._queries.set(e,i),i}}]),e}();return e.\u0275fac=function(t){return new(t||e)(bt(mC),bt(rl))},e.\u0275prov=De({factory:function(){return new e(bt(mC),bt(rl))},token:e,providedIn:"root"}),e}();function bC(e){return e.map((function(e){return e.split(",")})).reduce((function(e,t){return e.concat(t)})).map((function(e){return e.trim()}))}var _C={tooltipState:Df("state",[Ff("initial, void, hidden",jf({opacity:0,transform:"scale(0)"})),Ff("visible",jf({transform:"scale(1)"})),Uf("* => visible",Nf("200ms cubic-bezier(0, 0, 0.2, 1)",Bf([jf({opacity:0,transform:"scale(0)",offset:0}),jf({opacity:.5,transform:"scale(0.99)",offset:.5}),jf({opacity:1,transform:"scale(1)",offset:1})]))),Uf("* => hidden",Nf("100ms cubic-bezier(0, 0, 0.2, 1)",jf({opacity:0})))])},kC=Vm({passive:!0}),wC=new ct("mat-tooltip-scroll-strategy"),SC={provide:wC,deps:[b_],useFactory:function(e){return function(){return e.scrollStrategies.reposition({scrollThrottle:20})}}},CC=new ct("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),EC=function(){var e=function(){function e(t,n,i,r,o,a,s,u,c,l,h){var d=this;w(this,e),this._overlay=t,this._elementRef=n,this._scrollDispatcher=i,this._viewContainerRef=r,this._ngZone=o,this._platform=a,this._ariaDescriber=s,this._focusMonitor=u,this._dir=l,this._defaultOptions=h,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 Z,this._handleKeydown=function(e){d._isTooltipVisible()&&e.keyCode===Um&&!zm(e)&&(e.preventDefault(),e.stopPropagation(),d._ngZone.run((function(){return d.hide(0)})))},this._scrollStrategy=c,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),o.runOutsideAngular((function(){n.nativeElement.addEventListener("keydown",d._handleKeydown)}))}return C(e,[{key:"ngAfterViewInit",value:function(){var e=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(mb(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 n=l(t,2);e.removeEventListener(n[0],n[1],kC)})),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message),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 jb(OC,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(mb(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(mb(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(mb(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(sg(1),mb(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()}]);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 n=l(e,2);t._elementRef.nativeElement.addEventListener(n[0],n[1],kC)}))}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{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"}}},{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=lg(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),this._message=null!=e?"".concat(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)}))})))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(b_),ss(_u),ss(Ab),ss(qu),ss(rl),ss(Rm),ss(xg),ss(zg),ss(wC),ss(Kg,8),ss(CC,8))},e.\u0275dir=Gt({type:e,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"]}),e}(),OC=function(){var e=function(){function e(t,n){w(this,e),this._changeDetectorRef=t,this._breakpointObserver=n,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new Z,this._isHandset=this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)")}return C(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}();return e.\u0275fac=function(t){return new(t||e)(ss(Ma),ss(yC))},e.\u0275cmp=Ft({type:e,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&bs("click",(function(){return t._handleBodyInteraction()}),!1,Ei),2&e&&js("zoom","visible"===t._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){var n;1&e&&(hs(0,"div",0),bs("@state.start",(function(){return t._animationStart()}))("@state.done",(function(e){return t._animationDone(e)})),fc(1,"async"),Ks(2),ds()),2&e&&(Fs("mat-tooltip-handset",null==(n=pc(1,5,t._isHandset))?null:n.matches),cs("ngClass",t.tooltipClass)("@state",t._visibility),$r(2),Js(t.message))},directives:[ah],pipes:[kh],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:[_C.tooltipState]},changeDetection:0}),e}(),xC=function(){var e=function e(){w(this,e)};return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)},providers:[SC],imports:[[Qg,wh,E_,ay],ay,Nb]}),e}();function TC(e,t){if(1&e){var n=ms();hs(0,"div",1),hs(1,"button",2),bs("click",(function(){return An(n),Es().action()})),Ks(2),ds(),ds()}if(2&e){var i=Es();$r(2),Js(i.data.action)}}function MC(e,t){}var PC=new ct("MatSnackBarData"),IC=function e(){w(this,e),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"},AC=Math.pow(2,31)-1,RC=function(){function e(t,n){var i=this;w(this,e),this._overlayRef=n,this._afterDismissed=new Z,this._afterOpened=new Z,this._onAction=new Z,this._dismissedByAction=!1,this.containerInstance=t,this.onAction().subscribe((function(){return i.dismiss()})),t._onExit.subscribe((function(){return i._finishDismiss()}))}return C(e,[{key:"dismiss",value:function(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}},{key:"dismissWithAction",value:function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete())}},{key:"closeWithAction",value:function(){this.dismissWithAction()}},{key:"_dismissAfter",value:function(e){var t=this;this._durationTimeoutId=setTimeout((function(){return t.dismiss()}),Math.min(e,AC))}},{key:"_open",value:function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}},{key:"_finishDismiss",value:function(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}},{key:"afterDismissed",value:function(){return this._afterDismissed}},{key:"afterOpened",value:function(){return this.containerInstance._onEnter}},{key:"onAction",value:function(){return this._onAction}}]),e}(),DC=function(){var e=function(){function e(t,n){w(this,e),this.snackBarRef=t,this.data=n}return C(e,[{key:"action",value:function(){this.snackBarRef.dismissWithAction()}},{key:"hasAction",get:function(){return!!this.data.action}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(RC),ss(PC))},e.\u0275cmp=Ft({type:e,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(e,t){1&e&&(hs(0,"span"),Ks(1),ds(),os(2,TC,3,1,"div",0)),2&e&&($r(1),Js(t.data.message),$r(1),cs("ngIf",t.hasAction))},directives:[lh,Qy],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),e}(),NC={snackBarState:Df("state",[Ff("void, hidden",jf({transform:"scale(0.8)",opacity:0})),Ff("visible",jf({transform:"scale(1)",opacity:1})),Uf("* => visible",Nf("150ms cubic-bezier(0, 0, 0.2, 1)")),Uf("* => void, * => hidden",Nf("75ms cubic-bezier(0.4, 0.0, 1, 1)",jf({opacity:0})))])},LC=function(){var e=function(e){g(n,e);var t=k(n);function n(e,i,r,o){var a;return w(this,n),(a=t.call(this))._ngZone=e,a._elementRef=i,a._changeDetectorRef=r,a.snackBarConfig=o,a._destroyed=!1,a._onExit=new Z,a._onEnter=new Z,a._animationState="void",a.attachDomPortal=function(e){return a._assertNotAttached(),a._applySnackBarClasses(),a._portalOutlet.attachDomPortal(e)},a._role="assertive"!==o.politeness||o.announcementMessage?"off"===o.politeness?null:"status":"alert",a}return C(n,[{key:"attachComponentPortal",value:function(e){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(e)}},{key:"onAnimationEnd",value:function(e){var t=e.toState;if(("void"===t&&"void"!==e.fromState||"hidden"===t)&&this._completeExit(),"visible"===t){var n=this._onEnter;this._ngZone.run((function(){n.next(),n.complete()}))}}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}},{key:"exit",value:function(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),this._onExit}},{key:"ngOnDestroy",value:function(){this._destroyed=!0,this._completeExit()}},{key:"_completeExit",value:function(){var e=this;this._ngZone.onMicrotaskEmpty.pipe(sg(1)).subscribe((function(){e._onExit.next(),e._onExit.complete()}))}},{key:"_applySnackBarClasses",value:function(){var e=this._elementRef.nativeElement,t=this.snackBarConfig.panelClass;t&&(Array.isArray(t)?t.forEach((function(t){return e.classList.add(t)})):e.classList.add(t)),"center"===this.snackBarConfig.horizontalPosition&&e.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&e.classList.add("mat-snack-bar-top")}},{key:"_assertNotAttached",value:function(){this._portalOutlet.hasAttached()}}]),n}(Ub);return e.\u0275fac=function(t){return new(t||e)(ss(rl),ss(_u),ss(Ma),ss(IC))},e.\u0275cmp=Ft({type:e,selectors:[["snack-bar-container"]],viewQuery:function(e,t){var n;1&e&&xc(Wb,!0),2&e&&Oc(n=Rc())&&(t._portalOutlet=n.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:2,hostBindings:function(e,t){1&e&&_s("@state.done",(function(e){return t.onAnimationEnd(e)})),2&e&&(is("role",t._role),eu("@state",t._animationState))},features:[nu],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&os(0,MC,0,0,"ng-template",0)},directives:[Wb],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[NC.snackBarState]}}),e}(),VC=function(){var e=function e(){w(this,e)};return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)},imports:[[E_,Hb,wh,Yy,ay],ay]}),e}(),jC=new ct("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new IC}}),FC=function(){var e=function(){function e(t,n,i,r,o,a){w(this,e),this._overlay=t,this._live=n,this._injector=i,this._breakpointObserver=r,this._parentSnackBar=o,this._defaultConfig=a,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=DC,this.snackBarContainerComponent=LC,this.handsetCssClass="mat-snack-bar-handset"}return C(e,[{key:"openFromComponent",value:function(e,t){return this._attach(e,t)}},{key:"openFromTemplate",value:function(e,t){return this._attach(e,t)}},{key:"open",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,i=Object.assign(Object.assign({},this._defaultConfig),n);return i.data={message:e,action:t},i.announcementMessage===e&&(i.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,i)}},{key:"dismiss",value:function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}},{key:"ngOnDestroy",value:function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}},{key:"_attachSnackBarContainer",value:function(e,t){var n=Za.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:IC,useValue:t}]}),i=new jb(this.snackBarContainerComponent,t.viewContainerRef,n),r=e.attach(i);return r.instance.snackBarConfig=t,r.instance}},{key:"_attach",value:function(e,t){var n=this,i=Object.assign(Object.assign(Object.assign({},new IC),this._defaultConfig),t),r=this._createOverlay(i),o=this._attachSnackBarContainer(r,i),a=new RC(o,r);if(e instanceof Hu){var s=new Fb(e,null,{$implicit:i.data,snackBarRef:a});a.instance=o.attachTemplatePortal(s)}else{var u=this._createInjector(i,a),c=new jb(e,void 0,u),l=o.attachComponentPortal(c);a.instance=l.instance}return this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait)").pipe(mb(r.detachments())).subscribe((function(e){var t=r.overlayElement.classList;e.matches?t.add(n.handsetCssClass):t.remove(n.handsetCssClass)})),this._animateSnackBar(a,i),this._openedSnackBarRef=a,this._openedSnackBarRef}},{key:"_animateSnackBar",value:function(e,t){var n=this;e.afterDismissed().subscribe((function(){n._openedSnackBarRef==e&&(n._openedSnackBarRef=null),t.announcementMessage&&n._live.clear()})),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe((function(){e.containerInstance.enter()})),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),t.duration&&t.duration>0&&e.afterOpened().subscribe((function(){return e._dismissAfter(t.duration)})),t.announcementMessage&&this._live.announce(t.announcementMessage,t.politeness)}},{key:"_createOverlay",value:function(e){var t=new e_;t.direction=e.direction;var n=this._overlay.position().global(),i="rtl"===e.direction,r="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!i||"end"===e.horizontalPosition&&i,o=!r&&"center"!==e.horizontalPosition;return r?n.left("0"):o?n.right("0"):n.centerHorizontally(),"top"===e.verticalPosition?n.top("0"):n.bottom("0"),t.positionStrategy=n,this._overlay.create(t)}},{key:"_createInjector",value:function(e,t){return Za.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:RC,useValue:t},{provide:PC,useValue:e.data}]})}},{key:"_openedSnackBarRef",get:function(){var e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}}]),e}();return e.\u0275fac=function(t){return new(t||e)(bt(b_),bt(jg),bt(Za),bt(yC),bt(e,12),bt(jC))},e.\u0275prov=De({factory:function(){return new e(bt(b_),bt(jg),bt(lt),bt(yC),bt(e,12),bt(jC))},token:e,providedIn:VC}),e}();function BC(e){var t="function"==typeof Map?new Map:void 0;return(BC=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return E(e,arguments,i(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),m(n,e)})(e)}var UC=function(){var e=Element.prototype;return e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}(),zC={schedule:function(e,t){var n=setTimeout(e,t);return function(){return clearTimeout(n)}},scheduleBeforeRender:function(e){if("undefined"==typeof window)return zC.schedule(e,0);if(void 0===window.requestAnimationFrame)return zC.schedule(e,16);var t=window.requestAnimationFrame(e);return function(){return window.cancelAnimationFrame(t)}}};function WC(e,t,n){var i=n;return function(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}(e)&&t.some((function(t,n){return!("*"===t||!function(e,t){return UC.call(e,t)}(e,t)||(i=n,0))})),i}var HC=function(){function e(t,n){w(this,e),this.componentFactory=n.get(bu).resolveComponentFactory(t)}return C(e,[{key:"create",value:function(e){return new GC(this.componentFactory,e)}}]),e}(),GC=function(){function e(t,n){w(this,e),this.componentFactory=t,this.injector=n,this.eventEmitters=new Mb(1),this.events=this.eventEmitters.pipe(bb((function(e){return ve.apply(void 0,d(e))}))),this.componentRef=null,this.inputChanges=null,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set,this.ngZone=this.injector.get(rl),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run((function(){return Zone.current}))}return C(e,[{key:"connect",value:function(e){var t=this;this.runInZone((function(){if(null!==t.scheduledDestroyFn)return t.scheduledDestroyFn(),void(t.scheduledDestroyFn=null);null===t.componentRef&&t.initializeComponent(e)}))}},{key:"disconnect",value:function(){var e=this;this.runInZone((function(){null!==e.componentRef&&null===e.scheduledDestroyFn&&(e.scheduledDestroyFn=zC.schedule((function(){null!==e.componentRef&&(e.componentRef.destroy(),e.componentRef=null)}),10))}))}},{key:"getInputValue",value:function(e){var t=this;return this.runInZone((function(){return null===t.componentRef?t.initialInputValues.get(e):t.componentRef.instance[e]}))}},{key:"setInputValue",value:function(e,t){var n=this;this.runInZone((function(){var i,r;null!==n.componentRef?((i=t)!==(r=n.getInputValue(e))&&(i==i||r==r)||void 0===t&&n.unchangedInputs.has(e))&&(n.recordInputChange(e,t),n.componentRef.instance[e]=t,n.scheduleDetectChanges()):n.initialInputValues.set(e,t)}))}},{key:"initializeComponent",value:function(e){var t=Za.create({providers:[],parent:this.injector}),n=function(e,t){var n=e.childNodes,i=t.map((function(){return[]})),r=-1;t.some((function(e,t){return"*"===e&&(r=t,!0)}));for(var o=0,a=n.length;o<a;++o){var s=n[o],u=WC(s,t,r);-1!==u&&i[u].push(s)}return i}(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,n,e),this.implementsOnChanges="function"==typeof this.componentRef.instance.ngOnChanges,this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(El).attachView(this.componentRef.hostView)}},{key:"initializeInputs",value:function(){var e=this;this.componentFactory.inputs.forEach((function(t){var n=t.propName;e.implementsOnChanges&&e.unchangedInputs.add(n),e.initialInputValues.has(n)&&e.setInputValue(n,e.initialInputValues.get(n))})),this.initialInputValues.clear()}},{key:"initializeOutputs",value:function(e){var t=this.componentFactory.outputs.map((function(t){var n=t.templateName;return e.instance[t.propName].pipe(K((function(e){return{name:n,value:e}})))}));this.eventEmitters.next(t)}},{key:"callNgOnChanges",value:function(e){if(this.implementsOnChanges&&null!==this.inputChanges){var t=this.inputChanges;this.inputChanges=null,e.instance.ngOnChanges(t)}}},{key:"scheduleDetectChanges",value:function(){var e=this;this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=zC.scheduleBeforeRender((function(){e.scheduledChangeDetectionFn=null,e.detectChanges()})))}},{key:"recordInputChange",value:function(e,t){if(null===this.componentRef||this.implementsOnChanges){null===this.inputChanges&&(this.inputChanges={});var n=this.inputChanges[e];if(n)n.currentValue=t;else{var i=this.unchangedInputs.has(e);this.unchangedInputs.delete(e);var r=i?void 0:this.getInputValue(e);this.inputChanges[e]=new an(r,t,i)}}}},{key:"detectChanges",value:function(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.componentRef.changeDetectorRef.detectChanges())}},{key:"runInZone",value:function(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}}]),e}(),qC=function(e){g(n,e);var t=k(n);function n(){var e;return w(this,n),(e=t.apply(this,arguments)).ngElementEventsSubscription=null,e}return n}(BC(HTMLElement));function ZC(e,t){var n=function(e,t){return t.get(bu).resolveComponentFactory(e).inputs}(e,t.injector),i=t.strategyFactory||new HC(e,t.injector),r=function(e){var t={};return e.forEach((function(e){var n,i=e.propName;t[(n=e.templateName,n.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})))]=i})),t}(n),o=function(e){g(a,e);var o=k(a);function a(e){var t;return w(this,a),(t=o.call(this)).injector=e,t}return C(a,[{key:"attributeChangedCallback",value:function(e,t,n,i){this.ngElementStrategy.setInputValue(r[e],n)}},{key:"connectedCallback",value:function(){var e=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),e=!0),this.ngElementStrategy.connect(this),e||this.subscribeToEvents()}},{key:"disconnectedCallback",value:function(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}},{key:"subscribeToEvents",value:function(){var e=this;this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe((function(t){var n=function(e,t,n){if("function"!=typeof CustomEvent){var i=e.createEvent("CustomEvent");return i.initCustomEvent(t,!1,!1,n),i}return new CustomEvent(t,{bubbles:!1,cancelable:!1,detail:n})}(e.ownerDocument,t.name,t.value);e.dispatchEvent(n)}))}},{key:"ngElementStrategy",get:function(){var e=this;if(!this._ngElementStrategy){var r=this._ngElementStrategy=i.create(this.injector||t.injector),o=n.filter((function(t){return e.hasOwnProperty(t.propName)})).map((function(t){var n=t.propName;return[n,e[n]]}));this instanceof a?o.forEach((function(t){var n=l(t,1);return delete e[n[0]]})):QC(n,this),o.forEach((function(e){var t=l(e,2);return r.setInputValue(t[0],t[1])}))}return this._ngElementStrategy}}]),a}(qC);return o.observedAttributes=Object.keys(r),Object.defineProperty(o.prototype,"ngElementStrategy",{enumerable:!0}),QC(n,o.prototype),o}function QC(e,t){e.forEach((function(e){var n=e.propName;Object.defineProperty(t,n,{get:function(){return this.ngElementStrategy.getInputValue(n)},set:function(e){this.ngElementStrategy.setInputValue(n,e)},configurable:!0,enumerable:!0})}))}var YC=function(){function e(t,n){w(this,e),this.strategy=t,this.injector=n,this.ngZone=this.injector.get(rl),this.strategy.events&&(this.events=this.strategy.events)}return C(e,[{key:"connect",value:function(e){var t=this;this.runInZone((function(){t.strategy.connect(e)})),this.events||(this.events=this.strategy.events)}},{key:"disconnect",value:function(){var e=this;this.runInZone((function(){e.strategy.disconnect()}))}},{key:"getInputValue",value:function(e){var t=this;return this.runInZone((function(){return t.strategy.getInputValue(e)}))}},{key:"setInputValue",value:function(e,t){var n=this;this.runInZone((function(){n.strategy.setInputValue(e,t)}))}},{key:"runInZone",value:function(e){return this.ngZone.run(e)}}]),e}(),KC=function(){var e=function(){function e(t,n){w(this,e),this.component=t,this.injector=n,this.ngElement=ZC(this.component,{injector:this.injector}),customElements.define(this.generateName(),this.ngElement)}return C(e,[{key:"string4",value:function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}},{key:"generateName",value:function(){var t="dummy-name-n";return t=t+(e.counter+"-")+this.string4()+this.string4()+this.string4()+"-"+this.string4()+this.string4()+"-"+this.string4(),e.counter++,t}},{key:"create",value:function(e){var t=new this.ngElement(this.injector),n=t.ngElementStrategy;return t=null,new YC(n,this.injector)}}]),e}();return e.counter=1,e}(),JC=function(e){g(n,e);var t=k(n);function n(e){var i;return w(this,n),(i=t.call(this))._value=e,i}return C(n,[{key:"_subscribe",value:function(e){var t=r(i(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){r(i(n.prototype),"next",this).call(this,this._value=e)}},{key:"value",get:function(){return this.getValue()}}]),n}(Z),XC={provide:Hc,useFactory:function(e,t){return function(){if(Sh(t)){var n=Array.from(e.querySelectorAll("[class*=".concat($C,"]"))),i=/\bflex-layout-.+?\b/g;n.forEach((function(e){e.classList.contains("".concat($C,"ssr"))&&e.parentNode?e.parentNode.removeChild(e):e.className.replace(i,"")}))}}},deps:[jl,Wc],multi:!0},$C="flex-layout-",eE=function(){var e=function e(){w(this,e)};return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)},providers:[XC]}),e}(),tE=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]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;w(this,e),this.matches=t,this.mediaQuery=n,this.mqAlias=i,this.suffix=r,this.priority=o,this.property=""}return C(e,[{key:"clone",value:function(){return new e(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}]),e}(),nE=function(){var e=function(){function e(){w(this,e),this.stylesheet=new Map}return C(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}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=De({factory:function(){return new e},token:e,providedIn:"root"}),e}(),iE={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},rE=new ct("Flex Layout token, config options for the library",{providedIn:"root",factory:function(){return iE}}),oE=new ct("FlexLayoutServerLoaded",{providedIn:"root",factory:function(){return!1}}),aE=new ct("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:function(){return null}});function sE(e,t){return e=e?e.clone():new tE,t&&(e.mqAlias=t.alias,e.mediaQuery=t.mediaQuery,e.suffix=t.suffix,e.priority=t.priority),e}var uE="inline",cE=["row","column","row-reverse","column-reverse"];function lE(e){var t=function(e){var t=l((e=e?e.toLowerCase():"").split(" "),3),n=t[0],i=t[1],r=t[2];return cE.find((function(e){return e===n}))||(n=cE[0]),i===uE&&(i=r!==uE?r:"",r=uE),[n,hE(i),!!r]}(e),n=l(t,3);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{display:arguments.length>2&&void 0!==arguments[2]&&arguments[2]?"inline-flex":"flex","box-sizing":"border-box","flex-direction":e,"flex-wrap":t||null}}(n[0],n[1],n[2])}function hE(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 dE=function(){var e=function(){function e(t,n,i,r){w(this,e),this.elementRef=t,this.styleBuilder=n,this.styler=i,this.marshal=r,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new Z,this.styleCache=new Map}return C(e,[{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 n=this.styler.getFlowDirection(e),i=l(n,2),r=i[0],o=i[1];if(!o&&t){var a=lE(r),s=[e];this.styler.applyStyleToElements(a,s)}return r.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)}},{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)}}]),e}();return e.\u0275fac=function(e){!function(){throw new Error("invalid")}()},e.\u0275dir=Gt({type:e,features:[sn]}),e}(),fE=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.9px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.9px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.9px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.9px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.9px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.9px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.9px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.9px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.9px)"},{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}],pE="(orientation: portrait) and (max-width: 599.9px)",vE="(orientation: landscape) and (max-width: 959.9px)",mE="(orientation: portrait) and (min-width: 600px) and (max-width: 839.9px)",gE="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.9px)",yE="(orientation: portrait) and (min-width: 840px)",bE="(orientation: landscape) and (min-width: 1280px)",_E={HANDSET:"".concat(pE,", ").concat(vE),TABLET:"".concat(mE," , ").concat(gE),WEB:"".concat(yE,", ").concat(bE," "),HANDSET_PORTRAIT:"".concat(pE),TABLET_PORTRAIT:"".concat(mE," "),WEB_PORTRAIT:"".concat(yE),HANDSET_LANDSCAPE:"".concat(vE),TABLET_LANDSCAPE:"".concat(gE),WEB_LANDSCAPE:"".concat(bE)},kE=[{alias:"handset",priority:2e3,mediaQuery:_E.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:_E.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:_E.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:_E.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:_E.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:_E.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:_E.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:_E.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:_E.WEB_PORTRAIT,overlapping:!0}];function wE(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<t;i++)n[i-1]=arguments[i];for(var r=0,o=n;r<o.length;r++){var a=o[r];if(null!=a)for(var s in a)a.hasOwnProperty(s)&&(e[s]=a[s])}return e}var SE=/(\.|-|_)/g;function CE(e){var t=e.length>0?e.charAt(0):"",n=e.length>1?e.slice(1):"";return t.toUpperCase()+n}function EE(e){return e.forEach((function(e){e.suffix||(e.suffix=e.alias.replace(SE,"|").split("|").map(CE).join(""),e.overlapping=!!e.overlapping)})),e}var OE=new ct("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:function(){var e=_t(aE),t=_t(rE),n=[].concat.apply([],(e||[]).map((function(e){return Array.isArray(e)?e:[e]})));return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n={};return e.forEach((function(e){n[e.alias]=e})),t.forEach((function(e){n[e.alias]?wE(n[e.alias],e):n[e.alias]=e})),EE(Object.keys(n).map((function(e){return n[e]})))}((t.disableDefaultBps?[]:fE).concat(t.addOrientationBps?kE:[]),n)}});function xE(e,t){return(t&&t.priority||0)-(e&&e.priority||0)}function TE(e,t){return(e.priority||0)-(t.priority||0)}var ME=function(){var e=function(){function e(t){w(this,e),this.findByMap=new Map,this.items=d(t).sort(TE)}return C(e,[{key:"findByAlias",value:function(e){return e?this.findWithPredicate(e,(function(t){return t.alias==e})):null}},{key:"findByQuery",value:function(e){return this.findWithPredicate(e,(function(t){return t.mediaQuery==e}))}},{key:"findWithPredicate",value:function(e,t){var n=this.findByMap.get(e);return n||(n=this.items.find(t)||null,this.findByMap.set(e,n)),n||null}},{key:"overlappings",get:function(){return this.items.filter((function(e){return 1==e.overlapping}))}},{key:"aliases",get:function(){return this.items.map((function(e){return e.alias}))}},{key:"suffixes",get:function(){return this.items.map((function(e){return e.suffix?e.suffix:""}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(bt(OE))},e.\u0275prov=De({factory:function(){return new e(bt(OE))},token:e,providedIn:"root"}),e}(),PE=function(){var e=function(){function e(t,n,i){w(this,e),this._zone=t,this._platformId=n,this._document=i,this.source=new JC(new tE(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}return C(e,[{key:"isActive",value:function(e){var t=this.registry.get(e);return t?t.matches:this.registerQuery(e).some((function(e){return e.matches}))}},{key:"observe",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e&&e.length){var i=this._observable$.pipe(tg((function(t){return!n||e.indexOf(t.mediaQuery)>-1}))),r=new z((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()}));return ve(r,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!IE[e]}));if(n.length>0){var i=n.join(", ");try{var r=t.createElement("style");if(r.setAttribute("type","text/css"),!r.styleSheet){var o="\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");r.appendChild(t.createTextNode(o))}t.head.appendChild(r),n.forEach((function(e){return IE[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 tE(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 tE(!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,Sh(this._platformId))}},{key:"activations",get:function(){var e=[];return this.registry.forEach((function(t,n){t.matches&&e.push(n)})),e}}]),e}();return e.\u0275fac=function(t){return new(t||e)(bt(rl),bt(Wc),bt(jl))},e.\u0275prov=De({factory:function(){return new e(bt(rl),bt(Wc),bt(jl))},token:e,providedIn:"root"}),e}(),IE={},AE="print",RE={alias:AE,mediaQuery:AE,priority:1e3},DE=function(){var e=function(){function e(t,n,i){w(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 NE,this.deactivations=[]}return C(e,[{key:"withPrintQuery",value:function(e){return[].concat(d(e),[AE])}},{key:"isPrintEvent",value:function(e){return e.mediaQuery.startsWith(AE)}},{key:"getEventBreakpoints",value:function(e){var t=this.breakpoints.findByQuery(e.mediaQuery);return(t?[].concat(d(this.printBreakPoints),[t]):this.printBreakPoints).sort(xE)}},{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:""),sE(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 tE(!0,AE))),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(xE))}}},{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)}))}},{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}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(bt(ME),bt(rE),bt(jl))},e.\u0275prov=De({factory:function(){return new e(bt(ME),bt(rE),bt(jl))},token:e,providedIn:"root"}),e}(),NE=function(){function e(){w(this,e),this.printBreakpoints=[]}return C(e,[{key:"addPrintBreakpoints",value:function(e){var t=this;return e.push(RE),e.sort(xE),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(AE)}(e)?[e].concat(d(this.printBreakpoints)):[].concat(d(this.printBreakpoints),[e]))}},{key:"clear",value:function(){this.printBreakpoints=[]}}]),e}();function LE(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":e["-webkit-flex-direction"]=n=n||"row",e["flex-direction"]=n;break;case"order":e.order=e["-webkit-"+t]=isNaN(+n)?"0":n}}return e}var VE=function(){var e=function(){function e(t,n,i,r){w(this,e),this._serverStylesheet=t,this._serverModuleLoaded=n,this._platformId=i,this.layoutConfig=r}return C(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:LE(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:LE(e);n.forEach((function(e){t._applyMultiValueStyleToElement(i,e)}))}},{key:"getFlowDirection",value:function(e){var t="flex-direction",n=this.lookupStyle(e,t);return[n||"row",this.lookupInlineStyle(e,t)||Ch(this._platformId)&&this._serverModuleLoaded?n:""]}},{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 Sh(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="";if(e){var r=i=this.lookupInlineStyle(e,t);r||(Sh(this._platformId)?n||(i=getComputedStyle(e).getPropertyValue(t)):this._serverModuleLoaded&&(i=this._serverStylesheet.getStyleForElement(e,t)))}return i?i.trim():""}},{key:"_applyMultiValueStyleToElement",value:function(e,t){var n=this;Object.keys(e).sort().forEach((function(i){var r=e[i],o=Array.isArray(r)?r:[r];o.sort();var a,s=v(o);try{for(s.s();!(a=s.n()).done;){var u=a.value;u=u?u+"":"",Sh(n._platformId)||!n._serverModuleLoaded?Sh(n._platformId)?t.style.setProperty(i,u):n._setServerStyle(t,i,u):n._serverStylesheet.addStyleToElement(t,i,u)}}catch(c){s.e(c)}finally{s.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;r<i.length;r++){var o=i[r].trim();if(o.length>0){var a=o.indexOf(":");if(-1===a)throw new Error("Invalid CSS style: ".concat(o));t[o.substr(0,a).trim()]=o.substr(a+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}();return e.\u0275fac=function(t){return new(t||e)(bt(nE),bt(oE),bt(Wc),bt(rE))},e.\u0275prov=De({factory:function(){return new e(bt(nE),bt(oE),bt(Wc),bt(rE))},token:e,providedIn:"root"}),e}(),jE=function(){function e(){w(this,e),this.shouldCache=!0}return C(e,[{key:"sideEffect",value:function(e,t,n){}}]),e}();function FE(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]=BE(e.substring(r).trim());var o=e.substr(0,r).trim().split(" ");2==o.length&&(i[0]=o[0],i[1]=o[1])}else if(0==r)i[2]=BE(e.trim());else{var a=e.split(" ");i=3===a.length?a:[t,n,e]}return i}function BE(e){return e.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}var UE=function(){var e=function(){function e(t,n,i){w(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 Z,this.observeActivations()}return C(e,[{key:"onMediaChange",value:function(e){var t=this.findByQuery(e.mediaQuery);t&&((e=sE(e,t)).matches&&-1===this.activatedBreakpoints.indexOf(t)?(this.activatedBreakpoints.push(t),this.activatedBreakpoints.sort(xE),this.updateStyles()):e.matches||-1===this.activatedBreakpoints.indexOf(t)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(t),1),this.activatedBreakpoints.sort(xE),this.updateStyles()))}},{key:"init",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];zE(this.updateMap,e,t,n),zE(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 o=(r.get(i)||new Map).set(t,n);r.set(i,o),this.elementMap.set(e,r)}else r=(new Map).set(i,(new Map).set(t,n)),this.elementMap.set(e,r);var a=this.getValue(e,t);void 0!==a&&this.updateElement(e,t,a)}},{key:"trackValue",value:function(e,t){return this.subject.asObservable().pipe(tg((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 o=r.get(i);e.updateElement(n,i,o)}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=ve.apply(void 0,d(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;n<this.activatedBreakpoints.length;n++){var i=e.get(this.activatedBreakpoints[n].alias);if(i&&(void 0===t||i.has(t)&&null!=i.get(t)))return i}var r=e.get("");return void 0===t||r&&r.has(t)?r:void 0}},{key:"observeActivations",value:function(){var e=this.breakpoints.items.map((function(e){return e.mediaQuery}));this.matchMedia.observe(this.hook.withPrintQuery(e)).pipe(Hm(this.hook.interceptEvents(this)),tg(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}},{key:"activatedAlias",get:function(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}}]),e}();return e.\u0275fac=function(t){return new(t||e)(bt(PE),bt(ME),bt(DE))},e.\u0275prov=De({factory:function(){return new e(bt(PE),bt(ME),bt(DE))},token:e,providedIn:"root"}),e}();function zE(e,t,n,i){if(void 0!==i){var r=e.get(t);r||(r=new Map,e.set(t,r)),r.set(n,i)}}var WE=function(){var e=function(e){g(n,e);var t=k(n);function n(e,i,r,o,a,s,u){var c;return w(this,n),(c=t.call(this,e,null,i,r)).ngClassInstance=u,c.DIRECTIVE_KEY="ngClass",c.ngClassInstance||(c.ngClassInstance=new ah(o,a,e,s)),c.init(),c.setValue("",""),c}return C(n,[{key:"updateWithValue",value:function(e){this.ngClassInstance.ngClass=e,this.ngClassInstance.ngDoCheck()}},{key:"ngDoCheck",value:function(){this.ngClassInstance.ngDoCheck()}},{key:"klass",set:function(e){this.ngClassInstance.klass=e,this.setValue(e,"")}}]),n}(dE);return e.\u0275fac=function(t){return new(t||e)(ss(_u),ss(VE),ss(UE),ss(Fu),ss(Bu),ss(Cu),ss(ah,10))},e.\u0275dir=Gt({type:e,inputs:{klass:["class","klass"]},features:[nu]}),e}(),HE=["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"],GE=function(){var e=function(e){g(n,e);var t=k(n);function n(){var e;return w(this,n),(e=t.apply(this,arguments)).inputs=HE,e}return n}(WE);e.\u0275fac=function(n){return t(n||e)},e.\u0275dir=Gt({type:e,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:[nu]});var t=Gi(e);return e}(),qE=function e(t,n){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];w(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 ZE(e){var t=typeof e;return"object"===t?e.constructor===Array?"array":e.constructor===Set?"set":"object":t}function QE(e){var t=p(e.split(":")),n=t[0],i=t.slice(1);return new qE(n,i.join(":"))}function YE(e,t){return t.key&&(e[t.key]=t.value),e}var KE=function(){var e=function(e){g(n,e);var t=k(n);function n(e,i,r,o,a,s,u,c,l){var h;w(this,n),(h=t.call(this,e,null,i,r)).sanitizer=o,h.ngStyleInstance=u,h.DIRECTIVE_KEY="ngStyle",h.ngStyleInstance||(h.ngStyleInstance=new gh(e,a,s)),h.init();var d=h.nativeElement.getAttribute("style")||"";return h.fallbackStyles=h.buildStyleMap(d),h.isServer=c&&Ch(l),h}return C(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,o=function(e){return r.sanitizer.sanitize(Ir.STYLE,e)||""};if(e)switch(ZE(e)){case"string":return $E(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),o);case"array":return $E(e,o);case"set":default:return n=o,i=[],"set"===ZE(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(QE).filter((function(e){return!!e})).map((function(e){return t&&(e.value=t(e.value)),e})).reduce(YE,{})}(i,n)}return{}}},{key:"ngDoCheck",value:function(){this.ngStyleInstance.ngDoCheck()}}]),n}(dE);return e.\u0275fac=function(t){return new(t||e)(ss(_u),ss(VE),ss(UE),ss(nd),ss(Bu),ss(Cu),ss(gh,10),ss(oE),ss(Wc))},e.\u0275dir=Gt({type:e,features:[nu]}),e}(),JE=["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"],XE=function(){var e=function(e){g(n,e);var t=k(n);function n(){var e;return w(this,n),(e=t.apply(this,arguments)).inputs=JE,e}return n}(KE);e.\u0275fac=function(n){return t(n||e)},e.\u0275dir=Gt({type:e,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:[nu]});var t=Gi(e);return e}();function $E(e,t){return e.map(QE).filter((function(e){return!!e})).map((function(e){return t&&(e.value=t(e.value)),e})).reduce(YE,{})}var eO=function(){var e=function e(){w(this,e)};return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)},imports:[[eE]]}),e}(),tO="inline",nO=["row","column","row-reverse","column-reverse"];function iO(e){var t=l((e=e?e.toLowerCase():"").split(" "),3),n=t[0],i=t[1],r=t[2];return nO.find((function(e){return e===n}))||(n=nO[0]),i===tO&&(i=r!==tO?r:"",r=tO),[n,oO(i),!!r]}function rO(e){return l(iO(e),1)[0].indexOf("row")>-1}function oO(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 aO=function(){var e=function(e){g(n,e);var t=k(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"buildStyles",value:function(e){return function(e){return{display:arguments.length>2&&void 0!==arguments[2]&&arguments[2]?"inline-flex":"flex","box-sizing":"border-box","flex-direction":e,"flex-wrap":(arguments.length>1&&void 0!==arguments[1]?arguments[1]:null)||null}}((t=l(iO(e),3))[0],t[1],t[2]);var t}}]),n}(jE);e.\u0275fac=function(n){return t(n||e)},e.\u0275prov=De({factory:function(){return new e},token:e,providedIn:"root"});var t=Gi(e);return e}(),sO=["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"],uO=function(){var e=function(e){g(n,e);var t=k(n);function n(e,i,r,o){var a;return w(this,n),(a=t.call(this,e,r,i,o)).DIRECTIVE_KEY="layout",a.styleCache=lO,a.init(),a}return n}(dE);return e.\u0275fac=function(t){return new(t||e)(ss(_u),ss(VE),ss(aO),ss(UE))},e.\u0275dir=Gt({type:e,features:[nu]}),e}(),cO=function(){var e=function(e){g(n,e);var t=k(n);function n(){var e;return w(this,n),(e=t.apply(this,arguments)).inputs=sO,e}return n}(uO);e.\u0275fac=function(n){return t(n||e)},e.\u0275dir=Gt({type:e,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:[nu]});var t=Gi(e);return e}(),lO=new Map,hO={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null},dO=function(){var e=function(e){g(n,e);var t=k(n);function n(e){var i;return w(this,n),(i=t.call(this))._styler=e,i}return C(n,[{key:"buildStyles",value:function(e,t){return e.endsWith(_O)?(n=e=e.slice(0,e.indexOf(_O)),i=t.directionality,o=(r=l(n.split(" "),2))[0],s="0px",u=(a=function(e){return"-".concat(e)})(r[1]||o),c="0px","rtl"===i?c=a(o):s=a(o),{margin:"0px ".concat(s," ").concat(u," ").concat(c)}):{};var n,i,r,o,a,s,u,c}},{key:"sideEffect",value:function(e,t,n){var i,r,o,a,s,u,c,h=n.items;if(e.endsWith(_O)){var d=(i=e=e.slice(0,e.indexOf(_O)),r=n.directionality,a=(o=l(i.split(" "),2))[0],s="0px",u=o[1]||a,c="0px","rtl"===r?c=a:s=a,{padding:"0px ".concat(s," ").concat(u," ").concat(c)});this._styler.applyStyleToElements(d,n.items)}else{var f=h.pop(),p=function(e,t){var n=kO(t.directionality,t.layout),i=Object.assign({},hO);return i[n]=e,i}(e,n);this._styler.applyStyleToElements(p,h),this._styler.applyStyleToElements(hO,[f])}}}]),n}(jE);return e.\u0275fac=function(t){return new(t||e)(bt(VE))},e.\u0275prov=De({factory:function(){return new e(bt(VE))},token:e,providedIn:"root"}),e}(),fO=["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"],pO=function(){var e=function(e){g(n,e);var t=k(n);function n(e,i,r,a,s,u){var c;w(this,n),(c=t.call(this,e,s,a,u)).zone=i,c.directionality=r,c.styleUtils=a,c.layout="row",c.DIRECTIVE_KEY="layout-gap",c.observerSubject=new Z;var l=[c.directionality.change,c.observerSubject.asObservable()];return c.init(l),c.marshal.trackValue(c.nativeElement,"layout").pipe(mb(c.destroySubject)).subscribe(c.onLayoutChange.bind(o(c))),c}return C(n,[{key:"ngAfterContentInit",value:function(){this.buildChildObservable(),this.triggerUpdate()}},{key:"ngOnDestroy",value:function(){r(i(n.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],nO.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=mO:"row"===r&&"rtl"!==i?this.styleCache=yO:"column"===r&&"rtl"===i?this.styleCache=gO:"column"===r&&"rtl"!==i&&(this.styleCache=bO),this.addStyles(e,{directionality:i,items:n,layout:r})}}},{key:"clearStyles",value:function(){var e=Object.keys(this.mru).length>0,t=e?"padding":kO(this.directionality.value,this.layout);e&&r(i(n.prototype),"clearStyles",this).call(this),this.styleUtils.applyStyleToElements(f({},t,""),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}))}))}},{key:"childrenNodes",get:function(){for(var e=this.nativeElement.children,t=[],n=e.length;n--;)t[n]=e[n];return t}}]),n}(dE);return e.\u0275fac=function(t){return new(t||e)(ss(_u),ss(rl),ss(Kg),ss(VE),ss(dO),ss(UE))},e.\u0275dir=Gt({type:e,features:[nu]}),e}(),vO=function(){var e=function(e){g(n,e);var t=k(n);function n(){var e;return w(this,n),(e=t.apply(this,arguments)).inputs=fO,e}return n}(pO);e.\u0275fac=function(n){return t(n||e)},e.\u0275dir=Gt({type:e,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:[nu]});var t=Gi(e);return e}(),mO=new Map,gO=new Map,yO=new Map,bO=new Map,_O=" grid";function kO(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 wO(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<t;i++)n[i-1]=arguments[i];for(var r=0,o=n;r<o.length;r++){var a=o[r];if(null!=a)for(var s in a)a.hasOwnProperty(s)&&(e[s]=a[s])}return e}var SO=function(){var e=function(e){g(n,e);var t=k(n);function n(e){var i;return w(this,n),(i=t.call(this)).layoutConfig=e,i}return C(n,[{key:"buildStyles",value:function(e,t){var n=p(e.split(" ")),i=n[0],r=n[1],o=n.slice(2).join(" "),a=t.direction.indexOf("column")>-1?"column":"row",s=rO(a)?"max-width":"max-height",u=rO(a)?"min-width":"min-height",c=String(o).indexOf("calc")>-1,l=c||"auto"===o,h=String(o).indexOf("%")>-1&&!c,d=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,f=c||d;r="0"==r?0:r;var v=!(i="0"==i?0:i)&&!r,m={},g={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(o||""){case"":o="row"===a?"0%":!1!==this.layoutConfig.useColumnBasisZero?"0.000000001px":"auto";break;case"initial":case"nogrow":i=0,o="auto";break;case"grow":o="100%";break;case"noshrink":r=0,o="auto";break;case"auto":break;case"none":i=0,r=0,o="auto";break;default:f||h||isNaN(o)||(o+="%"),"0%"===o&&(f=!0),"0px"===o&&(o="0%"),m=wO(g,c?{"flex-grow":i,"flex-shrink":r,"flex-basis":f?o:"100%"}:{flex:"".concat(i," ").concat(r," ").concat(f?o:"100%")})}return m.flex||m["flex-grow"]||(m=wO(g,c?{"flex-grow":i,"flex-shrink":r,"flex-basis":o}:{flex:"".concat(i," ").concat(r," ").concat(o)})),"0%"!==o&&"0px"!==o&&"0.000000001px"!==o&&"auto"!==o&&(m[u]=v||f&&i?o:null,m[s]=v||!l&&r?o:null),m[u]||m[s]?t.hasWrap&&(m[c?"flex-basis":"flex"]=m[s]?c?m[s]:"".concat(i," ").concat(r," ").concat(m[s]):c?m[u]:"".concat(i," ").concat(r," ").concat(m[u])):m=wO(g,c?{"flex-grow":i,"flex-shrink":r,"flex-basis":o}:{flex:"".concat(i," ").concat(r," ").concat(o)}),wO(m,{"box-sizing":"border-box"})}}]),n}(jE);return e.\u0275fac=function(t){return new(t||e)(bt(rE))},e.\u0275prov=De({factory:function(){return new e(bt(rE))},token:e,providedIn:"root"}),e}(),CO=["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"],EO=function(){var e=function(e){g(n,e);var t=k(n);function n(e,i,r,o,a){var s;return w(this,n),(s=t.call(this,e,o,i,a)).layoutConfig=r,s.marshal=a,s.DIRECTIVE_KEY="flex",s.direction=void 0,s.wrap=void 0,s.flexGrow="1",s.flexShrink="1",s.init(),s}return C(n,[{key:"ngOnInit",value:function(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(mb(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(mb(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=MO:n&&!i?this.styleCache=xO:!n&&i?this.styleCache=PO:n||i||(this.styleCache=TO);var r=FE(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=FE(e+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,t.join(" "))}}},{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()}}]),n}(dE);return e.\u0275fac=function(t){return new(t||e)(ss(_u),ss(VE),ss(rE),ss(SO),ss(UE))},e.\u0275dir=Gt({type:e,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[nu]}),e}(),OO=function(){var e=function(e){g(n,e);var t=k(n);function n(){var e;return w(this,n),(e=t.apply(this,arguments)).inputs=CO,e}return n}(EO);e.\u0275fac=function(n){return t(n||e)},e.\u0275dir=Gt({type:e,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:[nu]});var t=Gi(e);return e}(),xO=new Map,TO=new Map,MO=new Map,PO=new Map,IO=function(){var e=function(e){g(n,e);var t=k(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"buildStyles",value:function(e){return{order:e&&parseInt(e,10)||""}}}]),n}(jE);e.\u0275fac=function(n){return t(n||e)},e.\u0275prov=De({factory:function(){return new e},token:e,providedIn:"root"});var t=Gi(e);return e}(),AO=["fxFlexOrder","fxFlexOrder.xs","fxFlexOrder.sm","fxFlexOrder.md","fxFlexOrder.lg","fxFlexOrder.xl","fxFlexOrder.lt-sm","fxFlexOrder.lt-md","fxFlexOrder.lt-lg","fxFlexOrder.lt-xl","fxFlexOrder.gt-xs","fxFlexOrder.gt-sm","fxFlexOrder.gt-md","fxFlexOrder.gt-lg"],RO=function(){var e=function(e){g(n,e);var t=k(n);function n(e,i,r,o){var a;return w(this,n),(a=t.call(this,e,r,i,o)).DIRECTIVE_KEY="flex-order",a.styleCache=DO,a.init(),a}return n}(dE);return e.\u0275fac=function(t){return new(t||e)(ss(_u),ss(VE),ss(IO),ss(UE))},e.\u0275dir=Gt({type:e,features:[nu]}),e}(),DO=new Map,NO=function(){var e=function(e){g(n,e);var t=k(n);function n(){var e;return w(this,n),(e=t.apply(this,arguments)).inputs=AO,e}return n}(RO);e.\u0275fac=function(n){return t(n||e)},e.\u0275dir=Gt({type:e,selectors:[["","fxFlexOrder",""],["","fxFlexOrder.xs",""],["","fxFlexOrder.sm",""],["","fxFlexOrder.md",""],["","fxFlexOrder.lg",""],["","fxFlexOrder.xl",""],["","fxFlexOrder.lt-sm",""],["","fxFlexOrder.lt-md",""],["","fxFlexOrder.lt-lg",""],["","fxFlexOrder.lt-xl",""],["","fxFlexOrder.gt-xs",""],["","fxFlexOrder.gt-sm",""],["","fxFlexOrder.gt-md",""],["","fxFlexOrder.gt-lg",""]],inputs:{fxFlexOrder:"fxFlexOrder","fxFlexOrder.xs":"fxFlexOrder.xs","fxFlexOrder.sm":"fxFlexOrder.sm","fxFlexOrder.md":"fxFlexOrder.md","fxFlexOrder.lg":"fxFlexOrder.lg","fxFlexOrder.xl":"fxFlexOrder.xl","fxFlexOrder.lt-sm":"fxFlexOrder.lt-sm","fxFlexOrder.lt-md":"fxFlexOrder.lt-md","fxFlexOrder.lt-lg":"fxFlexOrder.lt-lg","fxFlexOrder.lt-xl":"fxFlexOrder.lt-xl","fxFlexOrder.gt-xs":"fxFlexOrder.gt-xs","fxFlexOrder.gt-sm":"fxFlexOrder.gt-sm","fxFlexOrder.gt-md":"fxFlexOrder.gt-md","fxFlexOrder.gt-lg":"fxFlexOrder.gt-lg"},features:[nu]});var t=Gi(e);return e}(),LO={margin:0,width:"100%",height:"100%","min-width":"100%","min-height":"100%"},VO=function(){var e=function(e){g(n,e);var t=k(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"buildStyles",value:function(e){return LO}}]),n}(jE);e.\u0275fac=function(n){return t(n||e)},e.\u0275prov=De({factory:function(){return new e},token:e,providedIn:"root"});var t=Gi(e);return e}(),jO=function(){var e=function(e){g(n,e);var t=k(n);function n(e,i,r,o){var a;return w(this,n),(a=t.call(this,e,r,i,o)).styleCache=FO,a.addStyles(""),a}return n}(dE);return e.\u0275fac=function(t){return new(t||e)(ss(_u),ss(VE),ss(VO),ss(UE))},e.\u0275dir=Gt({type:e,selectors:[["","fxFill",""],["","fxFlexFill",""]],features:[nu]}),e}(),FO=new Map,BO=function(){var e=function(e){g(n,e);var t=k(n);function n(){return w(this,n),t.apply(this,arguments)}return C(n,[{key:"buildStyles",value:function(e,t){var n={},i=l(e.split(" "),2),r=i[1];switch(i[0]){case"center":n["justify-content"]="center";break;case"space-around":n["justify-content"]="space-around";break;case"space-between":n["justify-content"]="space-between";break;case"space-evenly":n["justify-content"]="space-evenly";break;case"end":case"flex-end":n["justify-content"]="flex-end";break;case"start":case"flex-start":default:n["justify-content"]="flex-start"}switch(r){case"start":case"flex-start":n["align-items"]=n["align-content"]="flex-start";break;case"center":n["align-items"]=n["align-content"]="center";break;case"end":case"flex-end":n["align-items"]=n["align-content"]="flex-end";break;case"space-between":n["align-content"]="space-between",n["align-items"]="stretch";break;case"space-around":n["align-content"]="space-around",n["align-items"]="stretch";break;case"baseline":n["align-content"]="stretch",n["align-items"]="baseline";break;case"stretch":default:n["align-items"]=n["align-content"]="stretch"}return wO(n,{display:t.inline?"inline-flex":"flex","flex-direction":t.layout,"box-sizing":"border-box","max-width":"stretch"===r?rO(t.layout)?null:"100%":null,"max-height":"stretch"===r&&rO(t.layout)?"100%":null})}}]),n}(jE);e.\u0275fac=function(n){return t(n||e)},e.\u0275prov=De({factory:function(){return new e},token:e,providedIn:"root"});var t=Gi(e);return e}(),UO=["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"],zO=function(){var e=function(e){g(n,e);var t=k(n);function n(e,i,r,a){var s;return w(this,n),(s=t.call(this,e,r,i,a)).DIRECTIVE_KEY="layout-align",s.layout="row",s.inline=!1,s.init(),s.marshal.trackValue(s.nativeElement,"layout").pipe(mb(s.destroySubject)).subscribe(s.onLayoutChange.bind(o(s))),s}return C(n,[{key:"updateWithValue",value:function(e){var t=this.layout||"row",n=this.inline;"row"===t&&n?this.styleCache=QO:"row"!==t||n?"row-reverse"===t&&n?this.styleCache=KO:"row-reverse"!==t||n?"column"===t&&n?this.styleCache=YO:"column"!==t||n?"column-reverse"===t&&n?this.styleCache=JO:"column-reverse"!==t||n||(this.styleCache=ZO):this.styleCache=GO:this.styleCache=qO:this.styleCache=HO,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"),nO.find((function(e){return e===t.layout}))||(this.layout="row"),this.triggerUpdate()}}]),n}(dE);return e.\u0275fac=function(t){return new(t||e)(ss(_u),ss(VE),ss(BO),ss(UE))},e.\u0275dir=Gt({type:e,features:[nu]}),e}(),WO=function(){var e=function(e){g(n,e);var t=k(n);function n(){var e;return w(this,n),(e=t.apply(this,arguments)).inputs=UO,e}return n}(zO);e.\u0275fac=function(n){return t(n||e)},e.\u0275dir=Gt({type:e,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:[nu]});var t=Gi(e);return e}(),HO=new Map,GO=new Map,qO=new Map,ZO=new Map,QO=new Map,YO=new Map,KO=new Map,JO=new Map,XO=function(){var e=function e(){w(this,e)};return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)},imports:[[eE,Jg]]}),e}(),$O=function(){var e=function e(){w(this,e)};return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)},imports:[[eE]]}),e}(),ex=function(){var e=function(){function e(t,n){w(this,e),Ch(n)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}return C(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:rE,useValue:Object.assign(Object.assign({},iE),t)},{provide:aE,useValue:n,multi:!0},{provide:oE,useValue:!0}]:[{provide:rE,useValue:Object.assign(Object.assign({},iE),t)},{provide:aE,useValue:n,multi:!0}]}}}]),e}();return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)(bt(oE),bt(Wc))},imports:[[XO,eO,$O],XO,eO,$O]}),e}(),tx=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 nx(e){return function(t){return 0===e?ag():t.lift(new ix(e))}}var ix=function(){function e(t){if(w(this,e),this.total=t,this.total<0)throw new rg}return C(e,[{key:"call",value:function(e,t){return t.subscribe(new rx(e,this.total))}}]),e}(),rx=function(e){g(n,e);var t=k(n);function n(e,i){var r;return w(this,n),(r=t.call(this,e)).total=i,r.ring=new Array,r.count=0,r}return C(n,[{key:"_next",value:function(e){var t=this.ring,n=this.total,i=this.count++;t.length<n?t.push(e):t[i%n]=e}},{key:"_complete",value:function(){var e=this.destination,t=this.count;if(t>0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r<n;r++){var o=t++%n;e.next(i[o])}e.complete()}}]),n}(V);function ox(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ux;return function(t){return t.lift(new ax(e))}}var ax=function(){function e(t){w(this,e),this.errorFactory=t}return C(e,[{key:"call",value:function(e,t){return t.subscribe(new sx(e,this.errorFactory))}}]),e}(),sx=function(e){g(n,e);var t=k(n);function n(e,i){var r;return w(this,n),(r=t.call(this,e)).errorFactory=i,r.hasValue=!1,r}return C(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}(V);function ux(){return new tx}function cx(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new lx(e))}}var lx=function(){function e(t){w(this,e),this.defaultValue=t}return C(e,[{key:"call",value:function(e,t){return t.subscribe(new hx(e,this.defaultValue))}}]),e}(),hx=function(e){g(n,e);var t=k(n);function n(e,i){var r;return w(this,n),(r=t.call(this,e)).defaultValue=i,r.isEmpty=!0,r}return C(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}(V),dx=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];w(this,e),this.accumulator=t,this.seed=n,this.hasSeed=i}return C(e,[{key:"call",value:function(e,t){return t.subscribe(new fx(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),fx=function(e){g(n,e);var t=k(n);function n(e,i,r,o){var a;return w(this,n),(a=t.call(this,e)).accumulator=i,a._seed=r,a.hasSeed=o,a.index=0,a}return C(n,[{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)}},{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}}]),n}(V);function px(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?tg((function(t,n){return e(t,n,i)})):B,sg(1),n?cx(t):ox((function(){return new tx})))}}var vx=function e(t,n){w(this,e),this.id=t,this.url=n},mx=function(e){g(n,e);var t=k(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return w(this,n),(r=t.call(this,e,i)).navigationTrigger=o,r.restoredState=a,r}return C(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(vx),gx=function(e){g(n,e);var t=k(n);function n(e,i,r){var o;return w(this,n),(o=t.call(this,e,i)).urlAfterRedirects=r,o}return C(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(vx),yx=function(e){g(n,e);var t=k(n);function n(e,i,r){var o;return w(this,n),(o=t.call(this,e,i)).reason=r,o}return C(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(vx),bx=function(e){g(n,e);var t=k(n);function n(e,i,r){var o;return w(this,n),(o=t.call(this,e,i)).error=r,o}return C(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(vx),_x=function(e){g(n,e);var t=k(n);function n(e,i,r,o){var a;return w(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return C(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(vx),kx=function(e){g(n,e);var t=k(n);function n(e,i,r,o){var a;return w(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return C(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(vx),wx=function(e){g(n,e);var t=k(n);function n(e,i,r,o,a){var s;return w(this,n),(s=t.call(this,e,i)).urlAfterRedirects=r,s.state=o,s.shouldActivate=a,s}return C(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}(vx),Sx=function(e){g(n,e);var t=k(n);function n(e,i,r,o){var a;return w(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return C(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(vx),Cx=function(e){g(n,e);var t=k(n);function n(e,i,r,o){var a;return w(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return C(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(vx),Ex=function(){function e(t){w(this,e),this.route=t}return C(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),Ox=function(){function e(t){w(this,e),this.route=t}return C(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),xx=function(){function e(t){w(this,e),this.snapshot=t}return C(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Tx=function(){function e(t){w(this,e),this.snapshot=t}return C(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Mx=function(){function e(t){w(this,e),this.snapshot=t}return C(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Px=function(){function e(t){w(this,e),this.snapshot=t}return C(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Ix=function(){function e(t,n,i){w(this,e),this.routerEvent=t,this.position=n,this.anchor=i}return C(e,[{key:"toString",value:function(){var e=this.position?"".concat(this.position[0],", ").concat(this.position[1]):null;return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(e,"')")}}]),e}(),Ax="primary",Rx=function(){function e(t){w(this,e),this.params=t||{}}return C(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 Dx(e){return new Rx(e)}function Nx(e){var t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function Lx(e,t,n){var i=n.path.split("/");if(i.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||i.length<e.length))return null;for(var r={},o=0;o<i.length;o++){var a=i[o],s=e[o];if(a.startsWith(":"))r[a.substring(1)]=s;else if(a!==s.path)return null}return{consumed:e.slice(0,i.length),posParams:r}}function Vx(e,t){var n,i=Object.keys(e),r=Object.keys(t);if(!i||!r||i.length!=r.length)return!1;for(var o=0;o<i.length;o++)if(!jx(e[n=i[o]],t[n]))return!1;return!0}function jx(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;var n=d(e).sort(),i=d(t).sort();return n.every((function(e,t){return i[t]===e}))}return e===t}function Fx(e){return Array.prototype.concat.apply([],e)}function Bx(e){return e.length>0?e[e.length-1]:null}function Ux(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function zx(e){return ys(e)?e:gs(e)?ae(Promise.resolve(e)):Bm(e)}function Wx(e,t,n){return n?function(e,t){return Vx(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!Zx(t.segments,n.segments))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(var i in n.children){if(!t.children[i])return!1;if(!e(t.children[i],n.children[i]))return!1}return!0}(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every((function(n){return jx(e[n],t[n])}))}(e.queryParams,t.queryParams)&&function e(t,n){return function t(n,i,r){if(n.segments.length>r.length)return!!Zx(n.segments.slice(0,r.length),r)&&!i.hasChildren();if(n.segments.length===r.length){if(!Zx(n.segments,r))return!1;for(var o in i.children){if(!n.children[o])return!1;if(!e(n.children[o],i.children[o]))return!1}return!0}var a=r.slice(0,n.segments.length),s=r.slice(n.segments.length);return!!Zx(n.segments,a)&&!!n.children.primary&&t(n.children.primary,i,s)}(t,n,n.segments)}(e.root,t.root)}var Hx=function(){function e(t,n,i){w(this,e),this.root=t,this.queryParams=n,this.fragment=i}return C(e,[{key:"toString",value:function(){return Jx.serialize(this)}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Dx(this.queryParams)),this._queryParamMap}}]),e}(),Gx=function(){function e(t,n){var i=this;w(this,e),this.segments=t,this.children=n,this.parent=null,Ux(n,(function(e,t){return e.parent=i}))}return C(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"toString",value:function(){return Xx(this)}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}}]),e}(),qx=function(){function e(t,n){w(this,e),this.path=t,this.parameters=n}return C(e,[{key:"toString",value:function(){return rT(this)}},{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=Dx(this.parameters)),this._parameterMap}}]),e}();function Zx(e,t){return e.length===t.length&&e.every((function(e,n){return e.path===t[n].path}))}function Qx(e,t){var n=[];return Ux(e.children,(function(e,i){i===Ax&&(n=n.concat(t(e,i)))})),Ux(e.children,(function(e,i){i!==Ax&&(n=n.concat(t(e,i)))})),n}var Yx=function e(){w(this,e)},Kx=function(){function e(){w(this,e)}return C(e,[{key:"parse",value:function(e){var t=new cT(e);return new Hx(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){var t,n,i="/".concat(function e(t,n){if(!t.hasChildren())return Xx(t);if(n){var i=t.children.primary?e(t.children.primary,!1):"",r=[];return Ux(t.children,(function(t,n){n!==Ax&&r.push("".concat(n,":").concat(e(t,!1)))})),r.length>0?"".concat(i,"(").concat(r.join("//"),")"):i}var o=Qx(t,(function(n,i){return i===Ax?[e(t.children.primary,!1)]:["".concat(i,":").concat(e(n,!1))]}));return 1===Object.keys(t.children).length&&null!=t.children.primary?"".concat(Xx(t),"/").concat(o[0]):"".concat(Xx(t),"/(").concat(o.join("//"),")")}(e.root,!0)),r=(t=e.queryParams,(n=Object.keys(t).map((function(e){var n=t[e];return Array.isArray(n)?n.map((function(t){return"".concat(eT(e),"=").concat(eT(t))})).join("&"):"".concat(eT(e),"=").concat(eT(n))}))).length?"?".concat(n.join("&")):""),o="string"==typeof e.fragment?"#".concat(encodeURI(e.fragment)):"";return"".concat(i).concat(r).concat(o)}}]),e}(),Jx=new Kx;function Xx(e){return e.segments.map((function(e){return rT(e)})).join("/")}function $x(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function eT(e){return $x(e).replace(/%3B/gi,";")}function tT(e){return $x(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function nT(e){return decodeURIComponent(e)}function iT(e){return nT(e.replace(/\+/g,"%20"))}function rT(e){return"".concat(tT(e.path)).concat((t=e.parameters,Object.keys(t).map((function(e){return";".concat(tT(e),"=").concat(tT(t[e]))})).join("")));var t}var oT=/^[^\/()?;=#]+/;function aT(e){var t=e.match(oT);return t?t[0]:""}var sT=/^[^=?&#]+/,uT=/^[^?&#]+/,cT=function(){function e(t){w(this,e),this.url=t,this.remaining=t}return C(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Gx([],{}):new Gx([],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 Gx(e,t)),n}},{key:"parseSegment",value:function(){var e=aT(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new qx(nT(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=aT(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=aT(this.remaining);i&&this.capture(n=i)}e[nT(t)]=nT(n)}}},{key:"parseQueryParam",value:function(e){var t,n=(t=this.remaining.match(sT))?t[0]:"";if(n){this.capture(n);var i="";if(this.consumeOptional("=")){var r=function(e){var t=e.match(uT);return t?t[0]:""}(this.remaining);r&&this.capture(i=r)}var o=iT(n),a=iT(i);if(e.hasOwnProperty(o)){var s=e[o];Array.isArray(s)||(e[o]=s=[s]),s.push(a)}else e[o]=a}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=aT(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=Ax);var o=this.parseChildren();t[r]=1===Object.keys(o).length?o.primary:new Gx([],o),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}(),lT=function(){function e(t){w(this,e),this._root=t}return C(e,[{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=hT(e,this._root);return t?t.children.map((function(e){return e.value})):[]}},{key:"firstChild",value:function(e){var t=hT(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=dT(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 dT(e,this._root).map((function(e){return e.value}))}},{key:"root",get:function(){return this._root.value}}]),e}();function hT(e,t){if(e===t.value)return t;var n,i=v(t.children);try{for(i.s();!(n=i.n()).done;){var r=hT(e,n.value);if(r)return r}}catch(o){i.e(o)}finally{i.f()}return null}function dT(e,t){if(e===t.value)return[t];var n,i=v(t.children);try{for(i.s();!(n=i.n()).done;){var r=dT(e,n.value);if(r.length)return r.unshift(t),r}}catch(o){i.e(o)}finally{i.f()}return[]}var fT=function(){function e(t,n){w(this,e),this.value=t,this.children=n}return C(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function pT(e){var t={};return e&&e.children.forEach((function(e){return t[e.value.outlet]=e})),t}var vT=function(e){g(n,e);var t=k(n);function n(e,i){var r;return w(this,n),(r=t.call(this,e)).snapshot=i,wT(o(r),e),r}return C(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(lT);function mT(e,t){var n=function(e,t){var n=new _T([],{},{},"",{},Ax,t,null,e.root,-1,{});return new kT("",new fT(n,[]))}(e,t),i=new JC([new qx("",{})]),r=new JC({}),o=new JC({}),a=new JC({}),s=new JC(""),u=new gT(i,r,a,s,o,Ax,t,n.root);return u.snapshot=n.root,new vT(new fT(u,[]),n)}var gT=function(){function e(t,n,i,r,o,a,s,u){w(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this._futureSnapshot=u}return C(e,[{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}},{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(K((function(e){return Dx(e)})))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(K((function(e){return Dx(e)})))),this._queryParamMap}}]),e}();function yT(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],o=n[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return bT(n.slice(i))}function bT(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:{}})}var _T=function(){function e(t,n,i,r,o,a,s,u,c,l,h){w(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=u,this._urlSegment=c,this._lastPathIndex=l,this._resolve=h}return C(e,[{key:"toString",value:function(){var e=this.url.map((function(e){return e.toString()})).join("/"),t=this.routeConfig?this.routeConfig.path:"";return"Route(url:'".concat(e,"', path:'").concat(t,"')")}},{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=Dx(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Dx(this.queryParams)),this._queryParamMap}}]),e}(),kT=function(e){g(n,e);var t=k(n);function n(e,i){var r;return w(this,n),(r=t.call(this,i)).url=e,wT(o(r),i),r}return C(n,[{key:"toString",value:function(){return ST(this._root)}}]),n}(lT);function wT(e,t){t.value._routerState=e,t.children.forEach((function(t){return wT(e,t)}))}function ST(e){var t=e.children.length>0?" { ".concat(e.children.map(ST).join(", ")," } "):"";return"".concat(e.value).concat(t)}function CT(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Vx(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),Vx(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(!Vx(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),Vx(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function ET(e,t){var n,i;return Vx(e.params,t.params)&&Zx(n=e.url,i=t.url)&&n.every((function(e,t){return Vx(e.parameters,i[t].parameters)}))&&!(!e.parent!=!t.parent)&&(!e.parent||ET(e.parent,t.parent))}function OT(e,t,n,i,r){if(0===n.length)return TT(t.root,t.root,t,i,r);var o=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new MT(!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 Ux(i.outlets,(function(e,t){o[t]="string"==typeof e?e.split("/"):e})),[].concat(d(e),[{outlets:o}])}if(i.segmentPath)return[].concat(d(e),[i.segmentPath])}return"string"!=typeof i?[].concat(d(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(d(e),[i])}),[]);return new MT(n,t,i)}(n);if(o.toRoot())return TT(t.root,new Gx([],{}),t,i,r);var a=function(e,t,n){if(e.isAbsolute)return new PT(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){var i=n.snapshot._urlSegment;return new PT(i,i===t.root,0)}var r=xT(e.commands[0])?0:1;return function(e,t,n){for(var i=e,r=t,o=n;o>r;){if(o-=r,!(i=i.parent))throw new Error("Invalid number of '../'");r=i.segments.length}return new PT(i,!1,r-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(o,t,e),s=a.processChildren?RT(a.segmentGroup,a.index,o.commands):AT(a.segmentGroup,a.index,o.commands);return TT(a.segmentGroup,s,t,i,r)}function xT(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function TT(e,t,n,i,r){var o={};return i&&Ux(i,(function(e,t){o[t]=Array.isArray(e)?e.map((function(e){return"".concat(e)})):"".concat(e)})),new Hx(n.root===e?t:function e(t,n,i){var r={};return Ux(t.children,(function(t,o){r[o]=t===n?i:e(t,n,i)})),new Gx(t.segments,r)}(n.root,e,t),o,r)}var MT=function(){function e(t,n,i){if(w(this,e),this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=i,t&&i.length>0&&xT(i[0]))throw new Error("Root segment cannot have matrix parameters");var r=i.find((function(e){return"object"==typeof e&&null!=e&&e.outlets}));if(r&&r!==Bx(i))throw new Error("{outlets:{}} has to be the last command")}return C(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),PT=function e(t,n,i){w(this,e),this.segmentGroup=t,this.processChildren=n,this.index=i};function IT(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets.primary:"".concat(e)}function AT(e,t,n){if(e||(e=new Gx([],{})),0===e.segments.length&&e.hasChildren())return RT(e,t,n);var i=function(e,t,n){for(var i=0,r=t,o={match:!1,pathIndex:0,commandIndex:0};r<e.segments.length;){if(i>=n.length)return o;var a=e.segments[r],s=IT(n[i]),u=i<n.length-1?n[i+1]:null;if(r>0&&void 0===s)break;if(s&&u&&"object"==typeof u&&void 0===u.outlets){if(!VT(s,u,a))return o;i+=2}else{if(!VT(s,{},a))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,t,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex<e.segments.length){var o=new Gx(e.segments.slice(0,i.pathIndex),{});return o.children.primary=new Gx(e.segments.slice(i.pathIndex),e.children),RT(o,0,r)}return i.match&&0===r.length?new Gx(e.segments,{}):i.match&&!e.hasChildren()?DT(e,t,n):i.match?RT(e,0,r):DT(e,t,n)}function RT(e,t,n){if(0===n.length)return new Gx(e.segments,{});var i=function(e){return"object"==typeof e[0]&&null!==e[0]&&e[0].outlets?e[0].outlets:f({},Ax,e)}(n),r={};return Ux(i,(function(n,i){null!==n&&(r[i]=AT(e.children[i],t,n))})),Ux(e.children,(function(e,t){void 0===i[t]&&(r[t]=e)})),new Gx(e.segments,r)}function DT(e,t,n){for(var i=e.segments.slice(0,t),r=0;r<n.length;){if("object"==typeof n[r]&&null!==n[r]&&void 0!==n[r].outlets){var o=NT(n[r].outlets);return new Gx(i,o)}if(0===r&&xT(n[0]))i.push(new qx(e.segments[t].path,n[0])),r++;else{var a=IT(n[r]),s=r<n.length-1?n[r+1]:null;a&&s&&xT(s)?(i.push(new qx(a,LT(s))),r+=2):(i.push(new qx(a,{})),r++)}}return new Gx(i,{})}function NT(e){var t={};return Ux(e,(function(e,n){null!==e&&(t[n]=DT(new Gx([],{}),0,e))})),t}function LT(e){var t={};return Ux(e,(function(e,n){return t[n]="".concat(e)})),t}function VT(e,t,n){return e==n.path&&Vx(t,n.parameters)}var jT=function(){function e(t,n,i,r){w(this,e),this.routeReuseStrategy=t,this.futureState=n,this.currState=i,this.forwardEvent=r}return C(e,[{key:"activate",value:function(e){var t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),CT(this.futureState.root),this.activateChildRoutes(t,n,e)}},{key:"deactivateChildRoutes",value:function(e,t,n){var i=this,r=pT(t);e.children.forEach((function(e){var t=e.value.outlet;i.deactivateRoutes(e,r[t],n),delete r[t]})),Ux(r,(function(e,t){i.deactivateRouteAndItsChildren(e,n)}))}},{key:"deactivateRoutes",value:function(e,t,n){var i=e.value,r=t?t.value:null;if(i===r)if(i.component){var o=n.getContext(i.outlet);o&&this.deactivateChildRoutes(e,t,o.children)}else this.deactivateChildRoutes(e,t,n);else r&&this.deactivateRouteAndItsChildren(t,n)}},{key:"deactivateRouteAndItsChildren",value:function(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}},{key:"detachAndStoreRouteSubtree",value:function(e,t){var n=t.getContext(e.value.outlet);if(n&&n.outlet){var i=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:i,route:e,contexts:r})}}},{key:"deactivateRouteAndOutlet",value:function(e,t){var n=this,i=t.getContext(e.value.outlet);if(i){var r=pT(e),o=e.value.component?i.children:t;Ux(r,(function(e,t){return n.deactivateRouteAndItsChildren(e,o)})),i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated())}}},{key:"activateChildRoutes",value:function(e,t,n){var i=this,r=pT(t);e.children.forEach((function(e){i.activateRoutes(e,r[e.value.outlet],n),i.forwardEvent(new Px(e.value.snapshot))})),e.children.length&&this.forwardEvent(new Tx(e.value.snapshot))}},{key:"activateRoutes",value:function(e,t,n){var i=e.value,r=t?t.value:null;if(CT(i),i===r)if(i.component){var o=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,t,o.children)}else this.activateChildRoutes(e,t,n);else if(i.component){var a=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){var s=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),FT(s.route)}else{var u=function(e){for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(i.snapshot),c=u?u.module.componentFactoryResolver:null;a.attachRef=null,a.route=i,a.resolver=c,a.outlet?a.outlet.activateWith(i,c):sr()&&console&&console.warn&&console.warn("A router outlet has not been instantiated during routes activation. URL Segment: '".concat(i.snapshot._urlSegment,"'")),this.activateChildRoutes(e,null,a.children)}}else this.activateChildRoutes(e,null,n)}}]),e}();function FT(e){CT(e.value),e.children.forEach(FT)}var BT=function e(t,n){w(this,e),this.routes=t,this.module=n};function UT(e){return"function"==typeof e}function zT(e){return e instanceof Hx}var WT=Symbol("INITIAL_VALUE");function HT(){return bb((function(e){return cC.apply(void 0,d(e.map((function(e){return e.pipe(sg(1),ty(WT))})))).pipe(function(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new dx(e,t,n))}}((function(e,t){var n=!1;return t.reduce((function(e,i,r){if(e!==WT)return e;if(i===WT&&(n=!0),!n){if(!1===i)return i;if(r===t.length-1||zT(i))return i}return e}),e)}),WT),tg((function(e){return e!==WT})),K((function(e){return zT(e)?e:!0===e})),sg(1))}))}var GT=function e(t){w(this,e),this.segmentGroup=t||null},qT=function e(t){w(this,e),this.urlTree=t};function ZT(e){return new z((function(t){return t.error(new GT(e))}))}function QT(e){return new z((function(t){return t.error(new qT(e))}))}function YT(e){return new z((function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))}))}var KT=function(){function e(t,n,i,r,o){w(this,e),this.configLoader=n,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(Et)}return C(e,[{key:"apply",value:function(){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,Ax).pipe(K((function(t){return e.createUrlTree(t,e.urlTree.queryParams,e.urlTree.fragment)}))).pipe(Kk((function(t){if(t instanceof qT)return e.allowRedirects=!1,e.match(t.urlTree);if(t instanceof GT)throw e.noMatchError(t);throw t})))}},{key:"match",value:function(e){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,Ax).pipe(K((function(n){return t.createUrlTree(n,e.queryParams,e.fragment)}))).pipe(Kk((function(e){if(e instanceof GT)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 Gx([],f({},Ax,e)):e;return new Hx(i,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(K((function(e){return new Gx([],e)}))):this.expandSegment(e,n,t,n.segments,i,!0)}},{key:"expandChildren",value:function(e,t,n){var i=this;return function(n,r){if(0===Object.keys(n).length)return Bm({});var o=[],a=[],s={};return Ux(n,(function(n,r){var u,c,l=(u=r,c=n,i.expandSegmentGroup(e,t,c,u)).pipe(K((function(e){return s[r]=e})));r===Ax?o.push(l):a.push(l)})),Bm.apply(null,o.concat(a)).pipe($g(),function(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?tg((function(t,n){return e(t,n,i)})):B,nx(1),n?cx(t):ox((function(){return new tx})))}}(),K((function(){return s})))}(n.children)}},{key:"expandSegment",value:function(e,t,n,i,r,o){var a=this;return Bm.apply(void 0,d(n)).pipe(nw((function(s){return a.expandSegmentAgainstRoute(e,t,n,s,i,r,o).pipe(Kk((function(e){if(e instanceof GT)return Bm(null);throw e})))})),px((function(e){return!!e})),Kk((function(e,n){if(e instanceof tx||"EmptyError"===e.name){if(a.noLeftoversInUrl(t,i,r))return Bm(new Gx([],{}));throw new GT(t)}throw e})))}},{key:"noLeftoversInUrl",value:function(e,t,n){return 0===t.length&&!e.children[n]}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,i,r,o,a){return eM(i)!==o?ZT(t):void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,r):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o):ZT(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,o){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,i,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,i){var r=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?QT(o):this.lineralizeSegments(n,o).pipe(le((function(n){var o=new Gx(n,{});return r.expandSegment(e,o,t,n,i,!1)})))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,o){var a=this,s=JT(t,i,r),u=s.consumedSegments,c=s.lastChild,l=s.positionalParamSegments;if(!s.matched)return ZT(t);var h=this.applyRedirectCommands(u,i.redirectTo,l);return i.redirectTo.startsWith("/")?QT(h):this.lineralizeSegments(i,h).pipe(le((function(i){return a.expandSegment(e,t,n,i.concat(r.slice(c)),o,!1)})))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,i){var r=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(K((function(e){return n._loadedConfig=e,new Gx(i,{})}))):Bm(new Gx(i,{}));var o=JT(t,n,i),a=o.consumedSegments,s=o.lastChild;if(!o.matched)return ZT(t);var u=i.slice(s);return this.getChildConfig(e,n,i).pipe(le((function(e){var n=e.module,i=e.routes,o=function(e,t,n,i){return n.length>0&&function(e,t,n){return n.some((function(n){return $T(e,t,n)&&eM(n)!==Ax}))}(e,n,i)?{segmentGroup:XT(new Gx(t,function(e,t){var n={};n.primary=t;var i,r=v(e);try{for(r.s();!(i=r.n()).done;){var o=i.value;""===o.path&&eM(o)!==Ax&&(n[eM(o)]=new Gx([],{}))}}catch(a){r.e(a)}finally{r.f()}return n}(i,new Gx(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return n.some((function(n){return $T(e,t,n)}))}(e,n,i)?{segmentGroup:XT(new Gx(e.segments,function(e,t,n,i){var r,o={},a=v(n);try{for(a.s();!(r=a.n()).done;){var s=r.value;$T(e,t,s)&&!i[eM(s)]&&(o[eM(s)]=new Gx([],{}))}}catch(u){a.e(u)}finally{a.f()}return Object.assign(Object.assign({},i),o)}(e,n,i,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,a,u,i),s=o.segmentGroup,c=o.slicedSegments;return 0===c.length&&s.hasChildren()?r.expandChildren(n,i,s).pipe(K((function(e){return new Gx(a,e)}))):0===i.length&&0===c.length?Bm(new Gx(a,{})):r.expandSegment(n,s,i,c,Ax,!0).pipe(K((function(e){return new Gx(a.concat(e.segments),e.children)})))})))}},{key:"getChildConfig",value:function(e,t,n){var i=this;return t.children?Bm(new BT(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Bm(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(le((function(n){return n?i.configLoader.load(e.injector,t).pipe(K((function(e){return t._loadedConfig=e,e}))):function(e){return new z((function(t){return t.error(Nx("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))}))}(t)}))):Bm(new BT([],e))}},{key:"runCanLoadGuards",value:function(e,t,n){var i=this,r=t.canLoad;return r&&0!==r.length?Bm(r.map((function(i){var r,o=e.get(i);if(function(e){return e&&UT(e.canLoad)}(o))r=o.canLoad(t,n);else{if(!UT(o))throw new Error("Invalid CanLoad guard");r=o(t,n)}return zx(r)}))).pipe(HT(),Hm((function(e){if(zT(e)){var t=Nx('Redirecting to "'.concat(i.urlSerializer.serialize(e),'"'));throw t.url=e,t}})),K((function(e){return!0===e}))):Bm(!0)}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],i=t.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Bm(n);if(i.numberOfChildren>1||!i.children.primary)return YT(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 Hx(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return Ux(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,o=this.createSegments(e,t.segments,n,i),a={};return Ux(t.children,(function(t,o){a[o]=r.createSegmentGroup(e,t,n,i)})),new Gx(o,a)}},{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=v(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.path===e.path)return t.splice(i),o;i++}}catch(a){r.e(a)}finally{r.f()}return e}}]),e}();function JT(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var i=(t.matcher||Lx)(n,e,t);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function XT(e){if(1===e.numberOfChildren&&e.children.primary){var t=e.children.primary;return new Gx(e.segments.concat(t.segments),t.children)}return e}function $T(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function eM(e){return e.outlet||Ax}var tM=function e(t){w(this,e),this.path=t,this.route=this.path[this.path.length-1]},nM=function e(t,n){w(this,e),this.component=t,this.route=n};function iM(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 rM(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=pT(t);return e.children.forEach((function(e){oM(e,o[e.value.outlet],n,i.concat([e.value]),r),delete o[e.value.outlet]})),Ux(o,(function(e,t){return sM(e,n.getContext(t),r)})),r}function oM(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=e.value,a=t?t.value:null,s=n?n.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var u=aM(a,o,o.routeConfig.runGuardsAndResolvers);if(u?r.canActivateChecks.push(new tM(i)):(o.data=a.data,o._resolvedData=a._resolvedData),rM(e,t,o.component?s?s.children:null:n,i,r),u){var c=s&&s.outlet&&s.outlet.component||null;r.canDeactivateChecks.push(new nM(c,a))}}else a&&sM(t,s,r),r.canActivateChecks.push(new tM(i)),rM(e,null,o.component?s?s.children:null:n,i,r);return r}function aM(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Zx(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Zx(e.url,t.url)||!Vx(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ET(e,t)||!Vx(e.queryParams,t.queryParams);case"paramsChange":default:return!ET(e,t)}}function sM(e,t,n){var i=pT(e),r=e.value;Ux(i,(function(e,i){sM(e,r.component?t?t.children.getContext(i):null:t,n)})),n.canDeactivateChecks.push(new nM(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}function uM(e,t){return null!==e&&t&&t(new Mx(e)),Bm(!0)}function cM(e,t){return null!==e&&t&&t(new xx(e)),Bm(!0)}function lM(e,t,n){var i=t.routeConfig?t.routeConfig.canActivate:null;return i&&0!==i.length?Bm(i.map((function(i){return O_((function(){var r,o=iM(i,t,n);if(function(e){return e&&UT(e.canActivate)}(o))r=zx(o.canActivate(t,e));else{if(!UT(o))throw new Error("Invalid CanActivate guard");r=zx(o(t,e))}return r.pipe(px())}))}))).pipe(HT()):Bm(!0)}function hM(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 O_((function(){return Bm(t.guards.map((function(r){var o,a=iM(r,t.node,n);if(function(e){return e&&UT(e.canActivateChild)}(a))o=zx(a.canActivateChild(i,e));else{if(!UT(a))throw new Error("Invalid CanActivateChild guard");o=zx(a(i,e))}return o.pipe(px())}))).pipe(HT())}))}));return Bm(r).pipe(HT())}var dM=function e(){w(this,e)},fM=function(){function e(t,n,i,r,o,a){w(this,e),this.rootComponentType=t,this.config=n,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return C(e,[{key:"recognize",value:function(){try{var e=mM(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,Ax),n=new _T([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Ax,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new fT(n,t),r=new kT(this.url,i);return this.inheritParamsAndData(r._root),Bm(r)}catch(o){return new z((function(e){return e.error(o)}))}}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,i=yT(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){var n,i=this,r=Qx(t,(function(t,n){return i.processSegmentGroup(e,t,n)}));return n={},r.forEach((function(e){var t=n[e.value.outlet];if(t){var i=t.url.map((function(e){return e.toString()})).join("/"),r=e.value.url.map((function(e){return e.toString()})).join("/");throw new Error("Two segments cannot have the same outlet name: '".concat(i,"' and '").concat(r,"'."))}n[e.value.outlet]=e.value})),r.sort((function(e,t){return e.value.outlet===Ax?-1:t.value.outlet===Ax?1:e.value.outlet.localeCompare(t.value.outlet)})),r}},{key:"processSegment",value:function(e,t,n,i){var r,o=v(e);try{for(o.s();!(r=o.n()).done;){var a=r.value;try{return this.processSegmentAgainstRoute(a,t,n,i)}catch(s){if(!(s instanceof dM))throw s}}}catch(u){o.e(u)}finally{o.f()}if(this.noLeftoversInUrl(t,n,i))return[];throw new dM}},{key:"noLeftoversInUrl",value:function(e,t,n){return 0===t.length&&!e.children[n]}},{key:"processSegmentAgainstRoute",value:function(e,t,n,i){if(e.redirectTo)throw new dM;if((e.outlet||Ax)!==i)throw new dM;var r,o=[],a=[];if("**"===e.path){var s=n.length>0?Bx(n).parameters:{};r=new _T(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,bM(e),i,e.component,e,pM(t),vM(t)+n.length,_M(e))}else{var u=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new dM;return{consumedSegments:[],lastChild:0,parameters:{}}}var i=(t.matcher||Lx)(n,e,t);if(!i)throw new dM;var r={};Ux(i.posParams,(function(e,t){r[t]=e.path}));var o=i.consumed.length>0?Object.assign(Object.assign({},r),i.consumed[i.consumed.length-1].parameters):r;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:o}}(t,e,n);o=u.consumedSegments,a=n.slice(u.lastChild),r=new _T(o,u.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,bM(e),i,e.component,e,pM(t),vM(t)+o.length,_M(e))}var c=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),l=mM(t,o,a,c,this.relativeLinkResolution),h=l.segmentGroup,d=l.slicedSegments;if(0===d.length&&h.hasChildren()){var f=this.processChildren(c,h);return[new fT(r,f)]}if(0===c.length&&0===d.length)return[new fT(r,[])];var p=this.processSegment(c,h,d,Ax);return[new fT(r,p)]}}]),e}();function pM(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function vM(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 mM(e,t,n,i,r){if(n.length>0&&function(e,t,n){return n.some((function(n){return gM(e,t,n)&&yM(n)!==Ax}))}(e,n,i)){var o=new Gx(t,function(e,t,n,i){var r={};r.primary=i,i._sourceSegment=e,i._segmentIndexShift=t.length;var o,a=v(n);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(""===s.path&&yM(s)!==Ax){var u=new Gx([],{});u._sourceSegment=e,u._segmentIndexShift=t.length,r[yM(s)]=u}}}catch(c){a.e(c)}finally{a.f()}return r}(e,t,i,new Gx(n,e.children)));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some((function(n){return gM(e,t,n)}))}(e,n,i)){var a=new Gx(e.segments,function(e,t,n,i,r,o){var a,s={},u=v(i);try{for(u.s();!(a=u.n()).done;){var c=a.value;if(gM(e,n,c)&&!r[yM(c)]){var l=new Gx([],{});l._sourceSegment=e,l._segmentIndexShift="legacy"===o?e.segments.length:t.length,s[yM(c)]=l}}}catch(h){u.e(h)}finally{u.f()}return Object.assign(Object.assign({},r),s)}(e,t,n,i,e.children,r));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:n}}var s=new Gx(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function gM(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function yM(e){return e.outlet||Ax}function bM(e){return e.data||{}}function _M(e){return e.resolve||{}}function kM(e){return function(t){return t.pipe(bb((function(t){var n=e(t);return n?ae(n).pipe(K((function(){return t}))):ae([t])})))}}var wM=function(e){g(n,e);var t=k(n);function n(){return w(this,n),t.apply(this,arguments)}return n}(function(){function e(){w(this,e)}return C(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}()),SM=function(){var e=function e(){w(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ft({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&fs(0,"router-outlet")},directives:function(){return[jM]},encapsulation:2}),e}();function CM(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=0;n<e.length;n++){var i=e[n],r=OM(t,i);EM(i,r)}}function EM(e,t){if(!e)throw new Error("\n Invalid configuration of route '".concat(t,"': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n "));if(Array.isArray(e))throw new Error("Invalid configuration of route '".concat(t,"': Array cannot be specified"));if(!e.component&&!e.children&&!e.loadChildren&&e.outlet&&e.outlet!==Ax)throw new Error("Invalid configuration of route '".concat(t,"': a componentless route without children or loadChildren cannot have a named outlet set"));if(e.redirectTo&&e.children)throw new Error("Invalid configuration of route '".concat(t,"': redirectTo and children cannot be used together"));if(e.redirectTo&&e.loadChildren)throw new Error("Invalid configuration of route '".concat(t,"': redirectTo and loadChildren cannot be used together"));if(e.children&&e.loadChildren)throw new Error("Invalid configuration of route '".concat(t,"': children and loadChildren cannot be used together"));if(e.redirectTo&&e.component)throw new Error("Invalid configuration of route '".concat(t,"': redirectTo and component cannot be used together"));if(e.path&&e.matcher)throw new Error("Invalid configuration of route '".concat(t,"': path and matcher cannot be used together"));if(void 0===e.redirectTo&&!e.component&&!e.children&&!e.loadChildren)throw new Error("Invalid configuration of route '".concat(t,"'. One of the following must be provided: component, redirectTo, children or loadChildren"));if(void 0===e.path&&void 0===e.matcher)throw new Error("Invalid configuration of route '".concat(t,"': routes must have either a path or a matcher specified"));if("string"==typeof e.path&&"/"===e.path.charAt(0))throw new Error("Invalid configuration of route '".concat(t,"': path cannot start with a slash"));if(""===e.path&&void 0!==e.redirectTo&&void 0===e.pathMatch)throw new Error("Invalid configuration of route '{path: \"".concat(t,'", redirectTo: "').concat(e.redirectTo,"\"}': please provide 'pathMatch'. ").concat("The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'."));if(void 0!==e.pathMatch&&"full"!==e.pathMatch&&"prefix"!==e.pathMatch)throw new Error("Invalid configuration of route '".concat(t,"': pathMatch can only be set to 'prefix' or 'full'"));e.children&&CM(e.children,t)}function OM(e,t){return t?e||t.path?e&&!t.path?"".concat(e,"/"):!e&&t.path?t.path:"".concat(e,"/").concat(t.path):"":e}function xM(e){var t=e.children&&e.children.map(xM),n=t?Object.assign(Object.assign({},e),{children:t}):Object.assign({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&n.outlet!==Ax&&(n.component=SM),n}var TM=new ct("ROUTES"),MM=function(){function e(t,n,i,r){w(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=i,this.onLoadEndListener=r}return C(e,[{key:"load",value:function(e,t){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(K((function(i){n.onLoadEndListener&&n.onLoadEndListener(t);var r=i.create(e);return new BT(Fx(r.injector.get(TM)).map(xM),r)})))}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?ae(this.loader.load(e)):zx(e()).pipe(le((function(e){return e instanceof Ot?Bm(e):ae(t.compiler.compileModuleAsync(e))})))}}]),e}(),PM=function e(){w(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new IM,this.attachRef=null},IM=function(){function e(){w(this,e),this.contexts=new Map}return C(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 PM,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),e}(),AM=function(){function e(){w(this,e)}return C(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 RM(e){throw e}function DM(e,t,n){return t.parse("/")}function NM(e,t){return Bm(null)}var LM=function(){var e=function(){function e(t,n,i,r,o,a,s,u){var c=this;w(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=i,this.location=r,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new Z,this.errorHandler=RM,this.malformedUriErrorHandler=DM,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:NM,afterPreactivation:NM},this.urlHandlingStrategy=new AM,this.routeReuseStrategy=new wM,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=o.get(Et),this.console=o.get(Gc);var l=o.get(rl);this.isNgZoneEnabled=l instanceof rl,this.resetConfig(u),this.currentUrlTree=new Hx(new Gx([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new MM(a,s,(function(e){return c.triggerEvent(new Ex(e))}),(function(e){return c.triggerEvent(new Ox(e))})),this.routerState=mT(this.currentUrlTree,this.rootComponentType),this.transitions=new JC({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 C(e,[{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe(tg((function(e){return 0!==e.id})),K((function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})})),bb((function(e){var i,r,o,a=!1,s=!1;return Bm(e).pipe(Hm((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}})),bb((function(e){var i,r,o,a,s=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||s)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return Bm(e).pipe(bb((function(e){var i=t.transitions.getValue();return n.next(new mx(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),i!==t.transitions.getValue()?og:[e]})),bb((function(e){return Promise.resolve(e)})),(i=t.ngModule.injector,r=t.configLoader,o=t.urlSerializer,a=t.config,function(e){return e.pipe(bb((function(e){return function(e,t,n,i,r){return new KT(e,t,n,i,r).apply()}(i,r,o,e.extractedUrl,a).pipe(K((function(t){return Object.assign(Object.assign({},e),{urlAfterRedirects:t})})))})))}),Hm((function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})})),function(e,n,i,r,o){return function(i){return i.pipe(le((function(i){return function(e,t,n,i){return new fM(e,t,n,i,arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy").recognize()}(e,n,i.urlAfterRedirects,(a=i.urlAfterRedirects,t.serializeUrl(a)),r,o).pipe(K((function(e){return Object.assign(Object.assign({},i),{targetSnapshot:e})})));var a})))}}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),Hm((function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)})),Hm((function(e){var i=new _x(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 u=e.extractedUrl,c=e.source,l=e.restoredState,h=e.extras,d=new mx(e.id,t.serializeUrl(u),c,l);n.next(d);var f=mT(u,t.rootComponentType).snapshot;return Bm(Object.assign(Object.assign({},e),{targetSnapshot:f,urlAfterRedirects:u,extras:Object.assign(Object.assign({},h),{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),og})),kM((function(e){var n=e.extras;return t.hooks.beforePreactivation(e.targetSnapshot,{navigationId:e.id,appliedUrlTree:e.extractedUrl,rawUrlTree:e.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})})),Hm((function(e){var n=new kx(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)})),K((function(e){return Object.assign(Object.assign({},e),{guards:(n=e.targetSnapshot,i=e.currentSnapshot,r=t.rootContexts,o=n._root,rM(o,i?i._root:null,r,[o.value]))});var n,i,r,o})),function(e,t){return function(n){return n.pipe(le((function(n){var i=n.targetSnapshot,r=n.currentSnapshot,o=n.guards,a=o.canActivateChecks,s=o.canDeactivateChecks;return 0===s.length&&0===a.length?Bm(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,i){return ae(e).pipe(le((function(e){return function(e,t,n,i,r){var o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?Bm(o.map((function(o){var a,s=iM(o,t,r);if(function(e){return e&&UT(e.canDeactivate)}(s))a=zx(s.canDeactivate(e,t,n,i));else{if(!UT(s))throw new Error("Invalid CanDeactivate guard");a=zx(s(e,t,n,i))}return a.pipe(px())}))).pipe(HT()):Bm(!0)}(e.component,e.route,n,t,i)})),px((function(e){return!0!==e}),!0))}(s,i,r,e).pipe(le((function(n){return n&&"boolean"==typeof n?function(e,t,n,i){return ae(t).pipe(nw((function(t){return ae([cM(t.route.parent,i),uM(t.route,i),hM(e,t.path,n),lM(e,t.route,n)]).pipe($g(),px((function(e){return!0!==e}),!0))})),px((function(e){return!0!==e}),!0))}(i,a,e,t):Bm(n)})),K((function(e){return Object.assign(Object.assign({},n),{guardsResult:e})})))})))}}(t.ngModule.injector,(function(e){return t.triggerEvent(e)})),Hm((function(e){if(zT(e.guardsResult)){var n=Nx('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}})),Hm((function(e){var n=new wx(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(n)})),tg((function(e){if(!e.guardsResult){t.resetUrlToCurrentUrlTree();var i=new yx(e.id,t.serializeUrl(e.extractedUrl),"");return n.next(i),e.resolve(!1),!1}return!0})),kM((function(e){if(e.guards.canActivateChecks.length)return Bm(e).pipe(Hm((function(e){var n=new Sx(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)})),bb((function(e){var i,r,o=!1;return Bm(e).pipe((i=t.paramsInheritanceStrategy,r=t.ngModule.injector,function(e){return e.pipe(le((function(e){var t=e.targetSnapshot,n=e.guards.canActivateChecks;if(!n.length)return Bm(e);var o=0;return ae(n).pipe(nw((function(e){return function(e,t,n,i){return function(e,t,n,i){var r=Object.keys(e);if(0===r.length)return Bm({});var o={};return ae(r).pipe(le((function(r){return function(e,t,n,i){var r=iM(e,t,i);return zx(r.resolve?r.resolve(t,n):r(t,n))}(e[r],t,n,i).pipe(Hm((function(e){o[r]=e})))})),nx(1),le((function(){return Object.keys(o).length===r.length?Bm(o):og})))}(e._resolve,e,t,i).pipe(K((function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),yT(e,n).resolve),null})))}(e.route,t,i,r)})),Hm((function(){return o++})),nx(1),le((function(t){return o===n.length?Bm(e):og})))})))}),Hm({next:function(){return o=!0},complete:function(){if(!o){var i=new yx(e.id,t.serializeUrl(e.extractedUrl),"At least one route resolver didn't emit any value.");n.next(i),e.resolve(!1)}}}))})),Hm((function(e){var n=new Cx(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)})))})),kM((function(e){var n=e.extras;return t.hooks.afterPreactivation(e.targetSnapshot,{navigationId:e.id,appliedUrlTree:e.extractedUrl,rawUrlTree:e.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})})),K((function(e){var n,i,r,o=(r=function e(t,n,i){if(i&&t.shouldReuseRoute(n.value,i.value.snapshot)){var r=i.value;r._futureSnapshot=n.value;var o=function(t,n,i){return n.children.map((function(n){var r,o=v(i.children);try{for(o.s();!(r=o.n()).done;){var a=r.value;if(t.shouldReuseRoute(a.value.snapshot,n.value))return e(t,n,a)}}catch(s){o.e(s)}finally{o.f()}return e(t,n)}))}(t,n,i);return new fT(r,o)}var a=t.retrieve(n.value);if(a){var s=a.route;return function e(t,n){if(t.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=t.value;for(var i=0;i<t.children.length;++i)e(t.children[i],n.children[i])}(n,s),s}var u,c=new gT(new JC((u=n.value).url),new JC(u.params),new JC(u.queryParams),new JC(u.fragment),new JC(u.data),u.outlet,u.component,u),l=n.children.map((function(n){return e(t,n)}));return new fT(c,l)}(t.routeReuseStrategy,(n=e.targetSnapshot)._root,(i=e.currentRouterState)?i._root:void 0),new vT(r,n));return Object.assign(Object.assign({},e),{targetRouterState:o})})),Hm((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,o=function(e){return t.triggerEvent(e)},K((function(e){return new jT(r,e.targetRouterState,e.currentRouterState,o).activate(i),e}))),Hm({next:function(){a=!0},complete:function(){a=!0}}),$k((function(){if(!a&&!s){t.resetUrlToCurrentUrlTree();var i=new yx(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})),Kk((function(i){if(s=!0,(u=i)&&u.ngNavigationCancelingError){var r=zT(i.url);r||(t.navigated=!0,t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));var o=new yx(e.id,t.serializeUrl(e.extractedUrl),i.message);n.next(o),r?setTimeout((function(){var n=t.urlHandlingStrategy.merge(i.url,t.rawUrlTree);return 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 a=new bx(e.id,t.serializeUrl(e.extractedUrl),i);n.next(a);try{e.resolve(t.errorHandler(i))}catch(c){e.reject(c)}}var u;return og})))})))}},{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,o={replaceUrl:!0};if(i){var a=Object.assign({},i);delete a.navigationId,0!==Object.keys(a).length&&(o.state=a)}e.scheduleNavigation(r,t,i,o)}),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:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){CM(e),this.config=e.map(xM),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 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.preserveQueryParams,a=t.queryParamsHandling,s=t.preserveFragment;sr()&&o&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var u=n||this.routerState.root,c=s?this.currentUrlTree.fragment:r,l=null;if(a)switch(a){case"merge":l=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null}else l=o?this.currentUrlTree.queryParams:i||null;return null!==l&&(l=this.removeEmptyProps(l)),OT(u,this.currentUrlTree,e,l,c)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};sr()&&this.isNgZoneEnabled&&!rl.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=zT(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 VM(e),this.navigateByUrl(this.createUrlTree(e,t),t)}},{key:"serializeUrl",value:function(e){return this.urlSerializer.serialize(e)}},{key:"parseUrl",value:function(e){var t;try{t=this.urlSerializer.parse(e)}catch(n){t=this.malformedUriErrorHandler(n,this.urlSerializer,e)}return t}},{key:"isActive",value:function(e,t){if(zT(e))return Wx(this.currentUrlTree,e,t);var n=this.parseUrl(e);return Wx(this.currentUrlTree,n,t)}},{key:"removeEmptyProps",value:function(e){return Object.keys(e).reduce((function(t,n){var i=e[n];return null!=i&&(t[n]=i),t}),{})}},{key:"processNavigations",value:function(){var e=this;this.navigations.subscribe((function(t){e.navigated=!0,e.lastSuccessfulId=t.id,e.events.next(new gx(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(e.currentUrlTree))),e.lastSuccessfulNavigation=e.currentNavigation,e.currentNavigation=null,t.resolve(!0)}),(function(t){e.console.warn("Unhandled Navigation Error: ")}))}},{key:"scheduleNavigation",value:function(e,t,n,i,r){var o,a,s,u=this.getTransition(),c="imperative"!==t&&"imperative"===(null==u?void 0:u.source),l=(this.lastSuccessfulId===u.id||this.currentNavigation?u.rawUrl:u.urlAfterRedirects).toString()===e.toString();if(c&&l)return Promise.resolve(!0);r?(o=r.resolve,a=r.reject,s=r.promise):s=new Promise((function(e,t){o=e,a=t}));var h=++this.navigationId;return this.setTransition({id:h,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:i,resolve:o,reject:a,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch((function(e){return Promise.reject(e)}))}},{key:"setBrowserUrl",value:function(e,t,n,i){var r=this.urlSerializer.serialize(e);i=i||{},this.location.isCurrentPathEqualTo(r)||t?this.location.replaceState(r,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(r,"",Object.assign(Object.assign({},i),{navigationId:n}))}},{key:"resetStateAndUrl",value:function(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(bt(Ia),bt(Yx),bt(IM),bt($l),bt(Za),bt(xl),bt(tl),bt(void 0))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}();function VM(e){for(var t=0;t<e.length;t++){var n=e[t];if(null==n)throw new Error("The requested path contains ".concat(n," segment at index ").concat(t))}}var jM=function(){var e=function(){function e(t,n,i,r,o){w(this,e),this.parentContexts=t,this.location=n,this.resolver=i,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new vc,this.deactivateEvents=new vc,this.name=r||Ax,t.onChildOutletCreated(this.name,this)}return C(e,[{key:"ngOnDestroy",value:function(){this.parentContexts.onChildOutletDestroyed(this.name)}},{key:"ngOnInit",value:function(){if(!this.activated){var e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}},{key:"detach",value:function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var e=this.activated;return this.activated=null,this._activatedRoute=null,e}},{key:"attach",value:function(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}},{key:"deactivate",value:function(){if(this.activated){var e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}},{key:"activateWith",value:function(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;var n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,r=new FM(e,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(IM),ss(qu),ss(bu),us("name"),ss(Ma))},e.\u0275dir=Gt({type:e,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),e}(),FM=function(){function e(t,n,i){w(this,e),this.route=t,this.childContexts=n,this.parent=i}return C(e,[{key:"get",value:function(e,t){return e===gT?this.route:e===IM?this.childContexts:this.parent.get(e,t)}}]),e}(),BM=function e(){w(this,e)},UM=function(){function e(){w(this,e)}return C(e,[{key:"preload",value:function(e,t){return t().pipe(Kk((function(){return Bm(null)})))}}]),e}(),zM=function(){function e(){w(this,e)}return C(e,[{key:"preload",value:function(e,t){return Bm(null)}}]),e}(),WM=function(){var e=function(){function e(t,n,i,r,o){w(this,e),this.router=t,this.injector=r,this.preloadingStrategy=o,this.loader=new MM(n,i,(function(e){return t.triggerEvent(new Ex(e))}),(function(e){return t.triggerEvent(new Ox(e))}))}return C(e,[{key:"setUpPreloading",value:function(){var e=this;this.subscription=this.router.events.pipe(tg((function(e){return e instanceof gx})),nw((function(){return e.preload()}))).subscribe((function(){}))}},{key:"preload",value:function(){var e=this.injector.get(Et);return this.processRoutes(e,this.router.config)}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe()}},{key:"processRoutes",value:function(e,t){var n,i=[],r=v(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.loadChildren&&!o.canLoad&&o._loadedConfig){var a=o._loadedConfig;i.push(this.processRoutes(a.module,a.routes))}else o.loadChildren&&!o.canLoad?i.push(this.preloadConfig(e,o)):o.children&&i.push(this.processRoutes(e,o.children))}}catch(s){r.e(s)}finally{r.f()}return ae(i).pipe(fe(),K((function(e){})))}},{key:"preloadConfig",value:function(e,t){var n=this;return this.preloadingStrategy.preload(t,(function(){return n.loader.load(e.injector,t).pipe(le((function(e){return t._loadedConfig=e,n.processRoutes(e.module,e.routes)})))}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(bt(LM),bt(xl),bt(tl),bt(Za),bt(BM))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),HM=function(){var e=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};w(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 C(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 mx?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof gx&&(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 Ix&&(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 Ix(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}();return e.\u0275fac=function(t){return new(t||e)(bt(LM),bt(Eh),bt(void 0))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}(),GM=new ct("ROUTER_CONFIGURATION"),qM=new ct("ROUTER_FORROOT_GUARD"),ZM=[$l,{provide:Yx,useClass:Kx},{provide:LM,useFactory:function(e,t,n,i,r,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},u=arguments.length>8?arguments[8]:void 0,c=arguments.length>9?arguments[9]:void 0,l=new LM(null,e,t,n,i,r,o,Fx(a));if(u&&(l.urlHandlingStrategy=u),c&&(l.routeReuseStrategy=c),s.errorHandler&&(l.errorHandler=s.errorHandler),s.malformedUriErrorHandler&&(l.malformedUriErrorHandler=s.malformedUriErrorHandler),s.enableTracing){var h=Ll();l.events.subscribe((function(e){h.logGroup("Router Event: ".concat(e.constructor.name)),h.log(e.toString()),h.log(e),h.logGroupEnd()}))}return s.onSameUrlNavigation&&(l.onSameUrlNavigation=s.onSameUrlNavigation),s.paramsInheritanceStrategy&&(l.paramsInheritanceStrategy=s.paramsInheritanceStrategy),s.urlUpdateStrategy&&(l.urlUpdateStrategy=s.urlUpdateStrategy),s.relativeLinkResolution&&(l.relativeLinkResolution=s.relativeLinkResolution),l},deps:[Yx,IM,$l,Za,xl,tl,TM,GM,[function e(){w(this,e)},new Te],[function e(){w(this,e)},new Te]]},IM,{provide:gT,useFactory:function(e){return e.routerState.root},deps:[LM]},{provide:xl,useClass:Pl},WM,zM,UM,{provide:GM,useValue:{enableTracing:!1}}];function QM(){return new yl("Router",LM)}var YM=function(){var e=function(){function e(t,n){w(this,e)}return C(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[ZM,$M(t),{provide:qM,useFactory:XM,deps:[[LM,new Te,new Pe]]},{provide:GM,useValue:n||{}},{provide:Ql,useFactory:JM,deps:[Fl,[new xe(Kl),new Te],GM]},{provide:HM,useFactory:KM,deps:[LM,Eh,GM]},{provide:BM,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:zM},{provide:yl,multi:!0,useFactory:QM},[eP,{provide:Vc,multi:!0,useFactory:tP,deps:[eP]},{provide:iP,useFactory:nP,deps:[eP]},{provide:Hc,multi:!0,useExisting:iP}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[$M(t)]}}}]),e}();return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)(bt(qM,8),bt(LM,8))}}),e}();function KM(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new HM(e,t,n)}function JM(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new Xl(e,t):new Jl(e,t)}function XM(e){if(e)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function $M(e){return[{provide:Qa,multi:!0,useValue:e},{provide:TM,multi:!0,useValue:e}]}var eP=function(){var e=function(){function e(t){w(this,e),this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new Z}return C(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(Ul,Promise.resolve(null)).then((function(){var t=null,n=new Promise((function(e){return t=e})),i=e.injector.get(LM),r=e.injector.get(GM);if(e.isLegacyDisabled(r)||e.isLegacyEnabled(r))t(!0);else if("disabled"===r.initialNavigation)i.setUpLocationChangeListener(),t(!0);else{if("enabled"!==r.initialNavigation)throw new Error("Invalid initialNavigation options: '".concat(r.initialNavigation,"'"));i.hooks.afterPreactivation=function(){return e.initNavigation?Bm(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},i.initialNavigation()}return n}))}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(GM),n=this.injector.get(WM),i=this.injector.get(HM),r=this.injector.get(LM),o=this.injector.get(El);e===o.components[0]&&(this.isLegacyEnabled(t)?r.initialNavigation():this.isLegacyDisabled(t)&&r.setUpLocationChangeListener(),n.setUpPreloading(),i.init(),r.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"isLegacyEnabled",value:function(e){return"legacy_enabled"===e.initialNavigation||!0===e.initialNavigation||void 0===e.initialNavigation}},{key:"isLegacyDisabled",value:function(e){return"legacy_disabled"===e.initialNavigation||!1===e.initialNavigation}}]),e}();return e.\u0275fac=function(t){return new(t||e)(bt(Za))},e.\u0275prov=De({token:e,factory:e.\u0275fac}),e}();function tP(e){return e.appInitializer.bind(e)}function nP(e){return e.bootstrapListener.bind(e)}var iP=new ct("Router Initializer");function rP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function oP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rP(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var aP=function(){function e(t){w(this,e);var n=t.length,i=t.separator,r=t.style,o=t.seed;this.dictionaries=t.dictionaries,this.separator=i,this.length=n,this.style=r,this.seed=o}return C(e,[{key:"generate",value:function(){var e=this;if(!this.dictionaries)throw new Error('Cannot find any dictionary. Please provide at least one, or leave the "dictionary" field empty in the config object');if(this.length<=0)throw new Error("Invalid length provided");if(this.length>this.dictionaries.length)throw new Error("The length cannot be bigger than the number of dictionaries.\nLength provided: ".concat(this.length,". Number of dictionaries provided: ").concat(this.dictionaries.length));return this.dictionaries.slice(0,this.length).reduce((function(t,n){var i,r=n[Math.floor((e.seed?(i=e.seed,function(e){e=1831565813+(e|=0)|0;var t=Math.imul(e^e>>>15,1|e);return(((t=t+Math.imul(t^t>>>7,61|t)^t)^t>>>14)>>>0)/4294967296}(i)):Math.random())*n.length)]||"";if("lowerCase"===e.style)r=r.toLowerCase();else if("capital"===e.style){var o=p(r.split("")),a=o[0],s=o.slice(1);r=a.toUpperCase()+s.join("")}else"upperCase"===e.style&&(r=r.toUpperCase());return t?"".concat(t).concat(e.separator).concat(r):""+r}),"")}}]),e}(),sP={separator:"_",dictionaries:[]},uP=["average","big","colossal","fat","giant","gigantic","great","huge","immense","large","little","long","mammoth","massive","miniature","petite","puny","short","small","tall","tiny","boiling","breezy","broken","bumpy","chilly","cold","cool","creepy","crooked","cuddly","curly","damaged","damp","dirty","dry","dusty","filthy","flaky","fluffy","wet","broad","chubby","crooked","curved","deep","flat","high","hollow","low","narrow","round","shallow","skinny","square","steep","straight","wide","ancient","brief","early","fast","late","long","modern","old","quick","rapid","short","slow","swift","young","abundant","empty","few","heavy","light","many","numerous","Sound","cooing","deafening","faint","harsh","hissing","hushed","husky","loud","melodic","moaning","mute","noisy","purring","quiet","raspy","resonant","screeching","shrill","silent","soft","squealing","thundering","voiceless","whispering","bitter","delicious","fresh","juicy","ripe","rotten","salty","sour","spicy","stale","sticky","strong","sweet","tasteless","tasty","thirsty","fluttering","fuzzy","greasy","grubby","hard","hot","icy","loose","melted","plastic","prickly","rainy","rough","scattered","shaggy","shaky","sharp","shivering","silky","slimy","slippery","smooth","soft","solid","steady","sticky","tender","tight","uneven","weak","wet","wooden","afraid","angry","annoyed","anxious","arrogant","ashamed","awful","bad","bewildered","bored","combative","condemned","confused","creepy","cruel","dangerous","defeated","defiant","depressed","disgusted","disturbed","eerie","embarrassed","envious","evil","fierce","foolish","frantic","frightened","grieving","helpless","homeless","hungry","hurt","ill","jealous","lonely","mysterious","naughty","nervous","obnoxious","outrageous","panicky","repulsive","scary","scornful","selfish","sore","tense","terrible","thoughtless","tired","troubled","upset","uptight","weary","wicked","worried","agreeable","amused","brave","calm","charming","cheerful","comfortable","cooperative","courageous","delightful","determined","eager","elated","enchanting","encouraging","energetic","enthusiastic","excited","exuberant","fair","faithful","fantastic","fine","friendly","funny","gentle","glorious","good","happy","healthy","helpful","hilarious","jolly","joyous","kind","lively","lovely","lucky","obedient","perfect","pleasant","proud","relieved","silly","smiling","splendid","successful","thoughtful","victorious","vivacious","witty","wonderful","zealous","zany","other","good","new","old","great","high","small","different","large","local","social","important","long","young","national","british","right","early","possible","big","little","political","able","late","general","full","far","low","public","available","bad","main","sure","clear","major","economic","only","likely","real","black","particular","international","special","difficult","certain","open","whole","white","free","short","easy","strong","european","central","similar","human","common","necessary","single","personal","hard","private","poor","financial","wide","foreign","simple","recent","concerned","american","various","close","fine","english","wrong","present","royal","natural","individual","nice","french","following","current","modern","labour","legal","happy","final","red","normal","serious","previous","total","prime","significant","industrial","sorry","dead","specific","appropriate","top","soviet","basic","military","original","successful","aware","hon","popular","heavy","professional","direct","dark","cold","ready","green","useful","effective","western","traditional","scottish","german","independent","deep","interesting","considerable","involved","physical","left","hot","existing","responsible","complete","medical","blue","extra","past","male","interested","fair","essential","beautiful","civil","primary","obvious","future","environmental","positive","senior","nuclear","annual","relevant","huge","rich","commercial","safe","regional","practical","official","separate","key","chief","regular","due","additional","active","powerful","complex","standard","impossible","light","warm","middle","fresh","sexual","front","domestic","actual","united","technical","ordinary","cheap","strange","internal","excellent","quiet","soft","potential","northern","religious","quick","very","famous","cultural","proper","broad","joint","formal","limited","conservative","lovely","usual","ltd","unable","rural","initial","substantial","christian","bright","average","leading","reasonable","immediate","suitable","equal","detailed","working","overall","female","afraid","democratic","growing","sufficient","scientific","eastern","correct","inc","irish","expensive","educational","mental","dangerous","critical","increased","familiar","unlikely","double","perfect","slow","tiny","dry","historical","thin","daily","southern","increasing","wild","alone","urban","empty","married","narrow","liberal","supposed","upper","apparent","tall","busy","bloody","prepared","russian","moral","careful","clean","attractive","japanese","vital","thick","alternative","fast","ancient","elderly","rare","external","capable","brief","wonderful","grand","typical","entire","grey","constant","vast","surprised","ideal","terrible","academic","funny","minor","pleased","severe","ill","corporate","negative","permanent","weak","brown","fundamental","odd","crucial","inner","used","criminal","contemporary","sharp","sick","near","roman","massive","unique","secondary","parliamentary","african","unknown","subsequent","angry","alive","guilty","lucky","enormous","well","communist","yellow","unusual","net","tough","dear","extensive","glad","remaining","agricultural","alright","healthy","italian","principal","tired","efficient","comfortable","chinese","relative","friendly","conventional","willing","sudden","proposed","voluntary","slight","valuable","dramatic","golden","temporary","federal","keen","flat","silent","indian","worried","pale","statutory","welsh","dependent","firm","wet","competitive","armed","radical","outside","acceptable","sensitive","living","pure","global","emotional","sad","secret","rapid","adequate","fixed","sweet","administrative","wooden","remarkable","comprehensive","surprising","solid","rough","mere","mass","brilliant","maximum","absolute","tory","electronic","visual","electric","cool","spanish","literary","continuing","supreme","chemical","genuine","exciting","written","stupid","advanced","extreme","classical","fit","favourite","socialist","widespread","confident","straight","catholic","proud","numerous","opposite","distinct","mad","helpful","given","disabled","consistent","anxious","nervous","awful","stable","constitutional","satisfied","conscious","developing","strategic","holy","smooth","dominant","remote","theoretical","outstanding","pink","pretty","clinical","minimum","honest","impressive","related","residential","extraordinary","plain","visible","accurate","distant","still","greek","complicated","musical","precise","gentle","broken","live","silly","fat","tight","monetary","round","psychological","violent","unemployed","inevitable","junior","sensible","grateful","pleasant","dirty","structural","welcome","deaf","above","continuous","blind","overseas","mean","entitled","delighted","loose","occasional","evident","desperate","fellow","universal","square","steady","classic","equivalent","intellectual","victorian","level","ultimate","creative","lost","medieval","clever","linguistic","convinced","judicial","raw","sophisticated","asleep","vulnerable","illegal","outer","revolutionary","bitter","changing","australian","native","imperial","strict","wise","informal","flexible","collective","frequent","experimental","spiritual","intense","rational","ethnic","generous","inadequate","prominent","logical","bare","historic","modest","dutch","acute","electrical","valid","weekly","gross","automatic","loud","reliable","mutual","liable","multiple","ruling","curious","arab","sole","jewish","managing","pregnant","latin","nearby","exact","underlying","identical","satisfactory","marginal","distinctive","electoral","urgent","presidential","controversial","oral","everyday","encouraging","organic","continued","expected","statistical","desirable","innocent","improved","exclusive","marked","experienced","unexpected","superb","sheer","disappointed","frightened","gastric","capitalist","romantic","naked","reluctant","magnificent","convenient","established","closed","uncertain","artificial","diplomatic","tremendous","marine","mechanical","retail","institutional","mixed","required","biological","known","functional","straightforward","superior","digital","spectacular","unhappy","confused","unfair","aggressive","spare","painful","abstract","asian","associated","legislative","monthly","intelligent","hungry","explicit","nasty","just","faint","coloured","ridiculous","amazing","comparable","successive","realistic","back","decent","unnecessary","flying","random","influential","dull","genetic","neat","marvellous","crazy","damp","giant","secure","bottom","skilled","subtle","elegant","brave","lesser","parallel","steep","intensive","casual","tropical","lonely","partial","preliminary","concrete","alleged","assistant","vertical","upset","delicate","mild","occupational","excessive","progressive","iraqi","exceptional","integrated","striking","continental","okay","harsh","combined","fierce","handsome","characteristic","chronic","compulsory","interim","objective","splendid","magic","systematic","obliged","payable","fun","horrible","primitive","fascinating","ideological","metropolitan","surrounding","estimated","peaceful","premier","operational","technological","kind","advisory","hostile","precious","gay","accessible","determined","excited","impressed","provincial","smart","endless","isolated","drunk","geographical","like","dynamic","boring","forthcoming","unfortunate","definite","super","notable","indirect","stiff","wealthy","awkward","lively","neutral","artistic","content","mature","colonial","ambitious","evil","magnetic","verbal","legitimate","sympathetic","empirical","head","shallow","vague","naval","depressed","shared","added","shocked","mid","worthwhile","qualified","missing","blank","absent","favourable","polish","israeli","developed","profound","representative","enthusiastic","dreadful","rigid","reduced","cruel","coastal","peculiar","racial","ugly","swiss","crude","extended","selected","eager","feminist","canadian","bold","relaxed","corresponding","running","planned","applicable","immense","allied","comparative","uncomfortable","conservation","productive","beneficial","bored","charming","minimal","mobile","turkish","orange","rear","passive","suspicious","overwhelming","fatal","resulting","symbolic","registered","neighbouring","calm","irrelevant","patient","compact","profitable","rival","loyal","moderate","distinguished","interior","noble","insufficient","eligible","mysterious","varying","managerial","molecular","olympic","linear","prospective","printed","parental","diverse","elaborate","furious","fiscal","burning","useless","semantic","embarrassed","inherent","philosophical","deliberate","awake","variable","promising","unpleasant","varied","sacred","selective","inclined","tender","hidden","worthy","intermediate","sound","protective","fortunate","slim","islamic","defensive","divine","stuck","driving","invisible","misleading","circular","mathematical","inappropriate","liquid","persistent","solar","doubtful","manual","architectural","intact","incredible","devoted","prior","tragic","respectable","optimistic","convincing","unacceptable","decisive","competent","spatial","respective","binding","relieved","nursing","toxic","select","redundant","integral","then","probable","amateur","fond","passing","specified","territorial","horizontal","inland","cognitive","regulatory","miserable","resident","polite","scared","marxist","gothic","civilian","instant","lengthy","adverse","korean","unconscious","anonymous","aesthetic","orthodox","static","unaware","costly","fantastic","foolish","fashionable","causal","compatible","wee","implicit","dual","ok","cheerful","subjective","forward","surviving","exotic","purple","cautious","visiting","aggregate","ethical","protestant","teenage","dying","disastrous","delicious","confidential","underground","thorough","grim","autonomous","atomic","frozen","colourful","injured","uniform","ashamed","glorious","wicked","coherent","rising","shy","novel","balanced","delightful","arbitrary","adjacent","psychiatric","worrying","weird","unchanged","rolling","evolutionary","intimate","sporting","disciplinary","formidable","lexical","noisy","gradual","accused","homeless","supporting","coming","renewed","excess","retired","rubber","chosen","outdoor","embarrassing","preferred","bizarre","appalling","agreed","imaginative","governing","accepted","vocational","palestinian","mighty","puzzled","worldwide","handicapped","organisational","sunny","eldest","eventual","spontaneous","vivid","rude","faithful","ministerial","innovative","controlled","conceptual","unwilling","civic","meaningful","disturbing","alive","brainy","breakable","busy","careful","cautious","clever","concerned","crazy","curious","dead","different","difficult","doubtful","easy","famous","fragile","helpful","helpless","important","impossible","innocent","inquisitive","modern","open","outstanding","poor","powerful","puzzled","real","rich","shy","sleepy","stupid","super","tame","uninterested","wandering","wild","wrong","adorable","alert","average","beautiful","blonde","bloody","blushing","bright","clean","clear","cloudy","colorful","crowded","cute","dark","drab","distinct","dull","elegant","fancy","filthy","glamorous","gleaming","graceful","grotesque","homely","light","misty","motionless","muddy","plain","poised","quaint","shiny","smoggy","sparkling","spotless","stormy","strange","ugly","unsightly","unusual","bad","better","beautiful","big","black","blue","bright","clumsy","crazy","dizzy","dull","fat","frail","friendly","funny","great","green","gigantic","gorgeous","grumpy","handsome","happy","horrible","itchy","jittery","jolly","kind","long","lazy","magnificent","magenta","many","mighty","mushy","nasty","new","nice","nosy","nutty","nutritious","odd","orange","ordinary","pretty","precious","prickly","purple","quaint","quiet","quick","quickest","rainy","rare","ratty","red","roasted","robust","round","sad","scary","scrawny","short","silly","stingy","strange","striped","spotty","tart","tall","tame","tan","tender","testy","tricky","tough","ugly","ugliest","vast","watery","wasteful","wonderful","yellow","yummy","zany"],cP=["canidae","felidae","cat","cattle","dog","donkey","goat","horse","pig","rabbit","aardvark","aardwolf","albatross","alligator","alpaca","amphibian","anaconda","angelfish","anglerfish","ant","anteater","antelope","antlion","ape","aphid","armadillo","asp","baboon","badger","bandicoot","barnacle","barracuda","basilisk","bass","bat","bear","beaver","bedbug","bee","beetle","bird","bison","blackbird","boa","boar","bobcat","bobolink","bonobo","booby","bovid","bug","butterfly","buzzard","camel","canid","capybara","cardinal","caribou","carp","cat","catshark","caterpillar","catfish","cattle","centipede","cephalopod","chameleon","cheetah","chickadee","chicken","chimpanzee","chinchilla","chipmunk","clam","clownfish","cobra","cockroach","cod","condor","constrictor","coral","cougar","cow","coyote","crab","crane","crawdad","crayfish","cricket","crocodile","crow","cuckoo","cicada","damselfly","deer","dingo","dinosaur","dog","dolphin","donkey","dormouse","dove","dragonfly","dragon","duck","eagle","earthworm","earwig","echidna","eel","egret","elephant","elk","emu","ermine","falcon","ferret","finch","firefly","fish","flamingo","flea","fly","flyingfish","fowl","fox","frog","gamefowl","galliform","gazelle","gecko","gerbil","gibbon","giraffe","goat","goldfish","goose","gopher","gorilla","grasshopper","grouse","guan","guanaco","guineafowl","gull","guppy","haddock","halibut","hamster","hare","harrier","hawk","hedgehog","heron","herring","hippopotamus","hookworm","hornet","horse","hoverfly","hummingbird","hyena","iguana","impala","jackal","jaguar","jay","jellyfish","junglefowl","kangaroo","kingfisher","kite","kiwi","koala","koi","krill","ladybug","lamprey","landfowl","lark","leech","lemming","lemur","leopard","leopon","limpet","lion","lizard","llama","lobster","locust","loon","louse","lungfish","lynx","macaw","mackerel","magpie","mammal","manatee","mandrill","marlin","marmoset","marmot","marsupial","marten","mastodon","meadowlark","meerkat","mink","minnow","mite","mockingbird","mole","mollusk","mongoose","monkey","moose","mosquito","moth","mouse","mule","muskox","narwhal","newt","nightingale","ocelot","octopus","opossum","orangutan","orca","ostrich","otter","owl","ox","panda","panther","parakeet","parrot","parrotfish","partridge","peacock","peafowl","pelican","penguin","perch","pheasant","pig","pigeon","pike","pinniped","piranha","planarian","platypus","pony","porcupine","porpoise","possum","prawn","primate","ptarmigan","puffin","puma","python","quail","quelea","quokka","rabbit","raccoon","rat","rattlesnake","raven","reindeer","reptile","rhinoceros","roadrunner","rodent","rook","rooster","roundworm","sailfish","salamander","salmon","sawfish","scallop","scorpion","seahorse","shark","sheep","shrew","shrimp","silkworm","silverfish","skink","skunk","sloth","slug","smelt","snail","snake","snipe","sole","sparrow","spider","spoonbill","squid","squirrel","starfish","stingray","stoat","stork","sturgeon","swallow","swan","swift","swordfish","swordtail","tahr","takin","tapir","tarantula","tarsier","termite","tern","thrush","tick","tiger","tiglon","toad","tortoise","toucan","trout","tuna","turkey","turtle","tyrannosaurus","urial","vicuna","viper","vole","vulture","wallaby","walrus","wasp","warbler","weasel","whale","whippet","whitefish","wildcat","wildebeest","wildfowl","wolf","wolverine","wombat","woodpecker","worm","wren","xerinae","yak","zebra","alpaca","cat","cattle","chicken","dog","donkey","ferret","gayal","goldfish","guppy","horse","koi","llama","sheep","yak","unicorn"],lP=["amaranth","amber","amethyst","apricot","aqua","aquamarine","azure","beige","black","blue","blush","bronze","brown","chocolate","coffee","copper","coral","crimson","cyan","emerald","fuchsia","gold","gray","green","harlequin","indigo","ivory","jade","lavender","lime","magenta","maroon","moccasin","olive","orange","peach","pink","plum","purple","red","rose","salmon","sapphire","scarlet","silver","tan","teal","tomato","turquoise","violet","white","yellow"];function hP(e,t){1&e&&(hs(0,"div",18),Ks(1," Room name is "),hs(2,"strong"),Ks(3,"required"),ds(),ds())}function dP(e,t){1&e&&(hs(0,"div",19),Ks(1," Room name is "),hs(2,"strong"),Ks(3,"too short!"),ds(),ds())}var fP=function(){function e(e,t){this.router=e,this.formBuilder=t,this.version=n("kiQV").version}return e.prototype.ngOnInit=function(){var e=function(e){var t=d(e&&e.dictionaries||sP.dictionaries),n=oP(oP(oP({},sP),e),{},{length:e&&e.length||t.length,dictionaries:t});if(!e||!e.dictionaries||!e.dictionaries.length)throw new Error('A "dictionaries" array must be provided. This is a breaking change introduced starting from Unique Name Generator v4. Read more about the breaking change here: https://github.com/andreasonny83/unique-names-generator#migration-guide');return new aP(n).generate()}({dictionaries:[uP,lP,cP],separator:"-"});this.roomForm=new hf(e,[xd.minLength(4),xd.required])},e.prototype.goToVideoCall=function(){if(this.roomForm.valid){var e=this.roomForm.value.replace(/ /g,"-");this.roomForm.setValue(e),this.router.navigate(["/",e])}},e.\u0275fac=function(t){return new(t||e)(ss(LM),ss(Tf))},e.\u0275cmp=Ft({type:e,selectors:[["app-home"]],decls:28,vars:5,consts:[[1,"section1"],["id","header"],["href","https://openvidu.io/","target","_blank"],["id","header_img","alt","OpenVidu Logo","src","assets/images/openvidu_logo.png"],[1,"ovVersion"],[1,"container"],[1,"ovInfo"],["alt","OpenVidu Logo","src","assets/images/openvidu_logo.png",1,"ovLogo"],[1,"formContainer"],["class","roomError","id","requiredNameError",4,"ngIf"],["class","roomError","id","shortNameError",4,"ngIf"],["novalidate","",3,"formGroup","ngSubmit"],[1,"joinForm"],["matInput","","type","text","autocomplete","off","id","roomInput",1,"inputForm",3,"formControl"],["type","submit","id","joinButton",1,"joinButton"],[1,"footer"],["rel","noopener noreferrer","target","_blank","href","https://unsplash.com/@danielleone?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText"],["href","https://unsplash.com/s/photos/mountain?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText","target","_blank"],["id","requiredNameError",1,"roomError"],["id","shortNameError",1,"roomError"]],template:function(e,t){1&e&&(hs(0,"div",0),hs(1,"mat-toolbar",1),hs(2,"a",2),fs(3,"img",3),ds(),hs(4,"div",4),hs(5,"span"),Ks(6),ds(),ds(),ds(),hs(7,"div",5),hs(8,"div",6),fs(9,"img",7),hs(10,"h4"),Ks(11,"Videoconference rooms in one click"),ds(),ds(),hs(12,"div",8),os(13,hP,4,0,"div",9),os(14,dP,4,0,"div",10),hs(15,"form",11),bs("ngSubmit",(function(){return t.goToVideoCall()})),hs(16,"div",12),fs(17,"input",13),hs(18,"button",14),Ks(19,"JOIN"),ds(),ds(),ds(),ds(),ds(),hs(20,"mat-toolbar",15),hs(21,"span"),Ks(22," Photo by "),hs(23,"a",16),Ks(24," Daniel Leone "),ds(),Ks(25," on "),hs(26,"a",17),Ks(27," Unsplash "),ds(),ds(),ds(),ds()),2&e&&($r(6),Js(t.version),$r(7),cs("ngIf",t.roomForm.hasError("required")),$r(1),cs("ngIf",t.roomForm.hasError("minlength")),$r(1),cs("formGroup",t.roomForm),$r(2),cs("formControl",t.roomForm))},directives:[iC,lh,_f,kd,Ef,rS,pd,_d,Sf],styles:[".section1[_ngcontent-%COMP%]{background:url(/assets/images/bg.jpg) top no-repeat;background-size:cover;height:100%;text-align:center;position:relative;color:#fff}#header[_ngcontent-%COMP%], .footer[_ngcontent-%COMP%]{background-color:transparent;color:#fff}.roomError[_ngcontent-%COMP%]{font-size:16px;color:#c01515}.footer[_ngcontent-%COMP%]{position:absolute;bottom:0;font-size:9px;height:auto}.footer[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff}#header_img[_ngcontent-%COMP%]{max-width:150px;margin-right:10px;margin-top:10px;padding:15px}.ovVersion[_ngcontent-%COMP%]{position:absolute;right:15px;font-size:16px;font-weight:700}.ovLogo[_ngcontent-%COMP%]{margin:auto}#card_content[_ngcontent-%COMP%]{height:50%}h4[_ngcontent-%COMP%]{font-size:25px;font-weight:500;color:#fff;position:relative;padding-bottom:5px}#room_card[_ngcontent-%COMP%]{color:#303030;position:inherit;max-width:700px;width:75%;margin:auto;background:hsla(0,0%,86.7%,.856)}#room_card[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{margin:auto;padding:0 5px}@media only screen and (max-width:600px){#header_img[_ngcontent-%COMP%], .footer[_ngcontent-%COMP%], .ovVersion[_ngcontent-%COMP%]{display:none}.joinForm[_ngcontent-%COMP%], .ovLogo[_ngcontent-%COMP%]{max-width:80%}.inputForm[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{font-size:16px}}.container[_ngcontent-%COMP%]{position:relative;width:100%;padding:100px 0;position:absolute;top:40%;left:50%;transform:translate(-50%,-50%)}.formContainer[_ngcontent-%COMP%]{font-size:20px;text-align:center}.joinForm[_ngcontent-%COMP%]{min-width:300px;margin:10px auto;max-width:50%;background:#fff;padding:6px 10px;position:relative;border-radius:10px 5px 10px 0;text-align:left}.inputForm[_ngcontent-%COMP%]{border:0;padding:4px 8px;font-size:17px;width:calc(100% - 90px);outline:none;caret-color:#000;color:#303030}.joinButton[_ngcontent-%COMP%]{position:absolute;top:0;right:-2px;bottom:0;border:0;background:none;font-size:16px;font-weight:700;padding:0 20px;background:#00ad4e;color:#fff;border-radius:0 5px 10px 0;transition:.3s;box-shadow:0 2px 15px rgba(0,0,0,.1);margin:0}.joinButton[_ngcontent-%COMP%]:hover{background:#009242}@media only screen and (min-width:600px){.ovLogo[_ngcontent-%COMP%]{max-width:75%}}@media only screen and (min-width:992px){.ovLogo[_ngcontent-%COMP%]{max-width:60%}.inputForm[_ngcontent-%COMP%]{font-size:20px!important}}@media only screen and (min-width:1200px){.section1[_ngcontent-%COMP%]{background-attachment:fixed}.ovLogo[_ngcontent-%COMP%]{max-width:50%}}"]}),e}(),pP=function(e){return e.CAMERA="CAMERA",e.SCREEN="SCREEN",e.CUSTOM="CUSTOM",e}({}),vP=function(e){return e.WINDOW="window",e.SCREEN="screen",e}({}),mP=function(){function e(e,t,n){this.connectionId=e||"",this.nickname=n||"OpenVidu",this.streamManager=t||null}return e.prototype.isAudioActive=function(){var e,t;return null===(t=null===(e=this.streamManager)||void 0===e?void 0:e.stream)||void 0===t?void 0:t.audioActive},e.prototype.isVideoActive=function(){var e,t;return null===(t=null===(e=this.streamManager)||void 0===e?void 0:e.stream)||void 0===t?void 0:t.videoActive},e.prototype.getConnectionId=function(){var e,t,n;return(null===(n=null===(t=null===(e=this.streamManager)||void 0===e?void 0:e.stream)||void 0===t?void 0:t.connection)||void 0===n?void 0:n.connectionId)||this.connectionId},e.prototype.getNickname=function(){return this.nickname},e.prototype.getStreamManager=function(){return this.streamManager},e.prototype.getAvatar=function(){return this.avatar},e.prototype.setAvatar=function(e){this.avatar=e},e.prototype.isLocal=function(){return this.local},e.prototype.isRemote=function(){var e;return null===(e=this.streamManager)||void 0===e?void 0:e.remote},e.prototype.isScreen=function(){var e,t;return(null===(t=null===(e=this.streamManager)||void 0===e?void 0:e.stream)||void 0===t?void 0:t.typeOfVideo)===pP.SCREEN},e.prototype.isCamera=function(){var e,t;return(null===(t=null===(e=this.streamManager)||void 0===e?void 0:e.stream)||void 0===t?void 0:t.typeOfVideo)===pP.CAMERA||this.isLocal()&&!this.isScreen()},e.prototype.setStreamManager=function(e){this.streamManager=e},e.prototype.setNickname=function(e){this.nickname=e},e.prototype.isVideoSizeBig=function(){return this.videoSizeBig},e.prototype.setVideoSizeBig=function(e){this.videoSizeBig=e},e.prototype.setLocal=function(e){this.local=e},e}(),gP=function(){function e(){this.log=window.console,this.LOG_FNS=[],this.MSG_PREFIXES=[["[","]"],["[","] WARN: "],["[","] ERROR: "]],this.LOG_FNS=[this.log.log,this.log.warn,this.log.error]}return e.prototype.get=function(e){var t=this,n=this.LOG_FNS.map((function(n,i){return n.bind(t.log,t.MSG_PREFIXES[i][0]+e+t.MSG_PREFIXES[i][1])}));return{d:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},w:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n[1].apply(this.log,arguments)},e:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n[2].apply(this.log,arguments)}}},e.\u0275prov=De({token:e,factory:e.\u0275fac=function(t){return new(t||e)},providedIn:"root"}),e}(),yP=function(){function e(e,t){this.dialogRef=e,this.data=t}return e.prototype.ngOnInit=function(){},e.\u0275fac=function(t){return new(t||e)(ss(D_),ss(L_))},e.\u0275cmp=Ft({type:e,selectors:[["app-dialog-error"]],decls:5,vars:2,consts:[["mat-dialog-title",""]],template:function(e,t){1&e&&(hs(0,"div"),hs(1,"h1",0),Ks(2),ds(),hs(3,"span"),Ks(4),ds(),ds()),2&e&&($r(2),Js(t.data.header),$r(2),Xs(" ",t.data.message," "))},directives:[W_],styles:["h1[_ngcontent-%COMP%]{color:#a30101}"]}),e}(),bP=function(e){return e.ROOT_CLASS="OT_root",e}({}),_P=function(e){return e.BIG_ELEMENT="OV_big",e.SMALL_ELEMENT="OV_small",e}({}),kP=n("mgp7"),wP=n.n(kP),SP=function(){function e(e){this.dialog=e}return e.prototype.toggleFullscreen=function(e){var t=window.document,n=t.getElementById(e);t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement?t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.webkitExitFullscreen&&t.webkitExitFullscreen():n.requestFullscreen?n.requestFullscreen():n.msRequestFullscreen?n.msRequestFullscreen():n.mozRequestFullScreen?n.mozRequestFullScreen():n.webkitRequestFullscreen&&n.webkitRequestFullscreen()},e.prototype.handlerScreenShareError=function(e){e&&"SCREEN_SHARING_NOT_SUPPORTED"===e.name?alert("Your browser does not support screen sharing"):e&&"SCREEN_EXTENSION_DISABLED"===e.name&&alert("You need to enable screen sharing extension")},e.prototype.generateNickname=function(){return"OpenVidu_User"+Math.floor(100*Math.random())},e.prototype.isFirefox=function(){return/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)},e.prototype.isMobile=function(){return this.isAndroid()||this.isIos()},e.prototype.showErrorMessage=function(e,t,n){void 0===n&&(n=!1),this.dialogRef=this.dialog.open(yP,{data:{header:e,message:t},disableClose:n})},e.prototype.closeDialog=function(){var e;null===(e=this.dialogRef)||void 0===e||e.close()},e.prototype.getHTMLElementByClassName=function(e,t){for(;e&&e!==document.body;){if(e.className.includes(t))return e;e=e.parentElement}return null},e.prototype.toggleBigElementClass=function(e){(null==e?void 0:e.className.includes(_P.BIG_ELEMENT))?this.removeBigElementClass(e):e.classList.add(_P.BIG_ELEMENT)},e.prototype.removeBigElementClass=function(e){null==e||e.classList.remove(_P.BIG_ELEMENT)},e.prototype.removeAllBigElementClass=function(){for(var e=document.getElementsByClassName(_P.BIG_ELEMENT);e.length>0;)this.removeBigElementClass(e[0])},e.prototype.isSmallElement=function(e){return null==e?void 0:e.className.includes(_P.SMALL_ELEMENT)},e.prototype.getNicknameFromConnectionData=function(e){var t;try{t=JSON.parse(e).clientData}catch(n){t="Unknown"}return t},e.prototype.linkify=function(e,t){return wP()(e,t)},e.prototype.isAndroid=function(){return/\b(\w*Android\w*)\b/.test(navigator.userAgent)&&/\b(\w*Mobile\w*)\b/.test(navigator.userAgent)},e.prototype.isIos=function(){return this.isIPhoneOrIPad(null===navigator||void 0===navigator?void 0:navigator.userAgent)&&this.isIOSWithSafari(null===navigator||void 0===navigator?void 0:navigator.userAgent)},e.prototype.isIPhoneOrIPad=function(e){var t=/\b(\w*Macintosh\w*)\b/.test(e),n=/\b(\w*iPhone\w*)\b/.test(e)&&/\b(\w*Mobile\w*)\b/.test(e),i="ontouchend"in document;return(t||n)&&i},e.prototype.isIOSWithSafari=function(e){return/\b(\w*Apple\w*)\b/.test(navigator.vendor)&&/\b(\w*Safari\w*)\b/.test(e)&&!/\b(\w*CriOS\w*)\b/.test(e)&&!/\b(\w*FxiOS\w*)\b/.test(e)},e.\u0275prov=De({token:e,factory:e.\u0275fac=function(t){return new(t||e)(bt(U_))},providedIn:"root"}),e}(),CP=n("7RJT"),EP=function(){function e(e){this.loggerSrv=e,this._OVUsers=new CP.BehaviorSubject([]),this._screenShareState=new CP.BehaviorSubject(!1),this._webcamVideoActive=new CP.BehaviorSubject(!0),this.webcamUser=null,this.screenUser=null,this.log=this.loggerSrv.get("LocalUsersService")}return e.prototype.initialize=function(){this.OVUsers=this._OVUsers.asObservable(),this.screenShareState=this._screenShareState.asObservable(),this.webcamVideoActive=this._webcamVideoActive.asObservable(),this.webcamUser=new mP,this.webcamUser.setLocal(!0),this._OVUsers.next([this.webcamUser])},e.prototype.getWebcamPublisher=function(){var e;return null===(e=this.webcamUser)||void 0===e?void 0:e.getStreamManager()},e.prototype.setWebcamPublisher=function(e){this.webcamUser.setStreamManager(e)},e.prototype.getScreenPublisher=function(){var e;return null===(e=this.screenUser)||void 0===e?void 0:e.getStreamManager()},e.prototype.setScreenPublisher=function(e){this.screenUser.setStreamManager(e)},e.prototype.enableWebcamUser=function(){this._OVUsers.next([this.webcamUser,this.screenUser])},e.prototype.disableWebcamUser=function(){this._OVUsers.next([this.screenUser])},e.prototype.enableScreenUser=function(e){var t,n;this.log.d("Enabling screen publisher");var i=null===(n=null===(t=null==e?void 0:e.session)||void 0===t?void 0:t.connection)||void 0===n?void 0:n.connectionId;this.screenUser=new mP(i,e,this.getScreenUserName()),this.screenUser.setAvatar(this.webcamUser.getAvatar()),this._screenShareState.next(!0),this.isWebCamEnabled()?this._OVUsers.next([this.webcamUser,this.screenUser]):this._OVUsers.next([this.screenUser])},e.prototype.disableScreenUser=function(){this._OVUsers.next([this.webcamUser]),this._screenShareState.next(!1)},e.prototype.updateUsersStatus=function(){this._webcamVideoActive.next(this.webcamUser.isVideoActive())},e.prototype.clear=function(){this.screenUser=null,this.webcamUser=new mP,this._OVUsers.next([this.webcamUser])},e.prototype.isWebCamEnabled=function(){return this._OVUsers.getValue()[0].isCamera()},e.prototype.isOnlyScreenConnected=function(){return this._OVUsers.getValue()[0].isScreen()},e.prototype.hasWebcamVideoActive=function(){return this.webcamUser.isVideoActive()},e.prototype.hasWebcamAudioActive=function(){var e;return null===(e=this.webcamUser)||void 0===e?void 0:e.isAudioActive()},e.prototype.hasScreenAudioActive=function(){var e;return null===(e=this.screenUser)||void 0===e?void 0:e.isAudioActive()},e.prototype.areBothConnected=function(){return 2===this._OVUsers.getValue().length},e.prototype.isOnlyWebcamConnected=function(){return this.isWebCamEnabled()&&!this.areBothConnected()},e.prototype.isScreenShareEnabled=function(){return this.areBothConnected()||this.isOnlyScreenConnected()},e.prototype.setAvatar=function(e){var t,n;null===(t=this.webcamUser)||void 0===t||t.setAvatar(e),null===(n=this.screenUser)||void 0===n||n.setAvatar(e)},e.prototype.updateUsersNickname=function(e){var t;this.webcamUser.setNickname(e),null===(t=this.screenUser)||void 0===t||t.setNickname(this.getScreenUserName())},e.prototype.getAvatar=function(){return this.webcamUser.getAvatar()},e.prototype.getWebcamUserName=function(){return this.webcamUser.getNickname()},e.prototype.getScreenUserName=function(){return this.getWebcamUserName()+"_SCREEN"},e.prototype.resetUsersZoom=function(){var e,t;null===(e=this.webcamUser)||void 0===e||e.setVideoSizeBig(!1),null===(t=this.screenUser)||void 0===t||t.setVideoSizeBig(!1)},e.prototype.toggleZoom=function(e){this.webcamUser.getConnectionId()!==e?this.screenUser.setVideoSizeBig(!this.screenUser.isVideoSizeBig()):this.webcamUser.setVideoSizeBig(!this.webcamUser.isVideoSizeBig())},e.\u0275prov=De({token:e,factory:e.\u0275fac=function(t){return new(t||e)(bt(gP))},providedIn:"root"}),e}(),OP=function(e){return e.DEFAULT="default",e.CAPTURED="captured",e}({}),xP=function(){function e(e,t){this.localUsersService=e,this.loggerSrv=t,this.openviduAvatar="assets/images/openvidu_globe.png",this.capturedAvatar="",this.log=this.loggerSrv.get("ChatService")}return e.prototype.setCaputedAvatar=function(e){this.capturedAvatar=e},e.prototype.setFinalAvatar=function(e){this.localUsersService.setAvatar(e!==OP.CAPTURED?this.openviduAvatar:this.capturedAvatar)},e.prototype.getOpenViduAvatar=function(){return this.openviduAvatar},e.prototype.getCapturedAvatar=function(){return this.capturedAvatar},e.prototype.createCapture=function(){this.log.d("Capturing avatar ...");var e=document.createElement("canvas"),t=this.localUsersService.getWebcamPublisher().videos[0].video;return e.className="user-img",e.width=100,e.height=100,t&&(e.getContext("2d").drawImage(t,200,120,285,285,0,0,100,100),this.capturedAvatar=e.toDataURL()),this.capturedAvatar},e.prototype.getAvatarFromConnectionData=function(e){var t;try{t=JSON.parse(e).avatar}catch(n){t=this.getOpenViduAvatar()}return t},e.prototype.clear=function(){this.capturedAvatar=""},e.\u0275prov=De({token:e,factory:e.\u0275fac=function(t){return new(t||e)(bt(EP),bt(gP))},providedIn:"root"}),e}(),TP=function(){function e(e,t,n){this.loggerSrv=e,this.utilsSrv=t,this.avatarService=n,this._remoteUsers=new CP.BehaviorSubject([]),this._remoteUserNameList=new CP.BehaviorSubject([]),this.users=[],this.log=this.loggerSrv.get("RemoteService"),this.remoteUsers=this._remoteUsers.asObservable(),this.remoteUserNameList=this._remoteUserNameList.asObservable()}return e.prototype.updateUsers=function(){this._remoteUsers.next(this.users)},e.prototype.add=function(e,t){var n,i,r,o,a,s,u,c,l,h,d,f,p=(null===(r=null===(i=null===(n=e)||void 0===n?void 0:n.stream)||void 0===i?void 0:i.connection)||void 0===r?void 0:r.connectionId)||(null===(a=null===(o=e)||void 0===o?void 0:o.connection)||void 0===a?void 0:a.connectionId),v=(null===(c=null===(u=null===(s=e)||void 0===s?void 0:s.stream)||void 0===u?void 0:u.connection)||void 0===c?void 0:c.data)||(null===(h=null===(l=e)||void 0===l?void 0:l.connection)||void 0===h?void 0:h.data);d=this.utilsSrv.getNicknameFromConnectionData(v),f=this.avatarService.getAvatarFromConnectionData(v);var m=new mP(p,t,d);m.setAvatar(f),this.addUser(m),this.updateUsers()},e.prototype.removeUserByConnectionId=function(e){this.log.w("Deleting user: ",e);var t=this.getRemoteUserByConnectionId(e),n=this.users.indexOf(t,0);n>-1&&(this.users.splice(n,1),this.updateUsers())},e.prototype.someoneIsSharingScreen=function(){return this.users.some((function(e){return e.isScreen()}))},e.prototype.toggleUserZoom=function(e){var t=this.getRemoteUserByConnectionId(e);t.setVideoSizeBig(!t.isVideoSizeBig())},e.prototype.resetUsersZoom=function(){this.users.forEach((function(e){return e.setVideoSizeBig(!1)}))},e.prototype.setUserZoom=function(e,t){var n;null===(n=this.getRemoteUserByConnectionId(e))||void 0===n||n.setVideoSizeBig(t)},e.prototype.getRemoteUserByConnectionId=function(e){return this.users.find((function(t){return t.getConnectionId()===e}))},e.prototype.updateNickname=function(e,t){var n=this.getRemoteUserByConnectionId(e);null==n||n.setNickname(t),this._remoteUsers.next(this.users);var i=this._remoteUserNameList.getValue();i.forEach((function(n){n.connectionId!==e||(n.nickname=t)})),this._remoteUserNameList.next(i)},e.prototype.clear=function(){this._remoteUsers=new CP.BehaviorSubject([]),this.remoteUsers=this._remoteUsers.asObservable(),this._remoteUserNameList=new CP.BehaviorSubject([]),this.remoteUserNameList=this._remoteUserNameList.asObservable(),this.users=[]},e.prototype.getUserAvatar=function(e){var t;return(null===(t=this.getRemoteUserByConnectionId(e))||void 0===t?void 0:t.getAvatar())||this.avatarService.getOpenViduAvatar()},e.prototype.addUserName=function(e){var t=this.utilsSrv.getNicknameFromConnectionData(e.connection.data),n=e.connection.connectionId,i=this._remoteUserNameList.getValue();i.push({nickname:t,connectionId:n}),this._remoteUserNameList.next(i)},e.prototype.deleteUserName=function(e){var t=this._remoteUserNameList.getValue().filter((function(t){return t.connectionId!==e.connection.connectionId}));this._remoteUserNameList.next(t)},e.prototype.addUser=function(e){var t=this.getRemoteUserByConnectionId(e.connectionId);t?t.setStreamManager(e.getStreamManager()):this.users.push(e)},e.\u0275prov=De({token:e,factory:e.\u0275fac=function(t){return new(t||e)(bt(gP),bt(SP),bt(xP))},providedIn:"root"}),e}(),MP=function(){function e(e){this.snackBar=e}return e.prototype.newMessage=function(e,t){this.launchNotification(e+" sent a message","OPEN","messageSnackbar",3e3).onAction().subscribe((function(){t()}))},e.prototype.launchNotification=function(e,t,n,i){return this.snackBar.open(e,t,{duration:i,verticalPosition:"top",horizontalPosition:"end",panelClass:n})},e.\u0275prov=De({token:e,factory:e.\u0275fac=function(t){return new(t||e)(bt(FC))},providedIn:"root"}),e}(),PP=n("PZzU"),IP=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{u(i.next(e))}catch(t){o(t)}}function s(e){try{u(i.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((i=i.apply(e,t||[])).next())}))},AP=function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},RP=function(){function e(e,t){this.loggerSrv=e,this.localUsersSrv=t,this.OV=null,this.OVScreen=null,this.webcamSession=null,this.screenSession=null,this.videoSource=void 0,this.audioSource=void 0,this.screenMediaStream=null,this.webcamMediaStream=null,this.log=this.loggerSrv.get("OpenViduWebRTCService")}return e.prototype.initialize=function(){this.OV=new PP.OpenVidu,this.OVScreen=new PP.OpenVidu,this.OV.enableProdMode(),this.OVScreen.enableProdMode()},e.prototype.initSessions=function(){this.initializeWebcamSession(),this.initializeScreenSession()},e.prototype.getWebcamSession=function(){return this.webcamSession},e.prototype.isWebcamSessionConnected=function(){return!!this.webcamSession.capabilities},e.prototype.initializeWebcamSession=function(){this.webcamSession=this.OV.initSession()},e.prototype.initializeScreenSession=function(){this.screenSession=this.OVScreen.initSession()},e.prototype.getScreenSession=function(){return this.screenSession},e.prototype.isScreenSessionConnected=function(){return!!this.screenSession.capabilities},e.prototype.connectWebcamSession=function(e){return IP(this,void 0,void 0,(function(){var t,n;return AP(this,(function(i){switch(i.label){case 0:return e?(this.log.d("Connecting webcam session"),t=this.localUsersSrv.getWebcamUserName(),n=this.localUsersSrv.getAvatar(),[4,this.webcamSession.connect(e,{clientData:t,avatar:n})]):[3,2];case 1:i.sent(),i.label=2;case 2:return[2]}}))}))},e.prototype.disconnectWebcamSession=function(){this.webcamSession&&(this.log.d("Disconnecting webcam session"),this.webcamSession.disconnect(),this.webcamSession=null)},e.prototype.connectScreenSession=function(e){return IP(this,void 0,void 0,(function(){var t,n;return AP(this,(function(i){switch(i.label){case 0:return e?(this.log.d("Connecting screen session"),t=this.localUsersSrv.getScreenUserName(),n=this.localUsersSrv.getAvatar(),[4,this.screenSession.connect(e,{clientData:t,avatar:n})]):[3,2];case 1:i.sent(),i.label=2;case 2:return[2]}}))}))},e.prototype.disconnectScreenSession=function(){this.screenSession&&(this.log.d("Disconnecting screen session"),this.screenSession.disconnect(),this.screenSession=null)},e.prototype.disconnect=function(){var e,t,n,i,r,o,a,s,u=this;this.disconnectWebcamSession(),setTimeout((function(){u.disconnectScreenSession()}),100),this.videoSource=void 0,this.audioSource=void 0,this.stopVideoTracks(null===(t=null===(e=this.localUsersSrv.getWebcamPublisher())||void 0===e?void 0:e.stream)||void 0===t?void 0:t.getMediaStream()),this.stopVideoTracks(null===(i=null===(n=this.localUsersSrv.getScreenPublisher())||void 0===n?void 0:n.stream)||void 0===i?void 0:i.getMediaStream()),this.stopAudioTracks(null===(o=null===(r=this.localUsersSrv.getWebcamPublisher())||void 0===r?void 0:r.stream)||void 0===o?void 0:o.getMediaStream()),this.stopAudioTracks(null===(s=null===(a=this.localUsersSrv.getScreenPublisher())||void 0===a?void 0:a.stream)||void 0===s?void 0:s.getMediaStream())},e.prototype.initPublisher=function(e,t){this.log.d("Initializing publisher with properties: ",t);var n=this.OV.initPublisher(e,t);return n.once("streamPlaying",(function(){n.videos[0].video.parentElement.classList.remove("custom-class")})),n},e.prototype.initPublisherAsync=function(e,t){return IP(this,void 0,void 0,(function(){var n;return AP(this,(function(i){switch(i.label){case 0:return this.log.d("Initializing publisher with properties: ",t),[4,this.OV.initPublisherAsync(e,t)];case 1:return(n=i.sent()).once("streamPlaying",(function(){n.videos[0].video.parentElement.classList.remove("custom-class")})),[2,n]}}))}))},e.prototype.destroyWebcamPublisher=function(){var e=this.localUsersSrv.getWebcamPublisher();e&&(e.stream.disposeWebRtcPeer(),e.stream.disposeMediaStream(),this.localUsersSrv.setWebcamPublisher(e))},e.prototype.destroyScreenPublisher=function(){var e=this.localUsersSrv.getScreenPublisher();e&&(e.stream.disposeWebRtcPeer(),e.stream.disposeMediaStream(),this.localUsersSrv.setScreenPublisher(e))},e.prototype.publishWebcamPublisher=function(){var e,t;return IP(this,void 0,void 0,(function(){var n;return AP(this,(function(i){switch(i.label){case 0:return(null===(t=null===(e=this.webcamSession)||void 0===e?void 0:e.capabilities)||void 0===t?void 0:t.publish)&&(n=this.localUsersSrv.getWebcamPublisher())?[4,this.webcamSession.publish(n)]:[3,2];case 1:return[2,i.sent()];case 2:return this.log.e("Webcam publisher cannot be published"),[2]}}))}))},e.prototype.unpublishWebcamPublisher=function(){var e=this.localUsersSrv.getWebcamPublisher();e&&(this.publishScreenAudio(this.localUsersSrv.hasWebcamAudioActive()),this.webcamSession.unpublish(e))},e.prototype.publishScreenPublisher=function(){var e,t;return IP(this,void 0,void 0,(function(){var n;return AP(this,(function(i){switch(i.label){case 0:return(null===(t=null===(e=this.screenSession)||void 0===e?void 0:e.capabilities)||void 0===t?void 0:t.publish)&&(n=this.localUsersSrv.getScreenPublisher())?[4,this.screenSession.publish(n)]:[3,2];case 1:return[2,i.sent()];case 2:return this.log.e("Screen publisher cannot be published"),[2]}}))}))},e.prototype.unpublishScreenPublisher=function(){var e=this.localUsersSrv.getScreenPublisher();e&&this.screenSession.unpublish(e)},e.prototype.publishWebcamVideo=function(e){this.localUsersSrv.getWebcamPublisher().publishVideo(e),this.localUsersSrv.updateUsersStatus()},e.prototype.publishWebcamAudio=function(e){var t=this.localUsersSrv.getWebcamPublisher();t&&t.publishAudio(e)},e.prototype.publishScreenAudio=function(e){var t=this.localUsersSrv.getScreenPublisher();t&&t.publishAudio(e)},e.prototype.replaceTrack=function(e,t,n){var i=this;return void 0===n&&(n=!0),new Promise((function(r,o){e&&(i.log.d("Replacing video track "+e),i.videoSource=e),t&&(i.log.d("Replacing audio track "+t),i.audioSource=t),i.destroyWebcamPublisher();var a=i.createPublisherProperties(i.videoSource,i.audioSource,i.localUsersSrv.hasWebcamVideoActive(),i.localUsersSrv.hasWebcamAudioActive(),n),s=i.initPublisher(void 0,a);i.localUsersSrv.setWebcamPublisher(s),s.once("streamPlaying",(function(){i.localUsersSrv.setWebcamPublisher(s),r()})),s.once("accessDenied",(function(){o()}))}))},e.prototype.sendSignal=function(e,t,n){var i={data:JSON.stringify(n),type:e,to:t?[t]:void 0};this.webcamSession.signal(i)},e.prototype.sendNicknameSignal=function(e){var t,n;if(this.needSendNicknameSignal()){var i={data:JSON.stringify({clientData:this.localUsersSrv.getWebcamUserName()}),type:"nicknameChanged",to:e?[e]:void 0};null===(t=this.getWebcamSession())||void 0===t||t.signal(i),i.data=JSON.stringify({clientData:this.localUsersSrv.getScreenUserName()}),null===(n=this.getScreenSession())||void 0===n||n.signal(i)}},e.prototype.createPublisherProperties=function(e,t,n,i,r){return{videoSource:e,audioSource:t,publishVideo:n,publishAudio:i,mirror:r}},e.prototype.replaceScreenTrack=function(){return IP(this,void 0,void 0,(function(){var e,t,n,i;return AP(this,(function(r){switch(r.label){case 0:return e=vP.SCREEN,t=!this.localUsersSrv.isWebCamEnabled(),n=this.createPublisherProperties(e,void 0,!0,t,!1),this.stopScreenTracks(),i=this,[4,this.OVScreen.getUserMedia(n)];case 1:return i.screenMediaStream=r.sent(),[4,this.localUsersSrv.getScreenPublisher().replaceTrack(this.screenMediaStream.getVideoTracks()[0])];case 2:return r.sent(),[2]}}))}))},e.prototype.stopAudioTracks=function(e){var t;null==e||e.getAudioTracks().forEach((function(e){e.stop(),e.enabled=!1})),null===(t=this.webcamMediaStream)||void 0===t||t.getAudioTracks().forEach((function(e){e.stop()}))},e.prototype.stopVideoTracks=function(e){null==e||e.getVideoTracks().forEach((function(e){e.stop()}))},e.prototype.needSendNicknameSignal=function(){return JSON.parse(this.webcamSession.connection.data).clientData!==this.localUsersSrv.getWebcamUserName()},e.prototype.isMyOwnConnection=function(e){var t,n,i,r;return(null===(n=null===(t=this.webcamSession)||void 0===t?void 0:t.connection)||void 0===n?void 0:n.connectionId)===e||(null===(r=null===(i=this.screenSession)||void 0===i?void 0:i.connection)||void 0===r?void 0:r.connectionId)===e},e.prototype.getSessionOfUserConnected=function(){return this.localUsersSrv.isWebCamEnabled()?this.webcamSession:this.screenSession},e.prototype.stopScreenTracks=function(){this.screenMediaStream&&(this.stopAudioTracks(this.screenMediaStream),this.stopVideoTracks(this.screenMediaStream))},e.\u0275prov=De({token:e,factory:e.\u0275fac=function(t){return new(t||e)(bt(gP),bt(EP))},providedIn:"root"}),e}(),DP=function(){function e(e,t,n,i,r){this.loggerSrv=e,this.openViduWebRTCService=t,this.localUsersService=n,this.remoteUsersService=i,this.notificationService=r,this._messageList=new CP.BehaviorSubject([]),this._toggleChat=new CP.BehaviorSubject(!1),this.messageList=[],this.messagesUnread=0,this._messagesUnread=new CP.BehaviorSubject(0),this.log=this.loggerSrv.get("ChatService"),this.messagesObs=this._messageList.asObservable(),this.toggleChatObs=this._toggleChat.asObservable(),this.messagesUnreadObs=this._messagesUnread.asObservable()}return e.prototype.setChatComponent=function(e){this.chatComponent=e},e.prototype.subscribeToChat=function(){var e=this;this.openViduWebRTCService.getWebcamSession().on("signal:chat",(function(t){var n=t.from.connectionId,i=JSON.parse(t.data),r=e.openViduWebRTCService.isMyOwnConnection(n);e.messageList.push({isLocal:r,nickname:i.nickname,message:i.message,userAvatar:r?e.localUsersService.getAvatar():e.remoteUsersService.getUserAvatar(n)}),e.isChatOpened()||(e.addMessageUnread(),e.notificationService.newMessage(i.nickname.toUpperCase(),e.toggleChat.bind(e))),e._messageList.next(e.messageList)}))},e.prototype.sendMessage=function(e){if(""!==(e=e.replace(/ +(?= )/g,""))&&" "!==e){var t={message:e,nickname:this.localUsersService.getWebcamUserName()};this.openViduWebRTCService.getSessionOfUserConnected().signal({data:JSON.stringify(t),type:"chat"})}},e.prototype.toggleChat=function(){var e=this;this.log.d("Toggling chat"),this.chatComponent.toggle().then((function(){e.chatOpened=e.chatComponent.opened,e._toggleChat.next(e.chatOpened),e.chatOpened&&(e.messagesUnread=0,e._messagesUnread.next(e.messagesUnread))}))},e.prototype.isChatOpened=function(){return this.chatOpened},e.prototype.addMessageUnread=function(){this.messagesUnread++,this._messagesUnread.next(this.messagesUnread)},e.\u0275prov=De({token:e,factory:e.\u0275fac=function(t){return new(t||e)(bt(gP),bt(RP),bt(EP),bt(TP),bt(MP))},providedIn:"root"}),e}(),NP=function(){function e(e){this.utilsSrv=e}return e.prototype.transform=function(e){return e?this.utilsSrv.linkify(e):e},e.\u0275fac=function(t){return new(t||e)(ss(SP))},e.\u0275pipe=qt({name:"linkify",type:e,pure:!0}),e}(),LP=["chatScroll"],VP=["chatInput"];function jP(e,t){if(1&e&&(hs(0,"div",13),fs(1,"img",14),hs(2,"div",15),hs(3,"div",16),hs(4,"p"),Ks(5),ds(),ds(),hs(6,"div",17),fs(7,"span",18),fs(8,"p",19),fc(9,"linkify"),ds(),ds(),ds()),2&e){var n=t.$implicit;cs("ngClass",n.isLocal?"right":"left"),$r(1),cs("src",n.userAvatar,Rr),$r(4),Js(n.nickname),$r(3),cs("innerHTML",pc(9,4,n.message),Ar)}}var FP=function(){function e(e){this.chatService=e,this.messageList=[]}return e.prototype.onKeydownHandler=function(e){console.log(e),this.chatOpened&&this.close()},e.prototype.ngOnInit=function(){this.subscribeToMessages(),this.subscribeToToggleChat()},e.prototype.ngOnDestroy=function(){this.chatMessageSubscription&&this.chatMessageSubscription.unsubscribe(),this.chatToggleSubscription&&this.chatToggleSubscription.unsubscribe()},e.prototype.eventKeyPress=function(e){e&&13===e.keyCode&&this.sendMessage()},e.prototype.sendMessage=function(){this.chatService.sendMessage(this.message),this.message=""},e.prototype.scrollToBottom=function(){var e=this;setTimeout((function(){try{e.chatScroll.nativeElement.scrollTop=e.chatScroll.nativeElement.scrollHeight}catch(t){}}),20)},e.prototype.close=function(){this.chatService.toggleChat()},e.prototype.subscribeToMessages=function(){var e=this;this.chatMessageSubscription=this.chatService.messagesObs.subscribe((function(t){e.messageList=t,e.scrollToBottom()}))},e.prototype.subscribeToToggleChat=function(){var e=this;this.chatToggleSubscription=this.chatService.toggleChatObs.subscribe((function(t){e.chatOpened=t,e.chatOpened&&(e.scrollToBottom(),setTimeout((function(){e.chatInput.nativeElement.focus()})))}))},e.\u0275fac=function(t){return new(t||e)(ss(DP))},e.\u0275cmp=Ft({type:e,selectors:[["chat-component"]],viewQuery:function(e,t){var n;1&e&&(Tc(LP,!0),Tc(VP,!0)),2&e&&(Oc(n=Rc())&&(t.chatScroll=n.first),Oc(n=Rc())&&(t.chatInput=n.first))},hostBindings:function(e,t){1&e&&bs("keydown.escape",(function(e){return t.onKeydownHandler(e)}),!1,Ci)},inputs:{lightTheme:"lightTheme"},decls:17,vars:4,consts:[["id","chatContainer"],["id","chatComponent"],["id","chatToolbar"],["mat-icon-button","","id","closeButton",3,"click"],["matTooltip","Close","color","warn"],[1,"message-wrap"],["chatScroll",""],["class","message",3,"ngClass",4,"ngFor","ngForOf"],["id","messageInput"],["placeholder","Send a message","autocomplete","off","id","chatInput",3,"ngModel","keypress","ngModelChange"],["chatInput",""],["mat-mini-fab","","id","sendButton",3,"click"],["matTooltip","Send"],[1,"message",3,"ngClass"],[1,"user-img",3,"src"],[1,"msg-detail"],[1,"msg-info"],[1,"msg-content"],[1,"triangle"],[1,"text",3,"innerHTML"]],template:function(e,t){1&e&&(hs(0,"div",0),hs(1,"div",1),hs(2,"div",2),hs(3,"span"),Ks(4," CHAT"),ds(),hs(5,"button",3),bs("click",(function(){return t.close()})),hs(6,"mat-icon",4),Ks(7,"highlight_off"),ds(),ds(),ds(),hs(8,"div",5,6),os(10,jP,10,6,"div",7),ds(),hs(11,"div",8),hs(12,"input",9,10),bs("keypress",(function(e){return t.eventKeyPress(e)}))("ngModelChange",(function(e){return t.message=e})),ds(),hs(14,"button",11),bs("click",(function(){return t.sendMessage()})),hs(15,"mat-icon",12),Ks(16,"send"),ds(),ds(),ds(),ds(),ds()),2&e&&($r(1),Fs("chatComponentLight",t.lightTheme),$r(9),cs("ngForOf",t.messageList),$r(2),cs("ngModel",t.message))},directives:[Qy,Yw,EC,uh,pd,_d,bf,ah,GE],pipes:[NP],styles:["#chatContainer[_ngcontent-%COMP%]{position:absolute;z-index:0;width:100%;height:calc(100% - 20px)}input[_ngcontent-%COMP%]{font-family:Ubuntu,sans-serif}#chatToolbar[_ngcontent-%COMP%]{height:30px;background-color:#3d3d3d;box-sizing:border-box;font-weight:700;font-size:14px;text-align:center;padding-top:4px;border-top-left-radius:6px;border-top-right-radius:6px;color:#fff}#closeButton[_ngcontent-%COMP%]{position:absolute;right:0;top:-5px}#chatComponent[_ngcontent-%COMP%]{background-color:#b8b8b8;position:absolute;z-index:99999;top:0;left:0;right:0;bottom:0;margin:auto;height:calc(100% - 30px);width:calc(100% - 30px);border-radius:20px}.message-wrap[_ngcontent-%COMP%]{padding:0 15px;height:calc(100% - 80px);overflow:auto}.message[_ngcontent-%COMP%]{position:relative;padding:7px 0}.user-img[_ngcontent-%COMP%]{position:absolute;border-radius:45px;width:60px;height:60px;top:15px}.msg-detail[_ngcontent-%COMP%]{width:calc(100% - 65px);display:inline-block}.msg-detail[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:15px}.msg-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.8em;color:#000;font-style:italic}.msg-content[_ngcontent-%COMP%]{position:relative;margin-top:5px;border-radius:5px;padding:8px;color:#000;width:auto;max-width:95%}span.triangle[_ngcontent-%COMP%]{border-radius:2px;height:8px;width:8px;top:12px;display:block;transform:rotate(45deg);position:absolute}.text[_ngcontent-%COMP%]{word-break:break-all}.message.left[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%] .msg-info[_ngcontent-%COMP%]{text-align:left}.message.left[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%]{padding-left:65px}.message.left[_ngcontent-%COMP%] .user-img[_ngcontent-%COMP%]{left:-5px;border:1px solid hsla(0,0%,94.1%,.58)}.message.left[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%] .msg-content[_ngcontent-%COMP%]{background-color:#f0f0f0;float:left}.message.left[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%] .msg-content[_ngcontent-%COMP%] span.triangle[_ngcontent-%COMP%]{background-color:#f0f0f0;border-bottom-width:0;border-left-width:0;left:-5px}.message.right[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%] .msg-info[_ngcontent-%COMP%]{text-align:right}.message.right[_ngcontent-%COMP%] .user-img[_ngcontent-%COMP%]{right:-5px;border:1px solid rgba(200,255,232,.67)}.message.right[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%] .msg-content[_ngcontent-%COMP%]{background-color:#c8ffe8;float:right}.message.right[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%] .msg-content[_ngcontent-%COMP%] span.triangle[_ngcontent-%COMP%]{background-color:#c8ffe8;border-bottom-width:0;border-left-width:0;right:-5px}#messageInput[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%;background-color:#fff;text-align:center;padding:10px 0;height:30px;border-bottom-left-radius:6px;border-bottom-right-radius:6px}#messageInput[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:90%;height:100%;border:none;outline:none;font-size:14px;margin-left:-6%}#sendButton[_ngcontent-%COMP%]{background-color:#81e9b0;position:absolute;right:10px;top:0;bottom:0;margin:auto;border:1px solid #7ae2a9;box-shadow:none!important}#sendButton[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:3px!important;margin-bottom:2px!important}[_ngcontent-%COMP%]::-webkit-scrollbar{width:8px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#6b6b6b}.chatComponentLight[_ngcontent-%COMP%] [_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#eee!important}"]}),e}(),BP=function(){function e(){this.ovSettings={chat:!0,autopublish:!1,toolbar:!0,footer:!0,toolbarButtons:{video:!0,audio:!0,fullscreen:!0,screenShare:!0,layoutSpeaking:!0,exit:!0}}}return e.prototype.set=function(e){this.ovSettings=e},e.prototype.isAutoPublish=function(){return this.ovSettings.autopublish},e.prototype.hasVideo=function(){return this.ovSettings.toolbarButtons.video},e.prototype.hasScreenSharing=function(){return this.ovSettings.toolbarButtons.screenShare},e.prototype.hasLayoutSpeaking=function(){return this.ovSettings.toolbarButtons.layoutSpeaking},e.prototype.hasFullscreen=function(){return this.ovSettings.toolbarButtons.fullscreen},e.prototype.hasAudio=function(){return this.ovSettings.toolbarButtons.audio},e.prototype.hasChat=function(){return this.ovSettings.chat},e.prototype.hasExit=function(){return this.ovSettings.toolbarButtons.exit},e.prototype.setScreenSharing=function(e){this.ovSettings.toolbarButtons.screenShare=e},e.prototype.hasFooter=function(){return this.ovSettings.footer},e.prototype.hasToolbar=function(){return this.ovSettings.toolbar},e}(),UP=function(e){return e.DARK="dark",e.LIGHT="light",e}({}),zP=function(){function e(){this.theme=UP.DARK,this.ovSettings=new BP}return e.prototype.getComponentName=function(){},e.prototype.getOvSettings=function(){return this.ovSettings},e.prototype.getSessionName=function(){return this.sessionName},e.prototype.getOvServerUrl=function(){return this.ovServerUrl},e.prototype.getOvSecret=function(){return this.ovSecret},e.prototype.getTheme=function(){return this.theme},e.prototype.getNickname=function(){return this.nickname},e.prototype.getTokens=function(){return this.tokens},e.prototype.getScreenToken=function(){return this.tokens[1]},e.prototype.getWebcamToken=function(){return this.tokens[0]},e.prototype.setOvSettings=function(e){e&&this.ovSettings.set(e)},e.prototype.setSessionName=function(e){this.sessionName=e},e.prototype.setOvServerUrl=function(e){this.ovServerUrl=e},e.prototype.setOvSecret=function(e){this.ovSecret=e},e.prototype.setTheme=function(e){Object.values(UP).includes(e)&&(this.theme=e===UP.DARK?UP.DARK:UP.LIGHT)},e.prototype.setNickname=function(e){this.nickname=e},e.prototype.setTokens=function(e){this.tokens=e},e.prototype.canJoinToSession=function(){return this.canOVCallGenerateToken()||this.hasReceivedToken()},e.prototype.hasTokens=function(){var e;return(null===(e=this.tokens)||void 0===e?void 0:e.length)>0},e.prototype.canOVCallGenerateToken=function(){return!!(this.sessionName&&this.ovServerUrl&&this.ovSecret&&this.nickname)},e.prototype.hasReceivedToken=function(){return!!this.tokens&&this.tokens.length>0&&!!this.nickname},e}(),WP=function(e){return e.USER_NICKNAME="openviduCallNickname",e.VIDEO_DEVICE="openviduCallVideoDevice",e.AUDIO_DEVICE="openviduCallAudioDevice",e}({}),HP=function(e){return e.FRONT="FRONT",e.BACK="BACK",e}({}),GP=function(){function e(e){this.loggerSrv=e,this.storage=window.localStorage,this.log=this.loggerSrv.get("StorageService")}return e.prototype.set=function(e,t){var n=JSON.stringify({item:t});this.storage.setItem(e,n)},e.prototype.get=function(e){var t=JSON.parse(this.storage.getItem(e));return(null==t?void 0:t.item)?t.item:null},e.prototype.clear=function(){this.log.d("Clearing localStorage"),this.storage.clear()},e.\u0275prov=De({token:e,factory:e.\u0275fac=function(t){return new(t||e)(bt(gP))},providedIn:"root"}),e}(),qP=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{u(i.next(e))}catch(t){o(t)}}function s(e){try{u(i.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((i=i.apply(e,t||[])).next())}))},ZP=function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},QP=function(){function e(e,t,n){this.loggerSrv=e,this.utilSrv=t,this.storageSrv=n,this.OV=null,this.cameras=[],this.microphones=[],this.log=this.loggerSrv.get("DevicesService"),this.OV=new PP.OpenVidu}return e.prototype.initDevices=function(){return qP(this,void 0,void 0,(function(){return ZP(this,(function(e){switch(e.label){case 0:return[4,this.initOpenViduDevices()];case 1:return e.sent(),this.devices.length>0?this.log.d("Devices found: ",this.devices):this.log.w("No devices found!"),this.resetDevicesArray(),this.hasAudioDeviceAvailable()&&(this.initAudioDevices(),this.micSelected=this.getMicSelected()),this.hasVideoDeviceAvailable()&&(this.initVideoDevices(),this.camSelected=this.cameras.find((function(e){return e.type===HP.FRONT}))),[2]}}))}))},e.prototype.initOpenViduDevices=function(){return qP(this,void 0,void 0,(function(){var e;return ZP(this,(function(t){switch(t.label){case 0:return e=this,[4,this.OV.getDevices()];case 1:return e.devices=t.sent(),[2]}}))}))},e.prototype.initAudioDevices=function(){var e=this;this.devices.filter((function(e){return"audioinput"===e.kind})).forEach((function(t){e.microphones.push({label:t.label,device:t.deviceId})}))},e.prototype.initVideoDevices=function(){var e=this;this.devices.filter((function(e){return"videoinput"===e.kind})).forEach((function(t,n){var i={label:t.label,device:t.deviceId,type:HP.BACK};e.utilSrv.isMobile()?i.label.toLowerCase().includes(HP.FRONT.toLowerCase())&&(i.type=HP.FRONT):0===n&&(i.type=HP.FRONT),e.cameras.push(i)})),this.log.d("Camera selected",this.camSelected)},e.prototype.getCamSelected=function(){if(0!==this.cameras.length)return this.getCamFromStorage()||this.camSelected||this.cameras[0];this.log.e("No video devices found!")},e.prototype.getCamFromStorage=function(){var e=this.storageSrv.get(WP.VIDEO_DEVICE);if(e=this.getCameraByDeviceField(null==e?void 0:e.device))return e},e.prototype.getMicSelected=function(){if(0!==this.microphones.length)return this.getMicFromStogare()||this.micSelected||this.microphones[0];this.log.e("No audio devices found!")},e.prototype.getMicFromStogare=function(){var e=this.storageSrv.get(WP.AUDIO_DEVICE);if(e=this.getMicrophoneByDeviceField(null==e?void 0:e.device))return e},e.prototype.setCamSelected=function(e){this.camSelected=this.getCameraByDeviceField(e),this.saveCamToStorage(this.camSelected)},e.prototype.saveCamToStorage=function(e){this.storageSrv.set(WP.VIDEO_DEVICE,e)},e.prototype.setMicSelected=function(e){this.micSelected=this.getMicrophoneByDeviceField(e),this.saveMicToStorage(this.micSelected)},e.prototype.saveMicToStorage=function(e){this.storageSrv.set(WP.AUDIO_DEVICE,e)},e.prototype.needUpdateVideoTrack=function(e){return this.getCamSelected().device!==e},e.prototype.needUpdateAudioTrack=function(e){return this.getMicSelected().device!==e},e.prototype.getCameras=function(){return this.cameras},e.prototype.getMicrophones=function(){return this.microphones},e.prototype.hasVideoDeviceAvailable=function(){var e;return!this.videoDevicesDisabled&&!!(null===(e=this.devices)||void 0===e?void 0:e.find((function(e){return"videoinput"===e.kind})))},e.prototype.hasAudioDeviceAvailable=function(){var e;return!!(null===(e=this.devices)||void 0===e?void 0:e.find((function(e){return"audioinput"===e.kind})))},e.prototype.cameraNeedsMirror=function(e){var t;return(null===(t=this.getCameraByDeviceField(e))||void 0===t?void 0:t.type)===HP.FRONT},e.prototype.areEmptyLabels=function(){return!!this.cameras.find((function(e){return""===e.label}))||!!this.microphones.find((function(e){return""===e.label}))},e.prototype.disableVideoDevices=function(){this.videoDevicesDisabled=!0},e.prototype.clear=function(){this.OV=new PP.OpenVidu,this.devices=[],this.cameras=[],this.microphones=[],this.camSelected=null,this.micSelected=null,this.videoDevicesDisabled=!1},e.prototype.getCameraByDeviceField=function(e){return this.cameras.find((function(t){return t.device===e||t.label===e}))},e.prototype.getMicrophoneByDeviceField=function(e){return this.microphones.find((function(t){return t.device===e||t.label===e}))},e.prototype.resetDevicesArray=function(){this.cameras=[{label:"None",device:null,type:null}],this.microphones=[{label:"None",device:null,type:null}]},e.\u0275prov=De({token:e,factory:e.\u0275fac=function(t){return new(t||e)(bt(gP),bt(SP),bt(GP))},providedIn:"root"}),e}(),YP=function(){function e(){}return e.prototype.updateLayout=function(){var e=this;setTimeout((function(){if("none"!==e.layoutContainer.style.display){var t=e.layoutContainer.id;t||(t="OT_"+e.cheapUUID(),e.layoutContainer.id=t);var n=Array.prototype.filter.call(e.layoutContainer.querySelectorAll("#"+t+">."+e.opts.smallClass),e.filterDisplayNone),i=Array.prototype.filter.call(e.layoutContainer.querySelectorAll("#"+t+">."+e.opts.bigClass),e.filterDisplayNone).filter((function(e){return!n.includes(e)})),r=Array.prototype.filter.call(e.layoutContainer.querySelectorAll("#"+t+">*:not(."+e.opts.bigClass+")"),e.filterDisplayNone).filter((function(e){return!n.includes(e)}));e.attachElements(i,r,n)}}),50)},e.prototype.initLayoutContainer=function(e,t){this.opts={maxRatio:null!=t.maxRatio?t.maxRatio:1.5,minRatio:null!=t.minRatio?t.minRatio:9/16,fixedRatio:null!=t.fixedRatio&&t.fixedRatio,animate:null!=t.animate&&t.animate,bigClass:null!=t.bigClass?t.bigClass:"OT_big",smallClass:null!=t.smallClass?t.smallClass:"OT_small",bigPercentage:null!=t.bigPercentage?t.bigPercentage:.8,bigFixedRatio:null!=t.bigFixedRatio&&t.bigFixedRatio,bigMaxRatio:null!=t.bigMaxRatio?t.bigMaxRatio:1.5,bigMinRatio:null!=t.bigMinRatio?t.bigMinRatio:9/16,bigFirst:null==t.bigFirst||t.bigFirst},this.layoutContainer=e},e.prototype.setLayoutOptions=function(e){this.opts=e},e.prototype.fixAspectRatio=function(e,t){var n=e.querySelector(".OT_root");if(n){var i=n.style.width;n.style.width=t+"px",n.style.width=i||""}},e.prototype.positionElement=function(e,t,n,i,r,o){var a=this,s={left:t+"px",top:n+"px",width:i+"px",height:r+"px"};this.fixAspectRatio(e,i),setTimeout((function(){e.style.left=s.left,e.style.top=s.top,e.style.width=s.width,e.style.height=s.height,a.fixAspectRatio(e,i)}),10)},e.prototype.getVideoRatio=function(e){if(!e)return 3/4;var t=e.querySelector("video");return t&&t.videoHeight&&t.videoWidth?t.videoHeight/t.videoWidth:e.videoHeight&&e.videoWidth?e.videoHeight/e.videoWidth:3/4},e.prototype.getCSSNumber=function(e,t){var n=window.getComputedStyle(e)[t];return n?parseInt(n,10):0},e.prototype.cheapUUID=function(){return(1e8*Math.random()).toFixed(0)},e.prototype.getHeight=function(e){var t=window.getComputedStyle(e).height;return t?parseInt(t,10):0},e.prototype.getWidth=function(e){var t=window.getComputedStyle(e).width;return t?parseInt(t,10):0},e.prototype.getBestDimensions=function(e,t,n,i,r,o){for(var a,s,u,c,l,h,d,f=1;f<=n;f++){var p=f,v=Math.ceil(n/p);(d=(h=Math.floor(r/v))/(l=Math.floor(i/p)))>t?h=l*(d=t):d<e&&(l=h/(d=e));var m=l*h*n;(void 0===a||m>a)&&(a=m,o=h,c=l,s=p,u=v)}return{maxArea:a,targetCols:s,targetRows:u,targetHeight:o,targetWidth:c,ratio:o/c}},e.prototype.arrange=function(e,t,n,i,r,o,a,s,u){var c,l,h=e.length;if(o){var d=this.getVideoRatio(e.length>0?e[0]:null);l=this.getBestDimensions(d,d,h,t,n,c)}else l=this.getBestDimensions(a,s,h,t,n,c);for(var f,p=0,v=0,m=[],g=0;g<e.length;g++){g%l.targetCols==0&&m.push(f={children:[],width:0,height:0}),f.children.push(C=e[g]);var y=l.targetWidth;c=l.targetHeight,o&&(y=c/this.getVideoRatio(C)),f.width+=y,f.height=c}var b=0,_=0;for(g=0;g<m.length;g++)(f=m[g]).width>t?(f.height=Math.floor(f.height*(t/f.width)),f.width=t):f.width<t&&(_+=1),b+=f.height;if(b<n&&_>0){var k=n-b;for(b=0,g=0;g<m.length;g++){if((f=m[g]).width<t){var w=k/_;w/f.height>(t-f.width)/f.width&&(w=Math.floor((t-f.width)/f.width*f.height)),f.width+=Math.floor(w/f.height*f.width),f.height+=w,k-=w,_-=1}b+=f.height}}for(v=(n-b)/2,g=0;g<m.length;g++){p=(t-(f=m[g]).width)/2;for(var S=0;S<f.children.length;S++){var C=f.children[S];y=l.targetWidth,c=f.height,o&&(y=Math.floor(c/this.getVideoRatio(C))),C.style.position="absolute";var E=y-this.getCSSNumber(C,"paddingLeft")-this.getCSSNumber(C,"paddingRight")-this.getCSSNumber(C,"marginLeft")-this.getCSSNumber(C,"marginRight")-this.getCSSNumber(C,"borderLeft")-this.getCSSNumber(C,"borderRight"),O=c-this.getCSSNumber(C,"paddingTop")-this.getCSSNumber(C,"paddingBottom")-this.getCSSNumber(C,"marginTop")-this.getCSSNumber(C,"marginBottom")-this.getCSSNumber(C,"borderTop")-this.getCSSNumber(C,"borderBottom");this.positionElement(C,p+i,v+r,E,O,u),p+=y}v+=c}},e.prototype.attachElements=function(e,t,n){var i=this.getHeight(this.layoutContainer)-this.getCSSNumber(this.layoutContainer,"borderTop")-this.getCSSNumber(this.layoutContainer,"borderBottom"),r=this.getWidth(this.layoutContainer)-this.getCSSNumber(this.layoutContainer,"borderLeft")-this.getCSSNumber(this.layoutContainer,"borderRight");if(this.existBigAndNormalOnes(e,t,n))this.arrangeBigAndSmallOnes(e.length>0?e:t,n.length>0?n:t);else if(this.onlyExistBigOnes(e,t,n))this.arrange(e,r,i,0,0,this.opts.bigFixedRatio,this.opts.bigMinRatio,this.opts.bigMaxRatio,this.opts.animate);else if(this.existBigAndNormalAndSmallOnes(e,t,n))this.arrangeBigAndSmallOnes(e,t.concat(n));else{var o=t.concat(n);this.arrange(o,r-0,i-0,0,0,this.opts.fixedRatio,this.opts.minRatio,this.opts.maxRatio,this.opts.animate)}},e.prototype.arrangeBigAndSmallOnes=function(e,t){var n,i,r=this.getHeight(this.layoutContainer)-this.getCSSNumber(this.layoutContainer,"borderTop")-this.getCSSNumber(this.layoutContainer,"borderBottom"),o=this.getWidth(this.layoutContainer)-this.getCSSNumber(this.layoutContainer,"borderLeft")-this.getCSSNumber(this.layoutContainer,"borderRight"),a=0,s=0,u=0,c=0;r/o>this.getVideoRatio(e[0])?(n=o,u=r-(s=i=Math.floor(r*this.opts.bigPercentage))):(i=r,c=o-(a=n=Math.floor(o*this.opts.bigPercentage))),this.opts.bigFirst?(this.arrange(e,n,i,0,0,this.opts.bigFixedRatio,this.opts.bigMinRatio,this.opts.bigMaxRatio,this.opts.animate),this.arrange(t,o-a,r-s,a,s,this.opts.fixedRatio,this.opts.minRatio,this.opts.maxRatio,this.opts.animate)):(this.arrange(t,o-a,r-s,0,0,this.opts.fixedRatio,this.opts.minRatio,this.opts.maxRatio,this.opts.animate),this.arrange(e,n,i,c,u,this.opts.bigFixedRatio,this.opts.bigMinRatio,this.opts.bigMaxRatio,this.opts.animate))},e.prototype.existBigAndNormalOnes=function(e,t,n){return e.length>0&&t.length>0&&0===n.length||e.length>0&&0===t.length&&n.length>0||0===e.length&&t.length>0&&n.length>0},e.prototype.onlyExistBigOnes=function(e,t,n){return e.length>0&&0===t.length&&0===n.length},e.prototype.existBigAndNormalAndSmallOnes=function(e,t,n){return e.length>0&&t.length>0&&n.length>0},e.prototype.filterDisplayNone=function(e){return"none"!==e.style.display},e}(),KP=function(){function e(){}return e.prototype.initialize=function(){this.openviduLayout=new YP,this.openviduLayoutOptions=this.getOptions(),this.openviduLayout.initLayoutContainer(document.getElementById("layout"),this.openviduLayoutOptions)},e.prototype.getOptions=function(){return{maxRatio:1.5,minRatio:.6,fixedRatio:!1,bigClass:_P.BIG_ELEMENT,smallClass:_P.SMALL_ELEMENT,bigPercentage:.85,bigFixedRatio:!1,bigMaxRatio:1.5,bigMinRatio:9/16,bigFirst:!0,animate:!0}},e.prototype.update=function(e){var t=this;if(this.openviduLayout){if(!e)return void this.openviduLayout.updateLayout();setTimeout((function(){t.openviduLayout.updateLayout()}),e)}},e.prototype.getLayout=function(){return this.openviduLayout},e.prototype.clear=function(){this.openviduLayout=null},e.\u0275prov=De({token:e,factory:e.\u0275fac=function(t){return new(t||e)},providedIn:"root"}),e}(),JP=n("vLqr"),XP=n("rNzc"),$P=function(){function e(e,t){this.http=e,this.loggerSrv=t,this.log=this.loggerSrv.get("NetworkService"),this.baseHref="/"+(window.location.pathname.split("/")[1]?window.location.pathname.split("/")[1]+"/":"")}return e.prototype.getToken=function(e,t,n){return i=this,void 0,o=function(){var i,r;return function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,(function(o){switch(o.label){case 0:return t&&n?[4,this.createSession(e,t,n)]:[3,3];case 1:return i=o.sent(),[4,this.createToken(i,t,n)];case 2:return[2,o.sent()];case 3:return o.trys.push([3,5,,6]),this.log.d("Getting token from backend"),[4,this.http.post(this.baseHref+"call",{sessionId:e}).toPromise()];case 4:return[2,o.sent()];case 5:if(404===(r=o.sent()).status)throw{status:r.status,message:"Cannot connect with backend. "+r.url+" not found"};throw r;case 6:return[2]}}))},new((r=void 0)||(r=Promise))((function(e,t){function n(e){try{s(o.next(e))}catch(n){t(n)}}function a(e){try{s(o.throw(e))}catch(n){t(n)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof r?i:new r((function(e){e(i)}))).then(n,a)}s((o=o.apply(i,[])).next())}));var i,r,o},e.prototype.createSession=function(e,t,n){var i=this;return new Promise((function(r,o){var a=JSON.stringify({customSessionId:e}),s={headers:new ow({Authorization:"Basic "+btoa("OPENVIDUAPP:"+n),"Content-Type":"application/json"})};return i.http.post(t+"/openvidu/api/sessions",a,s).pipe(Object(XP.catchError)((function(t){return 409===t.status&&r(e),"Unknown Error"===t.statusText&&o({status:401,message:"ERR_CERT_AUTHORITY_INVALID"}),Object(JP.throwError)(t)}))).subscribe((function(e){r(e.id)}))}))},e.prototype.createToken=function(e,t,n){var i=this;return new Promise((function(r,o){var a=JSON.stringify({}),s={headers:new ow({Authorization:"Basic "+btoa("OPENVIDUAPP:"+n),"Content-Type":"application/json"})};return i.http.post(t+"/openvidu/api/sessions/"+e+"/connection",a,s).pipe(Object(XP.catchError)((function(e){return o(e),Object(JP.throwError)(e)}))).subscribe((function(e){i.log.d(e),r(e.token)}))}))},e.\u0275prov=De({token:e,factory:e.\u0275fac=function(t){return new(t||e)(bt(_w),bt(gP))},providedIn:"root"}),e}(),eI=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{u(i.next(e))}catch(t){o(t)}}function s(e){try{u(i.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((i=i.apply(e,t||[])).next())}))},tI=function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},nI=function(){function e(e,t){this.loggerSrv=e,this.networkSrv=t,this.webcamToken="",this.screenToken="",this.sessionId="",this.log=this.loggerSrv.get("TokenService")}return e.prototype.initialize=function(e){this.ovSettings=e},e.prototype.setSessionId=function(e){this.sessionId=e},e.prototype.getSessionId=function(){return this.sessionId},e.prototype.initTokens=function(e){var t,n;return eI(this,void 0,void 0,(function(){return tI(this,(function(i){switch(i.label){case 0:return e&&e.hasTokens()?(this.log.d("Received external tokens from "+e.getComponentName()),this.webcamToken=e.getWebcamToken(),this.screenToken=(null===(t=this.ovSettings)||void 0===t?void 0:t.hasScreenSharing())?e.getScreenToken():void 0,[2]):(this.log.d("No external tokens received. Generating token..."),[4,this.generateWebcamToken(this.sessionId,null==e?void 0:e.getOvServerUrl(),null==e?void 0:e.getOvSecret())]);case 1:return i.sent(),(null===(n=this.ovSettings)||void 0===n?void 0:n.hasScreenSharing())?[4,this.generateScreenToken(this.sessionId,null==e?void 0:e.getOvServerUrl(),null==e?void 0:e.getOvSecret())]:[3,3];case 2:i.sent(),i.label=3;case 3:return[2]}}))}))},e.prototype.getWebcamToken=function(){return this.webcamToken},e.prototype.getScreenToken=function(){return this.screenToken},e.prototype.generateWebcamToken=function(e,t,n){return eI(this,void 0,void 0,(function(){var i;return tI(this,(function(r){switch(r.label){case 0:return this.log.d("Generating webcam token..."),i=this,[4,this.networkSrv.getToken(e,t,n)];case 1:return i.webcamToken=r.sent(),[2]}}))}))},e.prototype.generateScreenToken=function(e,t,n){return eI(this,void 0,void 0,(function(){var i;return tI(this,(function(r){switch(r.label){case 0:return this.log.d("Generating screen token..."),i=this,[4,this.networkSrv.getToken(e,t,n)];case 1:return i.screenToken=r.sent(),[2]}}))}))},e.\u0275prov=De({token:e,factory:e.\u0275fac=function(t){return new(t||e)(bt(gP),bt($P))},providedIn:"root"}),e}(),iI=function(){function e(){}return e.prototype.isErrorState=function(e,t){return!!(e&&e.invalid&&(e.dirty||e.touched||t&&t.submitted))},e}(),rI=n("Tt94"),oI=["videoElement"];function aI(e,t){1&e&&fs(0,"img",3)}var sI=function(){function e(){this.toggleVideoSizeEvent=new vc}return e.prototype.ngAfterViewInit=function(){var e=this;setTimeout((function(){e._streamManager&&e._videoElement&&e._streamManager.addVideoElement(e._videoElement.nativeElement)}))},Object.defineProperty(e.prototype,"videoElement",{set:function(e){this._videoElement=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"streamManager",{set:function(e){var t=this;setTimeout((function(){t._streamManager=e,t._videoElement&&t._streamManager&&(t._streamManager.stream.typeOfVideo===pP.SCREEN?(t._videoElement.nativeElement.style.objectFit="contain",t._videoElement.nativeElement.style.background="#272727",t.enableVideoSizeBig()):t._videoElement.nativeElement.style.objectFit="cover",t._streamManager.addVideoElement(t._videoElement.nativeElement))}))},enumerable:!1,configurable:!0}),e.prototype.enableVideoSizeBig=function(){var e=this;setTimeout((function(){e.toggleVideoSizeEvent.emit(!0)}),590)},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ft({type:e,selectors:[["ov-video"]],viewQuery:function(e,t){var n;1&e&&Tc(oI,!0),2&e&&Oc(n=Rc())&&(t.videoElement=n.first)},inputs:{mutedSound:"mutedSound",streamManager:"streamManager"},outputs:{toggleVideoSizeEvent:"toggleVideoSizeEvent"},decls:3,vars:3,consts:[["class","poster_img","alt","OpenVidu Logo","src","../../../../assets/images/poster.png",4,"ngIf"],[3,"muted"],["videoElement",""],["alt","OpenVidu Logo","src","../../../../assets/images/poster.png",1,"poster_img"]],template:function(e,t){1&e&&(os(0,aI,1,0,"img",0),fs(1,"video",1,2)),2&e&&(cs("ngIf",!(null!=t._streamManager&&null!=t._streamManager.stream&&t._streamManager.stream.videoActive)),$r(1),cs("muted",t.mutedSound),is("id",t.streamManager&&t._streamManager.stream?"video-"+t._streamManager.stream.streamId:"video-undefined"))},directives:[lh],styles:[".nickname[_ngcontent-%COMP%]{padding:0;position:absolute;z-index:999;border-radius:5px;color:#fff;font-family:Ubuntu,sans-serif}.nicknameContainer[_ngcontent-%COMP%]{background-color:#424242;padding:5px;color:#fff;font-weight:700}#dialogNickname[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.37);border-radius:5px}#closeButton[_ngcontent-%COMP%]{position:absolute;top:-3px;right:0;z-index:999}#nicknameForm[_ngcontent-%COMP%]{padding:10px}.fullscreen[_ngcontent-%COMP%]{top:40px}mat-error[_ngcontent-%COMP%]{text-align:center;color:#353535}video[_ngcontent-%COMP%]{-o-object-fit:cover;object-fit:cover;width:100%;height:100%;color:#fff;margin:0;padding:0;border:0;font-size:100%}.statusIcons[_ngcontent-%COMP%]{bottom:0;left:5px;width:40px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;position:absolute;color:#fff;z-index:999}.statusIcons[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{vertical-align:-webkit-baseline-middle;vertical-align:-moz-middle-with-baseline;font-size:20px}.videoButtons[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:24px}.videoButtons[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{line-height:0}#camStatus[_ngcontent-%COMP%]{bottom:43px}#statusCam[_ngcontent-%COMP%], #statusMic[_ngcontent-%COMP%]{text-align:center;width:28px;height:28px;border-radius:50%;background:#c71100;margin:5px auto}.videoButtons[_ngcontent-%COMP%]{right:0;position:absolute;bottom:0;z-index:10;width:50px;text-align:center}.videoButtons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#000;width:30px;height:30px;margin:1px}.OT_widget-container[_ngcontent-%COMP%]{width:100%;height:100%;position:absolute;overflow:hidden;background-color:#000} .mat-focused .mat-form-field-label, .mat-form-field-appearance-legacy .mat-form-field-label, mat-error[_ngcontent-%COMP%]{color:#cacaca!important} .mat-form-field-appearance-legacy .mat-form-field-underline, .mat-form-field.mat-focused .mat-form-field-ripple{background-color:#cacaca!important}input[_ngcontent-%COMP%]{caret-color:#fff!important}.poster_img[_ngcontent-%COMP%]{position:absolute;z-index:888;max-width:70%;max-height:70%;bottom:0;top:0;margin:auto;right:0;left:0}"]}),e}(),uI=function(){function e(){}return e.prototype.transform=function(e){return!e||e.hasChat()},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=qt({name:"hasChat",type:e,pure:!0}),e}(),cI=function(){function e(){}return e.prototype.transform=function(e){return!e||e.hasAudio()},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=qt({name:"hasAudio",type:e,pure:!0}),e}(),lI=function(){function e(){}return e.prototype.transform=function(e){return!e||e.hasVideo()},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=qt({name:"hasVideo",type:e,pure:!0}),e}(),hI=function(){function e(){}return e.prototype.transform=function(e){return!e||e.isAutoPublish()},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=qt({name:"isAutoPublish",type:e,pure:!0}),e}(),dI=function(){function e(){}return e.prototype.transform=function(e){return!e||e.hasScreenSharing()},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=qt({name:"hasScreenSharing",type:e,pure:!0}),e}(),fI=function(){function e(){}return e.prototype.transform=function(e){return!e||e.hasFullscreen()},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=qt({name:"hasFullscreen",type:e,pure:!0}),e}(),pI=function(){function e(){}return e.prototype.transform=function(e){return!e||e.hasLayoutSpeaking()},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=qt({name:"hasLayoutSpeaking",type:e,pure:!0}),e}(),vI=function(){function e(){}return e.prototype.transform=function(e){return!e||e.hasExit()},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=qt({name:"hasExit",type:e,pure:!0}),e}(),mI=function(){function e(){}return e.prototype.transform=function(e){return!e||e.hasToolbar()},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=qt({name:"hasToolbar",type:e,pure:!0}),e}(),gI=function(){function e(){}return e.prototype.transform=function(e){return!e||e.hasFooter()},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=qt({name:"hasFooter",type:e,pure:!0}),e}(),yI=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{u(i.next(e))}catch(t){o(t)}}function s(e){try{u(i.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((i=i.apply(e,t||[])).next())}))},bI=function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},_I=["bodyCard"];function kI(e,t){if(1&e&&fs(0,"ov-video",35),2&e){var n=Es(),i=n.$implicit,r=n.index,o=Es(2);cs("streamManager",i.streamManager)("className",o.localUsers.length>1&&0===r?"ovVideoSmall":"")}}function wI(e,t){1&e&&(hs(0,"span"),Ks(1,"Oops! Camera and microphone are not available"),ds())}function SI(e,t){1&e&&(hs(0,"span"),Ks(1,"Oops! Camera is not available"),ds())}function CI(e,t){1&e&&(hs(0,"span"),Ks(1,"Oops! Microphone is not available"),ds())}function EI(e,t){if(1&e&&(hs(0,"div",36),os(1,wI,2,0,"span",29),os(2,SI,2,0,"span",29),os(3,CI,2,0,"span",29),ds()),2&e){var n=Es(3);$r(1),cs("ngIf",!n.hasVideoDevices&&!n.hasAudioDevices),$r(1),cs("ngIf",!n.hasVideoDevices&&n.hasAudioDevices),$r(1),cs("ngIf",n.hasVideoDevices&&!n.hasAudioDevices)}}function OI(e,t){if(1&e&&(hs(0,"div"),os(1,kI,1,2,"ov-video",33),os(2,EI,4,3,"div",34),ds()),2&e){var n=t.$implicit,i=Es(2);$r(1),cs("ngIf",n.isCamera()&&i.hasVideoDevices||n.isScreen()),$r(1),cs("ngIf",n.isCamera()&&!i.hasVideoDevices)}}function xI(e,t){if(1&e){var n=ms();hs(0,"div",37),hs(1,"button",38),bs("click",(function(){return An(n),Es(2).captureAvatar()})),hs(2,"mat-icon",39),Ks(3,"photo_camera"),ds(),hs(4,"span",40),Ks(5,"Capture Avatar"),ds(),ds(),ds()}}function TI(e,t){1&e&&(hs(0,"div",41),hs(1,"h3"),Ks(2,"Avatar"),ds(),ds())}function MI(e,t){1&e&&(hs(0,"div",47),hs(1,"span"),Ks(2,"Press Avatar Button"),ds(),ds())}function PI(e,t){1&e&&fs(0,"img",48),2&e&&cs("src",Es(3).capturedAvatar,Rr)}function II(e,t){1&e&&fs(0,"img",48),2&e&&cs("src",Es(3).openviduAvatar,Rr)}function AI(e,t){if(1&e){var n=ms();hs(0,"div",42),hs(1,"div",43),hs(2,"div",44),bs("click",(function(){An(n);var e=Es(2);return e.onSelectAvatar(e.avatarTypeEnum.CAPTURED)})),os(3,MI,3,0,"div",45),os(4,PI,1,1,"img",46),ds(),hs(5,"div",44),bs("click",(function(){An(n);var e=Es(2);return e.onSelectAvatar(e.avatarTypeEnum.DEFAULT)})),os(6,II,1,1,"img",46),ds(),ds(),ds()}if(2&e){var i=Es(2);$r(2),js("background",i.avatarSelected===i.avatarTypeEnum.CAPTURED?"lightgreen":"transparent"),$r(1),cs("ngIf",!i.capturedAvatar),$r(1),cs("ngIf",i.capturedAvatar),$r(1),js("background",i.avatarSelected===i.avatarTypeEnum.DEFAULT?"lightgreen":"transparent"),$r(1),cs("ngIf",i.openviduAvatar)}}function RI(e,t){1&e&&(hs(0,"mat-error"),Ks(1," Nickname is "),hs(2,"strong"),Ks(3,"required"),ds(),ds())}function DI(e,t){1&e&&(hs(0,"mat-error"),Ks(1," Nickname is "),hs(2,"strong"),Ks(3,"too long!"),ds(),ds())}function NI(e,t){1&e&&(hs(0,"mat-icon",55),Ks(1,"mic"),ds())}function LI(e,t){1&e&&(hs(0,"mat-icon",56),Ks(1,"mic_off"),ds())}function VI(e,t){if(1&e&&(hs(0,"mat-option",57),Ks(1),ds()),2&e){var n=t.$implicit;cs("value",n.device),$r(1),Xs(" ",n.label," ")}}function jI(e,t){if(1&e){var n=ms();hs(0,"div",21),hs(1,"div",22),hs(2,"div",23),hs(3,"button",49),bs("click",(function(){return An(n),Es(2).toggleMic()})),os(4,NI,2,0,"mat-icon",50),os(5,LI,2,0,"mat-icon",51),ds(),ds(),hs(6,"div",26),hs(7,"mat-form-field",52),hs(8,"mat-select",53),bs("selectionChange",(function(e){return An(n),Es(2).onMicrophoneSelected(e)})),os(9,VI,2,2,"mat-option",54),ds(),ds(),ds(),ds(),ds()}if(2&e){var i=Es(2);$r(4),cs("ngIf",i.isAudioActive),$r(1),cs("ngIf",!i.isAudioActive),$r(3),cs("ngModel",i.isAudioActive&&i.micSelected?i.micSelected.device:"None"),$r(1),cs("ngForOf",i.microphones)}}function FI(e,t){1&e&&(hs(0,"mat-icon",62),Ks(1,"videocam"),ds())}function BI(e,t){1&e&&(hs(0,"mat-icon",63),Ks(1,"videocam_off"),ds())}function UI(e,t){if(1&e&&(hs(0,"mat-option",57),Ks(1),ds()),2&e){var n=t.$implicit;cs("value",n.device),$r(1),Xs(" ",n.label," ")}}function zI(e,t){if(1&e){var n=ms();hs(0,"div",21),hs(1,"div",22),hs(2,"div",23),hs(3,"button",58),bs("click",(function(){return An(n),Es(2).toggleCam()})),os(4,FI,2,0,"mat-icon",59),os(5,BI,2,0,"mat-icon",60),ds(),ds(),hs(6,"div",26),hs(7,"mat-form-field",52),hs(8,"mat-select",61),bs("selectionChange",(function(e){return An(n),Es(2).onCameraSelected(e)})),os(9,UI,2,2,"mat-option",54),ds(),ds(),ds(),ds(),ds()}if(2&e){var i=Es(2);$r(4),cs("ngIf",i.isVideoActive),$r(1),cs("ngIf",!i.isVideoActive),$r(3),cs("ngModel",i.isVideoActive&&i.camSelected?i.camSelected.device:"None"),$r(1),cs("ngForOf",i.cameras)}}function WI(e,t){1&e&&(hs(0,"mat-icon",68),Ks(1,"screen_share"),ds())}function HI(e,t){1&e&&(hs(0,"mat-icon",69),Ks(1," stop_screen_share"),ds())}function GI(e,t){if(1&e){var n=ms();hs(0,"div",21),hs(1,"div",22),hs(2,"div",23),hs(3,"button",64),bs("click",(function(){return An(n),Es(2).toggleScreenShare()})),os(4,WI,2,0,"mat-icon",65),os(5,HI,2,0,"mat-icon",66),ds(),ds(),hs(6,"div",26),hs(7,"mat-form-field",52),fs(8,"input",67),ds(),ds(),ds(),ds()}if(2&e){var i=Es(2);$r(4),cs("ngIf",i.screenShareEnabled),$r(1),cs("ngIf",!i.screenShareEnabled),$r(3),cs("ngModel",i.screenShareEnabled?"Screen":"None")}}function qI(e,t){if(1&e){var n=ms();hs(0,"div",2),hs(1,"div",3),hs(2,"div",4),hs(3,"div",5),hs(4,"div",6),fs(5,"img",7),ds(),hs(6,"h3",8),Ks(7),ds(),hs(8,"button",9),bs("click",(function(){return An(n),Es().close()})),hs(9,"mat-icon",10),Ks(10,"highlight_off"),ds(),ds(),ds(),hs(11,"div",11,12),hs(13,"div",13),hs(14,"div",14),hs(15,"div",15),os(16,OI,3,2,"div",16),ds(),os(17,xI,6,0,"div",17),ds(),hs(18,"div",18),os(19,TI,3,0,"div",19),os(20,AI,7,7,"div",20),hs(21,"div",21),hs(22,"div",22),hs(23,"div",23),hs(24,"button",24),hs(25,"mat-icon",25),Ks(26,"person"),ds(),ds(),ds(),hs(27,"div",26),hs(28,"form",27),hs(29,"mat-form-field"),hs(30,"input",28),bs("keypress",(function(e){return An(n),Es().eventKeyPress(e)})),ds(),os(31,RI,4,0,"mat-error",29),os(32,DI,4,0,"mat-error",29),ds(),ds(),ds(),ds(),ds(),os(33,jI,10,4,"div",30),fc(34,"hasAudio"),os(35,zI,10,4,"div",30),fc(36,"hasVideo"),os(37,GI,9,3,"div",30),fc(38,"hasScreenSharing"),ds(),ds(),ds(),hs(39,"div",31),hs(40,"button",32),bs("click",(function(){return An(n),Es().joinSession()})),Ks(41,"JOIN"),ds(),ds(),ds(),ds(),ds()}if(2&e){var i=Es();$r(7),Js(i.mySessionId),$r(9),cs("ngForOf",i.localUsers),$r(1),cs("ngIf",i.hasVideoDevices),$r(2),cs("ngIf",i.hasVideoDevices),$r(1),cs("ngIf",i.hasVideoDevices),$r(10),cs("formControl",i.nicknameFormControl)("errorStateMatcher",i.matcher),$r(1),cs("ngIf",i.nicknameFormControl.hasError("required")),$r(1),cs("ngIf",i.nicknameFormControl.hasError("maxlength")),$r(1),cs("ngIf",i.hasAudioDevices&&pc(34,12,i.ovSettings)),$r(2),cs("ngIf",i.hasVideoDevices&&pc(36,14,i.ovSettings)),$r(2),cs("ngIf",pc(38,16,i.ovSettings))}}var ZI=function(e){return{display:e}},QI=function(){function e(e,t,n,i,r,o,a,s,u){this.route=e,this.utilsSrv=t,this.openViduWebRTCService=n,this.localUsersService=i,this.tokenService=r,this.oVDevicesService=o,this.loggerSrv=a,this.storageSrv=s,this.avatarService=u,this.join=new vc,this.leaveSession=new vc,this.publisherCreated=new vc,this.isVideoActive=!0,this.isAudioActive=!0,this.localUsers=[],this.avatarTypeEnum=OP,this.nicknameFormControl=new hf("",[xd.maxLength(25),xd.required]),this.matcher=new iI,this.log=this.loggerSrv.get("RoomConfigComponent")}return e.prototype.beforeunloadHandler=function(){this.close()},e.prototype.ngOnInit=function(){return yI(this,void 0,void 0,(function(){return bI(this,(function(e){switch(e.label){case 0:return this.subscribeToLocalUsersEvents(),this.initNicknameAndSubscribeToChanges(),this.openviduAvatar=this.avatarService.getOpenViduAvatar(),this.columns=window.innerWidth>900?2:1,this.setSessionName(),[4,this.oVDevicesService.initDevices()];case 1:return e.sent(),this.setDevicesInfo(),this.hasAudioDevices||this.hasVideoDevices?[4,this.initwebcamPublisher()]:[3,3];case 2:return e.sent(),[3,4];case 3:this.emitPublisher(null),this.showConfigCard=!0,e.label=4;case 4:return[2]}}))}))},e.prototype.ngOnDestroy=function(){this.oVUsersSubscription&&this.oVUsersSubscription.unsubscribe(),this.screenShareStateSubscription&&this.screenShareStateSubscription.unsubscribe(),this.oVDevicesService.clear()},e.prototype.onCameraSelected=function(e){return yI(this,void 0,void 0,(function(){var t,n;return bI(this,(function(i){switch(i.label){case 0:return(t=null==e?void 0:e.value)?this.oVDevicesService.needUpdateVideoTrack(t)?(n=this.oVDevicesService.cameraNeedsMirror(t),[4,this.openViduWebRTCService.replaceTrack(t,null,n)]):[3,2]:[3,3];case 1:i.sent(),this.oVDevicesService.setCamSelected(t),this.camSelected=this.oVDevicesService.getCamSelected(),i.label=2;case 2:return this.openViduWebRTCService.publishWebcamVideo(!0),this.isVideoActive=!0,[2];case 3:return this.openViduWebRTCService.publishWebcamVideo(!1),this.isVideoActive=!1,[2]}}))}))},e.prototype.onMicrophoneSelected=function(e){return yI(this,void 0,void 0,(function(){var t,n;return bI(this,(function(i){switch(i.label){case 0:return(t=null==e?void 0:e.value)?this.oVDevicesService.needUpdateAudioTrack(t)?(console.log(this.camSelected),n=this.oVDevicesService.cameraNeedsMirror(this.camSelected.device),[4,this.openViduWebRTCService.replaceTrack(null,t,n)]):[3,2]:[3,3];case 1:i.sent(),this.oVDevicesService.setMicSelected(t),this.micSelected=this.oVDevicesService.getMicSelected(),i.label=2;case 2:return this.publishAudio(!0),this.isAudioActive=!0,[2];case 3:return this.publishAudio(!1),this.isAudioActive=!1,[2]}}))}))},e.prototype.toggleCam=function(){this.isVideoActive=!this.isVideoActive,this.openViduWebRTCService.publishWebcamVideo(this.isVideoActive),this.localUsersService.areBothConnected()?(this.localUsersService.disableWebcamUser(),this.openViduWebRTCService.publishScreenAudio(this.isAudioActive)):this.localUsersService.isOnlyScreenConnected()&&this.localUsersService.enableWebcamUser()},e.prototype.toggleScreenShare=function(){var e=this;if(this.localUsersService.areBothConnected())this.localUsersService.disableScreenUser();else{if(this.localUsersService.isOnlyWebcamConnected()){var t=this.initScreenPublisher();return t.on("accessAllowed",(function(n){t.stream.getMediaStream().getVideoTracks()[0].addEventListener("ended",(function(){e.log.d("Clicked native stop button. Stopping screen sharing"),e.toggleScreenShare()})),e.localUsersService.enableScreenUser(t),e.localUsersService.hasWebcamVideoActive()||e.localUsersService.disableWebcamUser()})),void t.on("accessDenied",(function(t){e.log.w("ScreenShare: Access Denied")}))}this.localUsersService.enableWebcamUser(),this.localUsersService.disableScreenUser()}},e.prototype.toggleMic=function(){this.isAudioActive=!this.isAudioActive,this.publishAudio(this.isAudioActive)},e.prototype.captureAvatar=function(){this.capturedAvatar=this.avatarService.createCapture()},e.prototype.initNicknameAndSubscribeToChanges=function(){var e=this;if(this.externalConfig)return this.nicknameFormControl.setValue(this.externalConfig.getNickname()),void this.localUsersService.updateUsersNickname(this.externalConfig.getNickname());var t=this.storageSrv.get(WP.USER_NICKNAME)||this.utilsSrv.generateNickname();this.nicknameFormControl.setValue(t),this.localUsersService.updateUsersNickname(t),this.nicknameFormControl.valueChanges.subscribe((function(t){e.localUsersService.updateUsersNickname(t),e.storageSrv.set(WP.USER_NICKNAME,t)}))},e.prototype.eventKeyPress=function(e){e&&13===e.keyCode&&this.nicknameFormControl.valid&&this.joinSession()},e.prototype.onResize=function(e){this.columns=e.target.innerWidth>900?2:1},e.prototype.joinSession=function(){if(this.nicknameFormControl.valid)return this.avatarService.setFinalAvatar(this.avatarSelected),this.join.emit();this.scrollToBottom()},e.prototype.close=function(){this.leaveSession.emit(),this.showConfigCard=!1},e.prototype.onSelectAvatar=function(e){this.avatarSelected=e},e.prototype.setDevicesInfo=function(){this.hasVideoDevices=this.oVDevicesService.hasVideoDeviceAvailable(),this.hasAudioDevices=this.oVDevicesService.hasAudioDeviceAvailable(),this.microphones=this.oVDevicesService.getMicrophones(),this.cameras=this.oVDevicesService.getCameras(),this.camSelected=this.oVDevicesService.getCamSelected(),this.micSelected=this.oVDevicesService.getMicSelected()},e.prototype.setSessionName=function(){var e=this;this.route.params.subscribe((function(t){e.mySessionId=e.externalConfig?e.externalConfig.getSessionName():t.roomName,e.tokenService.setSessionId(e.mySessionId)}))},e.prototype.scrollToBottom=function(){try{this.bodyCard.nativeElement.scrollTop=this.bodyCard.nativeElement.scrollHeight}catch(e){}},e.prototype.initScreenPublisher=function(){var e=vP.SCREEN,t=this.hasAudioDevices?void 0:null,n=this.localUsersService.isWebCamEnabled()&&this.localUsersService.hasWebcamVideoActive(),i=this.openViduWebRTCService.createPublisherProperties(e,t,!0,!n&&this.hasAudioDevices&&this.isAudioActive,!1);try{return this.openViduWebRTCService.initPublisher(void 0,i)}catch(r){this.log.e(r),this.utilsSrv.handlerScreenShareError(r)}},e.prototype.publishAudio=function(e){this.localUsersService.isWebCamEnabled()?this.openViduWebRTCService.publishWebcamAudio(e):this.openViduWebRTCService.publishScreenAudio(e)},e.prototype.subscribeToLocalUsersEvents=function(){var e=this;this.oVUsersSubscription=this.localUsersService.OVUsers.subscribe((function(t){e.localUsers=t})),this.screenShareStateSubscription=this.localUsersService.screenShareState.subscribe((function(t){e.screenShareEnabled=t}))},e.prototype.initwebcamPublisher=function(){var e,t;return yI(this,void 0,void 0,(function(){var n,i,r,o;return bI(this,(function(a){switch(a.label){case 0:return n=(null===(e=this.micSelected)||void 0===e?void 0:e.device)||void 0,i=(null===(t=this.camSelected)||void 0===t?void 0:t.device)||void 0,r=this.openViduWebRTCService.createPublisherProperties(!!this.hasVideoDevices&&i,!!this.hasAudioDevices&&n,!!this.hasVideoDevices&&this.isVideoActive,!!this.hasAudioDevices&&this.isAudioActive,this.camSelected&&this.camSelected.type===HP.FRONT),[4,this.openViduWebRTCService.initPublisherAsync(void 0,r)];case 1:return o=a.sent(),this.localUsersService.setWebcamPublisher(o),this.handlePublisherSuccess(o),this.handlePublisherError(o),[2]}}))}))},e.prototype.emitPublisher=function(e){this.publisherCreated.emit(e)},e.prototype.handlePublisherSuccess=function(e){var t=this;e.once("accessAllowed",(function(){return yI(t,void 0,void 0,(function(){var t,n,i,r,o,a,s,u;return bI(this,(function(c){switch(c.label){case 0:return this.oVDevicesService.areEmptyLabels()?[4,this.oVDevicesService.initDevices()]:[3,2];case 1:c.sent(),this.hasAudioDevices&&(t=null===(o=null===(r=null===(i=null==e?void 0:e.stream)||void 0===i?void 0:i.getMediaStream())||void 0===r?void 0:r.getAudioTracks()[0])||void 0===o?void 0:o.label,this.oVDevicesService.setMicSelected(t)),this.hasVideoDevices&&(n=null===(u=null===(s=null===(a=null==e?void 0:e.stream)||void 0===a?void 0:a.getMediaStream())||void 0===s?void 0:s.getVideoTracks()[0])||void 0===u?void 0:u.label,this.oVDevicesService.setCamSelected(n)),this.setDevicesInfo(),c.label=2;case 2:return this.emitPublisher(e),this.ovSettings.isAutoPublish()?(this.joinSession(),[2]):(this.showConfigCard=!0,[2])}}))}))}))},e.prototype.handlePublisherError=function(e){var t=this;e.once("accessDenied",(function(e){var n;if(e.name===rI.OpenViduErrorName.DEVICE_ALREADY_IN_USE)return t.log.w("Video device already in use. Disabling video device..."),t.hasVideoDevices=!1,t.oVDevicesService.disableVideoDevices(),t.initwebcamPublisher();e.name===rI.OpenViduErrorName.DEVICE_ACCESS_DENIED?n="Access to media devices was not allowed.":e.name===rI.OpenViduErrorName.NO_INPUT_SOURCE_SET&&(n="No video or audio devices have been found. Please, connect at least one."),t.utilsSrv.showErrorMessage(e.name.replace(/_/g," "),n,!0),t.log.e(e.message)}))},e.\u0275fac=function(t){return new(t||e)(ss(gT),ss(SP),ss(RP),ss(EP),ss(nI),ss(QP),ss(gP),ss(GP),ss(xP))},e.\u0275cmp=Ft({type:e,selectors:[["app-room-config"]],viewQuery:function(e,t){var n;1&e&&Tc(_I,!0),2&e&&Oc(n=Rc())&&(t.bodyCard=n.first)},hostBindings:function(e,t){1&e&&bs("beforeunload",(function(){return t.beforeunloadHandler()}),!1,Si)},inputs:{externalConfig:"externalConfig",ovSettings:"ovSettings"},outputs:{join:"join",leaveSession:"leaveSession",publisherCreated:"publisherCreated"},decls:3,vars:6,consts:[["id","roomConfig",3,"ngStyle"],["class","modal",4,"ngIf"],[1,"modal"],[1,"modal-dialog","modal-xl"],[1,"modal-content","cardContainer"],[1,"modal-header","cardHeader"],[1,"headerLogo"],["id","header_img","alt","OpenVidu Logo","src","assets/images/openvidu_logo_grey.png"],[1,"headerTitle"],["mat-mini-fab","","id","closeButton",1,"closeButton",3,"click"],["color","warn","matTooltip","Close"],[1,"modal-body"],["bodyCard",""],[1,"row","align-items-center"],[1,"col-sm-6","col-md-6","col-lg-6","leftSection"],[1,"videoContainer"],[4,"ngFor","ngForOf"],["class","avatarButton",4,"ngIf"],[1,"col-sm-6","col-md-6","col-lg-6","rightSection"],["class","avatarContainer",4,"ngIf"],["fxLayout","row","fxFill","","id","avatarSection",4,"ngIf"],["fxLayout","row","fxFill","","id","devicesSection"],["fxLayout","","fxFlex",""],["fxFlex","20","fxLayoutAlign","center center",1,"one"],["mat-mini-fab","",1,"deviceButton"],["matTooltip","Nickname"],["fxFlex","80","fxLayoutAlign","center center",1,"two"],["id","nicknameForm",1,"alternate-theme"],["matInput","","placeholder","Nickname","autocomplete","off",3,"formControl","errorStateMatcher","keypress"],[4,"ngIf"],["fxLayout","row","fxFill","","id","devicesSection",4,"ngIf"],[1,"modal-footer",2,"justify-content","center"],["mat-flat-button","","color","accent","form","nicknameForm","id","joinButton",3,"click"],[3,"streamManager","className",4,"ngIf"],["class","cameraMessageContainer",4,"ngIf"],[3,"streamManager","className"],[1,"cameraMessageContainer"],[1,"avatarButton"],["mat-stroked-button","",3,"click"],["matTooltip","Take Photo"],[2,"margin-left","5px"],[1,"avatarContainer"],["fxLayout","row","fxFill","","id","avatarSection"],["fxFlex","100","fxLayoutAlign","center center",1,""],["id","avatarContainer",3,"click"],["id","imgText",4,"ngIf"],["id","avatarImg",3,"src",4,"ngIf"],["id","imgText"],["id","avatarImg",3,"src"],["mat-mini-fab","","id","configCardMicrophoneButton",1,"deviceButton",3,"click"],["matTooltip","Microphone Enabled",4,"ngIf"],["color","warn","matTooltip","Microphone Disabled",4,"ngIf"],[1,"alternate-theme"],["placeholder","Microphone Options",3,"ngModel","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matTooltip","Microphone Enabled"],["color","warn","matTooltip","Microphone Disabled"],[3,"value"],["mat-mini-fab","","id","configCardCameraButton",1,"deviceButton",3,"click"],["matTooltip","Camera Enabled",4,"ngIf"],["color","warn","matTooltip","Camera Disabled",4,"ngIf"],["placeholder","Camera Options",3,"ngModel","selectionChange"],["matTooltip","Camera Enabled"],["color","warn","matTooltip","Camera Disabled"],["mat-mini-fab","","id","configCardScreenButton",1,"deviceButton",3,"click"],["matTooltip","Screen Share Enabled",4,"ngIf"],["color","warn","matTooltip","Screen Share Disabled",4,"ngIf"],["matInput","","disabled","","placeholder","Screen",3,"ngModel"],["matTooltip","Screen Share Enabled"],["color","warn","matTooltip","Screen Share Disabled"]],template:function(e,t){1&e&&(hs(0,"div",0),fc(1,"isAutoPublish"),os(2,qI,42,18,"div",1),ds()),2&e&&(cs("ngStyle",lc(4,ZI,pc(1,2,t.ovSettings)?"none":"block")),$r(2),cs("ngIf",t.showConfigCard))},directives:[gh,XE,lh,Qy,Yw,EC,uh,cO,jO,OO,WO,_f,kd,mf,Zk,rS,pd,_d,Sf,sI,Nk,ES,bf,Ly],pipes:[hI,cI,lI,dI],styles:[".cardHeader[_ngcontent-%COMP%]{background-color:#ccc;border-radius:14px 14px 0 0;text-align:center;height:50px}.headerLogo[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:inherit}.headerTitle[_ngcontent-%COMP%]{font-size:large;margin:auto}.videoContainer[_ngcontent-%COMP%]{width:100%;height:calc(100% - 50px);text-align:center;margin:auto}.avatarButton[_ngcontent-%COMP%]{text-align:center;margin-top:10px}.videoContainer[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:inline}.ovVideoSmall[_ngcontent-%COMP%]{position:absolute;width:30%;left:15px;bottom:46px}.cameraMessageContainer[_ngcontent-%COMP%]{height:100%;width:100%;text-align:center;border:2px solid;font-size:large;display:table}.cameraMessageContainer[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.deviceButton[_ngcontent-%COMP%]{box-shadow:none;background-color:#f5f5f5}.rightSection[_ngcontent-%COMP%]{padding-left:0!important;text-align:center}.avatarContainer[_ngcontent-%COMP%]{background-color:#f5f5f5;height:40px;text-align:center;display:flex}.avatarContainer[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:auto}.closeButton[_ngcontent-%COMP%]{position:absolute;top:5px;right:7px;box-shadow:none;background-color:transparent}#roomConfig[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%}#header_img[_ngcontent-%COMP%]{max-width:150px}#sessionInfo[_ngcontent-%COMP%]{margin-top:0}#joinButton[_ngcontent-%COMP%]{margin:15px;width:80%}#photoButton[_ngcontent-%COMP%]{margin:10px;text-align:center}#avatarContainer[_ngcontent-%COMP%]{border:1px solid #b6b6b6;width:100px;height:100px;margin:10px;position:relative;cursor:pointer;display:inline-block}#devicesSection[_ngcontent-%COMP%]{margin:15px 0}#avatarSection[_ngcontent-%COMP%], #devicesSection[_ngcontent-%COMP%]{height:-webkit-fit-content!important;height:-moz-fit-content!important;height:fit-content!important;min-height:auto!important}#imgText[_ngcontent-%COMP%]{display:table}#avatarImg[_ngcontent-%COMP%], #imgText[_ngcontent-%COMP%]{text-align:center;position:absolute;margin:auto;top:25%;left:0;right:0;bottom:25%}#avatarImg[_ngcontent-%COMP%]{height:83%;width:83%}#avatarContainer[_ngcontent-%COMP%], #avatarImg[_ngcontent-%COMP%]{border-radius:25%}#optionsContent[_ngcontent-%COMP%]{position:static}#nicknameForm[_ngcontent-%COMP%], mat-form-field[_ngcontent-%COMP%]{width:100%}mat-card[_ngcontent-%COMP%]{max-width:85%!important;position:absolute;top:0;bottom:0;left:0;right:0;max-height:90%;margin:auto;padding:20px;overflow:auto;border:2px solid #fff;border-right-width:4px}@media only screen and (max-width:959px){mat-card[_ngcontent-%COMP%]{max-width:80%!important;max-height:80%!important}} .mat-option-text{color:#000!important} .mat-slider-thumb{visibility:hidden} .mat-slider-vertical .mat-slider-track-background, .mat-slider-vertical .mat-slider-track-fill, .mat-slider-vertical .mat-slider-track-wrapper{width:10px!important}[_ngcontent-%COMP%]::-webkit-scrollbar{width:8px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#b8afaf;border-radius:4px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#888}[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#e1e1e1;border-radius:4px}\n\n\n*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:after, [_ngcontent-%COMP%]:before{box-sizing:border-box}.container[_ngcontent-%COMP%]{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:768px){.container[_ngcontent-%COMP%]{width:750px}}@media (min-width:992px){.container[_ngcontent-%COMP%]{width:970px}}@media (min-width:1200px){.container[_ngcontent-%COMP%]{width:1170px}}.container-fluid[_ngcontent-%COMP%]{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.row[_ngcontent-%COMP%]{margin-right:-15px;margin-left:-15px}.row-no-gutters[_ngcontent-%COMP%]{margin-right:0;margin-left:0}.row-no-gutters[_ngcontent-%COMP%] [class*=col-][_ngcontent-%COMP%]{padding-right:0;padding-left:0}.col-lg-1[_ngcontent-%COMP%], .col-lg-2[_ngcontent-%COMP%], .col-lg-3[_ngcontent-%COMP%], .col-lg-4[_ngcontent-%COMP%], .col-lg-5[_ngcontent-%COMP%], .col-lg-6[_ngcontent-%COMP%], .col-lg-7[_ngcontent-%COMP%], .col-lg-8[_ngcontent-%COMP%], .col-lg-9[_ngcontent-%COMP%], .col-lg-10[_ngcontent-%COMP%], .col-lg-11[_ngcontent-%COMP%], .col-lg-12[_ngcontent-%COMP%], .col-md-1[_ngcontent-%COMP%], .col-md-2[_ngcontent-%COMP%], .col-md-3[_ngcontent-%COMP%], .col-md-4[_ngcontent-%COMP%], .col-md-5[_ngcontent-%COMP%], .col-md-6[_ngcontent-%COMP%], .col-md-7[_ngcontent-%COMP%], .col-md-8[_ngcontent-%COMP%], .col-md-9[_ngcontent-%COMP%], .col-md-10[_ngcontent-%COMP%], .col-md-11[_ngcontent-%COMP%], .col-md-12[_ngcontent-%COMP%], .col-sm-1[_ngcontent-%COMP%], .col-sm-2[_ngcontent-%COMP%], .col-sm-3[_ngcontent-%COMP%], .col-sm-4[_ngcontent-%COMP%], .col-sm-5[_ngcontent-%COMP%], .col-sm-6[_ngcontent-%COMP%], .col-sm-7[_ngcontent-%COMP%], .col-sm-8[_ngcontent-%COMP%], .col-sm-9[_ngcontent-%COMP%], .col-sm-10[_ngcontent-%COMP%], .col-sm-11[_ngcontent-%COMP%], .col-sm-12[_ngcontent-%COMP%], .col-xs-1[_ngcontent-%COMP%], .col-xs-2[_ngcontent-%COMP%], .col-xs-3[_ngcontent-%COMP%], .col-xs-4[_ngcontent-%COMP%], .col-xs-5[_ngcontent-%COMP%], .col-xs-6[_ngcontent-%COMP%], .col-xs-7[_ngcontent-%COMP%], .col-xs-8[_ngcontent-%COMP%], .col-xs-9[_ngcontent-%COMP%], .col-xs-10[_ngcontent-%COMP%], .col-xs-11[_ngcontent-%COMP%], .col-xs-12[_ngcontent-%COMP%]{position:relative;min-height:1px;padding-right:15px;padding-left:15px}.col-xs-1[_ngcontent-%COMP%], .col-xs-2[_ngcontent-%COMP%], .col-xs-3[_ngcontent-%COMP%], .col-xs-4[_ngcontent-%COMP%], .col-xs-5[_ngcontent-%COMP%], .col-xs-6[_ngcontent-%COMP%], .col-xs-7[_ngcontent-%COMP%], .col-xs-8[_ngcontent-%COMP%], .col-xs-9[_ngcontent-%COMP%], .col-xs-10[_ngcontent-%COMP%], .col-xs-11[_ngcontent-%COMP%], .col-xs-12[_ngcontent-%COMP%]{float:left}.col-xs-12[_ngcontent-%COMP%]{width:100%}.col-xs-11[_ngcontent-%COMP%]{width:91.66666667%}.col-xs-10[_ngcontent-%COMP%]{width:83.33333333%}.col-xs-9[_ngcontent-%COMP%]{width:75%}.col-xs-8[_ngcontent-%COMP%]{width:66.66666667%}.col-xs-7[_ngcontent-%COMP%]{width:58.33333333%}.col-xs-6[_ngcontent-%COMP%]{width:50%}.col-xs-5[_ngcontent-%COMP%]{width:41.66666667%}.col-xs-4[_ngcontent-%COMP%]{width:33.33333333%}.col-xs-3[_ngcontent-%COMP%]{width:25%}.col-xs-2[_ngcontent-%COMP%]{width:16.66666667%}.col-xs-1[_ngcontent-%COMP%]{width:8.33333333%}.col-xs-pull-12[_ngcontent-%COMP%]{right:100%}.col-xs-pull-11[_ngcontent-%COMP%]{right:91.66666667%}.col-xs-pull-10[_ngcontent-%COMP%]{right:83.33333333%}.col-xs-pull-9[_ngcontent-%COMP%]{right:75%}.col-xs-pull-8[_ngcontent-%COMP%]{right:66.66666667%}.col-xs-pull-7[_ngcontent-%COMP%]{right:58.33333333%}.col-xs-pull-6[_ngcontent-%COMP%]{right:50%}.col-xs-pull-5[_ngcontent-%COMP%]{right:41.66666667%}.col-xs-pull-4[_ngcontent-%COMP%]{right:33.33333333%}.col-xs-pull-3[_ngcontent-%COMP%]{right:25%}.col-xs-pull-2[_ngcontent-%COMP%]{right:16.66666667%}.col-xs-pull-1[_ngcontent-%COMP%]{right:8.33333333%}.col-xs-pull-0[_ngcontent-%COMP%]{right:auto}.col-xs-push-12[_ngcontent-%COMP%]{left:100%}.col-xs-push-11[_ngcontent-%COMP%]{left:91.66666667%}.col-xs-push-10[_ngcontent-%COMP%]{left:83.33333333%}.col-xs-push-9[_ngcontent-%COMP%]{left:75%}.col-xs-push-8[_ngcontent-%COMP%]{left:66.66666667%}.col-xs-push-7[_ngcontent-%COMP%]{left:58.33333333%}.col-xs-push-6[_ngcontent-%COMP%]{left:50%}.col-xs-push-5[_ngcontent-%COMP%]{left:41.66666667%}.col-xs-push-4[_ngcontent-%COMP%]{left:33.33333333%}.col-xs-push-3[_ngcontent-%COMP%]{left:25%}.col-xs-push-2[_ngcontent-%COMP%]{left:16.66666667%}.col-xs-push-1[_ngcontent-%COMP%]{left:8.33333333%}.col-xs-push-0[_ngcontent-%COMP%]{left:auto}.col-xs-offset-12[_ngcontent-%COMP%]{margin-left:100%}.col-xs-offset-11[_ngcontent-%COMP%]{margin-left:91.66666667%}.col-xs-offset-10[_ngcontent-%COMP%]{margin-left:83.33333333%}.col-xs-offset-9[_ngcontent-%COMP%]{margin-left:75%}.col-xs-offset-8[_ngcontent-%COMP%]{margin-left:66.66666667%}.col-xs-offset-7[_ngcontent-%COMP%]{margin-left:58.33333333%}.col-xs-offset-6[_ngcontent-%COMP%]{margin-left:50%}.col-xs-offset-5[_ngcontent-%COMP%]{margin-left:41.66666667%}.col-xs-offset-4[_ngcontent-%COMP%]{margin-left:33.33333333%}.col-xs-offset-3[_ngcontent-%COMP%]{margin-left:25%}.col-xs-offset-2[_ngcontent-%COMP%]{margin-left:16.66666667%}.col-xs-offset-1[_ngcontent-%COMP%]{margin-left:8.33333333%}.col-xs-offset-0[_ngcontent-%COMP%]{margin-left:0}@media (min-width:768px){.col-sm-1[_ngcontent-%COMP%], .col-sm-2[_ngcontent-%COMP%], .col-sm-3[_ngcontent-%COMP%], .col-sm-4[_ngcontent-%COMP%], .col-sm-5[_ngcontent-%COMP%], .col-sm-6[_ngcontent-%COMP%], .col-sm-7[_ngcontent-%COMP%], .col-sm-8[_ngcontent-%COMP%], .col-sm-9[_ngcontent-%COMP%], .col-sm-10[_ngcontent-%COMP%], .col-sm-11[_ngcontent-%COMP%], .col-sm-12[_ngcontent-%COMP%]{float:left}.col-sm-12[_ngcontent-%COMP%]{width:100%}.col-sm-11[_ngcontent-%COMP%]{width:91.66666667%}.col-sm-10[_ngcontent-%COMP%]{width:83.33333333%}.col-sm-9[_ngcontent-%COMP%]{width:75%}.col-sm-8[_ngcontent-%COMP%]{width:66.66666667%}.col-sm-7[_ngcontent-%COMP%]{width:58.33333333%}.col-sm-6[_ngcontent-%COMP%]{width:50%}.col-sm-5[_ngcontent-%COMP%]{width:41.66666667%}.col-sm-4[_ngcontent-%COMP%]{width:33.33333333%}.col-sm-3[_ngcontent-%COMP%]{width:25%}.col-sm-2[_ngcontent-%COMP%]{width:16.66666667%}.col-sm-1[_ngcontent-%COMP%]{width:8.33333333%}.col-sm-pull-12[_ngcontent-%COMP%]{right:100%}.col-sm-pull-11[_ngcontent-%COMP%]{right:91.66666667%}.col-sm-pull-10[_ngcontent-%COMP%]{right:83.33333333%}.col-sm-pull-9[_ngcontent-%COMP%]{right:75%}.col-sm-pull-8[_ngcontent-%COMP%]{right:66.66666667%}.col-sm-pull-7[_ngcontent-%COMP%]{right:58.33333333%}.col-sm-pull-6[_ngcontent-%COMP%]{right:50%}.col-sm-pull-5[_ngcontent-%COMP%]{right:41.66666667%}.col-sm-pull-4[_ngcontent-%COMP%]{right:33.33333333%}.col-sm-pull-3[_ngcontent-%COMP%]{right:25%}.col-sm-pull-2[_ngcontent-%COMP%]{right:16.66666667%}.col-sm-pull-1[_ngcontent-%COMP%]{right:8.33333333%}.col-sm-pull-0[_ngcontent-%COMP%]{right:auto}.col-sm-push-12[_ngcontent-%COMP%]{left:100%}.col-sm-push-11[_ngcontent-%COMP%]{left:91.66666667%}.col-sm-push-10[_ngcontent-%COMP%]{left:83.33333333%}.col-sm-push-9[_ngcontent-%COMP%]{left:75%}.col-sm-push-8[_ngcontent-%COMP%]{left:66.66666667%}.col-sm-push-7[_ngcontent-%COMP%]{left:58.33333333%}.col-sm-push-6[_ngcontent-%COMP%]{left:50%}.col-sm-push-5[_ngcontent-%COMP%]{left:41.66666667%}.col-sm-push-4[_ngcontent-%COMP%]{left:33.33333333%}.col-sm-push-3[_ngcontent-%COMP%]{left:25%}.col-sm-push-2[_ngcontent-%COMP%]{left:16.66666667%}.col-sm-push-1[_ngcontent-%COMP%]{left:8.33333333%}.col-sm-push-0[_ngcontent-%COMP%]{left:auto}.col-sm-offset-12[_ngcontent-%COMP%]{margin-left:100%}.col-sm-offset-11[_ngcontent-%COMP%]{margin-left:91.66666667%}.col-sm-offset-10[_ngcontent-%COMP%]{margin-left:83.33333333%}.col-sm-offset-9[_ngcontent-%COMP%]{margin-left:75%}.col-sm-offset-8[_ngcontent-%COMP%]{margin-left:66.66666667%}.col-sm-offset-7[_ngcontent-%COMP%]{margin-left:58.33333333%}.col-sm-offset-6[_ngcontent-%COMP%]{margin-left:50%}.col-sm-offset-5[_ngcontent-%COMP%]{margin-left:41.66666667%}.col-sm-offset-4[_ngcontent-%COMP%]{margin-left:33.33333333%}.col-sm-offset-3[_ngcontent-%COMP%]{margin-left:25%}.col-sm-offset-2[_ngcontent-%COMP%]{margin-left:16.66666667%}.col-sm-offset-1[_ngcontent-%COMP%]{margin-left:8.33333333%}.col-sm-offset-0[_ngcontent-%COMP%]{margin-left:0}}@media (min-width:992px){.col-md-1[_ngcontent-%COMP%], .col-md-2[_ngcontent-%COMP%], .col-md-3[_ngcontent-%COMP%], .col-md-4[_ngcontent-%COMP%], .col-md-5[_ngcontent-%COMP%], .col-md-6[_ngcontent-%COMP%], .col-md-7[_ngcontent-%COMP%], .col-md-8[_ngcontent-%COMP%], .col-md-9[_ngcontent-%COMP%], .col-md-10[_ngcontent-%COMP%], .col-md-11[_ngcontent-%COMP%], .col-md-12[_ngcontent-%COMP%]{float:left}.col-md-12[_ngcontent-%COMP%]{width:100%}.col-md-11[_ngcontent-%COMP%]{width:91.66666667%}.col-md-10[_ngcontent-%COMP%]{width:83.33333333%}.col-md-9[_ngcontent-%COMP%]{width:75%}.col-md-8[_ngcontent-%COMP%]{width:66.66666667%}.col-md-7[_ngcontent-%COMP%]{width:58.33333333%}.col-md-6[_ngcontent-%COMP%]{width:50%}.col-md-5[_ngcontent-%COMP%]{width:41.66666667%}.col-md-4[_ngcontent-%COMP%]{width:33.33333333%}.col-md-3[_ngcontent-%COMP%]{width:25%}.col-md-2[_ngcontent-%COMP%]{width:16.66666667%}.col-md-1[_ngcontent-%COMP%]{width:8.33333333%}.col-md-pull-12[_ngcontent-%COMP%]{right:100%}.col-md-pull-11[_ngcontent-%COMP%]{right:91.66666667%}.col-md-pull-10[_ngcontent-%COMP%]{right:83.33333333%}.col-md-pull-9[_ngcontent-%COMP%]{right:75%}.col-md-pull-8[_ngcontent-%COMP%]{right:66.66666667%}.col-md-pull-7[_ngcontent-%COMP%]{right:58.33333333%}.col-md-pull-6[_ngcontent-%COMP%]{right:50%}.col-md-pull-5[_ngcontent-%COMP%]{right:41.66666667%}.col-md-pull-4[_ngcontent-%COMP%]{right:33.33333333%}.col-md-pull-3[_ngcontent-%COMP%]{right:25%}.col-md-pull-2[_ngcontent-%COMP%]{right:16.66666667%}.col-md-pull-1[_ngcontent-%COMP%]{right:8.33333333%}.col-md-pull-0[_ngcontent-%COMP%]{right:auto}.col-md-push-12[_ngcontent-%COMP%]{left:100%}.col-md-push-11[_ngcontent-%COMP%]{left:91.66666667%}.col-md-push-10[_ngcontent-%COMP%]{left:83.33333333%}.col-md-push-9[_ngcontent-%COMP%]{left:75%}.col-md-push-8[_ngcontent-%COMP%]{left:66.66666667%}.col-md-push-7[_ngcontent-%COMP%]{left:58.33333333%}.col-md-push-6[_ngcontent-%COMP%]{left:50%}.col-md-push-5[_ngcontent-%COMP%]{left:41.66666667%}.col-md-push-4[_ngcontent-%COMP%]{left:33.33333333%}.col-md-push-3[_ngcontent-%COMP%]{left:25%}.col-md-push-2[_ngcontent-%COMP%]{left:16.66666667%}.col-md-push-1[_ngcontent-%COMP%]{left:8.33333333%}.col-md-push-0[_ngcontent-%COMP%]{left:auto}.col-md-offset-12[_ngcontent-%COMP%]{margin-left:100%}.col-md-offset-11[_ngcontent-%COMP%]{margin-left:91.66666667%}.col-md-offset-10[_ngcontent-%COMP%]{margin-left:83.33333333%}.col-md-offset-9[_ngcontent-%COMP%]{margin-left:75%}.col-md-offset-8[_ngcontent-%COMP%]{margin-left:66.66666667%}.col-md-offset-7[_ngcontent-%COMP%]{margin-left:58.33333333%}.col-md-offset-6[_ngcontent-%COMP%]{margin-left:50%}.col-md-offset-5[_ngcontent-%COMP%]{margin-left:41.66666667%}.col-md-offset-4[_ngcontent-%COMP%]{margin-left:33.33333333%}.col-md-offset-3[_ngcontent-%COMP%]{margin-left:25%}.col-md-offset-2[_ngcontent-%COMP%]{margin-left:16.66666667%}.col-md-offset-1[_ngcontent-%COMP%]{margin-left:8.33333333%}.col-md-offset-0[_ngcontent-%COMP%]{margin-left:0}}@media (min-width:1200px){.col-lg-1[_ngcontent-%COMP%], .col-lg-2[_ngcontent-%COMP%], .col-lg-3[_ngcontent-%COMP%], .col-lg-4[_ngcontent-%COMP%], .col-lg-5[_ngcontent-%COMP%], .col-lg-6[_ngcontent-%COMP%], .col-lg-7[_ngcontent-%COMP%], .col-lg-8[_ngcontent-%COMP%], .col-lg-9[_ngcontent-%COMP%], .col-lg-10[_ngcontent-%COMP%], .col-lg-11[_ngcontent-%COMP%], .col-lg-12[_ngcontent-%COMP%]{float:left}.col-lg-12[_ngcontent-%COMP%]{width:100%}.col-lg-11[_ngcontent-%COMP%]{width:91.66666667%}.col-lg-10[_ngcontent-%COMP%]{width:83.33333333%}.col-lg-9[_ngcontent-%COMP%]{width:75%}.col-lg-8[_ngcontent-%COMP%]{width:66.66666667%}.col-lg-7[_ngcontent-%COMP%]{width:58.33333333%}.col-lg-6[_ngcontent-%COMP%]{width:50%}.col-lg-5[_ngcontent-%COMP%]{width:41.66666667%}.col-lg-4[_ngcontent-%COMP%]{width:33.33333333%}.col-lg-3[_ngcontent-%COMP%]{width:25%}.col-lg-2[_ngcontent-%COMP%]{width:16.66666667%}.col-lg-1[_ngcontent-%COMP%]{width:8.33333333%}.col-lg-pull-12[_ngcontent-%COMP%]{right:100%}.col-lg-pull-11[_ngcontent-%COMP%]{right:91.66666667%}.col-lg-pull-10[_ngcontent-%COMP%]{right:83.33333333%}.col-lg-pull-9[_ngcontent-%COMP%]{right:75%}.col-lg-pull-8[_ngcontent-%COMP%]{right:66.66666667%}.col-lg-pull-7[_ngcontent-%COMP%]{right:58.33333333%}.col-lg-pull-6[_ngcontent-%COMP%]{right:50%}.col-lg-pull-5[_ngcontent-%COMP%]{right:41.66666667%}.col-lg-pull-4[_ngcontent-%COMP%]{right:33.33333333%}.col-lg-pull-3[_ngcontent-%COMP%]{right:25%}.col-lg-pull-2[_ngcontent-%COMP%]{right:16.66666667%}.col-lg-pull-1[_ngcontent-%COMP%]{right:8.33333333%}.col-lg-pull-0[_ngcontent-%COMP%]{right:auto}.col-lg-push-12[_ngcontent-%COMP%]{left:100%}.col-lg-push-11[_ngcontent-%COMP%]{left:91.66666667%}.col-lg-push-10[_ngcontent-%COMP%]{left:83.33333333%}.col-lg-push-9[_ngcontent-%COMP%]{left:75%}.col-lg-push-8[_ngcontent-%COMP%]{left:66.66666667%}.col-lg-push-7[_ngcontent-%COMP%]{left:58.33333333%}.col-lg-push-6[_ngcontent-%COMP%]{left:50%}.col-lg-push-5[_ngcontent-%COMP%]{left:41.66666667%}.col-lg-push-4[_ngcontent-%COMP%]{left:33.33333333%}.col-lg-push-3[_ngcontent-%COMP%]{left:25%}.col-lg-push-2[_ngcontent-%COMP%]{left:16.66666667%}.col-lg-push-1[_ngcontent-%COMP%]{left:8.33333333%}.col-lg-push-0[_ngcontent-%COMP%]{left:auto}.col-lg-offset-12[_ngcontent-%COMP%]{margin-left:100%}.col-lg-offset-11[_ngcontent-%COMP%]{margin-left:91.66666667%}.col-lg-offset-10[_ngcontent-%COMP%]{margin-left:83.33333333%}.col-lg-offset-9[_ngcontent-%COMP%]{margin-left:75%}.col-lg-offset-8[_ngcontent-%COMP%]{margin-left:66.66666667%}.col-lg-offset-7[_ngcontent-%COMP%]{margin-left:58.33333333%}.col-lg-offset-6[_ngcontent-%COMP%]{margin-left:50%}.col-lg-offset-5[_ngcontent-%COMP%]{margin-left:41.66666667%}.col-lg-offset-4[_ngcontent-%COMP%]{margin-left:33.33333333%}.col-lg-offset-3[_ngcontent-%COMP%]{margin-left:25%}.col-lg-offset-2[_ngcontent-%COMP%]{margin-left:16.66666667%}.col-lg-offset-1[_ngcontent-%COMP%]{margin-left:8.33333333%}.col-lg-offset-0[_ngcontent-%COMP%]{margin-left:0}}.modal[_ngcontent-%COMP%], .modal-open[_ngcontent-%COMP%]{overflow:hidden}.modal[_ngcontent-%COMP%]{top:0;right:0;bottom:0;left:0;z-index:1050;display:none;-webkit-overflow-scrolling:touch;outline:0;display:block;height:100%}.modal.fade[_ngcontent-%COMP%] .modal-dialog[_ngcontent-%COMP%]{transform:translateY(-25%);transition:transform .3s ease-out}.modal.in[_ngcontent-%COMP%] .modal-dialog[_ngcontent-%COMP%]{transform:translate(0)}.modal-open[_ngcontent-%COMP%] .modal[_ngcontent-%COMP%]{overflow-x:hidden;overflow-y:auto}.modal-dialog[_ngcontent-%COMP%]{width:auto;margin:30px;padding:100px 0;position:absolute;top:40%;left:50%;transform:translate(-50%,-50%)}.modal-content[_ngcontent-%COMP%]{position:relative;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:6px;box-shadow:0 3px 9px rgba(0,0,0,.5);outline:0;border-radius:15px}.modal-backdrop[_ngcontent-%COMP%]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade[_ngcontent-%COMP%]{filter:alpha(opacity=0);opacity:0}.modal-backdrop.in[_ngcontent-%COMP%]{filter:alpha(opacity=50);opacity:.5}.modal-header[_ngcontent-%COMP%]{padding:15px;border-bottom:1px solid #e5e5e5}.modal-header[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{margin-top:-2px}.modal-title[_ngcontent-%COMP%]{margin:0;line-height:1.42857143}.modal-body[_ngcontent-%COMP%]{position:relative;padding:15px}.modal-footer[_ngcontent-%COMP%]{padding:1px;text-align:center;border-top:1px solid #e5e5e5}.modal-footer[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%] + .btn[_ngcontent-%COMP%]{margin-bottom:0;margin-left:5px}.modal-footer[_ngcontent-%COMP%] .btn-group[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%] + .btn[_ngcontent-%COMP%]{margin-left:-1px}.modal-footer[_ngcontent-%COMP%] .btn-block[_ngcontent-%COMP%] + .btn-block[_ngcontent-%COMP%]{margin-left:0}.modal-scrollbar-measure[_ngcontent-%COMP%]{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (max-width:600px){.headerTitle[_ngcontent-%COMP%]{display:none}.headerLogo[_ngcontent-%COMP%]{right:0}}@media (max-width:767px){.row[_ngcontent-%COMP%]{height:100%}.leftSection[_ngcontent-%COMP%]{height:60%}.rightSection[_ngcontent-%COMP%]{padding-right:0!important}.headerTitle[_ngcontent-%COMP%]{font-size:medium}.modal-content[_ngcontent-%COMP%]{max-height:100%;height:100%}.modal-dialog[_ngcontent-%COMP%]{height:calc(100% - 10px);margin:5px;padding:0;position:relative;top:0;left:0;transform:none}.modal-body[_ngcontent-%COMP%]{padding:10px 20px;overflow:auto;height:calc(100% - 120px);overflow:-moz-scrollbars-vertical;overflow-x:hidden;overflow-y:scroll}.modal[_ngcontent-%COMP%]{max-height:100%}.videoContainer[_ngcontent-%COMP%]{width:90%}}@media (min-width:768px){.ovVideoSmall[_ngcontent-%COMP%]{width:40%}.row[_ngcontent-%COMP%]{display:flex!important}.modal-dialog[_ngcontent-%COMP%]{width:90%;margin:55px auto}.modal-content[_ngcontent-%COMP%]{box-shadow:0 5px 15px rgba(0,0,0,.5)}.modal-sm[_ngcontent-%COMP%]{width:300px}}@media (min-width:992px){.modal-lg[_ngcontent-%COMP%]{width:75%}}@media (min-width:1440px){.modal-xl[_ngcontent-%COMP%]{width:75%}}"]}),e}(),YI=function(e){return e.BIG="zoom_in",e.NORMAL="zoom_out",e}({}),KI=function(e){return e.BIG="fullscreen",e.NORMAL="fullscreen_exit",e}({}),JI=function(e,t){return{titleContent:!0,titleContentLight:e,titleContentDark:t}};function XI(e,t){if(1&e&&(hs(0,"div",3),hs(1,"span",4),Ks(2),ds(),ds()),2&e){var n=Es();cs("ngClass",(i=2,r=JI,o=n.lightTheme,a=!n.lightTheme,function(e,t,n,i,r,o,a){var s=t+n;return function(e,t,n,i){var r=ns(e,t,n);return ns(e,t+1,i)||r}(e,s,r,o)?ts(e,s+2,a?i.call(a,r,o):i(r,o)):hc(e,s+2)}(Pn(),Fn(),i,r,o,a,s))),$r(2),Js(n.sessionId)}var i,r,o,a,s}var $I=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ft({type:e,selectors:[["app-toolbar-logo"]],inputs:{lightTheme:"lightTheme",compact:"compact",sessionId:"sessionId",logoUrl:"logoUrl"},decls:4,vars:2,consts:[["id","navSessionInfo"],["id","header_img","alt","OpenVidu Logo",3,"src"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],["id","session-title"]],template:function(e,t){1&e&&(hs(0,"div",0),hs(1,"a"),fs(2,"img",1),ds(),os(3,XI,3,5,"div",2),ds()),2&e&&($r(2),cs("src",t.logoUrl,Rr),$r(1),cs("ngIf",!t.compact&&t.sessionId))},directives:[lh,ah,GE],styles:["#header[_ngcontent-%COMP%]{color:#fff;height:40px;background-color:#333;padding:0 14px 0 0;position:absolute;top:0;left:0;z-index:999999;min-width:400px!important}.buttonsContainer[_ngcontent-%COMP%]{position:absolute;left:0;right:0}.headerLight[_ngcontent-%COMP%]{color:#706969!important;background-color:#eee!important}#navSessionInfo[_ngcontent-%COMP%]{height:100%;display:inline-flex}#navChatButton[_ngcontent-%COMP%] .mat-badge-medium.mat-badge-overlap.mat-badge-before[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{left:-17px}#navChatButton[_ngcontent-%COMP%] .mat-badge-medium.mat-badge-above[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{top:-6px}.mat-icon-button[disabled][_ngcontent-%COMP%]{color:#fff}.titleContent[_ngcontent-%COMP%]{font-family:Ubuntu,sans-serif;max-width:100px;margin:5px -18px;padding:0 15px;font-size:16px;overflow:hidden;text-overflow:ellipsis}.titleContentDark[_ngcontent-%COMP%]{background-color:#494949;color:#fff}.titleContentLight[_ngcontent-%COMP%]{background-color:#dfdfdf!important;color:#000}#header_img[_ngcontent-%COMP%]{max-width:130px;margin:0 20px 0 5px;padding:5px}#point[_ngcontent-%COMP%]{width:10px;height:10px;position:absolute;top:12px;right:33px;border-radius:50%;background-color:#ffa600;border:1px solid #000;z-index:99999}.pointLight[_ngcontent-%COMP%]{border:1px solid #fff!important}.tooltipList[_ngcontent-%COMP%]{white-space:pre}@media (max-width:600px){#navSessionInfo[_ngcontent-%COMP%]{display:none}}"]}),e}();function eA(e,t){1&e&&(hs(0,"mat-icon",14),Ks(1,"mic"),ds())}function tA(e,t){1&e&&(hs(0,"mat-icon",15),Ks(1,"mic_off"),ds())}function nA(e,t){if(1&e){var n=ms();hs(0,"button",11),bs("click",(function(){return An(n),Es().toggleMicrophone()})),os(1,eA,2,0,"mat-icon",12),os(2,tA,2,0,"mat-icon",13),ds()}if(2&e){var i=Es();cs("disabled",i.isConnectionLost),$r(1),cs("ngIf",i.isWebcamAudioEnabled),$r(1),cs("ngIf",!i.isWebcamAudioEnabled)}}function iA(e,t){1&e&&(hs(0,"mat-icon",19),Ks(1,"videocam"),ds())}function rA(e,t){1&e&&(hs(0,"mat-icon",20),Ks(1,"videocam_off"),ds())}function oA(e,t){if(1&e){var n=ms();hs(0,"button",16),bs("click",(function(){return An(n),Es().toggleCamera()})),os(1,iA,2,0,"mat-icon",17),os(2,rA,2,0,"mat-icon",18),ds()}if(2&e){var i=Es();cs("disabled",i.isConnectionLost),$r(1),cs("ngIf",i.isWebcamVideoEnabled),$r(1),cs("ngIf",!i.isWebcamVideoEnabled)}}function aA(e,t){1&e&&(hs(0,"mat-icon",24),Ks(1,"stop_screen_share"),ds())}function sA(e,t){1&e&&(hs(0,"mat-icon",25),Ks(1,"screen_share"),ds())}function uA(e,t){if(1&e){var n=ms();hs(0,"button",21),bs("click",(function(){return An(n),Es().toggleScreenShare()})),os(1,aA,2,0,"mat-icon",22),os(2,sA,2,0,"mat-icon",23),ds()}if(2&e){var i=Es();cs("disabled",i.isConnectionLost),$r(1),cs("ngIf",!i.isScreenShareEnabled),$r(1),cs("ngIf",i.isScreenShareEnabled)}}function cA(e,t){if(1&e){var n=ms();hs(0,"button",26),bs("click",(function(){return An(n),Es().toggleFullscreen()})),hs(1,"mat-icon",27),Ks(2),ds(),ds()}if(2&e){var i=Es();cs("disabled",i.isConnectionLost),$r(2),Js(i.fullscreenIcon)}}function lA(e,t){1&e&&(hs(0,"mat-icon",30),Ks(1,"voice_over_off"),ds())}function hA(e,t){1&e&&(hs(0,"mat-icon",31),Ks(1,"record_voice_over"),ds())}function dA(e,t){if(1&e){var n=ms();hs(0,"button",26),bs("click",(function(){return An(n),Es().toggleSpeakerLayout()})),os(1,lA,2,0,"mat-icon",28),os(2,hA,2,0,"mat-icon",29),ds()}if(2&e){var i=Es();cs("disabled",i.isConnectionLost),$r(1),cs("ngIf",!i.isAutoLayout),$r(1),cs("ngIf",i.isAutoLayout)}}function fA(e,t){if(1&e){var n=ms();hs(0,"button",32),bs("click",(function(){return An(n),Es().leaveSession()})),hs(1,"mat-icon",33),Ks(2,"power_settings_new"),ds(),ds()}}function pA(e,t){if(1&e){var n=ms();hs(0,"button",26),bs("click",(function(){return An(n),Es().toggleChat()})),hs(1,"mat-icon",34),Ks(2,"chat"),ds(),ds()}if(2&e){var i=Es();cs("disabled",i.isConnectionLost),$r(1),Ms("matBadge",i.newMessagesNum),cs("matBadgeHidden",0===i.newMessagesNum)}}var vA,mA=function(){function e(e,t,n,i){this.utilsSrv=e,this.chatService=t,this.tokenService=n,this.localUsersService=i,this.micButtonClicked=new vc,this.camButtonClicked=new vc,this.screenShareClicked=new vc,this.layoutButtonClicked=new vc,this.leaveSessionButtonClicked=new vc,this.fullscreenIcon=KI.BIG,this.logoUrl="assets/images/openvidu_logo.png",this.participantsNames=[]}return e.prototype.ngOnDestroy=function(){this.chatServiceSubscription&&this.chatServiceSubscription.unsubscribe(),this.screenShareStateSubscription&&this.screenShareStateSubscription.unsubscribe(),this.webcamVideoStateSubscription&&this.webcamVideoStateSubscription.unsubscribe()},e.prototype.sizeChange=function(e){var t=window.screen.height,n=window.screen.width,i=window.innerHeight;n!==window.innerWidth&&t!==i&&(this.fullscreenIcon=KI.BIG)},e.prototype.ngOnInit=function(){var e=this;this.mySessionId=this.tokenService.getSessionId(),this.chatServiceSubscription=this.chatService.messagesUnreadObs.subscribe((function(t){e.newMessagesNum=t})),this.screenShareStateSubscription=this.localUsersService.screenShareState.subscribe((function(t){e.isScreenShareEnabled=t})),this.webcamVideoStateSubscription=this.localUsersService.webcamVideoActive.subscribe((function(t){e.isWebcamVideoEnabled=t})),this.lightTheme&&(this.logoUrl="assets/images/openvidu_logo_grey.png")},e.prototype.toggleMicrophone=function(){this.micButtonClicked.emit()},e.prototype.toggleCamera=function(){this.camButtonClicked.emit()},e.prototype.toggleScreenShare=function(){this.screenShareClicked.emit()},e.prototype.toggleSpeakerLayout=function(){this.layoutButtonClicked.emit()},e.prototype.leaveSession=function(){this.leaveSessionButtonClicked.emit()},e.prototype.toggleChat=function(){this.chatService.toggleChat()},e.prototype.toggleFullscreen=function(){this.utilsSrv.toggleFullscreen("videoRoomNavBar"),this.fullscreenIcon=this.fullscreenIcon===KI.BIG?KI.NORMAL:KI.BIG},e.\u0275fac=function(t){return new(t||e)(ss(SP),ss(DP),ss(nI),ss(EP))},e.\u0275cmp=Ft({type:e,selectors:[["app-toolbar"]],hostBindings:function(e,t){1&e&&bs("resize",(function(e){return t.sizeChange(e)}),!1,Si)},inputs:{lightTheme:"lightTheme",compact:"compact",showNotification:"showNotification",ovSettings:"ovSettings",isWebcamAudioEnabled:"isWebcamAudioEnabled",isAutoLayout:"isAutoLayout",isConnectionLost:"isConnectionLost",hasVideoDevices:"hasVideoDevices",hasAudioDevices:"hasAudioDevices"},outputs:{micButtonClicked:"micButtonClicked",camButtonClicked:"camButtonClicked",screenShareClicked:"screenShareClicked",layoutButtonClicked:"layoutButtonClicked",leaveSessionButtonClicked:"leaveSessionButtonClicked"},decls:20,vars:27,consts:[["id","header","role","heading","fxLayout","","fxLayoutAlign","center","fxLayoutGap","10px",1,"container"],["fxFlex","20%"],[3,"lightTheme","sessionId","compact","logoUrl"],["fxFlex","70%","fxFlexOrder","2"],["align","center",1,"buttonsContainer"],["id","navMicrophoneButton","mat-icon-button","",3,"disabled","click",4,"ngIf"],["id","navCameraButton","mat-icon-button","",3,"disabled","click",4,"ngIf"],["id","navScreenButton","mat-icon-button","",3,"disabled","click",4,"ngIf"],["mat-icon-button","",3,"disabled","click",4,"ngIf"],["mat-icon-button","","id","navLeaveButton",3,"click",4,"ngIf"],["fxFlex","10%","fxFlexOrder","3","align","end"],["id","navMicrophoneButton","mat-icon-button","",3,"disabled","click"],["matTooltip","Mute your audio",4,"ngIf"],["color","warn","matTooltip","Unmute your audio",4,"ngIf"],["matTooltip","Mute your audio"],["color","warn","matTooltip","Unmute your audio"],["id","navCameraButton","mat-icon-button","",3,"disabled","click"],["matTooltip","Mute your cam",4,"ngIf"],["color","warn","matTooltip","Unmute your cam",4,"ngIf"],["matTooltip","Mute your cam"],["color","warn","matTooltip","Unmute your cam"],["id","navScreenButton","mat-icon-button","",3,"disabled","click"],["matTooltip","Screen share","color","warn",4,"ngIf"],["matTooltip","Stop sharing",4,"ngIf"],["matTooltip","Screen share","color","warn"],["matTooltip","Stop sharing"],["mat-icon-button","",3,"disabled","click"],["matTooltip","Fullscreen"],["matTooltip","Enable speaker layout","color","warn",4,"ngIf"],["matTooltip","Disable speaker layout",4,"ngIf"],["matTooltip","Enable speaker layout","color","warn"],["matTooltip","Disable speaker layout"],["mat-icon-button","","id","navLeaveButton",3,"click"],["color","warn","matTooltip","Leave the session"],["matBadgePosition","above before","matTooltip","Chat","matBadgeColor","accent",3,"matBadge","matBadgeHidden"]],template:function(e,t){1&e&&(hs(0,"mat-toolbar",0),hs(1,"div",1),fs(2,"app-toolbar-logo",2),ds(),hs(3,"div",3),hs(4,"div",4),os(5,nA,3,3,"button",5),fc(6,"hasAudio"),os(7,oA,3,3,"button",6),fc(8,"hasVideo"),os(9,uA,3,3,"button",7),fc(10,"hasScreenSharing"),os(11,cA,3,2,"button",8),fc(12,"hasFullscreen"),os(13,dA,3,3,"button",8),fc(14,"hasLayoutSpeaking"),os(15,fA,3,0,"button",9),fc(16,"hasExit"),ds(),ds(),hs(17,"div",10),os(18,pA,3,3,"button",8),fc(19,"hasChat"),ds(),ds()),2&e&&(Fs("headerLight",t.lightTheme),$r(2),cs("lightTheme",t.lightTheme)("sessionId",t.mySessionId)("compact",t.compact)("logoUrl",t.logoUrl),$r(3),cs("ngIf",t.hasAudioDevices&&pc(6,13,t.ovSettings)),$r(2),cs("ngIf",!t.ovSettings||t.hasVideoDevices&&pc(8,15,t.ovSettings)),$r(2),cs("ngIf",pc(10,17,t.ovSettings)),$r(2),cs("ngIf",pc(12,19,t.ovSettings)),$r(2),cs("ngIf",pc(14,21,t.ovSettings)),$r(2),cs("ngIf",pc(16,23,t.ovSettings)),$r(3),cs("ngIf",pc(19,25,t.ovSettings)))},directives:[iC,cO,WO,vO,OO,$I,NO,lh,Qy,Yw,EC,zy],pipes:[cI,lI,dI,fI,pI,vI,uI],styles:["#header[_ngcontent-%COMP%]{color:#fff;height:40px;background-color:#333;padding:0 14px 0 0;position:absolute;top:0;left:0;z-index:999999;min-width:400px!important}.buttonsContainer[_ngcontent-%COMP%]{position:absolute;left:0;right:0}.headerLight[_ngcontent-%COMP%]{color:#706969!important;background-color:#eee!important}#navSessionInfo[_ngcontent-%COMP%]{height:100%;display:inline-flex}#navChatButton[_ngcontent-%COMP%] .mat-badge-medium.mat-badge-overlap.mat-badge-before[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{left:-17px}#navChatButton[_ngcontent-%COMP%] .mat-badge-medium.mat-badge-above[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{top:-6px}.mat-icon-button[disabled][_ngcontent-%COMP%]{color:#fff}.titleContent[_ngcontent-%COMP%]{font-family:Ubuntu,sans-serif;max-width:100px;margin:5px -18px;padding:0 15px;font-size:16px;overflow:hidden;text-overflow:ellipsis}.titleContentDark[_ngcontent-%COMP%]{background-color:#494949;color:#fff}.titleContentLight[_ngcontent-%COMP%]{background-color:#dfdfdf!important;color:#000}#header_img[_ngcontent-%COMP%]{max-width:130px;margin:0 20px 0 5px;padding:5px}#point[_ngcontent-%COMP%]{width:10px;height:10px;position:absolute;top:12px;right:33px;border-radius:50%;background-color:#ffa600;border:1px solid #000;z-index:99999}.pointLight[_ngcontent-%COMP%]{border:1px solid #fff!important}.tooltipList[_ngcontent-%COMP%]{white-space:pre}@media (max-width:600px){#navSessionInfo[_ngcontent-%COMP%]{display:none}}"]}),e}(),gA=(vA=function(e,t){return(vA=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}vA(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),yA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.containerSelector=".sidenav-main",t.customClass="cdk-overlay-container",t}return gA(t,e),t.prototype._createContainer=function(){var e=document.createElement("div");e.classList.add(this.customClass);var t=this.getElement(this.containerSelector);t||(t=this.getElement("body")),this._containerElement=t.appendChild(e)},t.prototype.setSelector=function(e){var t=this.getElement("."+this.customClass);if(t&&this.containerSelector!==e){var n=this.getElement(e);this.containerSelector=e,null==n||n.appendChild(t)}},t.prototype.getElement=function(e){return document.querySelector(e)},t.\u0275prov=De({token:t,factory:t.\u0275fac=function(e){return bA(e||t)}}),t}(s_),bA=Gi(yA),_A=function(){function e(e){this.cdkOverlayModel=e}return e.prototype.setSelector=function(e){this.cdkOverlayModel.setSelector(e)},e.\u0275prov=De({token:e,factory:e.\u0275fac=function(t){return new(t||e)(bt(yA))},providedIn:"root"}),e}(),kA=["streamComponent"],wA=["menu"],SA=["nicknameInput"];function CA(e,t){1&e&&(hs(0,"span"),Ks(1," (edit)"),ds())}function EA(e,t){if(1&e){var n=ms();hs(0,"div",10),bs("click",(function(){return An(n),Es(2).toggleNicknameForm()})),hs(1,"span",11),Ks(2),ds(),os(3,CA,2,0,"span",12),ds()}if(2&e){var i=Es(2);$r(2),Js(i._user.nickname),$r(1),cs("ngIf",i._user.local||i._user.streamManager&&!(null!=i._user.streamManager&&i._user.streamManager.remote))}}function OA(e,t){1&e&&(hs(0,"mat-error"),Ks(1," Nickname is "),hs(2,"strong"),Ks(3,"required"),ds(),ds())}function xA(e,t){1&e&&(hs(0,"mat-error"),Ks(1," Nickname is "),hs(2,"strong"),Ks(3,"too long!"),ds(),ds())}function TA(e,t){if(1&e){var n=ms();hs(0,"div",13),hs(1,"button",14),bs("click",(function(){return An(n),Es(2).toggleNicknameForm()})),hs(2,"mat-icon",15),Ks(3,"highlight_off"),ds(),ds(),hs(4,"form",16),hs(5,"mat-form-field",17),hs(6,"input",18,19),bs("keypress",(function(e){return An(n),Es(2).eventKeyPress(e)})),ds(),os(8,OA,4,0,"mat-error",12),os(9,xA,4,0,"mat-error",12),ds(),ds(),ds()}if(2&e){var i=Es(2);Fs("fullscreen",i.isFullscreen),$r(6),Ps("placeholder","Nick: ",i._user.nickname,""),cs("formControl",i.nicknameFormControl)("errorStateMatcher",i.matcher),$r(2),cs("ngIf",i.nicknameFormControl.hasError("required")),$r(1),cs("ngIf",i.nicknameFormControl.hasError("maxlength"))}}function MA(e,t){1&e&&(hs(0,"div",20),hs(1,"mat-icon"),Ks(2,"mic_off"),ds(),ds())}function PA(e,t){1&e&&(hs(0,"span"),Ks(1,"Zoom out"),ds())}function IA(e,t){1&e&&(hs(0,"span"),Ks(1,"Zoom in"),ds())}function AA(e,t){if(1&e){var n=ms();hs(0,"button",30),bs("click",(function(){return An(n),Es(3).toggleVideoSize()})),hs(1,"mat-icon"),Ks(2),ds(),os(3,PA,2,0,"span",12),os(4,IA,2,0,"span",12),ds()}if(2&e){var i=Es(3);$r(2),Js(i.videoSizeIcon),$r(1),cs("ngIf",i.videoSizeIcon===i.videoSizeIconEnum.NORMAL),$r(1),cs("ngIf",i.videoSizeIcon===i.videoSizeIconEnum.BIG)}}function RA(e,t){1&e&&(hs(0,"mat-icon"),Ks(1,"volume_up"),ds())}function DA(e,t){1&e&&(hs(0,"span"),Ks(1,"Mute sound"),ds())}function NA(e,t){1&e&&(hs(0,"mat-icon"),Ks(1,"volume_off"),ds())}function LA(e,t){1&e&&(hs(0,"span"),Ks(1,"Unmute sound"),ds())}function VA(e,t){if(1&e){var n=ms();hs(0,"button",31),bs("click",(function(){return An(n),Es(3).toggleSound()})),os(1,RA,2,0,"mat-icon",12),os(2,DA,2,0,"span",12),os(3,NA,2,0,"mat-icon",12),os(4,LA,2,0,"span",12),ds()}if(2&e){var i=Es(3);$r(1),cs("ngIf",!i.mutedSound),$r(1),cs("ngIf",!i.mutedSound),$r(1),cs("ngIf",i.mutedSound),$r(1),cs("ngIf",i.mutedSound)}}function jA(e,t){1&e&&(hs(0,"span"),Ks(1,"Exit fullscreen"),ds())}function FA(e,t){1&e&&(hs(0,"span"),Ks(1,"Go to fullscreen"),ds())}function BA(e,t){if(1&e){var n=ms();hs(0,"button",32),bs("click",(function(){return An(n),Es(3).toggleFullscreen()})),hs(1,"mat-icon"),Ks(2),ds(),os(3,jA,2,0,"span",12),os(4,FA,2,0,"span",12),ds()}if(2&e){var i=Es(3);$r(2),Js(i.fullscreenIcon),$r(1),cs("ngIf",i.fullscreenIcon===i.videoFullscreenIconEnum.NORMAL),$r(1),cs("ngIf",i.fullscreenIcon===i.videoFullscreenIconEnum.BIG)}}function UA(e,t){if(1&e){var n=ms();hs(0,"button",33),bs("click",(function(){return An(n),Es(3).replaceScreenTrack()})),hs(1,"mat-icon"),Ks(2,"picture_in_picture"),ds(),hs(3,"span"),Ks(4,"Replace screen"),ds(),ds()}}function zA(e,t){if(1&e){var n=ms();hs(0,"div",21),hs(1,"button",22),bs("click",(function(e){return An(n),Es(2).toggleVideoMenu(e)})),hs(2,"mat-icon"),Ks(3,"more_vert"),ds(),ds(),fs(4,"span",23),hs(5,"mat-menu",24,25),os(7,AA,5,3,"button",26),os(8,VA,5,4,"button",27),os(9,BA,5,3,"button",28),os(10,UA,5,0,"button",29),ds(),ds()}if(2&e){var i=as(6),r=Es(2);$r(4),cs("matMenuTriggerFor",i),$r(3),cs("ngIf",null==r._user.streamManager||null==r._user.streamManager.stream?null:r._user.streamManager.stream.videoActive),$r(1),cs("ngIf",null==r._user.streamManager?null:r._user.streamManager.remote),$r(1),cs("ngIf",null==r._user.streamManager||null==r._user.streamManager.stream?null:r._user.streamManager.stream.videoActive),$r(1),cs("ngIf",!(null!=r._user.streamManager&&r._user.streamManager.remote)&&(null==r._user.streamManager||null==r._user.streamManager.stream?null:r._user.streamManager.stream.typeOfVideo)===r.videoTypeEnum.SCREEN)}}function WA(e,t){if(1&e){var n=ms();hs(0,"div",1,2),bs("dblclick",(function(){return An(n),Es().toggleVideoSize()})),hs(2,"div",3),os(3,EA,4,2,"div",4),os(4,TA,10,7,"div",5),ds(),hs(5,"ov-video",6),bs("toggleVideoSizeEvent",(function(e){return An(n),Es().toggleVideoSize(e)})),ds(),hs(6,"div",7),os(7,MA,3,0,"div",8),ds(),os(8,zA,11,5,"div",9),ds()}if(2&e){var i=Es();cs("id","container-"+(null==i._user.streamManager||null==i._user.streamManager.stream?null:i._user.streamManager.stream.streamId)),$r(2),Fs("fullscreen",i.isFullscreen),$r(1),cs("ngIf",!i.toggleNickname),$r(1),cs("ngIf",i.toggleNickname&&!(null!=i._user.streamManager&&i._user.streamManager.remote)),$r(1),cs("streamManager",i._user.streamManager)("mutedSound",i.mutedSound),$r(2),cs("ngIf",!(null!=i._user.streamManager&&null!=i._user.streamManager.stream&&i._user.streamManager.stream.audioActive)),$r(1),cs("ngIf",i._user.local&&(null==i._user.streamManager||null==i._user.streamManager.stream?null:i._user.streamManager.stream.videoActive)||!i._user.local&&((null==i._user.streamManager||null==i._user.streamManager.stream?null:i._user.streamManager.stream.videoActive)||(null==i._user.streamManager||null==i._user.streamManager.stream?null:i._user.streamManager.stream.audioActive)))}}var HA=function(){function e(e,t){this.utilsSrv=e,this.cdkSrv=t,this.videoSizeIconEnum=YI,this.videoFullscreenIconEnum=KI,this.videoTypeEnum=pP,this.videoSizeIcon=YI.BIG,this.fullscreenIcon=KI.BIG,this.nicknameClicked=new vc,this.replaceScreenTrackClicked=new vc,this.toggleVideoSizeClicked=new vc}return e.prototype.sizeChange=function(e){var t=window.screen.height,n=window.screen.width,i=window.innerHeight;n!==window.innerWidth&&t!==i&&(this.isFullscreen=!1,this.videoSizeIcon=YI.BIG)},Object.defineProperty(e.prototype,"videoSizeBig",{set:function(e){this.checkVideoSizeBigIcon(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"user",{set:function(e){this._user=e,this.nicknameFormControl=new hf(this._user.getNickname(),[xd.maxLength(25),xd.required])},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nicknameInputElement",{set:function(e){setTimeout((function(){null==e||e.nativeElement.focus()}))},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){this.matcher=new iI},e.prototype.ngOnDestroy=function(){this.cdkSrv.setSelector("body")},e.prototype.toggleVideoSize=function(e){var t=this.utilsSrv.getHTMLElementByClassName(this.streamComponent.element.nativeElement,bP.ROOT_CLASS);this.toggleVideoSizeClicked.emit({element:t,connectionId:this._user.getConnectionId(),resetAll:e})},e.prototype.toggleFullscreen=function(){this.utilsSrv.toggleFullscreen("container-"+this._user.getStreamManager().stream.streamId),this.toggleFullscreenIcon()},e.prototype.toggleVideoMenu=function(e){var t,n;this.menuTrigger.menuOpen?this.menuTrigger.closeMenu():(this.cdkSrv.setSelector("#container-"+(null===(n=null===(t=this._user.streamManager)||void 0===t?void 0:t.stream)||void 0===n?void 0:n.streamId)),this.menuTrigger.openMenu())},e.prototype.toggleSound=function(){this.mutedSound=!this.mutedSound},e.prototype.toggleNicknameForm=function(){this._user.isLocal()&&(this.toggleNickname=!this.toggleNickname)},e.prototype.eventKeyPress=function(e){e&&13===e.keyCode&&this.nicknameFormControl.valid&&(this.nicknameClicked.emit(this.nicknameFormControl.value),this.toggleNicknameForm())},e.prototype.replaceScreenTrack=function(){this.replaceScreenTrackClicked.emit()},e.prototype.checkVideoSizeBigIcon=function(e){this.videoSizeIcon=e?YI.NORMAL:YI.BIG},e.prototype.toggleFullscreenIcon=function(){this.fullscreenIcon=this.fullscreenIcon===KI.BIG?KI.NORMAL:KI.BIG},e.\u0275fac=function(t){return new(t||e)(ss(SP),ss(_A))},e.\u0275cmp=Ft({type:e,selectors:[["stream-component"]],viewQuery:function(e,t){var n;1&e&&(Tc(kA,!0,qu),Tc(fk,!0),Tc(wA,!0),Tc(SA,!0)),2&e&&(Oc(n=Rc())&&(t.streamComponent=n.first),Oc(n=Rc())&&(t.menuTrigger=n.first),Oc(n=Rc())&&(t.menu=n.first),Oc(n=Rc())&&(t.nicknameInputElement=n.first))},hostBindings:function(e,t){1&e&&bs("resize",(function(e){return t.sizeChange(e)}),!1,Si)},inputs:{videoSizeBig:"videoSizeBig",user:"user"},outputs:{nicknameClicked:"nicknameClicked",replaceScreenTrackClicked:"replaceScreenTrackClicked",toggleVideoSizeClicked:"toggleVideoSizeClicked"},decls:1,vars:1,consts:[["class","OT_widget-container",3,"id","dblclick",4,"ngIf"],[1,"OT_widget-container",3,"id","dblclick"],["streamComponent",""],[1,"nickname"],["class","nicknameContainer","selected","",3,"click",4,"ngIf"],["id","dialogNickname",3,"fullscreen",4,"ngIf"],[3,"streamManager","mutedSound","toggleVideoSizeEvent"],[1,"statusIcons"],["id","statusMic",4,"ngIf"],["class","videoButtons",4,"ngIf"],["selected","",1,"nicknameContainer",3,"click"],["id","nickname"],[4,"ngIf"],["id","dialogNickname"],["mat-icon-button","","id","closeButton",3,"click"],["matTooltip","Close"],["id","nicknameForm"],["color","primary"],["matInput","","autocomplete","off",3,"placeholder","formControl","errorStateMatcher","keypress"],["nicknameInput",""],["id","statusMic"],[1,"videoButtons"],["mat-icon-button","","matTooltip","Settings","aria-label","Video settings menu",3,"click"],[3,"matMenuTriggerFor"],["yPosition","above","xPosition","before"],["menu","matMenu"],["mat-menu-item","","id","videoZoomButton",3,"click",4,"ngIf"],["mat-menu-item","","id","volumeButton",3,"click",4,"ngIf"],["mat-menu-item","","id","fullscreenButton",3,"click",4,"ngIf"],["mat-menu-item","","id","changeScreenButton",3,"click",4,"ngIf"],["mat-menu-item","","id","videoZoomButton",3,"click"],["mat-menu-item","","id","volumeButton",3,"click"],["mat-menu-item","","id","fullscreenButton",3,"click"],["mat-menu-item","","id","changeScreenButton",3,"click"]],template:function(e,t){1&e&&os(0,WA,9,9,"div",0),2&e&&cs("ngIf",t._user)},directives:[lh,sI,Qy,Yw,EC,_f,kd,mf,Zk,rS,pd,_d,Sf,Nk,fk,ck,ik],styles:[".nickname[_ngcontent-%COMP%]{padding:0;position:absolute;z-index:999;border-radius:5px;color:#fff;font-family:Ubuntu,sans-serif}.nicknameContainer[_ngcontent-%COMP%]{background-color:#424242;padding:5px;color:#fff;font-weight:700}#dialogNickname[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.37);border-radius:5px}#closeButton[_ngcontent-%COMP%]{position:absolute;top:-3px;right:0;z-index:999}#nicknameForm[_ngcontent-%COMP%]{padding:10px}.fullscreen[_ngcontent-%COMP%]{top:40px}mat-error[_ngcontent-%COMP%]{text-align:center;color:#353535}video[_ngcontent-%COMP%]{-o-object-fit:cover;object-fit:cover;width:100%;height:100%;color:#fff;margin:0;padding:0;border:0;font-size:100%}.statusIcons[_ngcontent-%COMP%]{bottom:0;left:5px;width:40px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;position:absolute;color:#fff;z-index:999}.statusIcons[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{vertical-align:-webkit-baseline-middle;vertical-align:-moz-middle-with-baseline;font-size:20px}.videoButtons[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:24px}.videoButtons[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{line-height:0}#camStatus[_ngcontent-%COMP%]{bottom:43px}#statusCam[_ngcontent-%COMP%], #statusMic[_ngcontent-%COMP%]{text-align:center;width:28px;height:28px;border-radius:50%;background:#c71100;margin:5px auto}.videoButtons[_ngcontent-%COMP%]{right:0;position:absolute;bottom:0;z-index:10;width:50px;text-align:center}.videoButtons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#000;width:30px;height:30px;margin:1px}.OT_widget-container[_ngcontent-%COMP%]{width:100%;height:100%;position:absolute;overflow:hidden;background-color:#000} .mat-focused .mat-form-field-label, .mat-form-field-appearance-legacy .mat-form-field-label, mat-error[_ngcontent-%COMP%]{color:#cacaca!important} .mat-form-field-appearance-legacy .mat-form-field-underline, .mat-form-field.mat-focused .mat-form-field-ripple{background-color:#cacaca!important}input[_ngcontent-%COMP%]{caret-color:#fff!important}.poster_img[_ngcontent-%COMP%]{position:absolute;z-index:888;max-width:70%;max-height:70%;bottom:0;top:0;margin:auto;right:0;left:0}"]}),e}(),GA=function(){function e(){}return e.prototype.transform=function(e){var t="";return e.forEach((function(e){t+="\u2022 "+e+"\n"})),t},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=qt({name:"tooltipList",type:e,pure:!0}),e}(),qA=function(){function e(){this.participantsNames=[]}return Object.defineProperty(e.prototype,"participants",{set:function(e){var t=this;this.participantsNames=[],e.forEach((function(e){e.nickname.includes(pP.SCREEN)||t.participantsNames.push(e.nickname)})),this.participantsNames=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}(this.participantsNames)},enumerable:!1,configurable:!0}),e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ft({type:e,selectors:[["app-footer"]],inputs:{lightTheme:"lightTheme",participants:"participants"},decls:9,vars:6,consts:[["fxLayout","","fxLayout.xs","row","fxLayoutAlign","center center","fxLayoutGap","2px","id","footer","role","heading",1,"container"],[1,"participantsButtonContainer"],["mat-icon-button","","matTooltip","Remote participants",1,""],["matBadgeSize","small","matBadgePosition","above after","matBadgeColor","accent",3,"matBadge"],["fxFlex","calc(100% - 40px)","fxFlexOrder","2"],[1,"participantNames"]],template:function(e,t){1&e&&(hs(0,"mat-toolbar",0),hs(1,"div",1),hs(2,"button",2),hs(3,"mat-icon",3),Ks(4,"people"),ds(),ds(),ds(),hs(5,"div",4),hs(6,"span",5),Ks(7),fc(8,"tooltipList"),ds(),ds(),ds()),2&e&&(Fs("headerLight",t.lightTheme),$r(3),Ms("matBadge",null==t.participantsNames?null:t.participantsNames.length),$r(4),Js(pc(8,4,t.participantsNames)))},directives:[iC,cO,WO,vO,Qy,EC,Yw,zy,OO,NO],pipes:[GA],styles:["#footer[_ngcontent-%COMP%]{color:#fff;height:25px;background-color:#333;padding:0 14px 0 0;position:absolute;bottom:0;left:0;z-index:999999;min-width:400px!important}.footerLight[_ngcontent-%COMP%]{color:#706969!important;background-color:#eee!important}.participantNames[_ngcontent-%COMP%]{font-size:small;height:inherit}.participantsButton[_ngcontent-%COMP%]{position:absolute;left:5px;top:none}.participantsButton[_ngcontent-%COMP%], .participantsButtonContainer[_ngcontent-%COMP%]{height:-webkit-fill-available;height:-moz-available}.mat-icon-button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .participantsButtonContainer[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{line-height:18px}"]}),e}(),ZA=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{u(i.next(e))}catch(t){o(t)}}function s(e){try{u(i.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((i=i.apply(e,t||[])).next())}))},QA=function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},YA=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i},KA=["chatComponent"],JA=["sidenav"];function XA(e,t){if(1&e){var n=ms();hs(0,"app-room-config",4),bs("join",(function(){return An(n),Es(2).onConfigRoomJoin()}))("leaveSession",(function(){return An(n),Es(2).leaveSession()}))("publisherCreated",(function(e){return An(n),Es(2).emitPublisher(e)})),ds()}if(2&e){var i=Es(2);cs("ovSettings",i.ovSettings)("externalConfig",i.externalConfig)}}function $A(e,t){1&e&&fs(0,"div",14)}function eR(e,t){if(1&e){var n=ms();hs(0,"app-toolbar",15),bs("camButtonClicked",(function(){return An(n),Es(3).toggleCam()}))("micButtonClicked",(function(){return An(n),Es(3).toggleMic()}))("screenShareClicked",(function(){return An(n),Es(3).toggleScreenShare()}))("layoutButtonClicked",(function(){return An(n),Es(3).toggleSpeakerLayout()}))("leaveSessionButtonClicked",(function(){return An(n),Es(3).leaveSession()})),ds()}if(2&e){var i=Es(3);cs("lightTheme",i.lightTheme)("compact",i.compact)("ovSettings",i.ovSettings)("hasVideoDevices",i.hasVideoDevices)("hasAudioDevices",i.hasAudioDevices)("isWebcamAudioEnabled",i.toolbarMicIconEnabled())("isAutoLayout",i.isAutoLayout)("isConnectionLost",i.isConnectionLost)}}function tR(e,t){if(1&e&&(hs(0,"mat-sidenav",16,17),fs(2,"chat-component",18,19),ds()),2&e){var n=Es(3);Fs("boundsLight",n.lightTheme),Ms("mode",n.sidenavMode),$r(2),cs("lightTheme",n.lightTheme)}}var nR=function(e){return{OV_small:e}};function iR(e,t){if(1&e){var n=ms();hs(0,"div",20),hs(1,"stream-component",21),bs("nicknameClicked",(function(e){return An(n),Es(3).onNicknameUpdate(e)}))("replaceScreenTrackClicked",(function(e){return An(n),Es(3).onReplaceScreenTrack(e)}))("toggleVideoSizeClicked",(function(e){return An(n),Es(3).onToggleVideoSize(e)})),ds(),ds()}if(2&e){var i=t.$implicit;cs("ngClass",lc(3,nR,!(null!=i&&null!=i.streamManager&&null!=i.streamManager.stream&&i.streamManager.stream.videoActive))),$r(1),cs("user",i)("videoSizeBig",i.videoSizeBig)}}function rR(e,t){if(1&e){var n=ms();hs(0,"div",22),hs(1,"stream-component",23),bs("toggleVideoSizeClicked",(function(e){return An(n),Es(3).onToggleVideoSize(e)})),ds(),ds()}if(2&e){var i=t.$implicit;cs("ngClass",lc(3,nR,!(null!=i.streamManager&&null!=i.streamManager.stream&&i.streamManager.stream.videoActive))),$r(1),cs("user",i)("videoSizeBig",i.videoSizeBig)}}function oR(e,t){if(1&e&&fs(0,"app-footer",24),2&e){var n=Es(3);cs("lightTheme",n.lightTheme)("participants",n.participantsNameList)}}function aR(e,t){if(1&e&&(hs(0,"div"),os(1,$A,1,0,"div",5),os(2,eR,1,8,"app-toolbar",6),fc(3,"hasToolbar"),hs(4,"mat-sidenav-container",7),os(5,tR,4,4,"mat-sidenav",8),fc(6,"hasChat"),hs(7,"mat-sidenav-content",9),hs(8,"div",10),fc(9,"hasToolbar"),fc(10,"hasFooter"),os(11,iR,2,5,"div",11),os(12,rR,2,5,"div",12),ds(),ds(),ds(),os(13,oR,1,2,"app-footer",13),fc(14,"hasFooter"),ds()),2&e){var n=Es(2);$r(1),cs("ngIf",n.isConnectionLost),$r(1),cs("ngIf",pc(3,14,n.ovSettings)),$r(2),Fs("boundsLight",n.lightTheme),$r(1),cs("ngIf",pc(6,16,n.ovSettings)),$r(3),js("top",pc(9,18,n.ovSettings)?"40px":"0px")("bottom",pc(10,20,n.ovSettings)?"25px":"0px"),Fs("boundsLight",n.lightTheme),$r(3),cs("ngForOf",n.localUsers),$r(1),cs("ngForOf",n.remoteUsers),$r(1),cs("ngIf",pc(14,22,n.ovSettings))}}function sR(e,t){if(1&e&&(hs(0,"div",1),os(1,XA,1,2,"app-room-config",2),os(2,aR,15,24,"div",3),ds()),2&e){var n=Es();Fs("boundsLight",n.lightTheme),$r(1),cs("ngIf",n.showConfigRoomCard),$r(1),cs("ngIf",n.localUsers&&n.localUsers.length>0)}}var uR=function(){function e(e,t,n,i,r,o,a,s,u,c,l){this.router=e,this.utilsSrv=t,this.remoteUsersService=n,this.openViduWebRTCService=i,this.localUsersService=r,this.oVDevicesService=o,this.loggerSrv=a,this.chatService=s,this.storageSrv=u,this.oVLayout=c,this.tokenService=l,this._session=new vc,this._publisher=new vc,this._error=new vc,this._joinSession=new vc,this._leaveSession=new vc,this.compact=!1,this.sidenavMode="side",this.showConfigRoomCard=!0,this.localUsers=[],this.remoteUsers=[],this.participantsNameList=[],this.isAutoLayout=!1,this.log=this.loggerSrv.get("VideoRoomComponent")}return e.prototype.beforeunloadHandler=function(){this.leaveSession()},e.prototype.sizeChange=function(){this.oVLayout.update(),this.checkSizeComponent()},e.prototype.ngOnInit=function(){var e;return ZA(this,void 0,void 0,(function(){return QA(this,(function(t){return this.localUsersService.initialize(),this.openViduWebRTCService.initialize(),this.lightTheme=(null===(e=this.externalConfig)||void 0===e?void 0:e.getTheme())===UP.LIGHT,this.ovSettings=this.externalConfig?this.externalConfig.getOvSettings():new BP,this.ovSettings.setScreenSharing(this.ovSettings.hasScreenSharing()&&!this.utilsSrv.isMobile()),[2]}))}))},e.prototype.ngOnDestroy=function(){var e;null===(e=this.session)||void 0===e||e.off("reconnecting"),this.remoteUsersService.clear(),this.oVLayout.clear(),this.localUsersService.clear(),this.session=null,this.sessionScreen=null,this.localUsers=[],this.remoteUsers=[],this.oVUsersSubscription&&this.oVUsersSubscription.unsubscribe(),this.remoteUsersSubscription&&this.remoteUsersSubscription.unsubscribe(),this.chatSubscription&&this.chatSubscription.unsubscribe(),this.remoteUserNameSubscription&&this.remoteUserNameSubscription.unsubscribe()},e.prototype.onConfigRoomJoin=function(){var e=this;this.hasVideoDevices=this.oVDevicesService.hasVideoDeviceAvailable(),this.hasAudioDevices=this.oVDevicesService.hasAudioDeviceAvailable(),this.showConfigRoomCard=!1,this.subscribeToLocalUsers(),this.subscribeToRemoteUsers(),this.tokenService.initialize(this.ovSettings),setTimeout((function(){e.oVLayout.initialize(),e.checkSizeComponent(),e.joinToSession()}),50)},e.prototype.joinToSession=function(){return ZA(this,void 0,void 0,(function(){return QA(this,(function(e){switch(e.label){case 0:return this.openViduWebRTCService.initSessions(),this.session=this.openViduWebRTCService.getWebcamSession(),this._session.emit(this.session),this.sessionScreen=this.openViduWebRTCService.getScreenSession(),this.subscribeToConnectionCreatedAndDestroyed(),this.subscribeToStreamCreated(),this.subscribeToStreamDestroyed(),this.subscribeToStreamPropertyChange(),this.subscribeToNicknameChanged(),this.chatService.setChatComponent(this.chatSidenav),this.chatService.subscribeToChat(),this.subscribeToChatComponent(),this.subscribeToReconnection(),[4,this.connectToSession()];case 1:return e.sent(),this.utilsSrv.isFirefox()&&!this.localUsersService.hasWebcamVideoActive()&&(this.openViduWebRTCService.publishWebcamVideo(!0),this.openViduWebRTCService.publishWebcamVideo(!1)),[2]}}))}))},e.prototype.leaveSession=function(){this.log.d("Leaving session..."),this.openViduWebRTCService.disconnect(),this.router.navigate([""]),this._leaveSession.emit()},e.prototype.onNicknameUpdate=function(e){this.localUsersService.updateUsersNickname(e),this.storageSrv.set(WP.USER_NICKNAME,e),this.openViduWebRTCService.sendNicknameSignal()},e.prototype.toggleMic=function(){this.localUsersService.isWebCamEnabled()?this.openViduWebRTCService.publishWebcamAudio(!this.localUsersService.hasWebcamAudioActive()):this.openViduWebRTCService.publishScreenAudio(!this.localUsersService.hasScreenAudioActive())},e.prototype.toggleCam=function(){return ZA(this,void 0,void 0,(function(){var e,t;return QA(this,(function(n){switch(n.label){case 0:return e=!this.localUsersService.hasWebcamVideoActive(),this.localUsersService.areBothConnected()?(this.openViduWebRTCService.publishWebcamVideo(e),this.localUsersService.disableWebcamUser(),this.openViduWebRTCService.unpublishWebcamPublisher(),[2]):this.localUsersService.isOnlyScreenConnected()?(t=this.localUsersService.hasScreenAudioActive(),this.openViduWebRTCService.isWebcamSessionConnected()?[3,2]:[4,this.connectWebcamSession()]):[3,4];case 1:n.sent(),n.label=2;case 2:return[4,this.openViduWebRTCService.publishWebcamPublisher()];case 3:n.sent(),this.openViduWebRTCService.publishScreenAudio(!1),this.openViduWebRTCService.publishWebcamAudio(t),this.localUsersService.enableWebcamUser(),n.label=4;case 4:return this.openViduWebRTCService.publishWebcamVideo(e),[2]}}))}))},e.prototype.toggleScreenShare=function(){return ZA(this,void 0,void 0,(function(){var e,t,n=this;return QA(this,(function(i){switch(i.label){case 0:return this.localUsersService.areBothConnected()?(this.removeScreen(),[2]):this.localUsersService.isOnlyWebcamConnected()?((e=this.initScreenPublisher()).once("accessAllowed",(function(t){return ZA(n,void 0,void 0,(function(){var t=this;return QA(this,(function(n){switch(n.label){case 0:return e.stream.getMediaStream().getVideoTracks()[0].addEventListener("ended",(function(){t.log.d("Clicked native stop button. Stopping screen sharing"),t.toggleScreenShare()})),this.log.d("ACCESS ALOWED screenPublisher"),this.localUsersService.enableScreenUser(e),this.openViduWebRTCService.isScreenSessionConnected()?[3,2]:[4,this.connectScreenSession()];case 1:n.sent(),n.label=2;case 2:return[4,this.openViduWebRTCService.publishScreenPublisher()];case 3:return n.sent(),this.openViduWebRTCService.sendNicknameSignal(),this.localUsersService.hasWebcamVideoActive()||(this.localUsersService.disableWebcamUser(),this.openViduWebRTCService.unpublishWebcamPublisher()),[2]}}))}))})),e.once("accessDenied",(function(e){n.log.w("ScreenShare: Access Denied")})),[2]):(t=this.localUsersService.hasScreenAudioActive(),[4,this.openViduWebRTCService.publishWebcamPublisher()]);case 1:return i.sent(),this.openViduWebRTCService.publishScreenAudio(!1),this.openViduWebRTCService.publishWebcamAudio(t),this.localUsersService.enableWebcamUser(),this.removeScreen(),[2]}}))}))},e.prototype.toggleSpeakerLayout=function(){if(!this.localUsersService.isScreenShareEnabled())return this.isAutoLayout=!this.isAutoLayout,this.log.d("Automatic Layout ",this.isAutoLayout?"Disabled":"Enabled"),this.isAutoLayout?void this.subscribeToSpeechDetection():(this.log.d("Unsubscribe to speech detection"),this.session.off("publisherStartSpeaking"),this.resetAllBigElements(),void this.oVLayout.update());this.log.w("Screen is enabled. Speech detection has been rejected")},e.prototype.onReplaceScreenTrack=function(e){this.openViduWebRTCService.replaceScreenTrack()},e.prototype.checkSizeComponent=function(){var e;this.compact=(null===(e=document.getElementById("room-container"))||void 0===e?void 0:e.offsetWidth)<=790,this.sidenavMode=this.compact?"over":"side"},e.prototype.onToggleVideoSize=function(e){var t=e.element;e.resetAll&&this.resetAllBigElements(),this.utilsSrv.toggleBigElementClass(t),(null==e?void 0:e.connectionId)&&(this.openViduWebRTCService.isMyOwnConnection(e.connectionId)?this.localUsersService.toggleZoom(e.connectionId):this.remoteUsersService.toggleUserZoom(e.connectionId)),this.oVLayout.update()},e.prototype.toolbarMicIconEnabled=function(){return this.localUsersService.isWebCamEnabled()?this.localUsersService.hasWebcamAudioActive():this.localUsersService.hasScreenAudioActive()},e.prototype.connectToSession=function(){return ZA(this,void 0,void 0,(function(){var e;return QA(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.tokenService.initTokens(this.externalConfig)];case 1:return t.sent(),[3,3];case 2:return e=t.sent(),this.log.e("There was an error initializing the token:",e.status,e.message),this._error.emit({error:e.error,messgae:e.message,code:e.code,status:e.status}),this.utilsSrv.showErrorMessage("There was an error initializing the token:",e.error||e.message),[3,3];case 3:return this.localUsersService.areBothConnected()?[4,this.connectWebcamSession()]:[3,8];case 4:return t.sent(),[4,this.connectScreenSession()];case 5:return t.sent(),[4,this.openViduWebRTCService.publishWebcamPublisher()];case 6:return t.sent(),[4,this.openViduWebRTCService.publishScreenPublisher()];case 7:return t.sent(),[3,14];case 8:return this.localUsersService.isOnlyScreenConnected()?[4,this.connectScreenSession()]:[3,11];case 9:return t.sent(),[4,this.openViduWebRTCService.publishScreenPublisher()];case 10:return t.sent(),[3,14];case 11:return[4,this.connectWebcamSession()];case 12:return t.sent(),[4,this.openViduWebRTCService.publishWebcamPublisher()];case 13:t.sent(),t.label=14;case 14:return this._joinSession.emit(),this.oVLayout.update(),[2]}}))}))},e.prototype.connectScreenSession=function(){return ZA(this,void 0,void 0,(function(){var e;return QA(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.openViduWebRTCService.connectScreenSession(this.tokenService.getScreenToken())];case 1:return t.sent(),[3,3];case 2:return e=t.sent(),this._error.emit({error:e.error,messgae:e.message,code:e.code,status:e.status}),this.log.e("There was an error connecting to the session:",e.code,e.message),this.utilsSrv.showErrorMessage("There was an error connecting to the session:",(null==e?void 0:e.error)||(null==e?void 0:e.message)),[3,3];case 3:return[2]}}))}))},e.prototype.connectWebcamSession=function(){return ZA(this,void 0,void 0,(function(){var e;return QA(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.openViduWebRTCService.connectWebcamSession(this.tokenService.getWebcamToken())];case 1:return t.sent(),[3,3];case 2:return e=t.sent(),this._error.emit({error:e.error,messgae:e.message,code:e.code,status:e.status}),this.log.e("There was an error connecting to the session:",e.code,e.message),this.utilsSrv.showErrorMessage("There was an error connecting to the session:",(null==e?void 0:e.error)||(null==e?void 0:e.message)),[3,3];case 3:return[2]}}))}))},e.prototype.subscribeToConnectionCreatedAndDestroyed=function(){var e=this;this.session.on("connectionCreated",(function(t){if(!e.openViduWebRTCService.isMyOwnConnection(t.connection.connectionId)){var n=e.utilsSrv.getNicknameFromConnectionData(t.connection.data);e.remoteUsersService.addUserName(t),(null==n?void 0:n.includes("_"+pP.SCREEN))||(e.remoteUsersService.add(t,null),e.openViduWebRTCService.sendNicknameSignal(t.connection))}})),this.session.on("connectionDestroyed",(function(t){if(!e.openViduWebRTCService.isMyOwnConnection(t.connection.connectionId)){e.remoteUsersService.deleteUserName(t);var n=e.utilsSrv.getNicknameFromConnectionData(t.connection.data);(null==n?void 0:n.includes("_"+pP.SCREEN))||e.remoteUsersService.removeUserByConnectionId(t.connection.connectionId)}}))},e.prototype.subscribeToStreamCreated=function(){var e=this;this.session.on("streamCreated",(function(t){if(!e.openViduWebRTCService.isMyOwnConnection(t.stream.connection.connectionId)){var n=e.session.subscribe(t.stream,void 0);e.remoteUsersService.add(t,n)}}))},e.prototype.subscribeToStreamDestroyed=function(){var e=this;this.session.on("streamDestroyed",(function(t){e.remoteUsersService.removeUserByConnectionId(t.stream.connection.connectionId)}))},e.prototype.emitPublisher=function(e){this._publisher.emit(e)},e.prototype.subscribeToStreamPropertyChange=function(){var e=this;this.session.on("streamPropertyChanged",(function(t){e.openViduWebRTCService.isMyOwnConnection(t.stream.connection.connectionId)||"videoActive"===t.changedProperty&&e.remoteUsersService.updateUsers()}))},e.prototype.subscribeToNicknameChanged=function(){var e=this;this.session.on("signal:nicknameChanged",(function(t){var n=t.from.connectionId;if(!e.openViduWebRTCService.isMyOwnConnection(n)){var i=e.utilsSrv.getNicknameFromConnectionData(t.data);e.remoteUsersService.updateNickname(n,i)}}))},e.prototype.subscribeToSpeechDetection=function(){var e=this;this.log.d("Subscribe to speech detection",this.session),this.session.on("publisherStartSpeaking",(function(t){var n=e.remoteUsersService.someoneIsSharingScreen();if(!e.localUsersService.isScreenShareEnabled()&&!n){var i=e.utilsSrv.getHTMLElementByClassName(t.connection.stream.streamManager.videos[0].video,bP.ROOT_CLASS);e.resetAllBigElements(),e.remoteUsersService.setUserZoom(t.connection.connectionId,!0),e.onToggleVideoSize({element:i})}}))},e.prototype.removeScreen=function(){this.localUsersService.disableScreenUser(),this.openViduWebRTCService.unpublishScreenPublisher()},e.prototype.subscribeToChatComponent=function(){var e=this;this.chatSubscription=this.chatService.toggleChatObs.subscribe((function(t){e.oVLayout.update(e.externalConfig?300:0)}))},e.prototype.subscribeToReconnection=function(){var e=this;this.session.on("reconnecting",(function(){e.log.w("Connection lost: Reconnecting"),e.isConnectionLost=!0,e.utilsSrv.showErrorMessage("Connection Problem","Oops! Trying to reconnect to the session ...",!0)})),this.session.on("reconnected",(function(){e.log.w("Connection lost: Reconnected"),e.isConnectionLost=!1,e.utilsSrv.closeDialog()})),this.session.on("sessionDisconnected",(function(t){"networkDisconnect"===t.reason&&(e.utilsSrv.closeDialog(),e.leaveSession())}))},e.prototype.initScreenPublisher=function(){var e=vP.SCREEN,t=this.hasAudioDevices?void 0:null,n=!(this.localUsersService.isWebCamEnabled()&&this.localUsersService.hasWebcamVideoActive())&&this.hasAudioDevices&&this.localUsersService.hasWebcamAudioActive(),i=this.openViduWebRTCService.createPublisherProperties(e,t,!0,n,!1);try{return this.openViduWebRTCService.initPublisher(void 0,i)}catch(r){this.log.e(r),this.utilsSrv.handlerScreenShareError(r)}},e.prototype.resetAllBigElements=function(){this.utilsSrv.removeAllBigElementClass(),this.remoteUsersService.resetUsersZoom(),this.localUsersService.resetUsersZoom()},e.prototype.subscribeToLocalUsers=function(){var e=this;this.oVUsersSubscription=this.localUsersService.OVUsers.subscribe((function(t){e.localUsers=t,e.oVLayout.update()}))},e.prototype.subscribeToRemoteUsers=function(){var e=this;this.remoteUsersSubscription=this.remoteUsersService.remoteUsers.subscribe((function(t){e.remoteUsers=YA(t),e.oVLayout.update()})),this.remoteUserNameSubscription=this.remoteUsersService.remoteUserNameList.subscribe((function(t){e.participantsNameList=YA(t)}))},e.\u0275fac=function(t){return new(t||e)(ss(LM),ss(SP),ss(TP),ss(RP),ss(EP),ss(QP),ss(gP),ss(DP),ss(GP),ss(KP),ss(nI))},e.\u0275cmp=Ft({type:e,selectors:[["app-video-room"]],viewQuery:function(e,t){var n;1&e&&(Tc(KA,!0),Tc(JA,!0)),2&e&&(Oc(n=Rc())&&(t.chatComponent=n.first),Oc(n=Rc())&&(t.chatSidenav=n.first))},hostBindings:function(e,t){1&e&&bs("beforeunload",(function(){return t.beforeunloadHandler()}),!1,Si)("resize",(function(){return t.sizeChange()}),!1,Si)},inputs:{externalConfig:"externalConfig"},outputs:{_session:"_session",_publisher:"_publisher",_error:"_error",_joinSession:"_joinSession",_leaveSession:"_leaveSession"},decls:1,vars:1,consts:[["id","videoRoomNavBar",3,"boundsLight",4,"ngIf"],["id","videoRoomNavBar"],[3,"ovSettings","externalConfig","join","leaveSession","publisherCreated",4,"ngIf"],[4,"ngIf"],[3,"ovSettings","externalConfig","join","leaveSession","publisherCreated"],["class","reconnecting-container",4,"ngIf"],[3,"lightTheme","compact","ovSettings","hasVideoDevices","hasAudioDevices","isWebcamAudioEnabled","isAutoLayout","isConnectionLost","camButtonClicked","micButtonClicked","screenShareClicked","layoutButtonClicked","leaveSessionButtonClicked",4,"ngIf"],["id","room-container","fullscreen","",1,"sidenav-container"],["position","end","class","sidenav-chat","fixedInViewport","true","fixedTopGap","40","fixedBottomGap","0",3,"mode","boundsLight",4,"ngIf"],[1,"sidenav-main"],["id","layout",1,"bounds"],["class","OT_root OT_publisher custom-class","id","localUser",3,"ngClass",4,"ngFor","ngForOf"],["class","OT_root OT_publisher custom-class","id","remoteUsers",3,"ngClass",4,"ngFor","ngForOf"],[3,"lightTheme","participants",4,"ngIf"],[1,"reconnecting-container"],[3,"lightTheme","compact","ovSettings","hasVideoDevices","hasAudioDevices","isWebcamAudioEnabled","isAutoLayout","isConnectionLost","camButtonClicked","micButtonClicked","screenShareClicked","layoutButtonClicked","leaveSessionButtonClicked"],["position","end","fixedInViewport","true","fixedTopGap","40","fixedBottomGap","0",1,"sidenav-chat",3,"mode"],["sidenav",""],[3,"lightTheme"],["chatComponent",""],["id","localUser",1,"OT_root","OT_publisher","custom-class",3,"ngClass"],[3,"user","videoSizeBig","nicknameClicked","replaceScreenTrackClicked","toggleVideoSizeClicked"],["id","remoteUsers",1,"OT_root","OT_publisher","custom-class",3,"ngClass"],[3,"user","videoSizeBig","toggleVideoSizeClicked"],[3,"lightTheme","participants"]],template:function(e,t){1&e&&os(0,sR,3,4,"div",0),2&e&&cs("ngIf",!!t.ovSettings)},directives:[lh,QI,YS,qS,uh,mA,ZS,FP,ah,GE,HA,qA],pipes:[mI,uI,gI],styles:['#videoRoomNavBar[_ngcontent-%COMP%]{min-width:400px;background-color:#494949;height:100%}.stream-container[_ngcontent-%COMP%]{padding:0}.reconnecting-container[_ngcontent-%COMP%]{width:100%;height:100%;z-index:1000;background-color:#000;opacity:1%;position:absolute}.sidenav-container[_ngcontent-%COMP%]{position:relative;width:100%;height:100%;min-height:-webkit-fill-available;overflow:hidden}.sidenav-chat[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:450px;border-left:none;position:absolute}.mat-drawer-container[_ngcontent-%COMP%], .sidenav-chat[_ngcontent-%COMP%]{background-color:#494949}.sidenav-main[_ngcontent-%COMP%]{height:100%;overflow:hidden;min-height:-webkit-fill-available;min-height:-moz-available}.bounds[_ngcontent-%COMP%]{background-color:#494949;position:absolute;left:0;right:0;min-width:350px!important;width:inherit}.boundsLight[_ngcontent-%COMP%]{background-color:#dfdfdf!important}\n\n.custom-class[_ngcontent-%COMP%]{min-height:0!important}.OT_root[_ngcontent-%COMP%], .OT_root[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{color:#fff;margin:0;padding:0;border:0;font-size:100%;font-family:Ubuntu,sans-serif;vertical-align:baseline;transition:all .1s linear}.OT_dialog-centering[_ngcontent-%COMP%]{display:table;width:100%;height:100%}.OT_dialog-centering-child[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.OT_dialog[_ngcontent-%COMP%]{position:relative;box-sizing:border-box;margin-right:auto;margin-left:auto;color:#fff;font-family:Ubuntu,sans-serif;font-size:13px;line-height:1.4}.OT_dialog[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{font-family:inherit;box-sizing:inherit}.OT_closeButton[_ngcontent-%COMP%]{color:#999;cursor:pointer;font-size:32px;line-height:36px;position:absolute;right:18px;top:0}.OT_dialog-messages[_ngcontent-%COMP%]{text-align:center}.OT_dialog-messages-main[_ngcontent-%COMP%]{margin-bottom:36px;line-height:36px;font-weight:300;font-size:24px}.OT_dialog-messages-minor[_ngcontent-%COMP%]{margin-bottom:18px;font-size:13px;line-height:18px;color:#a4a4a4}.OT_dialog-messages-minor[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:#fff}.OT_dialog-actions-card[_ngcontent-%COMP%]{display:inline-block}.OT_dialog-button-title[_ngcontent-%COMP%]{margin-bottom:18px;line-height:18px;font-weight:300;text-align:center;font-size:14px;color:#999}.OT_dialog-button-title[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{color:#999}.OT_dialog-button-title[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .OT_dialog-button-title[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:active, .OT_dialog-button-title[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:link{color:#02a1de}.OT_dialog-button-title[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:#fff;font-weight:100;display:block}.OT_dialog-button[_ngcontent-%COMP%]{display:inline-block;margin-bottom:18px;padding:0 1em;background-color:#1ca3dc;text-align:center;cursor:pointer}.OT_dialog-button[_ngcontent-%COMP%]:disabled{cursor:not-allowed;opacity:.5}.OT_dialog-button-large[_ngcontent-%COMP%]{line-height:36px;padding-top:9px;padding-bottom:9px;font-weight:100;font-size:24px}.OT_dialog-button-small[_ngcontent-%COMP%]{line-height:18px;padding-top:9px;padding-bottom:9px;background-color:#444;color:#999;font-size:16px}.OT_dialog-progress-bar[_ngcontent-%COMP%]{display:inline-block;width:100%;margin-top:5px;margin-bottom:41px;border:1px solid #4e4e4e;height:8px}.OT_dialog-progress-bar-fill[_ngcontent-%COMP%]{height:100%;background-color:#29a4da}.OT_dialog-plugin-upgrading[_ngcontent-%COMP%] .OT_dialog-plugin-upgrade-percentage[_ngcontent-%COMP%]{line-height:54px;font-size:48px;font-weight:100}.OT_centered[_ngcontent-%COMP%]{position:fixed;left:50%;top:50%;margin:0}.OT_dialog-hidden[_ngcontent-%COMP%]{display:none}.OT_dialog-button-block[_ngcontent-%COMP%]{display:block}.OT_dialog-no-natural-margin[_ngcontent-%COMP%]{margin-bottom:0}.OT_publisher[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%]{position:relative;min-width:48px;min-height:48px}.OT_publisher[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%]{display:block;position:absolute;width:100%;height:100%;transform-origin:0 0}.OT_publisher.OT_mirrored[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%]{transform:scaleX(-1);transform-origin:50% 50%}.OT_subscriber_error[_ngcontent-%COMP%]{background-color:#000;color:#fff;text-align:center}.OT_subscriber_error[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{padding:20px}.OT_publisher[_ngcontent-%COMP%] .OT_archiving[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_archiving-light-box[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_archiving-status[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_bar[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_name[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_archiving[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_archiving-light-box[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_archiving-status[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_bar[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_name[_ngcontent-%COMP%]{-ms-box-sizing:border-box;box-sizing:border-box;top:0;left:0;right:0;display:block;height:34px;position:absolute}.OT_publisher[_ngcontent-%COMP%] .OT_bar[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_bar[_ngcontent-%COMP%]{background:rgba(0,0,0,.4)}.OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item[_ngcontent-%COMP%]{z-index:1}.OT_publisher[_ngcontent-%COMP%] .OT_name[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_name[_ngcontent-%COMP%]{background-color:transparent;color:#fff;font-size:15px;line-height:34px;font-weight:400;padding:0 4px 0 36px}.OT_publisher[_ngcontent-%COMP%] .OT_archiving-status[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_archiving-status[_ngcontent-%COMP%]{background:rgba(0,0,0,.4);top:auto;bottom:0;left:34px;padding:0 4px;color:hsla(0,0%,100%,.8);font-size:15px;line-height:34px;font-weight:400}.OT_micro[_ngcontent-%COMP%] .OT_archiving-status[_ngcontent-%COMP%], .OT_micro[_ngcontent-%COMP%]:hover .OT_archiving-status[_ngcontent-%COMP%], .OT_mini[_ngcontent-%COMP%] .OT_archiving-status[_ngcontent-%COMP%], .OT_mini[_ngcontent-%COMP%]:hover .OT_archiving-status[_ngcontent-%COMP%]{display:none}.OT_publisher[_ngcontent-%COMP%] .OT_archiving-light-box[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_archiving-light-box[_ngcontent-%COMP%]{background:rgba(0,0,0,.4);top:auto;bottom:0;right:auto;width:34px;height:34px}.OT_archiving-light[_ngcontent-%COMP%]{width:7px;height:7px;border-radius:30px;position:absolute;top:14px;left:14px;background-color:#575757;box-shadow:0 0 5px 1px #575757}.OT_archiving-light.OT_active[_ngcontent-%COMP%]{background-color:#970d13;animation:OT_pulse 1.3s ease-in;-moz-animation:OT_pulse 1.3s ease-in;-webkit-animation:OT_pulse 1.3s ease-in;animation-iteration-count:infinite;-moz-animation-iteration-count:infinite;-webkit-animation-iteration-count:infinite}@-webkit-keyframes OT_pulse{0%{box-shadow:0 0 0 0 #c70019}30%{box-shadow:0 0 5px 1px #c70019}50%{box-shadow:0 0 5px 1px #c70019}80%{box-shadow:0 0 0 0 #c70019}to{box-shadow:0 0 0 0 #c70019}}.OT_bar.OT_mode-mini[_ngcontent-%COMP%], .OT_bar.OT_mode-mini-auto[_ngcontent-%COMP%], .OT_mini[_ngcontent-%COMP%] .OT_bar[_ngcontent-%COMP%]{bottom:0;height:auto}.OT_mini[_ngcontent-%COMP%] .OT_name.OT_mode-auto[_ngcontent-%COMP%], .OT_mini[_ngcontent-%COMP%] .OT_name.OT_mode-off[_ngcontent-%COMP%], .OT_mini[_ngcontent-%COMP%] .OT_name.OT_mode-on[_ngcontent-%COMP%], .OT_mini[_ngcontent-%COMP%]:hover .OT_name.OT_mode-auto[_ngcontent-%COMP%]{display:none}.OT_publisher[_ngcontent-%COMP%] .OT_name[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_name[_ngcontent-%COMP%]{left:10px;right:37px;height:34px;padding-left:0}.OT_publisher[_ngcontent-%COMP%] .OT_mute[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_mute[_ngcontent-%COMP%]{border:none;cursor:pointer;display:block;position:absolute;text-align:center;text-indent:-9999em;background-color:transparent;background-repeat:no-repeat;right:0;top:0;border-left:1px solid hsla(0,0%,100%,.2);height:36px;width:37px}.OT_mini[_ngcontent-%COMP%] .OT_mute[_ngcontent-%COMP%], .OT_publisher.OT_mini[_ngcontent-%COMP%] .OT_mute.OT_mode-auto.OT_mode-on-hold[_ngcontent-%COMP%], .OT_subscriber.OT_mini[_ngcontent-%COMP%] .OT_mute.OT_mode-auto.OT_mode-on-hold[_ngcontent-%COMP%]{top:50%;left:50%;right:auto;margin-top:-18px;margin-left:-18.5px;border-left:none}.OT_publisher[_ngcontent-%COMP%] .OT_mute[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAAcCAMAAAC02HQrAAAA1VBMVEUAAAD3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pn3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pn3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj39/j3+Pj3+Pn4+Pk/JRMlAAAAQ3RSTlMABAUHCQoLDhAQERwdHiAjLjAxOD9ASFBRVl1mbnZ6fH2LjI+QkaWqrrC1uLzAwcXJycrL1NXj5Ofo6u3w9fr7/P3+d4M3+QAAAQBJREFUGBlVwYdCglAABdCLlr5Unijm3hMUtBzlBLSr//9JgUToOQgVJgceJgU8aHgMeA38K50ZOpcQmTPwcyXn+JM8M3JJIqQypiIkeXelTyIkGZPwKS1NMia1lgKTVkaE3oQQGYsmHNqSMWnTgUFbMiZtGlD2dpaxrL1XgM0i4ZK8MeAmFhsAs29MGZniawagS63oMOQUNXYB5D0D1RMDpyoMLw/fiE2og/V+PVDR5AiBl0/2Uwik+vx4xV3a5G5Ye68Nd1czjUjZckm6VhmPciRzeCZICjwTJAViQq+3e+St167rAoHK8sLYZVkBYPCZAZ/eGa+2R5LH7Wrc0YFf/O9J3yBDFaoAAAAASUVORK5CYII=);background-position:9px 5px}.OT_publisher[_ngcontent-%COMP%] .OT_mute.OT_active[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAdCAYAAABFRCf7AAADcElEQVRIiaWVXWhcRRTHf7NNd2aDtUKMIjTpg4ufFIuiUOmDEWm0Vi3VYhXRqIggQh4sWJFSig9+oOhTKSpIRUWMIBIr2kptoTbgU6ooxCiIjR+14kcJmf9sNceHnd3ebnc3Uv9wuXfOzPzmnDMz5zozGwdWAbc65w5RUJQ8cC2wDJgFJioh/MJCMrNxq2vOzK4HmIvRRemxKP0RJWt53o7S+d2Yzsx6gQ+AIUDAnUqpBLzXZd4RYFUlhB/bdZacc3PAOmAcCMC7wfvFwLNdoAPAyx09bXyYWRl4E7gDmAdGlNKFwLYu8GolhO9O87RJd64GbMrgEvB68P4osMWdXLtVV7czlooNpVRWSs8DO7NpR/B+3rBHsvetCgtCMTxwQCm9BbyQrc8F7/uBex3uRCeXO0PrUZ4NfKyUPgWeyj3bg/crDNsIRGwBaJQGorQ3Svdn2wHgc2BUKb0DPJHtjwfvbwRucc7tz+N+i9LFUdoXpfVN36I0CVwBTFI/q9e1LPxT8P4qYEdu70q12mYzWw1MYQzjeJF6zq+shHC4B7jklOBPP/TzSunh4P0DwKvAfb5c9krpe+CcwsEoZdbhEvBM9wxRAl5RShcA9wAngE3B+8tLpdLuwrhp4MNmK0pfRWkySr7NXS8+L5nZbWZWy/Vin1IaitJnUTqvwevJ71lgSSWEFKUfHG7Q2m/xqFJaGry/GXgfGPLl8mJgrXPur2JoUC8Qy3OpG+sAbGhEKT0ErAWOA6uBPWbW1wr9BOgFbgKezot0kAPYqJQA1gC/A9cA+82svzksSn1R+jNKX0SpnM/e1x3yqig92JhrZivM7FjO8bSZLSuCR/Ok16K0KMNHojQWpYko7Y7S1igN5PE3ROl4lNaZ2UVmNpPBU01orvZvZPCeKFXbBR+lEKVtUapFaSZKg9njqpl9aWYTrmXCImA7sCWb9lK/jj9TrwkrgA1AH3AQuKsSwkzbrLfxpgpsBtYDxf/R3xm2ExirhNCuHHZXTsmRwiat+S/zSt06eysVA/4pmGr/G3qm6ik28v29FKgCg8BS6pvS0KNRGgZ+Bb4FpsxsOkfUlMuwDcBWYOUZOHYM2AU8WQmhBifDv70O7PjX7KZ+4G7g3FM8zd6uBIaBy4AqxnIcZwFLCovPAhE4Sj38b4BDwEeVEFKD9S94Khjn486v3QAAAABJRU5ErkJggg==);background-position:9px 4px}.OT_subscriber[_ngcontent-%COMP%] .OT_mute[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABcAAAATCAYAAAB7u5a2AAABx0lEQVQ4jaWUv48NURiGn3ONmCs32ZBd28ht1gqyZAkF21ylQkEiSp2ehpDlD1BoFGqqVdJohYKI7MaPxMoVNghCWMF+7ybLUewnOXfcMWO9yeQ857zne8+XmZOBGjJpr0kvTIomvTZpS526UCO4DUwD64FjwCFgqZnnR+oc8LfgzKQ73vGsr42ZtGjSQFV9o8KfBCacZwCaef4YmAf2rzjcpN3A2WSpm/AssKcqPDNpDBjs410CViXzTwk/A7b1C4wxDgOngAsZcAXY2buDfp/6S4F3lDS8DjgBzDWAjX/Y/e/QgYS/AhsKHa+OMQ6GEJ4Cj4BOAxgq6aCowyZtdf4OtAr+FHDO+R4wWnVbihr3cQnICt4boO38GWj9a/icjwOACt4m4K3zEPA+AxaAtTWCnwN3lzHkEL8V/OPAGud9wK2GF9XR1Wae/1zG2AI+pGYI4VUIoRtjHAc2A9cz4LRPevYCZ+i9/4sJt4GXJU10gaPAzdI2TTro/5Tfz8XEe2LSZGmxq/SDNvP8BnA5WRrx4BwYBe6vONx1EnjovGvBLAAd4Adwuyq8UiaNmDTvr+a8SQ9MuvbfwckBHZPe+QEfTdpep+4XZmPBHiHgz74AAAAASUVORK5CYII=);background-position:8px 7px}.OT_subscriber[_ngcontent-%COMP%] .OT_mute.OT_active[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAUCAYAAACXtf2DAAACtklEQVQ4jZ2VSYiURxTHf+/T9Nc9iRrBuYySmIsXUU9iFMEFERRBvAjJLUQi5ioiHvSScfTmgqC4XAT1ZIgLuJHkICaaQAgKI2hAUBT30bjUq7bbv4eukXK029F3+eqtv/fqK6qQdEnSNUmT6CDB/bvgfjO4N9zj2RD8007xg1IABkwEzkma0qb4PGAPMBZYLtSD8eNwAEjqTlNI0gNJM4YU7w7ut4O7gvuhZFsR3C8NC5BBLiTIY0mzM8AvqbiC++pk+zLpE95XuwAws3vAQuBPYDRwWtL84P4tsDSLv5oaug4EYOawAMF9jMdoLxqNZcDvQA04UVYqL4G/svj7AF21mhJscrvCksYBFO7xc2AAGGg2mrdjvf4rcAyomNn+slLZmUEGBgsYdh945xZJmgvckDSrEJpK6ySBgV6q12O8ABwGPjGzfWWlsjdN9rpjoSfA+DYDXARGAksK4Is3XC1Ub4z1f4CDQGFmu6tleQSYk0U+p7WVeefLJc00s4fAeWB6Qeunvj0m2ugx9gO7kmlrtSxvBfcy6fXUZS6rgG/S+jLQUwCVNmMC9HqM14EtSe+rluWazN8YEv8IqKZ1E1qnaIDO0ucx3gX6kv6TpM3AM+D/IbGjgP60/gq4WQA33gMA2OQxPgHWJX1ttSwL4FAeZGYLgB2SasBs4A8L7qOBf9M0uXQB3a+TMYSmVctyDrA9mfcBK82smSdKWgCcAaa1bTm4fxbc/8uuCQX3RanAD5Ka6Wo5IGnE0HxJPZ03pQX5Org3MsD3AO5xXLPZXJ9BjkrqdFg6QjZkgG3Jtsw93pG0VFI9QU5K6voYQBHcTydAfwheBI9HgvvPAJIWS3qeIL9JGvUxkO7gfi1BrqTvwkG/pPmSnibIqTzXPgAyEVgBjAEu1qrVPbk/PVTHgb/NbPGg/RVIzOQqzSTBaQAAAABJRU5ErkJggg==);background-position:7px 7px}.OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item[_ngcontent-%COMP%]{transition-property:top,bottom,opacity;transition-duration:.5s;transition-timing-function:ease-in}.OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-auto[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-mini-auto[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-off[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-mini-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-off[_ngcontent-%COMP%]{top:-25px;opacity:0}.OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-off[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-off[_ngcontent-%COMP%]{display:none}.OT_mini[_ngcontent-%COMP%] .OT_mute.OT_mode-auto[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_mute.OT_mode-mini-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_mute.OT_mode-mini-auto[_ngcontent-%COMP%]{top:50%}.OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-auto[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-mini-auto[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-off[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-mini-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-off[_ngcontent-%COMP%]{top:auto;bottom:-25px}.OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-auto.OT_mode-on-hold[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-on[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%]:hover .OT_edge-bar-item.OT_mode-auto[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%]:hover .OT_edge-bar-item.OT_mode-mini-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-auto.OT_mode-on-hold[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-on[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%]:hover .OT_edge-bar-item.OT_mode-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%]:hover .OT_edge-bar-item.OT_mode-mini-auto[_ngcontent-%COMP%]{top:0;opacity:1}.OT_mini[_ngcontent-%COMP%] .OT_mute.OT_mode-on[_ngcontent-%COMP%], .OT_mini[_ngcontent-%COMP%]:hover .OT_mute.OT_mode-auto[_ngcontent-%COMP%], .OT_mute.OT_mode-mini[_ngcontent-%COMP%], .OT_root[_ngcontent-%COMP%]:hover .OT_mute.OT_mode-mini-auto[_ngcontent-%COMP%]{top:50%}.OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-on[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%]:hover .OT_edge-bar-item.OT_edge-bottom.OT_mode-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-on[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%]:hover .OT_edge-bar-item.OT_edge-bottom.OT_mode-auto[_ngcontent-%COMP%]{top:auto;bottom:0;opacity:1}.OT_root[_ngcontent-%COMP%] .OT_video-loading[_ngcontent-%COMP%]{position:absolute;z-index:1;width:100%;height:100%;display:none;background-color:rgba(0,0,0,.75)}.OT_root[_ngcontent-%COMP%] .OT_video-loading[_ngcontent-%COMP%] .OT_video-loading-spinner[_ngcontent-%COMP%]{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9Ii0yMCAtMjAgMjQwIDI0MCI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJhIiB4Mj0iMCIgeTI9IjEiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIwIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjZmZmIiBzdG9wLW9wYWNpdHk9IjAiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iYiIgeDE9IjEiIHgyPSIwIiB5Mj0iMSI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjZmZmIiBzdG9wLW9wYWNpdHk9IjAiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNmZmYiIHN0b3Atb3BhY2l0eT0iLjA4Ii8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9ImMiIHgxPSIxIiB4Mj0iMCIgeTE9IjEiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIuMDgiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNmZmYiIHN0b3Atb3BhY2l0eT0iLjE2Ii8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9ImQiIHgyPSIwIiB5MT0iMSI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjZmZmIiBzdG9wLW9wYWNpdHk9Ii4xNiIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIuMzMiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iZSIgeDI9IjEiIHkxPSIxIj48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiNmZmYiIHN0b3Atb3BhY2l0eT0iLjMzIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjZmZmIiBzdG9wLW9wYWNpdHk9Ii42NiIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJmIiB4Mj0iMSIgeTI9IjEiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIuNjYiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNmZmYiLz48L2xpbmVhckdyYWRpZW50PjxtYXNrIGlkPSJnIj48ZyBmaWxsPSJub25lIiBzdHJva2Utd2lkdGg9IjQwIj48cGF0aCBzdHJva2U9InVybCgjYSkiIGQ9Ik04Ni42LTUwYTEwMCAxMDAgMCAwIDEgMCAxMDAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwMCAxMDApIi8+PHBhdGggc3Ryb2tlPSJ1cmwoI2IpIiBkPSJNODYuNiA1MEExMDAgMTAwIDAgMCAxIDAgMTAwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMDAgMTAwKSIvPjxwYXRoIHN0cm9rZT0idXJsKCNjKSIgZD0iTTAgMTAwYTEwMCAxMDAgMCAwIDEtODYuNi01MCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTAwIDEwMCkiLz48cGF0aCBzdHJva2U9InVybCgjZCkiIGQ9Ik0tODYuNiA1MGExMDAgMTAwIDAgMCAxIDAtMTAwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMDAgMTAwKSIvPjxwYXRoIHN0cm9rZT0idXJsKCNlKSIgZD0iTS04Ni42LTUwQTEwMCAxMDAgMCAwIDEgMC0xMDAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwMCAxMDApIi8+PHBhdGggc3Ryb2tlPSJ1cmwoI2YpIiBkPSJNMC0xMDBhMTAwIDEwMCAwIDAgMSA4Ni42IDUwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMDAgMTAwKSIvPjwvZz48L21hc2s+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHg9Ii0yMCIgeT0iLTIwIiBtYXNrPSJ1cmwoI2cpIiBmaWxsPSIjZmZmIi8+PC9zdmc+) no-repeat;position:absolute;width:32px;height:32px;left:50%;top:50%;margin-left:-16px;margin-top:-16px;-webkit-animation:OT_spin 2s linear infinite;animation:OT_spin 2s linear infinite}@-webkit-keyframes OT_spin{to{-webkit-transform:rotate(1turn)}}@keyframes OT_spin{to{transform:rotate(1turn)}}.OT_publisher.OT_loading[_ngcontent-%COMP%] .OT_video-loading[_ngcontent-%COMP%], .OT_subscriber.OT_loading[_ngcontent-%COMP%] .OT_video-loading[_ngcontent-%COMP%]{display:block}.OT_video-centering[_ngcontent-%COMP%]{display:table;width:100%;height:100%}.OT_video-container[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.OT_video-poster[_ngcontent-%COMP%]{position:absolute;z-index:1;width:100%;height:100%;display:none;opacity:.25;background-repeat:no-repeat;background-image:url(data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNDcxIDQ2NCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgyPSIwIiB5Mj0iMSI+PHN0b3Agb2Zmc2V0PSI2Ni42NiUiIHN0b3AtY29sb3I9IiNmZmYiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmZmYiIHN0b3Atb3BhY2l0eT0iMCIvPjwvbGluZWFyR3JhZGllbnQ+PHBhdGggZmlsbD0idXJsKCNhKSIgZD0iTTc5IDMwOGMxNC4yNS02LjUgNTQuMjUtMTkuNzUgNzEtMjkgOS0zLjI1IDI1LTIxIDI1LTIxczMuNzUtMTMgMy0yMmMtMS43NS02Ljc1LTE1LTQzLTE1LTQzLTIuNSAzLTQuNzQxIDMuMjU5LTcgMS0zLjI1LTcuNS0yMC41LTQ0LjUtMTYtNTcgMS4yNS03LjUgMTAtNiAxMC02LTExLjI1LTMzLjc1LTgtNjctOC02N3MuMDczLTcuMzQ2IDYtMTVjLTMuNDguNjM3LTkgNC05IDQgMi41NjMtMTEuNzI3IDE1LTIxIDE1LTIxIC4xNDgtLjMxMi0xLjMyMS0xLjQ1NC0xMCAxIDEuNS0yLjc4IDE2LjY3NS04LjY1NCAzMC0xMSAzLjc4Ny05LjM2MSAxMi43ODItMTcuMzk4IDIyLTIyLTIuMzY1IDMuMTMzLTMgNi0zIDZzMTUuNjQ3LTguMDg4IDQxLTZjLTE5Ljc1IDItMjQgNi0yNCA2czc0LjUtMTAuNzUgMTA0IDM3YzcuNSA5LjUgMjQuNzUgNTUuNzUgMTAgODkgMy43NS0xLjUgNC41LTQuNSA5IDEgLjI1IDE0Ljc1LTExLjUgNjMtMTkgNjItMi43NSAxLTQtMy00LTMtMTAuNzUgMjkuNS0xNCAzOC0xNCAzOC0yIDQuMjUtMy43NSAxOC41LTEgMjIgMS4yNSA0LjUgMjMgMjMgMjMgMjNsMTI3IDUzYzM3IDM1IDIzIDEzNSAyMyAxMzVMMCA0NjRzLTMtOTYuNzUgMTQtMTIwYzUuMjUtNi4yNSAyMS43NS0xOS43NSA2NS0zNnoiLz48L3N2Zz4=);background-size:auto 76%}.OT_fit-mode-cover[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%]{-o-object-fit:cover;object-fit:cover}@media only screen and (orientation:portrait){.OT_subscriber.OT_ForceContain.OT_fit-mode-cover[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%]{-o-object-fit:contain!important;object-fit:contain!important}}.OT_fit-mode-contain[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%]{-o-object-fit:contain;object-fit:contain}.OT_fit-mode-cover[_ngcontent-%COMP%] .OT_video-poster[_ngcontent-%COMP%]{background-position:bottom}.OT_fit-mode-contain[_ngcontent-%COMP%] .OT_video-poster[_ngcontent-%COMP%]{background-position:50%}.OT_audio-level-meter[_ngcontent-%COMP%]{position:absolute;width:25%;max-width:224px;min-width:21px;top:0;right:0;overflow:hidden}.OT_audio-level-meter[_ngcontent-%COMP%]:before{content:"";display:block;padding-top:100%}.OT_audio-level-meter__bar[_ngcontent-%COMP%]{position:absolute;width:192%;height:192%;top:-96%;right:-96%;border-radius:50%;background-color:rgba(0,0,0,.8)}.OT_audio-level-meter__audio-only-img[_ngcontent-%COMP%]{position:absolute;top:22%;right:15%;width:40%;opacity:.7;background:url(data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNzkgODYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iI2ZmZiI+PHBhdGggZD0iTTkuNzU3IDQwLjkyNGMzLjczOC01LjE5MSAxMi43MTEtNC4zMDggMTIuNzExLTQuMzA4IDIuMjIzIDMuMDE0IDUuMTI2IDI0LjU4NiAzLjYyNCAyOC43MTgtMS40MDEgMS4zMDEtMTEuNjExIDEuNjI5LTEzLjM4LTEuNDM2LTEuMjI2LTguODA0LTIuOTU1LTIyLjk3NS0yLjk1NS0yMi45NzV6bTU4Ljc4NSAwYy0zLjczNy01LjE5MS0xMi43MTEtNC4zMDgtMTIuNzExLTQuMzA4LTIuMjIzIDMuMDE0LTUuMTI2IDI0LjU4Ni0zLjYyNCAyOC43MTggMS40MDEgMS4zMDEgMTEuNjExIDEuNjI5IDEzLjM4LTEuNDM2IDEuMjI2LTguODA0IDIuOTU1LTIyLjk3NSAyLjk1NS0yMi45NzV6Ii8+PHBhdGggZD0iTTY4LjY0NyA1OC42Yy43MjktNC43NTMgMi4zOC05LjU2MSAyLjM4LTE0LjgwNCAwLTIxLjQxMi0xNC4xMTUtMzguNzctMzEuNTI4LTM4Ljc3LTE3LjQxMiAwLTMxLjUyNyAxNy4zNTgtMzEuNTI3IDM4Ljc3IDAgNC41NDEuNTE1IDguOTM2IDEuODAyIDEyLjk1IDEuNjk4IDUuMjk1LTUuNTQyIDYuOTkxLTYuNjE2IDIuMDczQzIuNDEgNTUuMzk0IDAgNTEuNzg3IDAgNDguMTAzIDAgMjEuNTM2IDE3LjY4NSAwIDM5LjUgMCA2MS4zMTYgMCA3OSAyMS41MzYgNzkgNDguMTAzYzAgLjcxOC0yLjg5OSA5LjY5My0zLjI5MiAxMS40MDgtLjc1NCAzLjI5My03Ljc1MSAzLjU4OS03LjA2MS0uOTEyeiIvPjxwYXRoIGQ9Ik01LjA4NCA1MS4zODVjLS44MDQtMy43ODIuNTY5LTcuMzM1IDMuMTM0LTcuOTIxIDIuNjM2LS42MDMgNS40ODUgMi4xNSA2LjI4OSA2LjEzMi43OTcgMy45NDgtLjc1MiA3LjQ1Ny0zLjM4OCA3Ljg1OS0yLjU2Ni4zOTEtNS4yMzctMi4zMTgtNi4wMzQtNi4wN3ptNjguODM0IDBjLjgwNC0zLjc4Mi0uNTY4LTcuMzM1LTMuMTMzLTcuOTIxLTIuNjM2LS42MDMtNS40ODUgMi4xNS02LjI4OSA2LjEzMi0uNzk3IDMuOTQ4Ljc1MiA3LjQ1NyAzLjM4OSA3Ljg1OSAyLjU2NS4zOTEgNS4yMzctMi4zMTggNi4wMzQtNi4wN3ptLTIuMDM4IDguMjg4Yy0uOTI2IDE5LjY1OS0xNS4xMTIgMjQuNzU5LTI1Ljg1OSAyMC40NzUtNS40MDUtLjYwNi0zLjAzNCAxLjI2Mi0zLjAzNCAxLjI2MiAxMy42NjEgMy41NjIgMjYuMTY4IDMuNDk3IDMxLjI3My0yMC41NDktLjU4NS00LjUxMS0yLjM3OS0xLjE4Ny0yLjM3OS0xLjE4N3oiLz48cGF0aCBkPSJNNDEuNjYyIDc4LjQyMmw3LjU1My41NWMxLjE5Mi4xMDcgMi4xMiAxLjE1MyAyLjA3MiAyLjMzNWwtLjEwOSAyLjczOGMtLjA0NyAxLjE4Mi0xLjA1MSAyLjA1NC0yLjI0MyAxLjk0NmwtNy41NTMtLjU1Yy0xLjE5MS0uMTA3LTIuMTE5LTEuMTUzLTIuMDcyLTIuMzM1bC4xMDktMi43MzdjLjA0Ny0xLjE4MiAxLjA1Mi0yLjA1NCAyLjI0My0xLjk0N3oiLz48L2c+PC9zdmc+) no-repeat 50%}.OT_audio-level-meter__audio-only-img[_ngcontent-%COMP%]:before{content:"";display:block;padding-top:100%}.OT_audio-level-meter__value[_ngcontent-%COMP%]{position:absolute;border-radius:50%;background-image:radial-gradient(circle,#97ce00 0,rgba(151,206,0,0) 100%)}.OT_audio-level-meter.OT_mode-off[_ngcontent-%COMP%]{display:none}.OT_audio-level-meter.OT_mode-on[_ngcontent-%COMP%], .OT_audio-only[_ngcontent-%COMP%] .OT_audio-level-meter.OT_mode-auto[_ngcontent-%COMP%]{display:block}.OT_audio-only.OT_publisher[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%], .OT_audio-only.OT_subscriber[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%]{display:none}.OT_video-disabled-indicator[_ngcontent-%COMP%]{opacity:1;border:none;display:none;position:absolute;background-color:transparent;background-repeat:no-repeat;background-position:100% 100%;pointer-events:none;top:0;left:0;bottom:3px;right:3px}.OT_video-disabled[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFIAAAAoCAYAAABtla08AAAINUlEQVR42u2aaUxUVxTHcRBmAAEBRVTK4sKwDIsg+wCK7CqIw1CN1YobbbS2qYlJ06Qx1UpdqMbYWq2pSzWmH6ytNbXWJY1Lq7VuqBERtW64V0XFLYae0/xvcp3MMAMzDz6IyT/ge2ce5/7ucpY3Ts3NzZ1ygF57AJ0gO0G2jyZPmdbFyclJSAV1EeoEaUUSLGdSV5KLLFxzFmA7QVqGqDqjixhWkxCVeyRVl38wM6bwj6yYItYK47BAuu9B0gCqs6Ng2r494KQtkj/Dz2jHraw6qw2fdSE4rNmcCPCvZONP8iF1I6kdBdMaQJWZLeJqRWa2kPJAxXY+GxE+zxLI03GRh8lGSwoi9WCY8FWlCEh+8JOnT7MfPGjMuXX7Tt61hoaCi/9cKmKdv3BxeEtim/UbNpnbQiqF4MmT7kqrbr4lkMcTo46TTSpJB5g+8NHuVWnWuaampvhmO/7duHmrGluoO4C6OsJZGRrkDIld43ZqUOTnlkDSmXmabAoBU0vqBf+6KgFSxQ9++uzZ8rZApM81TJ8xM5me0Z/UF7PuBmdVdkGEb5gYDeQmyZNW3SJLIP9Kj64lGyMpmxRN6sOfIbkoAhKOdnv2/PmB1kB88eLFo+olyyrps3rSINIAzLonnqlqK8R9w+L86vtrt5L2nhug3Vc3ULu/Liz8AOuXESlZZONH6kmr7gtLIA9lRNeRzVukAvj3BslLnJNKgfScO69K+/Lly0ZbQW7e8tNK+pwBjqaSIjDrXgJkW1ciAZvbQjQ+RDahpBBKd5ZZsqN758hmImk4KQHnpDd8UwSkCyJarx07d4+3BeKJmlMHyX4qaRxpBCmNFE4KENvHDpAutVERn1kCVBMfeRRgYvZnx62wZPdnZkw92VQA5GClQXYRBze2S+iJmpPVVoJLA9l9QKokjcWKTCT1R5rhLg70NuSsziT16diIKkuAjibrTpJNDkn/e17CahtAjlAWJAYkb29Sb1LE9Rs391kILk8mVkyuIpuZcLKUlEmKkra1WuSTNuesEPzwoEploSVAh9Oiz+BIyd9dOHhtx4OEpFpVg6gbNK3yXX1j48N6U5Dz5i/gc/FDrMY3sTLiSMEkXxGxzUEUAGnbxlPaksMlHUXWAlHS8URCPseSohZbCSLjSSU7ixLXdzhIWVKq4Y7t2a/2bN0qGeKly1fYsVmk6RgIDz4J0bonyUOcjeYqm/8hRoYbWkigV2NH9CHAS60EkUkkw47hSRs6FqT1LR5AVcsrueXlK1d5AO+RpmBrZZEiefByytPCanRGNLZY0uF52gNDYr9sCRB8MHY0SJu2OJWKS2WQV65e4y31DmkCImEi0hBfufRime0RIhpbKen0/Ny9OYNW2ghyYytABjNIaxNuKttAWk6HPLn0k0FevdZwFinPWFIuKZbUV16NVko6jbWSDoPO3pOf8K0jQWLSQ0S9bdpkYck+m7vfWpAiHfKgBsZiGSSt0FqcTeU8WETqAHE2CgcAVd3Gkm4MD3xXYeI6B4NMItvKbcUpQ9gP+KMWnSsW+TaYJtoo+avBWLoKoK0CCSDud+7eXWQGZAXqV3YoQjQCfixJ8+fzj9ta3JHhlUeJ8wJOY2ws6eRKpPS3oqTvHAESEz9ya0naXL5WH6pt3FqSOhTHkTcKEXc6k1POh4Q9YJu/03TT4a8PoGMFI4i2EqSbOZAYaBkpCyD92RkG6KCSbjI/H0HEISBnlOZPFdcEzI2GTO4KBZICGKyAKLTEmJOB2txf5MbgohBINCl4FTqmpJMB2W+HiRn1Q2l6lXyPmiEP6VVE2TfGoaMYrHyPdtAnyI0jEOn9RLWmNEhvBBE7SjpFQZaShtLK+1S+T12lRwxUvrZlVPp8jE1PikeO7C/nyEqBDCB1t7+kUx4kKUWclea0yZC5BIGpiJSNSD9QgFR0RQKkL6KxHSWdsiARHJNYewoGrzG1/bk4dTPSunL2EyDjcbb7MQ+lQfZmkKiN7SjpFAM5CWAyGcwyY84YsZ1lUcbRNNtQMAdtQWGvQ0DyVjzYAKQfQFodeAeC1C8vzymXIZqD+ZEh/2OyLSalS/3VbnJZ+VqDXGjMrTCFuK4s66vVZUNfqaDolcbjOcb899sLpEE+I20GifywXe2QR3KElu99PzqjGufhREqB1pjCnG3IL3fY1v733r2FMsiGhutn0LAoJWWIGbPxjKwgjUbF0m52mPhigrpdXOecEq9pR6MkHbu2LOtrcZ9y3d0ODTb15y9MePz48aF79+8fvXnr9sljx2u2I7KNxDuaMPGVECoRs7mC4eT7SIruFNfNHK15MKuM2evwNq+4qjxvGnd5CHwNNynawW4cOlUZdG8b55IIJHmkItwrZHH6QxB3OSL9kTtAGpIvZiQB3Z4SKBfXQtEE9sashWAW87Bt3sYZNR6zn4uzJwWDKUKXfaKCdqUoBpLxSjYe9nqGiwWRBGipuGZ3Qm76itYLbbJI/PEhUApfw73uOIy9xfse3M9F9BuFJHcYrseSouGkHtCVtkuGTTikI8XgZzhg9SeF4VqcvSWiaSvNHQ8JwkNjIfEHemCmNLD1RaEfLs18mlgNuN6PFALHo7CyU5W2g00gFAQF4ozvibH04muwDbWraSFAyt/AAMzewgGR8uCeWn77xzBxPxgzPRCDDMZ14bQ/3jqGKGoHf2Hjgx3kw5LbaJDYWb52t9FMgw4AuWNWukNeuOYqOsmQi2jgws4PA/DD/z0B2x0/veCs4naw0cgybezid7X9jV3rX2RSs0wfLkll4pBGcgifg+NYxe1kJ2ycTaRq66uG/wBOl0vjcw70xwAAAABJRU5ErkJggg==);background-size:33px auto}.OT_video-disabled-warning[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFIAAAAoCAYAAABtla08AAAGMElEQVR4Ae2aA7D0yBaAc7oH12vbRmlLaxYWb23btm3btm2899a2bWuYtPZ01cmtU9lJrib315yqr9I3Oem/5/s7acwEnehEJzoxCcX2O+wEeIgRBDDaGjAZOgQ6ihRpLklHZDJIXK1WWymMIhGGkVBKCWMM+Iv/f/b5t7faYtM/sGgIS7j8RNLjceUVl41GvGN1BFiHy9sgtRWaYbhvuVQ6o1VOvV5/tLe3dyssKoZuh8xClkDEi2MMS6ZjR0cScxdK/+HgnJsmLccYOx0e/PUGUqfTJDEHkV5go9lcMQoj4R8RpSIRRUr4a9baTJFCCNfqESKJ7RYJibK0xoi05EhFRTxMi1Rit6xHAuLaKRLwEVi6q1x+EhlVpd3d3Wfh4VQkQhRhxthYLg7SRGqdLlIp7UVOHf+JhEhEMscUolVje3p63saeeOFoKsT7fjj++BNuw2I/0ouUENmGaQcQEilQvUU6xuWC0kqmVWCt8df6kG7WLoFA20VSCOyNh0RKPT+SyrTWtQsvuvTYCy84z3+oAdbgAiLGIvHjTz6bFuu/B3lKKfVkFKknwih6EnnipZdfXQZzepAupXSGSCfwUGZtkrx3t/0dSQGnnXbmdocdetArQoj+4VR23wMP3bj/vnv9Sv/rBmkish09ca655thHSrlWq4TFF1vkNDxsgjiUnPqZnHPABIq47jx7pPMcecShfz7x1DO7D6eit99576X1113nVd8rqLGAuDaNitJonTGIqHgQGQjDsJglMrUH5iDSEQbRa6y2yrNvv/PuWVmV/PTzLz8steTit1B9FtGJeZrJksmWdBzBMcami4xUkaY1A1Qe94WIaPGBApJhaERrLrXkElf8+NPPz6YMLs1DDjn0Wn9PnI/UiQadM4jNEkhzVsEGE8nIHESM1j5/KqRX+/IEiOQ/yifNBlEkpnb00cccesbpp13T3983H88/48xzrrvm6it/8U5JXgX5G6nSvSq1R5LATR7aYGkwMG1RSwkWABH+4jUb3vT/uJ1Z0xpjraTBRltrxUQhksIRmgTJyy69+Pv99tv3qYX6FxgU+fU33352xGEHf5wisU7nNWJpZRMkAjZ6aIN1mwV7h29Jo2wCHlveu/GV169z65E+T6koexCh6c+EEiky3lnxQKFjUeVyOeI5AOBzIiayRhJryd7YYnkIHgvB0qk9Tdql6N3XH4bRUIOIIIKJSiRb0hkSEpZKRd1CpEq8GxtIyCVmDSgFl94GacTgaJw1rUlYhYng0c4ewaUsmKRIJjpiqMSOCh9QeI+UYECmtQIsxEu6OorEcv6Rl0gu0woh8MhFkmSCTXVI4pC704WCFRJvSRNJSzrMMEZO2iKZTCHAZYnmvXCny7ed5vfZK3viHSBdIFCKEFj2+nt+73nw8m2uedcLJlktA++VNMEPaR45aYukcKnnCfY3/DFbZS8t7eHxNgsPM0N1hXhJJwwM1QbpoQFlog2R13a/zBxEYHAQEUYUM6qiVwEyBYoM6JFNF2kFLelI5KQf+fVI4dJFCguDS7oAyx2R6SFQJKRedSDj/cMg/RXQ6ZE05GSIDAaXdCi1I3L021SQWNJ1RLY5OiIdL4/yvuw8ADfWPFrSciaMyH8tEQPwf1uGG54g5+KlJGTmsrxsQdl5PKidnPFe2QS///7Hu+VS6WX/HYnf0sevGL7lXydwod2/9DykZq0s5yff0sgSWCigNOH7TPHL7ufj+/TH8P/+qYpL4HkBDiRYpEXeM8/89/9zzjn7EtY64dfd1nqccM7Bs8+9MKy8555/8TnKS+5MufH6EZVASkgPzf+mJXroet17JirU0ALST3nT0y5ONyLpeo1y64ih+vuQfsoTOeRFSJXa+SvyB90TUmdw49EjLaKpMQ0mzEeTzkWsd/oI6fzfiKM8gWg6X6OjpXstu5ZHnmIb0GFiu29MIUfUewkmVrEN3RqVQ/bY8FzNcquMBv/pCNUZ5pHHem01KdN/I/DG66/lLhKSvTO5M84kav5C5z2ZfyAivi9i9VGd45RH7UWJbjwGG/7NYsRECt7jiOToHedKAui8SW4CsxyRc54mKH/8f7ELhCCACyNcIl/wI+FaAJyc8yzRtinQPzWzuFZrFHq/AAAAAElFTkSuQmCC);background-size:33px auto}.OT_video-disabled-indicator.OT_active[_ngcontent-%COMP%]{display:block}.OT_audio-blocked-indicator[_ngcontent-%COMP%]{opacity:1;border:none;display:none;position:absolute;background-color:transparent;background-repeat:no-repeat;background-position:50%;pointer-events:none;top:0;left:0;bottom:0;right:0}.OT_audio-blocked[_ngcontent-%COMP%]{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTUwIiBoZWlnaHQ9IjkwIj48ZGVmcz48cGF0aCBkPSJNNjcgMTJMNi40NDggNzIuNTUyIDAgMzFWMThMMjYgMGw0MSAxMnptMyA3bDYgNDctMjkgMTgtMzUuNTAyLTYuNDk4TDcwIDE5eiIgaWQ9ImEiLz48L2RlZnM+PHJlY3Qgd2lkdGg9IjE1MCIgaGVpZ2h0PSI5MCIgcng9IjM1IiByeT0iNDUiIG9wYWNpdHk9Ii41Ii8+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgzNikiPjxtYXNrIGlkPSJiIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNhIi8+PC9tYXNrPjxwYXRoIGQ9Ik0zOS4yNDkgNTEuMzEyYy42OTcgMTAuMzcgMi43ODUgMTcuODk3IDUuMjUxIDE3Ljg5NyAzLjAzOCAwIDUuNS0xMS40MTcgNS41LTI1LjVzLTIuNDYyLTI1LjUtNS41LTI1LjVjLTIuNTEgMC00LjYyOCA3Ljc5Ny01LjI4NyAxOC40NTNBOC45ODkgOC45ODkgMCAwIDEgNDMgNDRhOC45ODggOC45ODggMCAwIDEtMy43NTEgNy4zMTJ6TTIwLjk4NSAzMi4yMjRsMTUuNzQ2LTE2Ljg3N2E3LjM4NSA3LjM4NSAwIDAgMSAxMC4zNzQtLjQyQzUxLjcwMiAxOS4xMTQgNTQgMjkuMjA4IDU0IDQ1LjIwOGMwIDE0LjUyNy0yLjM0MyAyMy44OC03LjAzIDI4LjA1OGE3LjI4IDcuMjggMCAwIDEtMTAuMTY4LS40NjhMMjAuNDA1IDU1LjIyNEgxMmE1IDUgMCAwIDEtNS01di0xM2E1IDUgMCAwIDEgNS01aDguOTg1eiIgZmlsbD0iI0ZGRiIgbWFzaz0idXJsKCNiKSIvPjwvZz48cGF0aCBkPSJNMTA2LjUgMTMuNUw0NC45OTggNzUuMDAyIiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PC9nPjwvc3ZnPg==);background-size:90px auto}.OT_container-audio-blocked[_ngcontent-%COMP%]{cursor:pointer}.OT_container-audio-blocked.OT_mini[_ngcontent-%COMP%] .OT_edge-bar-item[_ngcontent-%COMP%], .OT_container-audio-blocked[_ngcontent-%COMP%] .OT_mute[_ngcontent-%COMP%]{display:none}.OT_audio-blocked-indicator.OT_active[_ngcontent-%COMP%]{display:block}.OT_video-unsupported[_ngcontent-%COMP%]{opacity:1;border:none;display:none;position:absolute;background-color:transparent;background-repeat:no-repeat;background-position:50%;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTciIGhlaWdodD0iOTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGQ9Ik03MCAxMkw5LjQ0OCA3Mi41NTIgMCA2MmwzLTQ0TDI5IDBsNDEgMTJ6bTggMmwxIDUyLTI5IDE4LTM1LjUwMi02LjQ5OEw3OCAxNHoiIGlkPSJhIi8+PC9kZWZzPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoOCAzKSI+PG1hc2sgaWQ9ImIiIGZpbGw9IiNmZmYiPjx1c2UgeGxpbms6aHJlZj0iI2EiLz48L21hc2s+PHBhdGggZD0iTTkuMTEgMjAuOTY4SDQ4LjFhNSA1IDAgMCAxIDUgNVY1OC4xOGE1IDUgMCAwIDEtNSA1SDkuMTFhNSA1IDAgMCAxLTUtNVYyNS45N2E1IDUgMCAwIDEgNS01em00Ny4wOCAxMy4zOTRjMC0uMzQ1IDUuNDcyLTMuMTU5IDE2LjQxNS04LjQ0M2EzIDMgMCAwIDEgNC4zMDQgMi43MDJ2MjYuODM1YTMgMyAwIDAgMS00LjMwNSAyLjcwMWMtMTAuOTQyLTUuMjg2LTE2LjQxMy04LjEtMTYuNDEzLTguNDQ2VjM0LjM2MnoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48L2c+PHBhdGggZD0iTTgxLjUgMTYuNUwxOS45OTggNzguMDAyIiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PC9nPjwvc3ZnPg==);background-size:58px auto;pointer-events:none;top:0;left:0;bottom:0;right:0;margin-top:-30px}.OT_video-unsupported-bar[_ngcontent-%COMP%]{display:none;position:absolute;width:192%;height:192%;top:-96%;left:-96%;border-radius:50%;background-color:rgba(0,0,0,.8)}.OT_video-unsupported-img[_ngcontent-%COMP%]{display:none;position:absolute;top:11%;left:15%;width:70%;opacity:.7;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTciIGhlaWdodD0iOTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGQ9Ik03MCAxMkw5LjQ0OCA3Mi41NTIgMCA2MmwzLTQ0TDI5IDBsNDEgMTJ6bTggMmwxIDUyLTI5IDE4LTM1LjUwMi02LjQ5OEw3OCAxNHoiIGlkPSJhIi8+PC9kZWZzPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoOCAzKSI+PG1hc2sgaWQ9ImIiIGZpbGw9IiNmZmYiPjx1c2UgeGxpbms6aHJlZj0iI2EiLz48L21hc2s+PHBhdGggZD0iTTkuMTEgMjAuOTY4SDQ4LjFhNSA1IDAgMCAxIDUgNVY1OC4xOGE1IDUgMCAwIDEtNSA1SDkuMTFhNSA1IDAgMCAxLTUtNVYyNS45N2E1IDUgMCAwIDEgNS01em00Ny4wOCAxMy4zOTRjMC0uMzQ1IDUuNDcyLTMuMTU5IDE2LjQxNS04LjQ0M2EzIDMgMCAwIDEgNC4zMDQgMi43MDJ2MjYuODM1YTMgMyAwIDAgMS00LjMwNSAyLjcwMWMtMTAuOTQyLTUuMjg2LTE2LjQxMy04LjEtMTYuNDEzLTguNDQ2VjM0LjM2MnoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48L2c+PHBhdGggZD0iTTgxLjUgMTYuNUwxOS45OTggNzguMDAyIiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PC9nPjwvc3ZnPg==);background-repeat:no-repeat;background-position:50%;background-size:100% auto}.OT_video-unsupported-img[_ngcontent-%COMP%]:before{content:"";display:block;padding-top:93%}.OT_video-unsupported-text[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;text-align:center;height:100%;margin-top:40px}@media only screen and (max-width:600px){#videoRoomNavBar[_ngcontent-%COMP%]{width:100%}}']}),e}(),cR=[{path:"",component:fP},{path:":roomName",component:uR}],lR=function(){function e(){}return e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)},imports:[[YM.forRoot(cR,{useHash:!0})],YM]}),e}(),hR=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),dR=function(e){function t(){var t=e.call(this)||this;return t.NAME="WebComponent",t}return hR(t,e),t.prototype.setSessionConfig=function(e){var t;this.sessionConfig=e,this.sessionConfig&&(this.sessionName=this.sessionConfig.sessionName,this.nickname=this.sessionConfig.user,this.tokens=this.sessionConfig.tokens,this.sessionConfig.ovSettings&&this.isOvSettingsType(this.sessionConfig.ovSettings)&&this.ovSettings.set(this.sessionConfig.ovSettings),this.ovSettings.setScreenSharing(this.ovSettings.hasScreenSharing()&&(null===(t=this.tokens)||void 0===t?void 0:t.length)>1),this.ovSettings.hasScreenSharing()||console.warn("ScreenSharing has been disabled. OpenVidu Angular has received only one token."))},t.prototype.getComponentName=function(){return this.NAME},t.prototype.isOvSettingsType=function(e){return"chat"in e&&"boolean"==typeof e.chat&&"autopublish"in e&&"boolean"==typeof e.autopublish&&"toolbar"in e&&"boolean"==typeof e.toolbar&&"footer"in e&&"boolean"==typeof e.footer&&"toolbarButtons"in e&&"object"==typeof e.toolbarButtons&&"audio"in e.toolbarButtons&&"boolean"==typeof e.toolbarButtons.audio&&"audio"in e.toolbarButtons&&"boolean"==typeof e.toolbarButtons.audio&&"video"in e.toolbarButtons&&"boolean"==typeof e.toolbarButtons.video&&"screenShare"in e.toolbarButtons&&"boolean"==typeof e.toolbarButtons.screenShare&&"fullscreen"in e.toolbarButtons&&"boolean"==typeof e.toolbarButtons.fullscreen&&"layoutSpeaking"in e.toolbarButtons&&"boolean"==typeof e.toolbarButtons.layoutSpeaking&&"exit"in e.toolbarButtons&&"boolean"==typeof e.toolbarButtons.exit},t}(zP),fR=["videoRoom"];function pR(e,t){if(1&e){var n=ms();hs(0,"app-video-room",1,2),bs("_error",(function(e){return An(n),Es().emitErrorEvent(e)}))("_session",(function(e){return An(n),Es().emitSession(e)}))("_publisher",(function(e){return An(n),Es().emitPublisher(e)}))("_leaveSession",(function(e){return An(n),Es().emitLeaveSessionEvent(e)}))("_joinSession",(function(e){return An(n),Es().emitJoinSessionEvent(e)})),ds()}2&e&&cs("externalConfig",Es().webComponent)}var vR=function(){function e(e){this.loggerSrv=e,this.sessionCreated=new vc,this.publisherCreated=new vc,this.error=new vc,this.joinSession=new vc,this.leaveSession=new vc,this.display=!1,this.webComponent=new dR,this.log=this.loggerSrv.get("WebComponentComponent")}return Object.defineProperty(e.prototype,"sessionConfig",{set:function(e){var t=this;this.log.d("Webcomponent sessionConfig: ",e),setTimeout((function(){var n;if("string"==typeof e)try{e=JSON.parse(e)}catch(i){return void t.log.e("Unexpected JSON",i)}if(t.isEmpty(e))return t.log.w("Parameters received are incorrect.",e),t.log.w("Exit session"),void(null===(n=t.videoRoom)||void 0===n||n.leaveSession());t.webComponent.setSessionConfig(e),t.display=t.webComponent.canJoinToSession()}),200)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"theme",{set:function(e){this.webComponent.setTheme(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"openviduServerUrl",{set:function(e){this.webComponent.setOvServerUrl(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"openviduSecret",{set:function(e){this.webComponent.setOvSecret(e)},enumerable:!1,configurable:!0}),e.prototype.emitErrorEvent=function(e){var t=this;setTimeout((function(){return t.error.emit(e)}),20)},e.prototype.emitSession=function(e){var t=this;e.on("sessionDisconnected",(function(e){return t.display=!1})),e.on("connectionCreated",(function(e){t.videoRoom.checkSizeComponent()})),this.sessionCreated.emit(e)},e.prototype.emitPublisher=function(e){this.publisherCreated.emit(e)},e.prototype.emitJoinSessionEvent=function(e){this.joinSession.emit(e)},e.prototype.emitLeaveSessionEvent=function(e){this.leaveSession.emit(e)},e.prototype.isEmpty=function(e){return 0===Object.keys(e).length},e.\u0275fac=function(t){return new(t||e)(ss(gP))},e.\u0275cmp=Ft({type:e,selectors:[["app-web-component"]],viewQuery:function(e,t){var n;1&e&&Tc(fR,!0),2&e&&Oc(n=Rc())&&(t.videoRoom=n.first)},inputs:{ovSettings:"ovSettings",sessionConfig:"sessionConfig",theme:"theme",openviduServerUrl:"openviduServerUrl",openviduSecret:"openviduSecret"},outputs:{sessionCreated:"sessionCreated",publisherCreated:"publisherCreated",error:"error",joinSession:"joinSession",leaveSession:"leaveSession"},decls:1,vars:1,consts:[[3,"externalConfig","_error","_session","_publisher","_leaveSession","_joinSession",4,"ngIf"],[3,"externalConfig","_error","_session","_publisher","_leaveSession","_joinSession"],["videoRoom",""]],template:function(e,t){1&e&&os(0,pR,2,1,"app-video-room",0),2&e&&cs("ngIf",t.display)},directives:[lh,uR],styles:["app-web-component[_ngcontent-%COMP%]{z-index:2147483647}"]}),e}(),mR=function(){function e(e){this.injector=e;var t=new KC(vR,this.injector),n=ZC(vR,{injector:this.injector,strategyFactory:t});customElements.define("openvidu-webcomponent",n)}return e.prototype.ngDoBootstrap=function(){},e.\u0275mod=Wt({type:e}),e.\u0275inj=Ne({factory:function(t){return new(t||e)(bt(Za))},providers:[$P,RP,EP,SP,TP,QP,gP,DP,MP,GP,yA,{provide:s_,useClass:yA}],imports:[[Mf,Pf,ad,xm,Yy,Ky,rC,Kw,oS,Qk,H_,xC,Wy,Yk,OS,jy,aS,XS,JS,VC,lR,Nw,ex,vk]]}),e}();(function(){if(ar)throw new Error("Cannot enable prod mode after platform setup.");or=!1})(),rd().bootstrapModule(mR).catch((function(e){return console.log(e)}))},zfKp:function(e,t,n){"use strict";t.observable=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()}},[[0,0]]]);